Consolidate renameat Linux implementation
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2
3         * sysdeps/unix/sysv/linux/renameat.c: New file.
4         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
5
6         * sysdeps/unix/sysv/linux/rename.c: New file.
7         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
8
9 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
10
11         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
12         * string/strtok.c (strtok): Change to tailcall __strtok_r.
13         * string/strtok_r.c (__strtok_r): Optimize for performance.
14         * string/string-inlines.c (__old_strtok_r_1c): New function.
15         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
16
17 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18
19         * math/Makefile (gen-libm-calls): Add w_log1pF.
20         (libm-calls): Remove w_log1pF.
21         * math/w_log1p.c: Remove.
22         * math/w_log1pf.c: Likewise.
23         * math/w_log1pl.c: Likewise.
24         * math/w_log1p_template.c: New file with type-generic
25         implementation based on math/w_log1p.c.
26         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
27         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
28
29 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
30
31         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
32
33 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
34
35         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
36         kernel version to 4.9.
37
38 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
39
40         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
41         ($(inst_libdir)/libm.a): Fix rule to create the target only.
42
43 2016-12-13  Andreas Schwab  <schwab@suse.de>
44
45         * sysdeps/powerpc/dl-procinfo.c: Don't define
46         _dl_powerpc_platforms.
47         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
48         constants instead of referencing _dl_powerpc_platforms.
49         (_dl_platform_string): Remove.
50
51 2016-12-13  Florian Weimer  <fweimer@redhat.com>
52
53         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
54
55 2016-12-13  Florian Weimer  <fweimer@redhat.com>
56
57         * Rules (binaries-shared-tests, binaries-pie-tests)
58         (binaries-static-tests): Link with $(link-extra-libs-tests).
59         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
60         Remove $(link-extra-libs-tests).
61
62 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
63
64         * sysdeps/powerpc/powerpc64/multiarch/Makefile
65         (sysdep_routines): Add strncmp_power9.
66         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
67         (strncmp): Add __strncmp_power9 to list of strncmp functions.
68         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
69         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
70         (strncmp): Add __strncmp_power9 to ifunc list.
71         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
72
73 2016-12-12  Florian Weimer  <fweimer@redhat.com>
74
75         [BZ #17252]
76         Add getentropy, getrandom.
77         * stdlib/sys/random.h: New file.
78         (headers): Add it.
79         * stdlib/Makefile (routines): Add getentropy, getrandom.
80         (tests): Add tst-getrandom.
81         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
82         * stdlib/getentropy.c: New file.
83         * stdlib/getrandom.c: Likewise.
84         * stdlib/tst-getrandom.c: Likewise.
85         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
86         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
87         * manual/crypt.texi (Unpredictable Bytes): New section.
88         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
89         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
90         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
91         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
92         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
93         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
94         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
95         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
96         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
97         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
98         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
99         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
100         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
101         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
102         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
103         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
105         Likewise.
106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
107         Likewise.
108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
110         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
111         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
112         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
113         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
114         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
115         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
117         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
118         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
119         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
120
121 2016-12-10  Florian Weimer  <fweimer@redhat.com>
122
123         [BZ #20956]
124         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
125         as additional compiler barriers.
126         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
127         (fn2, do_test): Declare with external linkage.
128         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
129         (do_test): Declare with external linkage.
130         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
131         (do_test): Declare with external linkage.
132         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
133         (do_test): Declare with external linkage.
134
135 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
136
137         * support/support_test_main.c (support_test_main): Use correct
138         timeout.
139
140 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
141             Florian Weimer  <fweimer@redhat.com>
142
143         [BZ #16421]
144         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
145         and __u6_addr32 members.
146         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
147         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
148         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
149         Use __u6_addr32.
150         * inet/tst-checks.c: Use <support/test-driver.c>
151         * inet/tst-checks-posix.c: New file.
152         * inet/Makefile (tests): Add it.
153         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
154
155 2016-12-09  Florian Weimer  <fweimer@redhat.com>
156
157         New subdirectory support for build and test infrastructure.
158         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
159         setting install-lib.
160         * Makeconfig (link-extra-libs-tests): Define.
161         (+link-pie-tests, +link-static-tests, +link-tests): Use
162         link-extra-libs-tests.
163         (rpath-dirs, all-subdirs): Add support.
164         (built-modules): Add libsupport.
165         (libsupport): Define.
166         * support: New directory.
167         * support/Makefile: New file.
168         * support/check.c: Likewise.
169         * support/check.h: Likewise.
170         * support/delayed_exit.c: Likewise.
171         * support/ignore_stderr.c: Likewise.
172         * support/oom_error.c: Likewise.
173         * support/set_fortify_handler.c: Likewise.
174         * support/support.h: Likewise.
175         * support/temp_file-internal.h: Likewise.
176         * support/temp_file.c: Likewise.
177         * support/test-driver.c: Likewise.
178         * support/test-driver.h: Likewise.
179         * support/test_main.c: Likewise.
180         * support/write_message.c: Likewise.
181         * support/xasprintf.c: Likewise.
182         * support/xcalloc.c: Likewise.
183         * support/xmalloc.c: Likewise.
184         * support/xpthread_barrier_destroy.c: Likewise.
185         * support/xpthread_barrier_init.c: Likewise.
186         * support/xpthread_barrier_wait.c: Likewise.
187         * support/xpthread_cancel.c: Likewise.
188         * support/xpthread_check_return.c: Likewise.
189         * support/xpthread_cond_wait.c: Likewise.
190         * support/xpthread_create.c: Likewise.
191         * support/xpthread_detach.c: Likewise.
192         * support/xpthread_join.c: Likewise.
193         * support/xpthread_mutex_lock.c: Likewise.
194         * support/xpthread_mutex_unlock.c: Likewise.
195         * support/xpthread_sigmask.c: Likewise.
196         * support/xpthread_spin_lock.c: Likewise.
197         * support/xpthread_spin_unlock.c: Likewise.
198         * support/xrealloc.c: Likweise.
199         * support/xsignal.h: Likewise.
200         * support/xthread.h: Likewise.
201         * support_tempfile.h: Likewise.
202         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
203         (TEST_DATA_LIMIT): Remove unused macro.
204         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
205         <support/check.h>.
206         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
207         (ignore_stderr, set_fortify_handler): Remove.  Now in
208         <support/support.h>.
209         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
210         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
211         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
212         (xpthread_join): Remove.  Now in <support/xthread.h>.
213         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
214         Introduce legacy wrappers.
215         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
216         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
217         (write_message): Remove.
218         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
219         test-skeleton.c.
220         * io/test-open-tmpfile: Likewise.
221         * io/tst-posix_fallocate-common.c: Likewise.
222         * libio/tst-fseek.c: Likewise.
223         * malloc/tst-malloc-backtrace.c: Likewise.
224         * malloc/tst-malloc-fork-deadlock.c: Likewise.
225         * malloc/tst-malloc-thread-exit.c: Likewise.
226         * nptl/tst-cancel7.c: Likewise.
227         * nptl/tst-cleanup0.c: Likewise.
228         * posix/tst-posix_fadvise-common.c: Likewise.
229         * rt/tst-shm.c: Likewise.
230         * time/bug-getdate1.c: Likewise.
231         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
232         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
233         * elf/Makefile (tst-piemod1.so): Link against libsupport.
234
235 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
236
237         * Rules [$(run-built-tests) != no] (tests-expected): Add
238         $(tests-printers).
239         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
240
241 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
242
243         [BZ #20539]
244         * math/Makefile (install-lib-ldscripts): Add libm.a.
245         (install_subdir): Remove.
246         (install-others): Add.
247         ($(inst_libdir)/libm.a): Add rule for installation as
248         linker script.
249         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
250
251 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
252
253         * INSTALL: Regenerated.
254         * Makeconfig: Add comments and whitespace to make the control flow
255         clearer.
256         (+link-printers-tests, +link-pie-printers-tests,
257         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
258         built-rtld-LDFLAGS, link-libc-rpath,
259         link-libc-tests-after-rpath-link,
260         link-libc-printers-tests): New.
261         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
262         link-libc-tests): Use the new variables as required.
263         * Makerules ($(py-const)): New rule.
264         generated: Add $(py-const).
265         * README.pretty-printers: New file.
266         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
267         (others): Depend on $(py-const).
268         (tests): Depend on $(tests-printers-programs) or
269         $(tests-printers-out),
270         as required.  Pass $(tests-printers) to merge-test-results.sh.
271         * manual/install.texi: Add requirements for testing the pretty
272         printers.
273         * nptl/Makefile (gen-py-const-headers, pretty-printers,
274         tests-printers, CFLAGS-test-mutexattr-printers.c
275         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
276         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
277         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
278         * nptl/nptl-printers.py: New file.
279         * nptl/nptl_lock_constants.pysym: Likewise.
280         * nptl/test-cond-printers.c: Likewise.
281         * nptl/test-cond-printers.py: Likewise.
282         * nptl/test-condattr-printers.c: Likewise.
283         * nptl/test-condattr-printers.py: Likewise.
284         * nptl/test-mutex-printers.c: Likewise.
285         * nptl/test-mutex-printers.py: Likewise.
286         * nptl/test-mutexattr-printers.c: Likewise.
287         * nptl/test-mutexattr-printers.py: Likewise.
288         * nptl/test-rwlock-printers.c: Likewise.
289         * nptl/test-rwlock-printers.py: Likewise.
290         * nptl/test-rwlockattr-printers.c: Likewise.
291         * nptl/test-rwlockattr-printers.py: Likewise.
292         * scripts/gen-py-const.awk: Likewise.
293         * scripts/test_printers_common.py: Likewise.
294         * scripts/test_printers_exceptions.py: Likewise.
295
296 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
297
298         * scripts/build-many-glibcs.py (Context.__init__): Take strip
299         argument.
300         (Glibc.build_glibc): Strip installed shared libraries if
301         requested.
302         (get_parser): Add --strip option.
303         (main): Update Context call.
304
305 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
306             Dominik Vogt  <vogt@linux.vnet.ibm.com>
307
308         [BZ #20847]
309         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
310         array bounds for else branch.
311         (__execvpe): Style fixes.
312         * posix/tst-vfork3.c (run_script): New function.
313         (create_script): Likewise.
314         (do_test): Use run_script internal function.
315         (do_prepare): Use create_script internal function.
316
317 2016-12-07  Andreas Schwab  <schwab@suse.de>
318
319         * sysdeps/unix/sysv/linux/x86/elision-conf.h
320         (__elision_available): Don't declare.
321         * sysdeps/unix/sysv/linux/x86/elision-conf.c
322         (__elision_available): Don't define.
323         (elision_init): Don't set __elision_available.
324
325 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
326
327         [BZ #20940]
328         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
329         return Inf for arguments Inf and sNaN.
330         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
331         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
332         Likewise.
333         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
334         Likewise.
335         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
336         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
337         for arguments Inf and sNaN.  When returning a NaN, compute it by
338         arithmetic on the arguments.
339         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
340         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
341         arguments.
342
343 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
344
345         [BZ #20916]
346         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
347         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
348         to compute result.
349         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
350         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
351
352 2016-12-05  Torvald Riegel  <triegel@redhat.com>
353
354         * include/atomic.h (__atomic_check_size_ls): New.
355         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
356         atomic_store_release): Use it.
357         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
358         (elision_adapt, ELIDE_LOCK): Use atomics.
359         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
360         atomics and improve code comments.
361         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
362         (__lll_trylock_elision): Likewise.
363
364 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
365
366         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
367         programs.
368
369 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
370
371         [BZ #20916]
372         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
373         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
374         arguments to compute result.
375         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
376         1 for arguments (sNaN, 0) or (1, sNaN).
377         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
378         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
379
380         [BZ #20919]
381         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
382         NaN first argument when raised to power 0.
383         * math/w_pow.c (__pow): Do not check for NaN or zero results from
384         raising to power zero.
385         * math/w_powf.c (__powf): Likewise.
386         * math/w_powl.c (__powl): Likewise.
387         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
388         pow (0, 0) or pow (NaN, 0).
389
390 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
391
392         [BZ #20918]
393         * configure.ac: Test for static NSS cryptographic libraries and set
394         libc_cv_static_nss_crypt.
395         * configure: Regenerate.
396         * config.make.in (static-nss-crypt): Define.
397         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
398         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
399         (CFLAGS-tst-linkall-static.c): Define.
400         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
401         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
402         ($(objpfx)tst-linkall-static): Define.
403         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
404         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
405
406 2016-12-02  Florian Weimer  <fweimer@redhat.com>
407
408         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
409         (one-hundred, tst-tls-many-dynamic-modules): Define.
410         (modules-names): Add $(tst-tls-many-dynamic-modules).
411         (tst-tls-manydynamic%mod.os): Build with special preprocessor
412         macros.
413         (tst-tls-manydynamic): Link against libdl, libpthread.
414         (tst-tls-manydynamic.out): The test needs the test modules at run
415         time.
416         * elf/tst-tls-manydynamic.c: New file.
417         * elf/tst-tls-manydynamic.h: Likewise.
418         * elf/tst-tls-manydynamicmod.c: Likewise.
419
420 2016-12-02  Florian Weimer  <fweimer@redhat.com>
421
422         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
423         (TLS_DTV_UNALLOCATED): Add.
424         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
425         offsets.
426
427 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
428
429         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
430
431 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
432
433         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
434         Add -fno-optimize-sibling-calls.
435
436 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
437
438         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
439         New declaration.
440         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
441         macro.
442         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
443         New macro.
444         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
445         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
446         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
447         (llogbf): Likewise.
448         (llogbl): Likewise.
449         * math/Makefile (gen-libm-calls): Add w_llogbF.
450         (tests): Add test-fp-llogb-constants.
451         * math/w_llogb_template.c: New file.  Based on
452         math/w_ilogb_template.c.
453         * math/libm-test.inc (llogb_test_data): New array.
454         (llogb_test): New function.
455         (main): Call llogb_test.
456         * math/test-fp-llogb-constants.c: New file.  Based on
457         math/test-fp-ilogb-constants.c.
458         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
459         (do_test): Call check_return_llogb.
460         * math/test-tgmath.c (NCALLS): Increase to 126.
461         (F(compile_test)): Call llogb.
462         (F(llogb)): New function.
463         * manual/math.texi (Exponents and Logarithms): Document llogb,
464         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
465         * manual/libm-err-tab.pl (@all_functions): Add llogb.
466         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
467         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
468         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
469         (CFLAGS-nldbl-llogb.c): New variable.
470         * sysdeps/nacl/libm.abilist: Update.
471         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
472         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
473         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
474         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
475         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
476         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
477         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
478         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
479         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
480         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
481         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
482         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
484         Likewise.
485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
486         Likewise.
487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
488         Likewise.
489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
490         Likewise.
491         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
492         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
493         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
494         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
495         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
496         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
497         Likewise.
498         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
499         Likewise.
500         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
501         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
502         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
503
504 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
505
506         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
507         _Float128 instead of long double.
508         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
509
510         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
511         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
512         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
513         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
514         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
515         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
516         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
517         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
518         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
519         Likewise.
520
521 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
522
523         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
524         Remove redirection to __strrchr_ppc.
525
526 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
527
528         * sysdeps/powerpc/powerpc64/multiarch/Makefile
529         (sysdep_routines): Add strcmp_power9.
530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
531         (strcmp): Add __strcmp_power9 to list of strcmp functions.
532         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
533         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
534         (strcmp): Add __strcmp_power9 to ifunc list.
535         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
536
537 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
538
539         * bits/fp-logb.h: New file.
540         * sysdeps/ia64/bits/fp-logb.h: Likewise.
541         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
542         * sysdeps/x86/bits/fp-logb.h: Likewise.
543         * math/Makefile (headers): Add bits/fp-logb.h.
544         * math/math.h: Include <bits/fp-logb.h>.
545         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
546         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
547         * bits/mathdef.h (FP_ILOGB0): Remove.
548         (FP_ILOGBNAN): Likewise.
549         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
550         (FP_ILOGBNAN): Likewise.
551         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
552         (FP_ILOGBNAN): Likewise.
553         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
554         (FP_ILOGBNAN): Likewise.
555         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
556         (FP_ILOGBNAN): Likewise.
557         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
558         (FP_ILOGBNAN): Likewise.
559         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
560         (FP_ILOGBNAN): Likewise.
561         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
562         (FP_ILOGBNAN): Likewise.
563         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
564         (FP_ILOGBNAN): Likewise.
565         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
566         (FP_ILOGBNAN): Likewise.
567
568         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
569         time module.
570         (Context.__init__): Initialize self.logsdir_old.
571         (Context.run_builds): Handle bot action.
572         (Context.bot_cycle): Copy logs directory before running builds.
573         (Context.bot_run_self): Take argument for whether to check
574         subprocess result.  Flush stdout before running subprocess.
575         (Context.bot): New function.
576         (get_parser): Allow bot action.
577
578 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
579
580         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
581         Import email.mime.text, email.utils and smtplib modules.
582         (Context.__init__): Initialize self.bot_config_json.
583         (Context.run_builds): Handle bot-cycle action.
584         (Context.load_bot_config_json): New function.
585         (Context.part_build_old): Likewise.
586         (Context.bot_cycle): Likewise.
587         (Context.bot_build_mail): Likewise.
588         (Context.bot_run_self): Likewise.
589         (get_parser): Allow bot-cycle action.
590
591 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
592
593         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
594         Remove redirection to __stpcpy_ppc.
595
596 2016-11-30  Florian Weimer  <fweimer@redhat.com>
597
598         Remove __libc_memalign from ld.so because it is unused.
599         * elf/dl-minimal.c: Update comment on the malloc implementation.
600         (malloc): Renamed from __libc_memalign, replacing the original
601         malloc implementation.  Replace the align parameter with
602         MALLOC_ALIGNMENT.
603         * elf/Versions (ld): Update comment and remove __libc_memalign.
604         * sysdeps/nacl/ld.abilist: Likewise.
605         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
606         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
607         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
608         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
609         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
610         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
611         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
612         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
613         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
614         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
615         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
616         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
617         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
621         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
622         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
623         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
624         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
625         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
628         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
629         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
630         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
631         * sysdeps/generic/localplt.data (ld.so): Likewise.
632         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
633         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
634         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
635         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
636         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
637         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
638         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
639         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
640         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
642         (ld.so): Likewise.
643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
644         (ld.so): Likewise.
645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
646         Likewise.
647         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
648         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
649         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
650         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
651         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
652
653 2016-11-30  Florian Weimer  <fweimer@redhat.com>
654
655         [BZ #16628]
656         Implement _dl_catch_error, _dl_signal_error in libc.so.
657         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
658         (catch_hook): Define as thread-local or regular variable,
659         depending on DL_ERROR_BOOTSTRAP.
660         (CATCH_HOOK): Remove.
661         (dl_signal_error, _dl_catch_error): Use
662         catch_hook.  Add hidden definition for libc.
663         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
664         for DL_ERROR_BOOTSTRAP only.
665         * elf/dl-error.c: New file.
666         * elf/dl-error-minimal.c: Likewise.
667         * elf/tst-latepthread.c: Likewise.
668         * elf/tst-latepthreadmod.c: Likewise.
669         * elf/Makefile (routines): Add dl-error.
670         (dl-routines): Remove dl-error.
671         (rtld-routines): Add dl-error-minimal.
672         [build-shared] (tests): Add tst-latepthread.
673         (module-names): Add tst-latepthreadmod.
674         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
675         symbol.
676         (tst-latepthreadmod.so): Link against libpthread.
677         (tst-latepthread): Link against libdbl.
678         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
679         _dl_catch_error.
680         [ld] (GLIBC_PRIVATE): Likewise.
681         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
682         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
683         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
684         directly.
685         * elf/dl-tsd.c: Remove file.
686         * elf/rtld.c (_rtld_global_ro): Remove initializers for
687         _dl_catch_error, _dl_signal_error.
688         (_dl_initial_error_catch_tsd): Remove definition.
689         (do_preload): Remove initialization of dl_error_catch_tsd.
690         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
691         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
692         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
693         * dlfcn/dlopen.c (dlopen_doit): Likewise.
694         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
695         set dl_error_catch_tsd.
696         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
697         _dl_error_catch_tsd member.
698         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
699         members.
700         (_dl_initial_error_catch_tsd): Remove declaration.
701         (_dl_dprintf): Provide definition for use outside of ld.so.
702         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
703         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
704         prototype for libc.
705         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
706         _dl_catch_error.
707         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
708         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
709         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
710         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
711         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
712         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
713         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
714         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
715         Likewise.
716         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
718         (ld.so): Likewise.
719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
720         (ld.so): Likewise.
721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
722         Likewise.
723         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
724         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
725         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
726         Likewise.
727         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
728         Likewise.
729         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
730
731 2016-11-30  Florian Weimer  <fweimer@redhat.com>
732
733         [BZ #4099]
734         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
735         _IO_BUFSIZ (8192).
736
737 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
738
739         * PROJECTS: Remove file.
740
741 2016-11-29  Florian Weimer  <fweimer@redhat.com>
742
743         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
744
745 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
746             Steve Ellcey  <sellcey@caviumnetworks.com>
747
748         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
749         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
750         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
751         fxstatat.
752         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
753         lxstat.
754         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
755         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
756         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
757         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
758         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
759         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
760         __xstat.
761
762 2016-11-29  Florian Weimer  <fweimer@redhat.com>
763
764         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
765         Define.
766         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
767         definition.
768
769 2016-11-29  Florian Weimer  <fweimer@redhat.com>
770
771         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
772         version and turn into strong alias.  Remove compat symbol.
773
774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
775         (__longjmp): Remove.
776
777 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
778
779         * bits/fp-fast.h: New file.
780         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
781         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
782         * math/Makefile (headers): Add bits/fp-fast.h.
783         * math/math.h: Include <bits/fp-fast.h>.
784         * bits/mathdef.h (FP_FAST_FMA): Remove.
785         (FP_FAST_FMAF): Likewise.
786         (FP_FAST_FMAL): Likewise.
787         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
788         (FP_FAST_FMAF): Likewise.
789         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
790         (FP_FAST_FMAF): Likewise.
791         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
792         (FP_FAST_FMAF): Likewise.
793         (FP_FAST_FMAL): Likewise.
794         * sysdeps/arm/bits/mathdef.h: Remove file.
795         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
796         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
797         * sysdeps/tile/bits/mathdef.h: Likewise.
798
799 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
800
801         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
802         * math/w_ilogb.c: Remove.
803         * math/w_ilogbf.c: Likewise.
804         * math/w_ilogbl.c: Likewise.
805         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
806         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
807         * math/Makefile (gen-libm-calls): Add w_ilogbF.
808         (libm-calls): Remove w_ilogbF.
809         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
810         (LDOUBLE_ilogbl_libm_version): New macro.
811
812         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
813
814         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
815         [!__STRICT_ANSI__ && !__cplusplus].
816
817 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
818
819         [BZ #20750]
820         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
821         of PIC.
822
823 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
824             Yury Norov  <ynorov@caviumnetworks.com>
825             Steve Ellcey  <sellcey@caviumnetworks.com>
826
827         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
828         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
829         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
830         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
831         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
832         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
833         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
834         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
835         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
836         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
837         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
838         to get correct reg name for ILP32.
839         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
840         (RELA_SIZE): New Macro.
841         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
842         to support ILP32.
843         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
844         cast for ILP32 mode.
845         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
846         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
847         * sysdeps/aarch64/memset.S (__memset): Ditto.
848         * sysdeps/aarch64/strchr.S (strchr): Ditto.
849         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
850         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
851         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
852         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
853         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
854         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
855         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
856         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
857         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
858         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
859         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
860         change PTR_MANGLE call to use register numbers instead of names.
861         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
862         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
863         ILP32 mode, change PTR_MANGLE calls to use register numbers.
864         * sysdeps/aarch64/start.S (_start): Ditto.
865         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
866         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
867         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
868         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
869         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
870         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
871         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
872         Make defined values dependent on __ILP32__.
873         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
874         (sem_t): Change __align type.
875         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
876         PTR_SIZE): New Macros.
877         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
878         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
879         Set when in ILP32 mode.
880         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
881         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
882         Set elf flags for ILP32.
883         (add_system_dir): Set ILP32 library directories.
884         * sysdeps/unix/sysv/linux/aarch64/init-first.c
885         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
886         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
887         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
888         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
889         New Macros.
890         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
891
892 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
893
894         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
895         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
896         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
897
898 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
899
900         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
901         <asm/cachectl.h>.
902
903 2016-11-27  Zack Weinberg  <zackw@panix.com>
904
905         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
906         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
907
908 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
909
910         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
911         error_t to fix usage in C++ programs.
912
913 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
914
915         * scripts/build-many-glibcs.py: Import datetime module.
916         (Context.__init__): Load JSON build state.  Initialize list of
917         status logs.
918         (Context.run_builds): Update saved build state.
919         (Context.add_makefile_cmdlist): Update list of status logs.
920         (Context.load_build_state_json): New function.
921         (Context.store_build_state_json): Likewise.
922         (Context.clear_last_build_state): Likewise.
923         (Context.update_build_state): Likewise.
924         (CommandList.status_logs): Likewise.
925
926 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
927
928         * scripts/build-many-glibcs.py (Context.__init__): Save text of
929         script being executed.
930         (Context.get_script_text): New function.
931         (Context.exec_self): Likewise.
932         (Context.checkout): Re-exec script if changed by checkout process.
933
934 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
935
936         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
937         (setpayloadsig): New declaration.
938         * math/Versions (setpayloadsig): New libm symbol at version
939         GLIBC_2.25.
940         (setpayloadsigf): Likewise.
941         (setpayloadsigl): Likewise.
942         * math/Makefile (libm-calls): Add s_setpayloadsigF.
943         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
944         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
945         (setpayloadsig_test_data): New array.
946         (setpayloadsig_test): New function.
947         (main): Call setpayloadsig_test.
948         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
949         setpayloadsigf and setpayloadsigl.
950         * manual/libm-err-tab.pl: Update comment on interfaces without
951         ulps tabulated.
952         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
953         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
954         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
955         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
956         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
957         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
958         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
959         setpayloadsig.
960         (CFLAGS-nldbl-setpayloadsig.c): New variable.
961         * sysdeps/nacl/libm.abilist: Update.
962         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
963         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
964         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
965         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
966         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
967         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
968         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
969         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
970         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
971         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
972         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
973         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
975         Likewise.
976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
977         Likewise.
978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
979         Likewise.
980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
981         Likewise.
982         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
983         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
984         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
985         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
986         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
988         Likewise.
989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
990         Likewise.
991         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
992         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
993         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
994
995         * scripts/build-many-glibcs.py: Import json module.
996         (Context.__init__): Take replace_sources argument.  Load
997         versions.json.
998         (Context.load_versions_json): New function.
999         (Context.store_json): Likewise.
1000         (Context.store_versions_json): Likewise.
1001         (Context.set_component_version): Likewise.
1002         (Context.checkout): Update versions.json.  Check for and handle
1003         changes of version.  Prefer previously explicitly specified
1004         version to default version.
1005         (Context.checkout_vcs): Return a revision identifier.
1006         (Context.git_checkout): Likewise.
1007         (Context.gcc_checkout): Likewise.
1008         (get_parser): Add --replace-sources option.
1009         (main): Pass replace_sources argument to Context call.
1010
1011 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1012
1013         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
1014         * nptl/allocatestack.c (allocate_stack): Likewise.
1015         (__reclaim_stacks): Likewise.
1016         (setxid_signal_thread): Obtain pid through syscall.
1017         * nptl/nptl-init.c (sigcancel_handler): Likewise.
1018         (sighandle_setxid): Likewise.
1019         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
1020         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
1021         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
1022         Likewise.
1023         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
1024         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
1025         comment.
1026         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
1027         * nptl/descr.h (struct pthread): Change comment about pid value.
1028         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
1029         pid assert.
1030         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
1031         Do not set pid value.
1032         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
1033         pid cache check.
1034         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
1035         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
1036         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
1037         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
1038         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
1039         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
1040         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
1041         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
1042         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
1043         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
1044         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
1045         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
1046         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
1047         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
1048         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
1049         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
1050         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
1051         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
1052         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1053         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
1054         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1055         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1056         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
1057         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1058         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1061         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
1062         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1063         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
1064         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1065         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1066         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
1067         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1068         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
1069         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
1070         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1071         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1072         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
1073         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
1074         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1075         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1076         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
1077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1079         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
1080         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
1081         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1082         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
1083         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
1084         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
1085         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1086         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1087         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
1088         struct access.
1089         (clone_test): Remove function.
1090         (do_test): Rewrite to take in consideration pid is not cached anymore.
1091
1092 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * bits/flt-eval-method.h: New file.
1095         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
1096         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
1097         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
1098         * math/Makefile (headers): Add bits/flt-eval-method.h.
1099         * math/math.h: Include <bits/flt-eval-method.h>.
1100         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
1101         [__USE_ISOC99] (double_t): Likewise.
1102         * bits/mathdef.h (float_t): Remove.
1103         (double_t): Likewise.
1104         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
1105         (double_t): Likewise.
1106         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
1107         (double_t): Likewise.
1108         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
1109         (double_t): Likewise.
1110         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
1111         (double_t): Likewise.
1112         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
1113         (double_t): Likewise.
1114         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
1115         (double_t): Likewise.
1116         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
1117         (double_t): Likewise.
1118         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
1119         (double_t): Likewise.
1120         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
1121         (double_t): Likewise.
1122         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
1123         (double_t): Likewise.
1124         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
1125         (double_t): Likewise.
1126         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
1127         (double_t): Likewise.
1128         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
1129         (double_t): Likewise.
1130
1131 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
1132
1133         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
1134         instead of PIC.
1135
1136 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1137
1138         [BZ #20859]
1139         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
1140         (-0x7fffffff) instead of 0x80000001.
1141         * math/test-fp-ilogb-constants.c: New file.
1142         * math/Makefile (tests): Add test-fp-ilogb-constants.
1143
1144 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
1145
1146         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
1147         (_init): Use it in place of hardcoded R_MIPS_JALR.
1148         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
1149         (_init): Use it in place of hardcoded R_MIPS_JALR.
1150         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
1151         (_init): Use it in place of hardcoded R_MIPS_JALR.
1152
1153 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1154
1155         [BZ #20787]
1156         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
1157         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
1158         (double_t): Do not define to double if [__x86_64__] when
1159         __FLT_EVAL_METHOD__ is nonzero.
1160         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
1161         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
1162         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1163         test-flt-eval-method-387 and test-flt-eval-method-sse.
1164         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
1165         variable.
1166         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
1167
1168 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
1169
1170         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
1171         use of -fno-isolate-erroneous-paths options for tilepro.
1172
1173 2016-11-23  Florian Weimer  <fweimer@redhat.com>
1174
1175         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
1176         structure initialization is no longer needed.
1177
1178 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1179
1180         [BZ #20855]
1181         * bits/mathdef.h (float_t): Define to float.
1182         * math/test-flt-eval-method.c: New file.
1183         * math/Makefile (tests): Add test-flt-eval-method.
1184         (CFLAGS-test-flt-eval-method.c): New variable.
1185
1186 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
1187
1188         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
1189         and __fstatfs.  Make them aliases of __fstatfs64 if
1190         STATFS_IS_STATFS64 is set to non-zero.
1191         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
1192         and __statfs64.
1193         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
1194         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
1195         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
1196         for __statfs and statfs.
1197         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
1198         to 0.
1199         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
1200         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
1201         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
1202         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1203         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1204         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
1207         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
1208         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1209         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
1210         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
1211
1212 2016-11-22  Andreas Schwab  <schwab@suse.de>
1213
1214         * misc/mkstemp.c: Include <fcntl.h>.
1215         * misc/mkstemps.c: Likewise.
1216         * misc/mkostemp.c: Likewise.
1217         * misc/mkostemps.c: Likewise.
1218
1219 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
1220
1221         [BZ #20847]
1222         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
1223         array bounds.
1224         (__execvpe): Likewise.
1225
1226 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
1227
1228         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
1229         -fno-isolate-erroneous-paths options for tilepro.
1230
1231 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
1232
1233         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
1234         to 0 when in 32 bit mode.
1235         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
1236         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1237         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1238         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1240         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1241         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
1242         XSTAT_IS_XSTAT64 test.
1243         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
1244         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
1245         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
1246         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
1247         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
1248         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
1249         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
1250         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
1251         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
1252         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
1253         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
1254
1255 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
1256
1257         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1258         (setpayload): New declaration.
1259         * math/Versions (setpayload): New libm symbol at version
1260         GLIBC_2.25.
1261         (setpayloadf): Likewise.
1262         (setpayloadl): Likewise.
1263         * math/Makefile (libm-calls): Add s_setpayloadF.
1264         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
1265         test_Ff_b1_data.
1266         (RUN_TEST_Ff_b1): New macro.
1267         (RUN_TEST_LOOP_Ff_b1): Likewise.
1268         (canonicalize_test_data): Update type.
1269         (setpayload_test_data): New array.
1270         (setpayload_test): New function.
1271         (main): Call setpayload_test.
1272         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
1273         setpayloadf and setpayloadl.
1274         * manual/libm-err-tab.pl: Update comment on interfaces without
1275         ulps tabulated.
1276         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
1277         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
1278         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
1279         Likewise.
1280         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
1281         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
1282         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
1283         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
1284         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
1285         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
1286         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
1287         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
1288         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
1289         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1290         setpayload.
1291         (CFLAGS-nldbl-setpayload.c): New variable.
1292         * sysdeps/nacl/libm.abilist: Update.
1293         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1294         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1295         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1296         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1297         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1298         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1299         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1300         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1301         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1302         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1303         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1304         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1306         Likewise.
1307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1308         Likewise.
1309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1310         Likewise.
1311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1312         Likewise.
1313         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1314         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1315         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1316         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1317         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1318         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1319         Likewise.
1320         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1321         Likewise.
1322         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1323         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1324         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1325
1326 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1327
1328         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
1329         * include/unistd.h: Extend comment about __access_noerrno return
1330         semantics.
1331         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
1332         (access_common): Correct typo for EACCES.
1333
1334 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
1335
1336         * sysdeps/tile/math-tests.h: New file.
1337
1338         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
1339         (__old_set_dataplane): Rename from set_dataplane and make a
1340         compatibility symbol.
1341         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
1342         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
1343         sys/dataplane.h.
1344
1345 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
1346
1347         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
1348         script quote words in command output to log suitably for input to
1349         the shell.
1350
1351 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
1352             Maciej W. Rozycki  <macro@imgtec.com>
1353
1354         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
1355         `.Lno_weak_fn' label.
1356         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
1357         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
1358
1359 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1360             Yury Norov  <ynorov@caviumnetworks.com>
1361
1362         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
1363         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
1364         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1365         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
1366         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1367         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
1368         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1369         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1370         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1371         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
1372         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1373         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
1374         (sysdep_routines): Remove oldgetrlimit64.
1375         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
1376         (sysdep_routines): Likewise.
1377         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
1378         (sysdep_routines): Likewise.
1379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1380         [$(subdir) = resource] (sysdep_routines): Likewise.
1381         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1382         [$(subdir) = resource] (sysdep_routines): Likewise.
1383         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
1384         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
1385         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
1386         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
1387         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
1388         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1389         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1390         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
1391         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
1392         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
1393         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
1394         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
1395         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
1396         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
1397         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
1398         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
1399         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
1400         setrlimit and getrlimit.
1401         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1402         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1403         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
1404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1406         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1407         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1408         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1409         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1410         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
1411         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
1412         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
1413         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
1414         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
1415         (__old_getrlimit64): Add compatibility symbol.
1416         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
1417
1418 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
1419
1420         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
1421         newly built gmp, mpfr and mpc.
1422
1423         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
1424
1425 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1426
1427         * conform/Makefile (linknamespace-libs): Rename to
1428         linknamespace-libs-thr.
1429         (linknamespace-libs-posix): New variable.
1430         (linknamespace-libs-xsi): Likewise.
1431         (linknamespace-libs-XPG3): Include libcrypt.a.
1432         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
1433         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
1434         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
1435         (linknamespace-libs-XOPEN2K): Likewise.
1436         (linknamespace-libs-XOPEN2K8): Likewise.
1437         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
1438
1439         [BZ #20829]
1440         * stdio-common/Versions (__snprintf): Add to version
1441         GLIBC_PRIVATE.
1442         * include/stdio.h (__snprintf): Use libc_hidden_proto.
1443         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
1444         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
1445         of snprintf.
1446         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1447
1448 2016-11-16  Zack Weinberg  <zackw@panix.com>
1449
1450         * string/string.h: Remove obsolete comment stating that
1451         strcoll_l and strxfrm_l have not yet been standardized.
1452
1453 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1454
1455         * hurd/hurd.h (__hurd_fail_noerrno): New function.
1456         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
1457         __access_noerrno.
1458         * io/access.c (__access_noerrno): New function.
1459         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
1460         (hurd_fail_seterrno): Likewise.
1461         (access_common): Likewise.
1462         (__access_noerrno): Likewise.
1463         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
1464         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
1465         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
1466         macro.
1467
1468 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1469
1470         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
1471         Only declare fpregs if [__SH_FPU_ANY__].
1472
1473 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
1474
1475         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
1476         Make code unconditional.
1477         [!(__SH4__ || __SH4A__)]: Remove conditional code.
1478
1479 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
1480
1481         * manual/sysinfo.texi (S_APPEND): Delete.
1482         (S_IMMUTABLE): Likewise.
1483
1484 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
1485             Magnus Granberg  <zorry@gentoo.org>
1486             Mike Frysinger  <vapier@gentoo.org>
1487
1488         [BZ #20662]
1489         * configure.ac (libc_cv_predef_stack_protector): Also check for
1490         __stack_chk_fail_local symbols.
1491         * configure: Regenerated.
1492
1493 2016-11-15  Florian Weimer  <fweimer@redhat.com>
1494
1495         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1496         (libc_hidden_def): Remove redefinition.
1497         (__sigsetjmp): Add hidden definition.
1498         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1499         (libc_hidden_def): Remove redefinition.
1500         (__sigsetjmp): Add hidden definition.
1501
1502 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
1503
1504         * scripts/build-many-glibcs.py (os.path): Do not import.
1505         (Context): Inherit explicitly from object.  Remove blank line
1506         between class and docstring.
1507         (Config): Likewise.
1508         (Glibc): Likewise.
1509         (Command): Likewise.
1510         (CommandList): Likewise.
1511         (Context.write_files): Store chmod mode in a variable.
1512
1513         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
1514         LIBC_SLIBDIR_RTLDDIR for tilegx32.
1515         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
1516
1517 2016-11-14  Zack Weinberg  <zackw@panix.com>
1518
1519         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
1520         creating or re-creating it.
1521
1522         * string/bits/string2.h: Fix typo in comment.
1523
1524 2016-11-14  Zack Weinberg  <zackw@panix.com>
1525
1526         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
1527         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
1528         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
1529         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
1530         of redirected function names.
1531
1532         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
1533         as well.  Document that MESSAGE must be a single string literal.
1534
1535 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
1536
1537         * scripts/build-many-glibcs.py: New file.
1538
1539         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
1540         (do_test): Disable -Wmaybe-uninitialized around uses of
1541         except_mask.
1542
1543         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
1544
1545 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
1546
1547         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
1548         (atomic_store_release): Provide tilepro-specific implementations.
1549
1550 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
1551
1552         * math/math.h (__MATH_TG): New macro.
1553         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
1554         [__USE_ISOC99] (signbit): Likewise.
1555         [__USE_ISOC99] (isfinite): Likewise.
1556         [__USE_ISOC99] (isnan): Likewise.
1557         [__USE_ISOC99] (isinf): Likewise.
1558         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
1559         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
1560         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
1561         __MATH_TG and __MATH_EVAL_FMT2.
1562         * sysdeps/generic/math_private.h (fabs_tg): Define using
1563         __MATH_TG.
1564         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
1565         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
1566         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
1567         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
1568         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
1569         macro.
1570         (__iscanonical): Likewise.
1571         (iscanonical): Define using __MATH_TG.
1572
1573 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1574
1575         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
1576         guards.
1577
1578         * sysdeps/unix/sysv/linux/access.c: New file.
1579         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
1580
1581 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
1582
1583         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
1584         and __WORDSIZE32_PTRDIFF_LONG.
1585
1586 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1587
1588         * sysdeps/aarch64/libm-test-ulps: Regenerated.
1589
1590 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1591
1592         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
1593         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
1594         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
1595         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
1596         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
1597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1598         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
1599         * sysdeps/unix/sysv/linux/truncate.c: New file.
1600         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
1601         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1602         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
1603         Remove.
1604         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
1605         Likewise.
1606
1607         * posix/tst-truncate-common.c: New file.
1608         * posix/tst-truncate.c: Use tst-truncate-common.c.
1609         * posix/tst-truncate64.c: Likewise and add LFS tests.
1610         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
1611         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
1612         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
1613         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
1614         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
1615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1616         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
1617         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
1618         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
1619         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1620         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
1621         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
1622         Remove.
1623         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
1624         Likewise.
1625
1626 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
1627
1628         [BZ #20790]
1629         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
1630         to MAXLINESIZE.
1631         * sunrpc/bug20790.x: New file.
1632         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
1633         variable.
1634         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
1635         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
1636
1637         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
1638
1639         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
1640
1641         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
1642         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
1643         calloc, realloc, free, memalign and __libc_memalign rather than
1644         making them optional.
1645
1646         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
1647         for libc.so.
1648
1649 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1650
1651         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
1652         ptw-lseek64.
1653         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
1654         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
1655         Likewise.
1656         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
1657         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
1658         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
1659         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
1660         * sysdeps/unix/sysv/linux/lseek.c: New file.
1661         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
1662         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
1663         __libc_lseek64 from auto-generation.
1664         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1665         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
1666
1667 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1668
1669         * nptl/tst-basic1.c (tf, do_test): Use write_message.
1670         * nptl/tst-cleanup1.c (do_test): Likewise.
1671         * nptl/tst-cleanup3.c (do_test): Likewise.
1672         * nptl/tst-key1.c (do_test): Likewise.
1673         * nptl/tst-key2.c (tf, do_test): Likewise.
1674         * nptl/tst-key3.c (tf, do_test): Likewise.
1675         * nptl/tst-stdio1.c (do_test): Likewise.
1676         * nptl/tst-stdio2.c (do_test): Likewise.
1677
1678         * nptl/tst-kill3.c (handler): Use write_message in place of write.
1679         * nptl/tst-kill6.c (handler): Likewise.
1680         * nptl/tst-tls2.c (CB): Likewise.
1681         * nptl/tst-tls3.c (CB): Likewise.
1682
1683 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
1684
1685         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
1686
1687 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
1688             Steve Ellcey  <sellcey@caviumnetworks.com>
1689
1690         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
1691           __ASSUME_ST_INO_64_BIT as 0
1692         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
1693         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
1694           over the code where __ASSUME_ST_INO_64_BIT is used.
1695         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1696         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1697         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1698
1699 2016-11-07  Florian Weimer  <fweimer@redhat.com>
1700
1701         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1702         Document ABI exposure of the __kind offset.
1703         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1704         Mention reason for the __kind offset exposure in the ABI.
1705         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1706         Likewise.
1707         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1708         Likewise.
1709         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1710         Likewise.
1711         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
1712         (struct __pthread_mutex_s): Likewise.
1713         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1714         Likewise.
1715         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1716         Likewise.
1717         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1718         Likewise.
1719         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1720         Likewise.
1721         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1722         Likewise.
1723         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1724         Likewise.
1725         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1726         (struct __pthread_mutex_s): Likewise.
1727         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1728         (struct __pthread_mutex_s): Likewise.
1729         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
1730         Likewise.
1731
1732 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
1733
1734         * test-skeleton.c: Document do_test usage.
1735
1736 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
1737
1738         * iconv/gconv.h (__gconv_info): Define __data element using a
1739         zero-length array.
1740
1741 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
1742
1743         * math/test-tgmath2.c: Split up test function.
1744
1745 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1746
1747         * Rules (tests-expected): New variable, depending on
1748         $(run-built-tests).
1749         (tests): Pass $(tests-expected) to merge-test-results.sh, not
1750         $(tests).
1751
1752         * Rules [$(run-built-tests) = no] (tests): Do not depend on
1753         $(tests-unsupported).
1754
1755 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1756
1757         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
1758         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
1759
1760 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1761
1762         [BZ #20768]
1763         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
1764         __fegetenv instead of fegetenv.
1765
1766         [BZ #14139]
1767         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
1768         (find_files): Obtain platform name from libm-test-ulps-name and
1769         store in %pplatforms.
1770         (canonicalize_platform): Remove.
1771         (print_platforms): Use $pplatforms directly.
1772         (by_platforms): Do not allow for platforms missing from
1773         %pplatforms.
1774         * sysdeps/aarch64/libm-test-ulps-name: New file.
1775         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
1776         * sysdeps/arm/libm-test-ulps-name: Likewise.
1777         * sysdeps/generic/libm-test-ulps-name: Likewise.
1778         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
1779         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
1780         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
1781         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
1782         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
1783         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
1784         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
1785         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
1786         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
1787         * sysdeps/nios2/libm-test-ulps-name: Likewise.
1788         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
1789         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
1790         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
1791         * sysdeps/sh/libm-test-ulps-name: Likewise.
1792         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
1793         * sysdeps/tile/libm-test-ulps-name: Likewise.
1794         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
1795
1796         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
1797
1798         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
1799         (test-xfail-check-execstack): New variable.
1800
1801         * sysdeps/mips/localplt.data: New file.
1802
1803 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
1804             Steve Ellcey  <sellcey@caviumnetworks.com>
1805
1806         * bits/wordsize.h: Add documentation.
1807         * sysdeps/aarch64/bits/wordsize.h : New file
1808         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
1809         definitions.
1810         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
1811         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
1812         with #if instead of #ifdef.
1813         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
1814         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
1815         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
1816         Add or change defines.
1817         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
1818         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1819         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
1820         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
1821         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1822         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1823         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
1824         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
1825         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
1826         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1827         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
1828         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
1829         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
1830         * sysdeps/x86/bits/wordsize.h: Likewise.
1831
1832 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
1833             Kevin Petit  <kevin.petit@arm.com>
1834
1835         * sysdeps/aarch64/memchr.S (__memchr): New file.
1836
1837 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1838
1839         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
1840
1841 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
1842
1843         [BZ #19398]
1844         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
1845         $(linknamespace-symlists-tests).
1846
1847 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
1848
1849         * time/tst-strptime2.c: Ignore -Wformat-length warning.
1850
1851 2016-11-02  Florian Weimer  <fweimer@redhat.com>
1852             Carlos O'Donell  <carlos@redhat.com>
1853
1854         [Bug #20729]
1855         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
1856         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
1857         for -Os related change.
1858
1859 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
1860
1861         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
1862
1863 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
1864
1865         [BZ #19673]
1866         * manual/math.texi (Exponents and Logarithms): Correct description
1867         of clog10.
1868
1869 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
1870
1871         [Bz #20729]
1872         * locale/weight.h: Include libc-internal.h.
1873         * locale/weightwc.h: Likewise.
1874         * nptl/nptl_dbP.h: Likewise.
1875
1876 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
1877
1878         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
1879         when it is MACH_PORT_NULL.
1880
1881 2016-10-31  Andreas Schwab  <schwab@suse.de>
1882
1883         [BZ #20707]
1884         * posix/glob.c (glob): Initialize pglob before checking for
1885         GLOB_BRACE.  Don't call glob recursively if pattern contains no
1886         valid brace expression despite GLOB_BRACE.
1887         * posix/globtest.sh: Test it.
1888
1889 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1890
1891         [BZ #20729]
1892         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
1893         Define.
1894         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
1895         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
1896         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
1897         for seq2.back_us and seq1.back_us only for -Os compiles.
1898         * locale/weightwc.h (findix): Likewise.
1899         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
1900         DB_GET_FIELD_ADDRESS only for -Os compiles.
1901         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
1902         for slen only for -Os compiles.
1903         * string/strcoll_l.c (get_next_seq): Ignore
1904         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
1905         for -Os compiles.
1906
1907         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
1908         * include/crypt.h: New file.
1909
1910 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1911
1912         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
1913         from test-skeleton.c.
1914         (statclass): Replace calls to write with calls to write_message.
1915
1916 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1917
1918         * math/math.h
1919         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
1920         New macro.
1921         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
1922         Likewise.
1923         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
1924         Likewise.
1925         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
1926         SNANL.
1927         * math/test-double.h (snan_value_MACRO): New macro.
1928         * math/test-float.h (snan_value_MACRO): Likewise.
1929         * math/test-ldouble.h (snan_value_MACRO): Likewise.
1930         * math/libm-test.inc (issignaling_test_data): Add tests of
1931         snan_value_MACRO.
1932
1933 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1934
1935         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
1936         behavior when eliding a lock not held by the current thread.
1937         * sysdeps/powerpc/nptl/elide.h: Likewise.
1938
1939 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1940
1941         [BZ #20728]
1942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
1943         branch to _exit() by a function call.
1944
1945 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1946
1947         * malloc/malloc.c: Update chunk layout comments.
1948         (chunk_main_arena): Update comment.
1949
1950 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1951
1952         * crypt/sha256.c, crypt/sha256-block.c,
1953         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
1954         sha256_process_block to __sha256_process_block.
1955         * crypt/sha512.c, crypt/sha512-block.c,
1956         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
1957         sha512_process_block to __sha512_process_block.
1958
1959 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1960
1961         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
1962
1963         * math/test-nan-overflow.c: Include stdlib.h for malloc.
1964
1965 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
1966
1967         [BZ #20019]
1968         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
1969         definition in unrelocated shared library.
1970         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1971
1972 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1973
1974         [BZ #20729]
1975         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
1976         * sysdeps/unix/sysv/linux/i386/Makefile
1977         (uses-6-syscall-arguments): Define.
1978         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
1979         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
1980         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
1981         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
1982         Likewise.
1983         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
1984         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
1985         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
1986         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
1987         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
1988         (CFLAGS-fallocate64.os): Likewise.
1989         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
1990         (CFLAGS-pthread_rwlock_timedrdlock.os)
1991         (CFLAGS-pthread_rwlock_timedwrlock.o)
1992         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
1993         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
1994         (CFLAGS-sem_timedwait.os): Likewise.
1995
1996 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1997
1998         * elf/tst-linkall-static.c: New file.
1999         * elf/Makefile (tests-static): Add tst-linkall-static.
2000         (tst-linkall-static): Link against static libraries.
2001
2002 2016-10-27  Florian Weimer  <fweimer@redhat.com>
2003
2004         * malloc/malloc.c (sysmalloc): Initialize previous size field of
2005         mmaped chunks.
2006
2007 2016-10-28  Florian Weimer  <fweimer@redhat.com>
2008
2009         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
2010         members to mchunk_prev_size, mchunk_size.
2011         (chunk_main_arena): Reverse sense and rename from
2012         chunk_non_main_arena.
2013         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
2014         mchunk_size instead of size.
2015         (set_non_main_arena): Define.
2016         (chunksize): Use chunksize_nomask instead of direct member access.
2017         (chunksize_nomask): Define.
2018         (next_chunk): Use chunksize instead of direct member access.
2019         (prev_size, set_prev_size): Define.
2020         (prev_chunk): Use prev_size instead of direct member access.
2021         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
2022         (inuse_bit_at_offset, set_inuse_bit_at_offset)
2023         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
2024         (mchunk_prev_size, mchunk_size): Poison tokens.
2025         (unlink): Use chunksize_nomask, prev_size accessors.
2026         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
2027         (do_check_free_chunk): Use prev_size accessor.
2028         (sysmalloc): Use set_prev_size, set_head accessors.
2029         (munmap_chunk, mremap_chunk): Use prev_size accessor.
2030         (__libc_free): Use chunksize_nomask accessor.
2031         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
2032         chunk_main_arena accessors.
2033         (_int_free): Use chunksize_nomask, prev_size accessors.
2034         (malloc_consolidate): Use chunksize, prev_size accessors.
2035         (_int_realloc): Use chunksize_nomask accessor.
2036         (_int_memalign): Use set_prev_size accessor.
2037         (__malloc_info): Use chunksize_nomask accessor.
2038         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
2039         accessors.
2040         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
2041         (heap_trim): Use chunksize_nomask, prev_size accessors.
2042
2043 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
2044
2045         [BZ #19380]
2046         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
2047         for inexact results.
2048         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
2049         of inexact result where mpfr_subnormalize is the only inexact
2050         step.
2051         * stdlib/tst-strtod-round-data.h: Regenerated.
2052         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
2053         Define to 0.
2054         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
2055
2056 2016-10-27  David S. Miller  <davem@davemloft.net>
2057
2058         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
2059
2060 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2061
2062         * malloc/malloc.c (do_set_mallopt_check): New function.
2063         (do_set_mmap_threshold): Likewise.
2064         (do_set_mmaps_max): Likewise.
2065         (do_set_top_pad): Likewise.
2066         (do_set_perturb_byte): Likewise.
2067         (do_set_trim_threshold): Likewise.
2068         (do_set_arena_max): Likewise.
2069         (do_set_arena_test): Likewise.
2070         (__libc_mallopt): Use them.
2071
2072 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
2073
2074         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2075         (canonicalize): New declaration.
2076         * math/Versions (canonicalize): New libm symbol at version
2077         GLIBC_2.25.
2078         (canonicalizef): Likewise.
2079         (canonicalizel): Likewise.
2080         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
2081         * math/s_canonicalize_template.c: New file.
2082         * math/libm-test.inc: Update comment on functions tested and
2083         testing of NaN payloads.
2084         (TEST_NAN_PAYLOAD): New macro.
2085         (NO_TEST_INLINE): Update value.
2086         (XFAIL_TEST): Likewise.
2087         (ERRNO_UNCHANGED): Likewise.
2088         (ERRNO_EDOM): Likewise.
2089         (ERRNO_ERANGE): Likewise.
2090         (IGNORE_RESULT): Likewise.
2091         (NON_FINITE): Likewise.
2092         (TEST_SNAN): Likewise.
2093         (NO_TEST_MATHVEC): Likewise.
2094         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
2095         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
2096         (struct test_Ffp_b1_data): New type.
2097         (RUN_TEST_Ffp_b1): New macro.
2098         (RUN_TEST_LOOP_Ffp_b1): Likewise.
2099         (canonicalize_test_data): New array.
2100         (canonicalize_test): New function.
2101         (main): Call canonicalize_test.
2102         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
2103         canonicalizef and canonicalizel.
2104         * manual/libm-err-tab.pl: Update comment on interfaces without
2105         ulps tabulated.
2106         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
2107         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
2108         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2109         canonicalize.
2110         (CFLAGS-nldbl-canonicalize.c): New variable.
2111         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
2112         to ...
2113         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
2114         ... here.
2115         (do_test): Also test canonicalizel.
2116         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
2117         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
2118         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
2119         file.
2120         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
2121         Use libm_hidden_def.
2122         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
2123         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
2124         (do_test): Also test canonicalizel.
2125         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
2126         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
2127         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
2128         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
2129         libm_hidden_def.
2130         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
2131         macro.
2132         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
2133         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
2134         * sysdeps/nacl/libm.abilist: Update.
2135         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2136         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2137         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2138         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2139         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2140         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2141         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2142         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2143         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2144         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2145         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2146         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2148         Likewise.
2149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2150         Likewise.
2151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2152         Likewise.
2153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2154         Likewise.
2155         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2156         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2157         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2158         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2159         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2160         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2161         Likewise.
2162         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2163         Likewise.
2164         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2165         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2166         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2167
2168         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
2169         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2170         getpayload.
2171         (CFLAGS-nldbl-getpayload.c): New variable.
2172
2173 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2174
2175         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
2176         integer from the format string.
2177
2178 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2179
2180         [BZ #19473]
2181         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
2182         declarations.
2183         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
2184         weak aliases.
2185         * malloc/hooks.c (__malloc_get_state): Remove definition.
2186         (malloc_get_state): New stub implementation as
2187         compatibility symbol.
2188         (malloc_set_state): Rename from __malloc_set_state.  Turn into
2189         compat symbol.
2190         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
2191         malloc_set_state.
2192         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
2193
2194 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2195
2196         * iconvdata/iso646.c (enum variant): Drop illegal_var.
2197         (names): Turn into concatenation of strings.
2198         (gconv_init): Adapt iteration over names.
2199
2200 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2201
2202         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
2203         make const.
2204         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
2205         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
2206         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
2207         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
2208         character in sbconv.
2209         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
2210         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
2211         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
2212
2213 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2214
2215         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
2216
2217         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
2218         (M_TRIM_THRESHOLD): Likewise.
2219
2220         * manual/memory.texi (M_ARENA_TEST): Add documentation.
2221         (M_ARENA_MAX): Likewise.
2222         * malloc/malloc.c: Remove obsolete comment.
2223
2224         * manual/memory.texi: Add environment variable alternatives to
2225         setting mallopt parameters.
2226
2227 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
2228
2229         * include/atomic.h
2230         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
2231         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
2232
2233 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2234
2235         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
2236         * stdlib/tst-strfrom.h: New file.
2237         * stdlib/tst-strfrom.c: New file.
2238         * stdlib/tst-strfrom-locale.c: New file.
2239
2240         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
2241         * stdlib/bug-strtod2.c: Likewise.
2242         * stdlib/tst-strtod-round-skeleton.c: Likewise.
2243         * stdlib/tst-strtod6.c: Likewise.
2244         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
2245
2246 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2247
2248         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
2249         * manual/arith.texi: Document strfromd, strfromf, strfroml.
2250         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
2251         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
2252         * stdlib/stdlib.h (strfromd): New declaration.
2253         (strfromf): Likewise.
2254         (strfroml): Likewise.
2255         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
2256         strfrom.
2257         * stdlib/strfromd.c: New file.
2258         * stdlib/strfromf.c: Likewise.
2259         * stdlib/strfroml.c: Likewise.
2260         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
2261         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
2262         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
2263         * sysdeps/arm/nacl/libc.abilist: Update.
2264         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
2265         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2266         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2267         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2268         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2269         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2270         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2271         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2272         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2273         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2274         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2275         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2276         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2277         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
2279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2282         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2283         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2284         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2285         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2286         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2287         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2288         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2289         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2290         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2291         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2292
2293 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
2294
2295         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
2296         instead of cmpli.
2297         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
2298         instead of cmpli.
2299
2300 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
2301
2302         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
2303         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2304         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2305         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2306         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2307         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2308
2309 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2310
2311         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
2312         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
2313         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
2314         SYSCALL_LL64_PRW.
2315         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
2316         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
2317         __ASSUME_PRW_DUMMY_ARG.
2318         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
2319         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
2320         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
2321         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
2322         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
2323         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
2324
2325 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
2326
2327         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
2328
2329 2016-10-22  Florian Weimer  <fweimer@redhat.com>
2330
2331         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
2332         "C++", to override a potential extern "C" directive around the
2333         header file inclusion.
2334
2335 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
2336
2337         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
2338
2339 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2340
2341         * sysdeps/powerpc/fpu/fenv_private.h:
2342         (_FPU_MASK_ALL): Rename to...
2343         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
2344         XE FPSCR bits.
2345
2346         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
2347
2348         (_FPU_MASK_ROUNDING): Rename to...
2349         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
2350         NI bits.
2351
2352         (_FPU_MASK_EXCEPT_ROUND): Rename to...
2353         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
2354         bits and rounding bits.
2355
2356         (__libc_feholdbits_ppc): New inline function to mask, set,
2357         and pontentially clear FSPCR bits, and change MSR[FE] bits.
2358         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
2359         (libc_feholdexcept_setround_ppc): Likewise.
2360
2361         (__libc_femergeenv_ppc): New function to dynamically mask both
2362         old and new FP environments and merge.
2363         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
2364         (libc_feresetround_ppc): Likewise.
2365         (libc_feupdateenv_test_ppc): Likewise.
2366         (libc_feupdateenv_ppc): Likewise.
2367
2368         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
2369         of ISA RN bits, and update macro names.
2370         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
2371         effectively the same as the previously mentioned function.
2372
2373         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
2374         usage with fe_resetround_ppc.
2375
2376         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
2377         to be used.
2378         (libc_feholdexcept_setround_ctxf): Likewise.
2379         (libc_feholdexcept_setround_ctxl): Likewise.
2380
2381 2016-10-21  Florian Weimer  <fweimer@redhat.com>
2382
2383         [BZ #20715]
2384         * math/math.h [__cplusplus] (iszero): Define as function template.
2385         * math/Makefile [CXX] (tests): Add test-math-iszero.
2386         (CFLAGS-test-math-iszero.cc): Set.
2387         * math/test-math-iszero.cc: New file.
2388
2389 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
2390
2391         [BZ #20660]
2392         * sysdeps/arm/e_sqrt.c: New file.
2393         * sysdeps/arm/e_sqrtf.c: Likewise.
2394
2395 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
2396
2397         [BZ #20718]
2398         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
2399         not use floating-point comparisons to test sign.
2400         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
2401         Likewise.
2402
2403         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2404         (getpayload): New declaration.
2405         * math/Versions (getpayload): New libm symbol at version
2406         GLIBC_2.25.
2407         (getpayloadf): Likewise.
2408         (getpayloadl): Likewise.
2409         * math/Makefile (libm-calls): Add s_getpayloadF.
2410         * math/libm-test.inc: Include <nan-high-order-bit.h>.
2411         (struct test_f_f_data): Add comment.
2412         (RUN_TEST_fp_f): New macro.
2413         (RUN_TEST_LOOP_fp_f): Likewise.
2414         (getpayload_test_data): New array.
2415         (getpayload_test): New function.
2416         (main): Call getpayload_test.
2417         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
2418         descriptor.
2419         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
2420         getpayloadf and getpayloadl.
2421         * manual/libm-err-tab.pl: Update comment on interfaces without
2422         ulps tabulated.
2423         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
2424         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
2425         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
2426         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
2427         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
2428         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
2429         * sysdeps/nacl/libm.abilist: Update.
2430         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2431         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2432         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2433         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2434         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2435         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2436         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2437         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2438         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2439         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2440         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2441         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2443         Likewise.
2444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2445         Likewise.
2446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2447         Likewise.
2448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2449         Likewise.
2450         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2451         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2452         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2453         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2454         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2455         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2456         Likewise.
2457         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2458         Likewise.
2459         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2460         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2461         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2462
2463 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2464
2465         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
2466         tst-fallocate{64}.
2467         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
2468         on syscall return.
2469
2470 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
2471
2472         [BZ #20689]
2473         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
2474         usable.
2475
2476 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
2477
2478         * sysdeps/generic/nan-high-order-bit.h: New file.
2479         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
2480         * sysdeps/mips/nan-high-order-bit.h: Likewise.
2481         * sysdeps/hppa/math_private.h: Remove file.
2482         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
2483         not define here.
2484         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
2485         <nan-high-order-bit.h>.
2486         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2487         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2488         <nan-high-order-bit.h>.
2489         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2490         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2491         <nan-high-order-bit.h>.
2492         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2493         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
2494         <nan-high-order-bit.h>.
2495         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2496         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2497         <nan-high-order-bit.h>.
2498         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2499         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2500         <nan-high-order-bit.h>.
2501         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2502         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
2503         <nan-high-order-bit.h>.
2504         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2505         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2506         <nan-high-order-bit.h>.
2507         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2508         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2509         <nan-high-order-bit.h>.
2510         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2511         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
2512         <nan-high-order-bit.h>.
2513         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2514         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2515         <nan-high-order-bit.h>.
2516         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2517         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2518         <nan-high-order-bit.h>.
2519         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2520         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
2521         <nan-high-order-bit.h>.
2522         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2523         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
2524         <nan-high-order-bit.h>.
2525         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2526         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
2527         <nan-high-order-bit.h>.
2528         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2529         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
2530         <nan-high-order-bit.h>.
2531         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2532         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2533         <nan-high-order-bit.h>.
2534         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2535         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2536         <nan-high-order-bit.h>.
2537         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2538
2539 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2540
2541         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
2542
2543 2016-09-22  John David Anglin  <dave.anglin@bell.net>
2544
2545         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
2546         abort-instr.h.
2547         (EFAULT): Remove conditional define.
2548         (ENOSYS): Likewise.
2549         (atomic_compare_and_exchange_val_acq): Use instruction nullification
2550         instead of conditional branch instructions.
2551
2552 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
2553
2554         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2555         (totalordermag): New declaration.
2556         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
2557         New macro.
2558         * math/Versions (totalordermag): New libm symbol at version
2559         GLIBC_2.25.
2560         (totalordermagf): Likewise.
2561         (totalordermagl): Likewise.
2562         * math/Makefile (libm-calls): Add s_totalordermagF.
2563         * math/libm-test.inc (totalordermag_test_data): New array.
2564         (totalordermag_test): New function.
2565         (main): Call totalordermag_test.
2566         * math/test-tgmath.c (NCALLS): Increase to 125.
2567         (F(compile_test)): Call totalordermag.
2568         (F(totalordermag)): New function.
2569         * manual/arith.texi (FP Comparison Functions): Document
2570         totalordermag, totalordermagf and totalordermagl.
2571         * manual/libm-err-tab.pl: Update comment on interfaces without
2572         ulps tabulated.
2573         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
2574         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
2575         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
2576         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
2577         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
2578         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
2580         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2581         totalordermag.
2582         (CFLAGS-nldbl-totalordermag.c): New variable.
2583         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
2584         (do_test): Also test totalordermagl.
2585         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
2586         Likewise.
2587         * sysdeps/nacl/libm.abilist: Update.
2588         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2589         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2590         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2591         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2592         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2593         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2594         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2595         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2596         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2597         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2598         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2599         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2601         Likewise.
2602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2603         Likewise.
2604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2605         Likewise.
2606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2607         Likewise.
2608         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2609         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2610         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2611         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2612         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2613         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2614         Likewise.
2615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2616         Likewise.
2617         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2618         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2619         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2620
2621 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
2622
2623         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
2624         boolean.
2625
2626 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
2627
2628         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
2629         raising FE_INVALID with feraisexcept in case where part of
2630         argument is infinite, subtract that part of argument from itself.
2631         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
2632         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
2633         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2634
2635 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2636
2637         * math/libm-test.inc (totalorder_test_data): Add more tests.
2638
2639 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
2640
2641         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
2642         Undefine weak_alias and add a comment why mips64 require
2643         versioning.
2644
2645 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2646
2647         [BZ #20647]
2648         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
2649         maximum CPUID level is less than 2.
2650
2651 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2652
2653         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2654         (totalorder): New declaration.
2655         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
2656         New macro.
2657         * math/Versions (totalorder): New libm symbol at version
2658         GLIBC_2.25.
2659         (totalorderf): Likewise.
2660         (totalorderl): Likewise.
2661         * math/Makefile (libm-calls): Add s_totalorderF.
2662         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
2663         string.
2664         * math/libm-test.inc (PAYLOAD_DIG): New macro.
2665         (qnan_value_pl): Likewise.
2666         (snan_value_pl): Likewise.
2667         (qnan_value): Define using qnan_value_pl.
2668         (snan_value): Define using snan_value_pl.
2669         (struct test_ff_i_data): Add comment about which tests use this
2670         structure.
2671         (RUN_TEST_ff_b): New macro.
2672         (RUN_TEST_LOOP_ff_b): Likewise.
2673         (totalorder_test_data): New array.
2674         (totalorder_test): New function.
2675         (main): Call totalorder_test.
2676         * math/test-tgmath.c (NCALLS): Increase to 122.
2677         (F(compile_test)): Call totalorder.
2678         (F(totalorder)): New function.
2679         * manual/arith.texi (FP Comparison Functions): Document
2680         totalorder, totalorderf and totalorderl.
2681         * manual/libm-err-tab.pl: Update comment on interfaces without
2682         ulps tabulated.
2683         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
2684         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
2685         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
2686         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
2687         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
2688         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
2689         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
2690         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2691         totalorder.
2692         (CFLAGS-nldbl-totalorder.c): New variable.
2693         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
2694         file.
2695         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
2696         Add test-totalorderl-ldbl-128ibm.
2697         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
2698         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
2699         test-totalorderl-ldbl-96.
2700         * sysdeps/nacl/libm.abilist: Update.
2701         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2702         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2703         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2704         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2705         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2706         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2707         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2708         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2709         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2710         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2711         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2712         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2714         Likewise.
2715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2716         Likewise.
2717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2718         Likewise.
2719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2720         Likewise.
2721         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2722         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2723         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2724         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2725         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2727         Likewise.
2728         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2729         Likewise.
2730         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2731         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2732         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2733
2734 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2735
2736         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
2737         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
2738         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
2739         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
2740         remove ENOSYS implementation.
2741         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
2742         Consolidate all Linux implementations.
2743
2744 2016-10-11  Florian Weimer  <fweimer@redhat.com>
2745
2746         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
2747         * resolv/herror.c (herror): Cast away const-ness.
2748         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
2749         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
2750
2751 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
2752
2753         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
2754         instead of M_NAN + M_NAN.
2755         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2756
2757 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2758
2759         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
2760         unused variable 'p'.
2761
2762 2016-10-09  Alan Modra  <amodra@gmail.com>
2763             Andreas Schwab  <schwab@linux-m68k.org>
2764
2765         [BZ #20554]
2766         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
2767         [PIC && !SHARED]: Set up PIC register for PLT call.
2768
2769 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
2770
2771         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
2772         conditional on value of [__FLT_EVAL_METHOD__].
2773         * math/test-iseqsig-excess-precision.c: New file.
2774         * math/Makefile (tests): Add test-iseqsig-excess-precision.
2775
2776 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2777
2778         * math/s_iseqsig_template.c: Include math-private.h.
2779
2780         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
2781         * posix/tst-posix_fadvise.c: New file.
2782         * posix/tst-posix_fadvise64.c: Likewise.
2783         * posix/tst-posix_fadvise-common.c: Likewise.
2784         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2785         (__ASSUME_FADVISE64_64_6ARG): Define.
2786         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2787         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
2788         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2789         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
2790         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
2791         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
2792         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2793         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
2794         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
2795         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
2796         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
2797         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
2798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
2799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
2800         Likewise.
2801         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
2802         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
2803         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
2804         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2805         Alias to __posix_fadvise64_l32.
2806         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
2807         Add compat definition to posix_fadvise64.
2808         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2809         Add versioned definition to posix_fadvise64.
2810         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
2811         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
2812         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
2813         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
2814         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
2815
2816         * io/Makefile (tests): Add tst-posix_fallocate and
2817         tst-posix_fallocate64.
2818         * io/tst-posix_fallocate-common.c: New file.
2819         * io/tst-posix_fallocate.c: Likewise.
2820         * io/tst-posix_fallocate64.c: Likewise.
2821         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
2822         file.
2823         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
2824         Likewise.
2825         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
2826         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
2827         Likewise.
2828         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
2829         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
2830         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
2831         SYSCALL_LL to pass both offset and len arguments.
2832         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
2833         Likewise.
2834         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
2835         __libc_pwrite64 alias used by posix_fallocate64.
2836
2837         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2838         tst-fallocate64.
2839         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2840         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2841         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2842         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2843         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2844         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2845         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2846         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2847         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2848         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2849         macro on offset argument.
2850         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2851         SYSCALL_LL64 on offset argument.
2852
2853         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2854         tst-fallocate64.
2855         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2856         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2857         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2858         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2859         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2860         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2861         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2862         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2863         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2864         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2865         macro on offset argument.
2866         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2867         SYSCALL_LL64 on offset argument.
2868         * test-skeleton.c (FAIL_RET): Add macro.
2869         (FAIL_EXIT): Likewise.
2870         (FAIL_EXIT1): Likewise.
2871         (_FAIL): Likewise.
2872
2873 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2874
2875         [BZ #20629]
2876         resolv: Remove RES_USEBSTRING and its implementation.
2877         * resolv/resolv.h (RES_USEBSTRING): Remove.
2878         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
2879         (digitvalue, encode_bitstring, decode_bitstring): Remove.
2880         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
2881         (labellen): Remove extended label types support.
2882         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
2883         * resolv/res_init.c (res_setoptions): Likewise.
2884         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2885
2886 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2887
2888         resolv: Remove RES_NOIP6DOTINT and its implementation.
2889         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
2890         (RES_NOIP6DOTINT): Remove.
2891         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
2892         handling.
2893         * resolv/res_debug.c (p_option): Likewise.
2894         * resolv/res_init.c (res_setoptions): Likewise.
2895         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2896
2897 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2898
2899         resolv: Deprecate unimplemented flags.
2900         * misc/sys/cdefs.h (__glibc_macro_warning1)
2901         (__glibc_macro_warning): Define.
2902         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
2903         (RES_KEEPTSIG): Mark as deprecated.
2904         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
2905         RES_NOCHECKNAME, RES_KEEPTSIG.
2906         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
2907
2908 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2909
2910         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
2911         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
2912         Use strong_alias to create symbols for glibc verison 2.19.
2913
2914 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2915
2916         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
2917
2918 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2919
2920         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
2921
2922 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2923
2924         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
2925
2926 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2927
2928         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2929         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
2930         in header for using it as type for ifunc function because __GI_* symbols
2931         for ppc32 do not target the ifunc symbols.
2932         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
2933
2934 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2935
2936         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
2937         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
2938         libc_ifunc_hidden_def.
2939         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
2940         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
2941         Redirect ifunced function in header for using it as type of ifunc'ed
2942         function. Redefine libc_hidden_def to use fallback non ifunc'ed
2943         function for __GI_* symbol.
2944         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
2945         * include/libc-symbols.h
2946         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
2947
2948 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2949
2950         [BZ #20478]
2951         * sysdeps/s390/multiarch/ifunc-resolve.h
2952         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
2953         to create ifunc symbols.
2954         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
2955         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
2956         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
2957         for using it as type for ifunc function.
2958         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2959         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
2960         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
2961         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
2962         * sysdeps/s390/multiarch/strcat.c: Likewise.
2963         * sysdeps/s390/multiarch/strchr.c: Likewise.
2964         * sysdeps/s390/multiarch/strcmp.c: Likewise.
2965         * sysdeps/s390/multiarch/strcpy.c: Likewise.
2966         * sysdeps/s390/multiarch/strcspn.c: Likewise.
2967         * sysdeps/s390/multiarch/strlen.c: Likewise.
2968         * sysdeps/s390/multiarch/strncmp.c: Likewise.
2969         * sysdeps/s390/multiarch/strncpy.c: Likewise.
2970         * sysdeps/s390/multiarch/strnlen.c: Likewise.
2971         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
2972         * sysdeps/s390/multiarch/strrchr.c: Likewise.
2973         * sysdeps/s390/multiarch/strspn.c: Likewise.
2974         * sysdeps/s390/multiarch/wcschr.c: Likewise.
2975         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
2976         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
2977         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
2978         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
2979         * sysdeps/s390/multiarch/wmemset.c: Likewise.
2980         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
2981         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
2982         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
2983         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
2984         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
2985         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
2986
2987 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2988
2989         * include/libc-symbols.h (__ifunc_resolver):
2990         New macro is used by __ifunc* macros.
2991         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
2992         depending on HAVE_GCC_IFUNC.
2993         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
2994         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
2995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
2996         Redirect ifunced function in header for using as type for ifunc function.
2997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3001         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
3002         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
3003         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
3004         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
3005         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
3006         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
3007         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
3008         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
3009         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
3010         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
3011         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3016         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
3017         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
3018         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
3019         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
3020         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
3021         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
3022         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
3023         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
3024         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
3025         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
3026         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
3027         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
3028         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
3029         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
3030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
3031         Add libc_hidden_def() and use libc_ifunc_hidden() macro
3032         instead of libc_ifunc() macro.
3033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3034         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
3035
3036 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
3037
3038         * config.h.in (HAVE_GCC_IFUNC): New undef.
3039         * configure.ac: Add check if gcc supports attribute ifunc feature.
3040         * configure: Regenerated.
3041         * manual/install.texi: Add recommendation for gcc with
3042         indirect-function support.
3043         * INSTALL: Regenerated.
3044
3045 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
3046
3047         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
3048         macro.
3049         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3050         (__iseqsig): New declaration.
3051         * math/s_iseqsig_template.c: New file.
3052         * math/Versions (__iseqsigf): New libm symbol at version
3053         GLIBC_2.25.
3054         (__iseqsig): Likewise.
3055         (__iseqsigl): Likewise.
3056         * math/libm-test.inc (iseqsig_test_data): New array.
3057         (iseqsig_test): New function.
3058         (main): Call iseqsig_test.
3059         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
3060         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
3061         * manual/libm-err-tab.pl: Update comment on interfaces without
3062         ulps tabulated.
3063         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
3064         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
3065         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
3066         * sysdeps/nacl/libm.abilist: Update.
3067         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3068         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3069         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3070         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3071         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3072         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3073         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3074         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3075         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3076         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3077         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3078         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3080         Likewise.
3081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3082         Likewise.
3083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3084         Likewise.
3085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3086         Likewise.
3087         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3088         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3089         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3090         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3091         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3092         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3093         Likewise.
3094         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3095         Likewise.
3096         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3097         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3098         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3099
3100 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3101
3102         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
3103         do_sincos_2, sloww, sloww1): Update comments.
3104
3105         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
3106         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
3107
3108         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
3109         K boolean and rename it.
3110         (__sin): Adjust.
3111         (__cos): Adjust.
3112
3113 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3114             Siddhesh Poyarekar  <siddhesh@sourceware.org>
3115
3116         * manual/nss.texi: Fix typos in the manual.
3117
3118 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3119
3120         * manual/contrib.texi: Fix typos in the manual.
3121
3122         * manual/maint.texi: Fix typos in the manual.
3123
3124         * manual/install.texi: Fix typos in the manual.
3125         * INSTALL: Regenerated.
3126
3127         * manual/lang.texi: Fix typos in the manual.
3128
3129         * manual/probes.texi: Fix typos in the manual.
3130
3131         * manual/threads.texi: Fix typos in the manual.
3132
3133         * manual/debug.texi: Fix typos in the manual.
3134
3135         * manual/crypt.texi: Fix typos in the manual.
3136
3137         * manual/conf.texi: Fix typos in the manual.
3138
3139         * manual/sysinfo.texi: Fix typos in the manual.
3140
3141         * manual/users.texi: Fix typos in the manual.
3142
3143         * manual/job.texi: Fix typos in the manual.
3144
3145         * manual/process.texi: Fix typos in the manual.
3146
3147         * manual/argp.texi: Fix typos in the manual.
3148         * manual/getopt.texi: Likewise.
3149         * manual/startup.texi: Likewise.
3150
3151         * manual/signal.texi: Fix typos in the manual.
3152
3153         * manual/setjmp.texi: Fix typos in the manual.
3154
3155         * manual/resource.texi: Fix typos in the manual.
3156
3157         * manual/time.texi: Fix typos in the manual.
3158
3159         * manual/arith.texi: Fix typos in the manual.
3160
3161         * manual/math.texi: Fix typos in the manual.
3162
3163         * manual/syslog.texi: Fix typos in the manual.
3164
3165         * manual/terminal.texi: Fix typos in the manual.
3166
3167         * manual/socket.texi: Fix typos in the manual.
3168
3169         * manual/filesys.texi: Fix typos in the manual.
3170
3171         * manual/llio.texi: Fix typos in the manual.
3172
3173         * manual/stdio.text: Fix typos in the manual.
3174
3175 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3176
3177         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
3178         instead of K1.
3179
3180         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
3181         SHIFT_QUADRANT and make it bool.
3182         (do_sincos_2): Likewise.
3183         (sloww): Likewise.
3184         (sloww1): Likewise.
3185         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
3186         (__cos): Likewise.
3187
3188 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3189
3190         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3191
3192 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
3193
3194         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
3195         Define to __WORDSIZE, not conditional on [LONG_MAX ==
3196         0x7fffffffL].
3197         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3198
3199 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3200
3201         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
3202         inline by __inline__.
3203         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
3204         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
3205         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
3206         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
3207         sigset_t from signal.h.
3208         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
3209         which is already required.
3210
3211 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
3212
3213         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3214
3215 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
3218         (struct tcp_repair_window): New type.
3219
3220 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3221
3222         * libio/tst-memstream3.c: Include string.h.
3223
3224 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3225
3226         [BZ #18241]
3227         [BZ #20181]
3228         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
3229         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
3230         write position is at the end the buffer.
3231         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
3232         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
3233         (_IO_str_seekoff): Set correct offset from negative displacement and
3234         set EINVAL for invalid ones.
3235         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
3236         buffer length.
3237         (_IO_wstr_switch_to_get_mode): New function.
3238         (_IO_wstr_seekoff): Set correct offset from negative displacement and
3239         set EINVAL for invalid ones.
3240         * libio/tst-memstream3.c: New file.
3241         * libio/tst-wmemstream3.c: Likewise.
3242         * manual/examples/memstrm.c: Remove warning when priting size_t.
3243
3244 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3245
3246         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
3247         macro to use __builtin_fma.
3248         * sysdeps/x86_64/fpu/dla.h: Remove file.
3249
3250         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
3251         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
3252         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
3253
3254 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
3255
3256         [BZ #20292]
3257         * elf/Makefile (routines): Add dl-addr-obj.
3258         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
3259         tst-_dl_addr_inside_object.
3260         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
3261         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3262         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
3263         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3264         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
3265         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
3266         * elf/dl-open.c: Likewise.
3267         * elf/dl-addr-obj.c: New file.
3268         * elf/tst-_dl_addr_inside_object.c: New file.
3269
3270 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3271
3272         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
3273         <bits/iscanonical.h>.
3274         * bits/iscanonical.h: New file.
3275         * math/s_iscanonicall.c: Likewise.
3276         * math/Versions (__iscanonicall): New libm symbol at version
3277         GLIBC_2.25.
3278         * math/libm-test.inc (iscanonical_test_data): New array.
3279         (iscanonical_test): New function.
3280         (main): Call iscanonical_test.
3281         * math/Makefile (headers): Add bits/iscanonical.h.
3282         (type-ldouble-routines): Add s_iscanonicall.
3283         * manual/arith.texi (Floating Point Classes): Document
3284         iscanonical.
3285         * manual/libm-err-tab.pl: Update comment on interfaces without
3286         ulps tabulated.
3287         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
3288         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
3289         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
3290         Likewise.
3291         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
3292         test-iscanonical-ldbl-128ibm.
3293         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
3294         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
3295         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
3296         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
3297         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3298         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3299         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3301         Likewise.
3302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3303         Likewise.
3304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3305         Likewise.
3306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3307         Likewise.
3308         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3309         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3310
3311 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3312
3313         * string/bits/string3.h: Remove C++ style comments.
3314
3315 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3316
3317         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
3318         instead of ternary condition.
3319         (do_sincos_2): Likewise.
3320         (__sin): Likewise.
3321         (__cos): Likewise.
3322         (slow): Likewise.
3323         (sloww): Likewise.
3324         (sloww1): Likewise.
3325         (bsloww): Likewise.
3326         (bsloww1): Likewise.
3327
3328         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
3329         instead of ternary condition.
3330         (do_sin_slow): Likewise.
3331         (do_sincos_1): Likewise.
3332         (do_sincos_2): Likewise.
3333         (__cos): Likewise.
3334         (sloww): Likewise.
3335         (sloww1): Likewise.
3336         (sloww2): Likewise.
3337         (bsloww): Likewise.
3338         (bsloww1): Likewise.
3339         (bsloww2): Likewise.
3340
3341         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
3342         check from here...
3343         (slow2): ... and here...
3344         (__sin): ... to here.
3345
3346 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
3347
3348         * math/math.h
3349         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
3350         Cast argument to its own type.
3351         * math/test-iszero-excess-precision.c: New file.
3352         * math/Makefile (tests): Add test-iszero-excess-precision.
3353         (CFLAGS-test-iszero-excess-precision.c): New variable.
3354
3355 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3356
3357         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
3358         field, add err field.
3359         (__spawni_child): Report error through err member instead of pipe.
3360         (__spawnix): Likewise.
3361
3362 2016-09-28  Zack Weinberg  <zackw@panix.com>
3363
3364         * scripts/check-installed-headers.sh: Generalize treatment of
3365         sys/elf.h to all target architectures.
3366
3367         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
3368         deleted typedef ucontext_t.
3369
3370 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3371
3372         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
3373         (__INTERNAL_SYSCALL1): Likewise.
3374         (__INTERNAL_SYSCALL2): Likewise.
3375         (__INTERNAL_SYSCALL3): Likewise.
3376         (__INTERNAL_SYSCALL4): Likewise.
3377         (__INTERNAL_SYSCALL5): Likewise.
3378         (__INTERNAL_SYSCALL6): Likewise.
3379         (__INTERNAL_SYSCALL7): Likewise.
3380         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
3381         (__INTERNAL_SYSCALL_NARGS): Likewise.
3382         (__INTERNAL_SYSCALL_DISP): Likewise.
3383         (INTERNAL_SYSCALL_CALL): Likewise.
3384         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
3385         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
3386         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
3387         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
3388         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
3389         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
3390         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
3391         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
3392         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
3393         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
3394         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
3395         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
3396         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
3397
3398 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
3399
3400         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
3401         macro.
3402         * math/libm-test.inc (iszero_test_data): New array.
3403         (iszero_test): New function.
3404         (main): Call iszero_test.
3405         * manual/arith.texi (Floating Point Classes): Document iszero.
3406         * manual/libm-err-tab.pl: Update comment on interfaces without
3407         ulps tabulated.
3408
3409 2016-09-23  Zack Weinberg  <zackw@panix.com>
3410
3411         * scripts/check-installed-headers.sh: New script.
3412         * Rules: In each directory that defines header files to be installed,
3413         run check-installed-headers.sh on them as a special test.
3414         * Makefile: Likewise for the headers installed at top level.
3415
3416         * include/aliases.h, include/alloca.h, include/argz.h
3417         * include/arpa/nameser.h, include/arpa/nameser_compat.h
3418         * include/elf.h, include/envz.h, include/err.h
3419         * include/execinfo.h, include/fpu_control.h, include/getopt.h
3420         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
3421         * include/link.h, include/malloc.h, include/mcheck.h
3422         * include/mntent.h, include/netinet/ether.h
3423         * include/nss.h, include/obstack.h, include/printf.h
3424         * include/pty.h, include/resolv.h, include/rpc/auth.h
3425         * include/rpc/auth_des.h, include/rpc/auth_unix.h
3426         * include/rpc/clnt.h, include/rpc/des_crypt.h
3427         * include/rpc/key_prot.h, include/rpc/netdb.h
3428         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
3429         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
3430         * include/rpc/rpc_msg.h, include/rpc/svc.h
3431         * include/rpc/svc_auth.h, include/rpc/xdr.h
3432         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
3433         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
3434         * include/rpcsvc/ypupd.h, include/shadow.h
3435         * include/stdio_ext.h, include/sys/epoll.h
3436         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
3437         * include/sys/prctl.h, include/sys/profil.h
3438         * include/sys/statfs.h, include/sys/sysctl.h
3439         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
3440         * sysdeps/arm/nacl/include/bits/setjmp.h
3441         * sysdeps/mips/include/sys/asm.h
3442         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
3443         * sysdeps/unix/sysv/linux/include/sys/timex.h
3444         * sysdeps/x86/fpu/include/bits/fenv.h:
3445         Add #ifndef _ISOMAC guard around internal declarations.
3446         Add multiple-inclusion guard if not already present.
3447
3448 2016-09-23  Zack Weinberg  <zackw@panix.com>
3449
3450         * sysdeps/generic/sys/ucontext.h
3451         * sysdeps/arm/sys/ucontext.h
3452         * sysdeps/i386/sys/ucontext.h
3453         * sysdeps/m68k/sys/ucontext.h
3454         * sysdeps/mips/sys/ucontext.h
3455         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
3456         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
3457         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
3458         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
3459         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
3460         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
3461         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3462         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
3463         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
3464         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
3465         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
3466         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
3467         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
3468         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
3469         Include both bits/sigcontext.h and bits/sigstack.h.
3470         Fix grammar error in comment, if present.
3471
3472         * bits/sigstack.h
3473         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
3474         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
3475         * sysdeps/unix/sysv/linux/bits/sigstack.h
3476         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
3477         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
3478         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
3479         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
3480         * bits/sigcontext.h
3481         * sysdeps/mach/hurd/i386/bits/sigcontext.h
3482         * sysdeps/unix/sysv/linux/bits/sigcontext.h
3483         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
3484         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
3485         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
3486         as well as signal.h, if this was not already allowed.  Request
3487         definition of size_t if necessary.  Minimize semantically-null
3488         differences across files.
3489
3490 2016-09-23  Zack Weinberg  <zackw@panix.com>
3491
3492         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
3493         Remove all logic conditional on __need macros.  Move all the
3494         conditionally defined types to their own headers...
3495         * time/bits/types/clock_t.h: Define clock_t here.
3496         * time/bits/types/clockid_t.h: Define clockid_t here.
3497         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
3498         * time/bits/types/struct_timespec.h: Define struct timespec here.
3499         * time/bits/types/struct_timeval.h: Define struct timeval here.
3500         * time/bits/types/struct_tm.h: Define struct tm here.
3501         * time/bits/types/time_t.h: Define time_t here.
3502         * time/bits/types/timer_t.h: Define timer_t here.
3503         * time/Makefile: Install the new headers.
3504
3505         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
3506         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
3507         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
3508         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
3509         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
3510         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
3511         * sysdeps/unix/sysv/linux/bits/resource.h
3512         * sysdeps/unix/sysv/linux/bits/timex.h
3513         * sysdeps/unix/sysv/linux/mips/bits/resource.h
3514         * sysdeps/unix/sysv/linux/net/ppp_defs.h
3515         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
3516         * sysdeps/unix/sysv/linux/sys/acct.h
3517         * sysdeps/unix/sysv/linux/sys/timerfd.h
3518         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
3519         * time/sys/time.h, time/sys/timeb.h
3520         Use the new bits/types headers.
3521
3522         * include/time.h: Remove __need logic.
3523         * include/bits/time.h
3524         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
3525         * include/bits/types/time_t.h, include/bits/types/timer_t.h
3526         * include/bits/types/struct_itimerspec.h
3527         * include/bits/types/struct_timespec.h
3528         * include/bits/types/struct_timeval.h
3529         * include/bits/types/struct_tm.h:
3530         New wrapper headers.
3531
3532 2016-09-23  Zack Weinberg  <zackw@panix.com>
3533
3534         * sysdeps/mach/hurd/net/if_ppp.h
3535         * sysdeps/unix/sysv/linux/net/if_ppp.h:
3536         Only define struct ifpppstatsreq and struct ifpppcstatsreq
3537         if __USE_MISC is defined, to ensure struct ifreq is declared.
3538
3539         * inet/netinet/ether.h: Condition all function prototypes
3540         on __USE_MISC, to ensure struct ether_addr is declared.
3541
3542         * socket/bits/types/struct_osockaddr.h: New header.
3543         * include/bits/types/struct_osockaddr.h: New wrapper.
3544         * socket/Makefile: Install the new header.
3545         * socket/sys/socket.h, inet/protocols/talkd.h:
3546         Refer to bits/types/struct_osockaddr.h for the definition of
3547         struct osockaddr.
3548
3549 2016-09-23  Zack Weinberg  <zackw@panix.com>
3550
3551         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
3552         * inet/protocols/routed.h, inet/protocols/talkd.h
3553         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
3554         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
3555         * sysdeps/generic/netinet/if_ether.h
3556         * sysdeps/generic/netinet/in_systm.h
3557         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
3558         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3559         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
3560         * sysdeps/mach/hurd/net/if_arp.h
3561         * sysdeps/mach/hurd/net/if_ppp.h
3562         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
3563         * sysdeps/unix/sysv/linux/bits/in.h
3564         * sysdeps/unix/sysv/linux/net/ethernet.h
3565         * sysdeps/unix/sysv/linux/net/if_arp.h
3566         * sysdeps/unix/sysv/linux/net/if_ppp.h
3567         * sysdeps/unix/sysv/linux/net/if_shaper.h
3568         * sysdeps/unix/sysv/linux/net/route.h
3569         * sysdeps/unix/sysv/linux/netinet/if_ether.h
3570         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3571         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3572         * sysdeps/unix/sysv/linux/netipx/ipx.h
3573         * sysdeps/unix/sysv/linux/sys/acct.h
3574         * include/arpa/nameser.h, include/resolv.h:
3575         Change all uses of u_char to unsigned char,
3576         u_short and ushort to unsigned short, u_int and uint to unsigned int,
3577         u_long and ulong to unsigned long, u_int8_t to uint8_t,
3578         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
3579         and u_int64_t and u_quad_t to uint64_t.
3580
3581         * mach/sys/reboot.h: Remove two casts of integer literals
3582         to the types they already have.
3583
3584         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
3585         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3586         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
3587         from referring to 'unsigned char' to 'uint8_t' for consistency with
3588         the macro definition below.
3589
3590         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
3591         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
3592         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
3593         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
3594         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
3595         * sysdeps/unix/sysv/linux/sys/acct.h
3596         * include/arpa/nameser.h, include/resolv.h:
3597         Fix indentation disrupted by mechanical edits.
3598
3599         * inet/protocols/talkd.h, resolv/arpa/nameser.h
3600         * sysdeps/generic/netinet/in_systm.h
3601         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3602         * sysdeps/gnu/netinet/udp.h
3603         * sysdeps/unix/sysv/linux/net/ethernet.h
3604         * sysdeps/unix/sysv/linux/net/if_arp.h
3605         * sysdeps/unix/sysv/linux/net/if_ppp.h
3606         * sysdeps/unix/sysv/linux/net/if_shaper.h
3607         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3608         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3609         * sysdeps/unix/sysv/linux/netipx/ipx.h
3610         * sysdeps/unix/sysv/linux/sys/acct.h
3611         Include stdint.h for uintNN_t definitions.
3612         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
3613
3614 2016-09-23  Zack Weinberg  <zackw@panix.com>
3615
3616         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
3617         * sysdeps/unix/sysv/linux/netrose/rose.h:
3618         Include sys/socket.h and netax25/ax25.h.
3619
3620         * inet/netinet/icmp6.h, inet/netinet/ip6.h
3621         * resolv/arpa/nameser_compat.h:
3622         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
3623
3624         * sysdeps/unix/sysv/linux/sys/quota.h:
3625         Use __caddr_t instead of caddr_t.
3626         * sysdeps/unix/sysv/linux/sys/timerfd.h:
3627         Use __clockid_t instead of clockid_t.
3628
3629         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
3630
3631         * argp/argp.h: Check whether _LIBC is defined before expanding it.
3632         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
3633         expanding it.
3634
3635         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
3636         Define __glibc_c99_flexarr_available to 1 when the compiler
3637         supports C99-compatible flexible array members, 0 otherwise.
3638         * sysdeps/unix/sysv/linux/bits/socket.h
3639         * sysdeps/mach/hurd/bits/socket.h
3640         * bits/socket.h: Use __glibc_c99_flexarr_available in
3641         definitions of struct cmsghdr and CMSG_DATA.
3642
3643 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3644
3645         * manual/nss.texi (NSS Modules Interface): Adjust function return
3646         type to enum nss_status.  Document errnop argument.  Clarify
3647         h_errnop semantics.  Fix cross-reference formatting.
3648         (NSS Module Function Internals): Mention that *errnop needs to be
3649         set on failure, but not to zero.
3650
3651 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3652
3653         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
3654         (get_random_name): New functions.
3655         (check_wrapper_flags_mode): Use linkat to give the new file a name
3656         determined by get_random_name.
3657         (do_test): Add calls to test open64 and openat64.
3658
3659 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3660
3661         * test-skeleton.c: Remove #include <stdarg.h>.
3662
3663 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
3664
3665         [BZ #19826]
3666         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
3667         initialization of static TLS entries.
3668         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
3669         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3670
3671 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3672
3673         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
3674         _hurd_malloc_fork_prepare.
3675         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
3676         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
3677         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
3678         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
3679         (_hurd_fork_child_hook): Drop malloc_fork_child.
3680         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
3681         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
3682         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
3683         after locking locks (notably hurd_dtable_lock). Call
3684         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
3685         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
3686         __malloc_fork_unlock_child.
3687         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
3688
3689 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
3690
3691         * soft-fp/extendhftf2.c: New.
3692         * soft-fp/fixhfti.c: Likewise.
3693         * soft-fp/fixunshfti.c: Likewise.
3694         * soft-fp/floattihf.c: Likewise.
3695         * soft-fp/floatuntihf.c: Likewise.
3696         * soft-fp/half.h: Likewise.
3697         * soft-fp/trunctfhf2.c: Likewise.
3698
3699 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
3700
3701         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
3702         macro.
3703         * math/libm-test.inc (issubnormal_test_data): New array.
3704         (issubnormal_test): New function.
3705         * manual/arith.texi (Floating Point Classes): Document
3706         issubnormal.
3707         * manual/libm-err-tab.pl: Update comment on interfaces without
3708         ulps tabulated.
3709
3710         * sysdeps/generic/stdint.h: Define
3711         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3712         <bits/libc-header-start.h> instead of including <features.h>.
3713         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
3714         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
3715         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
3716         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
3717         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
3718         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
3719         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
3720         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
3721         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
3722         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
3723         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
3724         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
3725         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
3726         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
3727         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
3728         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
3729         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
3730         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
3731         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
3732         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
3733         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
3734         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
3735         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
3736         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
3737         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
3738         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
3739         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
3740         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
3741         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
3742         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
3743         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
3744         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
3745         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
3746         * manual/arith.texi (Integers): Document these macros for types
3747         specified by width properties.
3748         * manual/lang.texi (Width of Type): Document these macros for
3749         other standard typedefs.
3750         * stdlib/tst-width-stdint.c: New file.
3751         * stdlib/Makefile (tests): Add tst-width-stdint.
3752
3753 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3754
3755         [BZ #20016]
3756         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
3757         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
3758         Move ...
3759         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
3760         ... here, as compatibility symbols in a new file.
3761         * resolv/Makefile (libresolv-routines): Add compat-hooks.
3762         * resolv/res_init.c (__res_vinit): Adjust member names.
3763         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
3764         * resolv/resolv.h (res_sendhookact, res_send_qhook)
3765         (res_send_rhook): Remove.
3766         (struct __res_state): Rename qhook, rhook members.
3767
3768 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3769
3770         malloc: Use __libc_lock wrappers.
3771         * malloc/arena.c (list_lock, free_list_lock): Define using
3772         __libc_lock_define_initialized.
3773         (arena_lock): Adjust formatting.
3774         * malloc/malloc.c (struct malloc_state): Define mutex using
3775         __libc_lock_define.
3776         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
3777         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
3778         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
3779         (mutex_unlock, mutex_trylock): Remove.
3780         (__pthread_initialize): Remove unused macro.
3781         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
3782         (mutex_unlock, mutex_trylock): Remove.
3783
3784 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3785
3786         [BZ #20592]
3787         Remove RR type classification macros.
3788         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
3789         (ns_t_udp_p, ns_t_xfr_p): Remove.
3790
3791 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3792
3793         Remove misleading version information.
3794         * resolv/arpa/nameser.h (__NAMESER): Remove.
3795         * resolv/arpa/nameser_compat.h (__BIND): Remove.
3796
3797 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3798
3799         Remove the always-defined BIND_4_COMPAT macro.
3800         * resolv/arpa/nameser.h: Unconditionally include
3801         <arpa/nameser_compat.h>.
3802         (BIND_4_COMPAT): Remove.
3803         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
3804
3805 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3806
3807         [BZ #20591]
3808         Remove obsolete DNSSEC support.
3809         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
3810         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
3811         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
3812         (ns_verify_tcp, ns_verify_tcp_init): Remove.
3813         (ns_cert_types): Add comment.
3814         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
3815         separately.
3816         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
3817         (dst_s_dns_key_id): Remove.
3818         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
3819         variables.
3820
3821 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3822
3823         [BZ #20524]
3824         * manual/string.texi (String/Array Comparison): Clarify the
3825         strverscmp behavior.
3826
3827 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3828
3829         * test-skeleton.c (xasprintf): Add function.
3830         * io/tst-open-tmpfile.c: New test.
3831         * io/Makefile (tests): Add it.
3832
3833 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3834
3835         Avoid running $(CXX) during build to obtain header file paths.
3836         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
3837         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
3838         * Makerules (cstdlib, cmath): Remove variables.  Use
3839         $(c++-cstdlib-header), $(c++-cmath-header) instead.
3840         * configure: Regenerate.
3841
3842 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3843
3844         * Makeconfig (all-object-suffixes): Include .op only if
3845         $(build-profile).
3846
3847 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3848
3849         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
3850         conditionals.  Do not define PATH_MAX.
3851
3852 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3853
3854         * posix/Makefile (tests): Add tst-spawn3.
3855         * posix/tst-spawn3.c: New file.
3856         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
3857         if it is already opened for open action.
3858
3859         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
3860         all signals when executing the clone vfork child.
3861         (SIGALL_SET): Remove macro.
3862
3863         * nptl/Makefile (tests): Add tst-exec5.
3864         * nptl/tst-exec5.c: New file.
3865         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
3866         asynchronous cancellation.
3867
3868 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3869
3870         * hurd/exc2signal.c: #include <hurd/signal.h>
3871         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
3872         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
3873         accordingly.
3874         * mach/mach_error.c (mach_error): Fix old-style function definition.
3875         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
3876
3877 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3878
3879         * math/Makefile (libm-calls): Remove s_nanF.
3880         (gen-libm-calls): Add s_nanF.
3881
3882         * math/s_nan.c: Refactor into ...
3883         * math/s_nan_template.c: New file.
3884
3885         * math/s_nanf.c: Removed.
3886         * math/s_nanl.c: Removed.
3887         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
3888         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
3889
3890         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
3891         (LDOUBLE_nanl_libm_version): New macro.
3892
3893         * sysdeps/generic/math-type-macros-double.h:
3894         (M_STRTO_NAN): New macro.
3895         * sysdeps/generic/math-type-macros-float.h: Likewise.
3896         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3897
3898         * sysdeps/generic/math-type-macros.h: Document
3899         M_STRTO_NAN.
3900
3901 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3902
3903         * math/s_nanf.c: Remove __nanf undef.
3904         * math/s_nan.c: Remove __nan undef.
3905         * math/s_nanl.c: Remove __nanl undef.
3906
3907         * sysdeps/generic/math_private.h (__nan): Remove macro
3908         override.
3909         (__nanf): Likewise.
3910         (__nanl): Likewise.
3911
3912 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3913
3914         * math/Makefile (gen-all-calls): New variable.
3915         (generated): Replace gen-libm-calls with gen-all-calls.
3916         (gen-libm-templates.stmp): Likewise.  Also, ensure
3917         the output directory exists or is created and add
3918         dependency on the Makefile.
3919         (calls): Move s_ldexpF into gen-calls.
3920         (gen-calls): New variable.
3921
3922         * math/s_ldexpf.c: Removed.
3923         * math/s_ldexpl.c: Removed.
3924         * math/s_ldexp.c: Refactored into ...
3925         * math/s_ldexp_template.c: New file.
3926
3927         * sysdeps/generic/math-type-macros-double.h: Remove
3928         redundant fall-through definition of declare_mgen_alias.
3929         (declare_mgen_alias_2): New macro.
3930
3931         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
3932         New macro for function aliased to two exported symbols.
3933
3934         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
3935         new template file.
3936         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
3937
3938 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3939
3940         * Makeconfig (all-object-suffixes): Remove .og.
3941         * Makerules (elide-routines.og): Remove.
3942         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
3943         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
3944         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
3945
3946 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3947
3948         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
3949         .os objects.
3950
3951 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3952
3953         [BZ #20615]
3954         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
3955         fpu directory by non-fpu.
3956         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
3957         on non-fpu directory from a fpu directory.
3958
3959 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3960
3961         * include/limits.h: Define
3962         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3963         <bits/libc-header-start.h> instead of including <features.h>.
3964         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
3965         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
3966         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
3967         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
3968         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
3969         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
3970         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
3971         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
3972         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3973         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
3974         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
3975         * manual/lang.texi (Width of Type): Document these macros.
3976         * stdlib/tst-width.c: New file.
3977         * stdlib/Makefile (tests): Add tst-width.
3978
3979 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3980
3981         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
3982         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
3983
3984 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3985
3986         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
3987         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3988         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3989
3990 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3991
3992         [BZ #18243]
3993         * rt/Makefile (test): Add tst-shm-cancel.
3994         * rt/tst-shm-cancel.c: New file.
3995         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
3996
3997         [BZ #18243]
3998         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
3999         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
4000         definition.
4001         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
4002         uncontended case.
4003         * nptl/sem_wait.c (__new_sem_wait): Likewise.
4004         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
4005         (tf): Fix check for uncontended case.
4006         (do_test): Likewise.
4007         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
4008         (tf): Fix check for uncontended case.
4009         (do_test): Likewise.
4010         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
4011         (tf): Fix check for uncontended case.
4012         (do_test): Likewise.
4013         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
4014         (tf): Fix check for uncontended case.
4015         (do_test): Likewise.
4016
4017         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
4018         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
4019
4020         [BZ #15765]
4021         * nptl/Makefile (tests): Add tst-sem16.
4022         * nptl/tst-sem16.c: New file.
4023         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
4024
4025         * nptl/sem_open.c (sem_open): Init pad value to 0.
4026         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
4027         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
4028
4029 2016-09-15  Florian Weimer  <fweimer@redhat.com>
4030
4031         [BZ #20611]
4032         * inet/Makefile (routines): Add inet6_scopeid_pton.
4033         (tests): Add tst-inet6_scopeid_pton.
4034         * inet/inet6_scopeid_pton.c: New file.
4035         * inet/net-internal.h: Likewise.
4036         * inet/tst-inet6_scopeid_pton.c: New test.
4037         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
4038         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
4039         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4040
4041 2016-09-14  Florian Weimer  <fweimer@redhat.com>
4042
4043         Remove support for compiling wrappers with PTW.
4044         * sysdeps/nptl/Makeconfig: Drop ptw- support.
4045         * nptl/Makefile (pthread-compat-wrappers): Define.
4046         (libpthread-routines): Use pthread-compat-wrappers.
4047         * sysdeps/unix/sysv/linux/alpha/Makefile
4048         (libpthread-routines, libpthread-shared-only-routines): Remove
4049         ptw- prefix.
4050         * sysdeps/s390/nptl/Makefile
4051         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4052         * sysdeps/ia64/nptl/Makefile
4053         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4054         * sysdeps/nacl/Makefile (libpthread-routines): Use
4055         pthread-compat-wrappers to filter the routines list instead of the
4056         ptw- prefix.
4057
4058 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4059
4060         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
4061         with L() and remove explicit suffix, convert real literals
4062         which can be equivalentally substituted with integers, and
4063         transform -L(x) to L(-x).
4064
4065         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4066         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4067         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4068         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4069         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4070         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4071         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4072         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4073         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4074         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4075         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4076         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4077         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4078         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4079         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4080         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4081         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4082         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4083         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4084         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4085         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4086         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4087         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4088         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4089         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4090         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4091         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4092         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4093         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4094         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4095         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4096         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4097         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4098         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4099         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4100         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4101         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4102         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4103         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4104         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4105         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4106         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4107         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4108         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4109         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4110         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4111         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4112         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4113         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4114         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4115
4116 2016-09-13  Florian Weimer  <fweimer@redhat.com>
4117
4118         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
4119
4120 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4121
4122         * malloc/Makefile (tests): Remove individual static test names
4123         and just add all of tests-static.
4124
4125         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
4126
4127 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
4128
4129         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
4130         file.
4131
4132         * sysdeps/sparc/fpu/fegetmode.c: New file.
4133         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
4134
4135         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
4136         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
4137
4138         * sysdeps/s390/fpu/fegetmode.c: New file.
4139         * sysdeps/s390/fpu/fesetmode.c: Likewise.
4140
4141         * sysdeps/powerpc/fpu/fegetmode.c: New file.
4142         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
4143         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
4144         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
4145         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
4146         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
4147
4148         * sysdeps/mips/fpu/fegetmode.c: New file.
4149         * sysdeps/mips/fpu/fesetmode.c: Likewise.
4150
4151         * sysdeps/m68k/fpu/fegetmode.c: New file.
4152         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
4153
4154         * sysdeps/ia64/fpu/fegetmode.c: New file.
4155         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
4156
4157         * sysdeps/hppa/fpu/fegetmode.c: New file.
4158         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
4159
4160         * sysdeps/arm/fegetmode.c: New file.
4161         * sysdeps/arm/fesetmode.c: Likewise.
4162
4163         * sysdeps/alpha/fpu/fegetmode.c: New file.
4164         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
4165
4166         * sysdeps/aarch64/fpu/fegetmode.c: New file.
4167         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
4168
4169         * math/fegetmode.c: New file.
4170         * math/fesetmode.c: Likewise.
4171         * sysdeps/i386/fpu/fegetmode.c: Likewise.
4172         * sysdeps/i386/fpu/fesetmode.c: Likewise.
4173         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
4174         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
4175         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
4176         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
4177         declaration.
4178         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
4179         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
4180         typedef.
4181         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4182         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4183         (femode_t): New typedef.
4184         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4185         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4186         (femode_t): New typedef.
4187         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4188         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4189         (femode_t): New typedef.
4190         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4191         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4192         (femode_t): New typedef.
4193         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4194         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4195         (femode_t): New typedef.
4196         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4197         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4198         (femode_t): New typedef.
4199         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4200         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4201         (femode_t): New typedef.
4202         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4203         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4204         (femode_t): New typedef.
4205         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4206         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4207         (femode_t): New typedef.
4208         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4209         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4210         (femode_t): New typedef.
4211         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
4212         declaration.
4213         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4214         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4215         (femode_t): New typedef.
4216         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4217         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4218         (femode_t): New typedef.
4219         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4220         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4221         (femode_t): New typedef.
4222         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4223         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4224         (femode_t): New typedef.
4225         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4226         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4227         (femode_t): New typedef.
4228         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4229         * manual/arith.texi (FE_DFL_MODE): Document macro.
4230         (fegetmode): Document function.
4231         (fesetmode): Likewise.
4232         * math/Versions (fegetmode): New libm symbol at version
4233         GLIBC_2.25.
4234         (fesetmode): Likewise.
4235         * math/Makefile (libm-support): Add fegetmode and fesetmode.
4236         (tests): Add test-femode and test-femode-traps.
4237         * math/test-femode-traps.c: New file.
4238         * math/test-femode.c: Likewise.
4239         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
4240         alias for __fe_dfl_env.
4241         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
4242         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
4243         (__fe_dfl_mode): Likewise.
4244         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
4245         version GLIBC_2.25.
4246         * sysdeps/nacl/libm.abilist: Update.
4247         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4248         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4249         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4250         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4251         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4252         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4253         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4254         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4255         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4256         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4257         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4258         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4260         Likewise.
4261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4262         Likewise.
4263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4264         Likewise.
4265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4266         Likewise.
4267         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4268         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4269         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4270         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4271         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4272         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4273         Likewise.
4274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4275         Likewise.
4276         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4277         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4278         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4279
4280 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4281
4282         [BZ #20495]
4283         [BZ #20508]
4284         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
4285         processors, set Use_dl_runtime_resolve_slow and set
4286         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
4287         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
4288         New.
4289         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
4290         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
4291         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
4292         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
4293         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
4294         if Use_dl_runtime_resolve_opt is set.  Use
4295         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
4296         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
4297         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
4298         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
4299         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
4300         New.
4301         (_dl_runtime_resolve_opt): Likewise.
4302         (_dl_runtime_profile): Define only if _dl_runtime_profile is
4303         defined.
4304
4305 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4306
4307         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
4308         __libc_memalign with "+ RELA R_390_GLOB_DAT".
4309
4310 2016-09-06  Florian Weimer  <fweimer@redhat.com>
4311
4312         Convert malloc to __libc_lock.  Automated part, using this Perl
4313         s/// command:
4314           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
4315             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
4316         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
4317         conversion.
4318
4319 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
4320
4321         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
4322         (linknamespace-symlists-tests): Likewise.
4323         (linknamespace-header-tests): Likewise.
4324
4325 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
4326
4327         [BZ #19810]
4328         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
4329         * elf/tst-noload.c: New test case.
4330         * elf/Makefile (tests): Add tst-noload.
4331
4332 2016-09-02  Roland McGrath  <roland@hack.frob.com>
4333
4334         * sysdeps/nacl/dup.c: Add libc_hidden_def.
4335
4336         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
4337         not any more.
4338
4339         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
4340
4341 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4342
4343         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
4344         (do_cos_slow): Likewise.
4345         (do_sin): Likewise.
4346         (do_sin_slow): Likewise.
4347         (slow): Likewise.
4348         (slow1): Likewise.
4349         (slow2): Likewise.
4350         (sloww): Likewise.
4351         (sloww1): Likewise.
4352         (sloww2): Likewise.
4353         (bsloww): Likewise.
4354         (bsloww1): Likewise.
4355         (bsloww2): Likewise.
4356         (cslow2): Likewise.
4357
4358         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
4359
4360         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
4361         arguments.  Consolidate input partitioning from callers here.
4362         (do_cos_slow): Likewise.
4363         (do_sin): Likewise.
4364         (do_sin_slow): Likewise.
4365         (do_sincos_1): Remove the no longer necessary input partitioning.
4366         (do_sincos_2): Likewise.
4367         (__sin): Likewise.
4368         (__cos): Likewise.
4369         (slow1): Likewise.
4370         (slow2): Likewise.
4371         (sloww1): Likewise.
4372         (sloww2): Likewise.
4373         (bsloww1): Likewise.
4374         (bsloww2): Likewise.
4375         (cslow2): Likewise.
4376
4377 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4378
4379         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
4380         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
4381         outside of allocated array.
4382
4383 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4384
4385         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
4386         instead of MB_CUR_MAX to avoid variable-length array.
4387
4388 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4389
4390         * math/Makefile (libm-calls): Remove k_rem_pio2F.
4391         (type-double-routines): Add k_rem_pio2.
4392         (type-float-routines): Add k_rem_pio2f.
4393
4394         * sysdeps/generic/math_private.h:
4395         (__kernel_rem_pio2l): Removed.
4396
4397         * math/k_rem_pio2l.c: Removed.
4398         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
4399         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
4400         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
4401         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
4402
4403 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4404
4405         * math/Makefile (gen-libm-calls): Add s_fmin
4406         (libm-calls): Remove above.
4407
4408         * math/s_fmin.c: Refactor into ...
4409         * math/s_fmin_template.c: New file.
4410
4411         * math/s_fminf.c: Removed.
4412         * math/s_fminl.c: Removed.
4413         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4414         (LDOUBLE_fmin_libm_version): New macro.
4415
4416         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
4417         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
4418
4419 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4420
4421         * math/Makefile: (gen-libm-calls): Add s_fmax.
4422         (libm-calls): Remove above.
4423
4424         * math/s_fmax.c: Refactor into ...
4425         * math/s_fmax_template.c: New file.
4426         * math/s_fmaxf.c: Removed.
4427         * math/s_fmaxl.c: Removed.
4428
4429         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4430         (LDOUBLE_fmaxl_libm_version): New macro.
4431
4432         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
4433         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
4434
4435         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
4436         s_fmin.c to pick the aarch64 version of the file.
4437         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
4438         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
4439
4440 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4441
4442         * math/Makefile: (gen-libm-calls): Add s_nextdown.
4443         (libm-calls): Remove above.
4444
4445         * math/s_nextdown.c: Refactor into ...
4446         * math/s_nextdown_template.c: New file.
4447         * math/s_nextdownf.c: Removed.
4448         * math/s_nextdownl.c: Removed.
4449
4450         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
4451
4452 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4453
4454         * math/Makefile (gen-libm-calls): Add s_fdim.
4455         (libm-calls): Move to above.
4456
4457         * math/s_fdim.c: Renamed and refactored into to ...
4458         * math/s_fdim_template.c: New file.
4459         * math/s_fdiml.c: Removed.
4460         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
4461         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
4462
4463         * sysdeps/generic/math-type-macros-double.h:
4464         (declare_mgen_alias): Don't declare if already declared.
4465         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
4466         Likewise.
4467
4468         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4469         (declare_mgen_alias): Don't declare if already declared.
4470         (M_LIBM_NEED_COMPAT): Likewise.
4471         (declare_mgen_libm_compat): Likewise.
4472         (LDOUBLE_fdiml_libm_version): New macro.
4473
4474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4475         Include math/s_fdim.c now that ldbl-opt version is not needed.
4476         (declare_mgen_alias): New macro to disable aliasing.
4477
4478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
4479         (declare_mgen_alias): Likewise.
4480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
4481         (declare_mgen_alias): Likewise.
4482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
4483         (declare_mgen_alias): Likewise.
4484         (M_LIBM_NEED_COMPAT): Likewise.
4485
4486 2016-09-01  Florian Weimer  <fweimer@redhat.com>
4487
4488         [BZ #20525]
4489         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
4490         Include <linux/quota.h>.
4491         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
4492         and btodb.
4493         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
4494         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
4495         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
4496         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
4497         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
4498         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
4499         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
4500         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
4501         types.
4502         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
4503         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
4504
4505 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4506
4507         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
4508         (gammal_positive): Fix spacing.
4509         (__ieee754_gammal_r): Likewise.
4510
4511 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4512
4513         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
4514         (_Float128): Define as long double, always.
4515         (L): Apply long double type suffix, always.
4516
4517         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
4518         _Float128, excepting comments.
4519
4520         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4521         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4522         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4523         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4524         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4525         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4526         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4527         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4528         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4529         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
4530         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4531         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4532         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4533         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4534         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4535         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4536         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4537         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4538         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4539         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4540         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4541         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4542         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4543         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4544         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4545         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4546         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4547         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4548         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4549         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4550         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4551         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4552         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4553         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4554         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4555         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4556         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4557         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4558         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4559         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4560         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4561         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4562         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4563         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4564         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4565         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4566         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4567         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4568         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4569         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4570         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4571         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4572         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4573         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4574         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4575         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4576         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4577         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4578         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4579         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4580         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4581         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4582         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4583         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4584         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4585         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4586         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4587         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4588
4589         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
4590         _Float128, and include math_private.h.
4591         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4592
4593         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
4594         long double semantics.
4595         (_Float128): Likewise.
4596         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
4597         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4598         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4599         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4600
4601 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4602
4603         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
4604         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
4605         * sysdeps/s390/configure: Regenerated.
4606         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
4607         instruction for raising over-/underflow if z196 zarch is supported
4608         by default.
4609         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
4610
4611 2016-08-30  Svante Signell  <svante.signell@gmail.com>
4612
4613         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
4614         it point to a dumb buffer for RPC to fill it.
4615
4616 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4617
4618         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
4619         instead of if/else.
4620         (do_sin_slow): Likewise.
4621         (do_sincos_1): Use fabs instead of if/else.
4622         (do_sincos_2): Likewise.
4623         (__sin): Likewise.
4624         (__cos): Likewise.
4625         (slow2): Likewise.
4626         (sloww): Likewise.
4627         (sloww1): Likewise.  Drop argument M.
4628         (sloww2): Use fabs instead of if/else.
4629         (bsloww): Likewise.
4630         (bsloww1): Likewise.
4631         (bsloww2): Likewise.
4632
4633         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
4634         fall through comment.
4635         (do_sincos_1): Likewise.
4636
4637         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
4638         Consolidate switch cases 0 and 2.
4639
4640 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4641
4642         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
4643         (libm-calls): Remove the above.
4644
4645         * math/s_cexp_template.c: Update using type-generic macros.
4646         * math/s_clog10_template.c: Likewise.
4647         * math/s_cpow_template.c: Likewise.
4648         * math/s_clog_template.c: Likewise.
4649         * math/s_cproj_template.c: Likewise.
4650         * math/s_csqrt_template.c: Likewise.
4651
4652         * math/s_cexp.c: Removed.
4653         * math/s_cexpf.c: Removed.
4654         * math/s_cexpl.c: Removed.
4655         * math/s_clog10.c: Removed.
4656         * math/s_clog10f.c: Removed.
4657         * math/s_clog10l.c: Removed.
4658         * math/s_cpow.c: Removed.
4659         * math/s_cpowf.c: Removed.
4660         * math/s_cpowl.c: Removed.
4661         * math/s_clog.c: Removed.
4662         * math/s_clogf.c: Removed.
4663         * math/s_clogl.c: Removed.
4664         * math/s_cproj.c: Removed.
4665         * math/s_cprojf.c: Removed.
4666         * math/s_cprojl.c: Removed.
4667         * math/s_csqrt.c: Removed.
4668         * math/s_csqrtf.c: Removed.
4669         * math/s_csqrtl.c: Removed.
4670
4671         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
4672         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
4673         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
4674         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
4675         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
4676         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
4677
4678         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
4679         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
4680         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
4681         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
4682         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
4683         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
4684         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
4685         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
4686         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
4687         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
4688         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
4689
4690         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
4691         version.
4692
4693         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
4694         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
4695         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
4696         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
4697
4698 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4699
4700         * s_cexp_template.c: Copy of s_cexp.c.
4701         * s_clog_template.c: Copy of s_clog.c.
4702         * s_clog10_template.c: Copy of s_clog10.c.
4703         * s_cpow_template.c: Copy of s_cpow.c.
4704         * s_cproj_template.c: Copy of s_cproj.c.
4705         * s_csqrt_template.c: Copy of s_csqrt.c.
4706
4707 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4708
4709         [BZ #20517]
4710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4711         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
4712         exported.
4713
4714 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
4715
4716         * math/fetestexceptflag.c: New file.
4717         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
4718         Stefan Liebler.
4719         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4720         (fetestexceptflag): New function declaration.
4721         * manual/arith.texi (fetestexceptflag): Document function.
4722         * math/Versions (fetestexceptflag): New libm symbol at version
4723         GLIBC_2.25.
4724         * math/Makefile (libm-support): Add fetestexceptflag.
4725         (tests): Add test-fetestexceptflag.
4726         * math/test-fetestexceptflag.c: New file.
4727         * sysdeps/nacl/libm.abilist: Update.
4728         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4729         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4730         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4731         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4732         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4733         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4734         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4735         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4736         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4737         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4738         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4739         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4741         Likewise.
4742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4743         Likewise.
4744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4745         Likewise.
4746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4747         Likewise.
4748         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4749         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4750         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4751         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4752         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4754         Likewise.
4755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4756         Likewise.
4757         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4758         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4759         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4760
4761 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4762
4763         [BZ #20432]
4764         Avoid strong references to malloc-internal symbols when linking
4765         statically, to support statically interposed mallocs.
4766         * include/libc-symbols.h (call_function_static_weak): New macro.
4767         * malloc/Makefile (tests): Add tst-interpose-nothread,
4768         tst-interpose-thread, tst-interpose-static-nothread,
4769         tst-interpose-static-thread.
4770         (tests-static): Add tst-interpose-static-nothread,
4771         tst-interpose-static-thread.
4772         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
4773         tst-interpose-aux-thread.o.
4774         (test-extras): Add tst-interpose-aux-nothread,
4775         tst-interpose-aux-thread.
4776         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
4777         tst-interpose-aux-nothread.o.
4778         (tst-interpose-thread, tst-interpose-static-thread): Link with
4779         tst-interpose-aux-thread.o and libthread.
4780         * malloc/tst-interpose-aux-nothread.c: New file.
4781         * malloc/tst-interpose-aux-thread.c: Likewise.
4782         * malloc/tst-interpose-aux.c: Likewise.
4783         * malloc/tst-interpose-aux.h: Likewise.
4784         * malloc/tst-interpose-nothread.c: Likewise.
4785         * malloc/tst-interpose-skeleton.c: Likewise.
4786         * malloc/tst-interpose-static-nothread.c: Likewise.
4787         * malloc/tst-interpose-static-thread.c: Likewise.
4788         * malloc/tst-interpose-thread.c: Likewise.
4789         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
4790         * sysdeps/mach/hurd/fork.c (__fork): Only call
4791         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
4792         __malloc_fork_unlock_child if defined.
4793         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4794
4795 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4796
4797         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
4798         timespec C99 designated initialization.
4799
4800 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4801
4802         [BZ #19946]
4803         Avoid expected SIGALRM signals.
4804         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
4805         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
4806         (xpthread_create, xpthread_detach, xpthread_join)
4807         (delayed_exit_thread, delayed_exit): New functions.
4808         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
4809         (tf): Use xpthread_cond_wait.
4810         (do_test): Likewise.  Replace alarm with delayed_exit.
4811         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4812         (do_test): Call delayed_exit.  Report failure.
4813         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4814         (do_test): Call delayed_exit.
4815         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4816         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
4817         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4818         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
4819         error.
4820         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4821         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
4822         error.
4823         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
4824         (do_test): Call delayed_exit.
4825         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
4826         (do_test): Call delayed_exit.
4827         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
4828         (do_test): Call delayed_exit instead of alarm.  Use
4829         xpthread_mutex_lock.
4830         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
4831         (do_test): Call delayed_exit instead of alarm.  Use
4832         xpthread_mutex_lock.
4833         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
4834         (do_test): Call delayed_exit instead of alarm.
4835         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
4836         (do_test): Call delayed_exit instead of alarm.  Use
4837         xpthread_spin_lock.
4838         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
4839         (do_test): Call delayed_exit instead of alarm.  Use
4840         xpthread_join.
4841
4842 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4843
4844         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
4845         adjust CFA when allocating register save area on re-aligned
4846         stack.
4847
4848 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4849
4850         * string/tst-cmp.c: New test.
4851         * string/Makefile (tests): Add it.
4852
4853 2016-08-25  Mark Wielaard  <mark@klomp.org>
4854
4855         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
4856         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
4857         (check_tree_recurse): Use newly defined accessors.
4858         (check_tree): Likewise.
4859         (maybe_split_for_insert): Likewise.
4860         (__tfind): Likewise.
4861         (__tdelete): Likewise.
4862         (trecurse): Likewise.
4863         (tdestroy_recurse): Likewise.
4864         (__tsearch): Likewise. And add asserts for malloc alignment.
4865         (__twalk): Cast root to node in case CHECK_TREE is defined.
4866
4867 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4868
4869         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
4870
4871 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4872
4873         * math/Makefile (libm-gen-calls): Add
4874         catan, catanh, ctan, ctanh.
4875         (libm-calls): Remove the above.
4876
4877         * math/s_catan_template.c: Update using type-generic macros.
4878         * math/s_catanh_template.c: Likewise.
4879         * math/s_ctan_template.c: Likewise.
4880         * math/s_ctanh_template.c: Likewise.
4881
4882         * math/s_catanf.c: Removed.
4883         * math/s_catan.c: Removed.
4884         * math/s_catanl.c: Removed.
4885         * math/s_catanhf.c: Removed.
4886         * math/s_catanh.c: Removed.
4887         * math/s_catanhl.c: Removed.
4888         * math/s_ctanf.c: Removed.
4889         * math/s_ctan.c: Removed.
4890         * math/s_ctanl.c: Removed.
4891         * math/s_ctanhf.c: Removed.
4892         * math/s_ctanh.c: Removed.
4893         * math/s_ctanhl.c: Removed.
4894
4895         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
4896         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
4897         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
4898         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
4899         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
4900         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
4901
4902         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
4903         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
4904         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
4905         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
4906
4907 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4908
4909         * s_catan_template.c: Copy of s_catan.c.
4910         * s_catanh_template.c: Copy of s_catanh.c.
4911         * s_ctan_template.c: Copy of s_ctan.c.
4912         * s_ctanh_template.c: Copy of s_ctanh.c.
4913
4914 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4915
4916         * math/Makefile (gen-libm-calls): Move
4917         casin, casinh, csin, csinh here.
4918         (libm-calls): Remove the above.
4919
4920         * math/s_casin_template.c: Update using type-generic macros.
4921         * math/s_casinh_template.c: Likewise.
4922         * math/s_csin_template.c: Likewise.
4923         * math/s_csinh_template.c: Likewise.
4924         * math/k_casinh_template.c: Likewise.
4925
4926         * math/s_casinf.c: Removed.
4927         * math/s_casin.c: Removed.
4928         * math/s_casinl.c: Removed.
4929         * math/s_casinh.c: Removed.
4930         * math/s_casinhf.c: Removed.
4931         * math/s_casinhl.c: Removed.
4932         * math/s_csin.c: Removed.
4933         * math/s_csinf.c: Removed.
4934         * math/s_csinl.c: Removed.
4935         * math/s_csinh.c: Removed.
4936         * math/s_csinhf.c: Removed.
4937         * math/s_csinhl.c: Removed.
4938         * math/k_casinh.c: Removed.
4939         * math/k_casinhf.c: Removed.
4940         * math/k_casinhl.c: Removed.
4941
4942         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
4943         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
4944         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
4945         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
4946
4947         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
4948         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
4949         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
4950         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
4951         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
4952         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
4953         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
4954         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
4955
4956         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
4957         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
4958         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
4959         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
4960
4961         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
4962         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
4963         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
4964         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
4965
4966 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4967
4968         * s_casin_template.c: Copy of s_casin.c.
4969         * s_casinh_template.c: Copy of s_casinh.c.
4970         * s_csin_template.c: Copy of s_csin.c.
4971         * s_csinh_template.c: Copy of s_csinh.c.
4972         * k_casinh_template.c: Copy of k_casinh.c.
4973
4974 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4975
4976         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
4977
4978 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4979
4980         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
4981         (mul_split) Remove, rename as mul_splitl, remove
4982         redundant float.h include, and include via mul_splitl.h
4983
4984         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4985         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4986         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4987         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
4988         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
4989
4990         * math/mul_splitl.h: New file.
4991
4992         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
4993         Move into mul_split.h, and remove redundant float.h include.
4994
4995         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
4996         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4997         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4998         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
4999
5000         * math/mul_split.h: New file.
5001
5002 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5003
5004         * math/Makefile (libm-gen-calls): Move
5005         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
5006         (libm-calls): Remove above.
5007
5008         * math/s_cacos_template.c: Update using type-generic macros.
5009         * math/s_cacosh_template.c: Likewise.
5010         * math/s_ccos_template.c: Likewise.
5011         * math/s_ccosh_template.c: Likwise.
5012
5013         * math/s_cacosf.c: Removed.
5014         * math/s_cacos.c: Removed.
5015         * math/s_cacosl.c: Removed.
5016         * math/s_cacoshf.c: Removed.
5017         * math/s_cacosh.c: Removed.
5018         * math/s_cacoshl.c: Removed.
5019         * math/s_ccosf.c: Removed.
5020         * math/s_ccos.c: Removed.
5021         * math/s_ccosl.c: Removed.
5022         * math/s_ccoshf.c: Removed.
5023         * math/s_ccosh.c: Removed.
5024         * math/s_ccoshl.c: Removed.
5025
5026         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
5027         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
5028         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
5029         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
5030         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
5031         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
5032
5033         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
5034         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
5035         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
5036         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
5037
5038         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
5039         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
5040         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
5041         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
5042
5043 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5044
5045         * s_cacos_template.c: Copy of s_cacos.c.
5046         * s_cacosh_template.c: Copy of s_cacosh.c.
5047         * s_ccos_template.c: Copy of s_ccos.c.
5048         * s_ccosh_template.c: Copy of s_ccosh.c.
5049
5050 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5051
5052         * stdlib/tst-strtod-round-skeleton.c:
5053         Refactored from tst-strtod-round.c.
5054
5055         (L_): New macro to apply literal modifier.
5056         (FNPFX): New macro to select str or wcs prefix.
5057         (CHAR): New macro to choose wchar_t or char.
5058         (STRM): New macro to choose printf for tested character type.
5059
5060         (STRTO): New macro to choose appropriate string -> real function.
5061         (FNPFXS): Stringitized version of FNPFX.
5062         (STR): Support for above macro.
5063         (STRX): Likewise.
5064
5065         (TEST): Update with above macros.
5066         (test): Likewise.
5067         (GEN_ONE_TEST): Likewise.
5068         (test_in_one_mode): Likewise.
5069
5070         * stdlib/tst-strtod-round.c: New file.
5071         * wcsmbs/tst-wcstod-round.c: New file.
5072
5073         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
5074         (tst-wcstod-round): Add libm depencency for fesetround.
5075
5076 2016-08-19  Zack Weinberg  <zackw@panix.com>
5077
5078         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
5079
5080 2016-08-18  Torvald Riegel  <triegel@redhat.com>
5081
5082         [BZ #20477]
5083         * resolv/res_hconf.c (do_init): Use atomic access.
5084         * resolv/res_hconf.h: Add comments.
5085         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
5086         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
5087         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5088
5089 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5090
5091         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
5092         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
5093         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5094         Likewise.
5095
5096 2016-08-18  Florian Weimer  <fweimer@redhat.com>
5097
5098         [BZ #16907]
5099         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
5100         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
5101         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
5102         (__attribute__): Remove definition.
5103
5104 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5105
5106         * sysdeps/ieee754/ldbl-128/e_asinl.c:
5107         Remove unused sqrtl declaration.
5108
5109 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5110
5111         * math/Makefile: (gen-libm-templates.stmp): New rule.
5112         (libm-calls): Move carg conj cimag and cabs into ...
5113         (gen-libm-calls): New variable.
5114         (generated): Inform Make objects from gen-libm-calls
5115         may be generated.
5116
5117         * sysdeps/generic/math-type-macros.h: New file.
5118         * sysdeps/generic/math-type-macros-float.h: Likewise.
5119         * sysdeps/generic/math-type-macros-double.h: Likewise.
5120         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
5121         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
5122         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
5123
5124         * math/cabs.c: Refactor into
5125         * math/cabs_template.c: new file.
5126         * math/cabsf.c: Removed.
5127         * math/cabsl.c: Removed.
5128         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
5129         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
5130
5131         * math/carg.c: Refactor into
5132         * math/carg_template.c: new file.
5133         * math/cargf.c: Removed.
5134         * math/cargl.c: Removed.
5135         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
5136         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
5137
5138         * math/conj.c: Refactor into
5139         * math/conj_template.c: new file.
5140         * math/conjf.c: Removed.
5141         * math/conjl.c: Removed.
5142         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
5143         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
5144
5145         * math/cimag.c: Refactor into
5146         * math/cimag_template.c: new file.
5147         * math/cimagf.c: Removed.
5148         * math/cimagl.c: Removed.
5149         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5150         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5151
5152         * math/cimag.c: Refactor into
5153         * math/cimag_template.c: new file.
5154         * math/cimagf.c: Removed.
5155         * math/cimagl.c: Removed.
5156         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5157         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5158
5159 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5160
5161         Reduce time to expected nptl/tst-once5 failure.
5162         * nptl/tst-once5.cc (TIMEOUT): Define.
5163
5164 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5165
5166         [BZ #20452]
5167         Avoid additional copies of objects in libc.a in static libraries.
5168         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
5169         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
5170         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
5171         rt-sysdep.
5172         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
5173         Add nptl-sysdep.
5174         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
5175         Add ptw-sysdep.
5176         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
5177         rt-sysdep.
5178         * sysdeps/unix/sysv/linux/alpha/Makefile
5179         (libpthread-shared-only-routines): Add ptw-sysdep,
5180         ptw-sigprocmask, ptw-rt_sigaction.
5181         * sysdeps/unix/sysv/linux/ia64/Makefile
5182         (librt-shared-only-routines): Add rt-sysdep.
5183         * sysdeps/unix/sysv/linux/i386/Makefile
5184         (libpthread-shared-only-routines): Add libc-do-syscall.
5185         * sysdeps/unix/sysv/linux/microblaze/Makefile
5186         (libpthread-shared-only-routines): Add sysdep.
5187         * sysdeps/unix/sysv/linux/powerpc/Makefile
5188         (librt-shared-only-routines): Add rt-sysdep.
5189         (libpthread-shared-only-routines): Add sysdep.
5190         * sysdeps/unix/sysv/linux/s390/Makefile
5191         (librt-shared-only-routines): Add rt-sysdep.
5192         * sysdeps/unix/sysv/linux/sparc/Makefile
5193         (librt-shared-only-routines): Add rt-sysdep.
5194         (libpthread-shared-only-routines): Add sysdep.
5195         * sysdeps/unix/sysv/linux/tile/Makefile
5196         (libpthread-shared-only-routines): Likewise.
5197
5198 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
5199
5200         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
5201         Mask implicit bit out of unpacked value.
5202         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
5203         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
5204         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
5205
5206         * sysdeps/sparc/fpu/fesetexcept.c: New file.
5207
5208         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
5209
5210         * sysdeps/s390/fpu/fesetexcept.c: New file.
5211
5212         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
5213         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
5214         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
5215
5216         * sysdeps/mips/fpu/fesetexcept.c: New file.
5217
5218         * sysdeps/m68k/fpu/fesetexcept.c: New file.
5219
5220         * sysdeps/ia64/fpu/fesetexcept.c: New file.
5221
5222         * sysdeps/hppa/fpu/fesetexcept.c: New file.
5223
5224         * sysdeps/arm/fesetexcept.c: New file.
5225
5226         * sysdeps/alpha/fpu/fesetexcept.c: New file.
5227
5228         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
5229
5230         * math/fesetexcept.c: New file.
5231         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
5232         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
5233         * math/fenv.h: Define
5234         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5235         <bits/libc-header-start.h> instead of including <features.h>.
5236         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
5237         declaration.
5238         * manual/arith.texi (fesetexcept): Document function.
5239         * math/Versions (fesetexcept): New libm symbol at version
5240         GLIBC_2.25.
5241         * math/Makefile (libm-support): Add fesetexcept.
5242         (tests): Add test-fesetexcept and test-fesetexcept-traps.
5243         * math/test-fesetexcept.c: New file.
5244         * math/test-fesetexcept-traps.c: Likewise.
5245         * sysdeps/nacl/libm.abilist: Update.
5246         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5247         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5248         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5249         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5250         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5251         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5252         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5253         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5254         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5255         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5256         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5257         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5259         Likewise.
5260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5261         Likewise.
5262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5263         Likewise.
5264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5265         Likewise.
5266         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5267         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5268         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5269         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5270         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5272         Likewise.
5273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5274         Likewise.
5275         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5276         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5277         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5278
5279 2016-08-16  Florian Weimer  <fweimer@redhat.com>
5280
5281         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
5282         New.
5283         (do_test): Apply default_stack_size_in_mb if not set.
5284         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
5285
5286 2016-08-15  Andreas Schwab  <schwab@suse.de>
5287
5288         [BZ #20435]
5289         CVE-2016-6323
5290         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
5291         as .cantunwind.
5292
5293 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
5294
5295         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
5296         comment from fraiseexcpt.c.
5297
5298         * math/test-fexcept.c (feraiseexcept_exact): New function.
5299         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
5300         (test_except): Likewise.
5301
5302 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
5303
5304         [BZ #20455]
5305         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
5306         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
5307         to be restored.
5308
5309         * math/test-fexcept-traps.c: New file.
5310         * math/test-fexcept.c: Likewise.
5311         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
5312         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
5313         macro.
5314         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
5315         (EXCEPTION_SET_FORCES_TRAP): Likewise.
5316
5317 2016-08-09  Torvald Riegel  <triegel@redhat.com>
5318
5319         * include/atomic.h (atomic_fetch_and_relaxed,
5320         atomic_fetch_and_release, atomic_fetch_or_release,
5321         atomic_fetch_xor_release): New.
5322
5323 2016-08-06  Christian Seiler  <christian@iwakd.de>
5324
5325         [BZ #20444]
5326         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
5327         MACH_PORT_NULL.
5328
5329 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5330
5331         * math/s_fdim.c: Avoid alias renamed.
5332         * math/s_fdimf.c: Likewise.
5333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5334         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5335         Add s_fdimf-vis3, s_fdim-vis3.
5336         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5337         (CFLAGS-s_fdim-vis3.c): Likewise.
5338         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
5339         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
5340
5341 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5342
5343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5344         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5345         Remove s_fdimf-vis3, s_fdim-vis3.
5346         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
5347         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
5348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
5349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
5350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
5351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
5352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
5353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
5354         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
5355         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
5356
5357 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5358
5359         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
5360         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
5361         -Wa,-Av9a -mvis.
5362
5363 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5364
5365         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
5366         LIT() to individual constants in simple expressions
5367         after splitting on spaces.
5368         (_apply_lit): Rename replaced version, and use it to
5369         apply to what appears to be a token.
5370
5371         * math/libm-test.inc: Fix many, many issues with
5372         spacing.
5373
5374 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
5375
5376         * math/math.h: Move comment about <bits/mathdef.h> definitions
5377         above inclusion of <bits/mathdef.h>.  Do not mention
5378         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
5379
5380 2016-08-05  Torvald Riegel  <triegel@redhat.com>
5381
5382         * include/atomic.h (atomic_exchange_relaxed): New.
5383
5384 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
5385
5386         * math/e_scalb.c: Do not include <fenv.h>.
5387         (invalid_fn): Do calculation resulting in NaN instead of raising
5388         FE_INVALID and returning a NaN explicitly.
5389         * math/e_scalbf.c: Do not include <fenv.h>.
5390         (invalid_fn): Do calculation resulting in NaN instead of raising
5391         FE_INVALID and returning a NaN explicitly.
5392         * math/e_scalbl.c: Do not include <fenv.h>.
5393         (invalid_fn): Do calculation resulting in NaN instead of raising
5394         FE_INVALID and returning a NaN explicitly.
5395
5396 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
5397
5398         * po/de.po: Updated from Translation Project.
5399         * po/fi.po: Likewise.
5400         * po/sv.po: Likewise.
5401
5402 2016-08-04  Florian Weimer  <fweimer@redhat.com>
5403
5404         [BZ #20452]
5405         Use sysdep.o from libc.a in static libraries.
5406         * sysdeps/unix/sysv/linux/i386/Makefile
5407         (libpthread-shared-only-routines): Add sysdep.
5408         (librt-shared-only-routines): Likewise.
5409
5410 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5411
5412         * math/tgmath.h (nextdown): Define if
5413         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
5414         (nextup): Likewise.
5415
5416         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
5417         macro.
5418         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5419         Document.
5420         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5421         Document macro.
5422         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
5423         (exp10f): Likewise.
5424         (exp10l): Likewise.
5425         * math/bits/mathcalls.h (exp10): Declare if
5426         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5427
5428         * manual/arith.texi (nextup): Fix typo in last change.
5429
5430 2016-08-03  Zack Weinberg  <zackw@panix.com>
5431
5432         [BZ #19239]
5433         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
5434         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
5435         define major, minor, and makedev to issue deprecation warnings on use.
5436         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
5437         previously-activated deprecation warnings for these macros and prevent
5438         subsequent inclusions of this header from having any effect.
5439         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
5440         including <sys/sysmacros.h>, and undefine it again afterward.
5441
5442 2016-08-03  Zack Weinberg  <zackw@panix.com>
5443
5444         * sysdeps/generic/sys/sysmacros.h: Delete file.
5445         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
5446         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
5447         * bits/sysmacros.h: ... here; this encoding is now the generic
5448         encoding.  Now defines only the following macros:
5449         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
5450         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
5451         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
5452
5453         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
5454         bits/sysmacros.h and the above new macros to generate the
5455         public implementations of major, minor, and makedev.
5456         * misc/tst-makedev.c: New test.
5457         * include/sys/sysmacros.h: New wrapper.
5458
5459         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
5460         (routines): Add makedev.
5461         (tests): Add tst-makedev.
5462         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
5463         gnu_dev_makedev.
5464         * posix/Makefile (headers): Remove sys/sysmacros.h.
5465         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
5466
5467         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
5468         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
5469         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
5470         * sysdeps/unix/sysv/linux/alpha/libc.abilist
5471         * sysdeps/unix/sysv/linux/arm/libc.abilist
5472         * sysdeps/unix/sysv/linux/hppa/libc.abilist
5473         * sysdeps/unix/sysv/linux/i386/libc.abilist
5474         * sysdeps/unix/sysv/linux/ia64/libc.abilist
5475         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
5476         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
5477         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
5478         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5479         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5480         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5481         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5482         * sysdeps/unix/sysv/linux/nios2/libc.abilist
5483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5487         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
5488         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5489         * sysdeps/unix/sysv/linux/sh/libc.abilist
5490         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
5491         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
5492         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
5493         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
5494         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
5495         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
5496         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
5497         Add GLIBC_2.25.
5498
5499         * include/features.h (__glibc_clang_prereq): New macro.
5500         * misc/sys/cdefs.h (__glibc_clang_has_extension)
5501         (__attribute_deprecated_msg__): New macros.
5502
5503 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5504
5505         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
5506         macro.
5507         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
5508         * manual/arith.texi (issignaling): Document as ISO from TS
5509         18661-1:2014.
5510         (nextup): Likewise.
5511         (nextupf): Likewise.
5512         (nextupl): Likewise.
5513         (nextdown): Likewise.
5514         (nextdownf): Likewise.
5515         (nextdownl): Likewise.
5516         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
5517         macro.
5518         * math/math.h: Define
5519         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5520         <bits/libc-header-start.h> instead of including <features.h>.
5521         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
5522         [__USE_GNU].
5523         * math/bits/mathcalls.h (nextdown): Declare if
5524         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
5525         (nextup): Likewise.
5526         (__issignaling): Likewise.
5527
5528 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5529
5530         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
5531         check, and remove __glibc_likely hint
5532         from FP_INFINITE check.
5533         * s_csinhf.c (__csinhf): Likewise.
5534
5535         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
5536         hint from FP_INFINITE check.
5537         * s_csinhl.c (__csinhl): Likewise.
5538
5539 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5540
5541         * math/Makefile (libm-calls): Insert F placeholder into
5542         object names.  Move w_lgamma_compat* routines into
5543         (libm-compat-calls): New variable.
5544         (libm-compat-calls-ldouble-yes): New variable.
5545         (calls): Insert F placeholder.
5546         (generated): Redefine using new type-foreach macro call.
5547         (routines): Likewise.
5548
5549         (types): New variable to hold a list of symbolic names
5550         for each type supported by the target machine.
5551         (libm-routines): Redefine using new types variable.
5552         (type-foreach): macro to replace fooF with the
5553         appropriately suffixed foo for each types.
5554
5555         (type-ldouble-suffix): New variable.
5556         (type-ldouble-routines): Likewise.
5557         (type-ldouble-yes): Likewise.
5558         (type-double-suffix): Likewise.
5559         (type-double-routines): Likewise.
5560         (type-float-suffix): Likewise.
5561         (type-float-routines): Likewise.
5562
5563         (dbl-only-routines): Remove.
5564         (long-c-yes): Likewise.
5565         (long-m-routines): Likewise.
5566         (long-m-support): Likewise.
5567         (long-m-yes): Likewise.
5568         (test-longdouble-yes): Likewise.
5569
5570         (test-float.o): Simplify by increasing the scope of the
5571         recipe which adds libm-test.stmp to the vector types.
5572         (test-ifloat.o): Likewise.
5573         (test-float-finite.o): Likewise.
5574         (test-double.o): Likewise
5575         (test-idouble.o): Likewise.
5576         (test-double-finite.o): Likewise.
5577         (test-ldouble.o): Likewise
5578         (test-ildoubl.o): Likewise.
5579         (test-ldouble-finite.o): Likewise.
5580
5581         (libm-tests): Redefine type tests using foreach and the
5582         list of types in types.
5583
5584         (CPPFLAGS-test-ildoubl.c): Rename to
5585         (CPPFLAGS-test-ildouble.c): New variable
5586
5587         * math/test-ildoubl.c: Rename to
5588         * math/test-ildouble.c: New file.
5589
5590 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5591
5592         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
5593         Use fabsl instead of fabs.
5594         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
5595         Likewise.
5596         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
5597         Add long double suffix to constant to ensure proper
5598         promotion to long double.
5599
5600 2016-08-03  Tom Tromey  <tom@tromey.com>
5601
5602         [BZ #20311]
5603         * nptl_db/Makefile (headers): Add proc_service.h.
5604         * nptl_db/proc_service.h: Add include guard.  Use
5605         __BEGIN/__END_DECLS.
5606         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
5607         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
5608         arguments.
5609
5610
5611 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5612
5613         [BZ #17730]
5614         Avoid using memalign for TCB allocations.
5615         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
5616         (_dl_allocate_tls_storage): Use malloc and manual alignment.
5617         Avoid alignment gap in the TLS_DTV_AT_TP case.
5618         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
5619         determine the pointer to free.
5620         * nptl/tst-tls3-malloc.c: New test.
5621         * nptl/Makefile (tests): Add it.
5622         (tst-tls3-malloc): Link with libdl, libpthread.
5623         (LDFLAGS-tst-tls3-malloc): Set.
5624         (tst-tls3-malloc.out): Depend on DSO used in test.
5625
5626 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5627
5628         [BZ #17730]
5629         Avoid using memalign for TLS allocations.
5630         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
5631         is_static member with to_free member.
5632         (union dtv): Use struct dtv_pointer.
5633         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
5634         dtv_pointer instead of is_static.
5635         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5636         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
5637         instead of val.
5638         (allocate_dtv_entry): New function.
5639         (allocate_and_init): Return struct dtv_pointer.  Call
5640         allocate_dtv_entry instead of __libc_memalign.
5641         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
5642         instead of val.
5643         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
5644         instead of is_static.  Adjust call to allocate_and_init.
5645         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
5646         struct dtv_pointer instead of val.
5647
5648 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5649
5650         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
5651         (MALLOC_ALIGN_MASK): Move ...
5652         * malloc/malloc-internal.h: ... to here.
5653         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
5654
5655 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5656
5657         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
5658         (UDP_ENCAP_GTP1U): Likewise.
5659
5660         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
5661         (PF_MAX): Update value.
5662         (AF_QIPCRTR): New macro.
5663
5664 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5665
5666         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
5667         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5668         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5669         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
5670         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5671         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5672         s_truncf-vis3, s_trunc-vis3.
5673         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5674         (CFLAGS-s_ceil-vis3.c): Likewise.
5675         (CFLAGS-s_floorf-vis3.c): Likewise.
5676         (CFLAGS-s_floor-vis3.c): Likewise.
5677         (CFLAGS-s_truncf-vis3.c): Likewise.
5678         (CFLAGS-s_trunc-vis3.c): Likewise.
5679         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
5680         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
5681         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
5682         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
5683         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
5684         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
5685         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
5686         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
5687         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
5688         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5689         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
5690         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5691
5692 2016-08-02  David S. Miller  <davem@davemloft.net>
5693
5694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5695         (__nearbyint_vis3): Don't check for sNaN before float register is
5696         loaded with the incoming argument.
5697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5698         (__nearbyintf_vis3): Likewise.
5699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
5700         Likewise.
5701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
5702         Likewise.
5703
5704         * string/test-strncmp.c (do_test_limit): Make sure the test data
5705         stream is aligned as required for the type "CHAR".
5706         (do_test): Likewise.
5707
5708 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5709
5710         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
5711         by beq instructions jumping to the end of the function.
5712         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
5713         clobber list. Use "i" constraint instead of "X".
5714         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
5715         of "X".
5716
5717 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
5718
5719         * bits/libc-header-start.h: New file.
5720         * Makefile (headers): Add bits/libc-header-start.h.
5721         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
5722         (__GLIBC_USE): New macro.
5723         * libio/stdio.h: Define
5724         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5725         <bits/libc-header-start.h> instead of including <features.h>.
5726         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
5727         (open_memstream): Likewise.
5728         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
5729         (__asprintf): Likewise.
5730         (asprintf): Likewise.
5731         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
5732         (getdelim): Likewise.
5733         (getline): Likewise.
5734         * string/string.h: Define
5735         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5736         <bits/libc-header-start.h> instead of including <features.h>.
5737         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
5738         (strndup): Likewise.
5739         * wcsmbs/wchar.h: Define
5740         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5741         <bits/libc-header-start.h> instead of including <features.h>.
5742         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
5743         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
5744
5745 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5746
5747         Support linking against compatibility symbols, for use in tests.
5748         * include/libc-symbols.h (symbol_version_reference): New macro.
5749         (symbol_version): Use it.
5750         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
5751         (compat_symbol): Use compat_symbol_reference.
5752         (compat_symbol_1, compat_symbol_2): Remove.
5753         (compat_symbol_reference, compat_symbol_reference_1)
5754         (compat_symbol_reference_2): New macro.  Use
5755         symbol_version_reference.
5756
5757 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5758
5759         [BZ #19469]
5760         * malloc/Makefile (CPPFLAGS): Compile tests with
5761         -DTEST_NO_MALLOPT.
5762         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
5763
5764 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
5765
5766         [BZ #20033]
5767         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
5768         finite version.
5769         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
5770         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
5771         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
5772         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
5773         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
5774         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
5775         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
5776         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
5777         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
5778         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
5779         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
5780         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
5781         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
5782         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
5783         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
5784         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
5785         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
5786         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
5787         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
5788         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
5789         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
5790         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
5791         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
5792         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
5793         in zero power.
5794
5795 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5796
5797         [BZ #20370]
5798         * malloc/arena.c (get_free_list): Update comment.  Assert that
5799         arenas on the free list have no attached threads.
5800         (remove_from_free_list): New function.
5801         (reused_arena): Call it.
5802
5803 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
5804
5805         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
5806         when it is a NaN.
5807         [_IEEE_FP_INEXACT] Remove.
5808         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
5809         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
5810         when it is a NaN.
5811         [_IEEE_FP_INEXACT] Remove.
5812         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
5813         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
5814         when it is a NaN.
5815         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
5816         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
5817         when its absolute value is greater than 0x1.0p52.
5818         [_IEEE_FP_INEXACT] Remove.
5819         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
5820         when its absolute value is greater than 0x1.0p23.
5821         [_IEEE_FP_INEXACT] Remove.
5822
5823 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
5824
5825         * version.h (RELEASE): Set to "development"
5826         (VERSION): Set to 2.24.90.
5827         * NEWS: Add 2.25 section.
5828
5829         * version.h (RELEASE): Set to "stable"
5830         (VERSION): Set to 2.24.
5831         * include/features.h (__GLIBC_MINOR__): Set to 24.
5832
5833         * NEWS: Add 2.24 fixed bugs.
5834         * po/libc.pot: Regenerate.
5835
5836 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
5837
5838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5839         [$(subdir) = math] (libm-sysdep_routines): Remove.
5840         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5841         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5842         s_truncf-vis3, s_trunc-vis3.
5843         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
5845         file.
5846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
5847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
5848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
5852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
5853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
5855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
5856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
5857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
5858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
5859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
5860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
5861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5864         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
5865         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
5866         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
5867         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
5868         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5869         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5870         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5871         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5872         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5873         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
5874         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5875         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5876         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
5877         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5878         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5879         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
5880         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
5881         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
5882         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
5883         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5884         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5885         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
5886         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
5887         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
5888         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
5889
5890 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
5891
5892         [BZ #20384]
5893         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
5894         test-double-libmvec-sincos-avx-main.o,
5895         test-double-libmvec-sincos-avx2-main.o,
5896         test-double-libmvec-sincos-main.o,
5897         test-float-libmvec-sincosf-avx-main.o,
5898         test-float-libmvec-sincosf-avx2-main.o and
5899         test-float-libmvec-sincosf-main.o.
5900         test-float-libmvec-sincosf-avx512-main.o.
5901         ($(objpfx)test-double-libmvec-sincos): Also link with
5902         $(objpfx)test-double-libmvec-sincos-main.o.
5903         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
5904         $(objpfx)test-double-libmvec-sincos-avx-main.o.
5905         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
5906         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
5907         ($(objpfx)test-float-libmvec-sincosf): Also link with
5908         $(objpfx)test-float-libmvec-sincosf-main.o.
5909         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
5910         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
5911         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
5912         test-double-libmvec-sincos-avx512-main.o and
5913         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
5914         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
5915         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
5916         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
5917         (CFLAGS-test-double-libmvec-sincos.c): Removed.
5918         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
5919         (CFLAGS-test-double-libmvec-sincos-main.c): New.
5920         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
5921         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
5922         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
5923         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
5924         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
5925         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
5926         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
5927         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
5928         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
5929         -DREQUIRE_AVX2.
5930         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
5931         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
5932         -DREQUIRE_AVX512F.
5933         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
5934         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
5935         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
5936         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
5937         file.
5938         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
5939         Likewise.
5940         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
5941         Likewise.
5942         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
5943         Likewise.
5944         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
5945         Likewise.
5946         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
5947         Likewise.
5948         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
5949         Likewise.
5950         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
5951         Likewise.
5952
5953 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
5954
5955         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
5956
5957 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5958
5959         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
5960         and typo in a comment about AT_HWCAP entry.
5961
5962 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5963
5964         * sysdeps/aarch64/libm-test-ulps: Updated.
5965
5966 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
5967
5968         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
5969         of r13 as it is not restored in mvcle case.
5970
5971 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
5972
5973         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
5974         Rename "ret" to "__ret".
5975         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
5976         inline_syscall5, inline_syscall6): Likewise.
5977
5978 2016-07-19   Will Newton  <will.newton@gmail.com>
5979
5980         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
5981         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
5982         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
5983         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
5984         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
5985
5986 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
5989         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
5990         -mfpmath=387 with $(rtld-CFLAGS).
5991         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
5992         $(rtld-CFLAGS).
5993
5994 2016-07-18   Ross Burton  <ross.burton@intel.com>
5995              Khem Raj  <raj.khem@gmail.com>
5996
5997         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
5998         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
5999         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
6000         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
6001         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
6002         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
6003         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
6004         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
6005         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
6006         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
6007         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
6008         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
6009         R_METAG_TLS_DTPOFF): New.
6010
6011 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6012             Matt Clay  <mclay@lycos.com>
6013
6014         [BZ #20357]
6015         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
6016         to call __mpsin/__mpcos and to negate values.
6017         * math/auto-libm-test-in: Add test.
6018         * math/auto-libm-test-out: Regenerate.
6019
6020 2016-07-18  Zack Weinberg  <zackw@panix.com>
6021
6022         * grp/Makefile: Don't install the internal header grp-merge.h.
6023
6024 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6025
6026         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6027
6028 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6029
6030         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
6031
6032 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6033
6034         [BZ #15368]
6035         * sysdeps/unix/sysv/linux/nptl-signals.h
6036         (__nptl_clear_internal_signals): New function.
6037         (__libc_signal_block_all): Likewise.
6038         (__libc_signal_block_app): Likewise.
6039         (__libc_signal_restore_set): Likewise.
6040         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
6041         implementation.
6042         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
6043         the cached pid/tid value in pthread structure.
6044
6045 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         [BZ #20347]
6048         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6049
6050 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6051
6052         [BZ #20348]
6053         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
6054         preadv64, pwrite64 and pwritev64.
6055
6056 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6057
6058         [BZ #20350]
6059         * posix/tst-preadwrite.c: Renamed to ...
6060         * posix/tst-preadwrite-common.c: This.
6061         (PREAD): Removed.
6062         (PWRITE): Likewise.
6063         (STRINGIFY): Likewise.
6064         (STRINGIFY2): Likewise.
6065         (do_prepare): Make it static and remove function arguments.
6066         (do_test): Likewise.
6067         (PREPARE): Updated.
6068         (TEST_FUNCTION): New.
6069         (name): Make it static.
6070         (fd): Likewise.
6071         (do_prepare): Use create_temp_file.
6072         (do_test): Renamed to ...
6073         (do_test_with_offset): This.  Make it static and accept offset.
6074         Properly check return value of PWRITE and PREAD.  Return bytes
6075         read.  Don't close fd nor unlink name.
6076         * posix/tst-preadwrite.c: Rewrite.
6077         * posix/tst-preadwrite64.c: Likewise.
6078
6079 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6080
6081         [BZ #20309]
6082         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
6083         -mtls-dialect=gnu2 works.
6084         * configure: Regenerated.
6085         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
6086         (tests): Add tst-gnu2-tls1.
6087         (modules-names): Add tst-gnu2-tls1mod.
6088         ($(objpfx)tst-gnu2-tls1): New.
6089         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
6090         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
6091         * elf/tst-gnu2-tls1.c: New file.
6092         * elf/tst-gnu2-tls1mod.c: Likewise.
6093         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
6094         bytes for push in the PLT entry to align the stack.
6095
6096 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
6097
6098         [BZ #20349]
6099         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
6100
6101 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6102
6103         [BZ #18707]
6104         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
6105         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
6106
6107 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6108
6109         * sysdeps/unix/sysv/linux/sysdep.h
6110         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
6111         guards.
6112         * misc/tst-preadvwritev-common.c: New file.
6113         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
6114         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
6115         a check for files larger than 2GB.
6116
6117         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6118         (__ASSUME_OFF_DIFF_OFF64): Remove define.
6119         * sysdeps/unix/sysv/linux/pread.c
6120         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
6121         __OFF_T_MATCHES_OFF64_T.
6122         * sysdeps/unix/sysv/linux/pread64.c
6123         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
6124         * sysdeps/unix/sysv/linux/preadv.c
6125         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
6126         * sysdeps/unix/sysv/linux/preadv64.c
6127         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
6128         * sysdeps/unix/sysv/linux/pwrite.c
6129         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
6130         * sysdeps/unix/sysv/linux/pwrite64.c
6131         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
6132         * sysdeps/unix/sysv/linux/pwritev.c
6133         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
6134         * sysdeps/unix/sysv/linux/pwritev64.c
6135         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
6136
6137 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
6138
6139         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6140         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
6141
6142 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6143
6144         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
6145
6146 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6147
6148         [BZ #20240]
6149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6150         (CFLAGS-s_modf-ppc32.c): New variable.
6151         (CFLAGS-s_modff-ppc32.c): Likewise.
6152         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6153         (CFLAGS-s_modf-ppc64.c): Likewise.
6154         (CFLAGS-s_modff-ppc64.c): Likewise.
6155
6156 2016-07-07  Andreas Schwab  <schwab@suse.de>
6157
6158         [BZ #20263]
6159         * nptl/tst-robust10.c: New test.
6160         * nptl/Makefile (tests): Add tst-robust10.
6161
6162 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
6163
6164         [BZ #20263]
6165         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
6166
6167 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
6168
6169         * sysdeps/s390/linkmap.h (struct link_map_machine):
6170         Remove member gotplt and add member jmprel.
6171         * sysdeps/s390/s390-32/dl-machine.h
6172         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
6173         instead of gotplt with &got[3].
6174         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
6175         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6176
6177 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
6178
6179         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
6180
6181 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6182
6183         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
6184         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
6185         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6186         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
6187         * libio/vtables.c (_IO_vtable_check)
6188         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6189         * libio/libioP.h (IO_set_accept_foreign_vtables)
6190         [!PTR_MANGLE]: Do not call PTR_MANGLE.
6191
6192 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6193
6194         [BZ #20314]
6195         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
6196         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
6197         $(common-objpfx)cmath.
6198         ($(common-objpfx)cstdlib): New target.
6199         ($(common-objpfx)cmath): Likewise.
6200
6201 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
6202
6203         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
6204
6205 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6206
6207         [BZ #20327]
6208         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
6209         are not part of the string.
6210
6211 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6212
6213         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
6214         * nptl/tst-cancel4-common.h (fifoname): New variable.
6215         (fifofd): Likewise.
6216         (cl_fifo): New function.
6217         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
6218         SIGINT.
6219         (tf_open): Add early cancel test.
6220
6221 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
6222
6223         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
6224
6225 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
6226
6227         * sysdeps/generic/ldsodefs.h
6228         (dl_symbol_visibility_binds_local_p): New inline function.
6229         * elf/dl-addr.c (determine_info): Treat hidden and internal
6230         symbols as local.
6231         * elf/dl-lookup.c (do_lookup_x): Likewise.
6232         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
6233
6234 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
6235
6236         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
6237         invalid exception for a sNaN input.
6238         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6239         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
6240         (__nearbyint_vis3): Likewise
6241         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
6242         (__nearbyintf_vis3): Likewise
6243         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
6244         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6245         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
6246         Likewise.
6247         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
6248         Likewise.
6249
6250 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
6251
6252         [BZ #20139]
6253         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
6254         (HAVE_AVX512DQ_ASM_SUPPORT): This.
6255         * sysdeps/x86_64/configure.ac: Require assembler from binutils
6256         2.24 or above.
6257         (HAVE_AVX512_ASM_SUPPORT): Removed.
6258         (HAVE_AVX512DQ_ASM_SUPPORT): New.
6259         * sysdeps/x86_64/configure: Regenerated.
6260         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
6261         check unconditional.
6262         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
6263         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6264         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6265         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6266         Likewise.
6267         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
6268         Likewise.
6269         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
6270         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
6271         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6272         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6273         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
6274         Likewise.
6275         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
6276         Likewise.
6277         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6278         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6279         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
6280         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
6281         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
6282         Likewise.
6283         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
6284         Likewise.
6285         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
6286         Likewise.
6287         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
6288         Likewise.
6289         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
6290         Likewise.
6291         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
6292         Likewise.
6293         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
6294         Likewise.
6295         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
6296         Likewise.
6297         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
6298         Likewise.
6299         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
6300         Likewise.
6301         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
6302         Likewise.
6303
6304 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
6305
6306         [BZ #20024]
6307         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
6308         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
6309         of this implementation of vector function.
6310         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
6311         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
6312         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6313         Likewise.
6314         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
6315         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
6316         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
6317         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
6318         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
6319         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
6320         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6321         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
6322         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
6323         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
6324         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
6325         for testing vector sincos with fixed ABI.
6326         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
6327         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
6328         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
6329         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
6330         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
6331         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
6332         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
6333         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
6334         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
6335         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
6336         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
6337         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
6338         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
6339         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
6340         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6341         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6342
6343 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6344
6345         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
6346
6347 2016-06-30  Anton Blanchard  <anton@samba.org>
6348
6349         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6350         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
6351         s_sinf-ppc64.
6352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
6353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
6355         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
6356
6357 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6358
6359         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6360         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6361         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
6362         e_expf-ppc64.
6363         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
6364         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
6365         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
6366         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
6367
6368 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
6369
6370         [BZ #20277]
6371         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
6372         when SHARED is defined.
6373
6374 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6375
6376         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
6377         (index_arch_Prefer_ERMS): Likewise.
6378         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
6379         __memcpy_erms for Prefer_ERMS.
6380         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6381         (__memmove_erms): Enabled for libc.a.
6382         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
6383         __memmove_erms or Prefer_ERMS.
6384         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
6385         __mempcpy_erms for Prefer_ERMS.
6386         * sysdeps/x86_64/multiarch/memset.S (memset): Return
6387         __memset_erms for Prefer_ERMS.
6388
6389 2016-06-30  Andreas Schwab  <schwab@suse.de>
6390
6391         [BZ #20262]
6392         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
6393         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
6394         of memory.
6395
6396 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6397
6398         [BZ #18645]
6399         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
6400         (test-extras): Add tst-cleanupx4aux.
6401         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
6402         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
6403         tst-cleanupx4aux.o.
6404         * nptl/tst-cleanupx4aux.c: New file.
6405
6406 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6407
6408         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6409
6410 2016-06-29  Andreas Schwab  <schwab@suse.de>
6411
6412         [BZ #20260]
6413         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
6414         address before the beginning of the string as an integer to avoid
6415         array-bounds warning.
6416
6417 2016-06-28  Richard Henderson  <rth@redhat.com>
6418
6419         * elf/elf.h (EM_BPF): New.
6420         (EM_NUM): Update.
6421         (R_BPF_NONE, R_BPF_MAP_FD): New.
6422
6423         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
6424         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
6425         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
6426         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
6427         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
6428         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
6429         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
6430         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
6431         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
6432         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
6433         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
6434         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
6435         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
6436         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
6437         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
6438         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
6439         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
6440         (EM_NUM): Update.
6441
6442 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
6443
6444         [BZ #18960]
6445         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
6446         Set _nl_current_LC_CATEGORY_used to two instead of one.
6447
6448 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
6449
6450         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
6451         (do_test): ... this.
6452         (TEST_FUNCTION): New macro.
6453          Include test-skeleton.c.
6454         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
6455         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
6456
6457 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
6458
6459         [BZ #15479]
6460         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
6461         floating-point environment rather than just control word.
6462         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
6463         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
6464         floating-point environment, with "invalid" exceptions merged in,
6465         rather than just control word.
6466         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
6467         * math/libm-test.inc (trunc_test_data): Do not allow spurious
6468         "inexact" exceptions.
6469
6470         [BZ #15479]
6471         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
6472         floating-point environment rather than just control word.
6473         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
6474         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
6475         floating-point environment, with "invalid" exceptions merged in,
6476         rather than just control word.
6477         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
6478         * math/libm-test.inc (floor_test_data): Do not allow spurious
6479         "inexact" exceptions.
6480
6481         [BZ #15479]
6482         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
6483         floating-point environment rather than just control word.
6484         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6485         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
6486         floating-point environment, with "invalid" exceptions merged in,
6487         rather than just control word.
6488         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
6489         * math/libm-test.inc (ceil_test_data): Do not allow spurious
6490         "inexact" exceptions.
6491
6492 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
6493
6494         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
6495         __libc_vfork.
6496         (__vfork) [IS_IN (libc)]: Remove alias.
6497         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
6498         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6499         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6500
6501 2016-06-24  Torvald Riegel  <triegel@redhat.com>
6502
6503         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
6504         of atomic_compare_and_exchange_bool_rel.
6505         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6506         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
6507         catomic_compare_and_exchange_bool_rel): Remove.
6508         * sysdeps/aarch64/atomic-machine.h
6509         (atomic_compare_and_exchange_bool_rel): Likewise.
6510         * sysdeps/alpha/atomic-machine.h
6511         (atomic_compare_and_exchange_bool_rel): Likewise.
6512         * sysdeps/arm/atomic-machine.h
6513         (atomic_compare_and_exchange_bool_rel): Likewise.
6514         * sysdeps/mips/atomic-machine.h
6515         (atomic_compare_and_exchange_bool_rel): Likewise.
6516         * sysdeps/microblaze/atomic-machine.h
6517         ( __arch_compare_and_exchange_bool_8_rel,
6518         __arch_compare_and_exchange_bool_16_rel): Likewise.
6519         * sysdeps/powerpc/atomic-machine.h
6520         ( __arch_compare_and_exchange_bool_8_rel,
6521         __arch_compare_and_exchange_bool_16_rel): Likewise.
6522         * sysdeps/powerpc/powerpc32/atomic-machine.h
6523         ( __arch_compare_and_exchange_bool_32_rel,
6524         __arch_compare_and_exchange_bool_64_rel): Likewise.
6525         * sysdeps/powerpc/powerpc64/atomic-machine.h
6526         ( __arch_compare_and_exchange_bool_32_rel,
6527         __arch_compare_and_exchange_bool_64_rel): Likewise.
6528         * sysdeps/tile/atomic-machine.h
6529         (atomic_compare_and_exchange_bool_rel): Likewise.
6530
6531 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
6532
6533         [BZ #20296]
6534         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
6535         when either argument is a NaN.
6536         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
6537         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
6538
6539         * math/libm-test.inc (snan_value_ld): New macro.
6540         (isgreater_test_data): Add sNaN tests.
6541         (isgreaterequal_test_data): Likewise.
6542         (isless_test_data): Likewise.
6543         (islessequal_test_data): Likewise.
6544         (islessgreater_test_data): Likewise.
6545         (isunordered_test_data): Likewise.
6546         (nextafter_test_data): Likewise.
6547         (nexttoward_test_data): Likewise.
6548         (remainder_test_data): Likewise.
6549         (remquo_test_data): Likewise.
6550         (significand_test_data): Likewise.
6551         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
6552
6553 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6554
6555         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
6556         environment macros are defined.
6557         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
6558
6559 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6560
6561         [BZ #20191]
6562         Implement vtable verification in libio.
6563         * Makerules (shlib.lds): Place __libc_IO_vtables section.
6564         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
6565         * debug/vdprintf_chk.c (__vdprintf_chk): Call
6566         _IO_new_file_init_internal instead of _IO_file_init.
6567         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
6568         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
6569         * libio/Makefile (routines): Add vtables.
6570         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
6571         (_IO_init): Remove, not for internal use.
6572         (_IO_init_internal): Declare, internal replacement for _IO_init.
6573         (_IO_file_init): Remove, not for internal use.
6574         (_IO_new_file_init): Remove, not for internal use.
6575         (_IO_new_file_init_internal): Declare, internal replacement for
6576         _IO_new_file_init.
6577         (_IO_old_file_init): Remove, not for internal use.
6578         (_IO_old_file_init_internal): Declare, internal replacement for
6579         _IO_old_file_init.
6580         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
6581         internal use.
6582         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
6583         Declare.
6584         (libio_vtable): New macro.
6585         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
6586         functions.
6587         * libio/fileops.c (_IO_new_file_init_internal): Rename from
6588         _IO_new_file_init.
6589         (_IO_new_file_init): New externally visible wrapper which disables
6590         vtable verification.
6591         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
6592         Define as vtables.
6593         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
6594         (_IO_init): New externally visible wrapper which disables
6595         vtable verification.
6596         * libio/iofdopen.c (_IO_new_fdopen): Call
6597         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
6598         comment.
6599         * libio/iofopen.c (__fopen_internal): Call
6600         _IO_new_file_init_internal instead of _IO_file_init.
6601         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
6602         Define as vtables.
6603         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
6604         _IO_new_file_init_internal instead of _IO_file_init.
6605         * libio/iopopen.c (_IO_new_popen): Likewise.
6606         (_IO_proc_jumps): Define as vtable.
6607         * libio/iovdprintf.c (_IO_vdprintf): Call
6608         _IO_new_file_init_internal instead of _IO_file_init.
6609         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
6610         (__open_memstream): Call _IO_init_internal instead of _IO_init.
6611         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
6612         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
6613         _IO_old_file_init.
6614         (_IO_old_file_init): New externally visible wrapper which disables
6615         vtable verification.
6616         (_IO_old_file_jumps): Define as vtable.
6617         * libio/oldiofdopen.c (_IO_old_fdopen): Call
6618         _IO_old_file_init_internal instead of _IO_old_file_init.
6619         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6620         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6621         (_IO_old_proc_jumps): Define as vtable.
6622         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
6623         Define as vtables.
6624         * libio/vtables.c: New file.
6625         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
6626         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
6627         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
6628         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6629         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6630         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
6631         instead of _IO_init.
6632
6633 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6634
6635         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
6636
6637 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6638
6639         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
6640         potentially unused.
6641
6642 2016-06-22  Florian Weimer  <fweimer@redhat.com>
6643
6644         * test-skeleton.c (write_message): New function.
6645         * malloc/tst-mallocfork2.c (write_message): Remove.
6646         * debug/tst-longjmp_chk2.c (write_indented): New function.
6647         (write_message): Remove.
6648         (stackoverflow_handler): Call write_indented.
6649
6650 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
6651
6652         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
6653         "inexact" exceptions after fnstenv.
6654         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6655         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6656         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6657
6658 2015-06-22  Zack Weinberg  <zackw@panix.com>
6659
6660         * sysdeps/generic/bits/hwcap.h: Moved to ...
6661         * bits/hwcap.h: Here.
6662
6663 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
6664
6665         * sysdeps/aarch64/memcpy.S (memcpy):
6666         Further tuning for performance.
6667
6668 2016-06-21  Florian Weimer  <fweimer@redhat.com>
6669
6670         [BZ #20284]
6671         * malloc/arena.c (reused_arena): Do not return NULL if we start
6672         out with a non-corrupted arena.
6673
6674 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6675
6676         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
6677         * misc/tst-preadvwritev.c: New file.
6678         * misc/tst-preadvwritev64.c: Likewise.
6679         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
6680         usage.
6681         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
6682         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
6683         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
6684         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
6685
6686 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6687
6688         [BZ #19654]
6689         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6690         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
6691         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
6692         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
6693         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
6694         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
6695         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
6696         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
6697         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
6698         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
6699         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
6700         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
6701         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
6702         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
6703         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
6704         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
6705         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
6706         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
6707         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
6708         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
6709         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
6710         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
6711         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
6712         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
6713         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
6714         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
6715
6716 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6717
6718         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
6719         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
6720
6721 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6722
6723         * sysdeps/aarch64/memcpy.S (memcpy):
6724         Rewrite of optimized memcpy and memmove.
6725         * sysdeps/aarch64/memmove.S (memmove): Remove
6726         memmove code (merged into memcpy.S).
6727
6728 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6729
6730         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
6731         * sysdeps/generic/dl-dtv.h: New file.
6732         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6733         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
6734         (dtv_t): Remove.
6735         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6736         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
6737         (dtv_t): Remove.
6738         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6739         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
6740         (dtv_t): Remove.
6741         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6742         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
6743         (dtv_t): Remove.
6744         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6745         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
6746         (dtv_t): Remove.
6747         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6748         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
6749         (dtv_t): Remove.
6750         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6751         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
6752         (dtv_t): Remove.
6753         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
6754         (dtv_t): Remove.
6755         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6756         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
6757         (dtv_t): Remove.
6758         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6759         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
6760         (dtv_t): Remove.
6761         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6762         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
6763         (dtv_t): Remove.
6764         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6765         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
6766         (dtv_t): Remove.
6767         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6768         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
6769         (dtv_t): Remove.
6770         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6771         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
6772         (dtv_t): Remove.
6773         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6774         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
6775         (dtv_t): Remove.
6776         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6777         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
6778         (dtv_t): Remove.
6779
6780 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6781
6782         Revert symbol poisoning of  __malloc_initialize_hook.
6783         * include/stdc-predef.h (__malloc_initialize_hook): Remove
6784         poisoning.
6785         * malloc/Makefile: Remove un-poisoning.
6786         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
6787         instead of old__malloc_initialize_hook.
6788         * malloc/malloc-hooks.h: Likewise.
6789         * malloc/malloc.c: Likewise.
6790         * malloc/mcheck-init.c: Likewise.
6791
6792 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
6793
6794         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
6795
6796 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
6797
6798         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
6799         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
6800         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6801         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6802
6803 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6804
6805         * NEWS: Mention addition of nextup and nextdown.
6806         * manual/arith.texi: Document nextup and nextdown.
6807         * manual/libm-err-tab.pl: Add nextup and nextdown.
6808         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
6809         * math/Versions (libm): Add GLIBC_2.24.
6810         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
6811         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
6812         Add new test.
6813         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
6814         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
6815         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
6816         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
6817         (nextup_test_data): Likewise.
6818         (nextdown_test_data): Likewise.
6819         * math/s_nextdown.c: New file.
6820         * math/s_nextdownf.c: Likewise.
6821         * math/s_nextdownl.c: Likewise.
6822         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
6823         F(nextup): New function.
6824         F(nextdown): Likewise.
6825         * math/tgmath.h: Add nextup and nextdown.
6826         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
6827         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
6828         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
6829         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
6830         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
6831         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
6832         Add nextup and nextdown.
6833         (CFLAGS-nldbl-nextup.c): New variable.
6834         (CFLAGS-nldbl-nextdown.c): Likewise.
6835         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
6836         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
6837         * sysdeps/nacl/libm.abilist: Update.
6838         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6839         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6840         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6841         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6842         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6843         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6844         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6845         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6846         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6847         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6848         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6849         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6852         Likewise.
6853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6855         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6856         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6857         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6858         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6859         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
6861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
6862         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6863         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6864         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
6865         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6866
6867 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6868
6869         * manual/pattern.texi: Fix typos & grammar errors.
6870
6871 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6872
6873         * manual/search.texi: Fix typos & grammar errors.
6874
6875 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6876
6877         * manual/message.texi: Fix typos & grammar errors.
6878
6879 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
6880
6881         * manual/contrib.texi: Fix spelling typos.
6882         * manual/crypt.texi: Likewise.
6883         * manual/filesys.texi: Likewise.
6884         * manual/locale.texi: Likewise.
6885         * manual/message.texi: Likewise.
6886         * manual/nss.texi: Likewise.
6887         * manual/string.texi: Likewise.
6888
6889 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6890
6891         * manual/locale.texi: Fix typos & grammar errors.
6892
6893 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6894
6895         * manual/charset.texi: Fix typos & grammar errors.
6896
6897 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6898
6899         * manual/string.texi: Fix typos.
6900
6901 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6902
6903         * manual/ctype.texi: Fix typos.
6904
6905 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6906
6907         * manual/memory.texi: Fix various typos & grammar errors.
6908
6909 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
6910
6911         [BZ #20255]
6912         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
6913         * math/libm-test.inc (fdim_test_data): Add another test.
6914
6915         [BZ #6796]
6916         [BZ #20255]
6917         [BZ #20256]
6918         * math/s_fdim.c: Include <math_private.h>.
6919         (__fdim): Use math_narrow_eval on result.
6920         * math/s_fdimf.c: Include <math_private.h>.
6921         (__fdimf): Use math_narrow_eval on result.
6922         * sysdeps/i386/fpu/s_fdim.S: Remove file.
6923         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
6924         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
6925         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
6926         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
6927         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
6928         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
6929         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
6930         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
6931         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
6932         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
6933         * math/libm-test.inc (fdim_test_data): Expect errno setting on
6934         overflow.  Add sNaN tests.
6935
6936         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
6937         fpclassify.
6938         * math/s_fdimf.c (__fdimf): Likewise.
6939         * math/s_fdiml.c (__fdiml): Likewise.
6940
6941 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6942
6943         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6944         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
6945         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6946         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6947         ifunc'ed strcasecmp/strncasecmp.
6948         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
6949         [EALIGN]: Removed.
6950         [END]: Likewise.
6951         [__strcasecmp]: Define instead of the above to control symbol name.
6952         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
6953         for __strcasecmp_power8.
6954         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
6955         for __strncasecmp_power8.
6956         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
6957         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
6958         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
6959         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
6960         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
6961         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
6962
6963 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
6964
6965         [BZ #20252]
6966         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
6967         arguments when second argument is a NaN.
6968         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
6969         qNaN tests.
6970
6971         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
6972         (conj_test_data): Likewise.
6973         (copysign_test_data): Likewise.
6974         (creal_test_data): Likewise.
6975         (fma_test_data): Likewise.
6976         (fmod_test_data): Likewise.
6977
6978         [BZ #20250]
6979         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
6980         itself.
6981         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
6982         zero input to itself.
6983         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
6984         Likewise.
6985         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
6986         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6987         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
6988         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6989         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
6990
6991 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6992
6993         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
6994         * nptl/tst-cancel4-common.c: New file.
6995         * nptl/tst-cancel4-common.h: Likewise.
6996         * nptl/tst-cancel4.c: Move common definitions to
6997         tst-cancel4-common.{c,h} file.
6998         * nptl/tst-cancel4_1.c: New test.
6999         * nptl/tst-cancel4_2.c: New test.
7000
7001 2016-06-13  Florian Weimer  <fweimer@redhat.com>
7002
7003         [BZ #20248]
7004         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
7005         (write_message): New function.
7006         (stackoverflow_handler): Call it instead of printf, to avoid
7007         excessive stack usage by printf.
7008         (do_test): Restore SIGSEGV, SIGBUS default handlers.
7009
7010 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7011
7012         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
7013         (prio_inherit_missing): Remove define.
7014         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7015         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7016         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
7017         Likewise.
7018         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7019         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7020         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7021         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7022         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7023         (__ASSUME_FUTEX_LOCK_PI): Likewise.
7024
7025 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
7026
7027         [BZ #19670]
7028         [BZ #19672]
7029
7030         * io/test-lfs.c (do_prepare): Use xmalloc.
7031         * io/tst-fcntl.c (do_prepare): Likewise.
7032         * libio/tst-fopenloc.c (do_bz17916): Likewise.
7033         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
7034         * login/tst-utmp.c (do_prepare): Likewise.
7035         * posix/tst-exec.c (do_prepare): Likewise.
7036         * posix/tst-pathconf.c (prepare): Likewise.
7037         * posix/tst-spawn.c (do_prepare): Likewise.
7038         * posix/tst-truncate.c (do_prepare): Likewise.
7039         * rt/tst-aio.c (do_prepare): Likewise.
7040         * rt/tst-aio64.c (do_prepare): Likewise.
7041
7042 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7043
7044         [BZ #20237]
7045         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
7046         (get*ent): Set entidx to NULL during initialization.  If entidx is
7047         NULL, start iteration from the beginning.
7048
7049 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7050
7051         * malloc/malloc.c (musable): Return correct size for dumped fake
7052         mmapped chunk.
7053
7054 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7055
7056         [BZ #20222]
7057         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
7058         (_IO_cookie_write): Likewise.
7059         (_IO_cookie_seek): Likewise.
7060         (_IO_cookie_close): Likewise.
7061         (_IO_old_cookie_seek): Likewise.
7062         (set_callbacks): New function.
7063         (_IO_cookie_init): Call set_callbacks to copy callbacks.
7064
7065 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
7066
7067         * locale/programs/localedef.c (oldstyle_tables): Remove.
7068         * locale/programs/localedef.h (oldstyle_tables): Likewise.
7069
7070 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
7071
7072         [BZ #20240]
7073         * math/Makefile (CFLAGS-s_modf.c): New variable.
7074         (CFLAGS-s_modff.c): Likewise.
7075         (CFLAGS-s_modfl.c): Likewise.
7076         * math/libm-test.inc (modf_test_data): Add sNaN tests.
7077
7078 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
7079
7080         [BZ #20215]
7081         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
7082         [!__GNUC_PREREQ (3,2)]: Likewise.
7083
7084 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
7085
7086         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
7087         (msghdr.msg_controllen): Likewise.
7088         (cmsghdr.cmsg_len): Likewise.
7089         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
7090         ptw-oldsendmsg.
7091         (CFLAGS-oldrecvmsg.c): Remove rule.
7092         (CFLAGS-oldsendmsg.c): Likewise.
7093         (CFLAGS-recvmsg.c): Add rule.
7094         (CFLAGS-sendmsg.c): Likewise.
7095         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
7096         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
7097         (CFLAGS-recvmsg.c): Remove rule.
7098         (CFLAGS-sendmsg.c): Likewise.
7099         (CFLAGS-oldrecvmsg.c): Likewise.
7100         (CFLAGS-oldsendmsg.c): Likewise.
7101         (CFLAGS-recvmmsg.c): Likewise.
7102         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
7103         to kernel defined interfaces.
7104         (msghdr.msg_controllen): Likewise.
7105         (cmsghdr.cmsg_len): Likewise.
7106         (msghdr.__glibc_reserved1): Remove member.
7107         (msghdr.__glibc_reserved2): Likewise.
7108         (cmsghdr.__glibc_reserved1): Likewise.
7109         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
7110         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
7111         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7112         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7113         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
7114         version.
7115         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
7116         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
7117         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
7118         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
7119         Remove recvmsg and sendmsg.
7120         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
7121         Likewise.
7122         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7123         Likewise.
7124         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7125         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7126         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7127         Likewise.
7128         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7129         Likewise.
7130         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
7131         [libc] (GLIBC_2.24): Likewise.
7132         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7133         Likewise.
7134         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7135         Likewise.
7136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7137         [libc] (GLIBC_2.24): Likewise.
7138         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7139         Likewise.
7140         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7141         Likewise.
7142         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7143         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7144         Likewise.
7145         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7146         Likewise.
7147         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7148         Likewise.
7149         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
7150         Likewise.
7151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
7152         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
7153         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
7154         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
7155         version for {recv,send,recm,sendm}msg.
7156         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7157         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7158         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7159         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7160         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7161         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7162         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7163         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7164         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7165         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7166         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7167         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7169         Likewise.
7170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7171         Likewise.
7172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7174         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7175         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7176         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7177         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7178         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7179         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7180         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7181         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7182         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7183         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7184         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7185
7186 2016-06-10  Florian Weimer  <fweimer@redhat.com>
7187
7188         [BZ #19564]
7189         Remove __malloc_initialize_hook from the API.
7190         * malloc/malloc.h (__malloc_initialize_hook): Remove.
7191         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
7192         #pragma GCC poison.
7193         * malloc/malloc-hooks.h: New file.
7194         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
7195         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
7196         (old__malloc_initialize_hook): Rename from
7197         __malloc_initialize_hook to evade poisoning.  Turn into compat
7198         symbol.
7199         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
7200         __malloc_initialize_hook.
7201         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
7202         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
7203         * manual/memory.texi (Hooks for Malloc): Remove
7204         __malloc_initialize_hook.  Adjust hook example.
7205
7206 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
7207
7208         [BZ #20235]
7209         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
7210         itself.
7211         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7212         * math/libm-test.inc (log2_test_data): Add sNaN tests.
7213
7214         [BZ #20234]
7215         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
7216         infinity or NaN input to itself.
7217
7218         [BZ #20233]
7219         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
7220         to itself.
7221
7222         [BZ #20232]
7223         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
7224         itself.
7225
7226 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7227
7228         * sysdeps/x86_64/start.S (_start): Always indirect branch to
7229         __libc_start_main via GOT.
7230
7231 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7232
7233         * sysdeps/x86_64/memcopy.h: New file.
7234         * sysdeps/x86_64/wordcopy.c: Likewise.
7235
7236 2016-06-09  Florian Weimer  <fweimer@redhat.com>
7237
7238         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
7239         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
7240         <cstdlib>.
7241         (optimization_barrier): New.
7242         (do_test): Use it.  Call quick_exit in the global namespace.
7243         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
7244         instead of <cstdlib>, <thread>.
7245         (optimization_barrier): New.
7246         (non_main_thread): Adjust declaration.  Call optimization_barrier.
7247         Call quick_exit in the global namespace.
7248         (do_test): Call optimization_barrier.  Use pthread_create,
7249         pthread_join instead of std::thread.
7250
7251 2016-06-09  Andreas Schwab  <schwab@suse.de>
7252
7253         [BZ #19755]
7254         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
7255         new entries in auto-propagate mode.
7256         * nscd/grpcache.c (cache_addgr): Likewise.
7257
7258 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
7259
7260         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
7261         New functions.
7262         (add_temp_file): Use them.
7263
7264 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
7265
7266         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
7267
7268 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
7269
7270         [BZ #20229]
7271         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
7272         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7273         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
7274
7275         [BZ #20228]
7276         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
7277         itself.
7278         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
7279         * math/libm-test.inc (log10_test_data): Add sNaN tests.
7280
7281         [BZ #20227]
7282         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
7283         itself.
7284         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
7285         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7286         * math/libm-test.inc (log_test_data): Add sNaN tests.
7287
7288         [BZ #20226]
7289         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
7290         itself.
7291         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7292         * math/libm-test.inc (exp_test_data): Add sNaN tests.
7293         (exp10_test_data): Likewise.
7294         (expm1_test_data): Likewise.
7295
7296         [BZ #20225]
7297         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
7298         itself.
7299         * math/s_ldexpf.c (__ldexpf): Likewise.
7300         * math/s_ldexpl.c (__ldexpl): Likewise.
7301         * math/w_scalbln.c (__w_scalbln): Likewise.
7302         * math/w_scalblnf.c (__w_scalblnf): Likewise.
7303         * math/w_scalblnl.c (__w_scalblnl): Likewise.
7304         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
7305         (scalbln_test_data): Likewise.
7306
7307         [BZ #20224]
7308         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
7309         argument to itself.
7310         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
7311
7312 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7313
7314         [BZ #19776]
7315         * sysdeps/x86_64/memcpy.S: Make it dummy.
7316         * sysdeps/x86_64/mempcpy.S: Likewise.
7317         * sysdeps/x86_64/memmove.S: New file.
7318         * sysdeps/x86_64/memmove_chk.S: Likewise.
7319         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
7320         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
7321         * sysdeps/x86_64/memmove.c: Removed.
7322         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
7323         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
7324         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
7325         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7326         Likewise.
7327         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7328         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7329         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7330         memcpy-sse2-unaligned, memmove-avx-unaligned,
7331         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
7332         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7333         (__libc_ifunc_impl_list): Replace
7334         __memmove_chk_avx512_unaligned_2 with
7335         __memmove_chk_avx512_unaligned.  Remove
7336         __memmove_chk_avx_unaligned_2.  Replace
7337         __memmove_chk_sse2_unaligned_2 with
7338         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
7339         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
7340         with __memmove_avx512_unaligned.  Replace
7341         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
7342         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
7343         with __memcpy_chk_avx512_unaligned.  Remove
7344         __memcpy_chk_avx_unaligned_2.  Replace
7345         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
7346         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
7347         Replace __memcpy_avx512_unaligned_2 with
7348         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
7349         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
7350         with __mempcpy_chk_avx512_unaligned.  Remove
7351         __mempcpy_chk_avx_unaligned_2.  Replace
7352         __mempcpy_chk_sse2_unaligned_2 with
7353         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
7354         Replace __mempcpy_avx512_unaligned_2 with
7355         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
7356         Replace __mempcpy_sse2_unaligned_2 with
7357         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
7358         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
7359         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
7360         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
7361         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
7362         (ENTRY): Removed.
7363         (END): Likewise.
7364         (ENTRY_CHK): Likewise.
7365         (libc_hidden_builtin_def): Likewise.
7366         Don't include ../memcpy.S.
7367         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
7368         __memcpy_chk_avx512_unaligned_erms and
7369         __memcpy_chk_avx512_unaligned.  Use
7370         __memcpy_chk_avx_unaligned_erms and
7371         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7372         Default to __memcpy_chk_sse2_unaligned.
7373         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7374         Change function suffix from unaligned_2 to unaligned.
7375         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
7376         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
7377         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
7378         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
7379         (ENTRY): Removed.
7380         (END): Likewise.
7381         (ENTRY_CHK): Likewise.
7382         (libc_hidden_builtin_def): Likewise.
7383         Don't include ../mempcpy.S.
7384         (mempcpy): New.  Add a weak alias.
7385         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
7386         __mempcpy_chk_avx512_unaligned_erms and
7387         __mempcpy_chk_avx512_unaligned.  Use
7388         __mempcpy_chk_avx_unaligned_erms and
7389         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7390         Default to __mempcpy_chk_sse2_unaligned.
7391
7392 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7393
7394         [BZ #19881]
7395         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
7396         into ...
7397         * sysdeps/x86_64/memset.S: This.
7398         (__bzero): Removed.
7399         (__memset_tail): Likewise.
7400         (__memset_chk): Likewise.
7401         (memset): Likewise.
7402         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
7403         defined.
7404         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
7405         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
7406         (__memset_zero_constant_len_parameter): Check SHARED instead of
7407         PIC.
7408         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7409         memset-avx2 and memset-sse2-unaligned-erms.
7410         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7411         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
7412         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
7413         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7414         (__bzero): Enabled.
7415         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
7416         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
7417         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
7418         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
7419         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7420         (memset): Removed.
7421         (__memset_chk): Likewise.
7422         (MEMSET_SYMBOL): New.
7423         (libc_hidden_builtin_def): Replace __memset_sse2 with
7424         __memset_sse2_unaligned.
7425         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
7426         __memset_chk_sse2 and __memset_chk_avx2 with
7427         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
7428         Use __memset_chk_sse2_unaligned_erms or
7429         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
7430         __memset_chk_avx512_unaligned_erms and
7431         __memset_chk_avx512_unaligned.
7432
7433 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7434
7435         * math/gen-auto-libm-test.c (fp_format_desc): remove
7436         suffix member.
7437         (output_generic_value): Remove usage of suffix member,
7438         and the resulting unuse of the fp_format argument.
7439         (output_for_one_input_case): Remove unused fp_format
7440         parameter.
7441
7442         * math/auto-libm-test-out: Regenerate.
7443
7444         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
7445         usage with TEST_COND_ibm128.
7446         (TEST_COND_flt_32): Remove.
7447         (TEST_COND_dbl_64): Remove.
7448         (TEST_COND_ldbl_96_intel): Remove.
7449         (TEST_COND_ldbl_96_m68k): Remove.
7450         (TEST_COND_ldbl_128): Remove.
7451
7452 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7453
7454         * auto-libm-test-in:
7455         Replace flt-32 usage with binary32.
7456         Replace dbl-64 usage with binary64.
7457         Replace ldbl-intel-96 usage with intel96.
7458         Replace ldbl-m68k-96 usage with m68k96.
7459         Replace ldbl-128ibm usage with ibm128.
7460         Replace ldbl-128 usage with binary128.
7461
7462         * auto-libm-test-out: Regenerate.
7463
7464 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7465
7466         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
7467         (parse_ulps): Dynamically generate type name matching
7468         string from all_floats.
7469         (get_ulps): Generate the ulps as an array instead.
7470         (output_ulps): Dynamically compose the type based
7471         on the number of supported formats, and print
7472         the indices as type specific helper macros.
7473
7474         * math/libm-test.inc: Remove comment about CHOOSE.
7475         (ulp_data): Generate the type in libm-test-ulps.h.
7476         (ULP_IDX): New macro.
7477         (find_ulps): Update usage of max_ulp.
7478
7479         * math/test-double-vlen2.h (CHOOSE): Remove.
7480         * math/test-double-vlen4.h (CHOOSE): Likewise.
7481         * math/test-double-vlen8.h (CHOOSE): Likewise.
7482         * math/test-float.c (CHOOSE): Likewise.
7483         * math/test-float-finite.c (CHOOSE): Likewise.
7484         * math/test-double.c (CHOOSE): Likewise.
7485         * math/test-double-finite.c (CHOOSE): Likewise.
7486         * math/test-idouble.c (CHOOSE): Likewise.
7487         * math/test-ifloat.c (CHOOSE): Likewise.
7488         * math/test-ildoubl.c (CHOOSE): Likewise.
7489         * math/test-ldouble-finite.c (CHOOSE): Likewise.
7490         * math/test-ldouble.c (CHOOSE): Likewise.
7491
7492         * math/test-float.h (TEST_FLOAT): Remove.
7493         * math/test-double.h (TEST_DOUBLE): Likewise.
7494         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
7495
7496 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7497
7498         * math/gen-libm-test.pl: (apply_lit): New subroutine.
7499         (parse_args): Strip C suffix from floating point literals
7500         typed with 'f' and wrap them with LIT().
7501
7502         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
7503         (test_ff_f_data_nexttoward): Rename to
7504         (test_fj_f_data): New struct.
7505         (nexttoward_test_data): Relabel tests as
7506         TEST_fj_f instead of TEST_ff_f.
7507
7508 2016-06-08  Florian Weimer  <fweimer@redhat.com>
7509
7510         Emacs bug 23726.
7511         * malloc/malloc.c (dumped_main_arena_start): Update comment.
7512         (__libc_realloc): Correct size computation for dumped fake mmapped
7513         chunks.
7514
7515 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
7516
7517         [BZ #20219]
7518         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
7519         to itself.
7520         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
7521
7522         [BZ #20218]
7523         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
7524         to itself.
7525         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
7526
7527 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7528
7529         [BZ #20195]
7530         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
7531         check to ...
7532         (init_cpu_features): Here.
7533
7534 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
7535
7536         [BZ #20214]
7537         * sysdeps/unix/sysv/linux/bits/in.h
7538         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7539          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
7540         Define to 1.
7541         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7542          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
7543         Define to 0.
7544         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
7545         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
7546
7547 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
7548
7549         [BZ #20198]
7550         * stdlib/Makefile (tests): Add tst-quick_exit, and
7551         tst-thread-quick_exit.
7552         [ifeq ($(have-cxx-thread_local),yes)]
7553         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
7554         (CFLAGS-tst-thread-quick_exit.o): Likewise.
7555         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
7556         (LDLIBS-tst-thread-quick_exit): Likewise.
7557         [ifneq ($(have-cxx-thread_local),yes)]
7558         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
7559         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
7560         If run_dtors is true call __call_tls_dtors.
7561         (exit): Call __run_exit_handlers with run_dtors set to true.
7562         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
7563         definition.
7564         * stdlib/quick_exit.c (quick_exit): Remove function.
7565         (__new_quick_exit): New function.
7566         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
7567         function.
7568         * stdlib/tst-quick_exit.cc: New file.
7569         * stdlib/tst-thread-quick_exit.cc: New file.
7570         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
7571         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
7572         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
7573         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
7574         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
7575         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
7576         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
7577         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
7578         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
7579         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
7580         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
7581         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
7582         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
7583         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
7584         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
7585         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
7587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
7588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
7589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
7590         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
7591         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
7592         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
7593         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
7594         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
7595         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
7596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
7597         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
7598         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
7599         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
7600
7601 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7602
7603         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
7604         a typo in comments.
7605
7606 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7607
7608         [BZ #20213]
7609         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
7610         argument to itself.
7611         * math/libm-test.inc (asin_test_data): Add sNaN tests.
7612
7613 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7614
7615         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
7616         required flags.
7617         (CFLAGS-pwritev64.c): Likewise.
7618         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
7619         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
7620         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
7621         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7622         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
7623         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
7624         syscall from auto-generation.
7625         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
7626         [WORDSIZE == 64] (pwritev64): Remove macro.
7627         [!PWRITEV] (PWRITEV): Likewise.
7628         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7629         [!PWRITEV] (PWRITE): Likewise.
7630         [!PWRITEV] (OFF_T): Likewise.
7631         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7632         (LO_HI_LONG): Remove macro.
7633         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
7634         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
7635         (PWRITEV): Remove macro.
7636         (PWRITEV_REPLACEMENTE): Likewise.
7637         (PWRITE): Likewise.
7638         (OFF_T): Likewise.
7639         (pwritev64): New function.
7640         * nptl/tst-cancel4.c (tf_writev): Add test.
7641
7642         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
7643         required flags.
7644         (CFLAGS-preadv64.c): Likewise.
7645         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
7646         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
7647         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
7648         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
7649         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
7650         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
7651         syscall from auto-generation.
7652         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
7653         [WORDSIZE == 64] (preadv64): Remove macro.
7654         [!PREADV] (PREADV): Likewise.
7655         [!PREADV] (PREADV_REPLACEMENT): Likewise.
7656         [!PREADV] (PREAD): Likewise.
7657         [!PREADV] (OFF_T): Likewise.
7658         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
7659         (LO_HI_LONG): Remove macro.
7660         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
7661         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
7662         (PREADV): Remove macro.
7663         (PREADV_REPLACEMENTE): Likewise.
7664         (PREAD): Likewise.
7665         (OFF_T): Likewise.
7666         (preadv64): New function.
7667         * nptl/tst-cancel4.c (tf_preadv): Add test.
7668
7669 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7670
7671         [BZ #20212]
7672         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
7673         argument to itself.
7674         * math/libm-test.inc (acos_test_data): Add sNaN tests.
7675
7676 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7677
7678         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
7679         New symbol defined as libc_hidden_def.
7680         (strcasestr): Became a weak alias to __strcasestr.
7681         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
7682         according to multi-arch support.  Move __stpncpy hidden
7683         definition from here to...
7684         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
7685         symbol stpncpy.
7686         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
7687         libc_hidden_builtin_def.
7688         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
7689         memset symbol to use when multi-arch support is available.
7690
7691 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7692
7693         * dlfcn/tst-rec-dlopen.c: Include string.h.
7694
7695 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7696
7697         * manual/install.texi: Remove mention of --without-tls
7698         * INSTALL: Regenerate.
7699
7700 2016-06-05  Florian Weimer  <fweimer@redhat.com>
7701
7702         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
7703         Remove.
7704         (call_function, interposed_malloc_called): New variables.
7705         (malloc): New function.
7706         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
7707         and clear call_function as needed.
7708
7709 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
7710
7711         * include/wchar.h (__wmemset): Use __typeof.
7712
7713 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
7714
7715         * include/wchar.h (__wmemset): Declare function without typeof.
7716
7717 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7718
7719         [BZ #20205]
7720         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
7721         exponent when incrementing negative subnormal with low mantissa
7722         word zero.
7723         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7724         Add another test.
7725
7726 2016-06-03  Florian Weimer  <fweimer@redhat.com>
7727
7728         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
7729         __wmemset instead of wmemset.
7730
7731 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
7732
7733         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
7734         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
7735         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
7736         __USE_KERNEL_IPV6_DEFS to 0.
7737         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
7738         Update comment.
7739
7740 2016-06-01  Florian Weimer  <fweimer@redhat.com>
7741
7742         [BZ #19861]
7743         Do not use IFUNC resolver with potentially unrelocated symbol.
7744         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
7745         (DEFINE_FORK): Remove macro and inline definition.
7746         (fork_alias): Renamed from fork_ifunc.
7747         (__fork_alias): Renamed from __fork_ifunc.
7748
7749 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
7750
7751         [BZ 19653]
7752         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
7753         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
7754
7755 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7756
7757         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
7758         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
7759         i386-linux-gnu).
7760         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
7761         Set to no.
7762         * sysdeps/mach/hurd/configure: Refresh.
7763
7764 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7765
7766         [BZ #20178]
7767         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
7768         on failure instead of exit.
7769
7770 2016-05-30  Roland McGrath  <roland@hack.frob.com>
7771
7772         [BZ #3629]
7773         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
7774         of POSIX.1-2008.
7775
7776 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7777
7778         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
7779           Use PLT entry for calling _hurd_self_sigstate.
7780
7781 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7782
7783         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
7784         available logical processors with SMT level type sharing L2
7785         cache for Intel processors.
7786
7787 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7788
7789         [BZ #20160]
7790         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
7791         argument to itself before returning the result.
7792         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7793         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7794         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7795         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7796         Likewise.
7797         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7798         Likewise.
7799         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
7800         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
7801         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7802         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7803         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
7804         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
7805
7806         [BZ #20160]
7807         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
7808         argument to itself before returning the result.
7809         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
7810         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
7811         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
7812         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
7813         Likewise.
7814         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7815         Likewise.
7816         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
7817         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
7818         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
7819         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7820         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
7821         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
7822
7823 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7824
7825         * libm-test.inc: Replace usage of M_El with
7826         (lit_e): New macro.
7827
7828 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7829
7830         * libm-test.inc: Replace usage of M_PI_4l with
7831         (lit_pi_4_d): New macro.
7832
7833 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7834
7835         * libm-test.inc: Replace usage of M_PIl with
7836         (lit_pi): New macro.
7837
7838 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7839
7840         * libm-test.inc: Replace usage of M_PI2l with
7841         (lit_pi_2_d): New macro.
7842
7843         * math/test-double.h (LITM): New macro.
7844         * math/test-float.h (LITM): Likewise.
7845         * math/test-ldouble.h (LITM): Likewise.
7846
7847 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7848
7849         * libm-test.inc (M_PI_34l): Rename to
7850         (lit_pi_3_m_4_d): New Macro.
7851         (M_PI_34_LOG10El): Rename to
7852         (lit_pi_3_m_4_ln10_m_d): New Macro.
7853         (M_PI2_LOG10El): Rename to
7854         (lit_pi_2_ln10_m_d):  New Macro.
7855         (M_PI4_LOG10El): Rename to
7856         (lit_pi_4_ln10_m_d):  New Macro.
7857         (M_PI_LOG10El): Rename to
7858         (lit_pi_ln10_d):  New Macro.
7859
7860 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7861
7862         [BZ #20157]
7863         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
7864         determine whether to negate low half if [_ARCH_PPCGR], and integer
7865         comparison otherwise.
7866         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
7867         determine whether to negate low half.
7868
7869         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
7870         (NO_TEST_INLINE_DOUBLE): Likewise.
7871         (TEST_COND_x86_64): Likewise.
7872         (TEST_COND_x86): Likewise.
7873         (M_PI_6l): Likewise.
7874
7875 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7876
7877         * math/libm-test.inc:
7878         (TEST_FLOAT): Change usage to TEST_COND_binary32.
7879         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
7880         (TEST_LDOUBLE): Update usage to evaluate as true if
7881         the guarded tests match the property being tested.
7882         (LDBL_MAX_EXP): Change to MAX_EXP.
7883         (LDBL_MIN_EXP): Change to MIN_EXP.
7884         (LDBL_MANT_DIG): Change to MANT_DIG, except for
7885         nexttoward tests.
7886
7887 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7888
7889         * math/libm-test.inc:
7890         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
7891         (TYPE_MIN): Likewise.
7892         (TYPE_TRUE_MIN): Likewise.
7893         (TYPE_MAX): Likewise.
7894         (MIN_EXP): Likewise.
7895         (MAX_EXP): Likewise.
7896         (MANT_DIG): Likewise.
7897
7898         (FSTR_MAX): New macro.
7899         (__CONCATX): Likewise.
7900         (QTYPE_STR): Likewise.
7901         (TEST_COND_binary32): Likewise.
7902         (TEST_COND_binary64): Likewise.
7903         (TEST_COND_binary128): Likewise.
7904         (TEST_COND_ibm128): Likewise.
7905         (TEST_COND_intel96): Likewise.
7906         (TEST_COND_m68k96): Likewise.
7907
7908         (TEST_COND_flt_32): Redefine as equivalent format test macro.
7909         (TEST_COND_dbl_64): Likewise.
7910         (TEST_COND_ldbl_96_intel): Likewise.
7911         (TEST_COND_ldbl_96_m68k): Likewise.
7912         (TEST_COND_ldbl_128): Likewise.
7913         (TEST_COND_ldbl_128ibm): Likewise.
7914
7915         (plus_zero): Redefine using LIT macro.
7916         (minus_zero): Likewise.
7917         (plus_infty): Redefine as (INF).
7918         (minux_infty): Redefine as (-INF).
7919         (max_value): Redefine as TYPE_MAX.
7920         (min_value): Redefine as TYPE_MIN.
7921         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
7922
7923         (print_float): Refactor to use snprintf to convert FLOAT values
7924         to string. This brings it closer to dropin replacement of strtof
7925         for the TS 18661 defined types.
7926         (update_stats): Likewise.
7927         (print_complex_function_ulps): Likewise.
7928         (print_max_error): Likewise.
7929         (print_complex_max_error): Likewise.
7930         (check_float_internal): Likewise.
7931
7932         * math/test-float.h (PREFIX): New macro.
7933         (LIT): Likewise.
7934         (TYPE_STR): Likewise.
7935         (FTOSTR): Likewise.
7936
7937         * math/test-double.h (PREFIX): New macro.
7938         (LIT): Likewise.
7939         (TYPE_STR): Likewise.
7940         (FTOSTR): Likewise.
7941
7942         * math/test-ldouble.h (PREFIX): New macro.
7943         (LIT): Likewise.
7944         (TYPE_STR): Likewise.
7945         (FTOSTR): Likewise.
7946
7947 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7948
7949         [BZ #20156]
7950         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
7951         to itself when zero or not finite.
7952         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
7953         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
7954         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
7955         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7956
7957 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
7958
7959         [BZ #20153]
7960         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
7961         x * x + x for infinities and NaNs.
7962
7963         [BZ #20151]
7964         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
7965         argument to itself before returning result.
7966         (__ieee754_y0l): Likewise.
7967         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7968         (__ieee754_y1l).
7969
7970         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
7971         (atan_test_data): Likewise.
7972         (ceil_test_data): Likewise.
7973         (cos_test_data): Likewise.
7974         (cosh_test_data): Likewise.
7975         (erf_test_data): Likewise.
7976         (exp2_test_data): Likewise.
7977         (fabs_test_data): Likewise.
7978         (floor_test_data): Likewise.
7979         (ilogb_test_data): Likewise.
7980         (j0_test_data): Likewise.
7981         (j1_test_data): Likewise.
7982         (jn_test_data): Likewise.
7983         (lgamma_test_data): Likewise.
7984         (lrint_test_data): Likewise.
7985         (llrint_test_data): Likewise.
7986         (logb_test_data): Likewise.
7987         (lround_test_data): Likewise.
7988         (llround_test_data): Likewise.
7989         (nearbyint_test_data): Likewise.
7990         (rint_test_data): Likewise.
7991         (round_test_data): Likewise.
7992         (sin_test_data): Likewise.
7993         (sincos_test_data): Likewise.
7994         (sinh_test_data): Likewise.
7995         (sqrt_test_data): Likewise.
7996         (tan_test_data): Likewise.
7997         (tanh_test_data): Likewise.
7998         (tgamma_test_data): Likewise.
7999         (trunc_test_data): Likewise.
8000         (y0_test_data): Likewise.
8001         (y1_test_data): Likewise.
8002         (yn_test_data): Likewise.
8003
8004         * math/libm-test.inc: Update comment about NaN testing.
8005         (TEST_SNAN): New macro.
8006         (snan_value): Likewise.
8007         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
8008         (fpclassify_test_data): Add sNaN tests.
8009         (isfinite_test_data): Likewise.
8010         (isinf_test_data): Likewise.
8011         (isnan_test_data): Likewise.
8012         (isnormal_test_data): Likewise.
8013         (issignaling_test_data): Likewise.
8014         (signbit_test_data): Likewise.
8015         * math/gen-libm-test.pl (%beautify): Add snan_value.
8016         (show_exceptions): Add argument $test_snan.
8017         (parse_args): Handle snan_value as non-finite.  Update call to
8018         show_exceptions.
8019         * math/Makefile (libm-test-no-inline-cflags): Add
8020         -fsignaling-nans.
8021
8022 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8023
8024         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
8025         (CFLAGS-oldsendmsg.c): Add rule.
8026         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
8027         Correct recvmsg symbol name.
8028         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
8029         Likewise.
8030
8031 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8032
8033         * sysdeps/unix/sysv/linux/Makefile
8034         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
8035         oldsendmmsg.
8036         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
8037         sendmmsg.
8038         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8039         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8040         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8041         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8043         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8044         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8045         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
8046         Likewise.
8047         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8048         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
8049         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
8050         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
8051         iovlen and controllen fields to adjust to POSIX specification.
8052         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8053
8054         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
8055         and change to correct expected type.
8056         (msghdr.msg_controllen): Likewise.
8057         (cmsghdr.cmsg_len): Likewise.
8058         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
8059         expected POSIX assumption about the size.
8060         (msghdr.msg_controllen): Likewise.
8061         (msghdr.__glibc_reserved1): Likewise.
8062         (msghdr.__glibc_reserved2): Likewise.
8063         (cmsghdr.cmsg_len): Likewise.
8064         (cmsghdr.__glibc_reserved1): Likewise.
8065         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
8066         Add ptw-oldrecvmsg and ptw-oldsendmsg.
8067         (CFLAGS-sendmsg.c): Remove rule.
8068         (CFLAGS-recvmsg.c): Likewise.
8069         (CFLAGS-oldsendmsg.c): Add rule.
8070         (CFLAGS-oldrecvmsg.c): Likewise.
8071         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
8072         recvmsg and sendmsg.
8073         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
8074         Likewise.
8075         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
8076         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
8077         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
8078         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
8079         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
8080         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
8081         Likewise.
8082         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
8083         Likewise.
8084         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
8085         Likewise.
8086         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
8087         Likewise.
8088         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
8089         Likewise.
8090         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
8091         Likewise.
8092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
8093         (GLIBC_2.24): Likewise.
8094         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
8095         Likewise.
8096         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
8097         Likewise.
8098         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
8099         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
8100         Likewise.
8101         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
8102         Likewise.
8103         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
8104         Likewise.
8105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
8106         (GLIBC_2.24): Likewise.
8107         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
8108         Likewise.
8109         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
8110         Likewise.
8111         * sysdeps/unix/sysv/linux/Makefile
8112         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
8113         (CFLAGS-sendmsg.c): Add rule.
8114         (CFLAGS-recvmsg.c): Likewise.
8115         (CFLAGS-oldsendmsg.c): Likewise.
8116         (CFLAGS-oldrecvmsg.c): Likewise.
8117         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
8118         initialization.
8119         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
8120         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
8121         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
8122         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
8123         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
8124         iovlen and controllen fields to adjust to POSIX specification.
8125         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
8126         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
8127         added recvmsg and sendmsg.
8128         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8129         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8130         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8131         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8132         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8133         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8134         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8135         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8136         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8137         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8138         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8139         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
8140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8141         Likewise.
8142         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8144         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8145         Likewise.
8146         Likewise.
8147         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8148         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8149         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8150         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8151         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8152         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8153         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8154         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8155         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8156         Likewise.
8157         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8158         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8159
8160         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
8161         from auto-generation.
8162         (sendmsg): Likewise.
8163         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
8164         (sendmsg): Likewise.
8165         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
8166         (sendmsg): Likewise.
8167         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
8168         (sendmsg): Likewise.
8169         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
8170         (sendmsg): Likewise.
8171         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
8172         (sendmsg): Likewise.
8173         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
8174         Likewise.
8175         (sendmsg): Likewise.
8176         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
8177         (sendmsg): Likewise.
8178         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8179         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8180         Remove.
8181         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8182         Likewise.
8183         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8184         Undefine.
8185         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8186         Likewise.
8187         * sysdeps/unix/sysv/linux/kernel-features.h
8188         (__ASSUME_SENDMSG_SYSCALL): Define.
8189         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8190         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8191         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8192         Remove.
8193         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8194         Likewise.
8195         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8196         Undefine.
8197         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8198         Likewise.
8199         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8200         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8201         Remove.
8202         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8203         Likewise.
8204         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8205         Undefine.
8206         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8207         Likewise.
8208         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8209         (__ASSUME_SENDMSG_SYSCALL): Undefine.
8210         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8211         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8212         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8213         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8214         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8215         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8216         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8217
8218 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8219
8220         * stdlib/gen-tst-strtod-round.c: Add backslash to
8221         compile command in comment.
8222         (printfp): Remove the literal suffix, and define an infinite
8223         value as INF to avoid expansion clash with INFINITY.
8224         (round_str): Remove the literal suffix.
8225         (round_for_all): Likewise, remove the now duplicate ldbl-64
8226         entry, and remove some magic constants.
8227
8228         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
8229         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
8230         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
8231         (_CONCAT): New macro.
8232         (CONCAT): Likewise.
8233         (CHOOSE_ld): Likewise.
8234         (CHOOSE_f): Likewise.
8235         (CHOOSE_d): Likewise.
8236         (FTYPE_MEMBER): Likewise.
8237         (BOOL_MEMBER): Likewise.
8238         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
8239         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
8240         (_XNTRY): Likewise.
8241         (XNTRY): Likewise.
8242         (_ENTRY): Likewise.
8243         (ENTRY): Likewise.
8244         (test_exactness): Generate members via macro.
8245         (test_results): Likewise.
8246         (test): Update members.
8247         (TEST): Redefine using new macros.
8248         (INF): New macro.
8249         (fetestmodes): New structure.
8250         (do_test): Refactor to be type generic.
8251         (test_in_one_mode): Refactor duplicate code into
8252         (GEN_ONE_TEST): New macro.
8253
8254         * stdlib/tst-strtod-round-data.h: Regenerate.
8255
8256         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
8257         Extend to pass additional arbitrary parameters to
8258         generators.
8259
8260 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
8261
8262         [BZ #15479]
8263         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
8264         floating-point state after first floating-point operation on
8265         input.  Restore full floating-point state instead of just rounding
8266         mode.
8267         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
8268         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
8269         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
8270         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8271         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8272
8273         [BZ #15479]
8274         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
8275         floating-point state after first floating-point operation on
8276         input.  Restore full floating-point state instead of just rounding
8277         mode.
8278         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8279         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8280         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8281         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8282         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8283
8284 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8285
8286         [BZ #19727]
8287         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
8288         valid high surrogate.
8289         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
8290         of an utf16 surrogate.
8291         * iconv/gconv_simple.c (BODY): Likewise.
8292         * iconvdata/bug-iconv12.c: New file.
8293         * iconvdata/Makefile (tests): Add bug-iconv12.
8294
8295 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8296
8297         [BZ #19726]
8298         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
8299         outptrp in case of an illegal input.
8300         * iconv/tst-iconv6.c: New file.
8301         * iconv/Makefile (tests): Add tst-iconv6.
8302
8303 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8304
8305         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
8306         an error in case of a value in range of an utf16 low surrogate.
8307
8308 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8309
8310         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
8311         an error in case of a value in range of an utf16 low surrogate.
8312
8313 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8314
8315         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
8316         Move to ...
8317         * sysdeps/s390/Makefile: ... here.
8318         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
8319         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
8320         (BRANCH_ON_COUNT): New define.
8321         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
8322         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
8323         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
8324         run on s390-32, too.
8325         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
8326         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
8327         run on s390-32, too.
8328         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
8329         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
8330         run on s390-32, too.
8331
8332 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8333
8334         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
8335         etf3eh or new vector loop-variant.
8336
8337 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8338
8339         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
8340         etf3eh or new vector loop-variant.
8341
8342 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8343
8344         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
8345         or new vector loop-variant.
8346
8347 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8348
8349         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
8350         Rename to TR_LOOP and usage of tr instead of troo instruction.
8351
8352 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8353
8354         * sysdeps/s390/multiarch/gconv_simple.c: New File.
8355         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
8356
8357 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8358
8359         * sysdeps/s390/multiarch/8bit-generic.c: New File.
8360         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
8361         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
8362         New override define.
8363         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
8364
8365 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8366
8367         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
8368         * sysdeps/s390/configure.ac: Add test for S390 vector register
8369         support in gcc.
8370         * sysdeps/s390/configure: Regenerated.
8371
8372 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8373
8374         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
8375         Install file from $(objpfx)gconv-modules.
8376         ($(objpfx)gconv-modules): Concatenate architecture specific file
8377         in variable sysdeps-gconv-modules and gconv-modules in src dir.
8378         * sysdeps/s390/gconv-modules: New file.
8379         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
8380         Deleted.
8381         ($(objpfx)gconv-modules-s390): Deleted.
8382         (sysdeps-gconv-modules): New variable.
8383
8384 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8385
8386         [BZ #15479]
8387         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
8388         of immediate operand to rounding instruction.
8389         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
8390         Likewise.
8391         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
8392         Likewise.
8393         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
8394         Likewise.
8395
8396 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8397
8398         * math/libm-test.inc (MIN_EXP): Directly define as
8399         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
8400
8401 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8402
8403         * math/libm-test.inc (MANT_DIG): Directly define as
8404         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
8405
8406 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8407
8408         * stdlib/gen-tst-strtod-round.c (main):
8409           Change usage to more closely match the generated
8410           output.  Add usage and compilation instructions.
8411           (string_to_fp): Add and use FILE* parameter as
8412           output target.
8413           (print_fp): Likewise.
8414           (round_str): Likewise.
8415           (round_for_all): Likewise.
8416         * stdlib/tst-strtod-round.c (tests): Move into
8417         * stdlib/tst-strtod-round-data.h: New file.
8418
8419 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8420
8421         [BZ #15479]
8422         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
8423         (__round): Do not force "inexact" exception.
8424         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
8425         variable.
8426         (__round): Do not force "inexact" exception.
8427         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
8428         (__roundf): Do not force "inexact" exception.
8429         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
8430         (__roundl): Do not force "inexact" exception.
8431         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
8432         (__roundl): Do not force "inexact" exception.
8433         * math/libm-test.inc (round_test_data): Do not allow spurious
8434         "inexact" exceptions.
8435
8436         [BZ #15479]
8437         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
8438         exception in comment.
8439         (huge): Remove variable.
8440         (__floor): Do not force "inexact" exception.
8441         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
8442         "inexact" exception in comment.
8443         (huge): Remove variable.
8444         (__floor): Do not force "inexact" exception.
8445         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
8446         exception in comment.
8447         (huge): Remove variable.
8448         (__floorf): Do not force "inexact" exception.
8449         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
8450         exception in comment.
8451         (huge): Remove variable.
8452         (__floorl): Do not force "inexact" exception.
8453
8454         [BZ #15479]
8455         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
8456         exception in comment.
8457         (huge): Remove variable.
8458         (__ceil): Do not force "inexact" exception.
8459         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
8460         "inexact" exception in comment.
8461         (huge): Remove variable.
8462         (__ceil): Do not force "inexact" exception.
8463         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
8464         (__ceilf): Do not force "inexact" exception.
8465         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
8466         exception in comment.
8467         (huge): Remove variable.
8468         (__ceill): Do not force "inexact" exception.
8469
8470 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8471
8472         * config.h.in (BIND_NOW): New.
8473         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
8474         * configure: Regenerated.
8475         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
8476         indirect branch via the GOT slot.
8477
8478 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8479
8480         [BZ #19765]
8481         * sysdeps/s390/mempcpy.S: New File.
8482         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
8483         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
8484         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8485         Add mempcpy variants.
8486         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
8487         (memcpy): Adjust to be usable from mempcpy entry point.
8488         (__memcpy_mvcle): Likewise.
8489         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8490         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
8491         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
8492         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
8493         (__memcpy_z10): Likewise.
8494         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8495
8496 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8497
8498         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
8499         Remove __GI_ symbol.
8500         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
8501         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
8502         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
8503         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8504         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
8505         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
8506
8507 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8508
8509         * sysdeps/s390/s390-64/memcpy.S (memcpy):
8510         Use cghi instead of chi to compare 64bit value.
8511
8512 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8513
8514         * sysdeps/s390/s390-32/memcpy.S (memcpy):
8515         Jump to 1MB check before executing mvc-loop.
8516
8517 2016-05-24  Florian Weimer  <fweimer@redhat.com>
8518
8519         [BZ #6527]
8520         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
8521         unconditionally.
8522         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
8523
8524 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8525
8526         * stdlib/tst-strtod6.c (do_test): Use new type generic
8527         invocation of the test function.
8528         (test): Refactor into ...
8529         (TEST_STRTOD): New macro base function.
8530
8531 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8532
8533         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
8534         (TEST_STRTOD): New macro.
8535         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
8536
8537 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8538
8539         * stdlib/tst-strtod6.c (do_test): Use new type generic
8540         invocation of the test function.
8541         (test): Refactor into ...
8542         (TEST_STRTOD): New macro base function.
8543
8544 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8545
8546         CVE-2016-4429
8547         [BZ #20112]
8548         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
8549         payload.
8550
8551 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8552
8553         [BZ #20111]
8554         * bits/sockaddr.h (_SS_SIZE): Define.
8555         * bits/socket.h (_SS_SIZE): Remove.
8556         (_SS_PADSIZE): Adjust to account for all padding.
8557         (struct sockaddr_storage): Update comment.  Avoid implicit
8558         padding.
8559         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
8560         (_SS_PADSIZE): Adjust to account for all padding.
8561         (struct sockaddr_storage): Update comment.  Avoid implicit
8562         padding.
8563         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
8564         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
8565         (_SS_PADSIZE): Adjust to account for all padding.
8566         (struct sockaddr_storage): Update comment.  Avoid implicit
8567         padding.
8568         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
8569         __SS_SIZE is 126 in this version.
8570         * inet/tst-sockaddr.c: New file.
8571         * inet/Makefile (tests): Add tst-sockaddr.c
8572         (tst-sockaddr.c): Compile with non-strict aliasing.
8573
8574 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
8575
8576         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
8577         [XPG3 || XPG4].
8578         (NL_ARGMAX): Also expect for [XPG3].
8579         (NL_LANGMAX): Likewise.
8580         (NL_MSGMAX): Likewise.
8581         (NL_NMAX): Likewise.
8582         (NL_SETMAX): Likewise.
8583         (NL_TEXTMAX): Likewise.
8584         (NZERO): Likewise.
8585         (TMP_MAX): Likewise.
8586         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
8587         variable.
8588
8589         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
8590         (PF_MAX): Update value.
8591         (AF_KCM): New macro.
8592         (SOL_NETBEUI): Likewise.
8593         (SOL_LLC): Likewise.
8594         (SOL_DCCP): Likewise.
8595         (SOL_NETLINK): Likewise.
8596         (SOL_TIPC): Likewise.
8597         (SOL_RXRPC): Likewise.
8598         (SOL_PPPOL2TP): Likewise.
8599         (SOL_BLUETOOTH): Likewise.
8600         (SOL_PNPIPE): Likewise.
8601         (SOL_RDS): Likewise.
8602         (SOL_IUCV): Likewise.
8603         (SOL_CAIF): Likewise.
8604         (SOL_ALG): Likewise.
8605         (SOL_NFC): Likewise.
8606         (SOL_KCM): Likewise.
8607         (MSG_BATCH): New enum value and macro.
8608
8609 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8610
8611         [BZ #18185]
8612         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
8613         sharing L2 cache to 2 for Knights Landing.
8614
8615 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
8616
8617         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
8618         (FTW_DP): Do not expect for [XPG3 || XPG4].
8619         (FTW_SL): Do not expect for [XPG3].
8620         (FTW_SLN): Likewise.
8621         (FTW_PHYS): Likewise.
8622         (FTW_MOUNT): Likewise.
8623         (FTW_DEPTH): Likewise.
8624         (FTW_CHDIR): Likewise.
8625         (nftw): Likewise.
8626         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
8627         variable.
8628
8629 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8630
8631         * manual/errno.texi: Fix various typos & grammar errors.
8632
8633 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8634
8635         * manual/intro.texi: Fix duplicated typo.
8636
8637 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8638
8639         [BZ #13304]
8640         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
8641         <float.h>, <math_private.h> and <stdlib.h>.
8642         (add_split): New function.
8643         (mul_split): Likewise.
8644         (ext_val): New typedef.
8645         (store_ext_val): New function.
8646         (mul_ext_val): New function.
8647         (compare): New function.
8648         (add_split_ext): New function.
8649         (__fmal): After checking for Inf, NaN and zero, compute result as
8650         an exact sum of scaled double values in round-to-nearest before
8651         adding those up and adjusting for other rounding modes.
8652         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
8653         tests of fma.
8654         * math/auto-libm-test-out: Regenerated.
8655
8656 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8657
8658         [BZ #20119]
8659         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
8660         processor level type mask for CPUID with EAX == 11.
8661
8662 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8663
8664         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
8665         logical threads if the HTT bit is 0.
8666         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
8667         (index_cpu_HTT): Likewise.
8668         (reg_HTT): Likewise.
8669
8670 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8671
8672         [BZ #20115]
8673         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
8674         Remove alignments on jump targets.
8675
8676 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8677
8678         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
8679         (getpwent): Likewise.
8680         (setpwent): Likewise.
8681         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
8682         variable.
8683
8684         * conform/data/search.h-data (insque): Do not expect for [XPG3].
8685         (remque): Likewise.
8686         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
8687         variable.
8688
8689 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8690
8691         * math/libm-test.inc: Update comment not to refer to signs of NaNs
8692         not being tested.
8693
8694 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8695
8696         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8697         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
8698         call.
8699         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8700         (__condvar_cleanup1): Likewise.
8701
8702 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8703
8704         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
8705         New
8706         (__pthread_unwind): Renamed to ...
8707         (PTHREAD_UNWIND): This.
8708         (__pthread_enable_asynccancel): Replace
8709         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
8710
8711 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8712
8713         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
8714         (CLONE_NEWCGROUP): New macro.
8715
8716         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
8717         (Q_GETNEXTQUOTA): New macro.
8718
8719 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8720
8721         [BZ #19907]
8722         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
8723         buffer updated by the previous run.
8724         * string/test-memcpy.c (do_one_test): Likewise.
8725         * benchtests/bench-memmove.c (do_one_test): Add a comment.
8726         * string/test-memmove.c (do_one_test): Likewise.
8727
8728 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
8729
8730         [BZ #20094]
8731         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
8732         not [__USE_XOPEN].
8733         (unlockpt): Likewise.
8734         (ptsname): Likewise.
8735         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
8736         variable.
8737
8738         [BZ #20076]
8739         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
8740         instead of [__USE_UNIX98].
8741         (S_ISSOCK): Likewise.
8742         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
8743         variable.
8744
8745         [BZ #20074]
8746         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
8747         [__USE_POSIX].
8748         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
8749         variable.
8750
8751         [BZ #20051]
8752         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
8753         (ttyslot): Do not declare.
8754         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
8755         (ttyslot): New prototype.
8756         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
8757         variable.
8758         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
8759
8760 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8761
8762         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
8763
8764 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8765
8766         Fix race condition in tst-mallocfork2, use fewer resources.
8767         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
8768         to current process group.
8769         (signal_sender): Yield in the non-sleeping case.
8770
8771 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
8772
8773         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
8774         (ecvt): Likewise.
8775         (fcvt): Likewise.
8776         (gcvt): Likewise.
8777         (getsubopt): Likewise.
8778         (grantpt): Likewise.
8779         (initstate): Likewise.
8780         (l64a): Likewise.
8781         (mktemp): Likewise.
8782         (mkstemp): Likewise.
8783         (ptsname): Likewise.
8784         (random): Likewise.
8785         (realpath): Likewise.
8786         (setstate): Likewise.
8787         (srandom): Likewise.
8788         (ttyslot): Likewise.
8789         (unlockpt): Likewise.
8790         (valloc): Likewise.
8791
8792         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
8793         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
8794         variable.
8795
8796 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8797
8798         [BZ #20072]
8799         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
8800         init_cpu_features only if SHARED is defined.
8801         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
8802
8803 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8804
8805         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
8806         non-inclusive caches on Intel processors.
8807
8808 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8809
8810         * malloc/malloc.c (dumped_main_arena_start)
8811         (dumped_main_arena_end): New variables.
8812         (DUMPED_MAIN_ARENA_CHUNK): New macro.
8813         (do_check_chunk): Skip dumped fake mmapped chunks.
8814         (munmap_chunk): Likewise.
8815         (__libc_free): Do not adjust statistics for fake mmapped chunks.
8816         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
8817         mmapped chunks.
8818         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
8819         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
8820         and dumped_main_arena_end to cover the dumped heap.
8821
8822 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
8823
8824         * conform/data/time.h-data (getdate_err): Do not expect for
8825         [XPG3].
8826         (getdate): Likewise.
8827         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
8828         variable.
8829
8830         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
8831         (F_ULOCK): Likewise.
8832         (F_TEST): Likewise.
8833         (F_TLOCK): Likewise.
8834         (useconds_t): Likewise.
8835         (intptr_t): Do not expect for [XPG3] or [XPG4].
8836         (brk): Do not expect for [XPG3]
8837         (fchown): Likewise.
8838         (fchdir): Likewise.
8839         (ftruncate): Likewise.
8840         (getdtablesize): Likewise.
8841         (gethostid): Likewise.
8842         (getpagesize): Likewise.
8843         (getpgid): Likewise.
8844         (getsid): Likewise.
8845         (getwd): Likewise.
8846         (lchown): Likewise.
8847         (lockf): Likewise.
8848         (readlink): Likewise.
8849         (sbrk): Likewise.
8850         (setpgrp): Likewise.
8851         (setregid): Likewise.
8852         (setreuid): Likewise.
8853         (symlink): Likewise.
8854         (sync): Likewise.
8855         (truncate): Likewise.
8856         (ualarm): Likewise.
8857         (usleep): Likewise.
8858         (vfork): Likewise.
8859         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
8860         variable.
8861
8862         [BZ #20054]
8863         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
8864         not [__USE_UNIX98].
8865         * conform/data/unistd.h-data (gethostname): Do not expect for
8866         [XPG3].
8867
8868         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
8869         [!POSIX] (S_IFBLK): Likewise.
8870         [!POSIX] (S_IFCHR): Likewise.
8871         [!POSIX] (S_IFIFO): Likewise.
8872         [!POSIX] (S_IFREG): Likewise.
8873         [!POSIX] (S_IFDIR): Likewise.
8874         [!POSIX] (S_IFLNK): Likewise.
8875         [!POSIX] (S_IFSOCK): Likewise.
8876         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
8877         variable.
8878         (test-xfail-XPG4/fcntl.h/conform): Likewise.
8879
8880 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
8881
8882         * sysdeps/aarch64/memset.S (__memset):
8883         Rewrite of optimized memset.
8884
8885 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8886
8887         [BZ #19703]
8888         Partially async-signal-safe fork for single-threaded processes.
8889         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
8890         variable.  Do not acquire and reset/release malloc and libio locks
8891         in single-threaded processes.
8892         * malloc/tst-mallocfork2.c: New file.
8893         * malloc/Makefile (tests): Add it.
8894
8895 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8896
8897         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
8898         argument.  Use scratch buffer instead of extend_alloca.
8899         (gethosts): Use scratch buffer instead of extend_alloca.
8900         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
8901         extend_alloca.
8902         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
8903
8904 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
8905
8906         [BZ #20055]
8907         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
8908         instead of [__USE_UNIX98].
8909         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
8910         [__USE_UNIX98].
8911         * conform/data/termios.h-data (tcgetsid): Do not expect for
8912         [XPG3].
8913         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
8914         variable.
8915         (test-xfail-XPG4/termios.h/conform): Likewise.
8916
8917 2016-05-11  Florian Weimer  <fweimer@redhat.com>
8918
8919         Do not use mcheck in localedef.
8920         * locale/programs/localedef.c (turn_on_mcheck)
8921         (__malloc_initialize_hook): Remove.
8922
8923 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8924
8925         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
8926         * sysdeps/s390/s390-64/Makefile: Likewise.
8927
8928 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8929
8930         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
8931         Remove ifunc-defines.sym.
8932         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
8933         Likewise.
8934         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
8935         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
8936         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
8937         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
8938         rtld-global-offsets.sym.
8939         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
8940         * sysdeps/x86/cpu-features-offsets.sym: This.
8941         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
8942         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
8943
8944 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
8945
8946         [BZ #20073]
8947         * io/sys/stat.h (fchmod): Declare for
8948         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
8949         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
8950         variable.
8951
8952         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
8953         [XPG3] (S_IFSOCK): Likewise.
8954         [XPG3] (S_ISVTX): Likewise.
8955         [XPG3] (S_ISLNK): Likewise.
8956         [XPG3] (S_ISSOCK): Likewise.
8957         [XPG3] (fchmod): Likewise.
8958         [XPG3] (lstat): Likewise.
8959         [XPG3] (mknod): Likewise.
8960
8961         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
8962         [XPG3].  Expect type long and XFAIL for [XPG4].
8963         (st_blocks): Likewise.
8964
8965         [BZ #20044]
8966         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
8967         (pthread_atfork): New prototype.
8968         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
8969         variable.
8970
8971         [BZ #20043]
8972         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
8973         prototype.
8974
8975 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8976
8977         [BZ #20017]
8978         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
8979         gmtime.
8980
8981 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8982
8983         [BZ #19994]
8984         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
8985         flag in _res.options.
8986
8987 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
8988
8989         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
8990         [XPG3 || XPG4].
8991         (blksize_t): Likewise.
8992         (clockid_t): Likewise.
8993         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
8994         variable.
8995         (test-xfail-XPG4/sys/types.h/conform): Likewise.
8996
8997 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
8998
8999         * sysdeps/unix/sysv/linux/s390/init-first.c:
9000         Add VDSO_SYMBOL(getcpu).
9001         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
9002         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
9003         Add VDSO_SYMBOL(getcpu).
9004         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9005         New define HAVE_GETCPU_VSYSCALL.
9006         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9007
9008 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9009
9010         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
9011         instead of <sysdeps/x86_64/cacheinfo.c>.
9012         * sysdeps/x86_64/cacheinfo.c: Moved to ...
9013         * sysdeps/x86/cacheinfo.c: Here.
9014
9015 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9016
9017         * malloc/malloc-internal.h: Adjust header file guard.
9018
9019 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9020
9021         [BZ #19787]
9022         * inet/getnameinfo.c (check_sprintf_result): New function.
9023         (CHECKED_SNPRINTF): New macro.
9024         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
9025         to the host buffer.
9026         (gni_host_local): Use checked_copy to copy the host name.
9027         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
9028         (gni_serv_local): Use checked_copy to copy the service name.
9029         (getnameinfo): Remove unnecessary truncation of result buffers.
9030
9031 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9032
9033         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
9034         in case of inet_ntop failure.
9035
9036 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9037
9038         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
9039         avoid long lines.
9040         (gni_host_inet_numeric): Likewise.  Reduce scope of local
9041         variables.
9042         (gni_host_inet, gni_host_local): Add comment.
9043         (gni_host): Add comment.  Use temporary to avoid long lines.
9044
9045 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9046
9047         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
9048         registers specifiers where general purpose registers specifiers should
9049         have been used.
9050
9051 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9052
9053         [BZ #19779]
9054         CVE-2016-1234
9055         Avoid copying names of directory entries.
9056         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
9057         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
9058         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
9059         (struct readdir_result): New type.
9060         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
9061         (GL_READDIR): New macros.
9062         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
9063         (convert_dirent, convert_dirent64): New functions.
9064         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
9065         convert_dirent64.  Adjust references to the readdir result.
9066         * sysdeps/unix/sysv/linux/i386/glob64.c:
9067         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
9068         * posix/bug-glob2.c (LONG_NAME): Define.
9069         (filesystem): Add LONG_NAME.
9070         (my_DIR): Increase the size of room_for_dirent.
9071
9072 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
9073
9074         [BZ #20041]
9075         * misc/sys/select.h (__need_timespec): Only define if
9076         [__USE_XOPEN2K].
9077         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
9078         variable.
9079         (test-xfail-XPG4/utmpx.h/conform): Likewise.
9080         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
9081         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
9082
9083 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9084             Segher Boessenkool  <segher@gcc.gnu.org>
9085
9086         [BZ #20004]
9087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
9088         (__novec_swapcontext): Add missing load.
9089
9090 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
9091
9092         [BZ #20023]
9093         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
9094         <time.h>.
9095         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
9096         variable.
9097         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
9098
9099 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9100
9101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
9102         flags CLONE_VM compare.
9103
9104 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9105
9106         [BZ #20031]
9107         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
9108         completely empty.
9109
9110 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9111
9112         [BZ #19573]
9113         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
9114         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
9115         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
9116         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
9117         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
9118         (hesiod_free_list): Mark as hidden.
9119         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
9120         res_set, res_get.
9121         * hesiod/hesiod.c: Remove unnecessary forward declarations.
9122         (init, __hesiod_res_get, __hesiod_res_set): Remove.
9123         (hesiod_init): Remove obsolete res_ninit call.
9124         (hesiod_end): Do not free resolver state.  Do not invoke callback.
9125         (hesiod_bind): Do not call init.
9126         (get_txt_records): Use res_mkquery, res_send instead of
9127         res_nmkquery, res_nsend.
9128         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
9129         instead of _nss_hesiod_init.
9130         (_nss_hesiod_initgroups_dyn): Likewise.
9131         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
9132         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
9133         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
9134
9135 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9136
9137         * hesiod/hesiod_p.h (DEF_RHS): Remove.
9138         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
9139
9140 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9141
9142         * hesiod/hesiod.h: Remove RCS keyword.
9143         * hesiod/hesiod_p.h: Likewise.
9144
9145         * hesiod/hesiod.c: Likewise.
9146
9147 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
9148
9149         [BZ #12450]
9150         * locale/iso-639.def: Add Samogitian/sgs.
9151
9152 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
9153
9154         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
9155
9156         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
9157
9158 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
9159             Carlos O'Donell  <carlos@redhat.com>
9160
9161         [BZ #19072]
9162         * grp/Makefile (headers): Add grp-merge.h
9163         (routines): Add grp-merge.
9164         * grp/getgrgid_r.c: Include grp-merge.h.
9165         (DEEPCOPY_FN): Define.
9166         (MERGE_FN): Define.
9167         * grp/getgrname_r.c: Include grp-merge.h.
9168         (DEEPCOPY_FN): Define.
9169         (MERGE_FN): Define.
9170         * grp/grp-merge.c: New file.
9171         * grp/grp-merge.h: New file.
9172         * include/grp-merge.h: New file.
9173         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
9174         __copy_grp@GLIBC_PRIVATE.
9175         * manual/nss.texi (Actions in the NSS configuration): Describe
9176         return, continue, and merge.
9177         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
9178         (DEEPCOPY_FN): Define.
9179         (MERGE_FN): Define.
9180         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
9181         (DEEPCOPY_FN): Define.
9182         (MERGE_FN): Define.
9183         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
9184         [!MERGE_FN]: Define __merge_einval.
9185         (CHECK_MERGE): Define.
9186         (REENTRANT_NAME): Process merge if do_merge is true.
9187         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
9188         (__nss_getent_r): Likewise.
9189         * nss/nsswitch.c (nss_parse_service_list): Likewise.
9190         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
9191
9192 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9193
9194         [BZ #20012]
9195         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
9196         length to calculate the buffer to read.
9197         (fmemopen_write): Set the buffer position based on bytes written.
9198         (fmemopen_seek): Return EINVAL for invalid whence modes.
9199
9200         [BZ #19957]
9201         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
9202         tst-getpid2.
9203         (test): Add tst-clone2.
9204         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
9205         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
9206         pid/tid fields for CLONE_VM.
9207         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
9208         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
9209         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
9210         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
9211         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
9212         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
9213         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
9214         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
9215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
9216         Likewise.
9217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
9218         Likewise.
9219         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
9220         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
9221         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
9222         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
9223         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
9224         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
9225         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
9226         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
9227
9228 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9229
9230         [BZ #19642]
9231         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
9232         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
9233         (gni_serv_local, gni_serv): New functions extracted from
9234         getnameinfo.
9235         (getnameinfo): Call gni_host and gni_serv to perform the
9236         processing.  Always free scratch buffer.
9237
9238 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9239
9240         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
9241         remaining bytes in the dest string, with zeros.
9242
9243 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9244
9245         [BZ #20010]
9246         CVE-2016-3706
9247         * sysdeps/posix/getaddrinfo.c
9248         (convert_hostent_to_gaih_addrtuple): New function.
9249         (gethosts): Call convert_hostent_to_gaih_addrtuple.
9250         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
9251         AF_INET data.
9252
9253 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9254
9255         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
9256         callback function gl_readdir.
9257         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
9258         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
9259         (glob_in_dir): Remove len.  Use strdup instead of malloc and
9260         memcpy to copy the name.
9261         * manual/pattern.texi (Calling Glob): Document requirements for
9262         implementations of the gl_readdir callback function.
9263         * manual/examples/mkdirent.c: New example.
9264         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
9265         per the manual guidance.
9266         * posix/tst-gnuglob.c (my_readdir): Likewise.
9267
9268 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
9269
9270         [BZ #20014]
9271         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
9272         not [__USE_POSIX].
9273         (getchar_unlocked): Likewise.
9274         (putc_unlocked): Likewise.
9275         (putchar_unlocked): Likewise.
9276         (flockfile): Likewise.
9277         (ftrylockfile): Likewise.
9278         (funlockfile): Likewise.
9279         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
9280         variable.
9281         (test-xfail-XPG4/stdio.h/conform): Likewise.
9282
9283         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
9284         Expect constant.
9285         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
9286         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
9287         variable.
9288         (test-xfail-XPG4/langinfo.h/conform): Likewise.
9289         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
9290
9291         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
9292         [__USE_LARGEFILE64] (off64_t): Likewise.
9293         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
9294         variable.
9295
9296 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9297
9298         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
9299
9300 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9301
9302         * resolv/inet_addr.c: Reindent preprocessor conditionals.
9303         * resolv/res_init.c: Likewise.
9304         * resolv/res_mkquery.c: Likewise.
9305
9306 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9307
9308         * resolv/res_init.c (isascii): Do not define.  Use definition in
9309         <ctype.h>.
9310         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
9311         (LOG_AUTH): Remove.
9312         (SPRINTF): Remove, adjust caller.
9313         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
9314
9315 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9316
9317         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
9318         SUNSECURITY conditional.
9319         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
9320
9321 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9322
9323         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
9324         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
9325         Remove BSD-related preprocessor conditionals.
9326         * conf/portability.h: Remove.
9327
9328 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9329
9330         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
9331         * resolv/res_data.c: Likewise.
9332
9333 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9334
9335         * resolv/res_comp.c: Remove code conditional on __ultrix__.
9336         * resolv/res_data.c: Remove code conditional on ultrix.
9337
9338 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9339
9340         * resolv/res_init.c (RFC1535): Do not define.  Remove
9341         RFC1535 preprocessor conditionals.
9342         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
9343         because there configuration options which make the resolver
9344         behavior different.
9345
9346 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9347
9348         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
9349         RESOLVSORT preprocessor conditionals.
9350         * resolv/nss_dns/dns-host.c: Likewise.
9351         * resolv/res_init.c: Likewise.
9352
9353 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9354
9355         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
9356         is never defined.
9357
9358 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9359
9360         * inet/inet_lnaof.c: Remove SCSS keyword.
9361         * inet/inet_mkadr.c: Likewise.
9362         * inet/inet_net.c: Likewise.
9363         * inet/inet_netof.c: Likewise.
9364         * inet/rcmd.c: Likewise.
9365         * inet/rexec.c: Likewise.
9366         * inet/ruserpass.c: Likewise.
9367
9368 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9369
9370         * resolv/inet_addr.c: Remove _LIBC conditionals.
9371         * resolv/res_data.c: Likewise.
9372         * resolv/res_init.c: Likewise.
9373         * resolv/res_mkquery.c: Likewise.
9374         * resolv/res_libc.c: Update comment.
9375         * resolv/README: Update.
9376
9377 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9378
9379         * resolv/gethnamaddr.c: Remove SCSS keyword.
9380         * resolv/herror.c: Likewise.
9381         * resolv/inet_addr.c: Likewise.
9382         * resolv/inet_net_ntop.c: Likewise.
9383         * resolv/inet_net_pton.c: Likewise.
9384         * resolv/inet_neta.c: Likewise.
9385         * resolv/inet_ntop.c: Likewise.
9386         * resolv/inet_pton.c: Likewise.
9387         * resolv/ns_date.c: Remove RCS keyword.
9388         * resolv/ns_name.c: Likewise.
9389         * resolv/ns_netint.c: Likewise.
9390         * resolv/ns_parse.c: Likewise.
9391         * resolv/ns_print.c: Likewise.
9392         * resolv/ns_samedomain.c: Likewise.
9393         * resolv/ns_ttl.c: Likewise.
9394         * resolv/nsap_addr.c: Likewise.
9395         * resolv/res_comp.c: Remove SCSS and RCS keyword.
9396         * resolv/res_data.c: Remove RCS keyword.
9397         * resolv/res_debug.c: Remove SCSS and RCS keyword.
9398         * resolv/res_init.c: Likewise.
9399         * resolv/res_mkquery.c: Likewise.
9400         * resolv/res_query.c: Likewise.
9401         * resolv/res_send.c: Likewise.
9402
9403 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9404
9405         * conform/data/stdio.h-data (fdopen): Expect also for
9406         [XPG3 || XPG4].
9407
9408         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
9409         (fseeko): Likewise.
9410         (ftello): Likewise.
9411         (ftrylockfile): Likewise.
9412         (funlockfile): Likewise.
9413         (getc_unlocked): Likewise.
9414         (getchar_unlocked): Likewise.
9415         (putc_unlocked): Likewise.
9416         (putchar_unlocked): Likewise.
9417
9418 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9419
9420         [BZ #19868]
9421         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
9422         DNS packet syntax checks (which were not needed before).  Skip
9423         over non-PTR records.
9424
9425 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9426
9427         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
9428         definition.  Include <stddef.h> instead.
9429
9430 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9431
9432         [BZ #19831]
9433         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
9434         function.
9435         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
9436         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
9437
9438 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9439
9440         [BZ #19862]
9441         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
9442         (getanswer_r): Do not call syslog.
9443         (gaih_getanswer_slice): Likewise.
9444         * resolv/gethnamaddr.c (AskedForGot): Remove.
9445         (getanswer): Do not call syslog.
9446         (gethostbyaddr): Likewise.
9447
9448 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9449
9450         * conform/data/signal.h-data (union sigval): Expect also if
9451         [XOPEN2K].
9452         (struct sigevent): Likewise.
9453         (SIGEV_NONE): Likewise.
9454         (SIGEV_SIGNAL): Likewise.
9455         (SIGEV_THREAD): Likewise.
9456         (SIGRTMIN): Likewise.
9457         (SIGRTMAX): Likewise.
9458         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
9459         variable.
9460         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
9461
9462 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9463
9464         [BZ #19830]
9465         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
9466         (gaih_getanswer_slice): Likewise.
9467         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
9468         Also check for availability of RR metadata.
9469
9470 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9471
9472         [BZ #19825]
9473         * resolv/res_send.c (send_vc): Remove early *resplen2
9474         initialization.  Set *resplen2 on socket error.  Call
9475         close_and_return_error for other errors.
9476
9477 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
9478
9479         * sysdeps/unix/sysv/linux/netiucv/iucv.h
9480         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
9481         (SCM_IUCV_TRGCLS): New define.
9482
9483 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9484
9485         [BZ #20005]
9486         * libio/fmemopen.c (fmemopen_write): Update internal position after
9487         write.
9488         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
9489         * stdio-common/tst-fmemopen4.c: New file..
9490
9491 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
9492
9493         [BZ #19996]
9494         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
9495         not [__USE_XOPEN2K].
9496         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
9497         variable.
9498
9499         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
9500         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
9501         variable.
9502
9503         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
9504         [__USE_XOPEN2K8].
9505         [__USE_LARGEFILE64] (off64_t): Likewise.
9506         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
9507         variable.
9508
9509 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
9510
9511         [BZ #19989]
9512         * libio/stdio.h (cuserid): Do not declare if
9513         [__USE_XOPEN2K && !__USE_GNU].
9514         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
9515         variable.
9516
9517 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9518
9519         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9520         (sysdep_routines): Add P8 and PPC64 strcspn targets.
9521         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9522         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
9523         ifunc'ed strcspn.
9524         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9525         [EALIGN]: Removed.
9526         [END]: Likewise
9527         [STRSPN]: Define instead of the above to control symbol name.
9528         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
9529         New file.
9530         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
9531         Likewise.
9532         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
9533         Likewise.
9534         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
9535         Likewise.
9536         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9537         [INITIAL_MASK]: New macro.
9538         [STRCSPN]: Likewise.
9539         [UPDATE_MASK]: Likewise.
9540         [USE_AS_STRCSPN]: Lisewise.
9541
9542 2016-04-25  Florian Weimer  <fweimer@redhat.com>
9543
9544         [BZ #19931]
9545         * stdio-common/tst-vfprintf-width-prec.c: New file.
9546         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
9547         (tests-special): Add tst-vfprintf-width-prec-mem.out.
9548         (generated): Add mtrace-related files.
9549         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
9550         (tst-%-mem.out): New pattern rule, replaces
9551         tst-printf-bz18872-mem.out.
9552         * stdio-common/vfprintf.c (vfprintf): When handling a precision
9553         specifier, deallocate any previously allocated work buffer.
9554
9555 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9556
9557         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
9558         Add nop before __startcontext, add explaining comments.
9559
9560 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
9561
9562         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
9563         any more. Notably since IPV6_PKTINFO has been reintroduced with a
9564         completely different API.
9565
9566         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
9567         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
9568         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
9569         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
9570         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
9571         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
9572         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
9573         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
9574         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
9575         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
9576
9577 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
9580
9581 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
9582
9583         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
9584         when it is the default of 0.
9585
9586 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9587
9588         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
9589         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9590         (sysdep_routines): Add new strcasestr targets.
9591         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9592         (__libc_ifunc_impl_list): Likewise.
9593         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
9594         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
9595         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
9596         * sysdeps/powerpc/powerpc64/power8/Makefile:
9597         New file to add strcasestr-ppc64 to sysdep_routines.
9598         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
9599         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
9600
9601 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
9602
9603         * benchtests/Makefile (wcsmbs-benchset): Include only for
9604         native builds and runs.
9605         (LOCALES): Likewise.
9606         (bench-build): Build timing-type here instead of the bench
9607         target.  Generate locale only for native builds.
9608         * benchtests/README: Add note for cross-building.
9609
9610         * benchtests/Makefile (bench-clean): Clean up extra-objs.
9611
9612         * benchtests/README: Update README to include instructions on
9613         using bench-build.
9614
9615         * Makefile.in (bench-build): New target.
9616         * Rules (PHONY): Add bench-build target.
9617         * benchtests/Makefile (bench): Depend on bench-build.
9618         (bench-build): New target.
9619
9620 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9621
9622         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
9623         profil_reply_port.
9624         (profile_waiter): Do not initialize profil_reply_port.
9625         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
9626         frequency instead of tick length in us.
9627
9628 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
9629
9630         [BZ #18712]
9631         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
9632         (__old_mempcpy_small): Likewise.
9633         (__old_strcpy_small): Likewise.
9634         (__old_stpcpy_small): Likewise.
9635         (__old_strpbrk_c2): Fix compat symbol name.
9636         (__old_strpbrk_c3): Likewise.
9637         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
9638         (__mempcpy_small): Remove.
9639         (__strcpy_small): Remove.
9640         (__stpcpy_small): Remove.
9641
9642 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
9643
9644         [BZ #19400]
9645         * locale/iso-639.def: Add the Talossan/tzl language.
9646
9647 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9648
9649         [BZ #16983]
9650         * locale/programs/ld-address.c (address_finish): Update postal_fmt
9651         comment.  Add "ln" to strchr check on postal_fmt.
9652
9653 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9654
9655         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
9656         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
9657         tel_dom_fmt.
9658
9659 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9660
9661         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9662         (sysdep_routines): Added __strlen_power8.
9663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
9664         __strlen_power8 entry.
9665         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
9666         Implementation for POWER8.
9667         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
9668         for __strlen_power8.
9669         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
9670         Implementation for POWER8.
9671
9672 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
9673
9674         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
9675
9676 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
9677
9678         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
9679         Goldmont and Airmont processors.
9680
9681 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
9682
9683         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
9684         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
9685         (__STRING2_SMALL_GET32): Remove.
9686         (memset): Remove.
9687         (__memset_1): Remove.
9688         (__memset_gc): Remove.
9689         (__mempcpy): Remove.
9690         (mempcpy): Remove.
9691         (__mempcpy_args): Remove.
9692         (strchr): Remove.
9693         (strcpy): Remove.
9694         (strcpy_args): Remove.
9695         (__stpcpy_args): Remove.
9696         (__strcmp_cc): Remove.
9697         (__strcmp_gc): Remove.
9698         (strstr): Remove.
9699
9700 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
9701
9702         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
9703         * nis/nis_call.c (nis_server_cache_add): Likewise.
9704
9705 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9706
9707         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
9708
9709 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9710
9711         * malloc/arena.c (__malloc_fork_lock_parent)
9712         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
9713         internal_function attribute.
9714
9715 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
9716
9717         * stdio-common/printf_fp.c (__printf_fp_l):
9718         Rename ___printf_fp_l to __printf_fp_l and
9719         remove strong alias. Use libc_hidden_def instead
9720         of ldbl_hidden_def macro.
9721
9722 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9723
9724         Remove malloc hooks from fork handler.  They are no longer needed
9725         because malloc runs right before fork, and no malloc calls from
9726         other fork handlers are not possible anymore.
9727         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
9728         declarations.
9729         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
9730         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
9731         (atfork_recursive_cntr): Remove.
9732         (__malloc_fork_lock_parent): Do not override malloc hooks and
9733         thread_arena.
9734         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
9735         thread_arena.
9736         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
9737         thread_arena instead of save_arena.
9738
9739 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9740
9741         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
9742         (thread_atfork, thread_atfork_static): Remove.
9743         * sysdeps/mach/hurd/malloc-machine.h:
9744         (thread_atfork, thread_atfork_static): Remove.
9745
9746 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9747
9748         [BZ #19431]
9749         Run the malloc fork handler as late as possible to avoid deadlocks.
9750         * malloc/malloc-internal.h: New file.
9751         * malloc/malloc.c: Include it.
9752         * malloc/arena.c (ATFORK_MEM): Remove.
9753         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
9754         Update comment.
9755         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
9756         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
9757         Remove outdated comment.
9758         (ptmalloc_init): Do not call thread_atfork.  Remove
9759         thread_atfork_static.
9760         * malloc/tst-malloc-fork-deadlock.c: New file.
9761         * Makefile (tests): Add tst-malloc-fork-deadlock.
9762         (tst-malloc-fork-deadlock): Link against libpthread.
9763         * manual/memory.texi (Aligned Memory Blocks): Update safety
9764         annotation comments.
9765         * sysdeps/nptl/fork.c (__libc_fork): Call
9766         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
9767         __malloc_fork_unlock_child.
9768         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9769
9770 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9771
9772         [BZ #19613]
9773         Remove union wait.
9774         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
9775         (w_stopsig, w_stopval): Remove.
9776         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
9777         stat_loc argument.
9778         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
9779         (__WAIT_STATUS_DEFN): Remove.
9780         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9781         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
9782         (wait, wait3, wait4): Use int * for the stat_loc argument.
9783         * posix/wait.c (__wait): Likewise.
9784         * posix/wait3.c (__wait3): Likewise.
9785         * posix/wait4.c (__wait4): Likewise.
9786         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
9787         (__WAIT_STATUS_DEFN): Remove.
9788         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9789         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
9790         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
9791         argument.
9792         * sysdeps/posix/wait.c (__libc_wait): Likewise.
9793         * sysdeps/posix/wait3.c (__wait3): Likewise.
9794         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
9795         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9796         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
9797         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
9798         stat_loc argument.
9799         * manual/process.texi (BSD Wait Functions): Remove union wait.
9800
9801 2016-04-13  Andreas Schwab  <schwab@suse.de>
9802
9803         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
9804         (test-extras): Add tst-tlsalign-vars.
9805         * math/Makefile: Wrap long lines.
9806         (libm-vec-test-wrappers): Define.
9807         (test-extras): Add $(libm-vec-test-wrappers).
9808         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
9809         * nss/Makefile (extra-test-objs): Add nss_test1.os.
9810         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
9811         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
9812         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
9813         (extra-test-objs): Add corresponding objects.
9814
9815 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
9816
9817         [BZ #19928]
9818         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
9819         New.
9820         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
9821         times of shared cache size.
9822         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
9823         (VMOVNT): New.
9824         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
9825         (VMOVNT): Likewise.
9826         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9827         (VMOVNT): Likewise.
9828         (VMOVU): Changed to movups for smaller code sizes.
9829         (VMOVA): Changed to movaps for smaller code sizes.
9830         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
9831         comments.
9832         (PREFETCH): New.
9833         (PREFETCH_SIZE): Likewise.
9834         (PREFETCHED_LOAD_SIZE): Likewise.
9835         (PREFETCH_ONE_SET): Likewise.
9836         Rewrite to use forward and backward loops, which move 4 vector
9837         registers at a time, to support overlapping addresses and use
9838         non temporal store if size is above the threshold and there is
9839         no overlap between destination and source.
9840
9841 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
9842
9843         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
9844         Include dl-vdso.
9845         * sysdeps/unix/sysv/linux/mips/Versions: Add
9846         __vdso_clock_gettime.
9847         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
9848         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
9849         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
9850         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
9851         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
9852         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9853         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9854         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9855         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9856
9857 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9858
9859         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
9860         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
9861         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
9862         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
9863         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9864         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
9866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
9867         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
9868         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
9869         syscalls generation.
9870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9871         [__NR_pwrite64] (__NR_write): Remove define.
9872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9873         [__NR_pwrite64] (__NR_write): Remove define.
9874         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
9875         Remove define.
9876         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
9877         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
9878         Remove define.
9879         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
9880         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
9881         Linux implementation as base.
9882         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9883
9884         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
9885         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
9886         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
9887         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
9888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
9889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
9890         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
9891         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
9892         syscall generation.
9893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9894         [__NR_pread64] (__NR_pread): Remove define.
9895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9896         [__NR_pread64] (__NR_pread): Likewise.
9897         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
9898         define.
9899         (__libc_pread): Use SYSCALL_LL macro on offset argument.
9900         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
9901         Remove define.
9902         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
9903         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
9904         Linux implementation as base.
9905         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9906         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
9907         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9908
9909         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
9910         definition.
9911         (__ALIGNMENT_COUNT): Likewise.
9912         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
9913         (__ALIGNMENT_COUNT): Likewise.
9914         (SYSCALL_LL): New define.
9915         (SYSCALL_LL64): Likewise.
9916         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
9917         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
9918         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
9919         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
9920
9921         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9922         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
9923         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9924         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9925         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9926         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9927
9928 2016-04-11  Florian Weimer  <fweimer@redhat.com>
9929
9930         [BZ #19865]
9931         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
9932         original buffer before retry.
9933
9934 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9935
9936         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
9937         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
9938         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
9939         GLRO(dl_auxv) list.
9940         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
9941         including <ldsodefs.h>.
9942         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
9943
9944 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
9945
9946         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
9947         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
9948         $(CPPFLAGS).
9949
9950 2016-04-09  Khem Raj  <raj.khem@gmail.com>
9951
9952         [BZ #17950]
9953         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
9954         Add -mfpmath=387.
9955
9956 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
9957
9958         * sysdeps/i386/configure.ac: Change == to = when calling test.
9959         * sysdeps/x86_64/configure.ac: Likewise.
9960         * sysdeps/i386/configure: Regenerated.
9961         * sysdeps/x86_64/configure: Likewise.
9962
9963 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
9964
9965         [BZ #16137]
9966         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
9967         * benchtests/bench-strcoll.c (input_files): Likewise.
9968         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
9969         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
9970         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
9971
9972 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
9973
9974         [BZ #19929]
9975         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
9976         [__USE_XOPEN2K8 && !__USE_GNU].
9977         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
9978         variable.
9979
9980         [BZ #19925]
9981         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
9982         define if [!__USE_MISC && __USE_XOPEN2K].
9983         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
9984         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
9985         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
9986         Likewise.
9987         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
9988         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
9989         variable.
9990         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
9991
9992 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9993
9994         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9995         (sysdep_routines): Add new strspn targets.
9996         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9997         (__libc_ifunc_impl_list): Add strspn.
9998         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9999         New file.
10000         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
10001         Likewise.
10002         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
10003         Likewise.
10004         * sysdeps/powerpc/powerpc64/power8/strspn.S:
10005         Likewise.
10006
10007 2016-04-07  Florian Weimer  <fweimer@redhat.com>
10008
10009         * misc/hsearch_r.c: Include <limits.h>.
10010
10011 2016-04-07  Florian Weimer  <fweimer@redhat.com>
10012
10013         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
10014
10015 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10016
10017         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10018         (MEMCPY_SYMBOL): New.
10019         (MEMPCPY_SYMBOL): Likewise.
10020         (MEMMOVE_CHK_SYMBOL): Likewise.
10021         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
10022         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
10023         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
10024         Provide alias for memcpy in libc.a and ld.so.
10025
10026 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10027
10028         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10029         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
10030         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
10031         Disabled fro now.
10032         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
10033         symbols.  Properly check USE_MULTIARCH on __memset symbols.
10034
10035 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
10036
10037         * benchtests/Makefile (string-benchset): Add memcpy-large,
10038         memmove-large and memset-large.
10039         * benchtests/bench-memcpy-large.c: New file.
10040         * benchtests/bench-memmove-large.c: Likewise.
10041         * benchtests/bench-memmove-large.c: Likewise.
10042         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
10043
10044 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
10045
10046         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
10047         32-bit displacement to avoid long nop between instructions.
10048
10049 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
10050
10051         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
10052         a comment on VMOVU and VMOVA.
10053
10054 2016-04-04  Florian Weimer  <fweimer@redhat.com>
10055
10056         [BZ #19633]
10057         Use specified locale for number formatting in strfmon_l.
10058         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
10059         (__nl_lookup_word): New inline functions.
10060         * include/printf.h (__print_fp_l): Declare.
10061         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
10062         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
10063         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
10064         (___printf_fp): New function.
10065         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
10066         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
10067         * stdlib/tst-strfmon_l.c (do_test): New test.
10068         * stdlib/Makefile (tests): Add kt.
10069         (LOCALES): Build additional locales.
10070         (tst-strfmon_l.out): Require locales.
10071
10072 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
10075         if not in libc.
10076         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10077         Likewise.
10078         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
10079         Likewise.
10080         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10081         Likewise.
10082
10083 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10084
10085         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10086         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
10087         with unaligned_erms.
10088         (__memmove_erms): Skip if source == destination.
10089         (__memmove_unaligned_erms): Don't check source == destination
10090         first.
10091
10092 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10093
10094         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
10095         bit_arch_Fast_Copy_Backward for Intel Core proessors.
10096
10097 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10098
10099         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
10100         * string/strspn.c (strspn): Likewise.
10101
10102 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10103
10104         * benchtests/bench-memset.c (do_test): Support 64-byte
10105         alignment.
10106         (test_main): Test 64-byte alignment.
10107
10108 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10109
10110         * benchtests/bench-memmove.c (test_main): Test 64-byte
10111         alignment.
10112
10113 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10114
10115         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
10116
10117 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10118
10119         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
10120         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
10121         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
10122
10123         * string/strpbrk.c (strpbrk): Rewrite function.
10124         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
10125         (__strpbrk_c2): Likewise.
10126         (__strpbrk_c3): Likewise.
10127         * string/string-inlines.c
10128         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
10129         Likewise.
10130         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
10131         Likewise.
10132
10133         * string/strspn.c (strcspn): Rewrite function.
10134         * string/bits/string2.h (strspn): Use __builtin_strcspn.
10135         (__strspn_c1): Remove inline function.
10136         (__strspn_c2): Likewise.
10137         (__strspn_c3): Likewise.
10138         * string/string-inlines.c
10139         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
10140         compatibility symbol.
10141         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
10142         Likewise.
10143         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
10144         Likewise.
10145         * string/string-inlines.c: Include generic version.
10146
10147 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
10148             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10149
10150         * string/Version (libc): Add GLIBC_2.24.
10151         * string/strcspn.c (strcspn): Rewrite function.
10152         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
10153         (__strcspn_c1): Remove inline function.
10154         (__strcspn_c2): Likewise.
10155         (__strcspn_c3): Likewise.
10156         * string/string-inline.c
10157         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
10158         compatibility symbol.
10159         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
10160         Likewise.
10161         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
10162         Likewise.
10163         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
10164
10165 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
10166
10167         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10168         Use ahi instead of aghi to adjust stack pointer.
10169
10170 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10171
10172         [BZ #19853]
10173         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
10174         TEST to take significant digits as second parameter.
10175         [TEST]: Redefine in terms of TEST_N taking 30
10176         significant digits.
10177         (do_test): Add test case to demonstrate precision
10178         failure in the ldbl-128ibm printf.
10179         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
10180         (__mpn_extract_long_double): Carry 7 extra intermediate
10181         bits of precision to aide computing difference when
10182         signs differ.
10183
10184 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10185
10186         [BZ #19881]
10187         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10188         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
10189         memset-avx512-unaligned-erms.
10190         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10191         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
10192         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
10193         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
10194         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
10195         __memset_sse2_unaligned_erms, __memset_erms,
10196         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
10197         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
10198         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
10199         file.
10200         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10201         Likewise.
10202         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
10203         Likewise.
10204         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
10205         Likewise.
10206
10207 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10208
10209         [BZ #19776]
10210         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10211         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
10212         memmove-avx512-unaligned-erms.
10213         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10214         (__libc_ifunc_impl_list): Test
10215         __memmove_chk_avx512_unaligned_2,
10216         __memmove_chk_avx512_unaligned_erms,
10217         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
10218         __memmove_chk_sse2_unaligned_2,
10219         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
10220         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
10221         __memmove_avx512_unaligned_erms, __memmove_erms,
10222         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
10223         __memcpy_chk_avx512_unaligned_2,
10224         __memcpy_chk_avx512_unaligned_erms,
10225         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
10226         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
10227         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
10228         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
10229         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
10230         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
10231         __mempcpy_chk_avx512_unaligned_erms,
10232         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
10233         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
10234         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
10235         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
10236         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
10237         __mempcpy_erms.
10238         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
10239         file.
10240         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10241         Likwise.
10242         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
10243         Likwise.
10244         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10245         Likwise.
10246
10247 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10248
10249         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
10250         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
10251         (La_s390_64_regs): Likewise.
10252         (La_s390_32_retval): Append vector register lrv_v24.
10253         (La_s390_64_retval): Likeweise.
10254         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10255         Handle extended structs La_s390_32_regs and La_s390_32_retval.
10256         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10257         Handle extended structs La_s390_64_regs and La_s390_64_retval.
10258
10259 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10260
10261         [BZ #19916]
10262         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
10263         to create a non-vector/vector version for _dl_runtime_resolve and
10264         _dl_runtime_profile. Move implementation to ...
10265         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
10266         (_dl_runtime_resolve) Save and restore fpr/vrs.
10267         (_dl_runtime_profile) Save and restore vrs and fix some issues
10268         if _dl_call_pltexit is called.
10269         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10270         Choose the correct resolver function if running on a machine with vx.
10271         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
10272         to create a non-vector/vector version for _dl_runtime_resolve and
10273         _dl_runtime_profile. Move implementation to ...
10274         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
10275         (_dl_runtime_resolve) Save and restore fpr/vrs.
10276         (_dl_runtime_profile) Save and restore vrs and fix some issues
10277         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
10278         Choose the correct resolver function if running on a machine with vx.
10279
10280 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10281
10282         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
10283
10284 2016-03-31  Florian Weimer  <fweimer@redhat.com>
10285
10286         [BZ #19509]
10287         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
10288         skip_map != NULL.
10289         * elf/tst-dlsym-error.c: New file.
10290         * elf/Makefile (tests): Add tst-dlsym-error.
10291         (tst-dlsym-error): Link against libdl.
10292
10293 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
10294
10295         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10296         (__ASSUME_FUTIMESAT): Remove macro.
10297         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
10298
10299 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10300
10301         [BZ #19879]
10302         CVE-2016-3075
10303         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
10304         copy name.
10305
10306 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10307
10308         [BZ #19837]
10309         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
10310         error if parse_line fails.
10311
10312 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10313
10314         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
10315         (index_cpu_ERMS): Likewise.
10316         (reg_ERMS): Likewise.
10317
10318 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
10319
10320         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
10321         PER_LINUX_FDPIC): Add.
10322
10323 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10324
10325         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10326         memcpy-avx512-no-vzeroupper.
10327         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
10328         to ...
10329         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
10330         (MEMCPY): Don't define.
10331         (MEMCPY_CHK): Likewise.
10332         (MEMPCPY): Likewise.
10333         (MEMPCPY_CHK): Likewise.
10334         (MEMPCPY_CHK): Renamed to ...
10335         (__mempcpy_chk_avx512_no_vzeroupper): This.
10336         (MEMPCPY_CHK): Renamed to ...
10337         (__mempcpy_chk_avx512_no_vzeroupper): This.
10338         (MEMCPY_CHK): Renamed to ...
10339         (__memmove_chk_avx512_no_vzeroupper): This.
10340         (MEMCPY): Renamed to ...
10341         (__memmove_avx512_no_vzeroupper): This.
10342         (__memcpy_avx512_no_vzeroupper): New alias.
10343         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
10344
10345 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10346
10347         [BZ #18858]
10348         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10349         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
10350         and mempcpy-avx512-no-vzeroupper.
10351         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
10352         New.
10353         (MEMPCPY): Likewise.
10354         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
10355         (MEMPCPY_CHK): New.
10356         (MEMPCPY): Likewise.
10357         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
10358         (MEMPCPY): Likewise.
10359         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
10360         (MEMPCPY): Likewise.
10361         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
10362         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
10363         Likewise.
10364         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
10365         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
10366
10367 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10368              Amit Pawar  <Amit.Pawar@amd.com>
10369
10370         [BZ #19583]
10371         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10372         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
10373         processors.  Set Fast_Copy_Backward for AMD Excavator
10374         processors.
10375         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
10376         New.
10377         (index_arch_Fast_Unaligned_Copy): Likewise.
10378         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
10379         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
10380
10381 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10382
10383         [BZ #19791]
10384         * resolv/res_send.c (close_and_return_error): New function.
10385         (send_dg): Initialize *resplen2 after reopen failure.  Call
10386         close_and_return_error for error returns.  On error paths without
10387         __res_iclose, initialze *resplen2 explicitly.  Update comment for
10388         successful return.
10389
10390 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10391
10392         [BZ# 19860]
10393         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
10394         zero if the compiler does not provide the AVX512F bit.
10395
10396 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
10397
10398         [BZ #19848]
10399         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
10400         from 8 to 4.
10401         (__ieee754_powl): Compare integer exponent against 4 not 8.
10402         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
10403         from 8 to 4.
10404         (__ieee754_powl): Compare integer exponent against 4 not 8.
10405         * math/auto-libm-test-in: Add more tests of pow.
10406         * math/auto-libm-test-out: Regenerated.
10407         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10409
10410 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10411
10412         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
10413         Make code unconditional.
10414         [!__NR_utimensat]: Remove conditional code.
10415         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
10416         Make code unconditional.
10417         [!__NR_utimensat]: Remove conditional code.
10418         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
10419         Make code unconditional.
10420         [!__NR_utimensat]: Remove conditional code.
10421
10422 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10423
10424         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
10425         Make code unconditional.
10426
10427 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
10428
10429         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
10430         call-clobbered %eax on retry path.
10431         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10432
10433 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10434
10435         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
10436         Don't set %rcx twice before "rep movsb".
10437
10438 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10439
10440         [BZ #19583]
10441         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
10442         inline.  Check family before setting family, model and
10443         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
10444         bits here.
10445         (init_cpu_features): Replace HAS_CPU_FEATURE and
10446         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
10447         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
10448         for Intel processors with usable AVX2.  Call get_common_indeces
10449         for other processors with family == NULL.
10450         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
10451         (CPU_FEATURES_ARCH_P): Likewise.
10452         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
10453         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
10454
10455 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10456
10457         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
10458         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
10459         $(shared-thread-library) instead of hardcoding the path to libpthread.
10460
10461 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
10462
10463         * sysdeps/unix/sysv/linux/kernel-features.h
10464         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
10465         * sysdeps/unix/sysv/linux/getdents.c
10466         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
10467         [!have_no_getdents64_defined]: Likewise.
10468         (__GETDENTS): Remove __have_no_getdents64 conditional.
10469
10470 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
10471
10472         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
10473         Remove macro.
10474         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
10475         <kernel-features.h>.
10476         (signalfd) [__NR_signalfd4]: Make code unconditional.
10477         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
10478
10479 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10480
10481         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
10482         style.
10483
10484 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10485
10486         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
10487         (__pthread_enable_asynccancel): Use JUMPTARGET to call
10488         __pthread_unwind.
10489         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10490         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
10491         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10492         (__condvar_cleanup1): Likewise.
10493
10494 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
10495
10496         [BZ #19822]
10497         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
10498         move it to the final $@ location.
10499
10500 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10501
10502         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
10503         access where posix_spawn success and pid argument is null.
10504         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
10505         success case.
10506
10507 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
10508
10509         * sysdeps/mach/hurd/i386/c++-types.data: New file.
10510
10511         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
10512
10513         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
10514         and __fcntl.
10515         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
10516         __fcntl only.
10517         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
10518         adding attribute_hidden to __open and __fcntl.
10519
10520         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
10521         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
10522         depend on libc-modules.h,
10523         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
10524
10525 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
10526
10527         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
10528         Remove macro.
10529         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
10530         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
10531         entry.
10532
10533         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
10534         Remove macro.
10535         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
10536         include <kernel-features.h>.
10537         [!__ASSUME_FALLOCATE]: Remove conditional code.
10538         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
10539
10540 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10541
10542         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
10543         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
10544         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
10545         (_ZGVdN4v_cos_avx2): Likewise.
10546         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
10547         (_ZGVdN4v_cos): Likewise.
10548         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
10549         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
10550         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
10551         (_ZGVdN4v_exp_avx2): Likewise.
10552         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
10553         (_ZGVdN4v_exp): Likewise.
10554         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
10555         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
10556         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
10557         (_ZGVdN4v_log_avx2): Likewise.
10558         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
10559         (_ZGVdN4v_log): Likewise.
10560         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
10561         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
10562         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
10563         (_ZGVdN4vv_pow_avx2): Likewise.
10564         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
10565         (_ZGVdN4vv_pow): Likewise.
10566         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
10567         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
10568         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
10569         (_ZGVdN4v_sin_avx2): Likewise.
10570         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
10571         (_ZGVdN4v_sin): Likewise.
10572         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
10573         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
10574         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
10575         (_ZGVdN4vvv_sincos_avx2): Likewise.
10576         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
10577         (_ZGVdN4vvv_sincos): Likewise.
10578         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
10579         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
10580         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
10581         (_ZGVbN4v_cosf_sse4): Likewise.
10582         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
10583         (_ZGVdN8v_cosf_avx2): Likewise.
10584         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
10585         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
10586         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
10587         (_ZGVbN4v_expf_sse4): Likewise.
10588         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
10589         (_ZGVdN8v_expf_avx2): Likewise.
10590         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
10591         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
10592         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
10593         (_ZGVbN4v_logf_sse4): Likewise.
10594         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
10595         (_ZGVdN8v_logf_avx2): Likewise.
10596         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
10597         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
10598         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
10599         (_ZGVbN4vv_powf_sse4): Likewise.
10600         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
10601         (_ZGVdN8vv_powf_avx2): Likewise.
10602         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
10603         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
10604         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
10605         (_ZGVbN4vvv_sincosf_sse4): Likewise.
10606         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
10607         (_ZGVdN8vvv_sincosf_avx2): Likewise.
10608         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
10609         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
10610         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
10611         (_ZGVbN4v_sinf_sse4): Likewise.
10612         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
10613         (_ZGVdN8v_sinf_avx2): Likewise.
10614         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10615         Use JUMPTARGET to call callee.
10616         (WRAPPER_IMPL_SSE2_ff): Likewise.
10617         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10618         (WRAPPER_IMPL_AVX): Likewise.
10619         (WRAPPER_IMPL_AVX_ff): Likewise.
10620         (WRAPPER_IMPL_AVX_fFF): Likewise.
10621         (WRAPPER_IMPL_AVX512): Likewise.
10622         (WRAPPER_IMPL_AVX512_ff): Likewise.
10623         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10624         Likewise.
10625         (WRAPPER_IMPL_SSE2_ff): Likewise.
10626         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10627         (WRAPPER_IMPL_AVX): Likewise.
10628         (WRAPPER_IMPL_AVX_ff): Likewise.
10629         (WRAPPER_IMPL_AVX_fFF): Likewise.
10630         (WRAPPER_IMPL_AVX512): Likewise.
10631         (WRAPPER_IMPL_AVX512_ff): Likewise.
10632         (WRAPPER_IMPL_AVX512_fFF): Likewise.
10633
10634 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10635
10636         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
10637         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
10638         qualifier.
10639         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
10640         internal_function qualifiers.
10641
10642 2016-03-15  Carlos O'Donell <carlos@redhat.com>
10643
10644         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
10645         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
10646         * math/atest-exp.c (exp_mpn): Mark chk unused.
10647         * math/atest-exp2.c (exp_mpn): Likwise.
10648         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
10649         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
10650
10651 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
10652
10653         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
10654         Remove macro.
10655         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
10656         <kernel-features.h>.
10657         [__NR_ppoll]: Make code unconditional.
10658         [!__ASSUME_PPOLL]: Remove conditional code.
10659
10660         * sysdeps/unix/sysv/linux/kernel-features.h
10661         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
10662         (__ASSUME_ACCEPT4): Likewise.
10663         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10664         Define.
10665         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
10666         Likewise.
10667         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10668         Likewise.
10669         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
10670         Likewise.
10671         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
10672         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
10673         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10674         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10675         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10676         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10677         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10678         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10679         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10680         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10681         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10682         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10683         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10684         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10685         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10686         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10687         Likewise.
10688         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10689         Likewise.
10690         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10691         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10692         0x040300].
10693         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10694         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10695         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10696         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10697         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10698         0x030300].
10699         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
10700         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10701         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10702         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10703         0x040300].
10704         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10705         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10706         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10707         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10708         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10709         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10710         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10711         0x030300].
10712         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10713         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10714         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10715         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10716         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10717         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10718         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10719         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10720         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10721         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10722         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10723         0x040300].
10724         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10725         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10726         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10727         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10728         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10729         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10730         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10731         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10732         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10733         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10734         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10735         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10736         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10737         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10738         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
10739         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10740         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10741         Likewise.
10742         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10743         Likewise.
10744
10745 2016-03-15  Andreas Schwab  <schwab@suse.de>
10746
10747         [BZ #19257]
10748         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
10749         statp->_u._ext.nscount as loop count.
10750
10751 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
10752
10753         * math/test-signgam-finite-c99.c: Also #undef
10754         __LIBC_INTERNAL_MATH_INLINES.
10755         * math/test-signgam-main.c: Likewise.
10756
10757 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
10758
10759         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
10760         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10761         (MADV_FREE): Likewise.
10762         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
10763         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
10764         EPOLLEXCLUSIVE.
10765
10766 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
10767
10768         * timezone/README: Remove mention of checktab.awk. Mention wiki
10769         SharedSourceFiles.
10770
10771 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
10772
10773         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
10774         WUNTRACED.
10775
10776 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10777
10778         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
10779         order to match the type of p when calling atomic_exchange_acq().
10780
10781 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10782
10783         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
10784         cfi_offset calls.
10785         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10786         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
10787         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
10788         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
10789         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
10790
10791 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
10792
10793         * timezone/checktab.awk: Removed.
10794
10795 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
10796
10797         * manual/math.texi (Errors in Math Functions): Document relaxed
10798         accuracy goals for IBM long double.
10799         * math/libm-test.inc (test_exceptions): Always allow spurious
10800         "underflow" and "inexact" exceptions for IBM long double.
10801
10802 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10803
10804         [BZ #19762]
10805         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10806         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
10807         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
10808         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
10809         (bit_arch_*): This for feature array.
10810         (bit_*): Renamed to ...
10811         (bit_cpu_*): This for cpu array.
10812         (index_*): Renamed to ...
10813         (index_arch_*): This for feature array.
10814         (index_*): Renamed to ...
10815         (index_cpu_*): This for cpu array.
10816         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
10817         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
10818         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
10819         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
10820         bit_##name with index_cpu_##name and bit_cpu_##name.
10821         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
10822         bit_##name with index_arch_##name and bit_arch_##name.
10823
10824 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
10825
10826         [BZ #19792]
10827         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
10828         Terminate FDE before return label.
10829
10830 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
10831
10832         [BZ #19790]
10833         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
10834         (rintl): Define as macro.
10835         [USE_AS_NEARBYINTL] (__rintl): Likewise.
10836         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
10837         of fesetround.  Ensure results are evaluated before end of scope.
10838         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
10839         USE_AS_NEARBYINTL and include s_rintl.c.
10840         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
10841         Disable exception traps in new environment.
10842         (libc_feholdsetround_ppc_ctx): Likewise.
10843
10844 2016-03-08  Roland McGrath  <roland@hack.frob.com>
10845
10846         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
10847         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
10848         (tst_audit10_aux) [__AVX512F__]: ... here.
10849
10850 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
10851
10852         * include/sys/auxv.h: New file.
10853
10854 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10855
10856         [BZ #19759]
10857         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
10858
10859 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10860
10861         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
10862         operand modifier.
10863         (feclearexcept): Likewise.
10864
10865 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
10866
10867         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
10868         to reflect the entire 32-bit HWCAP.
10869         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
10870         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
10871
10872 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10873
10874         [BZ #19783]
10875         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
10876         $(test-via-rtld-prefix).
10877         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
10878
10879 2016-03-08  Florian Weimer  <fweimer@redhat.com>
10880
10881         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
10882         union wait.  Report any non-zero exit status as error.
10883
10884 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10885
10886         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
10887         configured with --enable-hardcoded-path-in-tests.
10888
10889 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
10890
10891         [BZ #19677]
10892         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10893         (__ieee754_remainderl): Put zero low parts in canonical form.
10894         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
10895         file.  Based on
10896         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
10897         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
10898         with wrapper round test-fmodrem-ldbl-128ibm.c.
10899         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
10900         file.
10901         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
10902         Likewise.
10903         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10904         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
10905
10906 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10907
10908         [BZ #19610]
10909         * elf/ldconfig.c (opt_link): Update comment.
10910         (options): Update help string for option -X.
10911         (search_dir): Unlink stale symbolic link only if updating symbolic
10912         links.
10913         * elf/tst-ldconfig-X.sh: New file.
10914         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
10915         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
10916
10917 2016-03-07  Andreas Schwab  <schwab@suse.de>
10918
10919         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
10920         needed arguments.
10921
10922 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
10923
10924         [BZ #15333]
10925         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
10926         to lstat64.
10927
10928 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10929
10930         * libio/filedoalloc.c (isatty): Remove.
10931         (local_isatty): Add comment.  Call __isatty directly.
10932         (_IO_file_doallocate): Update comment.  Assume _LIBC.
10933         * libio/wfiledoalloc.c (isatty): Remove.
10934         (_IO_wfile_doallocate): Update comment.
10935
10936 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10937
10938         [BZ #19269]
10939         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
10940         tst-audit4-aux.o.
10941         (tst-audit10): Depend on tst-audit10-aux.o.
10942         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
10943         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
10944         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
10945         instead of inline AVX code.
10946         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
10947         instead of inline AVX512 code.
10948         * sysdeps/x86_64/tst-audit4-aux.c: New file
10949         * sysdeps/x86_64/tst-audit10-aux.c: New file
10950
10951         [BZ #19648]
10952         * test-skeleton.c (main): Do not set RLIMIT_DATA.
10953
10954 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10955
10956         [BZ #14750]
10957         [BZ #10354]
10958         [BZ #18433]
10959         * include/sched.h (__clone): Add hidden prototype.
10960         (__clone2): Likewise.
10961         * include/unistd.h (__dup): Likewise.
10962         * posix/Makefile (tests): Add tst-spawn2.
10963         * posix/tst-spawn2.c: New file.
10964         * sysdeps/posix/dup.c (__dup): Add hidden definition.
10965         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
10966         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
10967         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
10968         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
10969         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
10970         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
10971         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
10972         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
10973         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
10974         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
10975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
10976         Likewise.
10977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10978         Likewise.
10979         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
10980         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
10981         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
10982         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
10983         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
10984         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
10985         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
10986         * sysdeps/unix/sysv/linux/nptl-signals.h
10987         (____nptl_is_internal_signal): New function.
10988         * sysdeps/unix/sysv/linux/spawni.c: New file.
10989
10990         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
10991         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
10992         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
10993         * posix/tst-execvp2.c (do_test): Likewise.
10994         * posix/tst-execvp3.c (do_test): Likewise.
10995         * posix/tst-execvp4.c (do_test): Likewise.
10996         * posix/tst-execvpe1.c: New file.
10997         * posix/tst-execvpe2.c: Likewise.
10998         * posix/tst-execvpe3.c: Likewise.
10999         * posix/tst-execvpe4.c: Likewise.
11000         * posix/tst-execvpe5.c: Likewise.
11001         * posix/tst-execvpe6.c: Likewise.
11002
11003         [BZ #19534]
11004         * posix/execl.c (execl): Remove dynamic memory allocation.
11005         * posix/execle.c (execle): Likewise.
11006         * posix/execlp.c (execlp): Likewise.
11007
11008 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
11009
11010         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
11011         Replace .text with .text.avx512.
11012         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
11013         Likewise.
11014
11015 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
11016
11017         * sysdeps/generic/libnsl.abilist: New file.
11018         * sysdeps/generic/libutil.abilist: New file.
11019
11020 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
11021
11022         [BZ #19762]
11023         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
11024         HAS_ARCH_FEATURE with Fast_Rep_String.
11025         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
11026         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
11027         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
11028         Likewise.
11029         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
11030         Likewise.
11031         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
11032         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
11033         Likewise.
11034         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
11035         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
11036         Likewise.
11037
11038 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11039
11040         [BZ #19745]
11041         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11042         with *%rax in call.
11043
11044 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11045
11046         [BZ #19745]
11047         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
11048         with *__libc_start_main@GOTPCREL(%rip) in call.
11049
11050 2016-03-04  Roland McGrath  <roland@hack.frob.com>
11051
11052         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
11053         inside conditional for nonempty $(CXX).
11054
11055         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
11056         nonempty.
11057
11058         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
11059         to test for empty $(CXX) rather than $(CXX) of "no".
11060
11061 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11062
11063         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
11064
11065 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
11066             H.J. Lu  <hongjiu.lu@intel.com>
11067
11068         [BZ #18880]
11069         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
11070         instead of Slow_BSF, and also check for Fast_Copy_Backward to
11071         enable __memcpy_ssse3_back.
11072
11073 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11074
11075         [BZ #19758]
11076         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11077         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
11078
11079 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11080
11081         [BZ #19490]
11082         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
11083         (__fentry__): Likewise.
11084
11085 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11086
11087         * gmon/Makefile (noprof): Add $(sysdep_noprof).
11088         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
11089
11090 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11091
11092         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
11093         __mcount_internal directly.
11094         (C_LABEL(__fentry__)): Likewise.
11095         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
11096         directly.
11097
11098 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11099
11100         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11101         (__start_context): Call __setcontext directly.
11102
11103 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
11104
11105         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11106         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11107         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
11108         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11109         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11110         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11111         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
11112         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11113         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11114         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
11115         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11116         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11117         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11118         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11119         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11120         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11121         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
11122         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11123         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11124         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11125         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
11126         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11127         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11128         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11129         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
11130         Remove conditional code.
11131         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11132         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
11133         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11134         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11135         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
11136         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11137         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11138         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11139         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11140         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11141         * sysdeps/unix/sysv/linux/tile/kernel-features.h
11142         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11143
11144 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
11145
11146         * NEWS (2.23): Fix typo in bug 19048 text.
11147
11148 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
11149
11150         [BZ #14259]
11151         * Makeconfig: Rename msgcatdir to localedir.
11152         Rename inst_msgcatdir to inst_localedir.
11153         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
11154         * config.make.in: Add localedir.
11155         * elf/Makefile ($(objpfx)sotruss): Use localedir.
11156         (ldd-rewrite): Likewise.
11157         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
11158         (install-others): Use inst_localedir.
11159         (CPPFLAGS): Use localedir.
11160         * locale/Makefile (locale-CPPFLAGS): Likewise.
11161         * po/Makefile (mo-installed): Use inst_localedir.
11162
11163         [BZ #19575]
11164         * localedata/charmaps/GB18030: Update comments regarding PAU to
11165         non-PUA mappings.
11166
11167 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
11168
11169         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
11170         test for header.
11171         * sysdeps/unix/sysv/linux/configure: Regenerated.
11172         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
11173         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
11174         Remove conditional code.
11175         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
11176
11177         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
11178         Define to 3.2.0.
11179         (arch_minimum_kernel): Likewise.
11180         * sysdeps/unix/sysv/linux/configure: Regenerated.
11181         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
11182         Define to 2.6.32.
11183         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
11184         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
11185         (arch_minimum_kernel): Define to 2.6.32.
11186         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
11187         * README: Document Linux 3.2 requirement.
11188         * manual/install.texi (Linux): Document Linux 3.2 headers
11189         requirement.
11190         * INSTALL: Regenerated.
11191
11192 2016-02-24  Andreas Schwab  <schwab@suse.de>
11193
11194         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
11195         if !NO_LONG_DOUBLE.
11196
11197 2016-02-22  Roland McGrath  <roland@hack.frob.com>
11198
11199         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
11200         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
11201
11202 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
11203
11204         [BZ #19512]
11205         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
11206
11207 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11208
11209         * posix/tst-dir.c: Include libc-internal.h.
11210
11211 2016-02-20  Florian Weimer  <fweimer@redhat.com>
11212
11213         [BZ #19056]
11214         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
11215         * manual/filesys.texi (Reading/Closing Directory): Mention
11216         deprecaion.
11217         * posix/tst-dir.c (main): Disable deprecation warning in test.
11218
11219 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
11220
11221         [BZ #19679]
11222         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
11223         Renamed to ...
11224         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
11225         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11226         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
11227         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11228         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11229         * sysdeps/x86_64/dl-trampoline.h
11230         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11231         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11232
11233 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11234
11235         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
11236
11237 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11238
11239         * elf/elf.h (R_386_GOT32X): New.
11240         (R_386_NUM): Update.
11241         (R_X86_64_GOTPCRELX: New.
11242         (R_X86_64_REX_GOTPCRELX): New.
11243         (R_X86_64_NUM): Update.
11244
11245 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
11246
11247         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
11248
11249 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
11250
11251         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
11252         assign attr->stackaddr to it, and adjust it down when
11253         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
11254         [_STACK_GROWS_UP]: Delete assert.
11255         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
11256         Implement stack grows up logic.
11257         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
11258         stack grows up logic.
11259
11260 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11261
11262         * NEWS: Update with 2.24 template.
11263
11264 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11265
11266         [BZ #19678]
11267         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
11268         Ensure +0.0 is returned when taking the next value below the least
11269         positive value.
11270
11271 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11272
11273         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
11274         available.  Do not define NO_THREADS.
11275         * malloc/malloc.c: Do not check NO_THREADS.
11276         * malloc/arena.c: Likewise.
11277
11278 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11279
11280         * malloc/malloc.c (__libc_mallinfo): Update comment.
11281         (struct malloc_par): Remove max_total_mem member, it was always 0.
11282         (int_mallinfo): Store 0 into usmblks (no functional change).
11283         * malloc/hooks.c (struct malloc_state): Document that
11284         max_total_mem is always 0.
11285         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
11286         always 0.
11287         * manual/memory.texi (Statistics of Malloc): Likewise.
11288
11289 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11290
11291         * malloc/malloc.c (sysmalloc): Do not update arena_max.
11292         * malloc/arena.c (arena_max): Remove.
11293         (heap_trim, _int_new_arena): Do not update arena_max.
11294
11295 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11296
11297         * resolv/res_init.c (res_ninit): Update comment.
11298
11299 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11300
11301         [BZ #19505]
11302         * posix/spawn_int.h: Add headers and include guard.
11303         (__spawn_valid_fd): New function.
11304         * posix/spawn_faction_addopen.c
11305         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
11306         * posix/spawn_faction_addclose.c
11307         (posix_spawn_file_actions_addclose): Likewise.
11308         * posix/spawn_faction_adddup2.c
11309         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
11310         second file descriptor.
11311         * posix/spawn_valid_fd.c: New file.
11312         * posix/tst-posix_spawn-fd.c: New file.
11313         * posix/Makefile (routines): Add spawn_valid_fd.
11314         (tests): Add tst-posix_spawn-fd.
11315
11316 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11317
11318         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
11319         (do_test): Limit the number of arenas, so that we can use fewer
11320         outer threads.  Limit timeout to 3 seconds, in preparation for a
11321         larger TIMEOUT value.
11322
11323 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11324
11325         [BZ #19674]
11326         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
11327         sign in overflowing and underflowing results when overflow or
11328         underflow is detected early.  Include sign in result before rather
11329         than after scaling.
11330
11331         [BZ #19603]
11332         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11333         (__ieee754_remainderl): Adjust sign of integer version of low part
11334         when taking absolute value of high part.
11335         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11336         * math/libm-test.inc (remainder_test_data): Add another test.
11337         (remquo_test_data): Likewise.
11338
11339 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
11340
11341         [BZ #19602]
11342         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
11343         equal high parts and both low parts zero specially.
11344         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
11345         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
11346         Add test-fmodl-ldbl-128ibm.
11347
11348         [BZ #19595]
11349         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
11350         common logic for all cases of shifting subnormal results.  Do not
11351         insert sign bit in shifted mantissa.  Always pass -1023 as biased
11352         exponent to ldbl_insert_mantissa in subnormal case.
11353
11354         [BZ #19594]
11355         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
11356         on high and low parts then adjust result and use
11357         ldbl_canonicalize_int if needed.
11358
11359         [BZ #19593]
11360         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
11361         on high part and __floor or __ceil on low part then use
11362         ldbl_canonicalize_int if needed.
11363
11364         [BZ #19592]
11365         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
11366         high and low parts then use ldbl_canonicalize_int if needed.
11367
11368         [BZ #17899]
11369         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
11370         New function.
11371         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
11372         on high and low parts then use ldbl_canonicalize_int if needed.
11373
11374 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11375
11376         * configure: Regenerated.
11377
11378         * po/libc.pot: Regenerated.
11379
11380         * po/be.po: Updated translation.
11381         * po/bg.po: Likewise.
11382         * po/ca.po: Likewise.
11383         * po/cs.po: Likewise.
11384         * po/da.po: Likewise.
11385         * po/el.po: Likewise.
11386         * po/eo.po: Likewise.
11387         * po/es.po: Likewise.
11388         * po/fi.po: Likewise.
11389         * po/fr.po: Likewise.
11390         * po/gl.po: Likewise.
11391         * po/hr.po: Likewise.
11392         * po/hu.po: Likewise.
11393         * po/ia.po: Likewise.
11394         * po/id.po: Likewise.
11395         * po/it.po: Likewise.
11396         * po/ja.po: Likewise.
11397         * po/lt.po: Likewise.
11398         * po/nb.po: Likewise.
11399         * po/nl.po: Likewise.
11400         * po/pt_BR.po: Likewise.
11401         * po/rw.po: Likewise.
11402         * po/sk.po: Likewise.
11403         * po/sl.po: Likewise.
11404         * po/sv.po: Likewise.
11405         * po/tr.po: Likewise.
11406         * po/zh_CN.po: Likewise.
11407         * po/zh_TW.po: Likewise.
11408
11409         * version.h (RELEAES): Set to "development".
11410         (VERSION): Set to 2.23.90.
11411
11412         * version.h (RELEASE): Set to "stable".
11413         (VERSION): Set to 2.23.
11414         * include/feature.h (__GLIBC_MINOR__): Set to 23.
11415
11416         * NEWS: Updated fixed bugs.
11417
11418 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11419             Wilco Dijkstra  <wdijkstr@arm.com>
11420
11421         [BZ #19462]
11422         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
11423         (_STRING_INLINE_unaligned): This.
11424         * include/string.h: Include <string_private.h>.
11425         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
11426         _STRING_INLINE_unaligned.
11427         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
11428         (_STRING_INLINE_unaligned): New.
11429         * sysdeps/aarch64/string_private.h: New file.
11430         * sysdeps/generic/string_private.h: Likewise.
11431         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
11432         * sysdeps/s390/string_private.h: Likewise.
11433         * sysdeps/x86/string_private.h: Likewise.
11434         * sysdeps/m68k/m680x0/m68020/bits/string.h
11435         (_STRING_ARCH_unaligned): Renamed to ...
11436         (_STRING_INLINE_unaligned): This.
11437         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
11438         to ...
11439         (_STRING_INLINE_unaligned): This.
11440         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
11441         to ...
11442         (_STRING_INLINE_unaligned): This.
11443         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
11444         to ...
11445         (_STRING_INLINE_unaligned): This.
11446
11447 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
11448             H.J. Lu  <hongjiu.lu@intel.com>
11449
11450         [BZ #19590]
11451         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
11452         relocation.
11453
11454 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
11455
11456         [BZ #18665]
11457         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
11458         *herrno_p.
11459         (gaih_getanswer): Document functional behviour. Return tryagain
11460         if any result is tryagain.
11461         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
11462         when freed.
11463         * resolv/res_send.c: Add copyright text.
11464         (__libc_res_nsend): Document that MAXPACKET is expected.
11465         (send_vc): Document. Remove buffer reuse.
11466         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
11467         size of the buffer. Add Dprint for truncated UDP buffer.
11468
11469 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
11470
11471         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
11472         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
11473         * INSTALL: Regenerate.
11474
11475 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
11476             Jonathan Wakely  <jwakely@redhat.com>
11477             Carlos O'Donell  <carlos@redhat.com>
11478
11479         [BZ 19439]
11480         * math/Makefile (tests): Add test-math-isinff.
11481         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
11482         * math/bits/mathcalls.h [__USE_MISC]: Use
11483         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
11484         functions not in C++11 and which don't conflict e.g. isinff,
11485         isinfl etc.
11486         * math/test-math-isinff.cc: New file.
11487
11488 2016-02-12  Florian Weimer  <fweimer@redhat.com>
11489
11490         * misc/bug18240.c (do_test): Set RLIMIT_AS.
11491
11492 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11493
11494         [BZ #19529]
11495         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
11496
11497 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11498
11499         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11500
11501 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
11502
11503         [BZ #19550]
11504         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
11505         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
11506         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
11507         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
11508         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
11509         New syscall entry.
11510         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
11511         New syscall entry.
11512         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
11513         syscall entry.
11514
11515 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11516
11517         [BZ #18240]
11518         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
11519         unsigned int wraparound.
11520
11521 2016-01-27  Florian Weimer  <fweimer@redhat.com>
11522
11523         [BZ #18240]
11524         * misc/bug18240.c: New test.
11525         * misc/Makefile (tests): Add it.
11526
11527 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11528             Joseph Myers  <joseph@codesourcery.com>
11529
11530         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
11531         load in branch delay slot when less than a word of input left.
11532
11533 2016-01-27  Andreas Schwab  <schwab@suse.de>
11534
11535         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
11536         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
11537         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
11538         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
11539
11540 2016-01-26  David S. Miller  <davem@davemloft.net>
11541
11542         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
11543
11544 2016-01-25  David S. Miller  <davem@davemloft.net>
11545
11546         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
11547         __sqrtl_finite.
11548         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
11549         instead using versioned_symbol.
11550         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
11551         of entries.
11552
11553         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
11554         __sqrtl_finite to GLIBC_2.23
11555
11556 2016-01-25  Ricchard Henderson  <rth@redhat.com>
11557
11558         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11559
11560 2016-01-25  Andreas Schwab  <schwab@suse.de>
11561
11562         [BZ #17514]
11563         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
11564         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
11565         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
11566         * nptl/tst-mutex-errorcheck.c: New file.
11567
11568 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11569
11570         [BZ #18560]
11571         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
11572         (IPCOP_semop): Likewise.
11573         (IPCOP_semget): Likewise.
11574         (IPCOP_semctl): Likewise.
11575         (IPCOP_msgsnd): Likewise.
11576         (IPCOP_msgrcv): Likewise.
11577         (IPCOP_msgget): Likewise.
11578         (IPCOP_msgctl): Likewise.
11579         (IPCOP_shmat): Likewise.
11580         (IPCOP_shmdt): Likewise.
11581         (IPCOP_shmget): Likewise.
11582         (IPCOP_shmctl): Likewise.
11583
11584 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11585
11586         * string/tst-endian.c: Include <libc-internal.h>.
11587         (do_test): Ignore tautological-compare warnings around
11588         "htobeXX (beXXtoh (i)) != i" and
11589         "htoleXX (leXXtoh (i)) != i" if-statements.
11590
11591 2016-01-24  David S. Miller  <davem@davemloft.net>
11592
11593         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
11594         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
11595         alias.
11596         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11597         __sqrtl_finite.
11598
11599         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11600
11601 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
11602
11603         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
11604         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
11605         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11606
11607 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11608
11609         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
11610         (thread_func): Use new function to simplify barrier check.
11611         (do_test): Use new function to simplify checking barrier exit
11612         code, and actually join the child thread.
11613
11614 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11615
11616         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
11617         semicolon.
11618         (__libc_tend): Likewise.
11619         (__libc_tabort): Likewise.
11620
11621 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
11622
11623         * sysdeps/nios2/libm-test-ulps: Update.
11624         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
11625         (__gtsf2): Likewise.
11626         (__unorddf2): Likewise.
11627         (__unordsf2): Likewise.
11628         (__ledf2): Likewise.
11629
11630 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
11631
11632         * nis/nis_table.c (__follow_path): Disable diagnostic for
11633         uninitialized variable that is a false positive for gcc 4.7.
11634         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
11635
11636 2016-01-20  Roland McGrath  <roland@hack.frob.com>
11637
11638         * sysdeps/nacl/lowlevellock-futex.h
11639         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
11640         Always evaluate PRIVATE argument.
11641
11642 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11643
11644         [BZ #19490]
11645         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
11646         (pthread_cond_broadcast): Use ENTRY/END
11647         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
11648         (pthread_cond_signal): Likewise.
11649         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
11650         Likewise.
11651         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
11652         Likewise.
11653         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
11654         Likewise.
11655
11656 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
11657
11658         * sysdeps/ieee754/dbl-64/s_finite.c
11659         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
11660         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
11661         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
11662         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
11663         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
11664
11665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11666         (__gtsf2): Add as optional for libc.so.
11667         (__unordsf2): Likewise.
11668         (__signbit): Remove for libc.so.
11669         (__signbitl): Likewise.
11670
11671 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
11672
11673         * iconvdata/bug-iconv11.c (test_ibm93x):
11674         Use %zu printf format specifier for size_t argument.
11675
11676 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
11677
11678         * math/gen-libm-test.pl (parse_ulps): Do not reduce
11679         already-recorded ulps.
11680         * sysdeps/arm/libm-test-ulps: Regenerated.
11681         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11682         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11683         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11684
11685 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
11686             Paul Pluzhnikov  <ppluzhnikov@google.com>
11687
11688         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
11689         assembler not supporting AVX-512.
11690
11691 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11692
11693         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11694
11695 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11696
11697         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
11698         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11699
11700         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
11701
11702         * sysdeps/arm/libm-test-ulps: Regenerated.
11703
11704 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11705
11706         [BZ #19451]
11707         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
11708
11709 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11710
11711         [BZ #19486]
11712         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
11713         * sysdeps/generic/fix-fp-int-convert-overflow.h
11714         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
11715         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
11716         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
11717         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
11718         Likewise.
11719         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
11720         Avoid conversions to long int where inexact exceptions
11721         could be raised.
11722         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
11723         Likewise.
11724         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
11725         Avoid conversions to long long int where inexact exceptions
11726         could be raised.
11727         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
11728         Likewise.
11729
11730 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
11731
11732         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
11733         * configure: Regenerated.
11734
11735 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11736
11737         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
11738
11739 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
11740
11741         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
11742         outside of comment.
11743
11744 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11745
11746         * nptl/tst-barrier1.c: Add description on first line.
11747         * nptl/tst-barrier2.c: Likewise.
11748         * nptl/tst-barrier3.c: Likewise.
11749         * nptl/tst-barrier4.c: Likewise.
11750         * nptl/tst-barrier5.c: Likewise.
11751
11752 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11753
11754         [BZ #18868]
11755         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
11756
11757 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11758
11759         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
11760         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
11761         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
11762         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
11763         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
11764         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
11765         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11766         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11767         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11768         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11769         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11770
11771 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11772
11773         [BZ #13065]
11774         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
11775         new implementation.
11776         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
11777         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
11778         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
11779         (BARRIER_IN_THRESHOLD): New macro.
11780         * nptl/pthread_barrierattr_setpshared.c
11781         (pthread_barrierattr_setpshared): Clean up.
11782         * nptl/tst-barrier4.c: Correct comment.
11783         * nptl/tst-barrier5.c: New file.
11784         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
11785         (gen-as-const-headers): Remove lowlevelbarrier.sym.
11786         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
11787         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
11788         * nptl/lowlevelbarrier.sym: Remove.
11789         * nptl/DESIGN-barrier.txt: Remove.
11790         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
11791         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
11792         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
11793         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
11794         error.
11795         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
11796         implementation.
11797
11798 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11799
11800         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
11801         (do_child): Mask SIGRTMIN while thr is running.
11802
11803 2016-01-15  Martin Sebor  <msebor@redhat.com>
11804
11805         [BZ #19432]
11806         * iconvdata/Makefile: Add bug-iconv11.
11807         * iconvdata/bug-iconv11.c: New test.
11808         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
11809         * iconvdata/ibm933.c: Same.
11810         * iconvdata/ibm935.c: Same.
11811         * iconvdata/ibm937.c: Same.
11812         * iconvdata/ibm939.c: Same.
11813
11814 2016-01-15  Martin Sebor  <msebor@redhat.com>
11815
11816         [BZ #19443]
11817         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
11818         [DEBUG] (_ufc_set_bits): Declare used.
11819         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
11820         [DEBUG] (print_all): Declare used.
11821         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
11822         operands of the ternary ?: expression to target type.
11823         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
11824         calling the undeclared abort.
11825         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
11826
11827 2016-01-15  Martin Sebor  <msebor@redhat.com>
11828
11829         [BZ #18755]
11830         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
11831         warnings.
11832         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
11833         (__gai_create_helper_thread): Same.
11834         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
11835         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
11836         to suppress -Wmaybe-uninitialized warnings.
11837
11838 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
11839
11840         [BZ #19465]
11841         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
11842         inside if.
11843         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11844         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11845         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11846
11847 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         [BZ #19466]
11850         * time/tst-mktime2.c (time_t_max): Removed.
11851         (time_t_min): Likewise.
11852         (TYPE_SIGNED): New.
11853         (TYPE_MINIMUM): Likewise.
11854         (TYPE_MAXIMUM): Likewise.
11855         (TIME_T_MIN): Likewise.
11856         (TIME_T_MAX): Likewise.
11857         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
11858         and TIME_T_MIN.
11859         (do_test): Likewise.
11860
11861 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
11862
11863         [BZ #19467]
11864         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11865         index_Fast_Unaligned_Load flag for Excavator family CPUs.
11866
11867 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
11868
11869         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
11870
11871 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
11872
11873         * benchtests/Makefile (PYTHON): Define.
11874         (bench-func): Use $(PYTHON) to run python scripts.
11875         ($(objpfx)bench-%.c): Likewise.
11876
11877 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
11878
11879         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
11880         leading slash when `file_name' is "/".
11881
11882 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
11883
11884         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
11885         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
11886         Likewise.
11887         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
11888         Likewise.
11889         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
11890         Likewise.
11891         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
11892         enum constant and macro.
11893         (PTRACE_SETSIGMASK): Likewise.
11894         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11895         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
11896         (PTRACE_GETSIGMASK): Likewise.
11897         (PTRACE_SETSIGMASK): Likewise.
11898         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11899         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
11900         Likewise.
11901         (PTRACE_SETSIGMASK): Likewise.
11902         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11903         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
11904         (PTRACE_GETSIGMASK): Likewise.
11905         (PTRACE_SETSIGMASK): Likewise.
11906         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11907         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
11908         Likewise.
11909         (PTRACE_SETSIGMASK): Likewise.
11910         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11911         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
11912         Likewise.
11913         (PTRACE_SETSIGMASK): Likewise.
11914         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11915         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
11916         Likewise.
11917         (PTRACE_SETSIGMASK): Likewise.
11918         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11919
11920 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
11921             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11922
11923         [BZ #19439]
11924         * math/bits/mathcalls.h
11925         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
11926         prototype.
11927         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
11928
11929 2016-01-11  Andreas Schwab  <schwab@suse.de>
11930
11931         [BZ #19253]
11932         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
11933         cache when TZDEFRULES was used.
11934         * time/tst-tzname.c: New file.
11935         * time/Makefile (test): Add tst-tzname.
11936         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
11937         * timezone/Makefile (test-zones): Add $(posixrules-file).
11938         ($(testdata)/$(posixrules-file)): New rule.
11939
11940 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         Fix doc quoting problems with Texinfo 5
11943         Without this change, in the info file output, Texinfo 5 quotes code
11944         in text with undirected single quotes 'like this' and generates
11945         code examples that with many PDF readers cannot be cut out of PDFs
11946         and pasted into code.
11947         * manual/libc.texinfo: Configure the libc manual like the GNU
11948         Emacs manual, by using @documentencoding and setting
11949         txicodequoteundirected and txicodequotebacktick.  This way,
11950         Texinfo 5 quotes code in text with directed single quotes ‘like
11951         this’ and produces examples that can be cut out of PDFs.  This
11952         change causes Texinfo 5 to generate info files that contain UTF-8
11953         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
11954         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
11955
11956 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11957
11958         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
11959         __libc_tabort, __libc_tend): New wrappers that enforce compiler
11960         barriers to their respective compiler built-ins.
11961         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
11962         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
11963         * sysdeps/powerpc/sysdep.h: Likewise.
11964         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
11965         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
11966         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
11967
11968 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
11969
11970         * scripts/config.guess: Revert previous shebang change.
11971         * scripts/config.sub: Likewise.
11972         * scripts/mkinstalldirs: Likewise.
11973
11974 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11975
11976         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
11977         PPC_FEATURE2_HAS_IEEE128.
11978         * sysdeps/powerpc/dl-procinfo.c:
11979         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
11980
11981 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
11982
11983         [BZ #19415]
11984         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
11985         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
11986         (_dl_lookup_address): Rewrite using function resolver trampoline.
11987         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
11988         two bits in address.
11989
11990 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11991
11992         * longlong.h: Change !__SHMEDIA__ to
11993         (!defined (__SHMEDIA__) || !__SHMEDIA__).
11994         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
11995
11996 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
11997             Joseph Myers  <joseph@codesourcery.com>
11998             Mark Shinwell  <shinwell@codesourcery.com>
11999             Andrew Stubbs  <ams@codesourcery.com>
12000             Rich Felker <dalias@libc.org>
12001
12002         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
12003
12004 2016-01-07  Richard Henderson  <rth@redhat.com>
12005
12006         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
12007
12008 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
12009
12010         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
12011         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
12012         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
12013         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
12014         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
12015
12016 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
12017             Joseph Myers  <joseph@codesourcery.com>
12018
12019         * timezone/private.h: Update from tzcode 2015g.
12020         * timezone/tzfile.h: Likewise.
12021         * timezone/tzselect.ksh: Likewise.
12022         * timezone/zdump.c: Likewise.
12023         * timezone/zic.c: Likewise.
12024         * timezone/ialloc.c: Remove file.
12025         * timezone/scheck.c: Likewise.
12026         * timezone/Makefile (extra-objs): Remove variable.
12027         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
12028         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
12029         -Wno-maybe-uninitialized.
12030         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
12031         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
12032         (CFLAGS-ialloc.c): Remove variable.
12033         (CFLAGS-scheck.c): Likewise.
12034         * timezone/README: Update list of files from tzcode.
12035
12036 2016-01-07  Khem Raj  <raj.khem@gmail.com>
12037
12038         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
12039         instead of __fxprintf when _LIBC is undefined.
12040
12041 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
12042
12043         * catgets/test-gencat.sh: Remove space after shebang.
12044         * conform/GlibcConform.pm: Likewise.
12045         * conform/check-header-lists.sh: Likewise.
12046         * conform/conformtest.pl: Likewise.
12047         * conform/linknamespace.pl: Likewise.
12048         * conform/list-header-symbols.pl: Likewise.
12049         * debug/catchsegv.sh: Likewise.
12050         * elf/genrtldtbl.awk: Likewise.
12051         * elf/tst-pathopt.sh: Likewise.
12052         * elf/tst-rtld-load-self.sh: Likewise.
12053         * grp/tst_fgetgrent.sh: Likewise.
12054         * iconvdata/gen-8bit-gap-1.sh: Likewise.
12055         * iconvdata/gen-8bit-gap.sh: Likewise.
12056         * iconvdata/gen-8bit.sh: Likewise.
12057         * iconvdata/run-iconv-test.sh: Likewise.
12058         * intl/tst-gettext.sh: Likewise.
12059         * intl/tst-gettext2.sh: Likewise.
12060         * intl/tst-gettext4.sh: Likewise.
12061         * intl/tst-gettext6.sh: Likewise.
12062         * intl/tst-translit.sh: Likewise.
12063         * io/ftwtest-sh: Likewise.
12064         * libio/test-freopen.sh: Likewise.
12065         * locale/gen-translit.pl: Likewise.
12066         * malloc/tst-mtrace.sh: Likewise.
12067         * manual/check-safety.sh: Likewise.
12068         * manual/libc-texinfo.sh: Likewise.
12069         * manual/tsort.awk: Likewise.
12070         * manual/xtract-typefun.awk: Likewise.
12071         * nptl/tst-cancel-wrappers.sh: Likewise.
12072         * nptl/tst-tls6.sh: Likewise.
12073         * posix/globtest.sh: Likewise.
12074         * posix/tst-getconf.sh: Likewise.
12075         * posix/wordexp-tst.sh: Likewise.
12076         * scripts/check-c++-types.sh: Likewise.
12077         * scripts/check-local-headers.sh: Likewise.
12078         * scripts/config.guess: Likewise.
12079         * scripts/config.sub: Likewise.
12080         * scripts/cpp: Likewise.
12081         * scripts/cross-test-ssh.sh: Likewise.
12082         * scripts/documented.sh: Likewise.
12083         * scripts/evaluate-test.sh: Likewise.
12084         * scripts/gen-libc-abis: Likewise.
12085         * scripts/gen-sorted.awk: Likewise.
12086         * scripts/list-fixed-bugs.py: Likewise.
12087         * scripts/merge-test-results.sh: Likewise.
12088         * scripts/mkinstalldirs: Likewise.
12089         * scripts/rellns-sh: Likewise.
12090         * scripts/test-installation.pl: Likewise.
12091         * scripts/update-copyrights: Likewise.
12092         * stdio-common/tst-printf.sh: Likewise.
12093         * stdio-common/tst-unbputc.sh: Likewise.
12094         * stdlib/tst-fmtmsg.sh: Likewise.
12095         * stdlib/tst-setcontext3.sh: Likewise.
12096         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
12097         * sysdeps/unix/make-syscalls.sh: Likewise.
12098
12099 2016-01-06  John David Anglin  <dave.anglin@bell.net>
12100
12101         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
12102         asm stw with atomic_exchange_rel.  Add explanatory comment.
12103         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
12104         Likewise.
12105
12106 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12107
12108         [BZ #19122]
12109         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
12110         * sysdeps/generic/dl-unistd.h: New file.
12111         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
12112
12113 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12114
12115          [BZ #19122]
12116          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
12117          * sysdeps/generic/dl-mman.h: New file.
12118          * sysdeps/mach/hurd/dl-mman.h: Likewise.
12119
12120 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
12121
12122         * manual/texinfo.tex: Update to version 2016-01-04.21 with
12123         trailing whitespace removed.
12124         * scripts/config.guess: Update to version 2016-01-01.
12125         * scripts/config.sub: Update to version 2016-01-01.
12126         * scripts/move-if-change: Update from gnulib.
12127
12128 2016-01-04  Anton Blanchard  <anton@samba.org>
12129
12130         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
12131         for array indices.
12132         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
12133
12134 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
12135
12136         * NEWS: Update copyright dates.
12137         * catgets/gencat.c (print_version): Likewise.
12138         * csu/version.c (banner): Likewise.
12139         * debug/catchsegv.sh: Likewise.
12140         * debug/pcprofiledump.c (print_version): Likewise.
12141         * debug/xtrace.sh (do_version): Likewise.
12142         * elf/ldconfig.c (print_version): Likewise.
12143         * elf/ldd.bash.in: Likewise.
12144         * elf/pldd.c (print_version): Likewise.
12145         * elf/sotruss.sh: Likewise.
12146         * elf/sprof.c (print_version): Likewise.
12147         * iconv/iconv_prog.c (print_version): Likewise.
12148         * iconv/iconvconfig.c (print_version): Likewise.
12149         * locale/programs/locale.c (print_version): Likewise.
12150         * locale/programs/localedef.c (print_version): Likewise.
12151         * login/programs/pt_chown.c (print_version): Likewise.
12152         * malloc/memusage.sh (do_version): Likewise.
12153         * malloc/memusagestat.c (print_version): Likewise.
12154         * malloc/mtrace.pl: Likewise.
12155         * manual/libc.texinfo: Likewise.
12156         * nptl/version.c (banner): Likewise.
12157         * nscd/nscd.c (print_version): Likewise.
12158         * nss/getent.c (print_version): Likewise.
12159         * nss/makedb.c (print_version): Likewise.
12160         * posix/getconf.c (main): Likewise.
12161         * scripts/test-installation.pl: Likewise.
12162         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
12163
12164         * All files with FSF copyright notices: Update copyright dates
12165         using scripts/update-copyrights.
12166         * intl/plural.c: Regenerated.
12167         * locale/programs/charmap-kw.h: Likewise.
12168         * locale/programs/locfile-kw.h: Likewise.
12169
12170 2016-01-02  Helge Deller  <deller@gmx.de>
12171
12172         [BZ #19285]
12173         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
12174         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
12175         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
12176         (MADV_xxK_PAGES): Remove.
12177
12178 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
12179
12180         [BZ #15421]
12181         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
12182         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
12183         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
12184         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
12185
12186 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
12187
12188         [BZ #19408]
12189         * sysdeps/unix/sysv/linux/personality.c: New file.
12190         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
12191         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
12192         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
12193         (sysdep_routines): Add personality.
12194         (tests): Add tst-personality.
12195         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
12196         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
12197         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
12198         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
12199         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
12200         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
12201         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
12202         Likewise.
12203         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
12204         Likewise.
12205         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
12206         Likewise.
12207         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
12208         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
12209         Likewise.
12210
12211 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
12212
12213         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
12214         (PATH_ARM_SYSTYPE): Remove.
12215         (PATH_CPUINFO): Likewise.
12216         (IO_BASE_FOOTBRIDGE): Likewise.
12217         (IO_SHIFT_FOOTBRIDGE): Likewise.
12218         (struct platform): Likewise.
12219         (init_iosys): Remove compatibility code for 2.4 kernels.
12220         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
12221
12222 2015-12-29  Florian Weimer  <fweimer@redhat.com>
12223
12224         * malloc/tst-malloc-thread-fail.c: New file.
12225         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
12226         (tst-malloc-thread-fail): Link against libpthread.
12227
12228 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
12229
12230         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
12231         (get_parser): New function.
12232         (main): New function.
12233
12234 2015-12-29  Rob Wu  <rob@robwu.nl>
12235
12236         [BZ #19369]
12237         * resolv/res_init.c (__res_vinit): Reset defdname before use.
12238
12239 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
12240
12241         [BZ #19270]
12242         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12243
12244 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
12245
12246         [BZ #15421]
12247         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
12248
12249 2015-12-23  Torvald Riegel  <triegel@redhat.com>
12250
12251         [BZ #13690]
12252         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
12253         after releasing it.
12254         (__lll_robust_unlock): Likewise.
12255         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12256         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
12257         (lll_robust_unlock): Likewise.
12258         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
12259         Prevent warnings in callers.
12260
12261 2015-12-23  Florian Weimer  <fweimer@redhat.com>
12262
12263         * malloc/arena.c (list_lock): Update comment.
12264
12265 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12266
12267         * sysdeps/powerpc/hwcapinfo.c: Export symbol
12268         __parse_hwcap_and_convert_at_platform to libc.a.
12269
12270 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12271
12272         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
12273         platform and feature support for POWER9.
12274         * sysdeps/powerpc/dl-procinfo.h: Likewise.
12275         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
12276         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
12277         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
12278         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
12279         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12280         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12281         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12282
12283 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12284
12285         Harmonize generic stdio-lock support with nptl
12286
12287         This fixes build when _IO_funlockfile is a macro, fixes build where
12288         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
12289         stack unwind.
12290
12291         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
12292         _IO_release_lock ): Use cleanup attribute on new
12293         _IO_acquire_lock_file variable instead of assuming that
12294         _IO_release_lock will be called.
12295         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
12296         _IO_acquire_lock_needs_exceptions_enabled.
12297         (_IO_acquire_lock_clear_flags2): New macro.
12298
12299 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12300
12301         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
12302
12303 2015-12-21  Florian Weimer  <fweimer@redhat.com>
12304
12305         [BZ #19182]
12306         * malloc/arena.c (list_lock): Document lock ordering requirements.
12307         (free_list_lock): New lock.
12308         (ptmalloc_lock_all): Comment on free_list_lock.
12309         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
12310         (detach_arena): Update comment.  free_list_lock is now needed.
12311         (_int_new_arena): Use free_list_lock around detach_arena call.
12312         Acquire arena lock after list_lock.  Add comment, including FIXME
12313         about incorrect synchronization.
12314         (get_free_list): Switch to free_list_lock.
12315         (reused_arena): Acquire free_list_lock around detach_arena call
12316         and attached threads counter update.  Add two FIXMEs about
12317         incorrect synchronization.
12318         (arena_thread_freeres): Switch to free_list_lock.
12319         * malloc/malloc.c (struct malloc_state): Update comments to
12320         mention free_list_lock.
12321
12322 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
12323
12324         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
12325         Remove functions.
12326         (sloww, sloww1): Accept argument to offset quadrant.
12327         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
12328         quadrant.
12329         (__sin, __cos): Consolidate common code into new functions.
12330         (reduce_sincos_1, do_sincos_1): New functions.
12331         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12332
12333         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
12334         code to new functions.
12335         (reduce_sincos_2, do_sincos_2): New functions.
12336         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12337
12338         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
12339         common code for sincos.
12340         (__cos) [!IN_SINCOS]: Likewise.
12341         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
12342         New function.
12343         (__sincos): Use it.
12344
12345 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
12346
12347         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
12348         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
12349         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
12350
12351 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12352
12353         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
12354         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
12355         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12356         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
12357         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12358         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
12359         index_Prefer_No_VZEROUPPER): New feature.
12360         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
12361         Prefer_No_VZEROUPPER for Knights Landing.
12362
12363 015-12-18  Torvald Riegel  <triegel@redhat.com>
12364
12365         * math/atest-exp2.c (mp_exp_m1): Remove.
12366
12367 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12368
12369         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
12370         syscalls.
12371         (__SYSCALL0): New macro.
12372         (__SYSCALL1): Likewise.
12373         (__SYSCALL2): Likewise.
12374         (__SYSCALL3): Likewise.
12375         (__SYSCALL4): Likewise.
12376         (__SYSCALL5): Likewise.
12377         (__SYSCALL6): Likewise.
12378         (__SYSCALL_CONCAT_X): Likewise.
12379         (__SYSCALL_CONCAT): Likewise.
12380         (__SYSCALL_DIST): Likewise.
12381         (__SYSCALL_CALL): Likewise.
12382
12383 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
12384
12385         [BZ #19363]
12386         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
12387
12388 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12389
12390         [BZ #19375]
12391         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
12392         negative subnormals.
12393
12394 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
12395
12396         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12397         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
12398         (INTERNAL_SYSCALL_NCS): Use it.
12399         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12400
12401 2015-12-16  Florian Weimer  <fweimer@redhat.com>
12402
12403         [BZ #19243]
12404         * malloc/arena.c (get_free_list): Remove assert and adjust
12405         reference count handling.  Add comment about reused_arena
12406         interaction.
12407         (reused_arena): Add comments abount get_free_list interaction.
12408         * malloc/tst-malloc-thread-exit.c: New file.
12409         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
12410         (tst-malloc-thread-exit): Link against libpthread.
12411
12412 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12413
12414         [BZ #19367]
12415         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
12416         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
12417         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
12418         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
12419         (index_Prefer_MAP_32BIT_EXEC): Likewise.
12420
12421 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12422
12423         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
12424         Silvermont optimizations for Knights Landing.
12425
12426 2015-12-15  Andreas Schwab  <schwab@suse.de>
12427
12428         [BZ #17197]
12429         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
12430         immediately after emitting SI.
12431         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
12432         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
12433         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
12434         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
12435         * iconvdata/bug-iconv10.c: New file.
12436         * iconvdata/Makefile (tests): Add bug-iconv10.
12437         ($(objpfx)bug-iconv10.out): New rule.
12438
12439 2015-12-15  Florian Weimer  <fweimer@redhat.com>
12440
12441         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
12442         aliasing violation.
12443
12444 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
12445
12446         [BZ #18472]
12447         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
12448         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
12449         conditionals for them.
12450         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
12451         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
12452         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
12453         sys/kdaemon.h.
12454         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
12455         compat-only syscall, obsoleted in glibc 2.23.
12456         (create_module): Likewise.
12457         (get_kernel_syms): Likewise.
12458         (query_module): Likewise.
12459         (uselib): Likewise.
12460         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
12461
12462 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
12463
12464         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
12465         <linux/version.h>.
12466         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
12467         conditional code.
12468         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
12469         and ioshift_name initialization.
12470
12471 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12472
12473         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12474         Fix indentation.
12475
12476 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12477
12478         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
12479
12480 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12481
12482         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
12483
12484 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12485             Jakub Wilk  <jwilk@debian.org>
12486
12487         [BZ #19347]
12488         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
12489         to change the group of the device to the tty group.
12490
12491 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
12492
12493         Split large string section; add truncation advice
12494         * manual/examples/strncat.c: Remove.
12495         This example was misleading, as the code would have undefined
12496         behavior if "hello" was longer than SIZE.  Anyway, the manual
12497         shouldn't encourage strncpy+strncat for this sort of thing.
12498         * manual/string.texi (Copying Strings and Arrays): Split into
12499         three sections Copying Strings and Arrays, Concatenating Strings,
12500         and Truncating Strings, as this section was way too long.  All
12501         cross-referenced changed.  Add advice about string-truncation
12502         functions.  Remove misleading strncat example.
12503
12504 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
12505
12506         * manual/nss.texi (NSS Modules Interface): Document
12507         NSS_STATUS_NOTFOUND and SUCCESS.
12508
12509 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12510
12511         [BZ 18568]
12512         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
12513         201505L, for Unicode 8.
12514
12515 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
12516
12517         * locale/C-translit.h: Regenerate.
12518
12519 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12520
12521         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
12522         and U+0153.
12523
12524 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
12525
12526         [BZ #19351]
12527         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
12528         expanding log(1+z), compare z rather than its square with epsilon
12529         to determine when to avoid evaluating the expansion.
12530
12531         [BZ #19350]
12532         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
12533         Increase overflow threshold.
12534
12535         [BZ #19349]
12536         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
12537         when small.
12538
12539         * sysdeps/unix/sysv/linux/i386/kernel-features.h
12540         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12541         New macro.
12542         [__LINUX_KERNEL_VERSION >= 0x040300]
12543         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12544         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12545         Likewise.
12546         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12547         Likewise.
12548         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12549         Likewise.
12550         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12551         Likewise.
12552         [__LINUX_KERNEL_VERSION >= 0x040300]
12553         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12554         [__LINUX_KERNEL_VERSION >= 0x040300]
12555         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12556         [__LINUX_KERNEL_VERSION >= 0x040300]
12557         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12558         [__LINUX_KERNEL_VERSION >= 0x040300]
12559         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12560         [__LINUX_KERNEL_VERSION >= 0x040300]
12561         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12562         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12563         Likewise.
12564         [__LINUX_KERNEL_VERSION >= 0x040300]
12565         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12566         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12567         Likewise.
12568         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12569         Likewise.
12570         [__LINUX_KERNEL_VERSION >= 0x040300]
12571         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12572         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12573         Likewise.
12574         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12575         Likewise.
12576         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
12577         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
12578         Likewise.
12579         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
12580         Likewise.
12581         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12582         Likewise.
12583         [__LINUX_KERNEL_VERSION >= 0x040300]
12584         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12585         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12586         Likewise.
12587         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12588         Likewise.
12589         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12590         Likewise.
12591         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12592         Likewise.
12593         [__LINUX_KERNEL_VERSION >= 0x040300]
12594         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12595         [__LINUX_KERNEL_VERSION >= 0x040300]
12596         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12597         [__LINUX_KERNEL_VERSION >= 0x040300]
12598         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12599         [__LINUX_KERNEL_VERSION >= 0x040300]
12600         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12601         [__LINUX_KERNEL_VERSION >= 0x040300]
12602         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12603         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12604         Likewise.
12605         [__LINUX_KERNEL_VERSION >= 0x040300]
12606         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12607         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12608         Likewise.
12609         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12610         Likewise.
12611         [__LINUX_KERNEL_VERSION >= 0x040300]
12612         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12613         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12614         Likewise.
12615         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12616         Likewise.
12617         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12618         (__ASSUME_SOCKET_SYSCALL): Likewise.
12619         (__ASSUME_BIND_SYSCALL): Likewise.
12620         (__ASSUME_CONNECT_SYSCALL): Likewise.
12621         (__ASSUME_LISTEN_SYSCALL): Likewise.
12622         (__ASSUME_ACCEPT_SYSCALL): Likewise.
12623         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12624         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12625         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12626         (__ASSUME_SEND_SYSCALL): Likewise.
12627         (__ASSUME_SENDTO_SYSCALL): Likewise.
12628         (__ASSUME_RECV_SYSCALL): Likewise.
12629         (__ASSUME_RECVFROM_SYSCALL): Likewise.
12630         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
12631         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12632         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12633         (__ASSUME_SENDMSG_SYSCALL): Likewise.
12634         (__ASSUME_RECVMSG_SYSCALL): Likewise.
12635         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12636         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
12637         Likewise.
12638         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
12639         Likewise.
12640         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
12641         Likewise.
12642         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
12643         Likewise.
12644         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
12645         Likewise.
12646         [__LINUX_KERNEL_VERSION >= 0x020625]
12647         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12648         [__LINUX_KERNEL_VERSION >= 0x020625]
12649         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12650         [__LINUX_KERNEL_VERSION >= 0x020625]
12651         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12652         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
12653         Likewise.
12654         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
12655         Likewise.
12656         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
12657         Likewise.
12658         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
12659         Likewise.
12660         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
12661         Likewise.
12662         [__LINUX_KERNEL_VERSION >= 0x020625]
12663         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12664         [__LINUX_KERNEL_VERSION >= 0x020625]
12665         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12666         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
12667         Likewise.
12668         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
12669         Likewise.
12670
12671 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12672
12673         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
12674         record the current if the current ABI and CPU support the FP64
12675         extension.
12676         (has-modd-spreg): Define to record the current if the current ABI and
12677         CPU support 32-bit floating point values in odd FPU registers.
12678         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12679         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
12680         $(has-modd-spreg) equals yes.
12681         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
12682         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
12683         $(has-modd-spreg) equal yes.
12684
12685 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12686
12687         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
12688         basename.
12689
12690 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
12691
12692         * benchtests/Makefile (bench-math): Move ffs and ffsll...
12693         (bench-string): ... here.
12694         (bench): Add bench-string.
12695         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
12696         to *-benchset to reflect what they are.
12697         (benchset): Adjust.
12698
12699         * benchtests/sincos-inputs: Add inputs from sin-inputs and
12700         cos-inputs.
12701
12702 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
12703
12704         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
12705         __attribute__ ((__simd__)) for vector math function declarations.
12706
12707 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12708
12709         Fix typo in strncat, wcsncat manual entries
12710         * manual/string.texi (Copying and Concatenation): Fix typos in
12711         sample implementations of strncat and wcsncat, by having them use
12712         the old value of the destination length, not the new one.
12713
12714 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
12715
12716         [BZ #16961]
12717         [BZ #16962]
12718         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
12719         string on the stack for strtod.
12720         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
12721         a string on the stack for strtof.
12722         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
12723         constructing a string on the stack for strtold.
12724         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
12725         __strtold_nan to GLIBC_PRIVATE.
12726         * math/test-nan-overflow.c: New file.
12727         * math/test-nan-payload.c: Likewise.
12728         * math/Makefile (tests): Add test-nan-overflow and
12729         test-nan-payload.
12730
12731 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12732
12733         Consistency about byte vs character in string.texi
12734         * manual/string.texi (String and Array Utilities):
12735         Distinguish more carefully among bytes, multibyte characters,
12736         and wide characters.  Use "byte" when talking about C 'char',
12737         to distinguish it more clearly from multibyte characters.
12738         Say "wide character" or "multibyte character" instead of
12739         "character", when a wide or multibyte character is intended.
12740         Similarly for "multibyte string" versus "string".
12741         Define these terms more carefully.
12742
12743 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
12744
12745         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
12746         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
12747         Likewise.
12748         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12749         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12750         * sysdeps/sh/math_private.h: New file.
12751         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
12752         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
12753         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
12754         long double function name.
12755         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12761         Remove __finitel, __isinfl, and __isnanl.
12762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12763         Likewise.
12764         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12765         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12766         Remove __finitel.
12767         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12768         Likewise.
12769         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12770
12771 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
12772
12773         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
12774         installed libmvec_nonshared.a.
12775
12776 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12777
12778         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
12779         (sysdep_routines): Likewise.
12780         (sysdep-rtld-routines): Likewise.
12781         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
12782         [$(subdir) = nptl](tests-static): test-get_hwcap-static
12783         * sysdeps/powerpc/Versions: Added new
12784         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
12785         * sysdeps/powerpc/hwcapinfo.c: New file.
12786         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
12787         and parse hwcap, hwcap2 and platform number information.
12788         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
12789         to store HWCAP+HWCAP2 and platform number.
12790         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
12791         for HWCAP+HWCAP2 and platform number in the TCB.
12792         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
12793         the HWCAP, HWCAP2 and platform number in the TCB.
12794         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
12795         (TLS_INIT_TP): Included calls to add the hwcap and
12796         at_platform values in the TCB in TP initialization.
12797         (TLS_DEFINE_INIT_TP): Likewise.
12798         (THREAD_GET_HWCAP): New macro.
12799         (THREAD_SET_HWCAP): Likewise.
12800         (THREAD_GET_AT_PLATFORM): Likewise.
12801         (THREAD_SET_AT_PLATFORM): Likewise.
12802         * sysdeps/powerpc/powerpc32/dl-machine.h:
12803         (dl_platform_init): New function that calls
12804         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
12805         powerpc32.
12806         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
12807         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
12808         this functionality, static linking case.
12809         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
12810         linking case.
12811         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
12812         __parse_hwcap_and_convert_at_platform for the static linking case.
12813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
12814         Included the new __parse_hwcap_and_convert_at_platform symbol in the
12815         ABI list for GLIBC 2.23.
12816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
12817         Likewise.
12818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
12819         Likewise.
12820
12821 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
12822
12823         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
12824         * configure: Regenerate.
12825         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
12826         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
12827
12828 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
12829
12830         * iconvdata/ibm930.c: Add comment explaining encoding uses.
12831         * iconvdata/ibm933.c: Likewise.
12832         * iconvdata/ibm935.c: Likewise.
12833         * iconvdata/ibm937.c: Likewise.
12834         * iconvdata/ibm939.c: Likewise.
12835
12836 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12837
12838         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
12839         pthread_join.
12840         * nptl/tst-cancel21.c (tf): Likewise.
12841
12842 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         [BZ #19313]
12845         * bits/typesizes.h (__CPU_MASK_TYPE): New.
12846         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12847         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12848         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
12849         Likewise.
12850         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
12851         Likewise.
12852         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
12853         Likewise.
12854         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
12855         Likewise.
12856         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
12857         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
12858         unsigned long int with __CPU_MASK_TYPE.
12859
12860 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12861
12862         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12863
12864 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
12865
12866         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
12867         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
12868         t512.x.
12869         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
12870
12871 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
12872
12873         [BZ #19214]
12874         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
12875         argument to return extended model.  Update family and model
12876         with extended family and model when family == 0x0f.
12877         (init_cpu_features): Updated.
12878
12879 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12880
12881         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
12882         signed off_t, so 32bit bigger than 2GiB values are fine actually.
12883
12884         * sysdeps/mach/hurd/mmap64.c: New file.
12885
12886 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
12887
12888         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
12889         rights for its main user thread in NEWTASK.
12890
12891 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
12892
12893         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
12894         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
12895
12896 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
12897
12898         [BZ #14259]
12899         * Makeconfig: Rename localedir to complocaledir.
12900         Rename inst_localedir to inst_complocaledir.
12901         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
12902         * config.make.in: Use complocaledir and libc_cv_complocaledir.
12903         * configure.ac: Use libc_cv_complocaledir.
12904         * configure: Regenerate.
12905         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
12906         -DCOMPLOCALEDIR.
12907         * locale/findlocale.c: Use COMPLOCALEDIR.
12908         * locale/loadarchive.c: Likewise.
12909         * locale/programs/locale.c: Likewise.
12910         * locale/programs/localedef.c: Likewise.
12911         * locale/programs/locarchive.c: Likewise.
12912         * localedata/Makefile: Use inst_complocaledir.
12913         * sysdeps/gnu/configure: Regenerate.
12914         * sysdeps/hppa/configure: Regenerate.
12915         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
12916         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
12918         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
12919         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
12920         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
12921         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
12922
12923 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
12924
12925         [BZ #19058]
12926         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
12927         AS_NEEDED.
12928         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
12929         workaround.
12930         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
12931         libmvec-static-only-routines): Added new file.
12932         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
12933
12934 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12935
12936         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
12937         of interrupted RPC instead of restoring it.
12938
12939         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
12940         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
12941         libc_hidden_def.
12942         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
12943         into initialized data instead of common. Define rtld_hidden_data_def.
12944         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
12945         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
12946         libc_hidden_def.
12947         (if_freenameindex): Add libc_hidden_weak.
12948         (if_nameindex): Add libc_hidden_weak.
12949         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
12950         __open64.
12951         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
12952         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
12953         * sysdeps/mach/nanosleep.c: Include <time.h>
12954         (__nanosleep): Rename to __libc_nanosleep.
12955         (__nanosleep): Add weak_alias.
12956         (nanosleep): Update alias.
12957
12958 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
12959
12960         * stdlib/strtod_nan.c: New file.
12961         * stdlib/strtod_nan_double.h: Likewise.
12962         * stdlib/strtod_nan_float.h: Likewise.
12963         * stdlib/strtod_nan_main.c: Likewise.
12964         * stdlib/strtod_nan_narrow.h: Likewise.
12965         * stdlib/strtod_nan_wide.h: Likewise.
12966         * stdlib/strtof_nan.c: Likewise.
12967         * stdlib/strtold_nan.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
12969         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
12970         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
12971         * wcsmbs/wcstod_nan.c: Likewise.
12972         * wcsmbs/wcstof_nan.c: Likewise.
12973         * wcsmbs/wcstold_nan.c: Likewise.
12974         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
12975         strtold_nan.
12976         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
12977         wcstof_nan.
12978         * include/stdlib.h (__strtof_nan): Declare and use
12979         libc_hidden_proto.
12980         (__strtod_nan): Likewise.
12981         (__strtold_nan): Likewise.
12982         (__wcstof_nan): Likewise.
12983         (__wcstod_nan): Likewise.
12984         (__wcstold_nan): Likewise.
12985         * include/wchar.h (____wcstoull_l_internal): Declare.
12986         * stdlib/strtod_l.c: Do not include <ieee754.h>.
12987         (____strtoull_l_internal): Remove declaration.
12988         (STRTOF_NAN): Define macro.
12989         (SET_MANTISSA): Remove macro.
12990         (STRTOULL): Likewise.
12991         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
12992         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
12993         (STRTOF_NAN): Define macro.
12994         (SET_MANTISSA): Remove macro.
12995         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
12996         (SET_MANTISSA): Remove macro.
12997         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
12998         macro.
12999         (SET_MANTISSA): Remove macro.
13000         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
13001         macro.
13002         (SET_MANTISSA): Remove macro.
13003         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
13004         (SET_MANTISSA): Remove macro.
13005         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
13006         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
13007         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
13008
13009         [BZ #19266]
13010         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
13011         upper case and lower case letters inside NAN(), not using TOLOWER.
13012         * stdlib/tst-strtod-nan-locale-main.c: New file.
13013         * stdlib/tst-strtod-nan-locale.c: Likewise.
13014         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
13015         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
13016         Depend on $(gen-locales).
13017         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
13018         * wcsmbs/tst-wcstod-nan-locale.c: New file.
13019         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
13020         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
13021         Depend on $(gen-locales).
13022         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
13023
13024 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
13025
13026         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
13027
13028         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
13029         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
13030         __finitel, __isinfl, and __isnanl.
13031         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
13032         Likewise.
13033         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13034         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
13035         __finitel.
13036         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13037         Likewise.
13038         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13039
13040 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
13041
13042         * malloc/memusage.c (me): Remove redundant getenv call.
13043
13044 2015-10-24  Florian Weimer  <fweimer@redhat.com>
13045
13046         [BZ #19143]
13047         [BZ #19164]
13048         * nptl/check-cpuset.h: Remove.
13049         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
13050         Remove CPU set size check.
13051         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
13052         Likewise.
13053         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
13054         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
13055         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
13056         (__pthread_setaffinity_new): Remove CPU set size check.
13057         * sysdeps/unix/sysv/linux/sched_setaffinity.c
13058         (__kernel_cpumask_size): Remove.
13059         (__sched_setaffinity_new): Remove CPU set size check.
13060         * manual/threads.texi (Default Thread Attributes): Remove stale
13061         reference to check_cpuset_attr, determine_cpumask_size in comment.
13062         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
13063         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
13064         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
13065         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
13066         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
13067         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
13068         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
13069         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
13070         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
13071         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
13072         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
13073         skeleton test file.
13074         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
13075         tst-affinity-pid.
13076
13077 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13078
13079         * scripts/update-abilist.sh: New file.
13080         * Makefile (+subdir_targets): Add subdir_update-all-abi.
13081         * Makerules (update-all-abi-%, update-all-abi)
13082         (subdir_update-all-abi): New targets.
13083         * elf/Makefile (update-all-abi): New target.
13084
13085 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13086
13087         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
13088         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
13089         (__libc_lock_define_initialized): Use it.
13090         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
13091         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
13092         * malloc/malloc.c (main_arena): Likewise.
13093         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13094         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13095
13096 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
13097
13098         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13099         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
13100         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13101         (PTRACE_O_MASK): Update value.
13102         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
13103         New value in enum __ptrace_setoptions.
13104         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13105         (PTRACE_O_MASK): Update value.
13106         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13107         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13108         (PTRACE_O_MASK): Update value.
13109         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13110         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13111         (PTRACE_O_MASK): Update value.
13112         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13113         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13114         (PTRACE_O_MASK): Update value.
13115         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
13116         New value in enum __ptrace_setoptions.
13117         (PTRACE_O_MASK): Update value.
13118         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
13119         New value in enum __ptrace_setoptions.
13120         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13121         (PTRACE_O_MASK): Update value.
13122
13123         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
13124         New macro.
13125         (PACKET_AUXDATA): Likewise.
13126         (PACKET_ORIGDEV): Likewise.
13127         (PACKET_VERSION): Likewise.
13128         (PACKET_HDRLEN): Likewise.
13129         (PACKET_RESERVE): Likewise.
13130         (PACKET_TX_RING): Likewise.
13131         (PACKET_LOSS): Likewise.
13132         (PACKET_VNET_HDR): Likewise.
13133         (PACKET_TX_TIMESTAMP): Likewise.
13134         (PACKET_TIMESTAMP): Likewise.
13135         (PACKET_FANOUT): Likewise.
13136         (PACKET_TX_HAS_OFF): Likewise.
13137         (PACKET_QDISC_BYPASS): Likewise.
13138         (PACKET_ROLLOVER_STATS): Likewise.
13139         (PACKET_FANOUT_DATA): Likewise.
13140         (PACKET_MR_UNICAST): Likewise.
13141
13142         [BZ #19242]
13143         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
13144         (TOUPPER): Likewise.
13145         * stdlib/tst-strtol-locale-main.c: New file.
13146         * stdlib/tst-strtol-locale.c: Likewise.
13147         * stdlib/Makefile (tests): Add tst-strtol-locale.
13148         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
13149         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
13150         Depend on $(gen-locales).
13151         * wcsmbs/tst-wcstol-locale.c: New file.
13152         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
13153         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
13154         tr_TR.ISO-8859-9.
13155         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
13156         Depend on $(gen-locales).
13157
13158 2015-11-20  Roland McGrath  <roland@hack.frob.com>
13159
13160         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
13161         __glibc_likely instead of __builtin_expect.  After falling back to
13162         dyncode_create in a non-ET_DYN case, use the allocate_code_data
13163         system interface to register the code pages as occupied.
13164
13165 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
13166
13167         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13168         [!ARM_MATH_PRIVATE_H].
13169         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
13170         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13171         [!HPPA_MATH_PRIVATE_H].
13172         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
13173         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
13174         to [!I386_MATH_PRIVATE_H].
13175         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
13176         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
13177         Change guard to [!M68K_MATH_PRIVATE_H].
13178         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
13179         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
13180         guard to [!MICROBLAZE_MATH_PRIVATE_H].
13181         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
13182         macro.
13183         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13184         [!MIPS_MATH_PRIVATE_H].
13185         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
13186         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13187         [!NIO2_MATH_PRIVATE_H].
13188         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
13189         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13190         [!TILE_MATH_PRIVATE_H].
13191         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
13192
13193         [BZ #15421]
13194         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
13195         initialize with 0 and define as weak alias of __signgam.
13196         * include/math.h [!_ISOMAC] (__signgam): Declare.
13197         * math/Makefile (libm-calls): Add w_lgamma_compat.
13198         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
13199         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
13200         test-signgam-ullong-init.
13201         (tests-static): Add test-signgam-uchar-static,
13202         test-signgam-uchar-init-static, test-signgam-uint-static,
13203         test-signgam-uint-init-static, test-signgam-ullong-static and
13204         test-signgam-ullong-init-static.
13205         (CFLAGS-test-signgam-uchar.c): New variable.
13206         (CFLAGS-test-signgam-uchar-init.c): Likewise.
13207         (CFLAGS-test-signgam-uchar-static.c): Likewise.
13208         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
13209         (CFLAGS-test-signgam-uint.c): Likewise.
13210         (CFLAGS-test-signgam-uint-init.c): Likewise.
13211         (CFLAGS-test-signgam-uint-static.c): Likewise.
13212         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
13213         (CFLAGS-test-signgam-ullong.c): Likewise.
13214         (CFLAGS-test-signgam-ullong-init.c): Likewise.
13215         (CFLAGS-test-signgam-ullong-static.c): Likewise.
13216         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
13217         * math/Versions (libm): Add GLIBC_2.23.
13218         * math/lgamma-compat.h: New file.
13219         * math/test-signgam-main.c: Likewise.
13220         * math/test-signgam-uchar-init-static.c: Likewise.
13221         * math/test-signgam-uchar-init.c: Likewise.
13222         * math/test-signgam-uchar-static.c: Likewise.
13223         * math/test-signgam-uchar.c: Likewise.
13224         * math/test-signgam-uint-init-static.c: Likewise.
13225         * math/test-signgam-uint-init.c: Likewise.
13226         * math/test-signgam-uint-static.c: Likewise.
13227         * math/test-signgam-uint.c: Likewise.
13228         * math/test-signgam-ullong-init-static.c: Likewise.
13229         * math/test-signgam-ullong-init.c: Likewise.
13230         * math/test-signgam-ullong-static.c: Likewise.
13231         * math/test-signgam-ullong.c: Likewise.
13232         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
13233         wrapper of w_lgamma_main.c.
13234         * math/w_lgamma_compat.c: New file.
13235         * math/w_lgamma_compatf.c: Likewise.
13236         * math/w_lgamma_compatl.c: Likewise.
13237         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
13238         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13239         defining compatibility symbols.
13240         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
13241         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
13242         wrapper of w_lgammaf_main.c.
13243         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
13244         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13245         defining compatibility symbols.
13246         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
13247         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
13248         wrapper of w_lgammal_main.c.
13249         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
13250         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13251         defining compatibility symbols.
13252         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
13253         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
13254         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
13255         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
13256         <lgamma-compat.h>.
13257         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
13258         (__ieee754_gamma): Define as alias.
13259         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
13260         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
13261         <lgamma-compat.h>.
13262         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
13263         (__ieee754_gammaf): Define as alias.
13264         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
13265         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
13266         <lgamma-compat.h>.
13267         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
13268         (__ieee754_gammal): Define as alias.
13269         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
13270         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
13271         <math/w_lgamma_compat.c>.
13272         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
13273         Define as alias of __lgamma_compat and use in defining lgammal.
13274         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
13275         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
13276         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
13277         (USE_AS_COMPAT): New macro.
13278         (LGAMMA_OLD_VER): Undefine and redefine.
13279         (lgammal): Do not define here.
13280         (gammal): Only define here if [GAMMA_ALIAS].
13281         * conform/linknamespace.pl (@whitelist): Remove signgam.
13282         * sysdeps/nacl/libm.abilist: Update.
13283         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13284         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13285         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13286         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13287         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13288         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13289         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13290         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13291         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13292         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13293         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13294         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13296         Likewise.
13297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13298         Likewise.
13299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13300         Likewise.
13301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13302         Likewise.
13303         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13304         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13305         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13306         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13307         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13308         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13309         Likewise.
13310         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13311         Likewise.
13312         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13313         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13314         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13315
13316 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13317
13318         [BZ #16364]
13319         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
13320         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
13321
13322 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13323
13324         * sysdeps/s390/fpu/bits/mathinline.h:
13325         Use __asm__ [__volatile__] instead of asm [volatile].
13326         * sysdeps/s390/abort-instr.h: Likewise.
13327         * sysdeps/s390/atomic-machine.h: Likewise.
13328         * sysdeps/s390/bits/string.h: Likewise.
13329         * sysdeps/s390/dl-tls.h: Likewise.
13330         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13331         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13332         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13333         * sysdeps/s390/fpu/fesetround.c: Likewise.
13334         * sysdeps/s390/fpu/fpu_control.h: Likewise.
13335         * sysdeps/s390/fpu/s_fma.c: Likewise.
13336         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
13337         * sysdeps/s390/memusage.h: Likewise.
13338         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
13339         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
13340         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
13341         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
13342         * sysdeps/s390/nptl/tls.h: Likewise.
13343         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
13344         * sysdeps/s390/s390-32/backtrace.c: Likewise.
13345         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13346         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
13347         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13348         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
13349         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
13350         * sysdeps/s390/s390-64/backtrace.c: Likewise.
13351         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13352         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
13353         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13354         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13355         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13356         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
13357         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13358         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13359         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
13360         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
13361         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
13362         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13363         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
13364         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13365         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
13366
13367 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13368             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13369
13370         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
13371         Add lwarx hint, and use macro for acquire instruction.
13372         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
13373         Likewise.
13374         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
13375         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
13376         update to use new atomic macros.
13377
13378 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13379
13380         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13381         (__lll_trylock_elision): Fix setting of adapt_count.
13382         * sysdeps/unix/sysv/linux/powerpc/htm.h
13383         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
13384         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
13385         (_ABORT_SYSCALL): Renumber, and clarify definition.
13386         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
13387
13388 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13389
13390         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
13391         after system headers to prevent MIN/MAX redefinition.  Define
13392         HAVE_ALLOCA to preserve builtin alloca usage.
13393
13394 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13395
13396         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
13397         static and don't set or restore rounding.
13398         (__cos)[IN_SINCOS]: Likewise.
13399         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
13400         (__sincos): Set and restore rounding mode.  Remove check for infinite
13401         or NaN input.
13402
13403         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
13404
13405         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
13406         as used.
13407
13408 2015-11-16  Florian Weimer  <fweimer@redhat.com>
13409
13410         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
13411
13412 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13413
13414         * config.make.in (have-glob-dat-reloc): New.
13415         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
13416         target supports GLOB_DAT relocaton. AC_SUBST.
13417         * configure: Regenerated.
13418         * elf/Makefile (tests): Add tst-prelink.
13419         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13420         (tst-prelink-ENV): New.
13421         ($(objpfx)tst-prelink-conflict.out): Likewise.
13422         ($(objpfx)tst-prelink-cmp.out): Likewise.
13423         * sysdeps/x86/tst-prelink.c: Moved to ...
13424         * elf/tst-prelink.c: Here.
13425         * sysdeps/x86/tst-prelink.exp: Moved to ...
13426         * elf/tst-prelink.exp: Here.
13427         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
13428         (tst-prelink-ENV): Removed.
13429         ($(objpfx)tst-prelink-conflict.out): Likewise.
13430         ($(objpfx)tst-prelink-cmp.out): Likewise.
13431         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
13432
13433 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
13434
13435         [BZ #14551]
13436         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
13437         (__mpn_construct_long_double): If high part overflows to infinity,
13438         set errno and recompute overflowed result of the correct sign.
13439         * sysdeps/ieee754/ldbl-128ibm/Makefile
13440         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
13441         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
13442         $(libm).
13443         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
13444
13445 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
13446
13447         [BZ #15479]
13448         [BZ #19238]
13449         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
13450         floating-point state after first operation on input.  Restore full
13451         state rather than just rounding mode.
13452         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
13453         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
13454         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
13455
13456         [BZ #19235]
13457         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
13458         add 0.5 to integer arguments.
13459         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
13460         Likewise.
13461         (.LC2): New object.
13462
13463 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
13464
13465         * scripts/pylintrc (reports): Set to no.
13466
13467 2015-11-10  Roland McGrath  <roland@hack.frob.com>
13468
13469         * elf/dl-load.c (open_verify): Take new argument FD.
13470         Skip __open call if passed FD is not -1.
13471         (_dl_map_object, open_path): Update callers.
13472         * elf/dl-sysdep-open.h: New file.
13473         * elf/dl-load.c: Include it.
13474         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
13475         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
13476         * sysdeps/nacl/dl-sysdep-open.h: New file.
13477         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
13478         from libc to rtld.
13479
13480 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13481
13482         [BZ #19228]
13483         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
13484         and restore full floating-point state.
13485         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
13486         Likewise.
13487         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
13488         Likewise.
13489         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
13490         Likewise.
13491         * math/test-nearbyint-except-2.c: New file.
13492         * math/Makefile (tests): Add test-nearbyint-except-2.
13493
13494 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
13495
13496         [BZ #19178]
13497         * sysdeps/x86/Makefile (tests): Add tst-prelink.
13498         (tst-prelink-ENV): New.
13499         ($(objpfx)tst-prelink-conflict.out): Likewise.
13500         ($(objpfx)tst-prelink-cmp.out): Likewise.
13501         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13502         * sysdeps/x86/tst-prelink.c: New file.
13503         * sysdeps/x86/tst-prelink.exp: Likewise.
13504
13505 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13506
13507         * math/auto-libm-test-in: Add another test of pow.
13508         * math/auto-libm-test-out: Regenerated.
13509         * math/libm-test.inc (pow_test_data): Add another test.
13510
13511 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13512
13513         [BZ #19219]
13514         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
13515         weak_alias to nearbyintl.
13516
13517 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13518
13519         * sysdeps/aarch64/bits/string.h: New file.
13520         (_STRING_ARCH_unaligned): Define.
13521
13522 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13523
13524         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
13525         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
13526         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
13527         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
13528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
13529
13530 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
13531
13532         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
13533         for original name of the DSO.  Add it to the name list of the DSO
13534         if it is actually given.
13535         (_dl_map_object): Keep track of whether an audit module rewrote
13536         the file name.  If yes, pass the original name to
13537         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
13538         debugging is enabled, log the change of the file name.
13539         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
13540         _dl_map_object_from_fd.
13541         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
13542         * elf/tst-audit11.c: New file
13543         * elf/tst-auditmod11.c: New file.
13544         * elf/tst-audit11mod1.c: New file.
13545         * elf/tst-audit11mod2.c: New file.
13546         * elf/tst-audit11mod2.map: New file.
13547         * elf/tst-audit12.c: New file
13548         * elf/tst-auditmod12.c: New file.
13549         * elf/tst-audit12mod1.c: New file.
13550         * elf/tst-audit12mod2.c: New file.
13551         * elf/tst-audit12mod2.map: New file.
13552         * elf/tst-audit12mod3.c: New file.
13553
13554 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13555
13556         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
13557         Don't create weak aliases,
13558         because versioned symbols are created later.
13559         * sysdeps/s390/s390-32/setjmp.S
13560         (setjmp, _setjmp): Remove weak and rename to an unique name
13561         in SHARED case due to existing versioned symbols.
13562         * sysdeps/s390/s390-64/setjmp.S: Likewise.
13563         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
13564         (getcontext): Create weak alias only in non SHARED case.
13565         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
13566
13567 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13568
13569         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
13570         (__ASSUME_*_SYSCALL) Define new macros.
13571         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
13572         Remove socketcall syscalls.
13573         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
13574         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
13575         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
13576         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
13577         * sysdeps/unix/sysv/linux/send.c (__libc_send):
13578         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
13579
13580 2015-11-09  Florian Weimer  <fweimer@redhat.com>
13581
13582         [BZ #12926]
13583         Terminate process on invalid netlink response.
13584         * sysdeps/unix/sysv/linux/netlinkaccess.h
13585         (__netlink_assert_response): Declare.
13586         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
13587         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
13588         (sysdep_routines): Add netlink_assert_response.
13589         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
13590         __netlink_assert_response.
13591         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
13592         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
13593         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
13594         __netlink_assert_response.
13595
13596 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13597
13598         [BZ #19178]
13599         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
13600         (RTYPE_CLASS_PLT): Likewise.
13601         (RTYPE_CLASS_COPY): Likewise.
13602         (RTYPE_CLASS_TLS): Likewise.
13603         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
13604         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
13605         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
13606         DL_DEBUG_PRELINK.
13607
13608 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
13609
13610         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
13611         calls with argument -0.5.
13612         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
13613
13614         * configure.ac (libc_cv_z_nodelete): Remove configure test.
13615         (libc_cv_z_nodlopen): Likewise.
13616         (libc_cv_z_initfirst): Likewise.
13617         * configure: Regenerated.
13618
13619 2015-11-06  Florian Weimer  <fweimer@redhat.com>
13620
13621         Simplify abilist format to be line-based.
13622         * scripts/abilist.awk: Collect descriptors in the descs variable.
13623         (emit): Write descs variable and sort it
13624         externally, with sort.
13625         * sysdeps/**/*.abilist: Convert to new format.
13626
13627 2015-11-06  Mark Wielaard  <mjw@redhat.com>
13628
13629         [BZ #11460]
13630         * io/Makefile (routines): Add fts64.
13631         (tests): Add tst-fts and tst-fts-lfs.
13632         (CFLAGS-fts64.c): New.
13633         * io/Versions (GLIBC_2.23): New.
13634         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
13635         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
13636         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
13637         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
13638         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
13639         (FTSENT64): Likewise.
13640         (fts64_children): Likewise.
13641         (fts64_close): Likewise.
13642         (fts64_open): Likewise.
13643         (fts64_read): Likewise.
13644         (fts64_set): Likewise.
13645         * io/fts64.c: New file.
13646         * io/tst-fts.c: New test.
13647         * io/tst-fts-lfs.c: Likewise.
13648         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
13649         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
13650         fts64_set.
13651         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13652         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13653         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13654         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13655         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13656         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13657         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13658         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13659         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13660         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13661         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13662         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13663         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13665         Likewise.
13666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13667         Likewise.
13668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13670         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13671         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13672         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13673         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13674         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13675         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13677         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13678         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13679         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13680         * sysdeps/wordsize-64/fts.c: New file.
13681         * sysdeps/wordsize-64/fts64.c: Likewise.
13682         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
13683         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
13684         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
13685         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
13686
13687 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13688
13689         * math/libm-test.inc (NON_FINITE): New macro.
13690         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
13691         * math/gen-libm-test.pl (show_exceptions): Add argument
13692         $non_finite.
13693         (parse_args): Update call to show_exceptions.
13694         * math/test-math-finite.h: New file.
13695         * math/test-math-no-finite.h: Likewise.
13696         * math/test-double-finite.c: Likewise.
13697         * math/test-float-finite.c: Likewise.
13698         * math/test-ldouble-finite.c: Likewise.
13699         * math/test-double.c: Include "test-math-no-finite.h".
13700         * math/test-float.c: Include "test-math-no-finite.h".
13701         * math/test-ldouble.c: Include "test-math-no-finite.h".
13702         * math/test-math-inline.h (TEST_FINITE): New macro.
13703         * math/test-math-vector.h (TEST_FINITE): Likewise.
13704         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
13705         (libm-tests): Add test-float-finite and test-double-finite.
13706         ($(objpfx)test-float-finite.o): New dependency on
13707         $(objpfx)libm-test.stmp.
13708         ($(objpfx)test-double-finite.o): Likewise.
13709         ($(objpfx)test-ldouble-finite.o): Likewise.
13710         (libm-test-no-inline-cflags): New variable.
13711         (libm-test-finite-cflags): Likewise.
13712         (CFLAGS-test-float-finite.c): Likewise.
13713         (CFLAGS-test-double-finite.c): Likewise.
13714         (CFLAGS-test-ldouble-finite.c): Likewise.
13715         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
13716         (CFLAGS-test-double.c): Likewise.
13717         (CFLAGS-test-ldouble.c): Likewise.
13718
13719 2015-11-05  Roland McGrath  <roland@hack.frob.com>
13720
13721         * io/fcntl.c (__fcntl): Add ... to prototype.
13722         * misc/ioctl.c (__ioctl): Likewise.
13723         * misc/syscall.c (syscall): Likewise.
13724
13725 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13726
13727         * scripts/list-fixed-bugs.py: New file.
13728
13729         [BZ #19213]
13730         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
13731         returned for argument 1.
13732         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
13733         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
13734         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
13735         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
13736         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
13737         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
13738
13739         [BZ #19211]
13740         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
13741         __USE_XOPEN], not if [!__USE_ISOC99].
13742         (lgammaf): Likewise.
13743         (lgammal): Likewise.
13744         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
13745         (gammaf): Likewise.
13746         (gammal): Likewise.
13747         * math/test-signgam-finite-c11.c: New file.
13748         * math/test-signgam-finite-c99.c: Likewise.
13749         * math/test-signgam-finite.c: Likewise.
13750         * math/Makefile (tests): Add test-signgam-finite,
13751         test-signgam-finite-c99 and test-signgam-finite-c11.
13752         (CFLAGS-test-signgam-finite.c): New variable.
13753         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13754         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13755
13756         [BZ #19212]
13757         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
13758         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
13759         500].
13760         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
13761         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
13762         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
13763         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
13764         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
13765         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
13766         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
13767         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
13768         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
13769         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
13770
13771         [BZ #19209]
13772         * math/bits/math-finite.h (ldexp): Remove declaration.
13773         (ldexpf): Likewise.
13774         (ldexpl): Likewise.
13775
13776         [BZ #19205]
13777         * math/bits/math-finite.h (acosf): Condition declaration on
13778         [__USE_ISOC99].
13779         (acosl): Likewise.
13780         (acoshf): Likewise.
13781         (acoshl): Likewise.
13782         (asinf): Likewise.
13783         (asinl): Likewise.
13784         (atan2f): Likewise.
13785         (atan2l): Likewise.
13786         (atanhf): Likewise.
13787         (atanhl): Likewise.
13788         (coshf): Likewise.
13789         (coshl): Likewise.
13790         (expf): Likewise.
13791         (expl): Likewise.
13792         (fmodf): Likewise.
13793         (fmodl): Likewise.
13794         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
13795         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
13796         (j0l): Likewise.
13797         (y0f): Likewise.
13798         (y0l): Likewise.
13799         (j1f): Likewise.
13800         (j1l): Likewise.
13801         (y1f): Likewise.
13802         (y1l): Likewise.
13803         (jnf): Likewise.
13804         (jnl): Likewise.
13805         (ynf): Likewise.
13806         (ynl): Likewise.
13807         (lgammaf_r): Condition declaration on [__USE_ISOC99].
13808         (lgammal_r): Likewise.
13809         (__lgamma_r_finite): New declaration.
13810         (__lgammaf_r_finite): Likewise.
13811         (__lgammal_r_finite): Likewise.
13812         (lgamma): Use __lgamma_r_finite.
13813         (lgammaf): Condition definition on [__USE_ISOC99].  Use
13814         __lgammaf_r_finite.
13815         (lgammal): Condition definition on [__USE_ISOC99].  Use
13816         __lgammal_r_finite.
13817         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
13818         __lgamma_r_finite.
13819         (gammaf): Condition definition on [__USE_ISOC99].  Use
13820         __lgammaf_r_finite.
13821         (gammal): Condition definition on [__USE_ISOC99].  Use
13822         __lgammal_r_finite.
13823         (logf): Condition declaration on [__USE_ISOC99].
13824         (logl): Likewise.
13825         (log10f): Likewise.
13826         (log10l): Likewise.
13827         (ldexpf): Likewise.
13828         (ldexpl): Likewise.
13829         (powf): Likewise.
13830         (powl): Likewise.
13831         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
13832         __USE_ISOC99].
13833         (remainderf): Condition declaration on [__USE_ISOC99].
13834         (remainderl): Likewise.
13835         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
13836         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
13837         (scalbl): Likewise.
13838         (sinhf): Condition declaration on [__USE_ISOC99].
13839         (sinhl): Likewise.
13840         (sqrtf): Likewise.
13841         (sqrtl): Likewise.
13842
13843 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13844
13845         * sysdeps/arm/atomic-machine.h
13846         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13847         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13848         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
13849         Remove conditional code.
13850         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13851         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13852         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
13853         Change conditional to [__ASSEMBLER__].
13854         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13855         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
13856         [!__ASSEMBLER__].
13857         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
13858         code.
13859         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
13860         conditional macro definitions.
13861         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
13862         (__arch_compare_and_exchange_val_16_acq): Likewise.
13863         (__arch_compare_and_exchange_val_32_acq): Likewise.
13864         (atomic_exchange_and_add): Likewise.
13865         (atomic_add): Likewise.
13866         (atomic_add_negative): Likewise.
13867         (atomic_add_zero): Likewise.
13868         (atomic_bit_set): Likewise.
13869         (atomic_bit_test_set): Likewise.
13870         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
13871         code unconditional.
13872         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13873
13874         * math/test-math-errno.h: New file.
13875         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
13876         empty.
13877         (TEST_ERRNO): New macro.
13878         (TEST_EXCEPTIONS): Likewise.
13879         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
13880         (TEST_EXCEPTIONS): Likewise.
13881         * math/test-math-vector.h (TEST_ERRNO): Likewise.
13882         * math/test-double.c: Include "test-math-errno.h".
13883         * math/test-float.c: Likewise.
13884         * math/test-ldouble.c: Likewise.
13885         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
13886         code unconditional.
13887         (test_exceptions): Only run code if TEST_EXCEPTIONS.
13888         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
13889         unconditional.
13890         (test_errno): Only run code if TEST_ERRNO.
13891         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
13892
13893 2015-11-04  Florian Weimer  <fweimer@redhat.com>
13894
13895         * nptl/tst-once5.cc: Remove attribution.
13896
13897 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13898
13899         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
13900         sqrt, tan, tanh, y0, y1 and yn.
13901         * math/auto-libm-test-out: Regenerated.
13902         * math/libm-test.inc (scalb_test_data): Add more tests.
13903         (scalbn_test_data): Likewise.
13904         (scalbln_test_data): Likewise.
13905         (signbit_test_data): Likewise.
13906         (sin_test_data): Likewise.
13907         (sincos_test_data): Likewise.
13908         (sinh_test_data): Likewise.
13909         (sqrt_test_data): Likewise.
13910         (tan_test_data): Likewise.
13911         (tanh_test_data): Likewise.
13912         (tgamma_test_data): Likewise.
13913         (y0_test_data): Likewise.
13914         (y1_test_data): Likewise.
13915         (yn_test_data): Likewise.
13916         (significand_test_data): Likewise.
13917         * sysdeps/i386/fpu/libm-test-ulps: Update.
13918
13919 2015-11-03  David Kastrup  <dak@gnu.org>
13920
13921         [BZ #18604]
13922         * assert/assert.h (assert): Don't macro-expand failed assertion
13923         expression in error message.
13924         * malloc/malloc.c (assert): Likewise.
13925
13926 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
13927
13928         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
13929         test.
13930         * configure: Regenerated.
13931
13932 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
13933
13934         * math/libm-test.inc (modf_test_data): Add more tests.
13935         (nearbyint_test_data): Likewise.
13936         (nextafter_test_data): Likewise.
13937         (nexttoward_test_data): Likewise.
13938         (pow_test_data): Likewise.
13939         (remainder_test_data): Likewise.
13940         (remquo_test_data): Likewise.
13941         (rint_test_data): Likewise.
13942
13943         [BZ #19201]
13944         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
13945         Check for zero remainder in case of large exponents and ensure
13946         correct sign of result in that case.
13947         * math/libm-test.inc (remainder_test_data): Add more tests.
13948
13949         [BZ #6799]
13950         * math/s_nextafter.c: Include <errno.h>.
13951         (__nextafter): Set errno on overflow and underflow.
13952         * math/s_nexttowardf.c: Include <errno.h>.
13953         (__nexttowardf): Set errno on overflow and underflow.
13954         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
13955         (__nextafterl): Set errno on overflow and underflow.
13956         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
13957         (__nexttoward): Set errno on overflow and underflow.
13958         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
13959         (__nexttowardf): Set errno on overflow and underflow.
13960         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
13961         (__nextafterf): Set errno on overflow and underflow.
13962         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
13963         (__nextafterl): Set errno on overflow and underflow.
13964         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
13965         (__nexttoward): Set errno on overflow and underflow.
13966         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
13967         (__nexttowardf): Set errno on overflow and underflow.
13968         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
13969         (__nextafterl): Set errno on overflow and underflow.
13970         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
13971         (__nexttoward): Set errno on overflow and underflow.
13972         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
13973         (__nexttowardf): Set errno on overflow and underflow.
13974         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
13975         (__nexttoward): Set errno on overflow and underflow.
13976         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
13977         (__nexttowardf): Set errno on overflow and underflow.
13978         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
13979         (__nldbl_nexttowardf): Set errno on overflow and underflow.
13980         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
13981         (__nextafterl): Set errno on overflow and underflow.
13982         * math/libm-test.inc (nextafter_test_data): Do not allow errno
13983         setting to be missing on overflow.  Add more tests.
13984         (nexttoward_test_data): Likewise.
13985
13986         * configure.ac (libc_cv_initfini_array): Remove configure test.
13987         * configure: Regenerated.
13988
13989 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
13990
13991         [BZ #19189]
13992         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
13993         non-finite argument handle arguments with negative sign.
13994
13995         * math/libm-test.inc (j0_test_data): Do not test sign of zero
13996         result from infinite argument.
13997         (j1_test_data): Likewise.
13998         (jn_test_data): Likewise.
13999         (y0_test_data): Likewise.
14000         (y1_test_data): Likewise.
14001         (yn_test_data): Likewise.
14002
14003         [BZ #16171]
14004         * math/w_remainder.c (drem): Define as weak alias of __remainder.
14005         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
14006         * math/w_remainderf.c (dremf): Define as weak alias of
14007         __remainderf.
14008         * math/w_remainderl.c (dreml): Define as weak alias of
14009         __remainderl.
14010         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
14011         __remainder.
14012         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
14013         __remainderf.
14014         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
14015         __remainderl.
14016         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
14017         weak alias of remainderl.
14018         * sysdeps/ieee754/ldbl-opt/w_remainder.c
14019         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
14020         alias of __remainder.
14021         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
14022         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
14023         strong alias of __remainderl.
14024         (dreml): Use long_double_symbol.
14025         * math/Makefile (libm-calls): Remove w_drem.
14026         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
14027         (CFLAGS-nldbl-drem.c): Remove variable.
14028         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
14029         * math/w_drem.c: Remove file.
14030         * math/w_dremf.c: Likewise.
14031         * math/w_dreml.c: Likewise.
14032         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
14033         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
14034         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
14035
14036         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
14037         * sysdeps/i386/configure: Regenerated.
14038         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
14039         * sysdeps/x86_64/configure: Regenerated.
14040
14041         * configure.ac (libc_cv_asm_protected_directive): Remove configure
14042         test.
14043         (libc_cv_visibility_attribute): Likewise.
14044         (libc_cv_protected_data): Test unconditionally.
14045         (libc_cv_broken_visibility_attribute): Remove configure test.
14046         (libc_cv_have_sdata_section): Test unconditionally.
14047         * configure: Regenerated.
14048
14049         * include/libc-internal.h (libc_max_align_t): Remove typedef.
14050         * include/scratch_buffer.h: Include <stddef.h> instead of
14051         <libc-internal.h>.
14052         (struct scratch_buffer): Use max_align_t instead of
14053         libc_max_align_t.
14054
14055 2015-10-29  Florian Weimer  <fweimer@redhat.com>
14056
14057         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
14058         instead of extend_alloca.  Change control flow to avoid a goto.
14059         Remove assert which is trivially always true.
14060
14061 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14062
14063         [BZ #16068]
14064         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
14065         (FE_ALL_EXCEPT_X86): New macro.
14066         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14067         FE_ALL_EXCEPT.  Ensure precision control is included in
14068         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14069         handle "denormal operand exception" and clear FZ and DAZ bits.
14070         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
14071         (FE_ALL_EXCEPT_X86): New macro.
14072         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14073         FE_ALL_EXCEPT.  Ensure precision control is included in
14074         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14075         handle "denormal operand exception" and clear FZ and DAZ bits.
14076         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
14077         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
14078         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14079         test-fenv-x87 and test-fenv-sse-2.
14080         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
14081
14082         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
14083         * math/test-double.h (BUILD_COMPLEX): New macro.
14084         * math/test-float.h (BUILD_COMPLEX): Likewise.
14085         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
14086
14087         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
14088         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
14089         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
14090         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
14091         instead of DBL_DENORM_MIN in comment.
14092         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
14093         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14094         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
14095         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
14096         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
14097         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14098
14099 2015-10-28  Florian Weimer  <fweimer@redhat.com>
14100
14101         [BZ# 19048]
14102         * malloc/malloc.c (struct malloc_state): Update comment.  Add
14103         attached_threads member.
14104         (main_arena): Initialize attached_threads.
14105         * malloc/arena.c (list_lock): Update comment.
14106         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
14107         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
14108         (deattach_arena): New function.
14109         (_int_new_arena): Initialize arena reference count and deattach
14110         replaced arena.
14111         (get_free_list, reused_arena): Update reference count and deattach
14112         replaced arena.
14113         (arena_thread_freeres): Update arena reference count and only put
14114         unreferenced arenas on the free list.
14115
14116 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14117
14118         [BZ #19181]
14119         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
14120         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
14121         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
14122         * math/test-fenv-clear-main.c: New file.
14123         * math/test-fenv-clear.c: Likewise.
14124         * math/Makefile (tests): Add test-fenv-clear.
14125         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
14126         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14127         test-fenv-clear-sse.
14128         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
14129
14130         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
14131         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
14132         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
14133
14134 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14135
14136         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
14137         static libc.
14138
14139 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14140
14141         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
14142         test.
14143         * sysdeps/i386/configure: Regenerated.
14144         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
14145         test.
14146         * sysdeps/x86_64/configure: Regenerated.
14147         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
14148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14149         memset-avx2 unconditionally instead of conditionally on
14150         [$(config-cflags-avx2) = yes].
14151         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14152         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
14153         unconditional.
14154         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
14155         * sysdeps/x86_64/multiarch/memset_chk.S
14156         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
14157         to [IS_IN (libc) && SHARED].
14158
14159 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14160
14161         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
14162         configure test.
14163         * sysdeps/arm/configure: Regenerated.
14164         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
14165         Define variable if not already defined.
14166
14167         [BZ #17404]
14168         * sysdeps/mips/atomic-machine.h
14169         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
14170         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
14171         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14172
14173         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
14174         unconditional.
14175         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
14176         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14177         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
14178         unconditional.
14179         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14180         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
14181         unconditional.
14182         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14183         * stdlib/setenv.c
14184         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
14185         code unconditional.
14186         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
14187         Remove conditional code.
14188         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
14189         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
14190         unconditional.
14191         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14192         code.
14193         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
14194         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
14195         unconditional.
14196         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14197         code.
14198         * sysdeps/ieee754/ldbl-128/k_tanl.c
14199         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14200         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14201         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
14202         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14203         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14204         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
14205         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
14206         unconditional.
14207         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14208         code.
14209         * sysdeps/ieee754/ldbl-96/k_tanl.c
14210         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14211         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14212
14213         * nptl/tst-initializers1-c11.c: New file.
14214         * nptl/tst-initializers1-gnu11.c: Likewise.
14215         * nptl/Makefile (tests): Add these new tests.
14216         (CFLAGS-tst-initializers1-c11.c): New variable.
14217         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
14218
14219         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
14220         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
14221         instead of -std=gnu99.
14222         * configure.ac (systemtap): Test with -std=gnu11 instead of
14223         -std=gnu99.
14224         * configure: Regenerated.
14225         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
14226         in compilation command in comment.
14227
14228         * sysdeps/nptl/configure.ac: Remove file.
14229         * sysdeps/nptl/configure: Remove generated file.
14230         * configure.ac (libc_cv_forced_unwind): Do not substitute.
14231         * configure: Regenerated.
14232         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
14233         * config.make.in (have-forced-unwind): Remove variable.
14234         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14235         unconditional.
14236         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
14237         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
14238         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
14239         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
14240         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14241         unconditional.
14242
14243 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14244
14245         [BZ #19174]
14246         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
14247         .skip_lock_out_of_tbegin_retries.
14248         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
14249         (__lll_lock_elision): Likewise, and respect a value of
14250         try_tbegin <= 0.
14251
14252 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14253
14254         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
14255         statement.
14256
14257 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14258
14259         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
14260         variable.
14261         (test-xfail-ISO11/stdalign.h/conform): Likewise.
14262         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
14263
14264         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
14265         of -std=c1x -D_ISOC11_SOURCE.
14266
14267         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
14268         * configure: Regenerated.
14269         * manual/install.texi (Tools for Compilation): Document
14270         requirement for GCC 4.7 or later.
14271         * INSTALL: Regenerated.
14272
14273 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
14274
14275         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
14276         on CNT to a conditional jump to 'puntdata'.
14277
14278 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14279
14280         * configure.ac (libc_cv_gcc___thread): Remove configure test.
14281         (libc_cv_gcc_tls_model_attr): Likewise.
14282         * configure: Regenerated.
14283
14284         * configure.ac (libc_cv_need_minus_P): Remove configure test.
14285         * configure: Regenerated.
14286         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
14287
14288 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
14289
14290         * configure.ac (old_glibc_headers): Remove configure test.
14291         * configure: Regenerated.
14292         * config.make.in (old-glibc-headers): Remove variable.
14293         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
14294         (install): Remove dependency on remove-old-headers.
14295         (headers2_0): Remove variable.
14296         (remove-old-headers): Remove rule.
14297
14298         * configure.ac (libc_cv_dot_text): Remove configure test.
14299         (libc_cv_asm_set_directive): Use .text instead of
14300         ${libc_cv_dot_text} in configure test.
14301         * configure: Regenerated.
14302
14303 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14304
14305         [BZ #19168]
14306         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14307
14308 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14309
14310         * configure.ac (CXX): Clear the variable if the C++ toolchain does
14311         not support static linking.
14312         * configure: Regenerate.
14313
14314 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
14315
14316         * math/libm-test.inc (check_float_internal): Do not special-case
14317         errors up to 0.5 ulp.
14318
14319         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
14320         log2.
14321         * math/auto-libm-test-out: Regenerated.
14322         * math/libm-test.inc (MAX_EXP): New macro.
14323         (ilogb_test_data): Add more tests.
14324         (isfinite_test_data): Likewise.
14325         (isgreater_test_data): Likewise.
14326         (isgreaterequal_test_data): Likewise.
14327         (isinf_test_data): Likewise.
14328         (isless_test_data): Likewise.
14329         (islessequal_test_data): Likewise.
14330         (islessgreater_test_data): Likewise.
14331         (isnan_test_data): Likewise.
14332         (isnormal_test_data): Likewise.
14333         (issignaling_test_data): Likewise.
14334         (isunordered_test_data): Likewise.
14335         (j0_test_data): Likewise.
14336         (j1_test_data): Likewise.
14337         (jn_test_data): Likewise.
14338         (lgamma_test_data): Likewise.
14339         (log_test_data): Likewise.
14340         (log10_test_data): Likewise.
14341         (log1p_test_data): Likewise.
14342         (log2_test_data): Likewise.
14343         (logb_test_data): Likewise.
14344         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14345
14346         [BZ #18611]
14347         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
14348         avoid excess range and precision on underflow.
14349         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14350         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14351         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14352         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
14353         underflow.
14354         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14355         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14356         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14357         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14358         * math/auto-libm-test-in: Do not allow missing errno setting for
14359         tests of j1 and jn.
14360         * math/auto-libm-test-out: Regenerated.
14361
14362 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
14363
14364         [BZ #15491]
14365         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
14366         floating-point environment instead of clearing all exceptions.
14367         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14368         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
14369         merging in "invalid" exceptions from frndint.
14370         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14371         * math/test-nearbyint-except.c: New file.
14372         * math/Makefile (tests): Add test-nearbyint-except.
14373
14374 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
14375
14376         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
14377
14378         * sysdeps/tile/libm-test-ulps: Regenerated.
14379
14380 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14381
14382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
14383         (__NR_sync_file_range2): Assume it is always defined.
14384         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
14385         (__NR_sync_file_range): Assume it is always defined.
14386
14387 2015-10-22  Andreas Schwab  <schwab@suse.de>
14388
14389         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
14390         INTERNAL_SYSCALL_ERRNO.
14391         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
14392         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
14393         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14394         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
14395         Likewise.
14396         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14397
14398 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14399
14400         * io/tst-fcntl.c (fd): New static variable.
14401         (do_prepare): Open temporary file here....
14402         (do_test): ...not here.
14403
14404         * io/ftwtest-sh: Also trap on exit to remove temporary files.
14405
14406 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14407
14408         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
14409         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14410         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14411         Moved before "#ifdef __ASSEMBLER__".
14412
14413 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14414
14415         [BZ #19156]
14416         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
14417         arguments very close to 0.
14418
14419 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
14420
14421         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
14422         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
14423
14424 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14425
14426         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14427         New.  Defined for GCC 5 and above when not compiling for
14428         profiling.
14429         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14430
14431         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
14432         Renamed to ...
14433         (CFLAGS-epoll_pwait.o): This.
14434         (CFLAGS-mmap.c): Renamed to ...
14435         (CFLAGS-mmap.o): This.
14436         (CFLAGS-mmap64.c): Renamed to ...
14437         (CFLAGS-mmap64.o): This.
14438         (CFLAGS-epoll_pwait.os): New.
14439         (CFLAGS-mmap.os): Likewise.
14440         (CFLAGS-mmap64.os): Likewise.
14441         (CFLAGS-semtimedop.os): Likewise.
14442         (CFLAGS-semtimedop.c): Renamed to ...
14443         (CFLAGS-semtimedop.o): This.
14444
14445 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14446
14447         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
14448         warning message.
14449
14450 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14451
14452         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
14453         * Makefile ($(objpfx)c++-types-check.out): Filter out
14454         $(+gccwarn-c) instead of -Wstrict-prototypes.
14455
14456         * io/fts.c (fts_open): Convert to prototype-style function
14457         definition.
14458         * malloc/mcheck.c (mcheck): Likewise.
14459         (mcheck_pedantic): Likewise.
14460         * posix/regexec.c (re_search_2_stub): Likewise.  Use
14461         internal_function.
14462         (re_search_internal): Likewise.
14463         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
14464         prototype-style function definition.
14465         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14466         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14467         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
14468         (xdr_utmpptr): Likewise.
14469         (xdr_utmparr): Likewise.
14470         (xdr_utmpidle): Likewise.
14471         (xdr_utmpidleptr): Likewise.
14472         (xdr_utmpidlearr): Likewise.
14473
14474         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
14475         log, log10 and log2.
14476         * math/auto-libm-test-out: Regenerated.
14477         * math/libm-test.inc (fmod_test_data): Add more tests.
14478         (fpclassify_test_data): Likewise.
14479         (frexp_test_data): Likewise.
14480         (hypot_test_data): Likewise.
14481         (ilogb_test_data): Likewise.
14482
14483 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
14484
14485         * debug/fortify_fail.c (__fortify_fail): Convert to
14486         prototype-style function definition.  Use internal_function.
14487         * libio/genops.c (save_for_backup): Convert to prototype-style
14488         function definition.
14489         * libio/wgenops.c (save_for_wbackup): Likewise.
14490         * login/grantpt.c (grantpt): Likewise.
14491         * login/ptsname.c (ptsname): Likewise.
14492         (__ptsname_r): Likewise.
14493         * login/unlockpt.c (unlockpt): Likewise.
14494         * mach/msgserver.c (__mach_msg_server): Likewise.
14495         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
14496         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
14497         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
14498         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
14499         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
14500         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
14501         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
14502         Likewise.
14503         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
14504         internal_function.
14505         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
14506         prototype-style function definition.
14507         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
14508         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
14509         (__pthread_create_2_0): Likewise.
14510         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
14511         * nptl/register-atfork.c (__register_atfork): Likewise.
14512         * posix/glob.c (glob): Likewise.
14513         * posix/regcomp.c (re_comp): Likewise.
14514         * posix/regexec.c (re_exec): Likewise.
14515         * stdlib/add_n.c [__STDC__]: Make code unconditional.
14516         [!__STDC__]: Remove conditional code.
14517         * stdlib/cmp.c [__STDC__]: Make code unconditional.
14518         [!__STDC__]: Remove conditional code.
14519         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
14520         [!__STDC__]: Remove conditional code.
14521         * stdlib/divrem.c [__STDC__]: Make code unconditional.
14522         [!__STDC__]: Remove conditional code.
14523         * stdlib/lshift.c [__STDC__]: Make code unconditional.
14524         [!__STDC__]: Remove conditional code.
14525         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
14526         [!__STDC__]: Remove conditional code.
14527         * stdlib/mul.c [__STDC__]: Make code unconditional.
14528         [!__STDC__]: Remove conditional code.
14529         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
14530         [!__STDC__]: Remove conditional code.
14531         * stdlib/rshift.c [__STDC__]: Make code unconditional.
14532         [!__STDC__]: Remove conditional code.
14533         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
14534         function definition.
14535         (STRTOF): Likewise.
14536         * stdlib/strtod_l.c (__STRTOF): Likewise.
14537         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
14538         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
14539         (__strtol_l): Likewise.
14540         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
14541         [!__STDC__]: Remove conditional code.
14542         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
14543         definition.
14544         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14545         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14546         type.
14547         (__strcasecmp): Convert to prototype-style function definition.
14548         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
14549         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14550         type.
14551         (__strncasecmp): Convert to prototype-style function definition.
14552         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
14553         * sunrpc/xdr.c (xdr_union): Likewise.
14554         * sunrpc/xdr_array.c (xdr_array): Likewise.
14555         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
14556         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
14557         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
14558         Likewise.
14559         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
14560         Likewise.
14561         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
14562         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
14563         Likewise.
14564         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
14565         (LOCALE_PARAM_PROTO): Likewise.
14566         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
14567         argument type.
14568         (ut_argument_spec): Remove macro.
14569         (ut_argument_spec_iso): Rename to ut_argument_spec.
14570         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
14571         prototype-style function definition.
14572         (memcpy_uppcase): Likewise.
14573         (__strftime_internal): Likewise.
14574         (my_strftime): Likewise.
14575         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
14576         (LOCALE_PARAM_DECL): Likewise.
14577         [_LIBC] (LOCALE_PARAM): Include argument type.
14578         (__strptime_internal): Convert to prototype-style function
14579         definition.
14580         (strptime): Likewise.
14581         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14582         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14583         type.
14584         (__wcscasecmp): Convert to prototype-style function definition.
14585         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
14586         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14587         type.
14588         (__wcsncasecmp): Convert to prototype-style function definition.
14589
14590         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
14591         function definition.
14592         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14593         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14594         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
14595         * elf/dl-minimal.c (_itoa): Likewise.
14596         * hurd/hurdmalloc.c (malloc): Likewise.
14597         (free): Likewise.
14598         (realloc): Likewise.
14599         * inet/inet6_option.c (inet6_option_space): Likewise.
14600         (inet6_option_init): Likewise.
14601         (inet6_option_append): Likewise.
14602         (inet6_option_alloc): Likewise.
14603         (inet6_option_next): Likewise.
14604         (inet6_option_find): Likewise.
14605         * io/ftw.c (FTW_NAME): Likewise.
14606         (NFTW_NAME): Likewise.
14607         (NFTW_NEW_NAME): Likewise.
14608         (NFTW_OLD_NAME): Likewise.
14609         * libio/iofwide.c (_IO_fwide): Likewise.
14610         * libio/strops.c (_IO_str_init_static_internal): Likewise.
14611         (_IO_str_init_static): Likewise.
14612         (_IO_str_init_readonly): Likewise.
14613         (_IO_str_overflow): Likewise.
14614         (_IO_str_underflow): Likewise.
14615         (_IO_str_count): Likewise.
14616         (_IO_str_seekoff): Likewise.
14617         (_IO_str_pbackfail): Likewise.
14618         (_IO_str_finish): Likewise.
14619         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
14620         (_IO_wstr_overflow): Likewise.
14621         (_IO_wstr_underflow): Likewise.
14622         (_IO_wstr_count): Likewise.
14623         (_IO_wstr_seekoff): Likewise.
14624         (_IO_wstr_pbackfail): Likewise.
14625         (_IO_wstr_finish): Likewise.
14626         * locale/programs/localedef.c (normalize_codeset): Likewise.
14627         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14628         (add_locales_to_archive): Likewise.
14629         (delete_locales_from_archive): Likewise.
14630         * malloc/malloc.c (__libc_mallinfo): Likewise.
14631         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
14632         * misc/tsearch.c (__tfind): Likewise.
14633         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
14634         * nptl/pthread_attr_getdetachstate.c
14635         (__pthread_attr_getdetachstate): Likewise.
14636         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
14637         Likewise.
14638         * nptl/pthread_attr_getinheritsched.c
14639         (__pthread_attr_getinheritsched): Likewise.
14640         * nptl/pthread_attr_getschedparam.c
14641         (__pthread_attr_getschedparam): Likewise.
14642         * nptl/pthread_attr_getschedpolicy.c
14643         (__pthread_attr_getschedpolicy): Likewise.
14644         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
14645         Likewise.
14646         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
14647         Likewise.
14648         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
14649         Likewise.
14650         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
14651         Likewise.
14652         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
14653         (__pthread_attr_init_2_0): Likewise.
14654         * nptl/pthread_attr_setdetachstate.c
14655         (__pthread_attr_setdetachstate): Likewise.
14656         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
14657         Likewise.
14658         * nptl/pthread_attr_setinheritsched.c
14659         (__pthread_attr_setinheritsched): Likewise.
14660         * nptl/pthread_attr_setschedparam.c
14661         (__pthread_attr_setschedparam): Likewise.
14662         * nptl/pthread_attr_setschedpolicy.c
14663         (__pthread_attr_setschedpolicy): Likewise.
14664         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
14665         Likewise.
14666         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
14667         Likewise.
14668         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
14669         Likewise.
14670         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
14671         Likewise.
14672         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
14673         Likewise.
14674         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
14675         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14676         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
14677         use internal_function.
14678         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
14679         prototype-style function definition.
14680         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
14681         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
14682         internal_function.
14683         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
14684         Convert to prototype-style function definition.
14685         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
14686         Likewise.
14687         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
14688         Likewise.
14689         (__pthread_mutex_unlock): Likewise.
14690         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
14691         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
14692         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
14693         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
14694         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
14695         * nss/makedb.c (process_input): Likewise.
14696         * posix/fnmatch.c (__strchrnul): Likewise.
14697         (__wcschrnul): Likewise.
14698         (fnmatch): Likewise.
14699         * posix/fnmatch_loop.c (FCT): Likewise.
14700         * posix/glob.c (globfree): Likewise.
14701         (__glob_pattern_type): Likewise.
14702         (__glob_pattern_p): Likewise.
14703         * posix/regcomp.c (re_compile_pattern): Likewise.
14704         (re_set_syntax): Likewise.
14705         (re_compile_fastmap): Likewise.
14706         (regcomp): Likewise.
14707         (regerror): Likewise.
14708         (regfree): Likewise.
14709         * posix/regexec.c (regexec): Likewise.
14710         (re_match): Likewise.
14711         (re_search): Likewise.
14712         (re_match_2): Likewise.
14713         (re_search_2): Likewise.
14714         (re_search_stub): Likewise.  Use internal_function
14715         (re_copy_regs): Likewise.
14716         (re_set_registers): Convert to prototype-style function
14717         definition.
14718         (prune_impossible_nodes): Likewise.  Use internal_function.
14719         * resolv/inet_net_pton.c (inet_net_pton): Convert to
14720         prototype-style function definition.
14721         (inet_net_pton_ipv4): Likewise.
14722         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14723         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
14724         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
14725         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
14726         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
14727         Make variadic.
14728         * time/strptime_l.c (localtime_r): Convert to prototype-style
14729         function definition.
14730         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
14731         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
14732         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
14733         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
14734
14735         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
14736         definition.
14737         (_ufc_doit_r): Likewise.
14738         * crypt/crypt_util.c (_ufc_copymem): Likewise.
14739         (_ufc_output_conversion_r): Likewise.
14740         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
14741         * inet/rcmd.c (rcmd_af): Likewise.
14742         (rcmd): Likewise.
14743         (ruserok_af): Likewise.
14744         (ruserok): Likewise.
14745         (ruserok2_sa): Likewise.
14746         (ruserok_sa): Likewise.
14747         (iruserok_af): Likewise.
14748         (iruserok): Likewise.
14749         (__ivaliduser): Likewise.
14750         (__validuser2_sa): Likewise.
14751         * inet/rexec.c (rexec_af): Likewise.
14752         (rexec): Likewise.
14753         * inet/ruserpass.c (ruserpass): Likewise.
14754         * locale/programs/xmalloc.c (xcalloc): Likewise.
14755         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
14756         * math/w_drem.c (__drem): Likewise.
14757         * math/w_dremf.c (__dremf): Likewise.
14758         * math/w_dreml.c (__dreml): Likewise.
14759         * misc/daemon.c (daemon): Likewise.
14760         * resolv/res_debug.c (p_fqnname): Likewise.
14761         * stdlib/div.c (div): Likewise.
14762         * string/memcmp.c (memcmp_bytes): Likewise.
14763         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
14764         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
14765
14766         * crypt/cert.c (main): Convert to prototype-style function
14767         definition.
14768         * io/pipe.c (__pipe): Likewise.
14769         * io/pipe2.c (__pipe2): Likewise.
14770         * misc/futimesat.c (futimesat): Likewise.
14771         * misc/utimes.c (__utimes): Likewise.
14772         * posix/execve.c (__execve): Likewise.
14773         * posix/execvp.c (execvp): Likewise.
14774         * posix/execvpe.c (__execvpe): Likewise.
14775         * posix/fexecve.c (fexecve): Likewise.
14776         * socket/socketpair.c (socketpair): Likewise.
14777         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
14778         * stdlib/erand48.c (erand48): Likewise.
14779         * stdlib/erand48_r.c (__erand48_r): Likewise.
14780         * stdlib/jrand48.c (jrand48): Likewise.
14781         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
14782         * stdlib/lcong48.c (lcong48): Likewise.
14783         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
14784         * stdlib/nrand48.c (nrand48): Likewise.
14785         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
14786         * stdlib/seed48.c (seed48): Likewise.
14787         * stdlib/seed48_r.c (__seed48_r): Likewise.
14788         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
14789         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
14790         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
14791
14792 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14793
14794         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
14795         * configure: Regenerated.
14796         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
14797         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
14798         unconditional.
14799         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14800         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14801         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14802         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
14803         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
14804         unconditional.
14805         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14806
14807         * posix/Makefile (CFLAGS-regex.c): Remove variable.
14808         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
14809
14810         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
14811         function definition.
14812         * crypt/crypt_util.c (__encrypt_r): Likewise.
14813         * libio/genops.c (_IO_no_init): Likewise.
14814         * libio/iofopncook.c (_IO_fopencookie): Likewise.
14815         (_IO_old_fopencookie): Likewise.
14816         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14817         * libio/iogetline.c (_IO_getline): Likewise.
14818         (_IO_getline_info): Likewise.
14819         * libio/iogetwline.c (_IO_getwline): Likewise.
14820         (_IO_getwline_info): Likewise.
14821         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
14822         * libio/vswprintf.c (_IO_vswprintf): Likewise.
14823         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
14824         (find_entry): Likewise.
14825         (iterate_table): Likewise.
14826         (lookup): Likewise.
14827         * login/forkpty.c (forkpty): Likewise.
14828         * misc/hsearch_r.c (__hsearch_r): Likewise.
14829         * misc/select.c (__select): Likewise.
14830         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
14831         Likewise.
14832         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
14833         Likewise.
14834         * nptl/old_pthread_cond_timedwait.c
14835         (__pthread_cond_timedwait_2_0): Likewise.
14836         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
14837         * nptl/pthread_barrierattr_getpshared.c
14838         (pthread_barrierattr_getpshared): Likewise.
14839         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
14840         Likewise.
14841         * nptl/pthread_mutex_setprioceiling.c
14842         (pthread_mutex_setprioceiling): Likewise.
14843         * nptl/pthread_mutexattr_getprioceiling.c
14844         (pthread_mutexattr_getprioceiling): Likewise.
14845         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
14846         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14847         Likewise.
14848         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14849         Likewise.
14850         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
14851         Likewise.
14852         * socket/recvfrom.c (__recvfrom): Likewise.
14853         * socket/sendto.c (__sendto): Likewise.
14854         * socket/setsockopt.c (__setsockopt): Likewise.
14855         * stdio-common/_itoa.c (_itoa): Likewise.
14856         * stdio-common/_itowa.c (_itowa): Likewise.
14857         * stdio-common/reg-printf.c (__register_printf_specifier):
14858         Likewise.
14859         (__register_printf_function): Likewise.
14860         * stdio-common/tempname.c (__path_search): Likewise.
14861         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
14862         * stdlib/mul_1.c (mpn_mul_1): Likewise.
14863         * stdlib/random_r.c (__initstate_r): Likewise.
14864         * stdlib/setenv.c (__add_to_environ): Likewise.
14865         * stdlib/submul_1.c (mpn_submul_1): Likewise.
14866         * streams/getpmsg.c (getpmsg): Likewise.
14867         * streams/putmsg.c (putmsg): Likewise.
14868         * streams/putpmsg.c (putpmsg): Likewise.
14869         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
14870         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
14871         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
14872         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
14873         * sunrpc/pm_getport.c (pmap_getport): Likewise.
14874         * sunrpc/svc_udp.c (cache_get): Likewise.
14875         * sunrpc/xdr_array.c (xdr_vector): Likewise.
14876         * sysdeps/mach/hurd/getcwd.c
14877         (__canonicalize_directory_name_internal): Likewise.
14878         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
14879         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
14880         * sysdeps/mach/hurd/select.c (__select): Likewise.
14881         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
14882         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14883         * sysdeps/sparc/nptl/pthread_barrier_init.c
14884         (__pthread_barrier_init): Likewise.
14885         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
14886         (__pthread_cond_timedwait): Likewise.
14887         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
14888         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
14889         Likewise.
14890         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
14891         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
14892         Likewise.
14893         * sysvipc/semtimedop.c (semtimedop): Likewise.
14894         * time/setitimer.c (__setitimer): Likewise.
14895         * time/strftime_l.c (emacs_strftime): Likewise.
14896
14897 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14898
14899         * config.make.in (have-ssp): Delete.
14900         (stack-protector): New variable.
14901         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
14902         cache test for -fstack-protector-strong.  Export stack_protector to
14903         the best ssp flag.
14904         * configure: Regenerated.
14905         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
14906         * nscd/Makefile (CFLAGS-nscd): Likewise.
14907         * resolv/Makefile (CFLAGS-libresolv): Likewise.
14908
14909 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
14910
14911         [BZ #19122]
14912         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
14913         attribute_hidden.
14914
14915 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14916
14917         [BZ #18743]
14918         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
14919         code to...
14920         (ELIDE_LOCK): ...here.
14921         (__get_new_count): New function with part of the code from
14922         __elide_lock that updates the value of adapt_count after a
14923         transaction abort.
14924         (__elided_trylock): Moved this code to...
14925         (ELIDE_TRYLOCK): ...here.
14926
14927 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14928
14929         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
14930         * configure: Regenerate.
14931         * INSTALL: Regenerate.
14932         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
14933         and tweak grammar.
14934
14935 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
14936
14937         * login/programs/pt_chown.c: Include signal.h
14938         (main): Clear any signal mask from the parent process.
14939
14940 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14941
14942         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
14943         * configure: Regenerated.
14944         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
14945         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
14946         $(gnu89-inline-CFLAGS).
14947
14948         * configure.ac (libc_cv_asm_weak_directive): Remove configure
14949         test.
14950         (libc_cv_asm_weakext_directive): Likewise.
14951         * configure: Regenerated.
14952         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
14953         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
14954         * include/libc-symbols.h
14955         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
14956         #error.
14957         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
14958         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
14959
14960         * sysdeps/arm/backtrace.c (__backtrace): Convert to
14961         prototype-style function definition.
14962         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
14963         * sysdeps/i386/ffs.c (__ffs): Likewise.
14964         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14965         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
14966         Likewise.
14967         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14968         Likewise.
14969         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
14970         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
14971         Likewise.
14972         * sysdeps/m68k/ffs.c (__ffs): Likewise.
14973         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
14974         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
14975         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
14976         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
14977         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
14978         * sysdeps/mach/hurd/access.c (__access): Likewise.
14979         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
14980         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
14981         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
14982         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
14983         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
14984         (cthread_getspecific): Likewise.
14985         (cthread_setspecific): Likewise.
14986         (__libc_getspecific): Likewise.
14987         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
14988         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
14989         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
14990         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
14991         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
14992         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
14993         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
14994         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
14995         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
14996         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
14997         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
14998         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
14999         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
15000         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
15001         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
15002         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
15003         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
15004         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
15005         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
15006         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
15007         * sysdeps/mach/hurd/link.c (__link): Likewise.
15008         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
15009         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
15010         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
15011         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
15012         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
15013         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
15014         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
15015         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
15016         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15017         * sysdeps/mach/hurd/rename.c (rename): Likewise.
15018         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
15019         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
15020         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
15021         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
15022         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
15023         * sysdeps/mach/hurd/send.c (__send): Likewise.
15024         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
15025         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
15026         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
15027         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
15028         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
15029         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
15030         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
15031         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
15032         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
15033         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
15034         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
15035         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
15036         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
15037         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
15038         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
15039         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
15040         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
15041         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
15042         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
15043         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15044         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
15045         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
15046         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
15047         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
15048         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
15049         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
15050         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
15051         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
15052         * sysdeps/posix/alarm.c (alarm): Likewise.
15053         * sysdeps/posix/cuserid.c (cuserid): Likewise.
15054         * sysdeps/posix/dirfd.c (dirfd): Likewise.
15055         * sysdeps/posix/dup.c (__dup): Likewise.
15056         * sysdeps/posix/dup2.c (__dup2): Likewise.
15057         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
15058         (main): Likewise.
15059         * sysdeps/posix/flock.c (__flock): Likewise.
15060         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
15061         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
15062         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
15063         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
15064         * sysdeps/posix/isatty.c (__isatty): Likewise.
15065         * sysdeps/posix/killpg.c (killpg): Likewise.
15066         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15067         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
15068         * sysdeps/posix/raise.c (raise): Likewise.
15069         * sysdeps/posix/remove.c (remove): Likewise.
15070         * sysdeps/posix/rename.c (rename): Likewise.
15071         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
15072         * sysdeps/posix/seekdir.c (seekdir): Likewise.
15073         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
15074         * sysdeps/posix/sigignore.c (sigignore): Likewise.
15075         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
15076         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15077         * sysdeps/posix/sigset.c (sigset): Likewise.
15078         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
15079         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
15080         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
15081         * sysdeps/posix/time.c (time): Likewise.
15082         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15083         (ttyname): Likewise.
15084         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
15085         * sysdeps/posix/utime.c (utime): Likewise.
15086         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
15087         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
15088         Likewise.
15089         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
15090         (pthread_spin_trylock): Likewise.
15091         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
15092         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
15093         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
15094         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
15095         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
15096         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
15097         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
15098         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
15099         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
15100         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
15101         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
15102         * sysdeps/s390/ffs.c (__ffs): Likewise.
15103         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
15104         Likewise.
15105         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15106         Likewise.
15107         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
15108         Likewise.
15109         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
15110         (pthread_barrier_destroy): Likewise.
15111         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15112         (__pthread_barrier_wait): Likewise.
15113         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
15114         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15115         (__pthread_barrier_wait): Likewise.
15116         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
15117         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
15118         (memcmp_not_common_alignment): Likewise.
15119         (MEMCMP): Likewise.
15120         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
15121         (_wordcopy_fwd_dest_aligned): Likewise.
15122         (_wordcopy_bwd_aligned): Likewise.
15123         (_wordcopy_bwd_dest_aligned): Likewise.
15124         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
15125         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
15126         * sysdeps/unix/bsd/stty.c (stty): Likewise.
15127         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
15128         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
15129         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
15130         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
15131         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
15132         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
15133         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
15134         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
15135         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
15136         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
15137         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
15138         * sysdeps/unix/stime.c (stime): Likewise.
15139         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
15140         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
15141         Likewise.  Use internal_function.
15142         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
15143         Convert to prototype-style function definition.
15144         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
15145         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
15146         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
15147         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15148         Likewise.  Use internal_function.
15149         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
15150         prototype-style function definition
15151         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15152         Likewise.
15153         (__getlogin_r): Likewise.
15154         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
15155         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
15156         (__pthread_cond_broadcast): Likewise.
15157         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
15158         (__pthread_cond_destroy): Likewise.
15159         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
15160         (__pthread_cond_init): Likewise.
15161         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
15162         (__pthread_cond_signal): Likewise.
15163         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
15164         (__pthread_cond_wait): Likewise.
15165         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
15166         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
15167         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
15168         Likewise.
15169         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
15170         Likewise.
15171         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
15172         Likewise.
15173         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
15174         Likewise.
15175         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
15176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
15177         (__ftruncate64): Likewise.
15178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
15179         (truncate64): Likewise.
15180         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
15181         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
15182         (pthread_getcpuclockid): Likewise.
15183         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
15184         Likewise.
15185         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
15186         Likewise.
15187         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
15188         Likewise.
15189         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
15190         Likewise.
15191         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
15192         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
15193         (__libc_sigaction): Likewise.
15194         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
15195         Likewise.
15196         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
15197         (__sigprocmask): Likewise.
15198         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
15199         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
15200         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
15201         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
15202         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
15203         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
15204         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
15205         Likewise.
15206         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
15207         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
15208         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
15209         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
15210         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
15211         Likewise.
15212         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
15213         (__sigprocmask): Likewise.
15214         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
15215         (cfgetispeed): Likewise.
15216         (cfsetospeed): Likewise.
15217         (cfsetispeed): Likewise.
15218         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
15219         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
15220         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
15221         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
15222         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
15223         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
15224         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
15225         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
15226         Likewise.
15227         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
15228         Likewise.
15229         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
15230         Likewise.
15231         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
15232         Likewise.
15233         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
15234
15235 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15236
15237         sunrpc: Rewrite with explicit TLS access using __thread.
15238         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
15239         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
15240         directly.
15241         (__rpc_thread_variables): Access thread_rpc_vars directly.
15242         Eliminate redundant assignment of the tvp variable.
15243
15244 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15245
15246         malloc: Rewrite with explicit TLS access using __thread.
15247         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
15248         (tsd_setspecific, tsd_getspecific): Remove.
15249         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
15250         (tsd_setspecific, tsd_getspecific): Likewise.
15251         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
15252         (tsd_setspecific, tsd_getspecific): Likewise.
15253         * malloc/arena.c (thread_arena): New TLS variable.
15254         (arena_key): Remove variable.
15255         (arena_get): Use thread_arena.
15256         (arena_lookup): Remove macro.
15257         (malloc_atfork, free_atfork, ptmalloc_lock_all)
15258         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
15259         (_int_new_arena, get_free_list, reused_arena)
15260         (arena_thread_freeres): Use thread_arena.
15261         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
15262         tsd_getspecific, tsd_setspecific from safety annotations.
15263         (Allocating Cleared Space): Remove arena_lookup from safety
15264         annotations.
15265
15266 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15267
15268         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
15269         struct scratch_buffer instead of extend_alloca.
15270
15271 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15272
15273         * sysdeps/unix/sysv/linux/kernel-features.h
15274         (__ASSUME_SOCK_CLOEXEC): Remove.
15275         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
15276         (__have_paccept): Remove unused macro.
15277         * include/unistd.h (__have_sock_cloexec): Remove declaration.
15278         * misc/syslog.c (openlog_internal): Remove fallback code for
15279         !__ASSUME_SOCK_CLOEXEC.
15280         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
15281         missing SOCK_CLOEXEC.
15282         * nscd/connections.c (have_sock_cloexec): Remove definition.
15283         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15284         * nscd/nscd_helper.c (open_socket): Remove fallback code for
15285         !__ASSUME_SOCK_CLOEXEC.
15286         * resolv/res_send.c (__have_o_nonblock): Remove definition.
15287         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15288         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
15289         definition.
15290         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
15291         code for !__ASSUME_SOCK_CLOEXEC.
15292
15293 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15294
15295         [BZ #18982]
15296         * manual/stdio.texi (Variable Arguments Output): Add portability
15297         note, explaining that vfprintf clobbers the va_list pointer.
15298
15299 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15300
15301         * math/libm-test.inc (fabs_test_data): Add more tests.
15302         (fdim_test_data): Likewise.
15303         (fma_test_data): Likewise.
15304         (fmax_test_data): Likewise.
15305         (fmin_test_data): Likewise.
15306         (fmod_test_data): Likewise.
15307
15308 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
15309
15310         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
15311         data.
15312
15313 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15314
15315         * math/libm-test.inc (ceil_test_data): Add more tests and more
15316         expectations for "inexact".
15317         (floor_test_data): Add more tests.
15318         (round_test_data): Likewise.
15319         (trunc_test_data): Likewise.
15320
15321         * crypt/cert.c (good_bye): Convert to prototype-style function
15322         definition.
15323         (get8): Likewise.
15324         (put8): Likewise.
15325         * crypt/crypt-entry.c (crypt): Likewise.
15326         (__fcrypt): Likewise.
15327         * crypt/crypt_util.c (_ufc_prbits): Likewise.
15328         (_ufc_set_bits): Likewise.
15329         (_ufc_clearmem): Likewise.
15330         (__init_des_r): Likewise.
15331         (shuffle_sb): Likewise.
15332         (shuffle_sb): Likewise.
15333         (_ufc_setup_salt_r): Likewise.
15334         (_ufc_mk_keytab_r): Likewise.
15335         (_ufc_dofinalperm_r): Likewise.
15336         (encrypt): Likewise.
15337         (__setkey_r): Likewise.
15338         (setkey): Likewise.
15339         * crypt/md5.c (md5_init_ctx): Likewise.
15340         (md5_read_ctx): Likewise.
15341         (md5_finish_ctx): Likewise.
15342         (md5_stream): Likewise.
15343         (md5_buffer): Likewise.
15344         (md5_process_bytes): Likewise.
15345         * crypt/sha256.c (__sha256_init_ctx): Likewise.
15346         (__sha256_finish_ctx): Likewise.
15347         (__sha256_process_bytes): Likewise.
15348         * crypt/sha512.c (__sha512_init_ctx): Likewise.
15349         (__sha512_finish_ctx): Likewise.
15350         (__sha512_process_bytes): Likewise.
15351         * ctype/isctype.c (__isctype): Likewise.
15352         * debug/backtrace.c (__backtrace): Likewise.
15353         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
15354         * debug/fgets_chk.c (__fgets_chk): Likewise.
15355         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
15356         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
15357         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
15358         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
15359         * debug/memset_chk.c (__memset_chk): Likewise.
15360         * debug/strcat_chk.c (__strcat_chk): Likewise.
15361         * debug/strncat_chk.c (__strncat_chk): Likewise.
15362         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
15363         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
15364         * dirent/dirfd.c (dirfd): Likewise.
15365         * dirent/getdents.c (__getdirentries): Likewise.
15366         * dirent/getdents64.c (getdirentries64): Likewise.
15367         * dirent/rewinddir.c (__rewinddir): Likewise.
15368         * dirent/seekdir.c (seekdir): Likewise.
15369         * dirent/telldir.c (telldir): Likewise.
15370         * elf/sln.c (makesymlinks): Likewise.
15371         (makesymlink): Likewise.
15372         * gmon/gmon.c (__moncontrol): Likewise.
15373         (__monstartup): Likewise.
15374         (write_hist): Likewise.
15375         (write_call_graph): Likewise.
15376         (write_bb_counts): Likewise.
15377         * grp/setgroups.c (setgroups): Likewise.
15378         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15379         * inet/inet_net.c (inet_network): Likewise.
15380         * inet/inet_netof.c (inet_netof): Likewise.
15381         * inet/rcmd.c (rresvport_af): Likewise.
15382         (rresvport): Likewise.
15383         * io/access.c (__access): Likewise.
15384         * io/chdir.c (__chdir): Likewise.
15385         * io/chmod.c (__chmod): Likewise.
15386         * io/chown.c (__chown): Likewise.
15387         * io/close.c (__close): Likewise.
15388         * io/creat.c (creat): Likewise.
15389         * io/creat64.c (creat64): Likewise.
15390         * io/dup.c (__dup): Likewise.
15391         * io/dup2.c (__dup2): Likewise.
15392         * io/dup3.c (__dup3): Likewise.
15393         * io/euidaccess.c (__euidaccess): Likewise.
15394         * io/faccessat.c (faccessat): Likewise.
15395         * io/fchmod.c (__fchmod): Likewise.
15396         * io/fchmodat.c (fchmodat): Likewise.
15397         * io/fchown.c (__fchown): Likewise.
15398         * io/fchownat.c (fchownat): Likewise.
15399         * io/fcntl.c (__fcntl): Likewise.
15400         * io/flock.c (__flock): Likewise.
15401         * io/fts.c (fts_load): Likewise.
15402         (fts_close): Likewise.
15403         (fts_read): Likewise.
15404         (fts_set): Likewise.
15405         (fts_children): Likewise.
15406         (fts_build): Likewise.
15407         (fts_stat): Likewise.
15408         (fts_sort): Likewise.
15409         (fts_alloc): Likewise.
15410         (fts_lfree): Likewise.
15411         (fts_palloc): Likewise.
15412         (fts_padjust): Likewise.
15413         (fts_maxarglen): Likewise.
15414         (fts_safe_changedir): Likewise.
15415         * io/getwd.c (getwd): Likewise.
15416         * io/isatty.c (__isatty): Likewise.
15417         * io/lchown.c (__lchown): Likewise.
15418         * io/link.c (__link): Likewise.
15419         * io/linkat.c (linkat): Likewise.
15420         * io/lseek.c (__libc_lseek): Likewise.
15421         * io/mkdir.c (__mkdir): Likewise.
15422         * io/mkdirat.c (mkdirat): Likewise.
15423         * io/mkfifo.c (mkfifo): Likewise.
15424         * io/mkfifoat.c (mkfifoat): Likewise.
15425         * io/open.c (__libc_open): Likewise.
15426         * io/open64.c (__libc_open64): Likewise.
15427         * io/readlink.c (__readlink): Likewise.
15428         * io/readlinkat.c (readlinkat): Likewise.
15429         * io/rmdir.c (__rmdir): Likewise.
15430         * io/symlink.c (__symlink): Likewise.
15431         * io/symlinkat.c (symlinkat): Likewise.
15432         * io/ttyname.c (ttyname): Likewise.
15433         * io/ttyname_r.c (__ttyname_r): Likewise.
15434         * io/umask.c (__umask): Likewise.
15435         * io/unlink.c (__unlink): Likewise.
15436         * io/unlinkat.c (unlinkat): Likewise.
15437         * io/utime.c (utime): Likewise.
15438         * libio/clearerr.c (clearerr): Likewise.
15439         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
15440         * libio/feof.c (_IO_feof): Likewise.
15441         * libio/feof_u.c (feof_unlocked): Likewise.
15442         * libio/ferror.c (_IO_ferror): Likewise.
15443         * libio/ferror_u.c (ferror_unlocked): Likewise.
15444         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
15445         * libio/fileno.c (__fileno): Likewise.
15446         * libio/fputc.c (fputc): Likewise.
15447         * libio/fputc_u.c (fputc_unlocked): Likewise.
15448         * libio/fputwc.c (fputwc): Likewise.
15449         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
15450         * libio/freopen.c (freopen): Likewise.
15451         * libio/freopen64.c (freopen64): Likewise.
15452         * libio/fseek.c (fseek): Likewise.
15453         * libio/fseeko.c (fseeko): Likewise.
15454         * libio/fseeko64.c (fseeko64): Likewise.
15455         * libio/ftello.c (__ftello): Likewise.
15456         * libio/ftello64.c (ftello64): Likewise.
15457         * libio/fwide.c (fwide): Likewise.
15458         * libio/genops.c (_IO_un_link): Likewise.
15459         (_IO_link_in): Likewise.
15460         (_IO_least_marker): Likewise.
15461         (_IO_switch_to_main_get_area): Likewise.
15462         (_IO_switch_to_backup_area): Likewise.
15463         (_IO_switch_to_get_mode): Likewise.
15464         (_IO_free_backup_area): Likewise.
15465         (_IO_switch_to_put_mode): Likewise.
15466         (__overflow): Likewise.
15467         (__underflow): Likewise.
15468         (__uflow): Likewise.
15469         (_IO_setb): Likewise.
15470         (_IO_doallocbuf): Likewise.
15471         (_IO_default_underflow): Likewise.
15472         (_IO_default_uflow): Likewise.
15473         (_IO_default_xsputn): Likewise.
15474         (_IO_sgetn): Likewise.
15475         (_IO_default_xsgetn): Likewise.
15476         (_IO_sync): Likewise.
15477         (_IO_default_setbuf): Likewise.
15478         (_IO_default_seekpos): Likewise.
15479         (_IO_default_doallocate): Likewise.
15480         (_IO_init): Likewise.
15481         (_IO_old_init): Likewise.
15482         (_IO_default_sync): Likewise.
15483         (_IO_default_finish): Likewise.
15484         (_IO_default_seekoff): Likewise.
15485         (_IO_sputbackc): Likewise.
15486         (_IO_sungetc): Likewise.
15487         (_IO_set_column): Likewise.
15488         (_IO_set_column): Likewise.
15489         (_IO_adjust_column): Likewise.
15490         (_IO_get_column): Likewise.
15491         (_IO_init_marker): Likewise.
15492         (_IO_remove_marker): Likewise.
15493         (_IO_marker_difference): Likewise.
15494         (_IO_marker_delta): Likewise.
15495         (_IO_seekmark): Likewise.
15496         (_IO_unsave_markers): Likewise.
15497         (_IO_nobackup_pbackfail): Likewise.
15498         (_IO_default_pbackfail): Likewise.
15499         (_IO_default_seek): Likewise.
15500         (_IO_default_stat): Likewise.
15501         (_IO_default_read): Likewise.
15502         (_IO_default_write): Likewise.
15503         (_IO_default_showmanyc): Likewise.
15504         (_IO_default_imbue): Likewise.
15505         (_IO_iter_next): Likewise.
15506         (_IO_iter_file): Likewise.
15507         * libio/getc.c (_IO_getc): Likewise.
15508         * libio/getwc.c (_IO_getwc): Likewise.
15509         * libio/iofclose.c (_IO_new_fclose): Likewise.
15510         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15511         * libio/iofflush.c (_IO_fflush): Likewise.
15512         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
15513         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15514         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
15515         * libio/iofgets.c (_IO_fgets): Likewise.
15516         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
15517         * libio/iofgetws.c (fgetws): Likewise.
15518         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
15519         * libio/iofopen64.c (_IO_fopen64): Likewise.
15520         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15521         (_IO_cookie_write): Likewise.
15522         (_IO_cookie_seek): Likewise.
15523         (_IO_cookie_close): Likewise.
15524         (_IO_cookie_seekoff): Likewise.
15525         (_IO_old_cookie_seek): Likewise.
15526         * libio/iofputs.c (_IO_fputs): Likewise.
15527         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
15528         * libio/iofputws.c (fputws): Likewise.
15529         * libio/iofputws_u.c (fputws_unlocked): Likewise.
15530         * libio/iofread.c (_IO_fread): Likewise.
15531         * libio/iofread_u.c (__fread_unlocked): Likewise.
15532         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
15533         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15534         * libio/ioftell.c (_IO_ftell): Likewise.
15535         * libio/iofwrite.c (_IO_fwrite): Likewise.
15536         * libio/iogetdelim.c (_IO_getdelim): Likewise.
15537         * libio/iogets.c (_IO_gets): Likewise.
15538         * libio/iopadn.c (_IO_padn): Likewise.
15539         * libio/iopopen.c (_IO_new_proc_open): Likewise.
15540         (_IO_new_popen): Likewise.
15541         (_IO_new_proc_close): Likewise.
15542         * libio/ioputs.c (_IO_puts): Likewise.
15543         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
15544         (_IO_seekoff): Likewise.
15545         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
15546         (_IO_seekpos): Likewise.
15547         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
15548         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
15549         * libio/ioungetc.c (_IO_ungetc): Likewise.
15550         * libio/ioungetwc.c (ungetwc): Likewise.
15551         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15552         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
15553         * libio/iowpadn.c (_IO_wpadn): Likewise.
15554         * libio/libc_fatal.c (__libc_fatal): Likewise.
15555         * libio/memstream.c (__open_memstream): Likewise.
15556         (_IO_mem_sync): Likewise.
15557         (_IO_mem_finish): Likewise.
15558         * libio/oldfileops.c (_IO_old_file_init): Likewise.
15559         (_IO_old_file_close_it): Likewise.
15560         (_IO_old_file_finish): Likewise.
15561         (_IO_old_file_fopen): Likewise.
15562         (_IO_old_file_attach): Likewise.
15563         (_IO_old_file_setbuf): Likewise.
15564         (_IO_old_do_write): Likewise.
15565         (old_do_write): Likewise.
15566         (_IO_old_file_underflow): Likewise.
15567         (_IO_old_file_overflow): Likewise.
15568         (_IO_old_file_sync): Likewise.
15569         (_IO_old_file_seekoff): Likewise.
15570         (_IO_old_file_write): Likewise.
15571         (_IO_old_file_xsputn): Likewise.
15572         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
15573         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15574         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
15575         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
15576         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
15577         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
15578         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
15579         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
15580         (_IO_old_popen): Likewise.
15581         (_IO_old_proc_close): Likewise.
15582         * libio/oldpclose.c (__old_pclose): Likewise.
15583         * libio/pclose.c (__new_pclose): Likewise.
15584         * libio/peekc.c (_IO_peekc_locked): Likewise.
15585         * libio/putc.c (_IO_putc): Likewise.
15586         * libio/putc_u.c (putc_unlocked): Likewise.
15587         * libio/putchar.c (putchar): Likewise.
15588         * libio/putchar_u.c (putchar_unlocked): Likewise.
15589         * libio/putwc.c (putwc): Likewise.
15590         * libio/putwc_u.c (putwc_unlocked): Likewise.
15591         * libio/putwchar.c (putwchar): Likewise.
15592         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
15593         * libio/rewind.c (rewind): Likewise.
15594         * libio/setbuf.c (setbuf): Likewise.
15595         * libio/setlinebuf.c (setlinebuf): Likewise.
15596         * libio/vasprintf.c (_IO_vasprintf): Likewise.
15597         * libio/vscanf.c (_IO_vscanf): Likewise.
15598         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
15599         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
15600         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
15601         * libio/wgenops.c (_IO_least_wmarker): Likewise.
15602         (_IO_switch_to_main_wget_area): Likewise.
15603         (_IO_switch_to_wbackup_area): Likewise.
15604         (_IO_wsetb): Likewise.
15605         (_IO_wdefault_pbackfail): Likewise.
15606         (_IO_wdefault_finish): Likewise.
15607         (_IO_wdefault_uflow): Likewise.
15608         (__woverflow): Likewise.
15609         (__wuflow): Likewise.
15610         (__wunderflow): Likewise.
15611         (_IO_wdefault_xsputn): Likewise.
15612         (_IO_wdefault_xsgetn): Likewise.
15613         (_IO_wdoallocbuf): Likewise.
15614         (_IO_wdefault_doallocate): Likewise.
15615         (_IO_switch_to_wget_mode): Likewise.
15616         (_IO_free_wbackup_area): Likewise.
15617         (_IO_switch_to_wput_mode): Likewise.
15618         (_IO_sputbackwc): Likewise.
15619         (_IO_sungetwc): Likewise.
15620         (_IO_adjust_wcolumn): Likewise.
15621         (_IO_init_wmarker): Likewise.
15622         (_IO_wmarker_delta): Likewise.
15623         (_IO_seekwmark): Likewise.
15624         (_IO_unsave_wmarkers): Likewise.
15625         * libio/wmemstream.c (open_wmemstream): Likewise.
15626         (_IO_wmem_sync): Likewise.
15627         (_IO_wmem_finish): Likewise.
15628         * locale/nl_langinfo.c (nl_langinfo): Likewise.
15629         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
15630         * locale/programs/simple-hash.c (init_hash): Likewise.
15631         (delete_hash): Likewise.
15632         (insert_entry): Likewise.
15633         (set_entry): Likewise.
15634         (next_prime): Likewise.
15635         (is_prime): Likewise.
15636         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
15637         (xmalloc): Likewise.
15638         (xrealloc): Likewise.
15639         * locale/programs/xstrdup.c (xstrdup): Likewise.
15640         * localedata/collate-test.c (xstrcoll): Likewise.
15641         * localedata/xfrm-test.c (xstrcmp): Likewise.
15642         * login/getlogin_r.c (__getlogin_r): Likewise.
15643         * login/getpt.c (__posix_openpt): Likewise.
15644         * login/login_tty.c (login_tty): Likewise.
15645         * login/setlogin.c (setlogin): Likewise.
15646         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
15647         (mach_msg_destroy_port): Likewise.
15648         (mach_msg_destroy_memory): Likewise.
15649         * malloc/mcheck.c (flood): Likewise.
15650         * misc/acct.c (acct): Likewise.
15651         * misc/brk.c (__brk): Likewise.
15652         * misc/chflags.c (chflags): Likewise.
15653         * misc/chroot.c (chroot): Likewise.
15654         * misc/fchflags.c (fchflags): Likewise.
15655         * misc/fstab.c (getfsspec): Likewise.
15656         (getfsfile): Likewise.
15657         * misc/fsync.c (fsync): Likewise.
15658         * misc/ftruncate.c (__ftruncate): Likewise.
15659         * misc/ftruncate64.c (__ftruncate64): Likewise.
15660         * misc/getdomain.c (getdomainname): Likewise.
15661         (getdomainname): Likewise.
15662         * misc/gethostname.c (__gethostname): Likewise.
15663         * misc/getpass.c (getpass): Likewise.
15664         * misc/getttyent.c (skip): Likewise.
15665         (value): Likewise.
15666         * misc/gtty.c (gtty): Likewise.
15667         * misc/hsearch.c (hsearch): Likewise.
15668         (hcreate): Likewise.
15669         * misc/hsearch_r.c (__hcreate_r): Likewise.
15670         (__hdestroy_r): Likewise.
15671         * misc/ioctl.c (__ioctl): Likewise.
15672         * misc/mkdtemp.c (mkdtemp): Likewise.
15673         * misc/mkostemp.c (mkostemp): Likewise.
15674         * misc/mkostemp64.c (mkostemp64): Likewise.
15675         * misc/mkostemps.c (mkostemps): Likewise.
15676         * misc/mkostemps64.c (mkostemps64): Likewise.
15677         * misc/mkstemp.c (mkstemp): Likewise.
15678         * misc/mkstemp64.c (mkstemp64): Likewise.
15679         * misc/mkstemps.c (mkstemps): Likewise.
15680         * misc/mkstemps64.c (mkstemps64): Likewise.
15681         * misc/mktemp.c (__mktemp): Likewise.
15682         * misc/preadv.c (preadv): Likewise.
15683         * misc/preadv64.c (preadv64): Likewise.
15684         * misc/pwritev.c (pwritev): Likewise.
15685         * misc/pwritev64.c (pwritev64): Likewise.
15686         * misc/readv.c (__readv): Likewise.
15687         * misc/revoke.c (revoke): Likewise.
15688         * misc/setdomain.c (setdomainname): Likewise.
15689         * misc/setegid.c (setegid): Likewise.
15690         * misc/seteuid.c (seteuid): Likewise.
15691         * misc/sethostid.c (sethostid): Likewise.
15692         * misc/sethostname.c (sethostname): Likewise.
15693         * misc/setregid.c (__setregid): Likewise.
15694         * misc/setreuid.c (__setreuid): Likewise.
15695         * misc/sstk.c (sstk): Likewise.
15696         * misc/stty.c (stty): Likewise.
15697         * misc/syscall.c (syscall): Likewise.
15698         * misc/syslog.c (setlogmask): Likewise.
15699         * misc/truncate.c (__truncate): Likewise.
15700         * misc/truncate64.c (truncate64): Likewise.
15701         * misc/ualarm.c (ualarm): Likewise.
15702         * misc/usleep.c (usleep): Likewise.
15703         * misc/ustat.c (ustat): Likewise.
15704         * misc/writev.c (__writev): Likewise.
15705         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
15706         * nptl/old_pthread_cond_broadcast.c
15707         (__pthread_cond_broadcast_2_0): Likewise.
15708         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
15709         Likewise.
15710         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
15711         Likewise.
15712         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
15713         Likewise.
15714         * nptl/pt-raise.c (raise): Likewise.
15715         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
15716         Likewise.
15717         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
15718         * nptl/pthread_barrierattr_destroy.c
15719         (pthread_barrierattr_destroy): Likewise.
15720         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15721         Likewise.
15722         * nptl/pthread_barrierattr_setpshared.c
15723         (pthread_barrierattr_setpshared): Likewise.
15724         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
15725         Likewise.
15726         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
15727         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15728         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
15729         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
15730         Likewise.
15731         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
15732         Likewise.
15733         * nptl/pthread_condattr_getpshared.c
15734         (pthread_condattr_getpshared): Likewise.
15735         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
15736         Likewise.
15737         * nptl/pthread_condattr_setpshared.c
15738         (pthread_condattr_setpshared): Likewise.
15739         * nptl/pthread_detach.c (pthread_detach): Likewise.
15740         * nptl/pthread_equal.c (__pthread_equal): Likewise.
15741         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
15742         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
15743         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
15744         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
15745         Likewise.
15746         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
15747         Likewise.
15748         * nptl/pthread_mutex_getprioceiling.c
15749         (pthread_mutex_getprioceiling): Likewise.
15750         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
15751         Likewise.
15752         * nptl/pthread_mutexattr_getprotocol.c
15753         (pthread_mutexattr_getprotocol): Likewise.
15754         * nptl/pthread_mutexattr_getpshared.c
15755         (pthread_mutexattr_getpshared): Likewise.
15756         * nptl/pthread_mutexattr_getrobust.c
15757         (pthread_mutexattr_getrobust): Likewise.
15758         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
15759         Likewise.
15760         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
15761         Likewise.
15762         * nptl/pthread_mutexattr_setprioceiling.c
15763         (pthread_mutexattr_setprioceiling): Likewise.
15764         * nptl/pthread_mutexattr_setprotocol.c
15765         (pthread_mutexattr_setprotocol): Likewise.
15766         * nptl/pthread_mutexattr_setpshared.c
15767         (pthread_mutexattr_setpshared): Likewise.
15768         * nptl/pthread_mutexattr_setrobust.c
15769         (pthread_mutexattr_setrobust): Likewise.
15770         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
15771         Likewise.
15772         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
15773         Likewise.
15774         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
15775         Likewise.
15776         * nptl/pthread_rwlockattr_getkind_np.c
15777         (pthread_rwlockattr_getkind_np): Likewise.
15778         * nptl/pthread_rwlockattr_getpshared.c
15779         (pthread_rwlockattr_getpshared): Likewise.
15780         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
15781         Likewise.
15782         * nptl/pthread_rwlockattr_setkind_np.c
15783         (pthread_rwlockattr_setkind_np): Likewise.
15784         * nptl/pthread_rwlockattr_setpshared.c
15785         (pthread_rwlockattr_setpshared): Likewise.
15786         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
15787         Likewise.
15788         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
15789         Likewise.
15790         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
15791         Likewise.
15792         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
15793         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
15794         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
15795         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
15796         * nptl/sem_close.c (sem_close): Likewise.
15797         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
15798         * nptl/sem_init.c (__old_sem_init): Likewise.
15799         * nptl/sigaction.c (__sigaction): Likewise.
15800         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15801         * posix/_exit.c (_exit): Likewise.
15802         * posix/alarm.c (alarm): Likewise.
15803         * posix/confstr.c (confstr): Likewise.
15804         * posix/fpathconf.c (__fpathconf): Likewise.
15805         * posix/getgroups.c (__getgroups): Likewise.
15806         * posix/getpgid.c (__getpgid): Likewise.
15807         * posix/group_member.c (__group_member): Likewise.
15808         * posix/pathconf.c (__pathconf): Likewise.
15809         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
15810         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
15811         * posix/setgid.c (__setgid): Likewise.
15812         * posix/setpgid.c (__setpgid): Likewise.
15813         * posix/setuid.c (__setuid): Likewise.
15814         * posix/sleep.c (__sleep): Likewise.
15815         * posix/sysconf.c (__sysconf): Likewise.
15816         * posix/times.c (__times): Likewise.
15817         * posix/uname.c (__uname): Likewise.
15818         * posix/waitid.c (__waitid): Likewise.
15819         * pwd/getpw.c (__getpw): Likewise.
15820         * resolv/base64.c (b64_pton): Likewise.
15821         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15822         * resolv/gethnamaddr.c (Dprintf): Likewise.
15823         (gethostbyname): Likewise.
15824         (gethostbyname2): Likewise.
15825         (gethostbyaddr): Likewise.
15826         (_sethtent): Likewise.
15827         (_gethtbyname): Likewise.
15828         (_gethtbyname2): Likewise.
15829         (_gethtbyaddr): Likewise.
15830         (map_v4v6_address): Likewise.
15831         (map_v4v6_hostent): Likewise.
15832         (addrsort): Likewise.
15833         (ht_sethostent): Likewise.
15834         (ht_gethostbyname): Likewise.
15835         (ht_gethostbyaddr): Likewise.
15836         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
15837         (inet_net_ntop_ipv4): Likewise.
15838         * resolv/inet_neta.c (inet_neta): Likewise.
15839         * resolv/inet_ntop.c (inet_ntop): Likewise.
15840         (inet_ntop4): Likewise.
15841         (inet_ntop6): Likewise.
15842         * resolv/inet_pton.c (__inet_pton): Likewise.
15843         (inet_pton4): Likewise.
15844         (inet_pton6): Likewise.
15845         * resolv/res_debug.c (loc_aton): Likewise.
15846         (loc_ntoa): Likewise.
15847         * resource/getpriority.c (__getpriority): Likewise.
15848         * resource/getrusage.c (__getrusage): Likewise.
15849         * resource/nice.c (nice): Likewise.
15850         * resource/setpriority.c (__setpriority): Likewise.
15851         * resource/setrlimit64.c (setrlimit64): Likewise.
15852         * resource/vlimit.c (vlimit): Likewise.
15853         * resource/vtimes.c (vtimes): Likewise.
15854         * rt/aio_error.c (aio_error): Likewise.
15855         * rt/aio_return.c (aio_return): Likewise.
15856         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
15857         * signal/kill.c (__kill): Likewise.
15858         * signal/killpg.c (killpg): Likewise.
15859         * signal/raise.c (raise): Likewise.
15860         * signal/sigaction.c (__sigaction): Likewise.
15861         * signal/sigaddset.c (sigaddset): Likewise.
15862         * signal/sigaltstack.c (sigaltstack): Likewise.
15863         * signal/sigandset.c (sigandset): Likewise.
15864         * signal/sigblock.c (__sigblock): Likewise.
15865         * signal/sigdelset.c (sigdelset): Likewise.
15866         * signal/sigempty.c (sigemptyset): Likewise.
15867         * signal/sigfillset.c (sigfillset): Likewise.
15868         * signal/sighold.c (sighold): Likewise.
15869         * signal/sigignore.c (sigignore): Likewise.
15870         * signal/sigintr.c (siginterrupt): Likewise.
15871         * signal/sigisempty.c (sigisemptyset): Likewise.
15872         * signal/sigismem.c (sigismember): Likewise.
15873         * signal/signal.c (signal): Likewise.
15874         * signal/sigorset.c (sigorset): Likewise.
15875         * signal/sigpause.c (__sigpause): Likewise.
15876         * signal/sigpending.c (sigpending): Likewise.
15877         * signal/sigprocmask.c (__sigprocmask): Likewise.
15878         * signal/sigrelse.c (sigrelse): Likewise.
15879         * signal/sigreturn.c (__sigreturn): Likewise.
15880         * signal/sigset.c (sigset): Likewise.
15881         * signal/sigsetmask.c (__sigsetmask): Likewise.
15882         * signal/sigstack.c (sigstack): Likewise.
15883         * signal/sigsuspend.c (__sigsuspend): Likewise.
15884         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
15885         * signal/sysv_signal.c (__sysv_signal): Likewise.
15886         * socket/accept.c (accept): Likewise.
15887         * socket/accept4.c (__libc_accept4): Likewise.
15888         * socket/bind.c (__bind): Likewise.
15889         * socket/connect.c (__connect): Likewise.
15890         * socket/getpeername.c (getpeername): Likewise.
15891         * socket/getsockname.c (__getsockname): Likewise.
15892         * socket/getsockopt.c (getsockopt): Likewise.
15893         * socket/listen.c (__listen): Likewise.
15894         * socket/recv.c (__recv): Likewise.
15895         * socket/recvmsg.c (__recvmsg): Likewise.
15896         * socket/send.c (__send): Likewise.
15897         * socket/sendmsg.c (__sendmsg): Likewise.
15898         * socket/shutdown.c (shutdown): Likewise.
15899         * socket/sockatmark.c (sockatmark): Likewise.
15900         * socket/socket.c (__socket): Likewise.
15901         * stdio-common/ctermid.c (ctermid): Likewise.
15902         * stdio-common/cuserid.c (cuserid): Likewise.
15903         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
15904         * stdio-common/remove.c (remove): Likewise.
15905         * stdio-common/rename.c (rename): Likewise.
15906         * stdio-common/renameat.c (renameat): Likewise.
15907         * stdio-common/tempname.c (__gen_tempname): Likewise.
15908         * stdio-common/xbug.c (InitBuffer): Likewise.
15909         (AppendToBuffer): Likewise.
15910         (ReadFile): Likewise.
15911         * stdlib/a64l.c (a64l): Likewise.
15912         * stdlib/drand48_r.c (drand48_r): Likewise.
15913         * stdlib/getcontext.c (getcontext): Likewise.
15914         * stdlib/getenv.c (getenv): Likewise.
15915         * stdlib/l64a.c (l64a): Likewise.
15916         * stdlib/llabs.c (llabs): Likewise.
15917         * stdlib/lldiv.c (lldiv): Likewise.
15918         * stdlib/lrand48_r.c (lrand48_r): Likewise.
15919         * stdlib/mrand48_r.c (mrand48_r): Likewise.
15920         * stdlib/putenv.c (putenv): Likewise.
15921         * stdlib/random.c (__srandom): Likewise.
15922         (__initstate): Likewise.
15923         (__setstate): Likewise.
15924         * stdlib/random_r.c (__srandom_r): Likewise.
15925         (__setstate_r): Likewise.
15926         (__random_r): Likewise.
15927         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
15928         * stdlib/setcontext.c (setcontext): Likewise.
15929         * stdlib/setenv.c (setenv): Likewise.
15930         (unsetenv): Likewise.
15931         * stdlib/srand48.c (srand48): Likewise.
15932         * stdlib/srand48_r.c (__srand48_r): Likewise.
15933         * stdlib/swapcontext.c (swapcontext): Likewise.
15934         * stdlib/system.c (__libc_system): Likewise.
15935         * stdlib/tst-strtod.c (expand): Likewise.
15936         * stdlib/tst-strtol.c (expand): Likewise.
15937         * stdlib/tst-strtoll.c (expand): Likewise.
15938         * streams/fattach.c (fattach): Likewise.
15939         * streams/fdetach.c (fdetach): Likewise.
15940         * streams/getmsg.c (getmsg): Likewise.
15941         * streams/isastream.c (isastream): Likewise.
15942         * string/ffs.c (__ffs): Likewise.
15943         * string/ffsll.c (ffsll): Likewise.
15944         * string/memcmp.c (memcmp_common_alignment): Likewise.
15945         (memcmp_not_common_alignment): Likewise.
15946         (MEMCMP): Likewise.
15947         * string/memcpy.c (memcpy): Likewise.
15948         * string/memmove.c (MEMMOVE): Likewise.
15949         * string/memset.c (memset): Likewise.
15950         * string/rawmemchr.c (RAWMEMCHR): Likewise.
15951         * string/strchrnul.c (STRCHRNUL): Likewise.
15952         * string/strerror.c (strerror): Likewise.
15953         * string/strndup.c (__strndup): Likewise.
15954         * string/strverscmp.c (__strverscmp): Likewise.
15955         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
15956         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
15957         (clnttcp_freeres): Likewise.
15958         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
15959         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
15960         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
15961         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
15962         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
15963         (xdr_callhdr): Likewise.
15964         * sunrpc/rpcinfo.c (udpping): Likewise.
15965         (tcpping): Likewise.
15966         (pstatus): Likewise.
15967         (pmapdump): Likewise.
15968         (brdcst): Likewise.
15969         (deletereg): Likewise.
15970         (getprognum): Likewise.
15971         (getvers): Likewise.
15972         (get_inet_address): Likewise.
15973         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
15974         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15975         (svcudp_stat): Likewise.
15976         (svcudp_recv): Likewise.
15977         (svcudp_reply): Likewise.
15978         (svcudp_getargs): Likewise.
15979         (svcudp_freeargs): Likewise.
15980         (svcudp_destroy): Likewise.
15981         * sunrpc/xdr.c (xdr_bytes): Likewise.
15982         (xdr_netobj): Likewise.
15983         (xdr_string): Likewise.
15984         (xdr_wrapstring): Likewise.
15985         * sunrpc/xdr_float.c (xdr_float): Likewise.
15986         (xdr_double): Likewise.
15987         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
15988         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
15989         * sysvipc/ftok.c (ftok): Likewise.
15990         * sysvipc/msgctl.c (msgctl): Likewise.
15991         * sysvipc/msgget.c (msgget): Likewise.
15992         * sysvipc/msgrcv.c (msgrcv): Likewise.
15993         * sysvipc/msgsnd.c (msgsnd): Likewise.
15994         * sysvipc/semget.c (semget): Likewise.
15995         * sysvipc/semop.c (semop): Likewise.
15996         * sysvipc/shmat.c (shmat): Likewise.
15997         * sysvipc/shmctl.c (shmctl): Likewise.
15998         * sysvipc/shmdt.c (shmdt): Likewise.
15999         * sysvipc/shmget.c (shmget): Likewise.
16000         * termios/cfmakeraw.c (cfmakeraw): Likewise.
16001         * termios/speed.c (cfgetospeed): Likewise.
16002         (cfgetispeed): Likewise.
16003         (cfsetospeed): Likewise.
16004         (cfsetispeed): Likewise.
16005         * termios/tcflow.c (tcflow): Likewise.
16006         * termios/tcflush.c (tcflush): Likewise.
16007         * termios/tcgetattr.c (__tcgetattr): Likewise.
16008         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
16009         * termios/tcgetsid.c (tcgetsid): Likewise.
16010         * termios/tcsendbrk.c (tcsendbreak): Likewise.
16011         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
16012         * time/adjtime.c (__adjtime): Likewise.
16013         * time/dysize.c (dysize): Likewise.
16014         * time/ftime.c (ftime): Likewise.
16015         * time/getitimer.c (__getitimer): Likewise.
16016         * time/gettimeofday.c (__gettimeofday): Likewise.
16017         * time/gmtime.c (__gmtime_r): Likewise.
16018         (gmtime): Likewise.
16019         * time/localtime.c (__localtime_r): Likewise.
16020         (localtime): Likewise.
16021         * time/offtime.c (__offtime): Likewise.
16022         * time/settimeofday.c (__settimeofday): Likewise.
16023         * time/stime.c (stime): Likewise.
16024         * time/strftime_l.c (tm_diff): Likewise.
16025         (iso_week_days): Likewise.
16026         * time/strptime.c (strptime): Likewise.
16027         * time/time.c (time): Likewise.
16028         * time/timespec_get.c (timespec_get): Likewise.
16029         * time/tzset.c (tzset_internal): Likewise.
16030         (compute_change): Likewise.
16031         (__tz_compute): Likewise.
16032         * wcsmbs/btowc.c (__btowc): Likewise.
16033         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
16034         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
16035         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
16036         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
16037         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
16038         * wcsmbs/wcscat.c (__wcscat): Likewise.
16039         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16040         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
16041         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
16042         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16043         * wcsmbs/wcsdup.c (wcsdup): Likewise.
16044         * wcsmbs/wcslen.c (__wcslen): Likewise.
16045         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
16046         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
16047         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
16048         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
16049         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16050         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
16051         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16052         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16053         * wcsmbs/wcstok.c (wcstok): Likewise.
16054         * wcsmbs/wctob.c (wctob): Likewise.
16055         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
16056         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16057         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
16058         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
16059         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
16060         * wcsmbs/wmemset.c (__wmemset): Likewise.
16061         * wctype/wcfuncs.c (__towlower): Likewise.
16062         (__towupper): Likewise.
16063
16064         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
16065         (lll_unlock_elision): Add adapt_count parameter.
16066
16067 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16068
16069         * sysdeps/nptl/configure.ac: Do not give errors based on the
16070         results of top-level configure tests.
16071         * sysdeps/nptl/configure: Regenerated.
16072
16073         * configure.ac (libc_cv_Bgroup): Remove configure test.
16074         * configure: Regenerated.
16075         * config.make.in (have-Bgroup): Remove variable.
16076
16077         * configure.ac (sizeof_long_double): Remove configure test.
16078         * configure: Regenerated.
16079         * config.make.in (sizeof-long-double): Remove variable.
16080
16081         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
16082         * configure: Regenerated.
16083         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
16084         variable.
16085         (exceptions): Likewise.
16086         * sysdeps/arm/configure: Regenerated.
16087         * config.make.in (exceptions): Remove variable.
16088         * Makeconfig (uses-callbacks): Use -fexceptions instead of
16089         $(exceptions).
16090         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
16091         (CFLAGS-vdprintf_chk.c): Likewise.
16092         (CFLAGS-printf_chk.c): Likewise.
16093         (CFLAGS-fprintf_chk.c): Likewise.
16094         (CFLAGS-vprintf_chk.c): Likewise.
16095         (CFLAGS-vfprintf_chk.c): Likewise.
16096         (CFLAGS-gets_chk.c): Likewise.
16097         (CFLAGS-fgets_chk.c): Likewise.
16098         (CFLAGS-fgets_u_chk.c): Likewise.
16099         (CFLAGS-fread_chk.c): Likewise.
16100         (CFLAGS-fread_u_chk.c): Likewise.
16101         (CFLAGS-wprintf_chk.c): Likewise.
16102         (CFLAGS-fwprintf_chk.c): Likewise.
16103         (CFLAGS-vwprintf_chk.c): Likewise.
16104         (CFLAGS-vfwprintf_chk.c): Likewise.
16105         (CFLAGS-fgetws_chk.c): Likewise.
16106         (CFLAGS-fgetws_u_chk.c): Likewise.
16107         * libio/Makefile (CFLAGS-fileops.c): Likewise.
16108         (CFLAGS-fputc.c): Likewise.
16109         (CFLAGS-fputwc.c): Likewise.
16110         (CFLAGS-freopen64.c): Likewise.
16111         (CFLAGS-freopen.c): Likewise.
16112         (CFLAGS-fseek.c): Likewise.
16113         (CFLAGS-fseeko64.c): Likewise.
16114         (CFLAGS-fseeko.c): Likewise.
16115         (CFLAGS-ftello64.c): Likewise.
16116         (CFLAGS-ftello.c): Likewise.
16117         (CFLAGS-fwide.c): Likewise.
16118         (CFLAGS-genops.c): Likewise.
16119         (CFLAGS-getc.c): Likewise.
16120         (CFLAGS-getchar.c): Likewise.
16121         (CFLAGS-getwc.c): Likewise.
16122         (CFLAGS-getwchar.c): Likewise.
16123         (CFLAGS-iofclose.c): Likewise.
16124         (CFLAGS-iofflush.c): Likewise.
16125         (CFLAGS-iofgetpos64.c): Likewise.
16126         (CFLAGS-iofgetpos.c): Likewise.
16127         (CFLAGS-iofgets.c): Likewise.
16128         (CFLAGS-iofgetws.c): Likewise.
16129         (CFLAGS-iofputs.c): Likewise.
16130         (CFLAGS-iofputws.c): Likewise.
16131         (CFLAGS-iofread.c): Likewise.
16132         (CFLAGS-iofsetpos64.c): Likewise.
16133         (CFLAGS-iofsetpos.c): Likewise.
16134         (CFLAGS-ioftell.c): Likewise.
16135         (CFLAGS-iofwrite.c): Likewise.
16136         (CFLAGS-iogetdelim.c): Likewise.
16137         (CFLAGS-iogetline.c): Likewise.
16138         (CFLAGS-iogets.c): Likewise.
16139         (CFLAGS-iogetwline.c): Likewise.
16140         (CFLAGS-ioputs.c): Likewise.
16141         (CFLAGS-ioseekoff.c): Likewise.
16142         (CFLAGS-ioseekpos.c): Likewise.
16143         (CFLAGS-iosetbuffer.c): Likewise.
16144         (CFLAGS-iosetvbuf.c): Likewise.
16145         (CFLAGS-ioungetc.c): Likewise.
16146         (CFLAGS-ioungetwc.c): Likewise.
16147         (CFLAGS-oldfileops.c): Likewise.
16148         (CFLAGS-oldiofclose.c): Likewise.
16149         (CFLAGS-oldiofgetpos64.c): Likewise.
16150         (CFLAGS-oldiofgetpos.c): Likewise.
16151         (CFLAGS-oldiofsetpos64.c): Likewise.
16152         (CFLAGS-oldiofsetpos.c): Likewise.
16153         (CFLAGS-peekc.c): Likewise.
16154         (CFLAGS-putc.c): Likewise.
16155         (CFLAGS-putchar.c): Likewise.
16156         (CFLAGS-putwc.c): Likewise.
16157         (CFLAGS-putwchar.c): Likewise.
16158         (CFLAGS-rewind.c): Likewise.
16159         (CFLAGS-wfileops.c): Likewise.
16160         (CFLAGS-wgenops.c): Likewise.
16161         (CFLAGS-oldiofopen.c): Likewise.
16162         (CFLAGS-iofopen.c): Likewise.
16163         (CFLAGS-iofopen64.c): Likewise.
16164         (CFLAGS-oldtmpfile.c): Likewise.
16165         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
16166         (CFLAGS-fprintf.c): Likewise.
16167         (CFLAGS-printf.c): Likewise.
16168         (CFLAGS-vfwprintf.c): Likewise.
16169         (CFLAGS-vfscanf.c): Likewise.
16170         (CFLAGS-vfwscanf.c): Likewise.
16171         (CFLAGS-fscanf.c): Likewise.
16172         (CFLAGS-scanf.c): Likewise.
16173         (CFLAGS-isoc99_vfscanf.c): Likewise.
16174         (CFLAGS-isoc99_vscanf.c): Likewise.
16175         (CFLAGS-isoc99_fscanf.c): Likewise.
16176         (CFLAGS-isoc99_scanf.c): Likewise.
16177         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
16178         (CFLAGS-isoc99_fwscanf.c): Likewise.
16179         (CFLAGS-isoc99_vwscanf.c): Likewise.
16180         (CFLAGS-isoc99_vfwscanf.c): Likewise.
16181
16182         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
16183         after mkstemp64.
16184         * login/tst-utmp.c (do_prepare): Likewise.
16185         * rt/tst-aio.c (do_prepare): Likewise.
16186         * rt/tst-aio64.c (do_prepare): Likewise.
16187
16188 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16189
16190         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
16191         (__lll_lock_elision): Remove adapt_count decrement...
16192         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16193         (__lll_trylock_elision): Likewise.
16194         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16195         (__lll_unlock_elision): ... to here. And utilize
16196         new adapt_count parameter.
16197         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16198         (__lll_unlock_elision): Update to include adapt_count
16199         parameter.
16200         (lll_unlock_elision): Pass pointer to adapt_count
16201         variable.
16202
16203 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16204
16205         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
16206         Add elision adapt_count parameter to list of arguments.
16207         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16208         (lll_unlock_elision): Update with new parameter list
16209         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
16210         (lll_unlock_elision): Likewise.
16211         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
16212         (lll_unlock_elision): Likewise.
16213
16214 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16215
16216         [BZ #19122]
16217         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
16218         attribute_hidden.
16219
16220         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
16221         attribute_hidden.
16222         [IS_IN (rtld)] (__strdup): Likewise.
16223         [IS_IN (rtld)] (__strerror_r): Likewise.
16224         [IS_IN (rtld)] (__strsep_g): Likewise.
16225         [IS_IN (rtld)] (memchr): Likewise.
16226         [IS_IN (rtld)] (memcmp): Likewise.
16227         [IS_IN (rtld)] (memcpy): Likewise.
16228         [IS_IN (rtld)] (memmove): Likewise.
16229         [IS_IN (rtld)] (memset): Likewise.
16230         [IS_IN (rtld)] (rawmemchr): Likewise.
16231         [IS_IN (rtld)] (stpcpy): Likewise.
16232         [IS_IN (rtld)] (strchr): Likewise.
16233         [IS_IN (rtld)] (strcmp): Likewise.
16234         [IS_IN (rtld)] (strlen): Likewise.
16235         [IS_IN (rtld)] (strnlen): Likewise.
16236         [IS_IN (rtld)] (strsep): Likewise.
16237
16238         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
16239         attribute_hidden.
16240         [IS_IN (rtld)] (__strtoul_internal): Likewise.
16241
16242         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
16243         attribute_hidden.
16244         [IS_IN (rtld)] (__libc_sigaction): Likewise.
16245
16246         * include/setjmp.h (__longjmp): Add attribute_hidden.
16247         [IS_IN (rtld)] (__sigsetjmp): Likewise.
16248
16249         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
16250         Add attribute_hidden.
16251
16252         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
16253         [IS_IN (rtld)] (__open): Likewise.
16254         [IS_IN (rtld)] (__fcntl): Likewise.
16255
16256         * include/dirent.h (__opendirat): Add attribute_hidden.
16257         (__getdents): Likewise.
16258         (__getdents64): Likewise.
16259         (__alloc_dir): Likewise.
16260         [IS_IN (rtld)] (__closedir): Likewise.
16261         [IS_IN (rtld)] (__fdopendir): Likewise.
16262         [IS_IN (rtld)] (__readdir): Likewise.
16263         [IS_IN (rtld)] (__readdir64): Likewise.
16264         [IS_IN (rtld)] (__rewinddir): Likewise.
16265
16266         * include/dlfcn.h (_dl_catch_error): Moved to ...
16267         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
16268         attribute_hidden.
16269
16270         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
16271         (_itoa_word): Likewise.
16272
16273         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
16274         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
16275         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
16276         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
16277         (_dl_higher_prime_number): Likewise.
16278         (_dl_debug_printf_c): Likewise.
16279         (_dl_signal_cerror): Likewise.
16280         (_dl_receive_error): Likewise.
16281         (_dl_reloc_bad_type): Likewise.
16282         (_dl_resolve_conflicts): Likewise.
16283         (_dl_check_all_versions): Likewise.
16284         (_dl_check_map_versions): Likewise.
16285         (_dl_sort_fini): Likewise.
16286         (_dl_debug_initialize): Likewise.
16287         (_dl_init_paths): Likewise.
16288         (_dl_show_auxv): Likewise.
16289         (_dl_next_ld_env_entry): Likewise.
16290         (_dl_important_hwcaps): Likewise.
16291         (_dl_load_cache_lookup): Likewise.
16292         (_dl_update_slotinfo): Likewise.
16293         (_dl_show_scope): Likewise.
16294
16295         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
16296         attribute_hidden.
16297         (_wordcopy_fwd_dest_aligned): Likewise.
16298         (_wordcopy_bwd_aligned): Likewise.
16299         (_wordcopy_bwd_dest_aligned): Likewise.
16300
16301         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
16302         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16303         Likewise.
16304         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16305         Likewise.
16306         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
16307
16308 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16309
16310         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
16311         GCC 5 requirement.
16312
16313 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16314
16315         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
16316         test.
16317         * sysdeps/i386/configure: Regenerated.
16318         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
16319         code unconditional.
16320
16321         * configure.ac (libc_cv_asm_previous_directive): Remove configure
16322         test.
16323         (libc_cv_asm_popsection_directive): Likewise.
16324         * configure: Regenerated.
16325         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
16326         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
16327         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
16328         (__make_section_unallocated): Make definition unconditional.
16329         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
16330         Remove conditional definition.
16331         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
16332         (__make_section_unallocated): Likewise.
16333
16334         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
16335         * configure: Regenerated.
16336         * config.make.in (static-libgcc): Remove variable.
16337         * Makerules (build-shlib-helper): Use -static-libgcc instead of
16338         $(static-libgcc).
16339         (build-module-helper): Likewise.
16340
16341         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
16342         * configure: Regenerated.
16343
16344 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16345
16346         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
16347         (struct char_buffer): New type.
16348         (char_buffer_start, char_buffer_size, char_buffer_error)
16349         (char_buffer_rewind, char_buffer_add): New functions.
16350         (ADDW): Remove macro, replaced by the char_buffer_add function.
16351         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
16352         of extend_alloca.  Make control flow more explicit.
16353
16354 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16355
16356         [BZ #19137]
16357         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
16358         Add -fomit-frame-pointer.
16359         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
16360
16361 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16362
16363         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
16364         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
16365         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
16366         only if !__GNUC_PREREQ (5,0).
16367         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
16368         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16369         (INTERNAL_SYSCALL_NCS): Likewise.
16370         (LOADREGS_0): New macro for GCC 5.
16371         (ASMARGS_0): Likewise.
16372         (LOADREGS_1): Likewise.
16373         (ASMARGS_1): Likewise.
16374         (LOADREGS_2): Likewise.
16375         (ASMARGS_2): Likewise.
16376         (LOADREGS_3): Likewise.
16377         (ASMARGS_3): Likewise.
16378         (LOADREGS_4): Likewise.
16379         (ASMARGS_4): Likewise.
16380         (LOADREGS_5): Likewise.
16381         (ASMARGS_5): Likewise.
16382         (LOADREGS_6): Likewise.
16383         (ASMARGS_6): Likewise.
16384
16385 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16386
16387         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
16388         -fomit-frame-pointer.
16389         (CFLAGS-mmap64.c): Likewise.
16390         (CFLAGS-semtimedop.c): Likewise.
16391         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
16392         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
16393         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16394         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16395
16396 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16397
16398         [BZ #18928]
16399         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
16400         _dl_pointer_guard member.
16401         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
16402         initializer.
16403         (security_init): Always set up pointer guard.
16404         (process_envvars): Do not process LD_POINTER_GUARD.
16405
16406 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
16407
16408         [BZ #19134]
16409         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
16410         (.LC2): Likewise.
16411         (.LC3): Likewise.
16412         (__lround): Do not add 0.5 to integer or out-of-range arguments.
16413
16414 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16415
16416         [BZ #19129]
16417         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
16418         r0 and r1.
16419
16420 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
16421
16422         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
16423
16424 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
16425
16426         * include/stap-probe.h: Fix macro definition formatting.
16427
16428 2015-10-14  Florian Weimer  <fweimer@redhat.com>
16429
16430         [BZ #19074]
16431         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
16432         load and store num_ifs.
16433
16434 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16435
16436         [BZ #18822]
16437         * sysdeps/unix/sysv/linux/sched_getaffinity.c
16438         (__sched_getaffinity_new): Add libc_hidden_proto and
16439         libc_hidden_def.
16440
16441 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16442
16443         [BZ #19007]
16444         * scripts/localplt.awk: Also allow GOT references.
16445         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
16446         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
16447         with "+ REL R_386_GLOB_DAT".
16448         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
16449         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
16450
16451 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16452
16453         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
16454         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16455         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
16456         Likewise.
16457         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
16458         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
16459         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
16460         INTERNAL_SYSCALLINTERNAL_SYSCALL and
16461         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16462         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
16463         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
16464         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
16465         Likewise.
16466         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
16467
16468 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16469
16470         [BZ #19125]
16471         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
16472         <math_private.h> and <stdint.h>.
16473         (__llround): Avoid conversions to and from long long int, and
16474         subtractions, where those might raise spurious exceptions.
16475         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16476         <math_private.h> and <stdint.h>.
16477         (__llroundf): Avoid conversions to and from long long int, and
16478         subtractions, where those might raise spurious exceptions.
16479
16480 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16481
16482         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
16483         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16484         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
16485         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
16486         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
16487         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
16488         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
16489         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
16490         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
16491         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
16492         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
16493         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
16494         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
16495         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
16496         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
16497         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
16498         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
16499         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
16500         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
16501         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
16502         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
16503         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
16504         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
16505         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16506         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
16507         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
16508         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
16509         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
16510         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
16511         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
16512         (__xstat64_conv): Likewise.
16513         (__xstat32_conv): Likewise.
16514
16515 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16516
16517         * sysdeps/unix/sysv/linux/sysdep.h: New file.
16518         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
16519         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
16520         <sysdeps/unix/sysv/linux/sysdep.h>.
16521         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
16522         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
16523         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
16524         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
16525         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
16526         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
16527         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
16528         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16529         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16532         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16533         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16534         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16535         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16536         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16537         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
16538         (sysdep-dl-routines): Add sysdep.
16539         [$(subdir) == nptl] (libpthread-routines): Likewise.
16540         [$(subdir) == rt] (librt-routines): Likewise.
16541         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
16542         PIC when branching to SYSCALL_ERROR_LABEL.
16543         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
16544         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
16545         <sysdeps/unix/sysv/linux/sysdep.h>.
16546         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
16547         (SYSCALL_ERROR_ERRNO): Removed.
16548         (SYSCALL_ERROR_HANDLER): Changed to empty.
16549         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
16550         (__syscall_error): New prototype.
16551         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
16552         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
16553
16554 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16555
16556         [BZ #19124]
16557         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
16558         (_dl_runtime_resolve_avx512): Make it a hidden alias of
16559         _dl_runtime_resolve_avx.
16560         (_dl_runtime_profile_avx512): Make it a hidden alias of
16561         _dl_runtime_profile_avx.
16562
16563 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16564
16565         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
16566         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
16567         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
16568         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
16569
16570         [BZ #16422]
16571         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
16572         New configure test.
16573         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
16574         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
16575         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
16576         <math_private.h> and <stdint.h>.
16577         (__llrint): Avoid conversions to long long int where those might
16578         raise spurious exceptions.
16579         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16580         <math_private.h> and <stdint.h>.
16581         (__llrintf): Avoid conversions to long long int where those might
16582         raise spurious exceptions.
16583
16584 2015-10-12  Andreas Schwab  <schwab@suse.de>
16585
16586         [BZ #18969]
16587         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
16588         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
16589         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
16590         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
16591         $(gen-locales).
16592         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
16593         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
16594         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
16595         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
16596         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
16597         $(gen-locales).
16598         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
16599         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
16600         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
16601         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
16602         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
16603         ($(objpfx)tst-ftell-active-handler.out)
16604         ($(objpfx)tst-ftell-append.out)
16605         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
16606         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
16607         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
16608         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
16609         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
16610         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
16611         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
16612         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
16613         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
16614         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
16615         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
16616         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
16617         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
16618         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
16619         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
16620         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
16621         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
16622         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
16623         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
16624         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
16625         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
16626         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
16627         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
16628         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
16629         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
16630         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
16631         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
16632         $(gen-locales).
16633         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
16634         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
16635         $(gen-locales).
16636         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
16637         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
16638         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
16639         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
16640         $(gen-locales).
16641         * libio/tst_wprintf2.c (main): Use explicit locale.
16642         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
16643
16644 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16645
16646         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
16647         __msg_sig_post.
16648         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
16649
16650 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16651
16652         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
16653         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16654
16655         * sysdeps/arm/libm-test-ulps: Regenerated.
16656
16657         [BZ #15470]
16658         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
16659
16660         [BZ #16399]
16661         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
16662         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
16663         and <fix-fp-int-convert-overflow.h>.
16664         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16665         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16666         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
16667         and <fix-fp-int-convert-overflow.h>.
16668         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
16669         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16670         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
16671         <fix-fp-int-convert-overflow.h>.
16672         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16673         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16674         * sysdeps/ieee754/dbl-64/s_lround.c: Include
16675         <fix-fp-int-convert-overflow.h>.
16676         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
16677         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16678         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
16679         and <fix-fp-int-convert-overflow.h>.
16680         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16681         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16682         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
16683         <limits.h> and <fix-fp-int-convert-overflow.h>.
16684         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16685         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16686         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
16687         and <fix-fp-int-convert-overflow.h>.
16688         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16689         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16690         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
16691         and <fix-fp-int-convert-overflow.h>.
16692         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16693         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16694         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
16695
16696 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
16697
16698         [BZ #18589]
16699         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
16700         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
16701         $(gen-locales).
16702
16703 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16704             Phil Blundell <pb@pbcl.net>
16705
16706         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
16707         * nptl/tst-cancel26.c: New file.
16708         * nptl/tst-cancel27.c: Likewise.
16709
16710 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
16711
16712         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
16713         __ILP32__ isn't defined.
16714         (lrint): Likewise.
16715         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
16716         (lrintf): Likewise.
16717         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
16718         (lrintl): Likewise.
16719         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
16720         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
16721         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
16722
16723 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16724
16725         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16726         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16727
16728         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
16729         file.
16730         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
16731         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16732
16733 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16734
16735         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
16736         configure test.
16737         * sysdeps/i386/configure: Regenerated.
16738         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
16739         configure test.
16740         * sysdeps/x86_64/configure: Regenerated.
16741         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
16742         Make code unconditional.
16743
16744         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
16745         test.
16746         * sysdeps/i386/configure: Regenerated.
16747         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
16748         test.
16749         * sysdeps/x86_64/configure: Regenerated.
16750         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
16751         Make code unconditional.
16752         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
16753         Likewise.
16754         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
16755         Likewise.
16756         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16757         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
16758         code unconditional.
16759         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16760         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
16761         code unconditional.
16762         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16763         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
16764         code unconditional.
16765         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
16766         code unconditional.
16767         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16768         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
16769         code unconditional.
16770         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16771         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
16772         code unconditional.
16773         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16774         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
16775         code unconditional.
16776         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16777         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
16778         code unconditional.
16779         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16780         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
16781
16782         [BZ #19095]
16783         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
16784         mantissa to long int before shifting left.
16785
16786 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16787
16788         [BZ #19094]
16789         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
16790         <limits.h>.
16791         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16792         when result overflows but exception would not result from cast.
16793         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
16794         <limits.h>.
16795         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16796         when result overflows but exception would not result from cast.
16797         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
16798         <limits.h>.
16799         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16800         when result overflows but exception would not result from cast.
16801         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
16802         <limits.h>.
16803         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16804         when result overflows but exception would not result from cast.
16805         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
16806         <limits.h>.
16807         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16808         when result overflows but exception would not result from cast.
16809         * math/libm-test.inc (lrint_test_data): Add more tests.
16810         (llrint_test_data): Likewise.
16811
16812 2015-10-08  Roland McGrath  <roland@hack.frob.com>
16813
16814         [BZ #18872]
16815         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
16816         Move out from under [$(run-built-tests) = yes] conditional.
16817         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
16818         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
16819
16820 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
16821
16822         [BZ #18589]
16823         * string/Makefile (tests): Add bug-strcoll2.
16824         (LOCALES): Add cs_CZ.UTF-8.
16825         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
16826
16827         [BZ #18589]
16828         * string/bug-strcoll2.c: New file.
16829         * locale/categories.def: Revert commit
16830         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
16831         * locale/langinfo.h: Likewise.
16832         * locale/localeinfo.h: Likewise.
16833         * locale/C-collate.c: Likewise.
16834         * locale/programs/ld-collate.c (collate_output): Likewise.
16835         * string/strcoll_l.c (STRDIFF): Likewise.
16836         (STRCOLL): Likewise.
16837         * wcsmbs/wcscoll_l.c: Likewise.
16838
16839 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16840
16841         * math/libm-test.inc (lround_test_data): Do not expect the absence
16842         of "inexact" for some tests with non-integer arguments.
16843         (llround_test_data): Likewise.
16844
16845         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
16846         test.
16847         (libc_cv_cc_sse2avx): Likewise.
16848         * sysdeps/i386/configure: Regenerated.
16849         * sysdeps/i386/i686/multiarch/Makefile
16850         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
16851         [$(subdir) = math].
16852         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
16853         code unconditional.
16854         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16855         Likewise.
16856         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
16857         Likewise.
16858         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16859         Likewise.
16860         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
16861         test.
16862         (libc_cv_cc_sse2avx): Likewise.
16863         * sysdeps/x86_64/configure: Regenerated.
16864         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
16865         unconditional.
16866         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
16867         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
16868         unconditional.
16869         (_dl_runtime_profile)
16870         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
16871         conditional code.
16872         * sysdeps/x86_64/fpu/multiarch/Makefile
16873         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
16874         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
16875         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16876         * sysdeps/x86_64/fpu/multiarch/e_exp.c
16877         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16878         * sysdeps/x86_64/fpu/multiarch/e_log.c
16879         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16880         * sysdeps/x86_64/fpu/multiarch/s_atan.c
16881         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16882         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16883         Likewise.
16884         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16885         Likewise.
16886         * sysdeps/x86_64/fpu/multiarch/s_sin.c
16887         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16888         * sysdeps/x86_64/fpu/multiarch/s_tan.c
16889         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16890         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
16891         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
16892         (HAVE_SSE2AVX_SUPPORT): Likewise.
16893
16894 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
16895
16896         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
16897         instead of #pragma optimize.
16898
16899 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16900
16901         [BZ #17195]
16902         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
16903         as is similarly done in systrim and _int_free already.
16904
16905 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16906
16907         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
16908
16909 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16910
16911         [BZ #19088]
16912         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
16913         <limits.h>.
16914         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16915         overflows but exception would not result from cast.
16916         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
16917         and <limits.h>.
16918         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16919         overflows but exception would not result from cast.
16920         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
16921         <limits.h>.
16922         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16923         overflows but exception would not result from cast.
16924         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
16925         <limits.h>.
16926         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16927         overflows but exception would not result from cast.
16928         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
16929         <limits.h>.
16930         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16931         overflows but exception would not result from cast.
16932         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
16933         <limits.h>.
16934         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16935         overflows but exception would not result from cast.
16936         * math/libm-test.inc (lround_test_data): Add more tests.
16937         (llround_test_data): Likewise.
16938
16939 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
16940
16941         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
16942         (CFLAGS-ialloc.c): Ditto.
16943         (CFLAGS-scheck.c): Ditto.
16944
16945 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16946
16947         [BZ #19086]
16948         * manual/filesys.texi (Storage Allocation): Fix argument order for
16949         posix_fallocate64.
16950
16951 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16952
16953         [BZ #19085]
16954         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
16955         exponent below 48 inside case for non-overflowing exponent.
16956         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
16957
16958 2015-10-07  Florian Weimer  <fweimer@redhat.com>
16959
16960         * iconvdata/cp737.h (from_idx): Add const.
16961         * iconvdata/cp775.h (from_idx): Likewise.
16962
16963 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16964
16965         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
16966         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
16967         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
16968
16969         [BZ #19079]
16970         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
16971         file, conditioned on [!_LP64].
16972         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
16973         [!_LP64] (__lround): Do not define as function or alias.
16974         [!_LP64] (lround): Likewise.
16975         [!_LP64] (__lroundl): Likewise.
16976         [!_LP64] (lroundl): Likewise.
16977         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
16978         macro.
16979         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
16980         Likewise.
16981
16982 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16983
16984         * math/libm-test.inc (lrint_test_data): Add more tests.
16985         (llrint_test_data): Likewise.
16986         (lround_test_data): Likewise.
16987         (llround_test_data): Likewise.
16988
16989         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
16990         (llrint_test_data): Add tests used for lrint.
16991
16992         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
16993         test.
16994         * sysdeps/i386/configure: Regenerated.
16995         * sysdeps/i386/i686/multiarch/Makefile
16996         [$(config-cflags-sse4) = yes]: Make code unconditional.
16997         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16998         Likewise.
16999         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
17000         Likewise.
17001         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
17002         test.
17003         * sysdeps/x86_64/configure: Regenerated.
17004         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
17005         Make code unconditional.
17006         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
17007         Likewise.
17008         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
17009         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
17010
17011         * scripts/rpm2dynsym.sh: Remove file.
17012
17013 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17014
17015         * configure.ac (libc_cv_cxx_thread_local): Define.
17016         * configure: Regenerate.
17017         * config.make.in (have-cxx-thread_local): Define.
17018         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
17019         (LDLIBS-tst-thread_local1): Define.
17020         (tests): Add tst-thread_local1.
17021         [have-cxx-thread_local != yes] (tests-unsupported): Add
17022         tst-thread_local1.
17023         * nptl/tst-thread_local1.cc: New file.
17024
17025 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
17026
17027         [BZ #19078]
17028         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
17029         (u_thres): Likewise.
17030         (__expl): Determine whether to call __kernel_standard_l based on
17031         value of result, not argument.
17032
17033         * math/libm-test.inc (scalb_test_data): Add more expectations for
17034         the "inexact" exception.
17035
17036         [BZ #19077]
17037         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
17038         0.0L for argument 1.0L.
17039
17040         [BZ #19076]
17041         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
17042         constant 0.0L when computing infinite result.
17043
17044 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17045
17046         [BZ #10432]
17047         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
17048         malloc_usable_size.
17049
17050 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17051
17052         [BZ #19018]
17053         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
17054         Mangle function pointer before storing it.
17055         (__call_tls_dtors): Demangle function pointer before calling it.
17056
17057 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17058
17059         [BZ #19012]
17060         * iconv/gconv_db.c (gen_steps): Check for additional errors.
17061         Clean up on failure.
17062
17063 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
17064
17065         [BZ #19071]
17066         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
17067         long int variable to store possibly incremented high part of
17068         mantissa.
17069         * math/libm-test.inc (lround_test_data): Add tests used for
17070         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
17071         for tests requiring 64-bit long.  Do not condition tests on
17072         [TEST_FLOAT] unnecessarily.
17073         (llround_test_data): Add tests used for lround.  Add another
17074         expectation for the "inexact" exception.  Do not condition tests
17075         on [TEST_FLOAT] unnecessarily.
17076
17077         [BZ #887]
17078         [BZ #19049]
17079         [BZ #19050]
17080         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
17081         * sysdeps/ieee754/dbl-64/e_log10.c: Include
17082         <fix-int-fp-convert-zero.h>.
17083         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17084         * sysdeps/ieee754/dbl-64/e_log2.c: Include
17085         <fix-int-fp-convert-zero.h>.
17086         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17087         * sysdeps/ieee754/dbl-64/s_erf.c: Include
17088         <fix-int-fp-convert-zero.h>.
17089         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17090         * sysdeps/ieee754/dbl-64/s_logb.c: Include
17091         <fix-int-fp-convert-zero.h>.
17092         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17093         * sysdeps/ieee754/flt-32/e_log10f.c: Include
17094         <fix-int-fp-convert-zero.h>.
17095         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17096         * sysdeps/ieee754/flt-32/e_log2f.c: Include
17097         <fix-int-fp-convert-zero.h>.
17098         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17099         * sysdeps/ieee754/flt-32/s_erff.c: Include
17100         <fix-int-fp-convert-zero.h>.
17101         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17102         * sysdeps/ieee754/flt-32/s_logbf.c: Include
17103         <fix-int-fp-convert-zero.h>.
17104         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17105         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
17106         <fix-int-fp-convert-zero.h>.
17107         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17108         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
17109         <fix-int-fp-convert-zero.h>.
17110         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17111         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
17112         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
17113         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
17114         file.
17115         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
17116
17117 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
17118
17119         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17120
17121 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
17122
17123         [BZ #19059]
17124         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
17125         overflowing computation.
17126         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17127         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17128         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17129         Likewise.
17130         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17131         Likewise.
17132         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17133         Likewise.
17134         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17135         Likewise.
17136         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17137         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17138         Likewise.
17139         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17140         Likewise.
17141         * math/libm-test.inc (nexttoward_test_data): Add more tests.
17142
17143         * nss/rewrite_field.c (__nss_rewrite_field): Use
17144         internal_function.
17145         * nss/valid_field.c (__nss_valid_field): Likewise.
17146         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
17147
17148 2015-10-02  Florian Weimer  <fweimer@redhat.com>
17149
17150         [BZ #18724]
17151         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
17152         (__nss_invalid_field_characters, __nss_valid_field)
17153         (__nss_valid_list_field, __nss_rewrite_field): Declare.
17154         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
17155         tst-field.c: New file.
17156         * nss/Makefile (routines): Add valid_field, rewrite_field.
17157         (tests-static): Define unconditionally.
17158         (tests): Include tests-static.
17159         [build-static-nss] (tests-static): Use append.
17160         [build-static-nss] (tests): Remove modification.
17161         * nss/getent.c (print_group): Call putgrent.  Report error.
17162         (print_gshadow): Call putsgent.  Report error.
17163         (print_passwd): Call putpwent.  Report error.
17164         (print_shadow): Call putspent.  Report error.
17165         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
17166         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
17167         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
17168         name, password, directory, shell fields for valid syntax.  Rewrite
17169         GECOS field to match syntax.
17170         * pwd/Makefile (tests): Add tst-putpwent.
17171         * pwd/tst-putpwent.c: New file.
17172         * grp/putgrent.c (putgrent): Convert to ISO function definition.
17173         Check grName, grpasswd, gr_mem fields for valid syntax.
17174         Change loop variable i to size_t.
17175         * grp/Makefile (tests): Add tst-putgrent.
17176         * grp/tst-putgrent.c: New file.
17177         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
17178         valid syntax.
17179         * shadow/Makefile (tests): Add tst-putspent.
17180         * shadow/tst-putspent.c: New file.
17181         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
17182         sg_mem fields for valid syntax.
17183         * gshadow/Makefile (tests): Add tst-putsgent.
17184         * gshadow/tst-putsgent.c: New file.
17185
17186 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17187
17188         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
17189         assembly instructions.
17190
17191 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17192
17193         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
17194         prefix from operands.
17195
17196 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
17197
17198         [BZ #16347]
17199         [BZ #19046]
17200         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
17201         <libc-internal.h>.
17202         (MAXLGM): Do not use diagnostic control macros.
17203         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
17204         threshold for ldbl-128ibm.
17205         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
17206         instead of multiplying by log then subtracting.
17207         * math/auto-libm-test-in: Add more tests of lgamma.
17208         * math/auto-libm-test-out: Regenerated.
17209
17210         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
17211         (TYPE_HEX_DIG): Likewise.
17212         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
17213         precisions when printing floating-point numbers.
17214         (check_float_internal): Likewise.
17215
17216 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17217
17218         [BZ #16620]
17219         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
17220         of log (10) rounded downward to 48 bits.
17221         (log10_low): Use corresponding low part of log (10).
17222
17223         [BZ #19032]
17224         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
17225         compute result as (x - x) / (x - x) not as 0 / 0.
17226         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
17227         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
17228
17229         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
17230         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
17231         and expm1.
17232         * math/auto-libm-test-out: Regenerated.
17233         * math/libm-test.inc (acos_test_data): Add more tests.
17234         (asin_test_data): Likewise.
17235         (asinh_test_data): Likewise.
17236         (atan_test_data): Likewise.
17237         (atanh_test_data): Likewise.
17238         (atan2_test_data): Likewise.
17239         (cbrt_test_data): Likewise.
17240         (ceil_test_data): Likewise.
17241         (copysign_test_data): Likewise.
17242         (cos_test_data): Likewise.
17243         (cosh_test_data): Likewise.
17244         (erf_test_data): Likewise.
17245         (erfc_test_data): Likewise.
17246         (exp_test_data): Likewise.
17247         (exp10_test_data): Likewise.
17248         (exp2_test_data): Likewise.
17249         (expm1_test_data): Likewise.
17250         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17251
17252 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
17253
17254         [BZ #19006]
17255         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
17256         to ...
17257         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
17258         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
17259         to ...
17260         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
17261         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
17262         to ...
17263         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
17264         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
17265         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
17266         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
17267         to ...
17268         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
17269         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
17270         Moved to ...
17271         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
17272         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
17273         Moved to ...
17274         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
17275         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
17276         to ...
17277         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
17278         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
17279         Moved to ...
17280         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
17281         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
17282         to ...
17283         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
17284         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
17285         Removed.
17286         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
17287         Likewise.
17288         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
17289         Likewise.
17290         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
17291         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
17292         Likewise.
17293         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
17294         Likewise.
17295         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
17296         Likewise.
17297         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
17298         Likewise.
17299         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
17300         Likewise.
17301         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
17302         Likewise.
17303         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
17304         Likewise.
17305         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
17306         Likewise.
17307         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
17308         Likewise.
17309         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
17310         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
17311         Likewise.
17312         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
17313         Likewise.
17314         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
17315         Likewise.
17316         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
17317         Likewise.
17318         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
17319         Likewise.
17320         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
17321         Replace ../i486/pthread_cond_timedwait.S with
17322         ../pthread_cond_timedwait.S.
17323
17324 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17325
17326         * math/libm-test.inc (acos_test_data): Refine expectations for
17327         errno and "inexact" exceptions.
17328         (acosh_test_data): Likewise.
17329         (asin_test_data): Likewise.
17330         (asinh_test_data): Likewise.
17331         (atan_test_data): Likewise.
17332         (atanh_test_data): Likewise.
17333         (atan2_test_data): Likewise.
17334         (cbrt_test_data): Likewise.
17335         (ceil_test_data): Likewise.
17336         (copysign_test_data): Likewise.
17337         (cosh_test_data): Likewise.
17338         (erf_test_data): Likewise.
17339         (erfc_test_data): Likewise.
17340         (exp_test_data): Likewise.
17341         (exp10_test_data): Likewise.
17342         (exp2_test_data): Likewise.
17343         (expm1_test_data): Likewise.
17344         (fabs_test_data): Likewise.
17345         (floor_test_data): Likewise.
17346         (fma_test_data): Likewise.
17347         (fmax_test_data): Likewise.
17348         (fmin_test_data): Likewise.
17349         (fmod_test_data): Likewise.
17350         (fpclassify_test_data): Likewise.
17351         (frexp_test_data): Likewise.
17352         (hypot_test_data): Likewise.
17353         (ilogb_test_data): Likewise.
17354         (isgreater_test_data): Likewise.
17355         (isgreaterequal_test_data): Likewise.
17356         (isinf_test_data): Likewise.
17357         (isless_test_data): Likewise.
17358         (islessequal_test_data): Likewise.
17359         (islessgreater_test_data): Likewise.
17360         (isnan_test_data): Likewise.
17361         (isnormal_test_data): Likewise.
17362         (issignaling_test_data): Likewise.
17363         (isunordered_test_data): Likewise.
17364         (j0_test_data): Likewise.
17365         (j1_test_data): Likewise.
17366         (jn_test_data): Likewise.
17367         (lgamma_test_data): Likewise.
17368         (lrint_test_data): Likewise.
17369         (llrint_test_data): Likewise.
17370         (log_test_data): Likewise.
17371         (log10_test_data): Likewise.
17372         (log1p_test_data): Likewise.
17373         (log2_test_data): Likewise.
17374         (logb_test_data): Likewise.
17375         (lround_test_data): Likewise.
17376         (llround_test_data): Likewise.
17377         (modf_test_data): Likewise.
17378         (nearbyint_test_data): Likewise.
17379         (nextafter_test_data): Likewise.
17380         (nexttoward_test_data): Likewise.
17381         (pow_test_data): Likewise.
17382         (remainder_test_data): Likewise.
17383         (remquo_test_data): Likewise.
17384         (rint_test_data): Likewise.
17385         (round_test_data): Likewise.
17386         (signbit_test_data): Likewise.
17387         (sinh_test_data): Likewise.
17388         (sqrt_test_data): Likewise.
17389         (tanh_test_data): Likewise.
17390         (tgamma_test_data): Likewise.
17391         (trunc_test_data): Likewise.
17392         (y0_test_data): Likewise.
17393         (y1_test_data): Likewise.
17394         (yn_test_data): Likewise.
17395         (significand_test_data): Likewise.
17396
17397 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
17398
17399         * manual/filesys.texi (Storage Allocation): Document that
17400         posix_fallocate emulation fails when fd is open with O_WRONLY.
17401
17402 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
17403
17404         [BZ #19016]
17405         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
17406         allow more cases with X^2 + Y^2 >= 0.5.
17407         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
17408         normal element in sum instead of special-casing based on values of
17409         arguments.
17410         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
17411         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
17412         -1 as normal element in sum instead of special-casing based on
17413         values of arguments.
17414         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
17415         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
17416         (__x2y2m1): Update comment.
17417         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
17418         as normal element in sum instead of special-casing based on values
17419         of arguments.
17420         * math/s_clog.c (__clog): Handle more cases using log1p without
17421         hypot.
17422         * math/s_clog10.c (__clog10): Likewise.
17423         * math/s_clog10f.c (__clog10f): Likewise.
17424         * math/s_clog10l.c (__clog10l): Likewise.
17425         * math/s_clogf.c (__clogf): Likewise.
17426         * math/s_clogl.c (__clogl): Likewise.
17427         * math/auto-libm-test-in: Add more tests of clog and clog10.
17428         * math/auto-libm-test-out: Regenerated.
17429         * sysdeps/i386/fpu/libm-test-ulps: Update.
17430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17431
17432 2015-09-28  Martin Sebor  <msebor@redhat.com>
17433
17434         [BZ #18969]
17435         * string/Makefile (LOCALES): Define.
17436         (gen-locales.mk): Include.
17437         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
17438         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
17439         * string/tst-strxfrm2.c (do_test): Print the name of the locale
17440         on setlocale failure.
17441
17442 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
17443
17444         [BZ #18985]
17445         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
17446         (__strftime_internal): Likewise.
17447         * time/tst-strftime.c (do_bz18985): New test.
17448         (do_test): Call it.
17449
17450 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
17451
17452         [BZ #18956]
17453         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
17454         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
17455         extracting high part.
17456         * math/auto-libm-test-in: Add another test of pow.
17457         * math/auto-libm-test-out: Regenerated.
17458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17459
17460 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17461
17462         [BZ #18825]
17463         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
17464         New macro.
17465         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
17466         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17467         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
17468         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
17469         DBL_NARROW_EVAL, reloading the PIC register as needed.
17470         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
17471         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
17472         FLT_NARROW_EVAL.  Use separate return path for case when first
17473         argument is NaN.
17474         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
17475         DEFINE_LDBL_MIN.
17476         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
17477         PIC register.
17478         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
17479         math_check_force_underflow_nonneg.
17480         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
17481         underflow for subnormal result.
17482         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17483         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
17484         math_check_force_underflow_nonneg.
17485         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
17486         math_check_force_underflow.
17487         * sysdeps/x86_64/fpu/x86_64-math-asm.h
17488         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
17489         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
17490         DEFINE_LDBL_MIN.
17491         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
17492         * math/auto-libm-test-in: Add more tests of pow.
17493         * math/auto-libm-test-out: Regenerated.
17494
17495 2015-09-25  Florian Weimer  <fweimer@redhat.com>
17496
17497         * nss/bug17079.c (init_test_items): Add diagnostic for
17498         inconsistent entries.
17499         (test_buffer_size): Skip inconsistent entries.
17500
17501 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17502
17503         [BZ #13304]
17504         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
17505         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17506         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
17507
17508         [BZ #13304]
17509         * sysdeps/microblaze/s_fma.c: New file.
17510         * sysdeps/microblaze/s_fmaf.c: Likewise.
17511         * sysdeps/microblaze/sfp-machine.h: Likewise.
17512
17513 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
17514
17515         [BZ #17250]
17516         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
17517         member.
17518
17519 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17520
17521         [BZ #18803]
17522         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
17523         (MO): New macro.
17524         (__ieee754_hypot) [PIC]: Load PIC register.
17525         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
17526         DBL_NARROW_EVAL.
17527         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
17528         math_check_force_underflow_nonneg in case where result might be
17529         tiny.
17530         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
17531         Likewise.
17532         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
17533         Likewise.
17534         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17535         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17536         * math/auto-libm-test-in: Add more tests of hypot.
17537         * math/auto-libm-test-out: Regenerated.
17538
17539 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
17540
17541         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
17542
17543 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17544
17545         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
17546         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
17547         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17548         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17549         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
17550         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17551         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17552
17553         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
17554         LOAD_PIC_REG.
17555
17556         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
17557         (FLT_CHECK_FORCE_UFLOW): Likewise.
17558         (DBL_CHECK_FORCE_UFLOW): Likewise.
17559         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
17560         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
17561         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
17562         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17563         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17564         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17565         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17566         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17567         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
17568         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17569         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
17570         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
17571         (flt_min): Replace with use of DEFINE_FLT_MIN.
17572         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
17573         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
17574         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17575         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
17576         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
17577         (flt_min): Replace with use of DEFINE_FLT_MIN.
17578         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
17579         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
17580         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17581         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
17582         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
17583         (flt_min): Replace with use of DEFINE_FLT_MIN.
17584         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
17585         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
17586         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17587         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17588         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
17589         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17590         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17591         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
17592         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17593         (__atan): Use DBL_CHECK_FORCE_UFLOW.
17594         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
17595         (flt_min): Replace with use of DEFINE_FLT_MIN.
17596         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
17597         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
17598         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17599         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
17600         main computation.
17601         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
17602         (flt_min): Replace with use of DEFINE_FLT_MIN.
17603         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
17604         main computation.
17605         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
17606         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17607         (MO): New macro.
17608         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
17609         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
17610         (flt_min): Replace with use of DEFINE_FLT_MIN.
17611         (MO): New macro.
17612         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
17613         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
17614         (__log1pl): Use MO.
17615
17616         [BZ #19003]
17617         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
17618         $(config-cflags-nofma).
17619
17620 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17621
17622         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17623
17624 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
17625
17626         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
17627         (TWO127): Likewise.
17628
17629         * sysdeps/generic/math_private.h (fabs_tg): New macro.
17630         (min_of_type): Likewise.
17631         (math_check_force_underflow): Likewise.
17632         (math_check_force_underflow_nonneg): Likewise.
17633         (math_check_force_underflow_complex): Likewise.
17634         * math/e_exp2l.c (__ieee754_exp2l): Use
17635         math_check_force_underflow_nonneg.
17636         * math/k_casinh.c (__kernel_casinh): Likewise.
17637         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17638         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17639         * math/s_catan.c (__catan): Use
17640         math_check_force_underflow_complex.
17641         * math/s_catanf.c (__catanf): Likewise.
17642         * math/s_catanh.c (__catanh): Likewise.
17643         * math/s_catanhf.c (__catanhf): Likewise.
17644         * math/s_catanhl.c (__catanhl): Likewise.
17645         * math/s_catanl.c (__catanl): Likewise.
17646         * math/s_ccosh.c (__ccosh): Likewise.
17647         * math/s_ccoshf.c (__ccoshf): Likewise.
17648         * math/s_ccoshl.c (__ccoshl): Likewise.
17649         * math/s_cexp.c (__cexp): Likewise.
17650         * math/s_cexpf.c (__cexpf): Likewise.
17651         * math/s_cexpl.c (__cexpl): Likewise.
17652         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
17653         * math/s_clog10.c (__clog10): Likewise.
17654         * math/s_clog10f.c (__clog10f): Likewise.
17655         * math/s_clog10l.c (__clog10l): Likewise.
17656         * math/s_clogf.c (__clogf): Likewise.
17657         * math/s_clogl.c (__clogl): Likewise.
17658         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
17659         * math/s_csinf.c (__csinf): Likewise.
17660         * math/s_csinh.c (__csinh): Likewise.
17661         * math/s_csinhf.c (__csinhf): Likewise.
17662         * math/s_csinhl.c (__csinhl): Likewise.
17663         * math/s_csinl.c (__csinl): Likewise.
17664         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
17665         * math/s_csqrtf.c (__csqrtf): Likewise.
17666         * math/s_csqrtl.c (__csqrtl): Likewise.
17667         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
17668         * math/s_ctanf.c (__ctanf): Likewise.
17669         * math/s_ctanh.c (__ctanh): Likewise.
17670         * math/s_ctanhf.c (__ctanhf): Likewise.
17671         * math/s_ctanhl.c (__ctanhl): Likewise.
17672         * math/s_ctanl.c (__ctanl): Likewise.
17673         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
17674         instead of volatile.
17675         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
17676         math_check_force_underflow.
17677         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
17678         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
17679         volatile when forcing underflow.
17680         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17681         math_check_force_underflow_nonneg.
17682         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
17683         Likewise.
17684         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
17685         math_check_force_underflow.
17686         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17687         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17688         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17689         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
17690         math_check_force_underflow_nonneg.
17691         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
17692         math_check_force_underflow.
17693         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
17694         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
17695         instead of volatile.
17696         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
17697         math_check_force_underflow.
17698         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17699         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17700         math_check_force_underflow_nonneg.
17701         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
17702         math_check_force_underflow.
17703         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17704         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
17705         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
17706         math_check_force_underflow_nonneg.
17707         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17708         Likewise.
17709         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
17710         math_check_force_underflow.
17711         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
17712         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17713         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
17714         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
17715         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17716         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
17717         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
17718         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
17719         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
17720         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
17721         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17722         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
17723         Likewise.
17724         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
17725         math_check_force_underflow_nonneg.
17726         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17727         Likewise.
17728         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
17729         math_check_force_underflow.
17730         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17731         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
17732         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17733         Likewise.
17734         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
17735         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
17736         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
17737         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
17738         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
17739         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
17740         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
17741         instead of volatile.
17742         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
17743         math_check_force_underflow.
17744         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
17745         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
17746         math_check_force_underflow.
17747         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
17748         Likewise.
17749         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17750         Use math_check_force_underflow_nonneg.
17751         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
17752         math_check_force_underflow.
17753         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
17754         Likewise.
17755         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17756         Likewise.
17757         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17758         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
17759         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
17760         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
17761         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
17762         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
17763         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17764         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
17765         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
17766         math_check_force_underflow_nonneg.
17767         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
17768         math_check_force_underflow.
17769         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17770         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
17771         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
17772         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
17773         math_check_force_underflow_nonneg.
17774         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
17775         math_check_force_underflow.
17776         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
17777         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
17778         instead of volatile.
17779         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
17780         math_check_force_underflow.
17781
17782         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
17783         * stdlib/strtod_l.c: Include <math_private.h>.
17784         (overflow_value): Use math_narrow_eval.
17785         (underflow_value): Likewise.
17786         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17787         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17788         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17789         (__ieee754_gamma_r): Likewise.
17790         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
17791         Likewise.
17792         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
17793         Likewise.
17794         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
17795         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
17796         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
17797         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
17798         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17799         (__ieee754_gammaf_r): Likewise.
17800         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17801         Likewise.
17802         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
17803         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
17804         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
17805         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
17806         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
17807         volatile.
17808         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
17809         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
17810         math_narrow_eval.
17811         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17812         Likewise.
17813         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17814         Likewise.
17815         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
17816         Likewise.
17817         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
17818         volatile.
17819         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
17820         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
17821         math_narrow_eval.
17822         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17823         Likewise.
17824         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17825         Likewise.
17826
17827 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
17828
17829         * nptl/Versions: Remove ignored symbols.
17830
17831 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17832
17833         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
17834         * nss/Makefile (tests): Update.
17835
17836 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17837
17838         * nss/bug18287.c: New file.
17839         * nss/Makefile (tests): Add bug18287.
17840
17841 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17842
17843         * mach/Versions (__mach_host_self_): Add symbol.
17844
17845 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17846
17847         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
17848         vm_page_size.
17849
17850 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17851
17852         Really fix sysdeps/i386/fpu/s_scalbn.S build
17853
17854         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
17855         (libc: GLIBC_2_22): Remove unused version set.
17856
17857 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17858
17859         * config.make.in (enable-timezone-tools): New variable.
17860         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
17861         (enable_timezone_tools): Export to generated files.
17862         * configure: Regenerate.
17863         * INSTALL: Regenerate.
17864         * manual/install.texi (--disable-timezone-tools): Document new flag.
17865         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
17866         ifeq ($(enable-timezone-tools),yes) check.
17867
17868 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17869
17870         * timezone/Makefile: Revert previous change.
17871
17872         [BZ #18980]
17873         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
17874         (DEFINE_DBL_MIN): Likewise.
17875         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17876         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17877         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17878         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17879         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
17880         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17881         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17882         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
17883         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
17884         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17885         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17886         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
17887         (flt_min): Replace with use of DEFINE_FLT_MIN.
17888         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17889         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
17890         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17891         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17892         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
17893         (flt_min): Replace with use of DEFINE_FLT_MIN.
17894         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17895         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
17896         (flt_min): Replace with use of DEFINE_FLT_MIN.
17897         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17898         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
17899         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
17900         (__ieee754_hypot): Use DBL_NARROW_EVAL.
17901         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
17902         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
17903         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
17904         (__ieee754_pow): Use DBL_NARROW_EVAL.
17905         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
17906         (__ieee754_powf): Use FLT_NARROW_EVAL.
17907         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
17908         (__ieee754_expf_sse2): Convert double-precision result to single
17909         precision.
17910         * sysdeps/i386/fpu/libm-test-ulps: Update.
17911
17912 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17913
17914         * timezone/Makefile: Ignore unused variable errors due to private.h
17915         (time_t_min) and (time_t_max).
17916         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
17917         Likewise.
17918
17919 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17920
17921         [BZ #18981]
17922         * sysdeps/i386/fpu/i386-math-asm.h: New file.
17923         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
17924         (__ieee754_scalb): Use DBL_NARROW_EVAL.
17925         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
17926         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
17927         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
17928         (__scalbn): Use DBL_NARROW_EVAL.
17929         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
17930         (__scalbnf): Use FLT_NARROW_EVAL.
17931
17932 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17933
17934         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
17935         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
17936         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
17937         * stdio-common/printf_fp.c (___printf_fp):
17938         Use signbit to get the sign. Use isinf macro to allow inlining.
17939         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
17940         * stdio-common/printf_size.c (__printf_size): Likewise.
17941
17942 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17943
17944         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
17945
17946 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17947
17948         [BZ #18980]
17949         * sysdeps/generic/math_private.h: Include <float.h>.
17950         (math_narrow_eval): New macro.
17951         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17952         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
17953         math_narrow_eval on overflowing return value.
17954         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
17955         Likewise.
17956         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17957         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
17958         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
17959         Likewise.
17960         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17961
17962 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17963
17964         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
17965         * math/Makefile: Remove isinf_ns.c.
17966         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
17967         * math/multc3.c (__multc3): Likewise.
17968         * math/s_casin.c (__casin): Likewise.
17969         * math/s_casinf.c (__casinf): Likewise.
17970         * math/s_casinl.c (__casinl): Likewise.
17971         * math/s_cproj.c (__cproj): Likewise.
17972         * math/s_cprojf.c (__cprojf): Likewise.
17973         * math/s_cprojl.c (__cprofl): Likewise.
17974         * math/s_ctan.c (__ctan): Likewise.
17975         * math/s_ctanf.c (__ctanf): Likewise.
17976         * math/s_ctanh.c (__ctanh): Likewise.
17977         * math/s_ctanhf.c (__ctanhf): Likewise.
17978         * math/s_ctanhl.c (__ctanhl): Likewise.
17979         * math/s_ctanl.c (__ctanl): Likewise.
17980         * math/w_fmod.c (__fmod): Likewise.
17981         * math/w_fmodf.c (__fmodf): Likewise.
17982         * math/w_fmodl.c (_fmodl): Likewise.
17983         * math/w_remainder.c (__remainder): Likewise.
17984         * math/w_remainderf.c (__remainderf): Likewise.
17985         * math/w_remainderl.c (__remainderl): Likewise.
17986         * math/w_scalb.c (__scalb): Likewise.
17987         * math/w_scalbf.c (__scalbf): Likewise.
17988         * math/w_scalbl.c (__scalbl): Likewise.
17989         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
17990         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
17991         with isinf.
17992         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
17993         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
17994         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
17995         __isinf_nsf with isinf.
17996         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
17997         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
17998         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
17999         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
18000         with isinf.
18001         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
18002         __isinf_nsl with isinf.
18003         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
18004         with isinf.
18005         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
18006         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
18007         __isinf_nsl with isinf.
18008         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
18009         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
18010         with isinf.
18011
18012 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18013
18014         * resolv/base64.c (rcsid): Remove unused static.
18015         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
18016         static.  (tqpi1): Likewise.
18017         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
18018         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
18019         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
18020         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
18021         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
18022         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
18023         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
18024         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
18025         Likewise.
18026
18027 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
18028
18029         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
18030         <nptl/pthreadP.h>.
18031         (_longjmp_unwind): Use __libc_ptf_call.
18032         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
18033
18034 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
18035
18036         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
18037         * sysdeps/arm/__longjmp.S: Likewise.
18038
18039 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18040
18041         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
18042         Use __builtin_signbit.
18043         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
18044         Use __builtin_signbitf.
18045         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
18046         Use __builtin_signbitl.
18047         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
18048         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
18049
18050 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18051
18052         [BZ #15367]
18053         [BZ #17441]
18054
18055         * math/Makefile: Build test-snan.c with -fsignaling-nans.
18056         * math/math.h (fpclassify): Use __builtin_fpclassify when
18057         available.  (signbit): Use __builtin_signbit(f/l).
18058         (isfinite): Use__builtin_isfinite.  (isnormal): Use
18059         __builtin_isnormal.  (isnan): Use __builtin_isnan.
18060         (isinf): Use __builtin_isinf_sign.
18061
18062 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18063
18064         * benchtests/Makefile: Add bench-math-inlines, link with libm.
18065         * benchtests/bench-math-inlines.c: New benchmark.
18066         * benchtests/bench-util.h: New file.
18067         * benchtests/bench-util.c: New file.
18068         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
18069
18070 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
18071
18072         * elf/tst-dlmopen1.c: Define TEST_SO.
18073         (do_test): Use TEST_SO.
18074
18075         * elf/dl-load.c: Include libc-internal.h.
18076         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
18077
18078 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18079
18080         [BZ #17887]
18081         * time/strptime_l.c (__strptime_internal): Make %z accept
18082         [+-]HH:MM time zones.
18083
18084 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18085
18086         [BZ #17886]
18087         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
18088         valid time zone.
18089
18090 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
18091
18092         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
18093         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
18094         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18095         (__ASSUME_FDATASYNC): Delete.
18096
18097 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18098
18099         * conform/linknamespace.pl: Require weak undefined symbols to be
18100         in the standard namespace.
18101         (%strong_syms): Rename to %seen_syms.
18102         (%strong_seen): Rename to %seen_where.
18103
18104 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
18105
18106         [BZ #18970]
18107         * misc/error.c (error): Replace pthread_setcancelstate with
18108         __pthread_setcancelstate.
18109         (error_at_line): Likewise.
18110         * posix/wordexp.c (parse_comm): Likewise.
18111         * stdlib/fmtmsg.c (fmtmsg): Likewise.
18112         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
18113         (__pthread_setcancelstate): This.
18114         (pthread_setcancelstate): Add an alias.
18115         * nptl/nptl-init.c (pthread_functions): Replace
18116         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
18117         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
18118         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
18119         hidden_proto.
18120         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
18121         it with hidden_def.
18122         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
18123         (pthread_setcancelstate): Renamed to ...
18124         (__pthread_setcancelstate): This.
18125         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
18126         __libc_ptf_call with __pthread_setcancelstate.
18127
18128 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18129             Andreas Schwab  <schwab@suse.de>
18130
18131         [BZ #17118]
18132         * math/s_ctan.c (__ctan): Determine sign of zero real part of
18133         result when imaginary part of argument is infinite using sine and
18134         cosine.
18135         * math/s_ctanf.c (__ctanf): Likewise.
18136         * math/s_ctanl.c (__ctanl): Likewise.
18137         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
18138         of result when real part of argument is infinite using sine and
18139         cosine.
18140         * math/s_ctanhf.c (__ctanhf): Likewise.
18141         * math/s_ctanhl.c (__ctanhl): Likewise.
18142         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
18143         (ctanh_test_data): Add more tests of ctanh.
18144
18145 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18146
18147         [BZ #15384]
18148         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
18149         bit-mask as in subtraction.
18150         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
18151         Likewise.
18152         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
18153         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
18154         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
18155
18156         [BZ #18951]
18157         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
18158         underflow exception for small results.
18159         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18160         Likewise.
18161         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18162         Likewise.
18163         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18164         Likewise.
18165         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
18166         Likewise.
18167         * math/auto-libm-test-in: Add more tests of tgamma.
18168         * math/auto-libm-test-out: Regenerated.
18169
18170 2015-09-17  Andreas Schwab  <schwab@suse.de>
18171
18172         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
18173
18174 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18175
18176         [BZ #18977]
18177         * math/bits/mathcalls.h
18178         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
18179         not declare.
18180         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
18181         Likewise.
18182         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
18183         Likewise.
18184         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
18185         Likewise.
18186         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
18187         Likewise.
18188         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
18189         Likewise.
18190         * conform/data/math.h-data
18191         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
18192         function.
18193         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
18194         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
18195         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
18196         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
18197         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
18198         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
18199         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
18200         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
18201         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
18202         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
18203         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
18204
18205         [BZ #6803]
18206         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
18207         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
18208         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
18209         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
18210         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
18211         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
18212         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
18213         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
18214         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18215         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
18216         Likewise.
18217         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18218         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
18219         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
18220         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
18221         long_double_symbol calls.
18222         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
18223         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
18224         strong alias of __ldexpl.
18225         (scalbnl): Define using long_double_symbol.
18226         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
18227         Remove alias.
18228         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
18229         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
18230         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
18231         (scalbln_test_data): Add more errno expectations.
18232
18233 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
18234
18235         Cache the host port like we cache the task port.  This way we do not
18236         need to call the kernel just to get the port.  Furthermore, we no
18237         longer increase the reference count on every invocation of
18238         `mach_host_self'.
18239
18240         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
18241         Protect declarations against the macro expansion.
18242         * mach/mach_init.c (__mach_host_self_): New variable.
18243         (mach_init): Initialize `__mach_host_self_'.
18244         * mach/mach_init.h (__mach_host_self_): New declaration.
18245         (__mach_host_self, mach_host_self): New macros.
18246         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
18247         Release reference.
18248
18249 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18250
18251         [BZ #4404]
18252         * po/de.po: Update from Translation Project.
18253
18254         [BZ #16415]
18255         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
18256         (__expm1l): Remove code to handle positive infinity and overflow.
18257         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
18258         variable.
18259         (__expm1l): Remove code to handle positive infinity and overflow.
18260
18261 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18262             Paul Pluzhnikov  <ppluzhnikov@google.com>
18263
18264         [BZ #18872]
18265         * stdio-common/Makefile (tst-printf-bz18872): New test.
18266         (tst-printf-bz18872-mem.out): Likewise.
18267         * stdio-common/tst-printf-bz18872.sh: Generate new test.
18268         * stdio-common/vfprintf.c: Fix memory leaks.
18269
18270 2015-09-16  Andreas Schwab  <schwab@suse.de>
18271
18272         [BZ #17244]
18273         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
18274         Remove extra va_start/va_end calls.
18275
18276         [BZ #17243]
18277         * posix/execl.c (execl): Add missing va_end.
18278         * posix/execle.c (execle): Likewise.
18279         * posix/execlp.c (execlp): Likewise.
18280
18281 2015-09-15  Roland McGrath  <roland@hack.frob.com>
18282
18283         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
18284         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
18285
18286 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
18287
18288         [BZ #18967]
18289         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
18290         undefine around includes of <bits/mathcalls.h>.
18291         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
18292         not declare function.
18293         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
18294         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
18295         (scalb): Likewise.
18296         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
18297         not define macro.
18298         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
18299         variable.
18300         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
18301         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
18302         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
18303
18304         [BZ #18857]
18305         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
18306         return non-finite argument without doing ordered comparisons on
18307         it.
18308
18309         [BZ #16296]
18310         * math/fenv.h (fegetround): Use __attribute_pure__.
18311         * include/fenv.h (__fegetround): Likewise.
18312
18313         [BZ #18595]
18314         * math/s_ctan.c (__ctan): Force underflow exception for results
18315         whose real or imaginary part has small absolute value.
18316         * math/s_ctanf.c (__ctanf): Likewise.
18317         * math/s_ctanh.c (__ctanh): Likewise.
18318         * math/s_ctanhf.c (__ctanhf): Likewise.
18319         * math/s_ctanhl.c (__ctanhl): Likewise.
18320         * math/s_ctanl.c (__ctanl): Likewise.
18321         * math/auto-libm-test-in: Do not allow missing underflow for ctan
18322         and ctanh.  Add more tests of ctan and ctanh.
18323
18324         [BZ #15918]
18325         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
18326         handling of cases where one argument is an infinity.
18327
18328         [BZ #18875]
18329         [BZ #18966]
18330         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
18331         (MO): New macro.
18332         (__ieee754_exp10): For small results, force underflow exception
18333         and remove excess range and precision from return value.
18334         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
18335         (MO): New macro.
18336         (__ieee754_exp10f): For small results, force underflow exception
18337         and remove excess range and precision from return value.
18338         * math/auto-libm-test-in: Add more tests of exp10.
18339         * math/auto-libm-test-out: Regenerated.
18340
18341 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
18342
18343         [BZ #18875]
18344         [BZ #18961]
18345         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
18346         (MO): New macro.
18347         (__ieee754_exp): For small results, force underflow exception and
18348         remove excess range and precision from return value.
18349         (__exp_finite): Likewise.
18350         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
18351         (MO): New macro.
18352         (__ieee754_expf): For small results, force underflow exception and
18353         remove excess range and precision from return value.
18354         (__expf_finite): Likewise.
18355         * math/auto-libm-test-in: Add more tests of exp.
18356         * math/auto-libm-test-out: Regenerated.
18357
18358         [BZ #16521]
18359         [BZ #18875]
18360         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
18361         small results.
18362         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
18363         (MO): New macro.
18364         (__ieee754_exp2): For small results, force underflow exception and
18365         remove excess range and precision from return value.
18366         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
18367         (MO): New macro.
18368         (__ieee754_exp2f): For small results, force underflow exception
18369         and remove excess range and precision from return value.
18370         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
18371         (MO): New macro.
18372         (__ieee754_exp2l): Force underflow exception for small results.
18373         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
18374         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
18375         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
18376         (MO): New macro.
18377         (__ieee754_exp2l): Force underflow exception for small results.
18378         * math/auto-libm-test-in: Add more tests or exp2.
18379         * math/auto-libm-test-out: Regenerated.
18380
18381 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
18382
18383         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
18384
18385         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
18386         /dev/null.
18387
18388 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18389
18390         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18391         io fs process)): Drop spurious backslash.
18392
18393 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18394
18395         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
18396         Use sysinfo system call instead of parsing /proc/meminfo.
18397         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
18398         Likewise.
18399
18400 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
18401
18402         [BZ #16985]
18403         * programs/localedef.c (main): Display argv[remaining] when
18404         output_path is NULL.
18405
18406 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18407
18408         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18409         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
18410         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
18411         tanh.
18412         * math/auto-libm-test-out: Regenerated.
18413         * sysdeps/i386/fpu/libm-test-ulps: Update.
18414         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18415         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18417
18418 2015-09-11  Roland McGrath  <roland@hack.frob.com>
18419
18420         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
18421         Use 'override' keyword to freeze the value here, preventing
18422         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
18423
18424 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18425
18426         [BZ #14912]
18427         * sysdeps/aarch64/bits/atomic.h: Move to ...
18428         * sysdeps/aarch64/atomic-machine.h: ...here.
18429         (_AARCH64_BITS_ATOMIC_H): Rename macro to
18430         _AARCH64_ATOMIC_MACHINE_H.
18431         * sysdeps/alpha/bits/atomic.h: Move to ...
18432         * sysdeps/alpha/atomic-machine.h: ...here.
18433         * sysdeps/arm/bits/atomic.h: Move to ...
18434         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
18435         * bits/atomic.h: Move to ...
18436         * sysdeps/generic/atomic-machine.h: ...here.
18437         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18438         * sysdeps/i386/bits/atomic.h: Move to ...
18439         * sysdeps/i386/atomic-machine.h: ...here.
18440         * sysdeps/ia64/bits/atomic.h: Move to ...
18441         * sysdeps/ia64/atomic-machine.h: ...here.
18442         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
18443         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
18444         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18445         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
18446         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
18447         * sysdeps/microblaze/bits/atomic.h: Move to ...
18448         * sysdeps/microblaze/atomic-machine.h: ...here.
18449         * sysdeps/mips/bits/atomic.h: Move to ...
18450         * sysdeps/mips/atomic-machine.h: ...here.
18451         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
18452         * sysdeps/powerpc/bits/atomic.h: Move to ...
18453         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
18454         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
18455         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
18456         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
18457         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
18458         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
18459         <atomic-machine.h> instead of <bits/atomic.h>.
18460         * sysdeps/s390/bits/atomic.h: Move to ...
18461         * sysdeps/s390/atomic-machine.h: ...here.
18462         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
18463         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
18464         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18465         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
18466         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
18467         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
18468         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
18469         * sysdeps/tile/bits/atomic.h: Move to ...
18470         * sysdeps/tile/atomic-machine.h: ...here.
18471         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
18472         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
18473         <sysdeps/tile/atomic-machine.h> instead of
18474         <sysdeps/tile/bits/atomic.h>.
18475         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18476         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
18477         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
18478         <sysdeps/tile/atomic-machine.h> instead of
18479         <sysdeps/tile/bits/atomic.h>.
18480         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18481         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
18482         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
18483         <sysdeps/arm/atomic-machine.h> instead of
18484         <sysdeps/arm/bits/atomic.h>.
18485         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
18486         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
18487         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18488         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
18489         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
18490         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18491         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
18492         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
18493         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
18494         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
18495         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
18496         * sysdeps/x86_64/bits/atomic.h: Move to ...
18497         * sysdeps/x86_64/atomic-machine.h: ...here.
18498         * include/atomic.h: Include <atomic-machine.h> instead of
18499         <bits/atomic.h>.
18500
18501         * sysdeps/mips/mips32/libm-test-ulps: Update.
18502         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18503
18504         [BZ #18952]
18505         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
18506         not convert non-integer negative arguments to int to determine the
18507         value of signgam.
18508         * math/auto-libm-test-in: Add more tests of lgamma.
18509         * math/auto-libm-test-out: Regenerated.
18510
18511         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
18512         cosh, csqrt, erfc, expm1 and lgamma.
18513         * math/auto-libm-test-out: Regenerated.
18514         * sysdeps/i386/fpu/libm-test-ulps: Update.
18515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18516
18517 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
18518
18519         [BZ #2542]
18520         [BZ #2543]
18521         [BZ #2558]
18522         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
18523         __lgamma_neg for arguments from -28.0 to -2.0.
18524         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
18525         __lgamma_negf for arguments from -15.0 to -2.0.
18526         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
18527         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
18528         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
18529         Call __lgamma_negl for arguments from -33.0 to -2.0.
18530         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
18531         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
18532         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18533         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
18534         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
18535         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
18536         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
18537         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
18538         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
18539         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
18540         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
18541         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
18542         (__lgamma_neg): Likewise.
18543         (__lgamma_negl): Likewise.
18544         (__lgamma_product): Likewise.
18545         (__lgamma_productl): Likewise.
18546         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
18547         * math/auto-libm-test-in: Add more tests of lgamma.
18548         * math/auto-libm-test-out: Regenerated.
18549         * sysdeps/i386/fpu/libm-test-ulps: Update.
18550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18551
18552 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
18553
18554         [BZ #18675]
18555         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
18556
18557 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18558
18559         [BZ #14912]
18560         * bits/libc-lock.h: Move to ...
18561         * sysdeps/generic/libc-lock.h: ...here.
18562         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18563         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
18564         * sysdeps/mach/hurd/libc-lock.h: ...here.
18565         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18566         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
18567         * sysdeps/mach/bits/libc-lock.h: Move to ...
18568         * sysdeps/mach/libc-lock.h: ...here.
18569         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18570         * sysdeps/nptl/bits/libc-lock.h: Move to ...
18571         * sysdeps/nptl/libc-lock.h: ...here.
18572         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18573         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
18574         * sysdeps/nptl/libc-lockP.h: ...here.
18575         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
18576         * crypt/crypt_util.c: Include <libc-lock.h> instead of
18577         <bits/libc-lock.h>.
18578         * dirent/scandir-tail.c: Likewise.
18579         * dlfcn/dlerror.c: Likewise.
18580         * elf/dl-close.c: Likewise.
18581         * elf/dl-iteratephdr.c: Likewise.
18582         * elf/dl-lookup.c: Likewise.
18583         * elf/dl-open.c: Likewise.
18584         * elf/dl-support.c: Likewise.
18585         * elf/dl-writev.h: Likewise.
18586         * elf/rtld.c: Likewise.
18587         * grp/fgetgrent.c: Likewise.
18588         * gshadow/fgetsgent.c: Likewise.
18589         * gshadow/sgetsgent.c: Likewise.
18590         * iconv/gconv_conf.c: Likewise.
18591         * iconv/gconv_db.c: Likewise.
18592         * iconv/gconv_dl.c: Likewise.
18593         * iconv/gconv_int.h: Likewise.
18594         * iconv/gconv_trans.c: Likewise.
18595         * include/link.h: Likewise.
18596         * inet/getnameinfo.c: Likewise.
18597         * inet/getnetgrent.c: Likewise.
18598         * inet/getnetgrent_r.c: Likewise.
18599         * intl/bindtextdom.c: Likewise.
18600         * intl/dcigettext.c: Likewise.
18601         * intl/finddomain.c: Likewise.
18602         * intl/gettextP.h: Likewise.
18603         * intl/loadmsgcat.c: Likewise.
18604         * intl/localealias.c: Likewise.
18605         * intl/textdomain.c: Likewise.
18606         * libidn/idn-stub.c: Likewise.
18607         * libio/libioP.h: Likewise.
18608         * locale/duplocale.c: Likewise.
18609         * locale/freelocale.c: Likewise.
18610         * locale/newlocale.c: Likewise.
18611         * locale/setlocale.c: Likewise.
18612         * login/getutent_r.c: Likewise.
18613         * login/getutid_r.c: Likewise.
18614         * login/getutline_r.c: Likewise.
18615         * login/utmp-private.h: Likewise.
18616         * login/utmpname.c: Likewise.
18617         * malloc/mtrace.c: Likewise.
18618         * misc/efgcvt.c: Likewise.
18619         * misc/error.c: Likewise.
18620         * misc/fstab.c: Likewise.
18621         * misc/getpass.c: Likewise.
18622         * misc/mntent.c: Likewise.
18623         * misc/syslog.c: Likewise.
18624         * nis/nis_call.c: Likewise.
18625         * nis/nis_callback.c: Likewise.
18626         * nis/nss-default.c: Likewise.
18627         * nis/nss_compat/compat-grp.c: Likewise.
18628         * nis/nss_compat/compat-initgroups.c: Likewise.
18629         * nis/nss_compat/compat-pwd.c: Likewise.
18630         * nis/nss_compat/compat-spwd.c: Likewise.
18631         * nis/nss_nis/nis-alias.c: Likewise.
18632         * nis/nss_nis/nis-ethers.c: Likewise.
18633         * nis/nss_nis/nis-grp.c: Likewise.
18634         * nis/nss_nis/nis-hosts.c: Likewise.
18635         * nis/nss_nis/nis-network.c: Likewise.
18636         * nis/nss_nis/nis-proto.c: Likewise.
18637         * nis/nss_nis/nis-pwd.c: Likewise.
18638         * nis/nss_nis/nis-rpc.c: Likewise.
18639         * nis/nss_nis/nis-service.c: Likewise.
18640         * nis/nss_nis/nis-spwd.c: Likewise.
18641         * nis/nss_nisplus/nisplus-alias.c: Likewise.
18642         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
18643         * nis/nss_nisplus/nisplus-grp.c: Likewise.
18644         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
18645         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
18646         * nis/nss_nisplus/nisplus-network.c: Likewise.
18647         * nis/nss_nisplus/nisplus-proto.c: Likewise.
18648         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
18649         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
18650         * nis/nss_nisplus/nisplus-service.c: Likewise.
18651         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
18652         * nis/ypclnt.c: Likewise.
18653         * nptl/libc_pthread_init.c: Likewise.
18654         * nss/getXXbyYY.c: Likewise.
18655         * nss/getXXent.c: Likewise.
18656         * nss/getXXent_r.c: Likewise.
18657         * nss/nss_db/db-XXX.c: Likewise.
18658         * nss/nss_db/db-netgrp.c: Likewise.
18659         * nss/nss_db/nss_db.h: Likewise.
18660         * nss/nss_files/files-XXX.c: Likewise.
18661         * nss/nss_files/files-alias.c: Likewise.
18662         * nss/nsswitch.c: Likewise.
18663         * posix/regex_internal.h: Likewise.
18664         * posix/wordexp.c: Likewise.
18665         * pwd/fgetpwent.c: Likewise.
18666         * resolv/res_hconf.c: Likewise.
18667         * resolv/res_libc.c: Likewise.
18668         * shadow/fgetspent.c: Likewise.
18669         * shadow/lckpwdf.c: Likewise.
18670         * shadow/sgetspent.c: Likewise.
18671         * socket/opensock.c: Likewise.
18672         * stdio-common/reg-modifier.c: Likewise.
18673         * stdio-common/reg-printf.c: Likewise.
18674         * stdio-common/reg-type.c: Likewise.
18675         * stdio-common/vfprintf.c: Likewise.
18676         * stdio-common/vfscanf.c: Likewise.
18677         * stdlib/abort.c: Likewise.
18678         * stdlib/cxa_atexit.c: Likewise.
18679         * stdlib/fmtmsg.c: Likewise.
18680         * stdlib/random.c: Likewise.
18681         * stdlib/setenv.c: Likewise.
18682         * string/strsignal.c: Likewise.
18683         * sunrpc/auth_none.c: Likewise.
18684         * sunrpc/bindrsvprt.c: Likewise.
18685         * sunrpc/create_xid.c: Likewise.
18686         * sunrpc/key_call.c: Likewise.
18687         * sunrpc/rpc_thread.c: Likewise.
18688         * sysdeps/arm/backtrace.c: Likewise.
18689         * sysdeps/generic/ldsodefs.h: Likewise.
18690         * sysdeps/generic/stdio-lock.h: Likewise.
18691         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
18692         * sysdeps/i386/backtrace.c: Likewise.
18693         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18694         * sysdeps/m68k/backtrace.c: Likewise.
18695         * sysdeps/mach/hurd/cthreads.c: Likewise.
18696         * sysdeps/mach/hurd/dirstream.h: Likewise.
18697         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18698         * sysdeps/nptl/malloc-machine.h: Likewise.
18699         * sysdeps/nptl/stdio-lock.h: Likewise.
18700         * sysdeps/posix/dirstream.h: Likewise.
18701         * sysdeps/posix/getaddrinfo.c: Likewise.
18702         * sysdeps/posix/system.c: Likewise.
18703         * sysdeps/pthread/aio_suspend.c: Likewise.
18704         * sysdeps/s390/s390-32/backtrace.c: Likewise.
18705         * sysdeps/s390/s390-64/backtrace.c: Likewise.
18706         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18707         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
18708         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
18709         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
18710         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
18711         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
18712         * sysdeps/unix/sysv/linux/system.c: Likewise.
18713         * sysdeps/x86_64/backtrace.c: Likewise.
18714         * time/alt_digit.c: Likewise.
18715         * time/era.c: Likewise.
18716         * time/tzset.c: Likewise.
18717         * wcsmbs/wcsmbsload.c: Likewise.
18718         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
18719         instead of <bits/libc-lock.h> in comment.
18720
18721 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
18722
18723         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
18724         Only use .set mips2 if the current ISA is below mips2.
18725         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
18726         Likewise.
18727         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
18728         mips32r2 if the current ISA is below mips32r2.
18729         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
18730         (TLS_IE): Updated to use the TLD_RDHWR macro.
18731         (TLS_LE): Likewise.
18732         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
18733         __ASSEMBLER__ condition.
18734
18735 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18736
18737         Fix parallel build of before-compile targets.
18738
18739         * sysdeps/mach/Makefile ($(patsubst
18740         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
18741         mach-before-compile target.
18742         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18743         io fs process)): Move rule to dedicated hurd-before-compile target.
18744
18745 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18746
18747         Fix rules generating headers in hurd/ and mach/ when initial make call
18748         has subdir= explicitly set.
18749
18750         * sysdeps/mach/Makefile ($(patsubst
18751         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
18752         calling $(MAKE).
18753         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18754         io fs process)): Force subdir to hurd when calling $(MAKE).
18755         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
18756         subdir to mach when calling $(MAKE).
18757
18758 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
18759
18760         Check sysheaders when looking for Mach and Hurd headers
18761
18762         * sysdeps/mach/configure.ac: Add sysheaders check.
18763         * sysdeps/mach/configure: Regenerate.
18764         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
18765         * sysdeps/mach/hurd/configure: Regenerate.
18766
18767 2015-09-04  Roland McGrath  <roland@hack.frob.com>
18768
18769         [BZ #18921]
18770         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
18771         Fix inverted sense of test of 'o_directory_works' value.
18772         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
18773         Bernhard Voelker <mail@bernhard-voelker.de>.
18774
18775 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18776
18777         [BZ #14912]
18778         * bits/linkmap.h: Move to ...
18779         * sysdeps/generic/linkmap.h: ...here.
18780         * sysdeps/aarch64/bits/linkmap.h: Move to ...
18781         * sysdeps/aarch64/linkmap.h: ...here.
18782         * sysdeps/arm/bits/linkmap.h: Move to ...
18783         * sysdeps/arm/linkmap.h: ...here.
18784         * sysdeps/hppa/bits/linkmap.h: Move to ...
18785         * sysdeps/hppa/linkmap.h: ...here.
18786         * sysdeps/ia64/bits/linkmap.h: Move to ...
18787         * sysdeps/ia64/linkmap.h: ...here.
18788         * sysdeps/mips/bits/linkmap.h: Move to ...
18789         * sysdeps/mips/linkmap.h: ...here.
18790         * sysdeps/s390/bits/linkmap.h: Move to ...
18791         * sysdeps/s390/linkmap.h: ...here.
18792         * sysdeps/sh/bits/linkmap.h: Move to ...
18793         * sysdeps/sh/linkmap.h: ...here.
18794         * sysdeps/x86/bits/linkmap.h: Move to ...
18795         * sysdeps/x86/linkmap.h: ...here.
18796         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
18797
18798 2015-09-04  Andreas Schwab  <schwab@suse.de>
18799
18800         [BZ #18635]
18801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
18802         (__makecontext): Terminate FDE before return label.
18803         (__novec_makecontext): Likewise.
18804
18805 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18806
18807         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
18808         first member of struct sv in syscall macro.
18809
18810 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18811
18812         [BZ #14912]
18813         * bits/stdio-lock.h: Move to ...
18814         * sysdeps/generic/stdio-lock.h: ...here.
18815         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18816         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
18817         * sysdeps/nptl/stdio-lock.h: ...here.
18818         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18819         * include/libio.h: Include <stdio-lock.h> instead of
18820         <bits/stdio-lock.h>.
18821         * sysdeps/nptl/fork.c: Likewise.
18822         * sysdeps/pthread/flockfile.c: Likewise.
18823         * sysdeps/pthread/ftrylockfile.c: Likewise.
18824         * sysdeps/pthread/funlockfile.c: Likewise.
18825
18826         [BZ #14912]
18827         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
18828         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
18829         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
18830         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
18831         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
18832         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
18833         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
18834
18835 2015-09-03  Roland McGrath  <roland@hack.frob.com>
18836
18837         * elf/Makefile (test-xfail-tst-protected1a): New variable.
18838         (test-xfail-tst-protected1b): New variable.
18839
18840 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
18841
18842         [BZ #14912]
18843         * bits/libc-tsd.h: Move to ...
18844         * sysdeps/generic/libc-tsd.h: ...here.
18845         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
18846         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
18847         * sysdeps/mach/hurd/libc-tsd.h: ...here.
18848         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
18849         * include/ctype.h: Include <libc-tsd.h> instead of
18850         <bits/libc-tsd.h>.
18851         * include/rpc/rpc.h: Likewise.
18852         * locale/localeinfo.h: Likewise.
18853         * sunrpc/rpc_thread.c: Likewise.
18854         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18855         * sysdeps/nptl/malloc-machine.h: Likewise.
18856
18857         * Makefile (headers): Remove bits/libc-lock.h.
18858         * libio/Makefile (headers): Remove bits/stdio-lock.h.
18859
18860         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
18861         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
18862         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
18863         <bits/stdio-lock.h>.
18864         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
18865         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
18866
18867 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18868
18869         [BZ #18757]
18870         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
18871         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
18872         BZ #18757.
18873
18874 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18875
18876         * malloc/mtrace.pl: Filter out NULL entries.
18877
18878 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
18879
18880         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
18881         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
18882         macro.
18883
18884         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
18885         (TCP_CC_INFO): Likewise.
18886         (TCP_SAVE_SYN): Likewise.
18887         (TCP_SAVED_SYN): Likewise.
18888
18889 2015-08-31  Brett Neumeier <brett@neumeier.us>
18890
18891         [BZ #18870]
18892         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
18893
18894 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18895
18896         [BZ #18873]
18897         Fix broken overflow check in posix_fallocate
18898         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
18899         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
18900         Fix parenthesization typo.
18901
18902 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
18903
18904         [BZ #18887]
18905         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
18906         tst-mntent-blank-passno.
18907         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
18908         * misc/tst-mntent-blank-corrupt.c: New test.
18909         * misc/tst-mntent-blank-passno.c: New test ripped from ...
18910         * misc/tst-mntent.c (do_test): ... here.
18911
18912 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
18913
18914         [BZ #4404]
18915         * po/de.po: Fix SIGALRM typo.
18916
18917 2015-08-28  James Perkins  <james@loowit.net>
18918
18919         * time/tst-strptime2.c (tests): Replace short list of test
18920         strings for strptime %z specifier with code which exhaustively
18921         tests every combination of sign and 0 to 5 digits. Tests for
18922         rejection of invalid strings.
18923
18924 2015-08-28  James Perkins  <james@loowit.net>
18925
18926         [BZ #16141]
18927         * time/strptime_l.c (__strptime_internal): Fix %z minutes
18928         calculation, removing incorrect decimal time rounding, so that
18929         all minute values result in a valid seconds value.
18930         * time/strptime_l.c (__strptime_internal): Extend %z time zone
18931         offset range limits to UTC-99:59 through UTC+99:59 to parse
18932         current and historical use cases.
18933         * time/tst-strptime2.c (tests): Modify and add tests for the
18934         strptime %z input field descriptor, specifically conversion of
18935         minutes to seconds and validating an offset range of -9959 to
18936         +9959.
18937
18938 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18939             Dmitry V. Levin  <ldv@altlinux.org>
18940
18941         [BZ #18877]
18942         * posix/Makefile (tests): Add tst-mmap-offset.
18943         * posix/tst-mmap.c: New file.
18944         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
18945         offset calculation for negative values.
18946
18947 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18948
18949         * sysdeps/i386/init-arch.h: New file.
18950         * sysdeps/i386/i586/init-arch.h: Likewise.
18951         * sysdeps/i386/i686/init-arch.h: Likewise.
18952         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
18953         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
18954         * sysdeps/x86/cpu-features.h (bit_I586): New.
18955         (bit_I686): Likewise.
18956         (bit_CX8): Likewise.
18957         (bit_CMOV): Likewise.
18958         (index_CX8): Likewise.
18959         (index_CMOV): Likewise.
18960         (index_I586): Likewise.
18961         (index_I686): Likewise.
18962         (reg_CX8): Likewise.
18963         (reg_CMOV): Likewise.
18964         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
18965         available at compile-time.
18966         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
18967         available at compile-time.
18968         * sysdeps/x86/init-arch.h (USE_I586): New macro.
18969         (USE_I686): Likewise.
18970
18971 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18972
18973         * sysdeps/i386/bcopy.S: New file.
18974         * sysdeps/i386/bzero.S: Likewise.
18975         * sysdeps/i386/memcpy.S: Likewise.
18976         * sysdeps/i386/memmove.S: Likewise.
18977         * sysdeps/i386/mempcpy.S: Likewise.
18978         * sysdeps/i386/memset.S: Likewise.
18979         * sysdeps/i386/bzero.c: Removed.
18980         * sysdeps/i386/memset.c: Likewise.
18981         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
18982         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
18983         * sysdeps/i386/i586/memset_chk.S: Likewise.
18984         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
18985         * sysdeps/i386/memcpy_chk.S: Here.
18986         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
18987         * sysdeps/i386/memmove_chk.S: Here.
18988         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
18989         * sysdeps/i386/mempcpy_chk.S: Likewise.
18990         * sysdeps/i386/i686/memset_chk.S: Moved to ...
18991         * sysdeps/i386/memset_chk.S: Likewise.
18992
18993 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
18994
18995         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
18996         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
18997         file, move DIAG_POP_NEEDS_COMMENT to end of file.
18998         * soft-fp/fmadf4.c: Ditto.
18999         * soft-fp/fmatf4.c: Ditto.
19000
19001 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19002
19003         * sysdeps/i386/i586/Implies: Removed.
19004         * sysdeps/i386/i686/Implies: Likewise.
19005
19006 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19007
19008         * sysdeps/i386/i486/strlen.S: Moved to ...
19009         * sysdeps/i386/strlen.S: Here.
19010
19011 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19012
19013         * sysdeps/i386/i486/strcat.S: Moved to ...
19014         * sysdeps/i386/strcat.S: Here.
19015
19016 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19017
19018         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
19019         * sysdeps/i386/pthread_spin_trylock.S: Here.
19020         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
19021         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
19022
19023 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19024
19025         * sysdeps/i386/i486/string-inlines.c: Moved to ...
19026         * sysdeps/i386/string-inlines.c: Here.
19027
19028 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19029
19030         * sysdeps/i386/i486/htonl.S: Moved ...
19031         * sysdeps/i386/htonl.S: here.
19032
19033 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19034
19035         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
19036         * sysdeps/i386/bits/atomic.h: Here.
19037
19038 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
19039
19040         * sysdeps/i386/i486/Versions: Removed.
19041
19042 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
19043
19044         [BZ #2898]
19045         * misc/mktemp.c: Add mkdtemp to the link_warning message.
19046         Based on patch by Aurelien Jarno.
19047
19048 2015-08-26  Stan Shebs  <stanshebs@google.com>
19049
19050         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
19051         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
19052
19053 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19054
19055         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
19056         * sysdeps/powerpc/dl-procinfo.c:
19057         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
19058         feature so it shows when LD_SHOW_AUXV=1.
19059
19060 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19061
19062         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
19063         (__arch_compare_and_exchange_val_32_acq): Remove and use common
19064         definition.  ISA 2.07B no longer requires full sync.
19065
19066 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
19067
19068         [BZ #18863]
19069         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
19070         (si_call_addr): Define.
19071         (si_syscall): Define.
19072         (si_arch): Define.
19073
19074 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19075
19076         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
19077         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
19078         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
19079         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19080         (__memset_zero_constant_len_parameter): New.
19081         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
19082         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19083         (__memset_zero_constant_len_parameter): Don't define if
19084         __memset_chk or USE_AS_BZERO are defined.
19085
19086         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
19087         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
19088         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
19089
19090         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
19091         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
19092         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
19093         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
19094         comments.
19095         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
19096         -mno-mmx for $(all-rtld-routines).
19097         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
19098         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
19099         i386.
19100
19101 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
19102
19103         * sysdeps/generic/unwind.h
19104         (_Unwind_Word): Use __mode__(__unwind_word__)
19105         instead of __mode__(__word__).
19106         (_Unwind_Sword): Likewise.
19107
19108         * sysdeps/s390/s390-64/utf8-utf16-z9.c
19109         (MAX_NEEDED_INPUT): New define.
19110         (MAX_NEEDED_OUTPUT): New define.
19111
19112         * NEWS: New item for IBM z13 string optimizations.
19113
19114         * sysdeps/s390/multiarch/memrchr-c.c: New File.
19115         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
19116         * sysdeps/s390/multiarch/memrchr.c: Likewise.
19117         * sysdeps/s390/multiarch/Makefile
19118         (sysdep_routines): Add memrchr functions.
19119         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19120         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
19121
19122         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
19123         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
19124         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
19125         * sysdeps/s390/multiarch/Makefile
19126         (sysdep_routines): Add wmemcmp functions.
19127         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19128         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
19129         * benchtests/bench-wmemcmp.c: New File.
19130         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
19131
19132         * sysdeps/s390/multiarch/wmemset-c.c: New File.
19133         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
19134         * sysdeps/s390/multiarch/wmemset.c: Likewise.
19135         * sysdeps/s390/multiarch/Makefile
19136         (sysdep_routines): Add wmemset functions.
19137         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19138         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
19139         * wcsmbs/wmemset.c: Use WMEMSET if defined.
19140         * string/test-memset.c: Add wmemset support.
19141         * wcsmbs/test-wmemset.c: New File.
19142         * wcsmbs/Makefile (strop-tests): Add wmemset.
19143         * benchtests/bench-memset.c: Add wmemset support.
19144         * benchtests/bench-wmemset.c: New File.
19145         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
19146
19147         * sysdeps/s390/multiarch/memccpy-c.c: New File.
19148         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
19149         * sysdeps/s390/multiarch/memccpy.c: Likewise.
19150         * sysdeps/s390/multiarch/Makefile
19151         (sysdep_routines): Add memccpy functions.
19152         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19153         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
19154         * string/memccpy.c: Use MEMCCPY if defined.
19155
19156         * sysdeps/s390/multiarch/memchr-vx.S: New File.
19157         * sysdeps/s390/multiarch/memchr.c: Likewise.
19158         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
19159         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
19160         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
19161         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
19162         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
19163         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
19164         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
19165         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
19166         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
19167         and rawmemchr functions.
19168         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19169         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
19170         and wmemchr.
19171         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
19172         * string/test-memchr.c: Add wmemchr support.
19173         * wcsmbs/test-wmemchr.c: New File.
19174         * wcsmbs/Makefile (strop-tests): Add wmemchr.
19175         * benchtests/bench-memchr.c: Add wmemchr support.
19176         * benchtests/bench-wmemchr.c: New File.
19177         * benchtests/Makefile (wcsmbs-bench): wmemchr.
19178
19179         * sysdeps/s390/multiarch/strcspn-c.c: New File.
19180         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
19181         * sysdeps/s390/multiarch/strcspn.c: Likewise.
19182         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
19183         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
19184         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
19185         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
19186         wcscspn functions.
19187         * sysdeps/s390/multiarch/ifunc-impl-list.c
19188         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
19189         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
19190         * string/test-strcspn.c: Add wcscspn support.
19191         * wcsmbs/test-wcscspn.c: New File.
19192         * wcsmbs/Makefile (strop-tests): Add wcscspn.
19193         * benchtests/bench-strcspn.c: Add wcscspn support.
19194         * benchtests/bench-wcscspn.c: New File.
19195         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
19196
19197         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
19198         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
19199         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
19200         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
19201         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
19202         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
19203         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
19204         wcspbrk functions.
19205         * sysdeps/s390/multiarch/ifunc-impl-list.c
19206         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
19207         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
19208         * string/test-strpbrk.c: Add wcspbrk support.
19209         * wcsmbs/test-wcspbrk.c: New File.
19210         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
19211         * benchtests/bench-strpbrk.c: Add wcspbrk support.
19212         * benchtests/bench-wcspbrk.c: New File.
19213         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
19214
19215         * sysdeps/s390/multiarch/strspn-c.c: New File.
19216         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
19217         * sysdeps/s390/multiarch/strspn.c: Likewise.
19218         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
19219         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
19220         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
19221         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
19222         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
19223         wcsspn functions.
19224         * sysdeps/s390/multiarch/ifunc-impl-list.c
19225         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
19226         * string/test-strspn.c: Add wcsspn support.
19227         * wcsmbs/test-wcsspn.c: New File.
19228         * wcsmbs/Makefile (strop-tests): Add wcsspn.
19229         * benchtests/bench-strspn.c: Add wcsspn support.
19230         * benchtests/bench-wcsspn.c: New File.
19231         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
19232
19233         * sysdeps/s390/multiarch/strrchr-c.c: New File.
19234         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
19235         * sysdeps/s390/multiarch/strrchr.c: Likewise.
19236         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
19237         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
19238         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
19239         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
19240         wcsrchr functions.
19241         * sysdeps/s390/multiarch/ifunc-impl-list.c
19242         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
19243         * benchtests/bench-wcsrchr.c: New File.
19244         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
19245
19246         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
19247         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
19248         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
19249         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
19250         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
19251         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
19252         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
19253         wcschrnul functions.
19254         * sysdeps/s390/multiarch/ifunc-impl-list.c
19255         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
19256         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
19257         * string/test-strchr.c: Add wcschrnul support.
19258         * wcsmbs/test-wcschrnul.c: New File.
19259         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
19260         * benchtests/bench-strchr.c: Add wcschrnul support.
19261         * benchtests/bench-wcschrnul.c: New File.
19262         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
19263
19264         * sysdeps/s390/multiarch/strchr-c.c: New File.
19265         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
19266         * sysdeps/s390/multiarch/strchr.c: Likewise.
19267         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
19268         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
19269         * sysdeps/s390/multiarch/wcschr.c: Likewise.
19270         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
19271         wcschr functions.
19272         * sysdeps/s390/multiarch/ifunc-impl-list.c
19273         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
19274         * string/strchr.c (STRCHR): Define and use macro.
19275         * benchtests/bench-wcschr.c: New File.
19276         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
19277
19278         * sysdeps/s390/multiarch/strncmp-c.c: New File.
19279         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
19280         * sysdeps/s390/multiarch/strncmp.c: Likewise.
19281         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
19282         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
19283         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
19284         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
19285         wcsncmp functions.
19286         * sysdeps/s390/multiarch/ifunc-impl-list.c
19287         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
19288         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
19289         * benchtests/bench-strncmp.c: Add wcsncmp support.
19290         * benchtests/bench-wcsncmp.c: New File.
19291         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
19292
19293         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
19294         * sysdeps/s390/multiarch/strcmp.c: Likewise.
19295         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
19296         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
19297         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
19298         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
19299         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
19300         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
19301         wcscmp functions.
19302         * sysdeps/s390/multiarch/ifunc-impl-list.c
19303         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
19304         * string/strcmp.c (STRCMP): Define and use macro.
19305         * benchtests/bench-wcscmp.c: New File.
19306         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
19307         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
19308         instead of _HAVE_STRING_ARCH_memchr.
19309
19310         * sysdeps/s390/multiarch/strncat-c.c: New File.
19311         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
19312         * sysdeps/s390/multiarch/strncat.c: Likewise.
19313         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
19314         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
19315         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
19316         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
19317         wcsncat functions.
19318         * sysdeps/s390/multiarch/ifunc-impl-list.c
19319         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
19320         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
19321         * string/test-strncat.c: Add wcsncat support.
19322         * wcsmbs/test-wcsncat.c: New File.
19323         * wcsmbs/Makefile (strop-tests): Add wcsncat.
19324         * benchtests/bench-strncat.c: Add wcsncat support.
19325         * benchtests/bench-wcsncat.c: New File.
19326         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
19327
19328         * sysdeps/s390/multiarch/strcat-c.c: New File.
19329         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
19330         * sysdeps/s390/multiarch/strcat.c: Likewise.
19331         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
19332         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
19333         * sysdeps/s390/multiarch/wcscat.c: Likewise.
19334         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
19335         wcscat functions.
19336         * sysdeps/s390/multiarch/ifunc-impl-list.c
19337         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
19338         * string/strcat.c (STRCAT): Define and use macro.
19339         * wcsmbs/wcscat.c: Use WCSCAT if defined.
19340         * string/test-strcat.c: Add wcscat support.
19341         * wcsmbs/test-wcscat.c: New File.
19342         * wcsmbs/Makefile (strop-tests): Add wcscat.
19343         * benchtests/bench-strcat.c: Add wcscat support.
19344         * benchtests/bench-wcscat.c: New File.
19345         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
19346
19347         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
19348         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
19349         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
19350         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
19351         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
19352         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
19353         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
19354         wcpncpy functions.
19355         * sysdeps/s390/multiarch/ifunc-impl-list.c
19356         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
19357         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
19358         * string/test-stpncpy.c: Add wcpncpy support.
19359         * wcsmbs/test-wcpncpy.c: New File.
19360         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
19361         * benchtests/bench-stpncpy.c: Add wcpncpy support.
19362         * benchtests/bench-wcpncpy.c: New File.
19363         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
19364
19365         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
19366         * sysdeps/s390/multiarch/strncpy.c: Likewise.
19367         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
19368         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
19369         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
19370         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
19371         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
19372         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
19373         wcsncpy functions.
19374         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
19375         * sysdeps/s390/multiarch/ifunc-impl-list.c
19376         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
19377         * string/test-strncpy.c: Add wcsncpy support.
19378         * wcsmbs/test-wcsncpy.c: New File.
19379         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
19380         * benchtests/bench-strncpy.c: Add wcsncpy support.
19381         * benchtests/bench-wcsncpy.c: New File.
19382         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
19383
19384         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
19385         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
19386         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
19387         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
19388         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
19389         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
19390         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
19391         wcpcpy functions.
19392         * string/stpcpy.c: Use STPCPY if defined.
19393         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
19394         * sysdeps/s390/multiarch/ifunc-impl-list.c
19395         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
19396         * string/test-stpcpy.c: Add wcpcpy support.
19397         * wcsmbs/test-wcpcpy.c: New File.
19398         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
19399         * benchtests/bench-stpcpy.c: Add wcpcpy support.
19400         * benchtests/bench-wcpcpy.c: New File.
19401         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
19402
19403         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
19404         * sysdeps/s390/multiarch/strcpy.c: Likewise.
19405         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
19406         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
19407         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
19408         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
19409         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
19410         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
19411         wcscpy functions.
19412         * sysdeps/s390/multiarch/ifunc-impl-list.c
19413         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
19414         * benchtests/bench-wcscpy.c: New File.
19415         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
19416
19417         * sysdeps/s390/multiarch/strnlen-c.c: New File.
19418         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
19419         * sysdeps/s390/multiarch/strnlen.c: Likewise.
19420         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
19421         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
19422         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
19423         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
19424         wcsnlen functions.
19425         * sysdeps/s390/multiarch/ifunc-impl-list.c
19426         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
19427         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
19428         * string/test-strnlen.c: Add wcsnlen support.
19429         * wcsmbs/test-wcsnlen.c: New File.
19430         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
19431         * benchtests/bench-strnlen.c: Add wcsnlen support.
19432         * benchtests/bench-wcsnlen.c: New File.
19433         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
19434
19435         * sysdeps/s390/multiarch/Makefile: New File.
19436         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
19437         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
19438         * sysdeps/s390/multiarch/strlen.c: Likewise.
19439         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
19440         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
19441         * sysdeps/s390/multiarch/wcslen.c: Likewise.
19442         * string/strlen.c (STRLEN): Define and use macro.
19443         * sysdeps/s390/multiarch/ifunc-impl-list.c
19444         (IFUNC_VX_IMPL): New macro function.
19445         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
19446         * benchtests/Makefile (wcsmbs-bench): New variable.
19447         (string-bench-all): Added wcsmbs-bench.
19448         * benchtests/bench-wcslen.c: New File.
19449
19450         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
19451         s390_vx_libc_ifunc2): New macro function.
19452
19453         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
19454         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
19455         assembler support.
19456         * sysdeps/s390/configure: Regenerated.
19457
19458         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
19459         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
19460
19461         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
19462         * sysdeps/s390/dl-procinfo.h: Add vector capability.
19463         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
19464
19465         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
19466         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
19467         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
19468         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
19469         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
19470         (memcmp, bcmp): Use __memcmp_default as alias source.
19471         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
19472         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
19473         Rename to __memcmp_default.
19474         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
19475         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
19476         (memcpy): Use __memcpy_default as alias source.
19477         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
19478         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
19479         Rename to __memcpy_default.
19480         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
19481         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
19482         (memset): Use __memset_default as alias source.
19483         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
19484         * sysdeps/s390/s390-32/memset.S (__memset_g5):
19485         Rename to __memset_default.
19486         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
19487         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
19488         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
19489         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
19490         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
19491         (memcmp, bcmp): Use __memcmp_default as alias source.
19492         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
19493         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
19494         Rename to __memcmp_default.
19495         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
19496         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
19497         (memcpy): Use __memcpy_default as alias source.
19498         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
19499         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
19500         Rename to __memcpy_default.
19501         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
19502         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
19503         (memset): Use __memset_default as alias source.
19504         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
19505         * sysdeps/s390/s390-64/memset.S (__memset_z900):
19506         Rename to __memset_default.
19507         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
19508         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
19509
19510         [BZ #18610]
19511         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
19512         __ieee_instruction_pointer to __unused.
19513         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
19514         __ieee_instruction_pointer.
19515         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
19516         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
19517         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19518         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19519         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
19520         Mark dxc-field as reserved.
19521
19522 2015-08-25  Roland McGrath  <roland@hack.frob.com>
19523
19524         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
19525         if the weak reference is not null.
19526
19527 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19528
19529         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
19530
19531         [BZ #11214]
19532         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
19533
19534 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19535
19536         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
19537         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
19538         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
19539         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
19540         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
19541         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
19542         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
19543         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
19544         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
19545         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
19546         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
19547         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
19548         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
19549         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
19550         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
19551         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
19552         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
19553         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
19554
19555 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19556
19557         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
19558         register other than r0 for tabort, it has special meaning.
19559         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
19560         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
19561         transaction before starting syscall.
19562
19563 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19564
19565         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
19566
19567 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19568
19569         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
19570
19571         * sysdeps/x86_64/rtld-memcmp.c: Removed.
19572         * sysdeps/x86_64/rtld-memset.S: Likewise.
19573         * sysdeps/x86_64/rtld-strchr.S: Likewise.
19574         * sysdeps/x86_64/rtld-strlen.S: Likewise.
19575         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
19576         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
19577
19578         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
19579
19580 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
19581
19582         * debug/strcpy_chk.c: Improve performance.
19583         * debug/stpcpy_chk.c: Likewise.
19584         * sysdeps/x86_64/strcpy_chk.S: Remove.
19585         * sysdeps/x86_64/stpcpy_chk.S: Remove.
19586
19587         [BZ #18240]
19588         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
19589
19590 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19591
19592         [BZ #15128]
19593         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
19594         ifuncmain8.
19595         (modules-names): Add ifuncmod8.
19596         ($(objpfx)ifuncmain8): New rule.
19597         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
19598         <cpuid.h>.
19599         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
19600         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
19601         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
19602         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
19603         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
19604         * sysdeps/x86_64/dl-trampoline.h: Likewise.
19605         * sysdeps/x86_64/ifuncmain8.c: New file.
19606         * sysdeps/x86_64/ifuncmod8.c: Likewise.
19607         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
19608         Removed.
19609         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
19610         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
19611         Change rtld_savespace_sse to __glibc_unused2.
19612         (RTLD_CHECK_FOREIGN_CALL): Removed.
19613         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
19614         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
19615         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
19616
19617 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19618
19619         * sysdeps/aarch64/bzero.S (__bzero): Remove.
19620
19621 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19622
19623         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
19624         Unconditionally set __fpcr to avoid uninialized warning.
19625         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
19626
19627 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19628
19629         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
19630         is corrupt.
19631
19632         * malloc/arena.c (arena_get2): Drop unused argument.
19633         (arena_lock): Adjust.
19634         (arena_get_retry): Likewise.
19635
19636 2015-08-24  Andreas Schwab  <schwab@suse.de>
19637
19638         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
19639         Don't define.
19640         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19641         (__ASSUME_IPC64): Don't undef.
19642         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
19643         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
19644         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
19645         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
19646         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
19647         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
19648         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
19649         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
19650         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
19651         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
19652         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
19653         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
19654         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
19655         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
19656         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
19657         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
19658         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
19659         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
19660         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
19661         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
19662         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
19663
19664 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
19665
19666         * manual/Makefile (install): Only build manual when perl is available.
19667
19668 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19669
19670         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
19671         '#undef memcpy' by '#undef memchr'.
19672
19673 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19674
19675         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
19676         memchr not point to the internal __GI_memchr implementation.
19677
19678 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19679
19680         * timezone/Makefile (CFLAGS-zdump.c): Remove
19681         -Wno-strict-prototypes.
19682         (CFLAGS-zic.c): Likewise.
19683         (CFLAGS-ialloc.c): Likewise.
19684         (CFLAGS-scheck.c): Likewise.
19685
19686         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
19687         -Wno-error=undef.
19688
19689 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19690
19691         * i386/i686/multiarch/strcasestr-c.c: Removed.
19692         * x86_64/multiarch/strcasestr.c: Likewise.
19693         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19694         Remove strcasestr.
19695
19696 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19697
19698         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
19699
19700         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
19701         variables for high and low parts before possibly modifying them.
19702
19703 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19704
19705         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
19706         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
19707         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
19708         of "multiarch/init-arch.h".
19709         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
19710         * sysdeps/x86/init-arch.h: This.
19711
19712 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19713
19714         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
19715         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
19716
19717 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
19718
19719         [BZ #17787]
19720         * manual/macros.texi: Add twoexp macro.
19721         * manual/filesys.texi: Fix exponents.
19722         * manual/llio.texi: Likewise.
19723         * manual/stdio.texi: Likewise.
19724
19725 2015-08-20  Florian Weimer  <fweimer@redhat.com>
19726
19727         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
19728         incorrect use.
19729
19730 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19731
19732         [BZ #18370]
19733         * math/s_csqrt.c (__csqrt): Force underflow exception for results
19734         whose real or imaginary part has small absolute value.
19735         * math/s_csqrtf.c (__csqrtf): Likewise.
19736         * math/s_csqrtl.c (__csqrtl): Likewise.
19737         * math/auto-libm-test-in: Add more tests of csqrt.
19738         * math/auto-libm-test-out: Regenerated.
19739         * sysdeps/i386/fpu/libm-test-ulps: Update.
19740
19741 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19742
19743         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
19744         __ppc_set_ppr_very_low): New functions.
19745         * manual/platform.texi: Add documentation about
19746         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
19747
19748 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
19749
19750         * string/stpncpy.c (stpncpy): Improve performance using
19751         __strnlen/memcpy/memset.
19752
19753 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19754
19755         [BZ #18796]
19756         * scripts/test-installation.pl: Don't add -lmvec to build options if
19757         libmvec wasn't built.
19758
19759 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19760
19761         [BZ #14341]
19762         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
19763         case when there is a gap between DT_REL and DT_JMPREL sections.
19764         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
19765         (LDFLAGS-tst-split-dynreloc): New.
19766         (tst-split-dynreloc-ENV): Likewise.
19767         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
19768         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
19769
19770 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19771
19772         [BZ #18822]
19773         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
19774         attribute_hidden.
19775         (__xstat64_conv): Likewise.
19776         (__xstat32_conv): Likewise.
19777
19778 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19779
19780         [BZ #18822]
19781         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19782         Don't load %ebx when calling __setcontext.  Call __setcontext
19783         with HIDDEN_JUMPTARGET.
19784         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
19785         libc_hidden_def.
19786
19787 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19788
19789         * sysdeps/i386/i686/Makefile
19790         [$(subdir) == string] (sysdep_routines): Moved to ...
19791         * sysdeps/i386/Makefile: Here.
19792         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
19793         * sysdeps/i386/cacheinfo.c: Here.
19794         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
19795         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
19796         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
19797         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
19798
19799 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19800
19801         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
19802         __i586__ is defined.
19803         (HAS_I686): Defined to 1 if __i686__ is defined.
19804
19805 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19806
19807         * elf/Makefile [$(have-z-execstack) = yes]
19808         (CPPFLAGS-tst-execstack.c): New variable.
19809
19810         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
19811         conditional to [defined UTMPX || _HAVE_UT_TYPE].
19812         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
19813         UTMPX || _HAVE_UT_TV].
19814         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
19815         UTMPX || _HAVE_UT_TV - 0].
19816
19817 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
19818
19819         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
19820         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
19821         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
19822
19823 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19824
19825         * sysdeps/powerpc/dl-procinfo.c:
19826         (_dl_powerpc_cap_flags): Added missing strings for some
19827         hwcap features.
19828         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
19829
19830 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19831
19832         Port the 0x7efe...feff pattern to GCC 6.
19833         See Steve Ellcey's bug report in:
19834         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
19835         * string/memrchr.c (MEMRCHR):
19836         * string/rawmemchr.c (RAWMEMCHR):
19837         * string/strchr.c (strchr):
19838         * string/strchrnul.c (STRCHRNUL):
19839         Rewrite code to avoid issues with signed shift overflow.
19840
19841 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
19842
19843         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
19844         whether cpuid is available only if HAS_CPUID is 0.
19845         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
19846         (HAS_I586): Likewise.
19847         (HAS_I686): Likewise.
19848
19849 2015-08-18  Zack Weinberg  <zackw@panix.com>
19850
19851         * misc/Versions (libc): Add GLIBC_2.23.
19852
19853 2015-08-18  Alan Modra  <amodra@gmail.com>
19854
19855         [BZ #18421]
19856         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
19857         .Lp__global.
19858         (_start): Load %dp via .Lp__global.
19859         [!SHARED]: Use .section .rodata.
19860
19861 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19862
19863         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
19864         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
19865
19866 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19867
19868         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
19869         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
19870
19871 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19872
19873         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
19874         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
19875
19876 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19877
19878         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
19879         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
19880
19881 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19882
19883         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
19884         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
19885
19886 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19887
19888         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
19889         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
19890
19891 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19892
19893         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
19894
19895 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19896
19897         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
19898         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
19899         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19900         (__ASSUME_LWS_CAS): Delete.
19901
19902 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19903
19904         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
19905         * sysdeps/hppa/configure: Regenerated.
19906         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
19907         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
19908         * sysdeps/hppa/nptl/tls.h: Likewise.
19909
19910 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
19911
19912         [BZ #18823]
19913         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
19914         for scaling up small arguments.
19915         * math/s_csqrtf.c (__csqrtf): Likewise.
19916         * math/s_csqrtl.c (__csqrtl): Likewise.
19917         * math/auto-libm-test-in: Add more tests of csqrt.
19918         * math/auto-libm-test-out: Regenerated.
19919
19920 2015-08-17  Andreas Schwab  <schwab@suse.de>
19921
19922         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
19923         version set GLIBC_2.19.
19924
19925 2015-08-16  Zack Weinberg  <zackw@panix.com>
19926
19927         [BZ #18681]
19928         * misc/regexp.h: This interface is no longer supported.
19929         Remove all contents, leaving only an #error directive.
19930         * misc/regexp.c (loc1, loc2, locs, step, advance):
19931         Demote to compatibility symbols.
19932
19933 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
19934
19935         [BZ #18084]
19936         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
19937         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
19938         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
19939         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
19940         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
19941         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
19942         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
19943         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
19944         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
19945
19946 2015-08-15  Zack Weinberg  <zackw@panix.com>
19947
19948         [BZ #18795]
19949         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
19950         buffer length is known to be too large, not if it's known to be
19951         small enough.
19952         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
19953         overflow at runtime, involving a length parameter, twice: once
19954         with a compile-time constant length parameter, once without.
19955
19956 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
19957
19958         [BZ #18824]
19959         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
19960         scaling x * y up instead of down.
19961         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19962         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19963         * math/auto-libm-test-in: Add more tests of fma.
19964         * math/auto-libm-test-out: Regenerated.
19965
19966 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
19967
19968         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19969
19970 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19971
19972         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
19973         unnecessary movq.
19974         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
19975         Likewise.
19976
19977 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
19978
19979         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
19980         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
19981         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
19982         and tgamma.
19983         * math/auto-libm-test-out: Regenerated.
19984         * sysdeps/i386/fpu/libm-test-ulps: Update.
19985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19986
19987         [BZ #16520]
19988         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
19989         (__tanh): Force underflow exception for arguments with small
19990         absolute value.
19991         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
19992         (__tanhf): Force underflow exception for arguments with small
19993         absolute value.
19994         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
19995         (__tanhl): Force underflow exception for arguments with small
19996         absolute value.
19997         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
19998         (__tanhl): Force underflow exception for arguments with small
19999         absolute value.
20000         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
20001         (__tanhl): Force underflow exception for arguments with small
20002         absolute value.
20003         * math/auto-libm-test-in: Add more tests of tanh.
20004         * math/auto-libm-test-out: Regenerated.
20005         * sysdeps/i386/fpu/libm-test-ulps: Update.
20006
20007 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20008
20009         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
20010         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
20011
20012 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20013
20014         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
20015         <cpuid.h>.
20016
20017 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20018
20019         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
20020         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
20021
20022 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20023
20024         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
20025         Remove $(objpfx)init-arch.o.
20026         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
20027         init-arch.
20028         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
20029         (INIT_ARCH_EXT): Defined as empty.
20030         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
20031         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
20032         __init_cpu_features call.  Replace HAS_XXX with
20033         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20034         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
20035         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
20036         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
20037         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
20038         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20039         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
20040         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
20041         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20042         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
20043         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
20044         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20045         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
20046         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
20047         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20048         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
20049         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
20050         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20051         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20052         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
20053         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
20054         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20055         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
20056         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
20057         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20058         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
20059         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
20060         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20061         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
20062         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
20063         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20064         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
20065         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
20066         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20067         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
20068         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
20069
20070 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20071
20072         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
20073         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20074         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20075         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20076         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
20077         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
20078         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
20079         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
20080         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
20081         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
20082         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
20083         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
20084         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20085         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20086         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20087         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20088         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20089         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20090         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20091         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20092         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20093         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20094         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20095         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20096         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20097         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20098         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20099         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20100         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20101         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20102         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20103         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20104         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20105         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20106         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20107         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20108         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20109         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20110         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20111         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20112         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20113         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20114         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20115
20116 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20117
20118         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
20119         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20120         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20121         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20122         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20123         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
20124         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20125         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
20126         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20127         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20128         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20129         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
20130         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
20131         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
20132         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
20133         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
20134         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
20135         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
20136         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
20137         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
20138         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
20139         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
20140         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
20141         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
20142         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20143         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
20144         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
20145         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
20146         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20147         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
20148         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
20149         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
20150         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
20151         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20152         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20153         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
20154         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
20155         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
20156         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
20157         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
20158         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
20159         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
20160         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
20161
20162 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20163
20164         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
20165         (dl_platform_init): Call init_cpu_features.
20166         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
20167         * sysdeps/i386/i686/cacheinfo.c
20168         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
20169         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
20170         * sysdeps/i386/i686/multiarch/Versions: Removed.
20171         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
20172         Removed.
20173         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
20174         * sysdeps/unix/sysv/linux/x86/Makefile
20175         (libpthread-sysdep_routines): Remove init-arch.
20176         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
20177         <sysdeps/x86_64/dl-procinfo.c> instead of
20178         sysdeps/generic/dl-procinfo.c>.
20179         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
20180         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
20181         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
20182         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
20183         [$(subdir) == elf] (tests-static): Add
20184         tst-get-cpu-features-static.
20185         * sysdeps/x86/Versions: New file.
20186         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
20187         * sysdeps/x86/cpu-features.c: Likewise.
20188         * sysdeps/x86/cpu-features.h: Likewise.
20189         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
20190         * sysdeps/x86/libc-start.c: Likewise.
20191         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
20192         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
20193         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
20194         * sysdeps/x86_64/dl-procinfo.c: Likewise.
20195         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
20196         Assume USE_MULTIARCH is defined and don't check it.
20197         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
20198         (is_amd): Likewise.
20199         (max_cpuid): Likewise.
20200         (intel_check_word): Likewise.
20201         (__cache_sysconf): Don't call __init_cpu_features.
20202         (__x86_preferred_memory_instruction): Removed.
20203         (init_cacheinfo): Don't call __init_cpu_features. Replace
20204         __cpu_features with GLRO(dl_x86_cpu_features).
20205         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
20206         (dl_platform_init): Call init_cpu_features.
20207         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
20208         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
20209         * sysdeps/x86_64/multiarch/Versions: Removed.
20210         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
20211         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
20212         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
20213         Removed.
20214         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
20215
20216 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20217
20218         [BZ #18820]
20219         * libio/Makefile (test-fmemopen-mem): New test.
20220         * libio/test-fmemopen.c (do_bz18820): New test.
20221         * libio/fmemopen.c (__fmemopen): Fix memory leak.
20222         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
20223
20224 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20225
20226         [BZ #16734]
20227         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
20228         (FREE_BUF): Delete.
20229         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
20230         * libio/genops.c (_IO_setb): Use malloc and free directly.
20231         (_IO_default_doallocate, _IO_default_finish): Likewise.
20232         ( _IO_unbuffer_all): Likewise.
20233         ( libc_freeres_fn): Likewise.
20234         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
20235         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
20236         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
20237         (_IO_wdefault_doallocate): Likewise.
20238
20239 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
20240
20241         [BZ #18086]
20242         * sysdeps/posix/nice.c (nice): Restore old errno.
20243         * posix/tst-nice.c (do_test): Add test for BZ #18086.
20244
20245 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
20246
20247         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
20248
20249 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20250
20251         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
20252         __bcopy and add a weak_alias to bcopy.
20253         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
20254         for static build.
20255
20256         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
20257         cleanup macro usage.
20258         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
20259         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
20260         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
20261         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
20262         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
20263         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
20264         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
20265         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20266         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
20267         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
20268         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20269         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
20270         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20271         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
20272         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
20273         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
20274         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
20275         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
20276         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20277
20278         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
20279         libc_hidden_def.
20280         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
20281
20282         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
20283         (sysdep_routines): Add strstr-ppc64.
20284         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
20285
20286 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
20287
20288         [BZ #18778]
20289         * elf/Makefile (tests): Add Add tst-nodelete2.
20290         (modules-names): Add tst-nodelete2mod.
20291         (tst-nodelete2mod.so-no-z-defs): New.
20292         ($(objpfx)tst-nodelete2): Likewise.
20293         ($(objpfx)tst-nodelete2.out): Likewise.
20294         (LDFLAGS-tst-nodelete2): Likewise.
20295         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
20296         out of loop through all loaded libraries.
20297         * elf/tst-nodelete2.c: New file.
20298         * elf/tst-nodelete2mod.c: Likewise.
20299         * elf/tst-znodelete-zlib.cc: Delete.
20300
20301 2015-08-11  Andreas Schwab  <schwab@suse.de>
20302
20303         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
20304         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
20305         (__openat64_nocancel): Likewise.
20306
20307 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
20308
20309         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
20310         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
20311         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
20312         * math/auto-libm-test-out: Regenerated.
20313         * sysdeps/i386/fpu/libm-test-ulps: Update.
20314         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20315
20316 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20317
20318         [BZ #18790]
20319         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
20320         threshold for returning +/- 1.
20321         * math/auto-libm-test-in: Add more tests of tanh.
20322         * math/auto-libm-test-out: Regenerated.
20323         * sysdeps/i386/fpu/libm-test-ulps: Update.
20324
20325 2015-08-10  Andreas Schwab  <schwab@suse.de>
20326
20327         [BZ #18781]
20328         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
20329         MORE_OFLAGS to oflag.
20330         * io/test-lfs.c (do_test): Test openat64.
20331
20332 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20333
20334         [BZ #18789]
20335         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
20336         smaller threshold for returning the argument.
20337         * math/auto-libm-test-in: Add more tests of sinh.
20338         * math/auto-libm-test-out: Regenerated.
20339         * sysdeps/i386/fpu/libm-test-ulps: Update.
20340
20341 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20342
20343         [BZ #18674]
20344         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
20345         break.
20346
20347 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
20348
20349         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
20350         (generated): Don't add $(addprefix z.,$(tzfiles)).
20351
20352 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20353
20354         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
20355         * scripts/sysd-rules.awk: Likewise.
20356
20357 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20358
20359         * iconvdata/tst-tables.sh: Change echo -n to printf.
20360         * nss/db-Makefile: Likewise.
20361         * posix/tst-getconf.sh: Likewise.
20362         * stdio-common/tst-unbputc.sh: Likewise.
20363
20364 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20365
20366         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
20367         MADV_*_PAGES defines behind this feature check.
20368
20369 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
20370
20371         [BZ #18480]
20372         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
20373         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
20374         Define.
20375         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
20376         LOAD_REGS_5, LOAD_REGS_6): Update.
20377         (INTERNAL_SYSCALL): Update using new LOAD defines.
20378         (INTERNAL_SYSCALL_NCS): Likewise.
20379         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
20380
20381 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20382
20383         [BZ #16734]
20384         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
20385
20386 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20387
20388         [BZ #17905]
20389         * catgets/Makefile (tst-catgets-mem): New test.
20390         * catgets/catgets.c (catopen): Don't use unbounded alloca.
20391         * catgets/open_catalog.c (__open_catalog): Likewise.
20392         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
20393
20394 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
20395
20396         [BZ #18787]
20397         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
20398         clobber registers.
20399         (atomic_compare_and_exchange_val_acq): Use register asms to assign
20400         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
20401         Cast return to __typeof (oldval).
20402
20403 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
20404
20405         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
20406         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
20407         and delete sys/syscall.h include.
20408
20409 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
20410
20411         [BZ #16517]
20412         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
20413         (tan): Force underflow exception for arguments with small absolute
20414         value.
20415         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
20416         (__kernel_tanf): Force underflow exception for arguments with
20417         small absolute value.
20418         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
20419         (__kernel_tanl): Force underflow exception for arguments with
20420         small absolute value.
20421         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
20422         (__kernel_tanl): Force underflow exception for arguments with
20423         small absolute value.
20424         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
20425         (__kernel_tanl): Force underflow exception for arguments with
20426         small absolute value.
20427         * math/auto-libm-test-in: Add more tests of tan.
20428         * math/auto-libm-test-out: Regenerated.
20429
20430 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20431
20432         Fix sysdeps/i386/fpu/s_scalbn.S build
20433
20434         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
20435
20436 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
20437
20438         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20439
20440 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20441
20442         Fix gcrt0.o compilation
20443
20444         When static-start-installed-name is different from
20445         start-installed-name, we must not use the shared objects.
20446
20447         * csu/Makefile
20448         (extra-objs): Add gmon-start.o when building shared library and
20449         $(static-start-installed-name) is different from
20450         $(start-installed-name).
20451         $(objpfx)g$(static-start-installed-name): When building shared
20452         library and $(static-start-installed-name) is different from
20453         $(static-start-installed-name), revert to non-shared rule,
20454         i.e. using $(objpfx)% and gmon-start.o.
20455
20456 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
20457
20458         [BZ #16519]
20459         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
20460         (__ieee754_sinh): Force underflow exception for arguments with
20461         small absolute value.
20462         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
20463         (__ieee754_sinhf): Force underflow exception for arguments with
20464         small absolute value.
20465         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
20466         (__ieee754_sinhl): Force underflow exception for arguments with
20467         small absolute value.
20468         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
20469         (__ieee754_sinhl): Force underflow exception for arguments with
20470         small absolute value.
20471         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
20472         (__ieee754_sinhl): Force underflow exception for arguments with
20473         small absolute value.
20474         * math/auto-libm-test-in: Add more tests of sinh.
20475         * math/auto-libm-test-out: Regenerated.
20476         * sysdeps/i386/fpu/libm-test-ulps: Update.
20477
20478 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20479
20480         * libio/oldfileops.c: Include unistd.h.
20481
20482 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
20483
20484         * stdlib/isomac.c: Include ctype.h.
20485
20486 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
20487
20488         * dirent/tst-seekdir.c (main): Converted to ...
20489         (do_test): ... this.
20490         (TEST_FUNCTION): New macro.
20491         Include test-skeleton.c.
20492         * elf/tst-dlmodcount.c (main): Converted to ...
20493         (do_test): ... this.
20494         (TEST_FUNCTION): New macro.
20495         Include test-skeleton.c.
20496         * elf/tst-order-main.c (main): Converted to ...
20497         (do_test): ... this.
20498         (TEST_FUNCTION): New macro.
20499         Include test-skeleton.c.
20500         * elf/tst-pie2.c (main): Converted to ...
20501         (do_test): ... this.
20502         (TEST_FUNCTION): New macro.
20503         Include test-skeleton.c.
20504         * inet/tst-ether_aton.c (main): Converted to ...
20505         (do_test): ... this.
20506         (TEST_FUNCTION): New macro.
20507         Include test-skeleton.c.
20508         * misc/tst-mntent.c (main): Converted to ...
20509         (do_test): ... this.
20510         (TEST_FUNCTION): New macro.
20511         Include test-skeleton.c.
20512         * misc/tst-tsearch.c (main): Converted to ...
20513         (do_test): ... this.
20514         (TEST_FUNCTION): New macro.
20515         Include test-skeleton.c.
20516         * posix/tst-regexloc.c (main): Converted to ...
20517         (do_test): ... this.
20518         (TEST_FUNCTION): New macro.
20519         Include test-skeleton.c.
20520         * resolv/tst-aton.c (main): Converted to ...
20521         (do_test): ... this.
20522         (TEST_FUNCTION): New macro.
20523         Include test-skeleton.c.
20524         * stdio-common/test-fwrite.c (main): Converted to ...
20525         (do_test): ... this.
20526         (TEST_FUNCTION): New macro.
20527         Include test-skeleton.c.
20528         * stdio-common/tst-ferror.c (main): Converted to ...
20529         (do_test): ... this.
20530         (TEST_FUNCTION): New macro.
20531         Include test-skeleton.c.
20532         * stdio-common/tst-printf.c (main): Converted to ...
20533         (do_test): ... this.
20534         (TEST_FUNCTION): New macro.
20535         Include test-skeleton.c.
20536         * stdio-common/tst-printfsz.c (main): Converted to ...
20537         (do_test): ... this.
20538         (TEST_FUNCTION): New macro.
20539         Include test-skeleton.c.
20540         * stdlib/tst-strtod.c (main): Converted to ...
20541         (do_test): ... this.
20542         (TEST_FUNCTION): New macro.
20543         Include test-skeleton.c.
20544         * string/tst-strlen.c (main): Converted to ...
20545         (do_test): ... this.
20546         (TEST_FUNCTION): New macro.
20547         Include test-skeleton.c.
20548         * string/tst-svc.c (main): Converted to ...
20549         (do_test): ... this.
20550         (TEST_FUNCTION): New macro.
20551         Include test-skeleton.c.
20552         * time/tst-strptime.c (main): Converted to ...
20553         (do_test): ... this.
20554         (TEST_FUNCTION): New macro.
20555         Include test-skeleton.c.
20556         * timezone/tst-timezone.c (main): Converted to ...
20557         (do_test): ... this.
20558         (TEST_FUNCTION): New macro.
20559         Include test-skeleton.c.
20560
20561 2015-08-05  Zack Weinberg  <zackw@panix.com>
20562
20563         * misc/regexp.h: Update comments.
20564
20565 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
20566
20567         [BZ #18635]
20568         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
20569         before return label.
20570
20571 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20572
20573         [BZ #18661]
20574         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
20575         when calling __errno_location.
20576         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
20577         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
20578
20579 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20580
20581         [BZ #18661]
20582         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
20583         (__lll_timedwait_tid): Align stack to 16 bytes when calling
20584         __gettimeofday.
20585
20586 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20587
20588         [BZ #18661]
20589         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20590         (__start_context): Don't use pop to restore %rdi so that stack
20591         is aligned to 16 bytes when calling __setcontext.
20592
20593 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20594
20595         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
20596         only for libc.
20597         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20598
20599 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20600
20601         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
20602         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
20603         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
20604
20605 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20606
20607         * string/memccpy.c (memccpy):
20608         Improve performance by using memchr/memcpy/__mempcpy.
20609
20610 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20611
20612         * string/strncpy.c (strncpy):
20613         Improve performance by using __strnlen/memcpy.
20614
20615 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20616
20617         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
20618         Optimize to avoid an unnecessary FPCR read.
20619
20620 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20621
20622         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
20623         Optimize to reduce FPCR/FPSR accesses.
20624
20625 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20626
20627         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
20628         dead->data[category] != NULL.
20629
20630 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
20631
20632         [BZ #18647]
20633         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
20634         and |x| close to 1, use absolute value of x when computing log.
20635         * math/auto-libm-test-in: Add more tests of pow.
20636         * math/auto-libm-test-out: Regenerated.
20637
20638 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20639
20640         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
20641         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
20642         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
20643
20644 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
20645
20646         [BZ #18525]
20647         * locales/km_KH: Remove timezone definition.
20648         * locales/lo_LA: Likewise.
20649         * locales/my_MM: Likewise.
20650         * locales/nan_TW@latin: Likewise.
20651         * locales/th_TH: Likewise.
20652         * locales/uk_UA: Likewise.
20653
20654 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
20655
20656         [BZ #18265]
20657         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
20658         (wcsncat): Likewise.
20659         (wcscmp): Likewise.
20660         (wcsncmp): Likewise.
20661
20662 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20663
20664         * test-skeleton.c (usage): New function.
20665         (main): Call usage when opt is '?'.
20666
20667 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20668
20669         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
20670         before first use.
20671
20672 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20673
20674         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
20675         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
20676         in there too.
20677
20678 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
20679
20680         * version.h (RELEASE): Set to "development".
20681         (VERSION): Set to "2.22.90"
20682
20683         * version.h (RELEASE): Set to "stable".
20684         (VERSION): Set to "2.22"
20685         * include/features.h (__GLIBC_MINOR__): Set to 22.
20686
20687 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
20688
20689         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
20690         Restructure macro to avoid "value computed is not used" warning.
20691         (atomic_compare_and_exchange_val_acq): Likewise.
20692
20693 2015-08-04  Andreas Schwab  <schwab@suse.de>
20694
20695         [BZ #18635]
20696         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
20697         ret.
20698         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
20699
20700 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
20701
20702         * po/pl.po: Updated translation.
20703         * po/uk.po: Likewise.
20704         * po/fi.po: Likewise.
20705         * po/ko.po: Likewise.
20706         * po/ru.po: Likewise.
20707         * po/vi.po: Likewise.
20708
20709 2015-07-31  Zack Weinberg  <zackw@panix.com>
20710
20711         [BZ #18681]
20712         * regexp.h: Add unconditional #warning stating that this header
20713         will be removed soon.  Revise banner comment to match.
20714         (compile): Consistently use ERROR instead of RETURN to report
20715         errors (partial fix for bz#18681).
20716         * regexp.c: Don't include regexp.h. Remove some unnecessary
20717         declarations.
20718
20719 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
20720
20721         * po/libc.pot: Regenerated.
20722
20723 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
20724
20725         [BZ #18740]
20726         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
20727         float-vlen4-arch-ext-cflags): Removed.
20728         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
20729         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
20730
20731 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20732
20733         [BZ #14113]
20734         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
20735         aligned to __aligned__.
20736         (pthread_cond_t, pthread_rwlock_t): Likewise.
20737
20738 2015-07-30  Torvald Riegel  <triegel@redhat.com>
20739
20740         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
20741
20742 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20743
20744         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
20745         (struct sigaction): Change sa_flags from a long to an int, and add
20746         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
20747
20748 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20749
20750         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
20751         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
20752         sysdeps/generic/sysdep.h include.
20753         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
20754         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
20755         sysdeps/hppa/sysdep.h.
20756         (ENTRY, PSEUDO): Undefine before defining.
20757
20758 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20759
20760         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
20761         from scratch to use INTERNAL_SYSCALL.
20762
20763 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20764
20765         [BZ #18078]
20766         * scripts/check-localplt.awk: Support alternate relocations.
20767         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
20768         sections.
20769         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
20770         malloc entries with + REL R_386_GLOB_DAT.
20771         * sysdeps/x86_64/localplt.data: New file.
20772
20773 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
20774
20775         [BZ #18731]
20776         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
20777         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20778         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20779
20780 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20781
20782         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
20783
20784 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20785
20786         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
20787         directly in terms of __sync_fetch_and_add and delete (int) cast.
20788
20789 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20790
20791         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
20792         the -D_ASM_IA64_CURRENT_H flag.
20793
20794 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20795
20796         [BZ #18641]
20797         * pwd/pwd.h (putpwent): Delete __nonnull markings.
20798
20799 2015-07-27  Andreas Schwab  <schwab@suse.de>
20800
20801         * conform/conformtest.pl (checknamespace): Filter out string
20802         literals while tokenizing.
20803
20804 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20805
20806         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20807         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
20808         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20809
20810 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20811
20812         * nptl/tst-join7mod.c: Add #include <string.h>.
20813
20814 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20815
20816         * sysdeps/nios2/libm-test-ulps: Update.
20817
20818 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20819
20820         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
20821         Fix order of arguments to the rt_sigprocmask syscall.
20822         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
20823         Likewise.
20824
20825 2015-07-24  Roland McGrath  <roland@hack.frob.com>
20826
20827         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
20828
20829 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20830
20831         [BZ #18457]
20832         * nptl/Makefile (tests): New test case tst-join7.
20833         (modules-names): New test case module tst-join7mod.
20834         * nptl/tst-join7.c: New file.
20835         * nptl/tst-join7mod.c: New file.
20836         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
20837         all translation units in libc.so, libpthread.so and rtld.
20838
20839 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20840
20841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20842
20843 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
20844
20845         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
20846         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20847         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20848         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20849         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20850         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20851         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20852         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20853         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20854         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20855         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20856         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20857         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
20858         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
20859         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
20860         implementation.
20861
20862 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20863
20864         [BZ #17711]
20865         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20866         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
20867         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20868         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20869         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
20870         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20871
20872 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20873
20874         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
20875         instead of just saying load lock in the comments.
20876
20877 2015-07-23  Roland McGrath  <roland@hack.frob.com>
20878
20879         * sysdeps/unix/Subdirs: Moved ...
20880         * sysdeps/posix/Subdirs: ... here.
20881         * login/pty.h (struct termios, struct winsize): Add forward decls.
20882         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
20883         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
20884         * sysdeps/arm/nacl/libc.abilist: Updated.
20885         * sysdeps/nacl/libutil.abilist: New file.
20886
20887         * bits/signum.h: Update comments to mention 1003.1-2013 too.
20888         (SIGWINCH): New macro.
20889
20890         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
20891         * sysdeps/arm/nacl/libc.abilist: Add it.
20892
20893 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20894
20895         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
20896
20897 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20898
20899         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20900         Swap __glibc_reserved0 and sa_flags order.
20901
20902 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20903
20904         [BZ #18657]
20905         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
20906         are pending TLS destructor calls.
20907         * include/link.h (struct link_map): Add concurrency note for
20908         L_TLS_DTOR_COUNT.
20909         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
20910         Don't touch the link map flag.  Atomically increment
20911         l_tls_dtor_count.
20912         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
20913         Avoid taking the load lock and don't touch the link map flag.
20914         * stdlib/tst-tls-atexit-nodelete.c: New test case.
20915         * stdlib/Makefile (tests): Use it.
20916         * stdlib/tst-tls-atexit.c (do_test): dlopen
20917         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
20918         to allow tst-tls-atexit-nodelete test case to use it.
20919
20920 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20921
20922         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
20923         to bits/types.h.
20924         (msgqnum_t): New typedef.
20925         (msglen_t): Likewise.
20926         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
20927         and msg_qbytes type to msglen_t.
20928
20929 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20930
20931         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
20932         pad0 to __glibc_reserved0.
20933         (struct stat64): Likewise.
20934
20935 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20936
20937         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20938         Change sa_flags from a long to an int and add __glibc_reserved0 before
20939         it for padding.
20940
20941 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20942
20943         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
20944         anonymous by deleting "siginfo" name.
20945
20946 2015-07-21  Roland McGrath  <roland@hack.frob.com>
20947
20948         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
20949         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
20950         rather than __nacl_irt_filename.
20951         * sysdeps/nacl/xstat.c (__xstat): Likewise.
20952
20953         * NEWS: New item for arm-nacl port.
20954         * sysdeps/arm/nacl/libc.abilist: New file.
20955         * sysdeps/nacl/ld.abilist: New file.
20956         * sysdeps/nacl/libBrokenLocale.abilist: New file.
20957         * sysdeps/nacl/libanl.abilist: New file.
20958         * sysdeps/nacl/libcrypt.abilist: New file.
20959         * sysdeps/nacl/libdl.abilist: New file.
20960         * sysdeps/nacl/libm.abilist: New file.
20961         * sysdeps/nacl/libpthread.abilist: New file.
20962         * sysdeps/nacl/libresolv.abilist: New file.
20963         * sysdeps/nacl/librt.abilist: New file.
20964
20965 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
20966
20967         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
20968         __startcontext to initialize the new context.
20969         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
20970         up CFI directive to forbid further backtracing.
20971
20972 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
20973
20974         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
20975         reference.
20976         * charmaps/ANSI_X3.4-1968: Likewise.
20977         * charmaps/BS_4730: Likewise.
20978         * charmaps/BS_VIEWDATA: Likewise.
20979         * charmaps/CP1250: Likewise.
20980         * charmaps/CP1251: Likewise.
20981         * charmaps/CP1252: Likewise.
20982         * charmaps/CP1253: Likewise.
20983         * charmaps/CP1254: Likewise.
20984         * charmaps/CP1255: Likewise.
20985         * charmaps/CP1256: Likewise.
20986         * charmaps/CSN_369103: Likewise.
20987         * charmaps/EBCDIC-DK-NO: Likewise.
20988         * charmaps/GB_1988-80: Likewise.
20989         * charmaps/GREEK-CCITT: Likewise.
20990         * charmaps/GREEK7: Likewise.
20991         * charmaps/INIS-8: Likewise.
20992         * charmaps/ISIRI-3342: Likewise.
20993         * charmaps/ISO_2033-1983: Likewise.
20994         * charmaps/ISO_5427-EXT: Likewise.
20995         * locales/POSIX: Likewise.
20996         * locales/ar_SA: Likewise.
20997         * locales/be_BY: Likewise.
20998         * locales/be_BY@latin: Likewise.
20999         * locales/ca_ES: Likewise.
21000         * locales/cs_CZ: Likewise.
21001         * locales/da_DK: Likewise.
21002         * locales/de_BE: Likewise.
21003         * locales/de_CH: Likewise.
21004         * locales/de_LU: Likewise.
21005         * locales/en_AU: Likewise.
21006         * locales/en_BW: Likewise.
21007         * locales/en_CA: Likewise.
21008         * locales/en_DK: Likewise.
21009         * locales/en_GB: Likewise.
21010         * locales/en_IE: Likewise.
21011         * locales/en_NZ: Likewise.
21012         * locales/en_ZA: Likewise.
21013         * locales/en_ZW: Likewise.
21014         * locales/es_AR: Likewise.
21015         * locales/es_BO: Likewise.
21016         * locales/es_CL: Likewise.
21017         * locales/es_CO: Likewise.
21018         * locales/es_DO: Likewise.
21019         * locales/es_EC: Likewise.
21020         * locales/es_ES: Likewise.
21021         * locales/es_HN: Likewise.
21022         * locales/es_MX: Likewise.
21023         * locales/es_PA: Likewise.
21024         * locales/es_PE: Likewise.
21025         * locales/es_PY: Likewise.
21026         * locales/es_SV: Likewise.
21027         * locales/es_US: Likewise.
21028         * locales/es_UY: Likewise.
21029         * locales/es_VE: Likewise.
21030         * locales/et_EE: Likewise.
21031         * locales/fa_IR: Likewise.
21032         * locales/fo_FO: Likewise.
21033         * locales/fr_CA: Likewise.
21034         * locales/fr_CH: Likewise.
21035         * locales/gv_GB: Likewise.
21036         * locales/he_IL: Likewise.
21037         * locales/hr_HR: Likewise.
21038         * locales/id_ID: Likewise.
21039         * locales/is_IS: Likewise.
21040         * locales/it_CH: Likewise.
21041         * locales/iw_IL: Likewise.
21042         * locales/kl_GL: Likewise.
21043         * locales/ko_KR: Likewise.
21044         * locales/kw_GB: Likewise.
21045         * locales/lg_UG: Likewise.
21046         * locales/lt_LT: Likewise.
21047         * locales/lv_LV: Likewise.
21048         * locales/mi_NZ: Likewise.
21049         * locales/nhn_MX: Likewise.
21050         * locales/nl_BE: Likewise.
21051         * locales/pl_PL: Likewise.
21052         * locales/sk_SK: Likewise.
21053         * locales/sl_SI: Likewise.
21054         * locales/sv_FI: Likewise.
21055         * locales/tl_PH: Likewise.
21056         * locales/tr_TR: Likewise.
21057         * locales/vi_VN: Likewise.
21058
21059 2015-07-21  Khem Raj  <raj.khem@gmail.com>
21060
21061         [BZ #17475]
21062         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
21063         of tu_IN and bh_IN.
21064
21065 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21066
21067         [BZ #18694]
21068         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
21069         bits/wordsize.h.
21070         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
21071
21072 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21073
21074         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
21075         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
21076         (spawn_thread): New function.
21077         (load): Rename to reg_dtor_and_close.  Move dlopen to...
21078         (do_test): ... here.  Use IS_LOADED to test for its
21079         availability.
21080
21081 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
21082
21083         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
21084
21085 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
21086
21087         [BZ #18696]
21088         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
21089         si_addr_bnd.
21090         (si_lower): New.
21091         (si_upper): Likewise.
21092
21093 2015-07-16  David S. Miller  <davem@davemloft.net>
21094
21095         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
21096
21097 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21098
21099         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
21100         buffer.
21101         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
21102         fail output information.
21103
21104 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21105
21106         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
21107         and strstr-ppc64..
21108         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
21109         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
21110         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
21111         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
21112         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
21113
21114 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21115
21116         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21117         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21118         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21119         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21120
21121 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21122
21123         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
21124         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
21125         rtld_hidden_proto.
21126         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
21127
21128 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21129
21130         * tst-nodelete-opened.c (do_test): Add comment to clarify how
21131         the test can fail.
21132
21133         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
21134
21135         [BZ #18676]
21136         * elf/tst-nodelete-opened.c: New test case.
21137         * elf/tst-nodelete-opened-lib.c: New test case module.
21138         * elf/Makefile (tests, modules-names): Use them.
21139         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
21140         early.
21141
21142 2015-07-15  David S. Miller  <davem@davemloft.net>
21143
21144         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
21145         futex-intenal.h
21146         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
21147         * sysdeps/sparc/sparc64/Makefile: Likewise.
21148         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21149         Remove space from macro define.
21150         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
21151
21152 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
21153
21154         [BZ #17475]
21155         * locale/iso-639.def: Update Bhili and Tulu language codes as
21156         per iso639-3.
21157
21158 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
21159
21160         * elf/tst-leaks1.c (main): Converted to ...
21161         (do_test): ... this.
21162         (TEST_FUNCTION): New macro.
21163         Include test-skeleton.c.
21164         * localedata/tst-langinfo.c (main): Converted to ...
21165         (do_test): ... this.
21166         (TEST_FUNCTION): New macro.
21167         Include test-skeleton.c.
21168         * math/test-fpucw.c (main): Converted to ...
21169         (do_test): ... this.
21170         (TEST_FUNCTION): New macro.
21171         Include test-skeleton.c.
21172         * math/test-tgmath.c (main): Converted to ...
21173         (do_test): ... this.
21174         (TEST_FUNCTION): New macro.
21175         Include test-skeleton.c.
21176         * math/test-tgmath2.c (main): Converted to ...
21177         (do_test): ... this.
21178         (TEST_FUNCTION): New macro.
21179         Include test-skeleton.c.
21180         * setjmp/tst-setjmp.c (main): Converted to ...
21181         (do_test): ... this.
21182         (TEST_FUNCTION): New macro.
21183         Include test-skeleton.c.
21184         * stdio-common/tst-sscanf.c (main): Converted to ...
21185         (do_test): ... this.
21186         (TEST_FUNCTION): New macro.
21187         Include test-skeleton.c.
21188         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
21189         (do_test): ... this.
21190         (TEST_FUNCTION): New macro.
21191         Include test-skeleton.c.
21192
21193         * elf/tst-audit9.c (main): Converted to ...
21194         (do_test): ... this.
21195         (TEST_FUNCTION): New macro.
21196         Include test-skeleton.c.
21197
21198 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
21199
21200         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
21201
21202 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21203
21204         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
21205         New variable.
21206
21207 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21208
21209         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21210
21211 2015-07-14  Roland McGrath  <roland@hack.frob.com>
21212
21213         * sysdeps/generic/dl-fileid.h: New file.
21214         * sysdeps/posix/dl-fileid.h: New file.
21215         * sysdeps/nacl/dl-fileid.h: New file.
21216         * include/link.h: Include <dl-fileid.h>.
21217         (struct link_map): Replace l_dev and l_ino with l_file_id.
21218         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
21219         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
21220         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
21221
21222 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21223
21224         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
21225
21226 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21227
21228         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
21229         Add iff $CXX is set.
21230         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
21231         Likewise.
21232         (tst-nodelete-zmodiff): Likewise.
21233         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
21234
21235 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21236
21237         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
21238
21239 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21240
21241         * sysdeps/aarch64/fpu/math_private.h
21242         (define math_opt_barrier): Add AArch64 version.
21243         (math_force_eval): Likewise.
21244
21245 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21246
21247         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
21248
21249 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
21250
21251         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
21252         %ld with %jd and cast to intmax_t.
21253         (do_test_length_zero): Likewise.
21254
21255 2015-07-10  Roland McGrath  <roland@hack.frob.com>
21256
21257         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
21258
21259 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
21260
21261         * sysdeps/tile/libm-test-ulps: Regenerated.
21262
21263         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
21264         Comment out the whole function, not just its body.
21265
21266 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21267
21268         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
21269         locks.
21270
21271         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
21272
21273 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21274
21275         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
21276         (sem_assume_only_signals_cause_futex_EINTR): Remove.
21277
21278 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21279
21280         * sysdeps/nptl/futex-internal.h: New file.
21281         * sysdeps/nacl/futex-internal.h: New file.
21282         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
21283         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
21284         error checking.
21285         (setxid_unmark_thread): Likewise.
21286         (__nptl_setxid): Likewise.
21287         (__wait_lookup_done): Likewise.
21288         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
21289         * nptl/nptl-init.c (sighandler_setxid): Likewise.
21290         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
21291         * nptl/pthread_once.c (clear_once_control): Likewise.
21292         (__pthread_once_slow): Likewise.
21293         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
21294         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
21295         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
21296         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21297         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
21298         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
21299         Likewise.
21300         (__pthread_rwlock_rdlock): Likewise.
21301         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21302         Likewise.
21303         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21304         Likewise.
21305         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
21306         Likewise.
21307         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
21308         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
21309         Likewise.
21310         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
21311         __ASSUME_PRIVATE_FUTEX check.
21312         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
21313         Check that shared futexes are supported.
21314         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
21315         wrappers with error checking.
21316         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
21317         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
21318         * nptl/pthread_barrierattr_setpshared.c
21319         (pthread_barrierattr_setpshared): Check that shared futexes are
21320         supported.
21321         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
21322         Likewise.
21323         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
21324         Likewise.
21325         * nptl/sem_init.c (futex_private_if_supported): Remove.
21326         (__new_sem_init): Adapt and check that shared futexes are supported.
21327         * nptl/sem_open.c (sem_open): Likewise.
21328         * nptl/sem_post.c (futex_wake): Remove.
21329         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
21330         (do_futex_wait): Use futex wrappers with error checking.
21331         * nptl/sem_wait.c: Include lowlevellock.h.
21332         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
21333         Use futex_supports_pshared.
21334         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
21335         Use futex wrappers with error checking.
21336         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
21337         Likewise.
21338         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
21339         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
21340         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
21341         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
21342         (futex_wake): Likewise.
21343         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
21344         (do_futex_wait): Use futex wrappers with error checking.
21345         (__new_sem_wait_slow): Update EINTR handling.
21346         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
21347
21348 2015-07-09  Martin Sebor  <msebor@redhat.com>
21349
21350         [BZ #18435]
21351         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21352         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
21353         * nptl/Makefile (test-xfail-tst-once5): Define.
21354
21355 2015-07-09  Roland McGrath  <roland@hack.frob.com>
21356
21357         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
21358         * elf/dl-minimal.c: For readability, reorder some definitions and
21359         introduce more page breaks.  Include <stdio.h>.
21360         (__libc_fatal): New function.
21361
21362         * include/unistd.h: Add rtld_hidden_proto for _exit.
21363         * posix/_exit.c: Add rtld_hidden_def.
21364         * sysdeps/mach/hurd/_exit.c: Likewise.
21365         * sysdeps/nacl/_exit.c: Likewise.
21366         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
21367         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
21368
21369 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21370
21371         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
21372         bndmov encoding with zero displacement.
21373
21374 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
21375             H.J. Lu  <hongjiu.lu@intel.com>
21376
21377         [BZ #18134]
21378         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
21379         * sysdeps/i386/configure: Regenerated.
21380         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
21381         (_dl_runtime_profile): Save and restore Intel MPX return bound
21382         registers when calling _dl_call_pltexit.  Add
21383         PRESERVE_BND_REGS_PREFIX before return.
21384         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
21385         (LRV_BND1_OFFSET): Likewise.
21386         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
21387         lrv_bnd1.
21388         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
21389         typo in bndmov encoding.
21390         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
21391         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
21392         branch instructions to preserve bounds.
21393
21394 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21395
21396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
21397         [GLIBC_2.22]: Add fmemopen.
21398
21399 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21400
21401         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
21402         returns an error, also try to use host port from __mach_host_self for
21403         the __vm_wire call.
21404         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
21405
21406 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21407
21408         [BZ #18400]
21409         [BZ #18648]
21410         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
21411         Fix pr_uid and pr_gid members.
21412         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
21413         definition to elf_greg_t.
21414
21415 2015-07-08  Roland McGrath  <roland@hack.frob.com>
21416
21417         [BZ #18383]
21418         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
21419         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
21420         * sysdeps/arm/configure: Regenerated.
21421         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
21422         (test-xfail-tst-tlsalign-static): Variable removed.
21423
21424         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
21425         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
21426         rather than explicit 'ln -s'.
21427
21428         * resolv/rpc/netdb.h: New file.
21429         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
21430
21431 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21432
21433         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
21434         length buffers.
21435         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
21436         test-skeleton.c.
21437
21438         [BZ #6544]
21439         [BZ #11216]
21440         [BZ #12836]
21441         [BZ #13151]
21442         [BZ #13152]
21443         [BZ #14292]
21444         * include/stdio.h (fmemopen): Remove hidden prototype.
21445         (__fmemopen): Add new hidden prototype.
21446         * libio/Makefile: Add oldfmemopen object.
21447         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
21448         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
21449         compliance.
21450         * libio/oldfmemopen.c: New file: old fmemopen implementation for
21451         symbol compatibility.
21452         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
21453         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
21454         fmemopen.
21455         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
21456         on append and read mode.
21457         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
21458         fmemopen.
21459         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
21460         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
21461         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
21462         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
21463         Likewise.
21464         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
21465         [GLIBC_2.22]: Likewise.
21466         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
21467         Likewise.
21468         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
21469         Likewise.
21470         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
21471         [GLIBC_2.22]: Likewise.
21472         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
21473         [GLIBC_2.22]: Likewise.
21474         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
21475         [GLIBC_2.22]: Likewise.
21476         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
21477         [GLIBC_2.22]: Likewise.
21478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
21479         [GLIBC_2.22]: Likewise.
21480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
21481         [GLIBC_2.22]: Likewise.
21482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
21483         [GLIBC_2.22]: Likewise.
21484         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
21485         Likewise.
21486         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
21487         Likewise.
21488         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
21489         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
21490         [GLIBC_2.22]: Likewise.
21491         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
21492         [GLIBC_2.22]: Likewise.
21493         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
21494         [GLIBC_2.22]: Likewise.
21495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
21496         [GLIBC_2.22]: Likewise.
21497         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
21498         Likewise.
21499         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
21500         Likewise.
21501         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
21502         Likewise.
21503         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
21504         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
21505
21506 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21507
21508         [BZ #18643]
21509         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
21510         IPV6_PATHMTU, and IPV6_DONTFRAG.
21511
21512 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
21513
21514         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
21515         and _IO_UNBUFFERED.
21516         * libio/oldfileops.c: Likewise.
21517         * libio/wfileops.c: Likewise.
21518
21519 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21520
21521         * nscd/selinux.c: Delete selinux/flask.h include.
21522
21523 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21524
21525         [BZ #18641]
21526         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
21527         (putpwent): Likewise.
21528         (getpwnam): Likewise.
21529         (getpwent_r): Likewise.
21530         (getpwuid_r): Likewise.
21531         (getpwnam_r): Likewise.
21532         (fgetpwent_r): Likewise.
21533
21534 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21535
21536         [BZ #18557]
21537         * inet/rcmd.c (__validuser2_sa): Check user first to
21538         short-circuit host check.
21539
21540 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
21541             Mikhail Ilin  <m.ilin@samsung.com>
21542
21543         [BZ #17833]
21544         * elf/Makefile (tests): Add tst-nodelete.
21545         (modules-names): Add tst-nodelete-uniquemod.
21546         (tst-nodelete-uniquemod.so-no-z-defs): New.
21547         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
21548         (tst-nodelete-zmod.so-no-z-defs): Likewise.
21549         ($(objpfx)tst-nodelete): Likewise.
21550         ($(objpfx)tst-nodelete.out): Likewise.
21551         (LDFLAGS-tst-nodelete): Likewise.
21552         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
21553         * elf/dl-close.c (_dl_close_worker): Add a parameter to
21554         implement forced object deletion.
21555         (_dl_close): Pass false to _dl_close_worker.
21556         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
21557         * elf/tst-nodelete.cc: New file.
21558         * elf/tst-nodeletelib.cc: Likewise.
21559         * elf/tst-znodeletelib.cc: Likewise.
21560         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
21561
21562 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21563
21564         [BZ #18508]
21565         * stdlib/Makefile ($(objpfx)tst-makecontext3):
21566         Depend on $(libdl).
21567         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
21568         is not called infinitely times.
21569         (backtrace_helper): New function.
21570         (trace_arg): New struct.
21571         (st1): Enlarge stack size.
21572         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21573         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
21574         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21575         Likewise.
21576
21577 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21578
21579         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21580
21581 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21582
21583         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
21584         Include sys/types.h instead of bits/types.h.
21585         Remove inclusion of bits/wordsize.h.
21586
21587 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21588
21589         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
21590         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
21591         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
21592         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
21593         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
21594         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
21595
21596 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21597
21598         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
21599         link-defines.sym.
21600         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
21601         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
21602         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
21603         and LR_SIZE.
21604         * sysdeps/i386/link-defines.sym: New file.
21605
21606 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21607
21608         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
21609         (modules-names): Add tst-auditmod3a tst-auditmod3b.
21610         ($(objpfx)tst-audit3): New rule.
21611         ($(objpfx)tst-audit3.out): Likewise.
21612         * sysdeps/i386/tst-audit3.c: New file.
21613         * sysdeps/i386/tst-audit3.h: Likewise.
21614         * sysdeps/i386/tst-auditmod3a.c: Likewise.
21615         * sysdeps/i386/tst-auditmod3b.c: Likewise.
21616
21617 2015-07-07  Torvald Riegel  <triegel@redhat.com>
21618
21619         [BZ #18633]
21620         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
21621         pointer in C code.
21622         (__strcat_c): Likewise.
21623         (__strcat_g): Likewise.
21624
21625 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
21626
21627         [BZ #18592]
21628         * misc/sbrk.c: Set errno to ENOMEM on overflow.
21629
21630 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21631
21632         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
21633         New function.  (__ieee754_sqrtf): New function.
21634         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
21635         New function.
21636         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
21637         New function.
21638
21639 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21640
21641         * sysdeps/ieee754/support.c: Remove unused file.
21642
21643 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21644
21645         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
21646         registers instead of d ones so the layout is kernel abi compatible.
21647         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
21648         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
21649         Likewise.
21650
21651 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21652
21653         * sysdeps/aarch64/libm-test-ulps: Regenerated.
21654
21655 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21656
21657         [BZ #18619]
21658         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
21659         and return argument in case of subnormal argument.
21660
21661 2015-07-01  Martin Sebor  <msebor@redhat.com>
21662
21663         [BZ #18435]
21664         * nptl/Makefile: Add tst-once5.cc.
21665         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21666         Remove macro redefinitions.
21667         * nptl/tst-once5.cc: New test.
21668
21669 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21670
21671         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
21672
21673         * sysdeps/arm/libm-test-ulps: Regenerated.
21674
21675         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
21676         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21677
21678 2015-06-30  Torvald Riegel  <triegel@redhat.com>
21679
21680         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
21681         lll_lock_wait_private and lll_futex_wake probes.
21682
21683         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21684         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
21685         Likewise.
21686         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
21687         atomic_spin_nop.
21688         * sysdeps/x86_64/bits/atomic.h: Likewise.
21689         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
21690         to atomic_spin_nop and move ...
21691         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21692         ... here and ...
21693         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
21694         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
21695         atomic_spin_nop instead of BUSY_WAIT_NOP.
21696         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
21697         Likewise.
21698         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
21699         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21700         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
21701         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
21702         instead of atomic_delay.
21703
21704 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
21705
21706         [BZ #18613]
21707         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
21708         X_ADJ not X when adjusting exponent.
21709         (__ieee754_gamma_r): Do intermediate computations in
21710         round-to-nearest then adjust overflowing and underflowing results
21711         as needed.
21712         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
21713         of X_ADJ not X when adjusting exponent.
21714         (__ieee754_gammaf_r): Do intermediate computations in
21715         round-to-nearest then adjust overflowing and underflowing results
21716         as needed.
21717         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
21718         log of X_ADJ not X when adjusting exponent.
21719         (__ieee754_gammal_r): Do intermediate computations in
21720         round-to-nearest then adjust overflowing and underflowing results
21721         as needed.  Use 1.0L not 1.0f as numerator of division.
21722         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
21723         log of X_ADJ not X when adjusting exponent.
21724         (__ieee754_gammal_r): Do intermediate computations in
21725         round-to-nearest then adjust overflowing and underflowing results
21726         as needed.  Use 1.0L not 1.0f as numerator of division.
21727         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
21728         of X_ADJ not X when adjusting exponent.
21729         (__ieee754_gammal_r): Do intermediate computations in
21730         round-to-nearest then adjust overflowing and underflowing results
21731         as needed.  Use 1.0L not 1.0f as numerator of division.
21732         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
21733         to auto-libm-test-in.
21734         (tgamma_test): Use ALL_RM_TEST.
21735         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
21736         tests of tgamma with spurious-overflow.
21737         * math/auto-libm-test-out: Regenerated.
21738         * math/gen-libm-have-vector-test.sh: Do not check for START.
21739         * sysdeps/i386/fpu/libm-test-ulps: Update.
21740         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21741
21742         [BZ #18612]
21743         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
21744         arguments, just return 0.5 times the argument, with underflow
21745         forced as needed.
21746         * math/auto-libm-test-in: Add more tests of j1.
21747         * math/auto-libm-test-out: Regenerated.
21748
21749         [BZ #16559]
21750         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
21751         (__ieee754_j1): Force underflow exception for small results.
21752         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21753         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
21754         (__ieee754_j1f): Force underflow exception for small results.
21755         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21756         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21757         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21758         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
21759         (__ieee754_j1l): Force underflow exception for small results.
21760         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21761         * math/auto-libm-test-in: Add more tests of j1 and jn.
21762         * math/auto-libm-test-out: Regenerated.
21763
21764         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
21765         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
21766         (PF_MPLS): Likewise.
21767         (AF_IB): Likewise.
21768         (AF_MPLS): Likewise.
21769         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
21770         value and macro.
21771         (MS_RMT_MASK): Include MS_LAZYTIME.
21772
21773 2015-06-26  Mel Gorman  <mgorman@suse.de>
21774
21775         [BZ #18502]
21776         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
21777         already minimal.
21778
21779 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
21780
21781         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
21782         (DT_MIPS_NUM): Update.
21783         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
21784         DT_MIPS_RLD_MAP_REL.
21785
21786 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
21787
21788         [BZ #16559]
21789         [BZ #18602]
21790         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
21791         round-to-nearest internally then recompute results that
21792         underflowed to zero in the original rounding mode.
21793         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21794         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21795         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21796         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21797         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
21798         * sysdeps/i386/fpu/libm-test-ulps: Update.
21799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21800
21801 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
21802
21803         * NEWS: Fixed description of link with vector math library.
21804
21805 2015-06-25  Andreas Schwab  <schwab@suse.de>
21806
21807         [BZ #18549]
21808         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
21809         * libio/test-fmemopen.c (do_test): Add test for it.
21810
21811 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21812
21813         [BZ #17841]
21814         * Makeconfig (no-pie-ldflag): New.
21815         (+link): Set to $(+link-pie) if default to PIE.
21816         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
21817         * config.make.in (build-pie-default): New.
21818         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
21819         is default.  AC_SUBST.
21820         * configure: Regenerated.
21821         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
21822
21823 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21824
21825         * nptl/descr.h (struct pthread): Change type of field setxid_futex
21826         to 'unsigned int'.
21827
21828         * resolv/gai_misc.h (struct waitlist): Change type of field
21829         counterp to 'volatile unsigned int *'.
21830         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
21831         FUTEXADDR and OLDVAL.
21832         * resolv/getaddrinfo_a.c (getaddrinfo_a):
21833         Give local variable TOTAL type 'volatile unsigned int'.
21834         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21835         * resolv/gai_suspend.c (gai_suspend):
21836         Give local variable CNTR type 'unsigned int'.
21837
21838         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
21839         counterp to 'volatile unsigned int *'.
21840         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
21841         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
21842         (aio_suspend): Give local variable CNTR type 'unsigned int'.
21843         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
21844         Give local variable TOTAL type 'volatile unsigned int'.
21845         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21846
21847 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21848
21849         [BZ #18383]
21850         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
21851         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
21852         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
21853         comment for i386/x86-64.
21854         (test-xfail-tst-tlsalign-extern-static): Removed.
21855
21856 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21857
21858         * math/test-double.h: New file.
21859         * math/test-float.h: Likewise.
21860         * math/test-ldouble.h: Likewise.
21861         * math/test-math-inline.h: Likewise.
21862         * math/test-math-no-inline.h: Likewise.
21863         * math/test-math-scalar.h: Likewise.
21864         * math/test-math-vector.h: Likewise.
21865         * math/test-vec-loop.h: Remove file.  Contents moved into
21866         test-math-vector.h.
21867         * math/libm-test.inc (MATHCONST): Do not document macro.
21868         * math/test-double.c: Include test-double.h, test-math-no-inline.h
21869         and test-math-scalar.h.
21870         (FUNC): Remove macro.
21871         (FUNC_TEST): Likewise.
21872         (FLOAT): Likewise.
21873         (MATHCONST): Likewise.
21874         (PRINTF_EXPR): Likewise.
21875         (PRINTF_XEXPR): Likewise.
21876         (PRINTF_NEXPR): Likewise.
21877         (TEST_DOUBLE): Likewise.
21878         (TEST_MATHVEC): Likewise.
21879         (__NO_MATH_INLINES): Likewise.
21880         * math/test-float.c: Include test-float.h, test-math-no-inline.h
21881         and test-math-scalar.h.
21882         (FUNC): Remove macro.
21883         (FUNC_TEST): Likewise.
21884         (FLOAT): Likewise.
21885         (MATHCONST): Likewise.
21886         (PRINTF_EXPR): Likewise.
21887         (PRINTF_XEXPR): Likewise.
21888         (PRINTF_NEXPR): Likewise.
21889         (TEST_FLOAT): Likewise.
21890         (TEST_MATHVEC): Likewise.
21891         (__NO_MATH_INLINES): Likewise.
21892         * math/test-idouble.c: Include test-double.h, test-math-inline.h
21893         and test-math-scalar.h.
21894         (FUNC): Remove macro.
21895         (FUNC_TEST): Likewise.
21896         (FLOAT): Likewise.
21897         (MATHCONST): Likewise.
21898         (PRINTF_EXPR): Likewise.
21899         (PRINTF_XEXPR): Likewise.
21900         (PRINTF_NEXPR): Likewise.
21901         (TEST_DOUBLE): Likewise.
21902         (TEST_MATHVEC): Likewise.
21903         (TEST_INLINE): Likewise.
21904         (__NO_MATH_INLINES): Likewise.
21905         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
21906         test-math-scalar.h.
21907         (FUNC): Remove macro.
21908         (FUNC_TEST): Likewise.
21909         (FLOAT): Likewise.
21910         (MATHCONST): Likewise.
21911         (PRINTF_EXPR): Likewise.
21912         (PRINTF_XEXPR): Likewise.
21913         (PRINTF_NEXPR): Likewise.
21914         (TEST_FLOAT): Likewise.
21915         (TEST_MATHVEC): Likewise.
21916         (TEST_INLINE): Likewise.
21917         (__NO_MATH_INLINES): Likewise.
21918         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
21919         and test-math-scalar.h.
21920         (FUNC): Remove macro.
21921         (FUNC_TEST): Likewise.
21922         (FLOAT): Likewise.
21923         (MATHCONST): Likewise.
21924         (PRINTF_EXPR): Likewise.
21925         (PRINTF_XEXPR): Likewise.
21926         (PRINTF_NEXPR): Likewise.
21927         (TEST_LDOUBLE): Likewise.
21928         (TEST_MATHVEC): Likewise.
21929         (TEST_INLINE): Likewise.
21930         (__NO_MATH_INLINES): Likewise.
21931         * math/test-ldouble.c: Include test-ldouble.h,
21932         test-math-no-inline.h and test-math-scalar.h.
21933         (FUNC): Remove macro.
21934         (FUNC_TEST): Likewise.
21935         (FLOAT): Likewise.
21936         (MATHCONST): Likewise.
21937         (PRINTF_EXPR): Likewise.
21938         (PRINTF_XEXPR): Likewise.
21939         (PRINTF_NEXPR): Likewise.
21940         (TEST_LDOUBLE): Likewise.
21941         (TEST_MATHVEC): Likewise.
21942         (__NO_MATH_INLINES): Likewise.
21943         * math/test-double-vlen2.h: Include test-double.h,
21944         test-math-no-inline.h and test-math-vector.h.
21945         (FLOAT): Remove macro.
21946         (FUNC): Likewise.
21947         (MATHCONST): Likewise.
21948         (PRINTF_EXPR): Likewise.
21949         (PRINTF_XEXPR): Likewise.
21950         (PRINTF_NEXPR): Likewise.
21951         (TEST_DOUBLE): Likewise.
21952         (TEST_MATHVEC): Likewise.
21953         (__NO_MATH_INLINES): Likewise.
21954         (CNCT): Likewise.
21955         (CONCAT): Likewise.
21956         (WRAPPER_NAME): Likewise.
21957         (WRAPPER_DECL): Likewise.
21958         (WRAPPER_DECL_ff): Likewise.
21959         (WRAPPER_DECL_fFF): Likewise.
21960         (VECTOR_WRAPPER): Likewise.
21961         (VECTOR_WRAPPER_ff): Likewise.
21962         (VECTOR_WRAPPER_fFF): Likewise.
21963         (VEC_LEN): New macro.
21964         * math/test-double-vlen4.h: Include test-double.h,
21965         test-math-no-inline.h and test-math-vector.h.
21966         (FLOAT): Remove macro.
21967         (FUNC): Likewise.
21968         (MATHCONST): Likewise.
21969         (PRINTF_EXPR): Likewise.
21970         (PRINTF_XEXPR): Likewise.
21971         (PRINTF_NEXPR): Likewise.
21972         (TEST_DOUBLE): Likewise.
21973         (TEST_MATHVEC): Likewise.
21974         (__NO_MATH_INLINES): Likewise.
21975         (CNCT): Likewise.
21976         (CONCAT): Likewise.
21977         (WRAPPER_NAME): Likewise.
21978         (WRAPPER_DECL): Likewise.
21979         (WRAPPER_DECL_ff): Likewise.
21980         (WRAPPER_DECL_fFF): Likewise.
21981         (VECTOR_WRAPPER): Likewise.
21982         (VECTOR_WRAPPER_ff): Likewise.
21983         (VECTOR_WRAPPER_fFF): Likewise.
21984         (VEC_LEN): New macro.
21985         * math/test-double-vlen8.h: Include test-double.h,
21986         test-math-no-inline.h and test-math-vector.h.
21987         (FLOAT): Remove macro.
21988         (FUNC): Likewise.
21989         (MATHCONST): Likewise.
21990         (PRINTF_EXPR): Likewise.
21991         (PRINTF_XEXPR): Likewise.
21992         (PRINTF_NEXPR): Likewise.
21993         (TEST_DOUBLE): Likewise.
21994         (TEST_MATHVEC): Likewise.
21995         (__NO_MATH_INLINES): Likewise.
21996         (CNCT): Likewise.
21997         (CONCAT): Likewise.
21998         (WRAPPER_NAME): Likewise.
21999         (WRAPPER_DECL): Likewise.
22000         (WRAPPER_DECL_ff): Likewise.
22001         (WRAPPER_DECL_fFF): Likewise.
22002         (VECTOR_WRAPPER): Likewise.
22003         (VECTOR_WRAPPER_ff): Likewise.
22004         (VECTOR_WRAPPER_fFF): Likewise.
22005         (VEC_LEN): New macro.
22006         * math/test-float-vlen4.h: Include test-float.h,
22007         test-math-no-inline.h and test-math-vector.h.
22008         (FLOAT): Remove macro.
22009         (FUNC): Likewise.
22010         (MATHCONST): Likewise.
22011         (PRINTF_EXPR): Likewise.
22012         (PRINTF_XEXPR): Likewise.
22013         (PRINTF_NEXPR): Likewise.
22014         (TEST_FLOAT): Likewise.
22015         (TEST_MATHVEC): Likewise.
22016         (__NO_MATH_INLINES): Likewise.
22017         (CNCT): Likewise.
22018         (CONCAT): Likewise.
22019         (WRAPPER_NAME): Likewise.
22020         (WRAPPER_DECL): Likewise.
22021         (WRAPPER_DECL_ff): Likewise.
22022         (WRAPPER_DECL_fFF): Likewise.
22023         (VECTOR_WRAPPER): Likewise.
22024         (VECTOR_WRAPPER_ff): Likewise.
22025         (VECTOR_WRAPPER_fFF): Likewise.
22026         (VEC_LEN): New macro.
22027         * math/test-float-vlen8.h: Include test-float.h,
22028         test-math-no-inline.h and test-math-vector.h.
22029         (FLOAT): Remove macro.
22030         (FUNC): Likewise.
22031         (MATHCONST): Likewise.
22032         (PRINTF_EXPR): Likewise.
22033         (PRINTF_XEXPR): Likewise.
22034         (PRINTF_NEXPR): Likewise.
22035         (TEST_FLOAT): Likewise.
22036         (TEST_MATHVEC): Likewise.
22037         (__NO_MATH_INLINES): Likewise.
22038         (CNCT): Likewise.
22039         (CONCAT): Likewise.
22040         (WRAPPER_NAME): Likewise.
22041         (WRAPPER_DECL): Likewise.
22042         (WRAPPER_DECL_ff): Likewise.
22043         (WRAPPER_DECL_fFF): Likewise.
22044         (VECTOR_WRAPPER): Likewise.
22045         (VECTOR_WRAPPER_ff): Likewise.
22046         (VECTOR_WRAPPER_fFF): Likewise.
22047         (VEC_LEN): New macro.
22048         * math/test-float-vlen16.h: Include test-float.h,
22049         test-math-no-inline.h and test-math-vector.h.
22050         (FLOAT): Remove macro.
22051         (FUNC): Likewise.
22052         (MATHCONST): Likewise.
22053         (PRINTF_EXPR): Likewise.
22054         (PRINTF_XEXPR): Likewise.
22055         (PRINTF_NEXPR): Likewise.
22056         (TEST_FLOAT): Likewise.
22057         (TEST_MATHVEC): Likewise.
22058         (__NO_MATH_INLINES): Likewise.
22059         (CNCT): Likewise.
22060         (CONCAT): Likewise.
22061         (WRAPPER_NAME): Likewise.
22062         (WRAPPER_DECL): Likewise.
22063         (WRAPPER_DECL_ff): Likewise.
22064         (WRAPPER_DECL_fFF): Likewise.
22065         (VECTOR_WRAPPER): Likewise.
22066         (VECTOR_WRAPPER_ff): Likewise.
22067         (VECTOR_WRAPPER_fFF): Likewise.
22068         (VEC_LEN): New macro.
22069         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
22070         test-vec-loop.h.
22071         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22072         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22073         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22074         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22075         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22076         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22077         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22078
22079 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22080
22081         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
22082         (__getlogin_r): ... this.
22083
22084 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22085
22086         [BZ #18594]
22087         * math/s_ccosh.c (__ccosh): Compare with least normal value
22088         instead of comparing class with FP_SUBNORMAL.
22089         * math/s_ccoshf.c (__ccoshf): Likewise.
22090         * math/s_ccoshl.c (__ccoshl): Likewise.
22091         * math/s_cexp.c (__cexp): Likewise.
22092         * math/s_cexpf.c (__cexpf): Likewise.
22093         * math/s_cexpl.c (__cexpl): Likewise.
22094         * math/s_csin.c (__csin): Likewise.
22095         * math/s_csinf.c (__csinf): Likewise.
22096         * math/s_csinh.c (__csinh): Likewise.
22097         * math/s_csinhf.c (__csinhf): Likewise.
22098         * math/s_csinhl.c (__csinhl): Likewise.
22099         * math/s_csinl.c (__csinl): Likewise.
22100         * math/s_ctan.c (__ctan): Likewise.
22101         * math/s_ctanf.c (__ctanf): Likewise.
22102         * math/s_ctanh.c (__ctanh): Likewise.
22103         * math/s_ctanhf.c (__ctanhf): Likewise.
22104         * math/s_ctanhl.c (__ctanhl): Likewise.
22105         * math/s_ctanl.c (__ctanl): Likewise.
22106         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
22107         csin, csinh, ctan and ctanh.
22108         * math/auto-libm-test-out: Regenerated.
22109         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
22110         * sysdeps/i386/fpu/libm-test-ulps: Update.
22111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22112
22113 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22114
22115         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
22116         return value is wrong, print the expected value too.
22117
22118 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22119
22120         [BZ #18585]
22121         * elf/readlib.c (is_gdb_python_file): New.
22122         (process_file): Don't issue errors on filenames with -gdb.py
22123         suffix.
22124
22125 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22126
22127         * math/auto-libm-test-in: Add more tests of csin and csinh.
22128         * math/auto-libm-test-out: Regenerated.
22129         * math/libm-test.inc (csin_test_data): Remove tests moved to
22130         auto-libm-test-in.
22131         (csinh_test_data): Likewise.
22132
22133         [BZ #18593]
22134         * math/s_csin.c (__csin): Negate before rather than after possibly
22135         overflowing multiplication.
22136         * math/s_csinf.c (__csinf): Likewise.
22137         * math/s_csinh.c (__csinh): Likewise.
22138         * math/s_csinhf.c (__csinhf): Likewise.
22139         * math/s_csinhl.c (__csinhl): Likewise.
22140         * math/s_csinl.c (__csinl): Likewise.
22141         * math/auto-libm-test-in: Add some tests of csin and csinh.
22142         * math/auto-libm-test-out: Regenerated.
22143         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
22144         (csinh_test_data): Likewise.
22145         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22146
22147         [BZ #18586]
22148         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
22149         underflow exception for small results.
22150
22151 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
22152
22153         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22154         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
22155         variable and included header.
22156         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
22157         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
22158         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
22159         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
22160         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
22161         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
22162         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
22163         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
22164         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
22165         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
22166         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
22167         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
22168         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
22169         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
22170         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
22171         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
22172
22173 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22174
22175         [BZ #16526]
22176         [BZ #16538]
22177         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
22178         (__sin): Force underflow exception for arguments with small
22179         absolute value.
22180         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
22181         (__kernel_sinf): Force underflow exception for arguments with
22182         small absolute value.
22183         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
22184         (__kernel_sincosl): Force underflow exception for arguments with
22185         small absolute value.
22186         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
22187         (__kernel_sinl): Force underflow exception for arguments with
22188         small absolute value.
22189         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
22190         (__kernel_sincosl): Force underflow exception for arguments with
22191         small absolute value.
22192         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
22193         (__kernel_sinl): Force underflow exception for arguments with
22194         small absolute value.
22195         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
22196         (__kernel_sinl): Force underflow exception for arguments with
22197         small absolute value.
22198         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
22199         (__kernel_sinf): Force underflow exception for arguments with
22200         small absolute value.
22201         * math/auto-libm-test-in: Add more tests of sin and sincos.
22202         * math/auto-libm-test-out: Regenerated.
22203
22204         [BZ #18245]
22205         [BZ #18583]
22206         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
22207         (__kernel_standard_l): Use feholdexcept and fesetenv around
22208         conversion to double instead of special-casing overflow and
22209         underflow.
22210         * math/libm-test.inc (fmod_test_data): Add more tests.
22211         (remainder_test_data): Likewise.
22212         (sqrt_test_data): Likewise.
22213
22214 2015-06-23  Torvald Riegel  <triegel@redhat.com>
22215
22216         [BZ #17403]
22217         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
22218         atomic_read_barrier, atomic_write_barrier): Define.
22219         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
22220         atomic_read_barrier, atomic_write_barrier): Define.
22221
22222 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22223
22224         * math/Makefile [$(PERL) != no]
22225         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
22226         dependency on libm-test.stmp below the inclusion of Rules.
22227
22228 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
22229
22230         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22231         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
22232         and included header.
22233         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
22234         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
22235         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
22236         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
22237         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
22238         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
22239         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
22240         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
22241         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
22242         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
22243         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
22244         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
22245         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
22246         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
22247         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
22248         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
22249         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
22250         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
22251         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
22252
22253 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22254
22255         [BZ #18371]
22256         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
22257         intermediate but not final result might underflow.
22258         * math/s_csqrtf.c (__csqrtf): Likewise.
22259         * math/s_csqrtl.c (__csqrtl): Likewise.
22260         * math/auto-libm-test-in: Add more tests of csqrt.
22261         * math/auto-libm-test-out: Regenerated.
22262         * sysdeps/i386/fpu/libm-test-ulps: Update.
22263
22264         [BZ #18219]
22265         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
22266         threshold on absolute value of exponent for which scaling is used.
22267         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
22268         * math/auto-libm-test-in: Add more tests of exp2.
22269         * math/auto-libm-test-out: Regenerated.
22270
22271 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
22272
22273         [BZ #17977]
22274         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
22275         when initializing interface list, based on the bug analysis
22276         and the patch proposed by Eric Newton.
22277         * resolv/tst-res_hconf_reorder.c: New test.
22278         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
22279         tst-res_hconf_reorder.
22280         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
22281         and $(shared-thread-library).
22282         (tst-res_hconf_reorder-ENV): New variable.
22283
22284         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
22285         in comment.
22286
22287 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
22288
22289         [BZ #16353]
22290         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
22291         (__expm1): Force underflow exception for arguments with small
22292         absolute value.
22293         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
22294         (__expm1f): Force underflow exception for arguments with small
22295         absolute value.
22296         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
22297         (__expm1): Force underflow exception for arguments with small
22298         absolute value.
22299         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
22300         (__expm1f): Force underflow exception for arguments with small
22301         absolute value.
22302         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22303         Check for small arguments before calling __expm1.
22304         * math/auto-libm-test-in: Do not mark underflow exceptions as
22305         possibly missing for bug 16353.
22306         * math/auto-libm-test-out: Regenerated.
22307
22308 2015-06-22  Andreas Schwab  <schwab@suse.de>
22309
22310         [BZ #18513]
22311         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
22312         PTR queries.
22313
22314 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
22315
22316         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
22317
22318         * string/strcoll_l.c: Remove unused struct element idxnow.
22319
22320 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
22321
22322         [BZ #18569]
22323         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
22324         underflow and return argument in case of subnormal argument.
22325         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
22326         Likewise.
22327         * math/auto-libm-test-in: Add more tests of expm1.
22328         * math/auto-libm-test-out: Regenerated.
22329
22330         [BZ #16361]
22331         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22332         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22333         tiny results.
22334         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22335         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22336         tiny results.
22337         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
22338         mark underflow exceptions as possibly missing for bug 16361.
22339         * math/auto-libm-test-out: Regenerated.
22340
22341 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
22342
22343         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
22344         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
22345         Remove variable.
22346         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
22347         (test-xfail-XOPEN2K8/utmpx.h/conform).
22348
22349         * conform/conformtest.pl ($xerrors): New variable.
22350         (note_error): New function.
22351         (compiletest): New argument $xfail.  Use not_error.
22352         (runtest): Likewise.
22353         (top level): Handle xfail- lines.  Update calls to compiletest and
22354         runtest.  Handle xfail- and optional- in headers listed with
22355         allow-header.
22356         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
22357         (O_EXEC): Likewise.
22358         (O_SEARCH): Likewise.
22359         * conform/data/stropts.h-data (ioctl): Likewise.
22360         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
22361         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
22362         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
22363         (msghdr.msg_controllen): Likewise.
22364         (cmsghdr.cmsg_len): Likewise.
22365         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
22366         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
22367         variable.
22368         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
22369         (test-xfail-XPG4/stropts.h/conform): Likewise.
22370         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
22371         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
22372         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
22373         (test-xfail-UNIX98/stropts.h/conform): Likewise.
22374         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
22375         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
22376         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
22377         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
22378         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
22379         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
22380         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
22381         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
22382         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
22383         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
22384         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
22385         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
22386         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
22387         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
22388         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
22389
22390 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22391
22392         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
22393         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
22394         definitions for proper unfolding of __MATHDECL_VEC.
22395
22396 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22397
22398         * benchtests/bench-strcoll.c:
22399         Include string.h.
22400         (main): Remove unused variable res.
22401
22402 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22403
22404         * timezone/Makefile (%/UTC %/Universal):
22405         Generate test-result files for UTC and Universal.
22406
22407 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22408
22409         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22410
22411 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
22412
22413         [BZ #16350]
22414         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
22415         for arguments with small absolute value.
22416         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
22417         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
22418         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
22419         (__asinh): Force underflow exception for arguments with small
22420         absolute value.
22421         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
22422         (__asinhf): Force underflow exception for arguments with small
22423         absolute value.
22424         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
22425         (__asinhl): Force underflow exception for arguments with small
22426         absolute value.
22427         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
22428         (__asinhl): Force underflow exception for arguments with small
22429         absolute value.
22430         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
22431         (__asinhl): Force underflow exception for arguments with small
22432         absolute value.
22433         * math/auto-libm-test-in: Do not mark underflow exceptions as
22434         possibly missing for bug 16350.
22435         * math/auto-libm-test-out: Regenerated.
22436
22437         * include/bits/ipc.h: Remove file.
22438         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
22439         variable.
22440         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
22441         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
22442         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
22443         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
22444         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
22445         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
22446         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
22447         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
22448         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
22449
22450         * math/auto-libm-test-in: Remove spurious underflow allowance for
22451         tests of cexp.
22452         * math/auto-libm-test-out: Regenerated.
22453
22454         [BZ #18558]
22455         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
22456         unconditional definition.
22457         (MCAST_BLOCK_SOURCE): Likewise.
22458         (MCAST_UNBLOCK_SOURCE): Likewise.
22459         (MCAST_LEAVE_GROUP): Likewise.
22460         (MCAST_JOIN_SOURCE_GROUP): Likewise.
22461         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
22462         (MCAST_MSFILTER): Likewise.
22463         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
22464         Remove variable.
22465         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
22466         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
22467         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
22468         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
22469         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
22470
22471 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
22472
22473         * NEWS: Mention addition of x86_64 vector sincosf.
22474         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
22475         * math/test-float-vlen4.h: Likewise.
22476         * math/test-float-vlen8.h: Likewise.
22477         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22478         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
22479         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22480         * sysdeps/x86_64/fpu/Versions: New versions added.
22481         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22482         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22483         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22484         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
22485         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
22486         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
22487         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
22488         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
22489         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
22490         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
22491         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
22492         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
22493         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
22494         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
22495         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
22496         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
22497         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
22498         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22499         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22500         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22501         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22502         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22503         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22504         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22505
22506         * NEWS: Mention addition of x86_64 vector sincos.
22507         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
22508         * math/math.h (__MATHDECL_VEC): New macro.
22509         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
22510         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
22511         declaration under condition.
22512         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
22513         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
22514         TEST_VEC_LOOP change.
22515         * math/test-double-vlen4.h: Likewise.
22516         * math/test-double-vlen8.h: Likewise.
22517         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
22518         * math/test-float-vlen4.h: Likewise.
22519         * math/test-float-vlen8.h: Likewise.
22520         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22521         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
22522         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22523         * sysdeps/x86_64/fpu/Versions: New versions added.
22524         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22525         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22526         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22527         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
22528         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
22529         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
22530         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
22531         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
22532         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
22533         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
22534         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
22535         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
22536         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
22537         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
22538         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
22539         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
22540         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
22541         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22542         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22543         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22544         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22545         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22546         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22547         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22548
22549         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22550         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22551         redirections for powf.
22552         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22553         * sysdeps/x86_64/fpu/Versions: New versions added.
22554         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22555         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22556         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22557         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
22558         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
22559         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
22560         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
22561         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
22562         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
22563         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
22564         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
22565         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
22566         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
22567         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
22568         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
22569         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
22570         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
22571         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22572         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22573         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22574         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22575         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22576         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22577         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22578         * math/test-float-vlen16.h: Fixed 2 argument macro.
22579         * math/test-float-vlen4.h: Likewise.
22580         * math/test-float-vlen8.h: Likewise.
22581         * NEWS: Mention addition of x86_64 vector powf.
22582
22583 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
22584
22585         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22586         and redefine.
22587         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22588         and redefine.
22589         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
22590         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22591         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22592
22593         [BZ #18553]
22594         * resource/getpriority.c (getpriority): Rename to __getpriority
22595         and define as weak alias of __getpriority.
22596         * resource/setpriority.c (setpriority): Rename to __setpriority
22597         and define as weak alias of __setpriority.
22598         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
22599         __getpriority and define as weak alias of __getpriority.
22600         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
22601         __setpriority and define as weak alias of __setpriority.
22602         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
22603         strong name.
22604         (setpriority): Use __setpriority as strong name.
22605         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
22606         __getpriority and define as weak alias of __getpriority.
22607         * include/sys/resource.h (__getpriority): Declare.  Use
22608         libc_hidden_proto.
22609         (__setpriority): Likewise.
22610         (getpriority): Don't use libc_hidden_proto.
22611         (setpriority): Likewise.
22612         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
22613         getpriority.  Call __setpriority instead of setpriority.
22614         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
22615         Remove variable.
22616
22617         [BZ #18547]
22618         * misc/getttyent.c (getttynam): Rename to __getttynam and define
22619         as weak alias of __getttynam.  Use prototype function definition.
22620         Call __setttyent, __getttyent and __endttyent instead of
22621         setttyent, getttyent and endttyent.
22622         (getttyent): Rename to __getttyent and define as weak alias of
22623         __getttyent.  Call __setttyent instead of setttyent.  Call
22624         __fgets_unlocked instead of fgets_unlocked.
22625         (setttyent): Rename to __setttyent and define as weak alias of
22626         __setttyent.
22627         (endttyent): Rename to __endttyent and define as weak alias of
22628         __endttyent.
22629         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
22630         (__setttyent): Likewise.
22631         (__endttyent): Likewise.
22632         (getttyent): Don't use libc_hidden_proto.
22633         (setttyent): Likewise.
22634         (endttyent): Likewise.
22635         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
22636         __endttyent instead of setttyent, getttyent and endttyent.
22637         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
22638         Remove variable.
22639
22640         [BZ #18546]
22641         * socket/recv.c (__recv): Use libc_hidden_def.
22642         * socket/socket.c (__socket): Likewise.
22643         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22644         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22645         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
22646         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
22647         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
22648         libc_hidden_def.
22649         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
22650         libc_hidden_weak.
22651         * include/sys/socket.h (__socket): Do not use attribute_hidden.
22652         Use libc_hidden_proto.
22653         (__recv): Likewise.
22654         * socket/Versions (libc): Export __recv and __socket at version
22655         GLIBC_PRIVATE.
22656         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
22657         instead of recv.
22658         (init_mq_netlink): Call __socket instead of socket.
22659         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
22660         Remove variable.
22661
22662         [BZ #18545]
22663         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
22664         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
22665         hidden_weak.
22666         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
22667         define as alias of __mq_timedsend.  Use hidden_weak.
22668         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
22669         __mq_timedsend as strong name.
22670         (mq_timedreceive): Use __mq_timedreceive as strong name.
22671         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
22672         (__mq_timedreceive): Likewise.
22673         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
22674         __mq_timedreceive instead of mq_timedreceive.
22675         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
22676         instead of mq_timedsend.
22677         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
22678         Remove variable.
22679
22680         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
22681         hidden_def and hidden_weak instead of libc_hidden_def and
22682         libc_hidden_weak.
22683         (top level): Refer to hidden_def in comment.
22684         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
22685         macro.  Use it instead of libc_hidden_def.
22686         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
22687         specify __GI_* name explicitly.
22688         (mq_timedreceive): Likewise.
22689         (mq_setattr): Likewise.
22690
22691         [BZ #18544]
22692         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
22693         __pthread_barrier_init and define as weak alias of
22694         __pthread_barrier_init.
22695         * sysdeps/sparc/nptl/pthread_barrier_init.c
22696         (pthread_barrier_init): Likewise.
22697         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
22698         __pthread_barrier_wait and define as weak alias of
22699         __pthread_barrier_wait.
22700         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22701         (pthread_barrier_wait): Likewise.
22702         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22703         (pthread_barrier_wait): Likewise.
22704         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
22705         (pthread_barrier_wait): Likewise.
22706         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
22707         (pthread_barrier_wait): Likewise.
22708         * nptl/Versions (libpthread): Export __pthread_barrier_init and
22709         __pthread_barrier_wait at version GLIBC_PRIVATE.
22710         * include/pthread.h (__pthread_barrier_init): Declare.
22711         (__pthread_barrier_wait): Likewise.
22712         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
22713         Call __pthread_barrier_wait instead of pthread_barrier_wait.
22714         (helper_thread): Likewise.
22715         (init_mq_netlink): Call __pthread_barrier_init instead of
22716         pthread_barrier_init.
22717
22718         [BZ #18542]
22719         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
22720         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
22721         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
22722         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
22723         vswscanf.
22724         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
22725         Remove variable.
22726
22727         [BZ #18540]
22728         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
22729         strong alias of _IO_fflush.  Use libc_hidden_def.
22730         * libio/iofflush_u.c (fflush_unlocked): Rename to
22731         __fflush_unlocked and define as weak alias of __fflush_unlocked.
22732         Use libc_hidden_weak.
22733         * include/stdio.h (__fflush_unlocked): Declare.  Use
22734         libc_hidden_proto.
22735         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
22736         fflush_unlocked.
22737         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
22738         Remove variable.
22739
22740         [BZ #18539]
22741         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
22742         define as weak alias of __addseverity.
22743         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
22744         Remove variable.
22745         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
22746         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
22747         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
22748
22749         [BZ #18536]
22750         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
22751         (__tfind): Likewise.
22752         (__tdelete): Likewise.
22753         (__twalk): Likewise.
22754         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
22755         __twalk to GLIBC_PRIVATE.
22756         * include/search.h (__tsearch): Use libc_hidden_proto.
22757         (__tfind): Likewise.
22758         (__tdelete): Likewise.
22759         (__twalk): Likewise.
22760         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
22761         Call __tdelete instead of tdelete.
22762         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
22763         tfind.  Call __tsearch instead of tsearch.
22764         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
22765         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
22766         Remove variable.
22767         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
22768
22769         [BZ #18534]
22770         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
22771         (dprintf): Define as a weak alias of __dprintf, not a strong
22772         alias.
22773         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
22774         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
22775         dprintf.
22776         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
22777         Remove variable.
22778         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
22779         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
22780
22781         [BZ #18533]
22782         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
22783         not a strong alias.
22784         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
22785         Remove variable.
22786
22787         [BZ #18532]
22788         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
22789         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
22790         (in6addr_loopback): Rename to __in6addr_loopback and define as
22791         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
22792         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
22793         libc_hidden_proto.
22794         (__in6addr_any): Likewise.
22795         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
22796         in6addr_any.
22797         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
22798         variable.
22799         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
22800
22801 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
22802
22803         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
22804         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
22805         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22806         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22807         redirections for pow.
22808         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22809         * sysdeps/x86_64/fpu/Versions: New versions added.
22810         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22811         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22812         build of SSE, AVX2 and AVX512 IFUNC versions.
22813         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
22814         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
22815         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
22816         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
22817         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
22818         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
22819         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
22820         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
22821         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
22822         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
22823         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
22824         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
22825         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
22826         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
22827         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22828         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22829         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22830         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22831         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22832         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22833         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22834         * NEWS: Mention addition of x86_64 vector pow.
22835
22836         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22837         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22838         redirections for expf.
22839         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22840         * sysdeps/x86_64/fpu/Versions: New versions added.
22841         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22842         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22843         build of SSE, AVX2 and AVX512 IFUNC versions.
22844         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
22845         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
22846         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
22847         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
22848         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
22849         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
22850         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
22851         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
22852         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
22853         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
22854         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
22855         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
22856         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
22857         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22858         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22859         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22860         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22861         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22862         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22863         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22864         * NEWS: Mention addition of x86_64 vector expf.
22865
22866         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
22867         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
22868         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22869         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22870         redirections for exp.
22871         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22872         * sysdeps/x86_64/fpu/Versions: New versions added.
22873         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22874         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22875         build of SSE, AVX2 and AVX512 IFUNC versions.
22876         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
22877         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
22878         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
22879         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
22880         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
22881         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
22882         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
22883         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
22884         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
22885         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
22886         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
22887         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
22888         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
22889         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22890         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22891         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22892         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22893         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22894         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22895         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22896         * NEWS: Mention addition of x86_64 vector exp.
22897
22898         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22899         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22900         redirections for logf.
22901         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22902         * sysdeps/x86_64/fpu/Versions: New versions added.
22903         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22904         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22905         build of SSE, AVX2 and AVX512 IFUNC versions.
22906         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
22907         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
22908         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
22909         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
22910         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
22911         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
22912         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
22913         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
22914         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
22915         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
22916         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
22917         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
22918         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
22919         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22920         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22921         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22922         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22923         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22924         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22925         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22926         * NEWS: Mention addition of x86_64 vector logf.
22927
22928         * bits/libm-simd-decl-stubs.h: Added stubs for log.
22929         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
22930         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22931         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22932         redirections for log.
22933         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22934         * sysdeps/x86_64/fpu/Versions: New versions added.
22935         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22936         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22937         build of SSE, AVX2 and AVX512 IFUNC versions.
22938         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
22939         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
22940         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
22941         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
22942         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
22943         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
22944         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
22945         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
22946         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
22947         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
22948         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
22949         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
22950         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
22951         test.
22952         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22953         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22954         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22955         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22956         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22957         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22958         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22959         * NEWS: Mention addition of x86_64 vector log.
22960
22961 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22962
22963         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
22964         cfi_adjust_cfa_offset argument.
22965         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
22966         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
22967
22968         [BZ #18034]
22969         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
22970         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
22971         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
22972         ordering using ldar.
22973         (_dl_tlsdesc_dynamic): Likewise.
22974         (_dl_tlsdesc_return_lazy): Likewise.
22975         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
22976         relaxed atomics instead of volatile and synchronize with release store.
22977         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
22978         volatile.
22979         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22980
22981 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
22982
22983         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22984         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
22985         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22986         * sysdeps/x86_64/fpu/Versions: New versions added.
22987         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22988         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22989         build of SSE, AVX2 and AVX512 IFUNC versions.
22990         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
22991         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
22992         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
22993         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
22994         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
22995         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
22996         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
22997         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
22998         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
22999         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
23000         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
23001         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
23002         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
23003         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
23004         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
23005         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
23006         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
23007         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
23008         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
23009         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
23010         * NEWS: Mention addition of x86_64 vector sinf.
23011
23012 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
23013
23014         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
23015         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
23016         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
23017         Remove variable.
23018         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
23019         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
23020
23021 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23022
23023         [BZ #18530]
23024         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
23025         strong alias of _IO_fputs.  Use libc_hidden_def.
23026         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
23027         and define as weak alias of __fputs_unlocked.  Use
23028         libc_hidden_weak.
23029         * include/stdio.h (__fputs_unlocked): Declare.  Use
23030         libc_hidden_proto.
23031         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
23032         fputs_unlocked.
23033
23034         [BZ #18529]
23035         * resolv/netdb.h [__USE_POSIX]: Change condition to
23036         [__USE_XOPEN2K].
23037         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
23038         not expect.
23039         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
23040         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
23041         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
23042         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
23043         [XPG4 || UNIX98] (AI_ALL): Likewise.
23044         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
23045         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
23046         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
23047         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
23048         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
23049         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
23050         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
23051         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
23052         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
23053         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
23054         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
23055         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
23056         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
23057         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
23058         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
23059         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23060         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23061         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
23062         [XPG4 || UNIX98] (gai_strerror): Likewise.
23063         [XPG4 || UNIX98] (getaddrinfo): Likewise.
23064         [XPG4 || UNIX98] (getnameinfo): Likewise.
23065
23066         [BZ #18528]
23067         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
23068         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
23069         __USE_XOPEN2K8].
23070         (getgrent): Likewise.
23071         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
23072         expect.
23073         [XPG3 || POSIX2008] (endgrent): Likewise.
23074         [XPG3] (setgrent): Likewise.
23075         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
23076         variable.
23077         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
23078
23079         [BZ #18527]
23080         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
23081         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
23082         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
23083         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
23084         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
23085         * include/unistd.h (__getlogin_r): Declare.  Use
23086         libc_hidden_proto.
23087         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
23088         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
23089         variable.
23090         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
23091         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
23092         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
23093
23094 2015-06-12  Martin Sebor  <msebor@redhat.com>
23095
23096         [BZ #18512]
23097         * Makerules (check-install-supported): New target.
23098         (install): Add check-install-supported as a dependency.
23099         * manual/install.texi (Installing the C Library): Document
23100         that overriding prefix and exec_prefix is not supported.
23101         Mention DESTDIR.
23102         * INSTALL: Regenerate from the above.
23103
23104 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23105
23106         [BZ #18519]
23107         * posix/Versions (libc): Export __libc_pread at version
23108         GLIBC_PRIVATE.
23109         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
23110         instead of pread.
23111         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
23112         variable.
23113
23114         [BZ #18522]
23115         * misc/efgcvt_r.c
23116         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
23117         (cvt_symbol): Use weak_alias instead of strong_alias.
23118         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
23119         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
23120         Remove variable.
23121         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
23122         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
23123
23124         [BZ #18520]
23125         * inet/herrno.c (h_errno): Rename to __h_errno.
23126         (__libc_h_errno): Define as alias of __h_errno not h_errno.
23127         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
23128         to __h_errno instead of h_errno.
23129         * nptl/herrno.c (h_errno): Rename to __h_errno.
23130         (__h_errno_location): Refer to __h_errno not h_errno.
23131         * resolv/Versions (h_errno): Rename to __h_errno.
23132         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
23133         Remove variable.
23134         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
23135
23136 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
23137
23138         * configure.ac: More strict check for AVX512 assembler support.
23139         * configure: Regenerated.
23140
23141         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
23142         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
23143         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23144         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
23145         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23146         * sysdeps/x86_64/fpu/Versions: New versions added.
23147         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23148         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23149         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23150         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
23151         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
23152         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
23153         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
23154         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
23155         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
23156         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
23157         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
23158         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
23159         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
23160         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
23161         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
23162         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
23163         test.
23164         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23165         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23166         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23167         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23168         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23169         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23170         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23171         * NEWS: Mention addition of x86_64 vector sin.
23172
23173 2015-06-11  Florian Weimer  <fweimer@redhat.com>
23174
23175         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
23176         comment.
23177
23178 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
23179
23180         [BZ #18479]
23181         * nptl/pt-interp.c: New file.
23182         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
23183         Add pt-interp.
23184         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
23185         $(common-objpfx)runtime-linker.h.
23186
23187 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
23188
23189         * Makeconfig (+interp): Remove unused variable.
23190         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
23191         only.  Depend on $(common-objpfx)runtime-linker.h instead of
23192         $(elf-objpfx)runtime-linker.h.
23193         ($(elf-objpfx)runtime-linker.h): Rename to
23194         $(common-objpfx)runtime-linker.h and move ...
23195         * Makerules [$(build-shared) = yes]: ... here.
23196         * elf/interp.c: Include <runtime-linker.h> instead of
23197         <elf/runtime-linker.h>.
23198
23199 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23200
23201         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
23202         (__gettimeofday_syscall): Remove vsyscall fallback.
23203         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
23204         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
23205         Add syscall fallback function.
23206         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
23207         if vDSO is not present.
23208         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
23209         fallback function.
23210         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
23211         present.
23212         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
23213         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23214
23215 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23216
23217         [BZ #18497]
23218         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
23219         of wcscmp.
23220         (wcscmp): Define as weak alias of WCSCMP.
23221         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
23222         wcscoll.
23223         (USE_HIDDEN_DEF): Define.
23224         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
23225         __wcscoll.  Don't use libc_hidden_weak.
23226         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
23227         wcscmp.
23228         * sysdeps/i386/i686/multiarch/wcscmp-c.c
23229         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
23230         __GI_wcscmp.
23231         (weak_alias): Undefine and redefine.
23232         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
23233         __wcscmp and define as weak alias of __wcscmp.
23234         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
23235         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
23236         (__wcscoll): Likewise.
23237         (wcscmp): Don't use libc_hidden_proto.
23238         (wcscoll): Likewise.
23239         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
23240         wcscoll.
23241         * posix/regexec.c (check_node_accept_bytes): Likewise.
23242         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
23243         variable.
23244         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
23245         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
23246
23247         [BZ #18507]
23248         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
23249         __fstatvfs and define as weak alias of __fstatvfs.  Use
23250         libc_hidden_weak.
23251         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
23252         and define as weak alias of __statvfs.  Use libc_hidden_weak.
23253         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
23254         Define as alias of __fstatvfs, not fstatvfs.
23255         (fstatvfs64): Likewise.
23256         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
23257         Define as alias of __statvfs, not statvfs.
23258         (statvfs64): Likewise.
23259         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
23260         Remove variable.
23261
23262 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23263
23264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23265         (HAVE_GETCPU_VSYSCALL): Define.
23266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23267         (HAVE_GETCPU_VSYSCALL): Likewise.
23268         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
23269         * sysdeps/unix/sysv/linux/sched_getcpu.c
23270         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
23271         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
23272         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
23273         prototype.
23274         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23275         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
23276         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
23277         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
23278         Define.
23279         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
23280         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
23281         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
23282         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23283
23284 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
23285
23286         * sysdeps/x86_64/fpu/Makefile: New file.
23287         * sysdeps/x86_64/fpu/Versions: New file.
23288         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
23289         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
23290         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
23291         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
23292         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
23293         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
23294         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
23295         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
23296         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
23297         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
23298         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
23299         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
23300         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
23301         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23302         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23303         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
23304         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
23305         * sysdeps/x86_64/configure.ac: Options for libmvec build.
23306         * sysdeps/x86_64/configure: Regenerated.
23307         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
23308         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
23309         * manual/install.texi (Configuring and compiling): Document
23310         --disable-mathvec.
23311         * INSTALL: Regenerated.
23312         * NEWS: Mention addition of libmvec and x86_64 vector cos.
23313
23314         * math/Makefile: Added rules for vector tests.
23315         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
23316         declaration under condition.
23317         * math/test-double-vlen2.h: New file.
23318         * math/test-double-vlen4.h: New file.
23319         * math/test-double-vlen8.h: New file.
23320         * math/test-vec-loop.h: Added initialization macro.
23321         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
23322         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
23323         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
23324         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
23325         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
23326         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
23327         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
23328         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
23329         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
23330         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
23331         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
23332
23333         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23334         * sysdeps/x86_64/fpu/Versions: New versions added.
23335         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
23336         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
23337         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
23338         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
23339         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
23340         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
23341         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
23342         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
23343         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
23344         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
23345         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
23346         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
23347         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
23348         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23349         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23350         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23351         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
23352         * NEWS: Mention addition of x86_64 vector cosf.
23353
23354         * math/Makefile: Added CFLAGS for new tests.
23355         * math/test-float-vlen16.h: New file.
23356         * math/test-float-vlen4.h: New file.
23357         * math/test-float-vlen8.h: New file.
23358         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
23359         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
23360         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23361         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
23362         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
23363         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
23364         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
23365         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
23366         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
23367         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
23368         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
23369
23370 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
23371
23372         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
23373         * locale/programs/ld-ctype.c: Likewise.
23374
23375 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
23376
23377         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
23378         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
23379         bit_ZMM16_31_state): New macro.
23380         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23381         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
23382
23383 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
23384
23385         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
23386
23387 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
23388
23389         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
23390
23391 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23392
23393         [BZ #18498]
23394         * libio/memstream.c (open_memstream): Rename to __open_memstream
23395         and define as weak alias of __open_memstream.
23396         * include/stdio.h (__open_memstream): Declare.  Use
23397         libc_hidden_proto.
23398         (open_memstream): Don't use libc_hidden_proto.
23399         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
23400         open_memstream.
23401         * posix/getopt.c (_getopt_internal_r): Likewise.
23402         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
23403         variable.
23404         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
23405         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
23406         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
23407
23408         [BZ #18496]
23409         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23410         instead of wcrtomb.
23411
23412         [BZ #18483]
23413         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
23414         [__USE_XOPEN2K8].  Remove redundant #endif.
23415         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
23416         Remove redundant #if.
23417         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
23418         Remove variable.
23419         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
23420         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
23421
23422         [BZ #18495]
23423         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
23424         (__iswlower): Likewise.
23425         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
23426         (__iswlower): Likewise.
23427         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
23428         instead of towlower.
23429         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23430         instead of iswlower.  Call __towupper instead of towupper.
23431         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23432         instead of iswalnum.
23433
23434 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23435
23436         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
23437         errors to stderr.
23438
23439 2015-06-05  Florian Weimer  <fweimer@redhat.com>
23440
23441         [BZ #15661]
23442         [BZ #17322]
23443         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
23444         Check for overflow properly.  Check for O_APPEND.  Ignore large
23445         file system block sizes.  Add comments about problems.
23446         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
23447         * manual/filesys.texi (Storage Allocation): New node.
23448
23449 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23450
23451         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
23452         cancellable syscalls.
23453         (SYS_ify): Add guard to no redefine it.
23454         (INLINE_SYSCALL): Likewise.
23455         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
23456         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
23457         SYSCALL_CANCEL instead.
23458         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
23459         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
23460         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
23461         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
23462         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
23463         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
23464         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
23465         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
23466         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23467         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23468         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
23469         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
23470         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
23471         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
23472         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
23473         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
23474         Likewise.
23475         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
23476         (__libc_pread64): Likewise.
23477         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
23478         (__libc_preadv): Likewise.
23479         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
23480         (__libc_readv64): Likewise.
23481         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
23482         (__libc_pwrite): Likewise.
23483         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
23484         (__libc_pwrite64): Likewise.
23485         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
23486         (__libc_pwritev): Likewise.
23487         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
23488         (__libc_pwritev64): Likewise.
23489         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
23490         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
23491         (sync_file_range): Likewise.
23492         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
23493         Likewise.
23494         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
23495         Likewise.
23496         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
23497         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
23498         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
23499         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
23500         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
23501         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
23502         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23503         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
23504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
23505         Likewise.
23506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23507         (__libc_read64): Likewise.
23508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
23509         Likewise.
23510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
23511         Likewise.
23512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
23513         Likewise.
23514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
23515         Likewise.
23516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23517         (__libc_pread64): Likewise.
23518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
23519         Likewise.
23520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23521         (__libc_pwrite64): Likewise.
23522         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
23523         (sync_file_range): Likewise.
23524         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
23525         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
23526         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
23527         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
23528         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
23529         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
23530         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
23531         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
23532         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
23533         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
23534         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23535         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
23536         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
23537         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
23538         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
23539         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
23540         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
23541         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23542         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
23543         Likewise.
23544         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
23545         Likewise.
23546         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
23547         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
23548         Likewise.
23549         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
23550         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
23551         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
23552         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
23553         Likewise.
23554         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
23555         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
23556         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
23557         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
23558         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
23559
23560 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
23561
23562         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
23563         Include dl-vdso.
23564         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
23565         Use VDSO routines for gettimeofday, clock_gettime if
23566         available.
23567         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
23568         Declare VDSO symbols.
23569         * sysdeps/unix/sysv/linux/arm/sysdep.h:
23570         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
23571         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23572         * sysdeps/unix/sysv/linux/arm/Versions: Add
23573         __vdso_clock_gettime.
23574
23575 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23576
23577         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
23578         be an inline implementation regardless of library is built within.
23579         (open_not_cancel_2): Likewise.
23580         (__read_nocancel): Likewise.
23581         (__write_nocancel): Likewise.
23582         (openat_not_cancel): Likewise.
23583         (openat_not_cancel_3): Likewise.
23584         (openat64_not_cancel): Likewise.
23585         (openat64_not_cancel_3): Likewise.
23586         (__close_nocancel): Likewise.
23587         (pause_not_cancel): Likewise.
23588         (nanosleep_not_cancel): Likewise.
23589         (sigsuspend_not_cancel): Likewise.
23590
23591 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23592
23593         [BZ #14958]
23594         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
23595         wake-up.
23596         (__pthread_rwlock_rdlock_slow): Likewise.
23597         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23598         Likewise.
23599         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
23600         Likewise.
23601         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
23602         * nptl/tst-rwlock16.c: New file.
23603         * nptl/Makefile (tests): Add new test.
23604
23605 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23606
23607         [BZ #18324]
23608         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
23609         missing wake-up of readers.
23610         * nptl/tst-rwlock15.c: New file.
23611         * nptl/Makefile (tests): Add new test.
23612
23613 2015-06-03  Roland McGrath  <roland@hack.frob.com>
23614
23615         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
23616         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
23617         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
23618         and __nacl_supply_interface_rtld.
23619         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
23620         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
23621         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
23622         Add __nacl_supply_interface_rtld.
23623         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
23624
23625 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23626
23627         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
23628         isfinite.
23629         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23630         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
23631
23632 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23633
23634         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
23635         __signbit* with standard C99 macros.
23636         * math/e_exp10l.c: Likewise.
23637         * math/e_exp2l.c: Likewise.
23638         * math/e_scalb.c: Likewise.
23639         * math/e_scalbf.c: Likewise.
23640         * math/e_scalbl.c: Likewise.
23641         * math/s_ldexp.c: Likewise.
23642         * math/s_ldexpf.c: Likewise.
23643         * math/s_ldexpl.c: Likewise.
23644         * math/w_atan2.c: Likewise.
23645         * math/w_atan2f.c: Likewise.
23646         * math/w_atan2l.c: Likewise.
23647         * math/w_cosh.c: Likewise.
23648         * math/w_coshf.c: Likewise.
23649         * math/w_coshl.c: Likewise.
23650         * math/w_exp10.c: Likewise.
23651         * math/w_exp10f.c: Likewise.
23652         * math/w_exp10l.c: Likewise.
23653         * math/w_exp2.c: Likewise.
23654         * math/w_exp2f.c: Likewise.
23655         * math/w_exp2l.c: Likewise.
23656         * math/w_fmod.c: Likewise.
23657         * math/w_fmodf.c: Likewise.
23658         * math/w_fmodl.c: Likewise.
23659         * math/w_hypot.c: Likewise.
23660         * math/w_hypotf.c: Likewise.
23661         * math/w_hypotl.c: Likewise.
23662         * math/w_jnl.c: Likewise.
23663         * math/w_lgamma.c: Likewise.
23664         * math/w_lgamma_r.c: Likewise.
23665         * math/w_lgammaf.c: Likewise.
23666         * math/w_lgammaf_r.c: Likewise.
23667         * math/w_lgammal.c: Likewise.
23668         * math/w_lgammal_r.c: Likewise.
23669         * math/w_pow.c: Likewise.
23670         * math/w_powf.c: Likewise.
23671         * math/w_powl.c: Likewise.
23672         * math/w_remainder.c: Likewise.
23673         * math/w_remainderf.c: Likewise.
23674         * math/w_remainderl.c: Likewise.
23675         * math/w_scalb.c: Likewise.
23676         * math/w_scalbf.c: Likewise.
23677         * math/w_scalbl.c: Likewise.
23678         * math/w_scalbln.c: Likewise.
23679         * math/w_scalblnf.c: Likewise.
23680         * math/w_scalblnl.c: Likewise.
23681         * math/w_sinh.c: Likewise.
23682         * math/w_sinhf.c: Likewise.
23683         * math/w_sinhl.c: Likewise.
23684         * math/w_tgamma.c: Likewise.
23685         * math/w_tgammaf.c: Likewise.
23686         * math/w_tgammal.c: Likewise.
23687         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23688         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
23689         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23690         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23691         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23692         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23693         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
23694         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23695         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23696         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23697         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23698         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23699         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23700         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23701         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23702         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23703         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23704         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23705         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23706         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23707         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23708         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23709         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23710         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23711         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23712         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23713         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
23714         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23715         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23716         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23717         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
23718         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
23719         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
23720         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
23721         * stdio-common/printf_fp.c: Likewise.
23722         * stdio-common/printf_fphex.c: Likewise.
23723         * stdio-common/printf_size.c: Likewise.
23724
23725 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
23726
23727         [BZ #18470]
23728         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
23729         strnlen.
23730         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
23731         Remove variable.
23732         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
23733         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
23734         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
23735         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
23736         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
23737         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
23738         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
23739         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
23740         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
23741         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
23742
23743         [BZ #18468]
23744         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
23745         weak alias of __wmemchr.  Use libc_hidden_weak.
23746         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
23747         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
23748         instead of wmemchr.
23749
23750 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23751
23752         [BZ #18383]
23753         * elf/tst-tlsalign-extern.c: New file.
23754         * elf/tst-tlsalign-extern-static.c: New file.
23755         * elf/tst-tlsalign-vars.c: New file.
23756         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
23757         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
23758         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
23759         ($(objpfx)tst-tlsalign-extern-static): Likewise.
23760         (test-xfail-tst-tlsalign-extern-static): New variable.
23761
23762 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
23763
23764         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
23765         Use variable name _sc_err instead of err.
23766         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
23767         instead of ret.
23768         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
23769         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
23770         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
23771         (INLINE_SYSCALL): Likewise.
23772
23773         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
23774         * include/string.h (__strnlen): Use libc_hidden_proto.
23775         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
23776         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
23777         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
23778         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
23779         (libc_hidden_def): Undefine and redefine.
23780         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
23781         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
23782         __GI_strnlen.
23783         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
23784         libc_hidden_def.
23785         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
23786
23787         [BZ #18469]
23788         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
23789         weak alias of __towlower.  Use libc_hidden_weak.
23790         (towupper): Rename to __towupper and define as weak alias of
23791         __towupper.  Use libc_hidden_weak.
23792         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
23793         (__towupper): Likewise.
23794         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
23795         __towlower instead of towlower.
23796
23797 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23798
23799         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
23800         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
23801
23802 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23803
23804         * sysdeps/aarch64/libm-test-ulps: Update.
23805
23806 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23807
23808         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
23809         Define.
23810         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23811         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23812         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23813         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23814         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
23815         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
23816         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
23817
23818 2015-06-01  Martin Sebor  <msebor@redhat.com>
23819
23820         [BZ #18116]
23821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
23822         (__setcontext): Use extended four-operand version of mtsf whenever
23823         possible.
23824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
23825         (__novec_swapcontext): Likewise.
23826
23827 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23828
23829         * benchtests/scripts/compare_bench.py: New file.
23830         * benchtests/scripts/import_bench.py (mean): New function.
23831         (split_list): Likewise.
23832         (do_for_all_timings): Likewise.
23833         (compress_timings): Likewise.
23834
23835         * benchtests/scripts/import_bench.py: New file.
23836         * benchtests/scripts/validate_benchout.py: Import import_bench
23837         instead of jsonschema.
23838         (validate_bench): Remove function.
23839         (main): Use import_bench.
23840
23841 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
23842
23843         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
23844         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
23845
23846 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23847
23848         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23849
23850 2015-05-28  Roland McGrath  <roland@hack.frob.com>
23851
23852         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
23853         set THREAD_SELF->tid to a magic value and futex-wake it.
23854         Pass its address to the thread_exit system call.
23855         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
23856         bit is clear.
23857         * sysdeps/nacl/lowlevellock.h: New file.
23858         * sysdeps/nacl/lll_timedwait_tid.c: New file.
23859
23860         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
23861         Add TIMEOUT to current time, don't subtract it.
23862
23863 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23864
23865         [BZ #2981]
23866         [BZ #18422]
23867         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
23868         ($(objpfx)tst-audit2.out): Also depend on
23869         $(objpfx)tst-auditmod9b.so.
23870         * elf/tst-audit2.c: Include <dlfcn.h>.
23871         (calloc_called): New.
23872         (calloc): Allow to be called more than once.
23873         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
23874
23875 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
23876
23877         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
23878         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
23879
23880 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
23881
23882         * stdlib/monetary.h: Fix comment.
23883
23884 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
23885
23886         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
23887         Avoid using variables in #defines that might cause shadowing.
23888         (INTERNAL_VSYSCALL_CALL): Likewise.
23889
23890 2015-05-26  Roland McGrath  <roland@hack.frob.com>
23891
23892         * sysdeps/nacl/lll_timedlock_wait.c: New file.
23893
23894         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
23895         * nptl/lll_timedlock_wait.c: ... to this new file.
23896         * nptl/Makefile (libpthread-routines): Add it.
23897         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
23898         * nptl/lll_timedwait_tid.c: ... to this new file.
23899         * nptl/Makefile (libpthread-routines): Add it.
23900         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
23901         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
23902         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
23903         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
23904         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
23905         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
23906         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
23907         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
23908         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
23909         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
23910
23911 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23912
23913         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
23914         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23915         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
23916         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
23917         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
23918         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23919         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23920         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23921         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23922         * sysdeps/unix/sysv/linux/tile/sysdep.h
23923         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23924         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
23925         using vDSO syscall macro.
23926
23927 2015-05-26  Andriy Rysin  <arysin@gmail.com>
23928
23929         [BZ #17293]
23930         * uk_UA: Fix sorting order for Ukrainian locale
23931
23932 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
23933
23934         * stdlib/monetary.h: Fix comment.
23935
23936 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23937
23938         [BZ #18234]
23939         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
23940         st_mtim and st_ctim members.
23941         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
23942         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
23943         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
23944         (struct stat64): Likewise.
23945         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
23946         (struct stat64): Likewise.
23947         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
23948         (struct stat64): Likewise.
23949
23950 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23951
23952         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
23953         Define and include sysdep-vdso.h.
23954         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
23955         Likewise.
23956         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
23957         Likewise.
23958         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
23959         Define with VDSO_SYMBOL and use PTR_MANGLE.
23960         (__vdso_clock_gettime): Likewise.
23961         (__vdso_clock_getres): Likewise.
23962         (_libc_vdso_platform_setup): Likewise.
23963         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
23964         Likewise.
23965         (_libc_vdso_platform_setup): Likewise.
23966         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
23967         Likewise.
23968         (__vdso_clock_gettime): Likewise.
23969         (__vdso_clock_getres): Likewise.
23970         (__vdso_get_tbfreq): Likewise.
23971         (__vdso_getcpu): Likewise.
23972         (__vdso_time): Likewise.
23973         (__vdso_sigtramp_rt64): Likewise.
23974         (__vdso_signtramp32): Likewise.
23975         (__vdso_sigtramp_rt32): Likewise.
23976         (_libc_vdso_platform_setup): Likewise.
23977         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
23978         Likewise.
23979         (__vdso_clock_gettime): Likewise.
23980         (__vdso_clock_getres): Likewise.
23981         (_libc_vdso_platform_setup): Likewise.
23982         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
23983         Likewise.
23984         (__vdso_clock_gettime): Likewise.
23985         (_libc_vdso_platform_setup): Likewise.
23986         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
23987         Likewise.
23988         (__vdso_getcpu): Likewise.
23989         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
23990         Use VDSO_SYMBOL macro to define.
23991         (__vdso_clock_gettime): Likewise.
23992         (__vdso_clock_getres): Likewise.
23993         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
23994         Likewise.
23995         (__vdso_clock_gettime): Likewise.
23996         (__vdso_clock_getres): Likewise.
23997         (__vdso_get_tbfreq): Likewise.
23998         (__vdso_getcpu): Likewise.
23999         (__vdso_time): Likewise.
24000         (__vdso_sigtramp_rt64): Likewise.
24001         (__vdso_signtramp32): Likewise.
24002         (__vdso_sigtramp_rt32): Likewise.
24003         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
24004         Likewise.
24005         (__vdso_clock_gettime): Likewise.
24006         (__vdso_clock_getres): Likewise.
24007         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
24008         Likewise.
24009         (__vdso_clock_gettime): Likewise.
24010         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
24011         Likewise.
24012         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
24013         macro.
24014         (INTERNAL_VSYSCALL): Likewise.
24015         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
24016         Remove macro.
24017         (INTERNAL_VSYSCALL): Likewise.
24018         (INTERNAL_VSYSCALL_NCS): Likewise.
24019         (INTERNAL_VSYSCALL_CALL): New macro.
24020         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
24021         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
24022         Likewise.
24023         (INTERNAL_VSYSCALL): Likewise.
24024         (INTERNAL_VSYSCALL_NCS): Likewise.
24025         (INTERNAL_VSYSCALL_CALL): New macro.
24026         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
24027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24028         (INLINE_VSYSCALL): Remove macro.
24029         (INTERNAL_VSYSCALL): Remove macro.
24030         (INTERNAL_VSYSCALL_NCS): Remove macro.
24031         (INTERNAL_VSYSCALL_CALL): New macro.
24032         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
24033         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
24034         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
24035         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
24036         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
24037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24038         (INLINE_VSYSCALL): Remove macro.
24039         (INTERNAL_VSYSCALL): Likewise.
24040         (INTERNAL_VSYSCALL_NCS): Likewise.
24041         (INTERNAL_VSYSCALL_CALL): New macro.
24042         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
24043         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
24044         PTR_DEMANGLE on vDSO pointer.
24045         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
24046         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
24047         macro.
24048         (INTERNAL_SYSCALL): Likewise.
24049         (INTERNAL_VSYSCALL_NCS): Remove macro.
24050         (INTERNAL_VSYSCALL_CALL): New macro.
24051         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
24052         Remove macro.
24053         (INTERNAL_VSYSCALL): Likewise.
24054         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
24055         sysdep-vdso.h instead of libc-vdso.h.
24056         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
24057         definition.
24058         (INLINE_VSYSCALL): Likewise.
24059         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
24060         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
24061         definition.
24062         (INLINE_VSYSCALL): Likewise.
24063         (INTERNAL_VSYSCALL): Likewise.
24064         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24065         * sysdeps/unix/sysv/linux/timespec_get.c
24066         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24067         (timespec_get): Use ANSI prototype.
24068         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
24069         and definition for Linux.
24070
24071 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
24072
24073         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
24074         * include/libc-symbols.h: libmvec_hidden_* macro series added.
24075
24076 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
24077
24078         [BZ #2981]
24079         [BZ #18410]
24080         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
24081         for missing DT_PLTRELSZ.
24082
24083 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24084
24085         Remove obsolete aliases that broke 'locale -a'
24086         [BZ #18412]
24087         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
24088         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
24089         breaking some applications that use 'locale -a' output.
24090         Change the encoding of this file from Latin-1 to ASCII to avoid
24091         other potential problems with people grepping this file.
24092
24093 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24094
24095         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
24096         -fasynchronous-unwind-tables.
24097         (CFLAGS-sendto.c): Likewise.
24098         (CFLAGS-sendmsg.c): Likewise.
24099         (CFLAGS-connect.c): Likewise.
24100         (CFLAGS-recvmsg.c): Likewise.
24101         (CFLAGS-recvfrom.c): Likewise.
24102         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
24103         (SOCKETCALL): New macro: non-cancellable socketcall.
24104         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
24105         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
24106         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
24107         * sysdeps/unix/sysv/linux/accept.c: New file.
24108         * sysdeps/unix/sysv/linux/bind.c: Likewise.
24109         * sysdeps/unix/sysv/linux/connect.c: Likewise.
24110         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
24111         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
24112         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
24113         * sysdeps/unix/sysv/linux/listen.c: Likewise.
24114         * sysdeps/unix/sysv/linux/recv.c: Likewise.
24115         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
24116         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
24117         * sysdeps/unix/sysv/linux/send.c: Likewise.
24118         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
24119         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
24120         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
24121         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
24122         * sysdeps/unix/sysv/linux/socket.c: Likewise.
24123         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
24124         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
24125         prototype.
24126         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
24127         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24128         instead of __internal_xxx function.
24129         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
24130         prototype.
24131         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
24132         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24133         instead of __internal_xxx function.
24134         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
24135         prototype.
24136         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
24137         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24138         instead of __internal_xxx function.
24139         * sysdeps/unix/sysv/linux/accept.S: Remove file.
24140         * sysdeps/unix/sysv/linux/bind.S: Likewise.
24141         * sysdeps/unix/sysv/linux/connect.S: Likewise.
24142         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
24143         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
24144         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
24145         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
24146         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
24147         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
24148         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
24149         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
24150         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
24151         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
24152         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
24153         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
24154         * sysdeps/unix/sysv/linux/listen.S: Likewise.
24155         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
24156         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
24157         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
24158         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
24159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
24160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
24161         * sysdeps/unix/sysv/linux/recv.S: Likewise.
24162         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
24163         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
24164         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
24165         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
24166         * sysdeps/unix/sysv/linux/send.S: Likewise.
24167         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
24168         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
24169         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
24170         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
24171         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
24172         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
24173         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
24174         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
24175         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
24176         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
24177         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
24178         socketcall is implemented in GLIBC.
24179
24180 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24181
24182         * soft-fp/fmadf4.c: Include <libc-internal.h>.
24183         (__fma): Ignore uninitialized warnings around packing.
24184         * soft-fp/fmasf4.c: Include <libc-internal.h>.
24185         (__fmaf): Ignore uninitialized warnings around packing.
24186         * soft-fp/fmatf4.c: Include <libc-internal.h>.
24187         (__fmal): Ignore uninitialized warnings around packing.
24188
24189         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
24190         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24191         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
24192         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24193
24194         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
24195         switch statement into default case.
24196         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
24197
24198         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
24199         a conditional in forcing "inexact".
24200         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
24201         Likewise.
24202
24203 2015-05-22  Roland McGrath  <roland@hack.frob.com>
24204
24205         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24206         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
24207         for each INTERNAL_SYSCALL use.
24208
24209 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24210
24211         [BZ #438]
24212         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
24213         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
24214         variable.
24215
24216         [BZ #18444]
24217         * string/basename.c (basename): Rename to __basename and define as
24218         weak alias of __basename.  Use libc_hidden_weak.
24219         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
24220         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
24221         __basename instead of basename.
24222         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
24223         Remove variable.
24224         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24225
24226 2015-05-18  Florian Weimer  <fweimer@redhat.com>
24227
24228         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
24229         (_IO_JUMPS_FILE_plus): New.
24230         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
24231         _IO_CAST_FIELD_ACCESS.
24232         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
24233         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
24234         * libio/freopen.c (freopen): Likewise.
24235         * libio/freopen64.c (freopen64): Likewise.
24236         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
24237         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
24238         * libio/iofwide.c (_IO_fwide): Likewise.
24239         * libio/memstream.c (open_memstream): Likewise.
24240         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
24241         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
24242         * libio/oldiopopen.c (_IO_old_popen): Likewise.
24243
24244 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
24245
24246         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
24247         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
24248         NADJ.
24249         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
24250         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
24251         NADJ.
24252         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
24253         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
24254         NADJ.
24255
24256         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
24257         (p == 4) case.
24258
24259         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
24260         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
24261         Remove variable.
24262         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24263         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24264         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24265
24266 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24267
24268         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
24269         Adjust jump table label generation macros.
24270
24271 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24272
24273         * stdio-common/vfprintf.c (vfprintf): Move local variables
24274         args_malloced, specs, specs_malloced, and the code after
24275         do_positional to the printf_positional function.
24276         (printf_positional): New function.
24277
24278 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24279
24280         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
24281         function.
24282         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
24283         STEP4_TABLE, process_arg): Move macro definitions
24284         out of the vfprintf function.  (Cosmetic change only.)
24285
24286 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
24287
24288         * benchtests/Makefile (stdio-common-bench): Define.
24289         (benchset): Add stdio-common-bench.
24290         * sprintf-inputs: New file.
24291         * sprintf-source.c: New file.
24292
24293 2015-05-21  Andreas Schwab  <schwab@suse.de>
24294
24295         [BZ #13028]
24296         [BZ #17053]
24297         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
24298         of struct __res_state.
24299         * resolv/res_send.c (__libc_res_nsend): Likewise.
24300         (get_nsaddr): New function.
24301         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
24302         statp directly.
24303
24304 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
24305
24306         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
24307         -D_POSIX_C_SOURCE=199506L.
24308
24309         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
24310
24311         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
24312         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
24313         Do not mention otherwise.
24314         [POSIX] (_XOPEN_VERSION): Do not expect.
24315         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
24316         [POSIX] (_POSIX2_C_BIND): Likewise.
24317         [POSIX] (_POSIX2_VERSION): Likewise.
24318         [POSIX] (_XOPEN_XPG2): Likewise.
24319         [POSIX] (_XOPEN_XPG3): Likewise.
24320         [POSIX] (_XOPEN_XPG4): Likewise.
24321         [POSIX] (_XOPEN_UNIX): Likewise.
24322         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
24323         [POSIX] (_POSIX_BARRIERS): Likewise.
24324         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
24325         [POSIX] (_POSIX_CPUTIME): Likewise.
24326         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
24327         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
24328         [POSIX] (_POSIX_SHELL): Likewise.
24329         [POSIX] (_POSIX_SPAWN): Likewise.
24330         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
24331         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
24332         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
24333         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
24334         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
24335         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
24336         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
24337         [POSIX] (_XBS5_LP64_OFF64): Likewise.
24338         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
24339         [POSIX] (_POSIX_TIMEOUTS): Likewise.
24340         [POSIX] (_POSIX2_PBS): Likewise.
24341         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
24342         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
24343         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
24344         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
24345         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
24346         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
24347         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
24348         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
24349         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
24350         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
24351         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
24352         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
24353         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
24354         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
24355         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
24356         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
24357         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
24358         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
24359         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
24360         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
24361         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
24362         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
24363         [POSIX] (_SC_2_C_BIND): Likewise.
24364         [POSIX] (_SC_2_C_VERSION): Likewise.
24365         [POSIX] (_SC_2_PBS): Likewise.
24366         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
24367         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
24368         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
24369         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
24370         [POSIX] (_SC_2_PBS_TRACK): Likewise.
24371         [POSIX] (_SC_ATEXIT_MAX): Likewise.
24372         [POSIX] (_SC_BARRIERS): Likewise.
24373         [POSIX] (_SC_BASE): Likewise.
24374         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
24375         [POSIX] (_SC_DEVICE_IO): Likewise.
24376         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
24377         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
24378         [POSIX] (_SC_FD_MGMT): Likewise.
24379         [POSIX] (_SC_FIFO): Likewise.
24380         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
24381         [POSIX] (_SC_FILE_LOCKING): Likewise.
24382         [POSIX] (_SC_FILE_SYSTEM): Likewise.
24383         [POSIX] (_SC_IOV_MAX): Likewise.
24384         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
24385         [POSIX] (_SC_NETWORKING): Likewise.
24386         [POSIX] (_SC_PAGE_SIZE): Likewise.
24387         [POSIX] (_SC_PASS_MAX): Likewise.
24388         [POSIX] (_SC_PIPE): Likewise.
24389         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
24390         [POSIX] (_SC_REGEXP): Likewise.
24391         [POSIX] (_SC_SHELL): Likewise.
24392         [POSIX] (_SC_SIGNALS): Likewise.
24393         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
24394         [POSIX] (_SC_SPIN_LOCKS): Likewise.
24395         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
24396         [POSIX] (_SC_USER_GROUPS): Likewise.
24397         [POSIX] (_SC_USER_GROUPS_R): Likewise.
24398         [POSIX] (_SC_STREAMS): Likewise.
24399         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
24400         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
24401         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
24402         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
24403         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
24404         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
24405         [POSIX] (_PC_FILESIZEBITS): Likewise.
24406         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
24407         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
24408         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
24409         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
24410         [POSIX] (uid_t): Likewise.
24411         [POSIX] (gid_t): Likewise.
24412         [POSIX] (off_t): Likewise.
24413         [POSIX] (pid_t): Likewise.
24414         [POSIX] (cuserid): Allow.
24415         (_SC_2_CHAR_TERM): Require constant.
24416         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
24417         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
24418         variable.
24419
24420 2015-05-20  Roland McGrath  <roland@hack.frob.com>
24421
24422         * sysdeps/nacl/pthread-pids.h: New file.
24423         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
24424         (create_thread): Use __nacl_get_tid to initialize PD->tid.
24425
24426         * nptl/pthread-pids.h: New file.
24427         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
24428         * nptl/nptl-init.c: Include <pthread-pids.h>.
24429         (__pthread_initialize_minimal_internal):
24430         Call __pthread_initialize_pids instead of set_tid_address syscall.
24431
24432         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
24433         * sysdeps/posix/usleep.c: ... here.
24434
24435 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24436
24437         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
24438         call_pselect6 object.
24439         [$(subdir) = io]: Remove call_sync_file_range object.
24440         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
24441         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
24442         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
24443         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
24444
24445 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
24446
24447         * math/s_cproj.c: Add include "math_private.h".
24448         * math/s_cprojf.c: Likewise.
24449         * math/s_cprojl.c: Likewise.
24450
24451 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
24452
24453         [BZ #18244]
24454         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
24455         high mantissa bit when testing whether P is a NaN.
24456         * math/libm-test.inc (remainder_test_data): Add more tests.
24457         (remquo_test_data): Likewise.
24458
24459         [BZ #18049]
24460         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
24461         below -32, return the argument, with underflow if subnormal.
24462         * math/auto-libm-test-in: Add more tests of atanh.
24463         * math/auto-libm-test-out: Regenerated.
24464
24465 2015-05-19  Roland McGrath  <roland@hack.frob.com>
24466
24467         [BZ #18434]
24468         * nptl/tst-sem15.c: New file.
24469         * nptl/Makefile (tests): Add it.
24470         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
24471         s/<</>>/ to fix typo in EOVERFLOW check.
24472         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
24473
24474 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24475
24476         * manual/strings.texi (envz_remove): Fix typo in safety
24477         annotations.
24478
24479 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24480             Steve Ellcey  <sellcey@imgtec.com>
24481
24482         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
24483         in order to avoid strict alias warnings.
24484         (iruserok_af): Ditto for ra.
24485
24486 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
24487
24488         [BZ #17581]
24489         * malloc/hooks.c
24490         (magicbyte): Convert to a function and avoid returning 0x01.
24491         (mem2mem_check): Avoid using a length byte equal to the magic byte.
24492         (mem2chunk_check): Fix unsigned comparisons to zero.
24493         Hoist defs of sz and magic.
24494
24495 2015-05-19  Richard Henderson  <rth@redhat.com>
24496
24497         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
24498
24499         * sysdeps/alpha/fpu/libm-test-ulps: Update.
24500
24501 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24502
24503         [BZ #16159]
24504         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
24505         * malloc/arena.c (arena_lock): Check if arena is corrupt.
24506         (reused_arena): Find a non-corrupt arena.
24507         (heap_trim): Pass arena to unlink.
24508         * malloc/hooks.c (malloc_check_get_size): Pass arena to
24509         malloc_printerr.
24510         (top_check): Likewise.
24511         (free_check): Likewise.
24512         (realloc_check): Likewise.
24513         * malloc/malloc.c (malloc_printerr): Add arena argument.
24514         (unlink): Likewise.
24515         (munmap_chunk): Adjust.
24516         (ARENA_CORRUPTION_BIT): New macro.
24517         (arena_is_corrupt): Likewise.
24518         (set_arena_corrupt): Likewise.
24519         (sysmalloc): Use mmap if there are no usable arenas.
24520         (_int_malloc): Likewise.
24521         (__libc_malloc): Don't fail if arena_get returns NULL.
24522         (_mid_memalign): Likewise.
24523         (__libc_calloc): Likewise.
24524         (__libc_realloc): Adjust for additional argument to
24525         malloc_printerr.
24526         (_int_free): Likewise.
24527         (malloc_consolidate): Likewise.
24528         (_int_realloc): Likewise.
24529         (_int_memalign): Don't touch corrupt arenas.
24530         * malloc/tst-malloc-backtrace.c: New test case.
24531
24532         * Makefile (summarize-tests): Fix return value on success.
24533
24534         * manual/string.texi (Envz Functions): Add envz_remove.
24535
24536 2015-05-18  Roland McGrath  <roland@hack.frob.com>
24537
24538         * sysdeps/posix/opendir.c: Include <stdbool.h>.
24539         (invalid_name): New function, broken out of ...
24540         (__opendirat): ... here.  Call it.
24541         (need_isdir_precheck): New function, broken out of ...
24542         (__opendirat): ... here.  Call it.
24543         Use __fxstatat64, not __xstatat64.
24544         (opendir_oflags): New function, broken out of ...
24545         (__opendirat): ... here.  Call it.
24546         (opendir_tail): New function, broken out of ...
24547         (__opendirat): ... here.  Call it.
24548         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
24549         opendir_tail, rather than punting to __opendirat.
24550         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
24551
24552 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24553
24554         * .gitignore: Ignore generated *.pyc.
24555
24556 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
24557
24558         * include/stdio.h: Define __need_wint_t.
24559         * test-skeleton.c: Avoid `for' loop initial declaration.
24560         * nptl/tst-initializers1.c: Use test-skeleton.c.
24561
24562 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24563
24564         [BZ #18418]
24565         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
24566
24567 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24568
24569         [BZ #16352]
24570         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
24571         (__ieee754_atanh): Force underflow exception for results with
24572         small absolute value.
24573         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
24574         (__ieee754_atanhf): Force underflow exception for results with
24575         small absolute value.
24576         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
24577         (__ieee754_atanh): Force underflow exception for results with
24578         small absolute value.
24579         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
24580         (__ieee754_atanhf): Force underflow exception for results with
24581         small absolute value.
24582         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
24583         (__ieee754_atanhl): Force underflow exception for results with
24584         small absolute value.
24585         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
24586         (__ieee754_atanhl): Force underflow exception for results with
24587         small absolute value.
24588         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
24589         (__ieee754_atanhl): Force underflow exception for results with
24590         small absolute value.
24591         * math/auto-libm-test-in: Do not allow missing underflow
24592         exceptions from atanh.
24593         * math/auto-libm-test-out: Regenerated.
24594
24595         [BZ #18221]
24596         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
24597         2**-28 as threshold for returning x or +/- 1/x.
24598         * math/auto-libm-test-in: Add more tests of tan.
24599         * math/auto-libm-test-out: Regenerated.
24600
24601         [BZ #18220]
24602         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
24603         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
24604         * math/auto-libm-test-in: Add another test of lgamma.
24605         * math/auto-libm-test-out: Regenerated.
24606
24607 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
24608
24609         * stdio-common/printf_fp.c (___printf_fp): Use abs.
24610         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
24611         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
24612         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
24613         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
24614         (ADD2A): Use fabs.  (SUB2A): Use fabs.
24615         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
24616         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
24617         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
24618         (log1): Use fabs.  (my_log2): Use fabs.
24619         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
24620         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
24621         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
24622         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
24623         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
24624         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
24625         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
24626         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
24627         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
24628         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
24629         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
24630
24631 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24632
24633         [BZ #18217]
24634         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
24635         as threshold for returning 1 - x.
24636         * math/auto-libm-test-in: Add more tests of erfc.
24637         * math/auto-libm-test-out: Regenerated.
24638
24639 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
24640
24641         [BZ #18196]
24642         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
24643         threshold for large arguments.
24644         * math/auto-libm-test-in: Add another test of atan.
24645         * math/auto-libm-test-out: Regenerated.
24646
24647         [BZ #16339]
24648         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
24649         (__log1p): Force underflow exception for results with small
24650         absolute value.
24651         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
24652         (__log1pf): Force underflow exception for results with small
24653         absolute value.
24654         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
24655         (__log1p): Force underflow exception for results with small
24656         absolute value.
24657         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
24658         (__log1pf): Force underflow exception for results with small
24659         absolute value.
24660         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
24661         (__log1pl): Force underflow exception for results with small
24662         absolute value.
24663         * math/auto-libm-test-in: Do not allow missing underflow
24664         exceptions from log1p.
24665         * math/auto-libm-test-out: Regenerated.
24666
24667 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
24668             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24669
24670         [BZ #16704]
24671         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
24672
24673 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
24674
24675         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
24676         (libmvec): New variable.
24677         * configure.ac: Added option for mathvec build.
24678         * configure: Regenerated.
24679         * mathvec/Depend: New file.
24680         * mathvec/Makefile: New file.
24681         * shlib-versions: Added libmvec.
24682         * math/Makefile: Added rule for libm.so installation.
24683
24684         * bits/math-vector.h: New file.
24685         * bits/libm-simd-decl-stubs.h: New header.
24686         * math/Makefile (headers): Added new header
24687         libm-simd-decl-stubs.h.
24688         * math/math.h (__MATHCALL_VEC): New macro.
24689
24690         * math/gen-libm-have-vector-test.sh: Script generates series of macros
24691         for conditions in testing functions.
24692         * math/Makefile: Added call of libm-have-vector-test.sh.
24693         * math/libm-test.inc (HAVE_VECTOR): New macros.
24694
24695         * math/libm-test.inc: START refactored.
24696         * math/test-double.c (TEST_MATHVEC): Add define.
24697         * math/test-float.c: Likewise.
24698         * math/test-idouble.c: Likewise.
24699         * math/test-ifloat.c: Likewise.
24700         * math/test-ildoubl.c: Likewise.
24701         * math/test-ldouble.c: Likewise.
24702         * sysdeps/generic/math-tests-arch.h
24703         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
24704         architecture check.
24705
24706         * math/test-double.c (FUNC_TEST): New macro.
24707         * math/test-float.c: Likewise.
24708         * math/test-idouble.c: Likewise.
24709         * math/test-ifloat.c: Likewise.
24710         * math/test-ildoubl.c: Likewise.
24711         * math/test-ldouble.c: Likewise.
24712         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
24713
24714 2015-05-13  Roland McGrath  <roland@hack.frob.com>
24715
24716         * sysdeps/nacl/fdopendir.c: New file.
24717
24718         * dirent/scandir-tail.c: New file.
24719         * dirent/scandir64-tail.c: New file.
24720         * dirent/Makefile (routines): Add them.
24721         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
24722         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
24723         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
24724         [!SCANDIR] (SCANDIR_TAIL): New macro.
24725         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
24726         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
24727         (SCANDIRAT): Macro removed.
24728         (SCANDIR_TAIL): New macro.
24729         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
24730         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
24731         (SCANDIRAT): Just call __opendirat and __scandir_tail.
24732         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
24733         (READDIR): Macro removed.
24734         (SCANDIR_TAIL): New macro.
24735         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
24736         (SCANDIR_TAIL): New macro.
24737
24738         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
24739         * dirent/scandir-cancel.c: ... to this new file.
24740         * dirent/Makefile (routines): Add it.
24741         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
24742         * sysdeps/unix/sysv/linux/i386/scandir64.c
24743         (SKIP_SCANDIR_CANCEL): Macro removed.
24744         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
24745
24746         * dirent/tst-scandir.c: New file.
24747         * dirent/tst-scandir64.c: New file.
24748         * dirent/Makefile (tests): Add them.
24749
24750 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24751
24752         [BZ #18409]
24753         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
24754
24755 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24756
24757         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
24758         list.
24759
24760 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
24761
24762         * benchtests/bench-strcoll.c: New benchmark.
24763         * benchtests/Makefile: Generate locales and run benchmark.
24764         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
24765         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
24766         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
24767         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
24768         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
24769         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
24770         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
24771         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
24772         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
24773         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
24774         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
24775         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
24776         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
24777         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
24778         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
24779         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
24780         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
24781         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
24782         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
24783         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
24784         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
24785         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
24786         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
24787         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
24788
24789 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
24790
24791         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
24792         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24793
24794 2015-05-12  Roland McGrath  <roland@hack.frob.com>
24795
24796         * posix/uname-values.h: New file.
24797         * posix/uname.c: Include that instead of <config-name.h>.
24798         * sysdeps/nacl/uname-values.h: New file.
24799         * sysdeps/arm/nacl/uname-values.h: New file.
24800
24801 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
24802
24803         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
24804         splitting into fields.
24805
24806 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
24807
24808         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
24809         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
24810         * locale/localeinfo.h: Add enum collation_encoding_type.
24811         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
24812         * programs/ld-collate.c (collate_output): Add encoding type info.
24813         * string/strcoll_l.c (STRDIFF): New function.
24814         * (STRCOLL): Use STRDIFF to skip over equal prefix.
24815         * wcsmbs/wcscoll_l.c: Define STRDIFF.
24816
24817 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
24818
24819         [BZ #18397]
24820         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
24821         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
24822         <fpu_control.h> instead of <math/fpu_control.c>.
24823         * sysdeps/mips/mips32/fpu/Makefile: New file.
24824
24825 2015-05-11  Andreas Schwab  <schwab@suse.de>
24826
24827         [BZ #18007]
24828         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
24829         nss_endgrent.
24830         (_nss_compat_endgrent): Call nss_endgrent.
24831         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
24832         nss_endpwent.
24833         (_nss_compat_endpwent): Call nss_endpwent.
24834         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
24835         needent, call nss_setspent only if non-zero.
24836         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
24837         (internal_endspent): Don't call nss_endspent.
24838         (_nss_compat_endspent): Call nss_endspent.
24839         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
24840         Remove.  All uses removed.
24841         (internal_setent): Remove parameter stayopen, add parameter
24842         stream.  Use it instead of global variable.
24843         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
24844         (internal_endent, internal_getent): Add parameter stream.  Use it
24845         instead of global variable.
24846         (CONCAT(_nss_files_end,ENTNAME))
24847         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
24848         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
24849         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
24850         uses removed.
24851         (internal_setent, internal_endent): Add parameter stream.  Use it
24852         instead of global variable.
24853         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
24854         stream.
24855         (get_next_alias): Add parameter stream.
24856         (_nss_files_getaliasent_r): Pass global stream.
24857         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
24858         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
24859         (_nss_files_gethostbyname4_r): Pass local stream to
24860         internal_setent, internal_getent and internal_endent.  Remove
24861         locking.
24862
24863 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
24864
24865         * tst-strfmon1.c (tests): Update expected currency symbol.
24866
24867 2015-05-08  Roland McGrath  <roland@hack.frob.com>
24868
24869         * sysdeps/nacl/gethostname.c: New file.
24870
24871 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
24872
24873         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
24874         and sinh.
24875         * math/auto-libm-test-out: Regenerated.
24876         * sysdeps/i386/fpu/libm-test-ulps: Update.
24877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24878
24879 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
24880
24881         [BZ #18125]
24882         * stdlib/tst-setcontext3.c: New file.
24883         * stdlib/tst-setcontext3.sh: New file.
24884         * stdlib/Makefile (tests): Add tst-setcontext3.
24885         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
24886         to verify test program created output file.
24887         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
24888         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
24889         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
24890         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
24891
24892 2015-05-06  Roland McGrath  <roland@hack.frob.com>
24893
24894         [BZ #18383]
24895         * elf/tst-tlsalign.c: New file.
24896         * elf/tst-tlsalign-static.c: New file.
24897         * elf/tst-tlsalign-lib.c: New file.
24898         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
24899         (tests-static): Add tst-tlsalign-static.
24900         (modules-names): Add tst-tlsalign-lib.
24901         (test-xfail-tst-tlsalign): New variable.
24902         (test-xfail-tst-tlsalign-static): New variable.
24903
24904         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
24905         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
24906
24907 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
24908
24909         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
24910         csqrt, erfc, sin and sincos.
24911         * math/auto-libm-test-out: Regenerated.
24912         * sysdeps/i386/fpu/libm-test-ulps: Update.
24913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24914
24915 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24916
24917         * sysdeps/aarch64/libm-test-ulps: Update.
24918
24919 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
24920
24921         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
24922         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
24923         * math/auto-libm-test-out: Regenerated.
24924         * sysdeps/i386/fpu/libm-test-ulps: Update.
24925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24926
24927 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
24928
24929         [BZ #18265]
24930         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
24931         (wcsncpy): Likewise.
24932
24933 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24934
24935         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
24936         Assume __ASSUME_FALLOCATE is always true.
24937         * sysdeps/unix/sysv/linux/posix_fallocate64.c
24938         (__posix_fallocate64_l64): Likweise.
24939         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
24940         (posix_fallocate): Likewise.
24941         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
24942         (__posix_fallocate64_l64): Likewise.
24943         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
24944         [!__ASSUME_FALLOCATE]: Add comment.
24945
24946 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24947
24948         * sysdeps/unix/sysv/linux/i386/Makefile
24949         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
24950         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
24951         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
24952         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24953         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24954         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
24955         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
24956
24957 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
24958
24959         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
24960         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
24961         tgamma.
24962         * math/auto-libm-test-out: Regenerated.
24963         * sysdeps/i386/fpu/libm-test-ulps: Update.
24964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24965
24966 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24967
24968         * math/auto-libm-test-in: Add more tests of tgamma.
24969         * math/auto-libm-test-out: Regenerated.
24970         * sysdeps/i386/fpu/libm-test-ulps: Update.
24971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24972
24973         * math/auto-libm-test-in: Add more tests of tanh.
24974         * math/auto-libm-test-out: Regenerated.
24975         * sysdeps/i386/fpu/libm-test-ulps: Update.
24976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24977
24978         * math/auto-libm-test-in: Add more tests of tan.
24979         * math/auto-libm-test-out: Regenerated.
24980         * sysdeps/i386/fpu/libm-test-ulps: Update.
24981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24982
24983         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
24984         * math/auto-libm-test-out: Regenerated.
24985         * sysdeps/i386/fpu/libm-test-ulps: Update.
24986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24987
24988         * math/auto-libm-test-in: Add another test of pow.
24989         * math/auto-libm-test-out: Regenerated.
24990         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24991
24992         * math/auto-libm-test-in: Add more tests of lgamma.
24993         * math/auto-libm-test-out: Regenerated.
24994         * sysdeps/i386/fpu/libm-test-ulps: Update.
24995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24996
24997         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
24998         log1p.
24999         * math/auto-libm-test-out: Regenerated.
25000         * sysdeps/i386/fpu/libm-test-ulps: Update.
25001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25002
25003 2015-05-01  Mark Wielaard  <mjw@redhat.com>
25004
25005         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
25006         Elf64_Chdr structs and ELFCOMPRESS constants.
25007
25008 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
25009
25010         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
25011         expm1.
25012         * math/auto-libm-test-out: Regenerated.
25013         * sysdeps/i386/fpu/libm-test-ulps: Update.
25014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25015
25016         * math/auto-libm-test-in: Add more tests of erf and erfc.
25017         * math/auto-libm-test-out: Regenerated.
25018         * sysdeps/i386/fpu/libm-test-ulps: Update.
25019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25020
25021 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25022
25023         * config.h.in (HAVE_AARCH64_BE): Add.
25024
25025 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
25026
25027         * math/auto-libm-test-in: Add more tests of csqrt.
25028         * math/auto-libm-test-out: Regenerated.
25029         * sysdeps/i386/fpu/libm-test-ulps: Update.
25030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25031
25032         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25033         * math/auto-libm-test-out: Regenerated.
25034         * sysdeps/i386/fpu/libm-test-ulps: Update.
25035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25036
25037         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
25038
25039 2015-04-29  Roland McGrath  <roland@hack.frob.com>
25040
25041         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
25042         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
25043
25044         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
25045         (euidaccess, eaccess): Define as weak aliases.
25046
25047         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
25048         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
25049         but __suseconds_t is often 'long int' so some sources assume that
25050         type is being used (e.g. they use %ld to print tv_usec).
25051
25052 2015-04-29  Florian Weimer  <fweimer@redhat.com>
25053
25054         [BZ #18007]
25055         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
25056         (CVE-2014-8121)
25057         * nss/tst-nss-getpwent.c: New file.
25058         * nss/Makefile (tests): Add new test.
25059
25060 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
25061
25062         [BZ #18346]
25063         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
25064         exponents less than 48 as cases where high part of mantissa needs
25065         examining to determine whether argument is integral.
25066         * math/libm-test.inc (round_test_data): Add more tests.
25067
25068 2015-04-28  Mark Wielaard  <mjw@redhat.com>
25069
25070         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
25071
25072 2015-04-27  David S. Miller  <davem@davemloft.net>
25073
25074         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
25075         __tls_get_addr.
25076         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25077
25078 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25079
25080         [BZ#18333]
25081         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
25082
25083 2015-04-27  Florian Weimer  <fweimer@redhat.com>
25084
25085         [BZ#18333]
25086         * time/tzset.c (parse_tzname): Return error on memory allocation
25087         failure.
25088         * test-skeleton.c (struct temp_name_list): Change type of name
25089         member to non-const.
25090         (add_temp_file): Create a copy of the file name.
25091         (delete_temp_files): Deallocate memory.
25092         (create_temp_file): Add comment.
25093
25094 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25095
25096         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
25097         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
25098
25099 2015-04-24  Roland McGrath  <roland@hack.frob.com>
25100
25101         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
25102         * sysdeps/arm/configure: Regenerated.
25103
25104 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25105
25106         [BZ #17715]
25107         * time/tzfile.c (__tzfile_read): Check for large values of
25108         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
25109         * time/tzset.c (__tzstring_len): New function, based on the old
25110         __tzstring function.
25111         (__tzstring): Call __tzstring_len.
25112         (parse_tzname): New helper function extracted from
25113         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
25114         the input string.
25115         (parse_offset): New helper function extracted from
25116         __tzset_parse_tz.  Replace switch with fallthrough with
25117         initialization before sscanf.
25118         (parse_rule): Likewise.
25119         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
25120         new-style function definition.
25121         * timezone/Makefile (tests): Add tst-tzset.
25122         (tst-tzset.out): Dependencies on time zone files.
25123         (tst-tzset-ENV): Set TZDIR.
25124         (testdata/XT%): Copy crafted time zone files.
25125         * timezone/README: Mention crafted time zone files.
25126         * timezone/testdata/XT1, timezone/testdata/XT2,
25127         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
25128         files.
25129         * timezone/tst-tzset.c: New test.
25130
25131 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25132
25133         * Makeconfig (+gccwarn): Remove -Winline.
25134
25135 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25136
25137         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
25138
25139 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25140
25141         * NEWS: Mention sysconf() cache information support for s390.
25142         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
25143
25144 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
25145
25146         * math/k_casinh.c (__kernel_casinh): Use __copysign.
25147         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
25148         (__nearbyint): Likewise.
25149         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
25150         (copysignl): Likewise.
25151
25152 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
25153
25154         [BZ #18287]
25155         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
25156         based on padding.  (CVE-2015-1781)
25157
25158 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25159
25160         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
25161         libc-vdso.h.
25162         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
25163         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
25164         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
25165         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
25166         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
25167         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
25168         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
25169         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
25170         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
25171         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
25172         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
25173         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25174         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
25175         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
25176         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
25177         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
25178         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
25179         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
25180         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
25181         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
25182         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
25183         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
25184         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
25185
25186 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25187
25188         * stdlib/setenv.c (__add_to_environ):
25189         Dump core quickly if setenv (..., NULL, ...) is called.
25190         This time, do it the right way, and pacify GCC with a pragma.
25191
25192 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25193
25194         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
25195         IMAP->l_prev cannot be null, and #if out the code for the contrary
25196         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
25197         believe that NS (&_dl_ns[NSID]) could point outside the array.
25198
25199         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
25200         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
25201         before using NSID as an index.
25202
25203 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
25204
25205         [BZ #17825]
25206         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
25207         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
25208         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
25209
25210 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25211
25212         Add preliminary port to Google Native Client on ARM.
25213         * abi-tags (.*-.*-nacl.*): New entry.
25214         * sysdeps/arm/nacl: New directory.
25215         * sysdeps/nacl: New directory.
25216
25217 2015-04-16  David S. Miller  <davem@davemloft.net>
25218
25219         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
25220         lowlevellock-futex.h
25221
25222 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
25223
25224         * sysdeps/tile/configure.ac: New file.
25225         * sysdeps/tile/configure: Regenerated.
25226
25227 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25228
25229         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
25230         conditionals for weak_alias and libc_hidden_weak.
25231         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
25232         libc_hidden_weak and weak_alias.
25233         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
25234         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
25235         and weak_alias for static one.
25236
25237 2015-04-15  David S. Miller  <davem@davemloft.net>
25238
25239         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
25240
25241 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25242
25243         [BZ #18206]
25244         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
25245           Use signed comparision instead of substraction to avoid
25246           overflow bug.
25247         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
25248           Take the sign of ret.
25249         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
25250           Do not expect precise return values. Only the sign matters.
25251         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
25252         * wcsmbs/test-wcsncmp.c: New File.
25253         * string/test-strncmp.c: Add wcsncmp support.
25254
25255 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25256
25257         [BZ #6792]
25258         * math/w_log1p.c: New file.
25259         * math/w_log1pf.c: Likewise.
25260         * math/w_log1pl.c: Likewise.
25261         * math/Makefile (libm-calls): Add w_log1p.
25262         * math/s_log1pl.c (log1pl): Remove weak_alias.
25263         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
25264         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
25265         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
25266         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
25267         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
25268         [NO_LONG_DOUBLE] (log1pl): Likewise.
25269         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
25270         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
25271         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
25272         (log1p): Remove long_double_symbol.
25273         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
25274         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
25275         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
25276         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
25277         remove weak_alias for corresponding log1p function.
25278         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
25279         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
25280         * sysdeps/ia64/fpu/w_log1p.c: New file.
25281         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
25282         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
25283         * math/libm-test.inc (log1p_test_data): Add errno expectations.
25284
25285 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
25286
25287         [BZ #18247]
25288         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
25289         decimal exponent by 1.
25290         * stdlib/tst-strtod-round-data: Add more tests.
25291         * stdlib/tst-strtod-round.c (tests): Regenerated.
25292
25293 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
25294
25295         * math/auto-libm-test-in: Add more tests of clog and clog10.
25296         * math/auto-libm-test-out: Regenerated.
25297         * sysdeps/i386/fpu/libm-test-ulps: Update.
25298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25299
25300 2015-04-09  Roland McGrath  <roland@hack.frob.com>
25301
25302         * Makeconfig (module-cppflags): Exclude all .v.i files.
25303         (skip-module-cppflags): Variable removed.
25304
25305         * configure.ac (libc_config_ok): Initialize before reading
25306         preconfigure scripts, not after.
25307         * configure: Regenerated.
25308
25309         * test-skeleton.c (TIMEOUT): Move #define to top level.
25310         (main): Grok environment variable TEST_DIRECT.  If set, print
25311         test expectation details into that file and then behave as if
25312         given --direct.
25313
25314 2015-04-09  Florian Weimer  <fweimer@redhat.com>
25315
25316         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
25317         warning on 32-bit.
25318
25319 2015-04-08  David S. Miller  <davem@davemloft.net>
25320
25321         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25322
25323 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25324
25325         * math/auto-libm-test-in: Add more tests of atanh.
25326         * math/auto-libm-test-out: Regenerated.
25327         * sysdeps/i386/fpu/libm-test-ulps: Update.
25328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25329
25330         * math/auto-libm-test-in: Add more tests of atan.
25331         * math/auto-libm-test-out: Regenerated.
25332         * sysdeps/i386/fpu/libm-test-ulps: Update.
25333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25334
25335 2015-04-08  Florian Weimer  <fweimer@redhat.com>
25336
25337         * elf/pldd.c (main): Rewrite to use struct
25338         scratch_buffer instead of extend_alloca.
25339         * elf/pldd-xx.c (find_maps): Likewise.
25340         * grp/initgroups.c: Include <scratch_buffer.h> instead of
25341         <alloca.h>.
25342         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
25343         scratch_buffer instead of extend_alloca.
25344         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
25345         grp/compat-initgroups.c.
25346         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
25347         Rewrite to use struct scratch_buffer instead of extend_alloca.
25348         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
25349         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25350
25351 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25352
25353         * math/auto-libm-test-in: Add more tests of cbrt.
25354         * math/auto-libm-test-out: Regenerated.
25355         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25356
25357         * math/auto-libm-test-in: Add more tests of cabs.
25358         * math/auto-libm-test-out: Regenerated.
25359         * sysdeps/i386/fpu/libm-test-ulps: Update.
25360         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25361
25362         [BZ #18210]
25363         [BZ #18211]
25364         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
25365         (__ieee754_atan2): Set FE_TONEAREST mode for internal
25366         computations.
25367         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
25368         clog10.
25369         * math/auto-libm-test-out: Regenerated.
25370         * sysdeps/i386/fpu/libm-test-ulps: Update.
25371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25372
25373         [BZ #18197]
25374         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
25375         (atan): Set FE_TONEAREST mode for internal computations.
25376         * math/auto-libm-test-in: Add more tests of atan.
25377         * math/auto-libm-test-out: Regenerated.
25378
25379 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
25380
25381         [BZ #17930]
25382         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
25383
25384 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25385
25386         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
25387
25388 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25389
25390         * include/scratch_buffer.h: New file.
25391         * malloc/scratch_buffer_grow.c: Likewise.
25392         * malloc/scratch_buffer_grow_preserve.c: Likewise.
25393         * malloc/scratch_buffer_set_array_size.c: Likewise.
25394         * malloc/tst-scratch_buffer.c: Likewise.
25395         * malloc/Makefile (routines): Add scratch_buffer_grow.
25396         (tests): Add test case.
25397         * malloc/Versions (GLIBC_PRIVATE): Export
25398         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
25399         __libc_scratch_buffer_set_array_size.
25400
25401 2015-04-06  Richard Henderson  <rth@redhat.com>
25402
25403         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
25404         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25405
25406         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
25407         unsigned int before printing.
25408
25409 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25410
25411         [BZ #17596]
25412         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
25413         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
25414
25415 2015-04-02  Florian Weimer  <fweimer@redhat.com>
25416
25417         * include/libc-internal.h (libc_max_align_t): Define.
25418
25419 2015-04-02  Andreas Schwab  <schwab@suse.de>
25420
25421         [BZ #16850]
25422         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
25423
25424 2015-04-02  Mel Gorman  <mgorman@suse.de>
25425
25426         [BZ #17195]
25427         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
25428         as well as the main arena.
25429
25430 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25431
25432         [BZ #18185]
25433         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
25434         sharing L2 cache to 2 for Silvermont/Knights Landing.
25435
25436 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25437
25438         [BZ #17711]
25439         * config.make.in (have-protected-data): New.
25440         * configure.ac: Check linker support for protected data symbol.
25441         * configure: Regenerated.
25442         * elf/Makefile (modules-names): Add tst-protected1moda and
25443         tst-protected1modb if $(have-protected-data) is yes.
25444         (tests): Add tst-protected1a and tst-protected1b if
25445         $(have-protected-data) is yes.
25446         ($(objpfx)tst-protected1a): New.
25447         ($(objpfx)tst-protected1b): Likewise.
25448         (tst-protected1modb.so-no-z-defs): Likewise.
25449         * elf/tst-protected1a.c: New file.
25450         * elf/tst-protected1b.c: Likewise.
25451         * elf/tst-protected1mod.h: Likewise.
25452         * elf/tst-protected1moda.c: Likewise.
25453         * elf/tst-protected1modb.c: Likewise.
25454
25455 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25456
25457         [BZ #17711]
25458         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
25459         indicates it is called from do_lookup_x on relocation against
25460         protected data, skip the data definion in the executable from
25461         copy reloc.
25462         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
25463         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
25464         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
25465         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
25466         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
25467         otherwise to 0.
25468         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25469         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
25470         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
25471         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25472         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
25473         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
25474
25475 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
25476
25477         * sysdeps/nptl/pthread.h: Remove duplicate definition of
25478         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
25479
25480 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
25481
25482         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
25483         THREAD_SETMEM_NC.
25484         * sysdeps/x86_64/nptl/tls.h: Ditto.
25485
25486 2015-03-27  Roland McGrath  <roland@hack.frob.com>
25487
25488         * dlfcn/tststatic.c (main): Converted to ...
25489         (do_test): ... this.
25490         (TEST_FUNCTION): New macro.
25491         Include test-skeleton.c.
25492
25493 2015-03-26  Alan Modra  <amodra@gmail.com>
25494
25495         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
25496         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
25497         zero for undefined weak.
25498         (elf_machine_plt_conflict): Similarly.
25499
25500 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25501
25502         * math/auto-libm-test-in: Add more tests of acosh, asinh and
25503         atanh.
25504         * math/auto-libm-test-out: Regenerated.
25505         * sysdeps/i386/fpu/libm-test-ulps: Update.
25506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25507
25508         * math/auto-libm-test-in: Add another test of asin.
25509         * math/auto-libm-test-out: Regenerated.
25510         * sysdeps/i386/fpu/libm-test-ulps: Update.
25511         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25512
25513         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
25514         Remove macro.
25515         (LLL_EBX_REG): Likewise.
25516         (LLL_ENTER_KERNEL): Likewise.
25517
25518         * math/auto-libm-test-in: Add more tests of asin.
25519         * math/auto-libm-test-out: Regenerated.
25520         * sysdeps/i386/fpu/libm-test-ulps: Update.
25521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25522
25523         [BZ #18138]
25524         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
25525         libc_do_syscall_args): New structure.
25526         (INTERNAL_SYSCALL_MAIN_0): New macro.
25527         (INTERNAL_SYSCALL_MAIN_1): Likewise.
25528         (INTERNAL_SYSCALL_MAIN_2): Likewise.
25529         (INTERNAL_SYSCALL_MAIN_3): Likewise.
25530         (INTERNAL_SYSCALL_MAIN_4): Likewise.
25531         (INTERNAL_SYSCALL_MAIN_5): Likewise.
25532         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
25533         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
25534         Replace conditional definitions by conditional definitions of ....
25535         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
25536         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
25537         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
25538         (libpthread-sysdep_routines): Add libc-do-syscall.
25539         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
25540         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
25541         to __NR_futex not 240.
25542
25543 2015-03-25  Alan Modra  <amodra@gmail.com>
25544
25545         * NEWS: Advertise TLS optimization.
25546         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
25547         (DT_PPC_NUM): Increment.
25548         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
25549         (CHECK_STATIC_TLS): Use here.
25550         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
25551         TLS descriptors.
25552         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
25553         * sysdeps/powerpc/dl-tls.c: New file.
25554         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
25555         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
25556         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
25557         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
25558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
25559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
25560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
25561
25562 2015-03-25  Alan Modra  <amodra@gmail.com>
25563
25564         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
25565         for overlapping .opd entries" to "support...".
25566         * sysdeps/powerpc/powerpc64/configure: Regenerate
25567
25568 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25569
25570         * math/auto-libm-test-in: Add more tests of acos.
25571         * math/auto-libm-test-out: Regenerated.
25572         * sysdeps/i386/fpu/libm-test-ulps: Update.
25573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25574
25575         * math/auto-libm-test-in: Add more tests of expm1.
25576         * math/auto-libm-test-out: Regenerated.
25577         * sysdeps/i386/fpu/libm-test-ulps: Update.
25578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25579
25580 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
25581
25582         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25583         * math/auto-libm-test-out: Regenerated.
25584         * sysdeps/i386/fpu/libm-test-ulps: Update.
25585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25586
25587         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25589
25590         * math/auto-libm-test-in: Add more tests of log2.
25591         * math/auto-libm-test-out: Regenerated.
25592         * sysdeps/i386/fpu/libm-test-ulps: Update.
25593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25594
25595 2015-03-23  Roland McGrath  <roland@hack.frob.com>
25596
25597         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
25598         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
25599         _IO_IS_APPENDING bit in READ_WRITE instead.
25600
25601 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25602
25603         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
25604         (__determine_cpumask_size): Replace extend_alloca with a
25605         variable-length array.  Do not treat res == 0 as an error.
25606
25607 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25608
25609         [BZ #18100]
25610         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
25611         and integer overflow.
25612         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
25613         (main): Add integer overflow tests.
25614         * manual/pattern.texi (Calling Wordexp): Document additional use
25615         for WRDE_SYNTAX.
25616
25617 2015-03-23  Alan Modra  <amodra@gmail.com>
25618
25619         * config.h.in: Remove HAVE_ASM_PPC_REL16.
25620         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
25621         and false branch of conditional.
25622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
25623         Likewise.
25624
25625 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
25626
25627         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
25628         libc-modules.h
25629         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
25630         unused declaration of _hurd_intr_rpc_msg_in_trap.
25631         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
25632         defined instead of whether it is non-zero.
25633         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
25634         input constraint instead of both input and output constraint.  Use ecx
25635         clobber instead of %ecx.
25636         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
25637         mutex_unlock): Use a statement expression instead of an expression list.
25638         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
25639         type to vm_size_t instead of vm_address_t.
25640         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
25641         defined instead of whether it is non-zero.
25642         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
25643         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
25644         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
25645         comparisons with mapaddr.
25646         * nscd/nscd-client.h: Include <time.h>.
25647         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
25648         9th parameter to __vm_region instead of int.
25649         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
25650         * scripts/check-local-headers.sh (exclude): Add device/,
25651         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
25652         cthreads.h.
25653
25654 2015-03-19  Roland McGrath  <roland@hack.frob.com>
25655
25656         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
25657         to account for alignment padding.
25658         * sysdeps/arm/memmove.S: Likewise.
25659
25660 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
25661
25662         * sysdeps/unix/sysv/linux/generic/README: New file.
25663
25664 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
25665
25666         [BZ #18138]
25667         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
25668         (futex_abstimed_wait)
25669         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
25670         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
25671         of lll_futex_timed_wait.
25672
25673 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
25674
25675         [BZ #17542]
25676         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
25677
25678 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
25679
25680         [BZ #17090]
25681         [BZ #17620]
25682         [BZ #17621]
25683         [BZ #17628]
25684         * NEWS: Update.
25685         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
25686         entries with Static TLS too.  Skip entries past the end of the
25687         allocated DTV, from Alan Modra.
25688         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
25689         Static TLS DTV entry set up from...
25690         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
25691         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
25692         * nptl/allocatestack.c (init_one_static_tls): ... and here...
25693         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
25694         for Static TLS.
25695         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
25696         that the slot we find is associated with the given map before
25697         using its generation count.
25698         * nptl_db/db_info.c: Include ldsodefs.h.
25699         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
25700         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
25701         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
25702         (link_map::l_tls_offset): New struct field.
25703         (dtv_t::counter): Likewise.
25704         (rtld_global): New struct.
25705         (_rtld_global): New rtld variable.
25706         (dl_tls_dtv_slotinfo_list): New rtld global field.
25707         (dtv_slotinfo_list): New struct.
25708         (dtv_slotinfo): Likewise.
25709         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
25710         (td_lookup): Rename to...
25711         (td_mod_lookup): ... this.  Use new mod parameter instead of
25712         LIBPTHREAD_SO.
25713         * nptl_db/td_thr_tlsbase.c: Include link.h.
25714         (dtv_slotinfo_list, dtv_slotinfo): New functions.
25715         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
25716         addresses even if the DTV is out of date or missing them.
25717         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
25718         index zero-length arrays.
25719         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
25720         (td_lookup): Make it a macro implemented in terms of...
25721         (td_mod_lookup): ... this declaration.
25722         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
25723         (DB_MAIN_VARIABLE): Likewise.
25724
25725 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25726
25727         [BZ #18134]
25728         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
25729
25730 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25731
25732         * stdlib/setenv.c (__add_to_environ): Revert previous change.
25733
25734 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
25735
25736         [BZ #18128]
25737         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
25738         (atomic_add, atomic_increment_and_test)
25739         (atomic_decrement_and_test): Fix 64-bit arithmetic.
25740
25741 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25742
25743         * stdlib/setenv.c (__add_to_environ):
25744         Dump core quickly if setenv (..., NULL, ...) is called.
25745
25746 2015-03-13  Roland McGrath  <roland@hack.frob.com>
25747
25748         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
25749         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
25750         all the necessary asm magic in one place.
25751         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
25752         using those.
25753
25754 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
25755
25756         [BZ #14906]
25757         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
25758         traced file mtime. Use consistent log message.
25759         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
25760         (register_traced_file): Call install_watches. Always set mtime.
25761         (invalidate_cache): Iterate over all trace files. Call install_watches.
25762         (inotify_check_files): Don't inline. Handle watching parent
25763         directories and configuration file movement in and out.
25764         (handle_inotify_events): New function.
25765         (main_loop_poll): Call handle_inotify_events.
25766         (main_loop_epoll): Likewise.
25767         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
25768         (struct traced_file): Use array of inotify fds. Add parent directory,
25769         and basename.
25770         (struct database_dyn): Remove unused file_mtime.
25771         (init_traced_file): New inline function.
25772         (define_traced_file): New macro.
25773         * nss/nss_db/db-init.c: Use define_traced_file.
25774         (_nss_db_init): Use init_traced_file.
25775         * nss/nss_files/files-init.c: Use define_traced_file.
25776         (_nss_files_init): Use init_traced_file.
25777
25778 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
25779
25780         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
25781         [_LIBC]: Do not include <stdlib.h>.
25782         [!_LIBC] (abort): Remove declaration.
25783         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
25784         _FP_STATIC_ASSERT instead of conditionally calling abort.
25785         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
25786         (_FP_EXTEND_CNAN): Likewise.
25787         (FP_TRUNC): Likewise.
25788         (__FP_CLZ): Likewise.
25789         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
25790
25791 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
25792
25793         * manual/string.texi (XPG basename): Fix prototype.
25794
25795 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25796
25797         [BZ #18080]
25798         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
25799         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25800         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
25801         (__setcontext): Likewise.
25802         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
25803         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25804         Call rt_sigprocmask syscall one time to set new signal mask
25805         and retrieve the current signal mask instead of two calls.
25806         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
25807         (__swapcontext): Likewise.
25808         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
25809         * stdlib/tst-setcontext2.c: New file.
25810
25811 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25812
25813         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
25814
25815 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
25816
25817         [BZ #18093]
25818         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
25819         the wrong size.
25820
25821 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
25822
25823         [BZ #18043]
25824         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
25825
25826 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25827
25828         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
25829         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
25830         Remove define.
25831         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
25832         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
25833         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
25834         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
25835         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
25836         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
25837         define.
25838         * nptl_db/td_symbol_list.c (td_lookup): Remove
25839         HAVE_ASM_GLOBAL_DOT_NAME code.
25840         * sysdeps/powerpc/powerpc64/configure.ac: Remove
25841         HAVE_ASM_GLOBAL_DOT_NAME check.
25842         * sysdeps/powerpc/powerpc64/configure: Regenerate.
25843         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
25844         (DOT_LABEL): Remove define.
25845         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
25846         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
25847         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
25848         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
25849         (__TLS_GET_ADDR): Likewise.
25850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
25851         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
25852
25853 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
25854
25855         [BZ #18111]
25856         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
25857         (_FPU_SETCW): Initialize cw from fpsr before storing.
25858         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
25859         (fesetexceptflag): Rewrite using fpu_control.h.
25860         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
25861
25862 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
25863
25864         [BZ #18110]
25865         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
25866         asms.
25867         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25868
25869 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
25870
25871         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
25872         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
25873         abort.
25874         (_FP_FMA): Likewise.
25875         (_FP_DIV): Likewise.
25876
25877 2015-03-10  Roland McGrath  <roland@hack.frob.com>
25878
25879         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
25880         with 0 in that case.
25881         * Makefile (summarize-tests): New canned sequence, factored out of
25882         commands for targets tests and xtests.  Display summary lines that
25883         don't start with PASS: or XFAIL: rather than ones that do start with
25884         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
25885         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
25886         do start with ERROR: or FAIL:.
25887         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
25888         (except for [$(build-shared) = yes]).
25889         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
25890         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
25891         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
25892         * nptl/Makefile: Revert 2015-03-04 changes.
25893         [$(CXX) empty] (tests-unsupported): New variable.
25894         * debug/Makefile: Likewise.
25895
25896         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
25897         gnulib file.  Replace __attribute with __attribute__ throughout.
25898
25899 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
25900
25901         * sysdeps/hppa/fpu/libm-test-ulps: Update.
25902
25903 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25904
25905         [BZ #18104]
25906         * math/auto-libm-test-in: Add another test of pow.
25907         * math/auto-libm-test-out: Regenerated.
25908
25909 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25910
25911         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
25912         $(config-cflags-nofma).
25913
25914 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25915
25916         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
25917         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
25918         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
25919         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
25920         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
25921         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
25922         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
25923         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
25924         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
25925         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
25926         Add comment on closing #endif.
25927
25928 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25929
25930         * posix/wordexp.c (CHAR_IN_SET): New macro.
25931         (parse_param): Use it.
25932
25933 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25934
25935         * sysdeps/powerpc/fpu/libm-test-ulps: update.
25936
25937 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25938
25939         [BZ #18043]
25940         * posix/wordexp.c (parse_param): Fix buffer overflow.
25941         * posix/wordexp-test.c (test_case): Add test case.
25942
25943 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25944
25945         [BZ #18042]
25946         * posix/wordexp.c (parse_backtick): Fix off-by-one.
25947         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
25948
25949 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25950
25951         [BZ #18043]
25952         * posix/wordexp-test.c (test_case): Add test for BZ #18043
25953         (do_bz18043): Delete.
25954         (at_page_end): New.
25955         (testit): Refactor to have words at the edge of unreadable page.
25956
25957 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
25958
25959         [BZ #16734]
25960         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
25961         Cleanup read-only streams as well.
25962         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
25963
25964 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25965
25966         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
25967         <bits/libc-lockP.h>
25968
25969 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
25970
25971         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
25972         on [__KERNEL__].
25973         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
25974         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
25975         * soft-fp/op-common.h (_FP_DECL): Likewise.
25976
25977 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
25978
25979         * elf/ifuncdep2.c (global): Replace
25980         __attribute__((visibility("protected"))) with
25981         asm (".protected global").
25982         * elf/ifuncmod1.c (global): Likewise.
25983         * elf/ifuncmod5.c (global): Likewise.
25984
25985 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
25986
25987         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
25988         <asm/sfp-machine.h> instead of <sfp-machine.h>.
25989
25990 2015-03-06  Roland McGrath  <roland@hack.frob.com>
25991
25992         * manual/install.texi (Configuring and compiling):
25993         Document test-wrapper-env-only.
25994         * INSTALL: Regenerated.
25995
25996 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25997
25998         [BZ #18043]
25999         * posix/wordexp.c (parse_param): Fix buffer overflow.
26000         * posix/wordexp-test.c (do_bz18043): Add test case.
26001
26002 2015-03-06  Vincent Bernat  <vincent@bernat.im>
26003
26004         * time/tst-strptime2.c (do_test): Ensure failing tests are
26005         reported correctly.
26006         * time/tst-strptime3.c (do_test): Likewise.
26007
26008 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
26009
26010         Fix aio_error thread-safety.
26011         * sysdeps/pthread/aio_error.c: New file
26012         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
26013         synchronization.
26014
26015 2015-03-06  Florian Weimer  <fweimer@redhat.com>
26016
26017         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
26018         (group_number, vfprintf): Use it.
26019         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
26020         (JUMP, REF): Use it.
26021         (WORK_BUFFER_SIZE): New enum constant.
26022         (process_arg, vfprintf): Use it.
26023
26024 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
26025
26026         * manual/errno.texi (Error Messages): Complete example function
26027         by adding missing #define.
26028         (program_invocation_name): Add statement indicating GNU
26029         extension and reference which header file declares the variable.
26030         (program_invocation_short_name): Likewise.
26031
26032 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
26033
26034         * manual/errno.texi (Error Messages): Delete strerror ISO C89
26035         compatibility note.
26036
26037 2015-03-05  Roland McGrath  <roland@hack.frob.com>
26038
26039         * Makeconfig (test-wrapper-env-only): New variable.
26040         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
26041         then use that with $(test-wrapper-env-only) rather than using
26042         $(test-wrapper-env) $(run-program-env) $($*-ENV).
26043
26044 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
26045
26046         [BZ #18082]
26047         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
26048         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
26049         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
26050         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
26051         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
26052         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
26053         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
26054         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
26055         Likewise.
26056         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
26057         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
26058         Likewise.
26059         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
26060         Likewise.
26061         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
26062         Likewise.
26063         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
26064         Likewise.
26065         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
26066         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
26067         Likewise.
26068         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
26069         Likewise.
26070         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
26071         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
26072
26073 2015-03-04  Roland McGrath  <roland@hack.frob.com>
26074
26075         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
26076         (ETH_ALEN): New macro.
26077         (struct ether_addr): Use it for length of ether_addr_octet.
26078
26079         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
26080         (setdb): Don't call __nss_configure_lookup for "rpc".
26081         (do_test): Don't call test_rpc.
26082         (output_rpcent, test_rpc): Functions moved ...
26083         * sunrpc/test-rpcent.c: ... to this new file.
26084         * sunrpc/Makefile (tests): Add it.
26085
26086         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
26087         __xpg_sigpause.
26088         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
26089         * nptl/tst-signal6.c: Likewise.
26090         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
26091         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
26092
26093         * configure.ac (libc_cv_cxx_link_ok): New check.
26094         Reset CXX to empty if it fails to link.
26095         * configure: Regenerated.
26096         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
26097         bug-atexit3-lib only if $(CXX) is nonempty.
26098         * nptl/Makefile (tests): Likewise for tst-cancel24.
26099         (tests, tests-static): Likewise for tst-cancel24-static.
26100         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
26101         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
26102         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
26103         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
26104
26105 2015-03-04  Andreas Schwab  <schwab@suse.de>
26106
26107         [BZ #17631]
26108         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
26109         for non-GCC compilers.
26110         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
26111         Likewise.
26112
26113 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26114
26115         [BZ #17776]
26116         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
26117         integer before bitwise and assembly operations.
26118         (feclearexcept): Likewise.
26119         * math/test-fenvinline.c: New file.
26120         * math/Makefile: Add test-fenvinline test.
26121
26122 2015-03-03  Alan Modra  <amodra@gmail.com>
26123
26124         [BZ #16512]
26125         * scripts/localplt.awk: Strip off symbol version.
26126         * NEWS: Mention bug fix.
26127
26128 2015-03-02  Roland McGrath  <roland@hack.frob.com>
26129
26130         * sysdeps/pthread/timer_routines.c
26131         (timer_free_list, thread_free_list, thread_active_list): Make static.
26132
26133 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
26134
26135         [BZ #17779]
26136         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26137         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26138         Undefine.
26139         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26140         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26141         Likewise.
26142         * sysdeps/unix/sysv/linux/sh/kernel-features.h
26143         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26144         Likewise.
26145
26146 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26147
26148         [BZ #18036]
26149         * posix/fnmatch_loop.c (END): Detect invalid pattern.
26150         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
26151
26152 2015-03-02  Andreas Schwab  <schwab@suse.de>
26153
26154         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
26155         variable name.
26156
26157 2015-03-02  Florian Weimer  <fweimer@redhat.com>
26158
26159         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
26160         Return error status.
26161
26162 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
26163
26164         [BZ #15969]
26165         * locale/findlocale.c (_nl_find_locale): Introduce const
26166         version of loc_name and drop unsafe type casts.
26167
26168 2015-02-27  Roland McGrath  <roland@hack.frob.com>
26169
26170         * dlfcn/tststatic2.c (main): Converted to ...
26171         (do_test): ... this.
26172         (TEST_FUNCTION): New macro.
26173         Include test-skeleton.c.
26174
26175 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26176
26177         [BZ #17711]
26178         * elf/Makefile (tests): Add vismain only if PIE is enabled.
26179         (tests-pie): Add vismain.
26180         (CFLAGS-vismain.c): New.
26181         * elf/vismain.c: Add comments for PIE requirement.
26182
26183 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26184
26185         [BZ #18046]
26186         [BZ #18047]
26187         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
26188         0x1p-56L as threshold for just returning the argument.
26189         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
26190         0x1p-32L as threshold for just returning the argument.
26191         * math/auto-libm-test-in: Add more tests of atanh.
26192         * math/auto-libm-test-out: Regenerated.
26193         * sysdeps/i386/fpu/libm-test-ulps: Update.
26194         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
26195
26196 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26197
26198         * string/bcopy.c (bcopy): Call memmove for performance.
26199
26200 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26201
26202         * string/bzero.c (__bzero): Call memset for performance.
26203
26204 2015-02-27  John David Anglin  <dave.anglin@bell.net>
26205
26206         [BZ #18068]
26207         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
26208         to 00100000.
26209
26210 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26211
26212         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
26213
26214 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26215
26216         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
26217         (__kernel_standard): Use CSTR macro when setting exc.name.
26218         * sysdeps/ieee754/Makefile [$(subdir) = math]
26219         (CFLAGS-k_standard.c): Remove variable.
26220
26221         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
26222         setting p and q from "else if" to "else".
26223         (qzero): Likewise.
26224         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
26225         (qone): Likewise.
26226         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
26227         (qzerof): Likewise.
26228         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
26229         (qonef): Likewise.
26230         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
26231         (qzero): Likewise.
26232         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
26233         (qone): Likewise.
26234
26235         [BZ #18038]
26236         [BZ #18039]
26237         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
26238         return pi/2 for arguments below 0x1p-113L.
26239         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
26240         return pi/2 for arguments below 0x1p-106L.
26241         * math/auto-libm-test-in: Add more tests of acos.
26242         * math/auto-libm-test-out: Regenerated.
26243
26244         [BZ #16351]
26245         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
26246         (MO): New macro.
26247         (__ieee754_asin): Force underflow exception for results with small
26248         absolute value.
26249         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
26250         (MO): New macro.
26251         (__ieee754_asinf): Force underflow exception for results with
26252         small absolute value.
26253         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
26254         (__ieee754_asin): Force underflow exception for results with small
26255         absolute value.
26256         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
26257         (__ieee754_asinf): Force underflow exception for results with
26258         small absolute value.
26259         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
26260         (__ieee754_asinl): Force underflow exception for results with
26261         small absolute value.
26262         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
26263         (__ieee754_asinl): Force underflow exception for results with
26264         small absolute value.
26265         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
26266         (__ieee754_asinl): Force underflow exception for results with
26267         small absolute value.
26268         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
26269         Include <math.h>.
26270         * math/auto-libm-test-in: Do not mark underflow exceptions as
26271         possibly missing for bug 16351.
26272         * math/auto-libm-test-out: Regenerated.
26273
26274         [BZ #18030]
26275         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
26276         of power of 2 down when low part has opposite sign.
26277         * math/libm-test.inc (logb_test_data): Add more tests.
26278
26279 2015-02-26  Andreas Schwab  <schwab@suse.de>
26280
26281         [BZ #18032]
26282         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
26283         over collating symbol inside a bracket expression.  Minor cleanup.
26284         * posix/tst-fnmatch3.c (do_test): Add test case.
26285
26286 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26287
26288         [BZ #18029]
26289         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
26290         Adjust exponent of power of 2 down when low part has opposite
26291         sign.
26292         * math/libm-test.inc (ilogb_test_data): Add more tests.
26293
26294 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
26295
26296         [BZ #15969]
26297         * locale/findlocale.c (_nl_find_locale): Fix constness error in
26298         the previous change.
26299
26300         [BZ #15969]
26301         * locale/findlocale.c (_nl_find_locale): Retry archive search
26302         after alias expansion.
26303
26304 2015-02-25  Roland McGrath  <roland@hack.frob.com>
26305
26306         * iconv/tst-iconv3.c (main): Converted to ...
26307         (do_test): ... this.
26308         (TEST_FUNCTION): New macro.
26309         Include test-skeleton.c.
26310
26311         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
26312         (convert): Make function static.
26313         (test_unalign): Likewise.  Add const to argument pointee types.
26314         (main): Replace with static function do_test.
26315         Print "Succeeded." only if RET is zero.
26316         (TEST_FUNCTION): New macro.
26317         Include test-skeleton.c.
26318
26319         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
26320         returns a null pointer.
26321
26322 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26323
26324         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
26325         to __memcpy_ppc only for static builds.
26326
26327 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
26328
26329         [BZ #18020]
26330         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
26331         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
26332         * math/auto-libm-test-in: Add more tests of asinh.
26333         * math/auto-libm-test-out: Regenerated.
26334         * sysdeps/i386/fpu/libm-test-ulps: Update.
26335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26336
26337 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
26338
26339         [BZ #15850]
26340         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
26341         and ip6_mtuinfo definitions here.
26342         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
26343         in this define too.  Update comment.
26344
26345 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
26346
26347         * elf/sprof.c (load_shobj): Tweak error message to match others.
26348
26349 2015-02-24  Kevin Easton  <kevin@guarana.org>
26350
26351         [BZ #16145] (partial fix)
26352         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
26353         to reduce lock contention.
26354
26355 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
26356
26357         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
26358         (struct timex): Update time comment.
26359         (ADJ_SETOFFSET): Define.
26360
26361 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26362
26363         [BZ #18019]
26364         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
26365         2**56 not 2**28 as threshold for log (2x) formula.
26366         * math/auto-libm-test-in: Add more tests of acosh.
26367         * math/auto-libm-test-out: Regenerated.
26368         * sysdeps/i386/fpu/libm-test-ulps: Update.
26369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26370
26371 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26372
26373         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
26374         parenthesis around the buf assignment.
26375         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
26376
26377 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26378
26379         [BZ #16783]
26380         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
26381         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
26382         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
26383         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26384         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26385         * math/libm-test.inc (scalb_test_data): Add more tests.
26386
26387 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
26388
26389         [BZ #17916]
26390         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
26391         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
26392
26393 2015-02-24  Eric Rannaud  <e@nanocritical.com>
26394
26395         [BZ #17523]
26396         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
26397         * io/bits/fcntl2.h (open): Use it.
26398         (openat): Likewise.
26399         * io/open.c (__libc_open): Likewise.
26400         * io/open64.c (__libc_open64): Likewise.
26401         * io/open64_2.c (__open64_2): Likewise.
26402         * io/open_2.c (__open_2): Likewise.
26403         * io/openat.c (__openat): Likewise.
26404         * io/openat64.c (__openat64): Likewise.
26405         * io/openat64_2.c (__openat64_2): Likewise.
26406         * io/openat_2.c (__openat_2): Likewise.
26407         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
26408         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
26409         * sysdeps/posix/open64.c (__libc_open64): Likewise.
26410         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
26411         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
26412         (__open_nocancel): Likewise.
26413         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
26414         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
26415         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
26416
26417 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26418
26419         [BZ #14841]
26420         * resolv/gethnamaddr.c (getanswer): Skip logging if
26421         RES_USE_DNSSEC is set.
26422         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
26423
26424 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26425
26426         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
26427
26428 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
26429
26430         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
26431         201304L, for Unicode 7.
26432
26433 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
26434
26435         [BZ #17836]
26436         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
26437         shared library.  Add gmon-start.os otherwise.
26438         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
26439         $(objpfx)gmon-start.os if builing shared library.
26440         ($(objpfx)g$(static-start-installed-name)): Likewise.
26441
26442 2015-02-23  Andreas Schwab  <schwab@suse.de>
26443
26444         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
26445
26446 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
26447
26448         [BZ #17269]
26449         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
26450         (enlarge_userbuf): Likewise.
26451
26452 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
26453
26454         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
26455         * math/atest-exp.c (TIMEOUT): Adjust to 200.
26456         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
26457         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
26458
26459 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
26460
26461         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
26462         expression inside statement expression.
26463
26464 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
26465
26466         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
26467         <sysdeps/nptl/lowlevellock.h> and remove macros and
26468         functions that are now defined there.
26469         (SYS_futex): Remove.
26470         (lll_compare_and_swap): Remove.
26471         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
26472
26473 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
26474
26475         [BZ #17999]
26476         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
26477         instead of scandirat.
26478         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
26479         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
26480         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
26481         __scandirat.
26482         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
26483         (__scandirat): Declare.  Use libc_hidden_proto.
26484         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
26485         Remove variable.
26486         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
26487
26488 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26489
26490         [BZ #15319]
26491         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
26492         (MO): New macro.
26493         (__ieee754_atan2): For results with small absolute value, force
26494         underflow exception and remove excess range and precision from
26495         return value.
26496         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
26497         (MO): New macro.
26498         (__ieee754_atan2f): For results with small absolute value, force
26499         underflow exception and remove excess range and precision from
26500         return value.
26501         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
26502         (MO): New macro.
26503         (__atan): For results with small absolute value, force underflow
26504         exception and remove excess range and precision from return value.
26505         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
26506         (MO): New macro.
26507         (__atanf): For results with small absolute value, force underflow
26508         exception and remove excess range and precision from return value.
26509         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
26510         <math.h>.
26511         (__ieee754_atan2): Force underflow exception for results with
26512         small absolute value.
26513         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
26514         <math_private.h>.
26515         (atan): Force underflow exception for results with small absolute
26516         value.
26517         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
26518         (__atanf): Force underflow exception for results with small
26519         absolute value.
26520         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
26521         <math.h>.
26522         (__atanl): Force underflow exception for results with small
26523         absolute value.
26524         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
26525         (__atanl): Force underflow exception for results with small
26526         absolute value.
26527         * sysdeps/x86/fpu/bits/mathinline.h
26528         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
26529         (__ieee754_atan2): Only define inline for long double.
26530         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
26531         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
26532         * math/auto-libm-test-in: Do not mark underflow exceptions as
26533         possibly missing for bug 15319.  Add more tests of atan2.
26534         * math/auto-libm-test-out: Regenerated.
26535         * math/libm-test.inc (casin_test_data): Do not mark underflow
26536         exceptions as possibly missing for bug 15319.
26537         (casinh_test_data): Likewise.
26538         * sysdeps/i386/fpu/libm-test-ulps: Update.
26539
26540 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
26541
26542         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
26543         * sysdeps/mips/bits/endian.h: Fix comments.
26544
26545 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26546
26547         [BZ #17996]
26548         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
26549         (hdestroy_r): Likewise.
26550         (hsearch_r): Likewise.
26551         (__hcreate_r): Declare and use libc_hidden_proto.
26552         (__hdestroy_r): Likewise.
26553         (__hsearch_r): Likewise.
26554         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
26555         (hcreate): Call __hcreate_r instead of hcreate_r.
26556         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
26557         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
26558         as weak alias of __hcreate_r.
26559         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
26560         __hdestroy_r.
26561         (hsearch_r): Rename to __hsearch_r and define as weak alias of
26562         __hsearch_r.
26563         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
26564         Remove variable.
26565         (test-xfail-XPG4/search.h/linknamespace): Likewise.
26566         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
26567         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
26568         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
26569
26570 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26571
26572         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
26573         arena_lock into a single arena_get.
26574
26575 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
26576
26577         * dl-reloc.c: Inlucde libc-internal.h.
26578         (_dl_try_allocate_static_tls): Call ALIGN_UP.
26579         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
26580         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
26581         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
26582         (grow_heap): Likewise.
26583         * malloc/malloc.c: Include libc-internal.h.
26584         (do_check_malloc): Call powerof2.
26585         (sysmalloc): Use pagesize. Call ALIGN_UP.
26586         (systrim): Use pagesize.
26587         (mremap_chunk): Use pagesize. Call ALIGN_UP.
26588         (__libc_valloc): Use pagesize.
26589         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
26590
26591 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26592
26593         [BZ #17991]
26594         * include/sys/resource.h (__getrlimit64): Declare.  Use
26595         libc_hidden_proto.
26596         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
26597         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
26598         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
26599         getrlimit64.
26600         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
26601         __getrlimit64.
26602         [!getrlimit64] (getrlimit64): Define as weak alias of
26603         __getrlimit64.  Use libc_hidden_weak.
26604         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
26605         using __getrlimit64 not __new_getrlimit64.
26606         (__GI_getrlimit64): Likewise.
26607         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
26608         Likewise.
26609         (__GI_getrlimit64): Likewise.
26610         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
26611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
26612         (getrlimit): Add __getrlimit64 alias.
26613         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
26614         Likewise.
26615         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
26616         Remove variable.
26617         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
26618         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
26619
26620 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
26621
26622         * libio/fileops.c: Add missing sys/mman.h
26623         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
26624
26625 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26626
26627         * manual/math.texi (Errors in Math Functions): Clarify goals
26628         regarding inexact and underflow exceptions.
26629
26630 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26631
26632         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
26633         * sysdeps/mips/memset.S: Ditto.
26634
26635 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26636
26637         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
26638
26639 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26640
26641         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
26642         (__v1longjmp): Remove versioned symbol.
26643         (__v1siglongjmp): Remove alias and versioned symbol.
26644         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
26645         (__v2siglongjmp): Likewise.
26646
26647 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26648
26649         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
26650
26651 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
26652
26653         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
26654
26655 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26656
26657         [BZ #17987]
26658         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
26659         zero result does not depend on the sign resulting from
26660         subtraction.
26661         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26662         Likewise.
26663         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26664         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26665         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26666         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26667         * math/libm-test.inc (remquo_test_data): Add more tests.
26668
26669 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26670
26671         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
26672         Problem reported by J William Piggott.
26673
26674 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26675
26676         [BZ #17978]
26677         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
26678         products 4 * y and 2 * y where those would overflow.
26679         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26680         Likewise.
26681         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26682         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26683         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26684         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26685         * math/libm-test.inc (remquo_test_data): Add more tests.
26686
26687         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
26688
26689         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
26690         [defined _COMPILING_NEWLIB].
26691         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
26692         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
26693
26694         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
26695         [!defined __mips_isa_rev || __mips_isa_rev < 6].
26696
26697 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26698
26699         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
26700         acquired.
26701
26702 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
26703
26704         [BZ #17792]
26705         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
26706         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
26707         HOST_STACK_END_ADDR): Likewise.
26708
26709 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
26710
26711         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
26712         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
26713         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
26714
26715 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26716
26717         * sysdeps/generic/c++-types.data: New file.
26718         * sysdeps/generic/ld.abilist: New file.
26719         * sysdeps/generic/libBrokenLocale.abilist: New file.
26720         * sysdeps/generic/libanl.abilist: New file.
26721         * sysdeps/generic/libc.abilist: New file.
26722         * sysdeps/generic/libcrypt.abilist: New file.
26723         * sysdeps/generic/libdl.abilist: New file.
26724         * sysdeps/generic/libm.abilist: New file.
26725         * sysdeps/generic/libpthread.abilist: New file.
26726         * sysdeps/generic/libresolv.abilist: New file.
26727         * sysdeps/generic/librt.abilist: New file.
26728
26729 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26730
26731         [BZ #17569]
26732         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26733         Compute absolute value of x as modified by fmod, not original
26734         value of x.
26735         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
26736         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
26737         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
26738         RUN_TEST_ffI_f1_mod8.
26739         (remquo_test_data): Add more tests.
26740
26741 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26742
26743         * sysdeps/init_array/pt-crti.S: New file.
26744
26745 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26746
26747         [BZ #17967]
26748         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
26749         __builtin_fmaf instead of relying on contraction of a * b + c.
26750
26751 2015-02-12  J William Piggott  <elseifthen@gmx.com>
26752
26753         [BZ #17969]
26754         * manual/time.texi: correct the zoneinfo path in the TZ Variable
26755         node.
26756
26757 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26758
26759         [BZ #17964]
26760         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
26761         __builtin_fma instead of relying on contraction of a * b + c.
26762
26763 2015-02-12  Roland McGrath  <roland@hack.frob.com>
26764
26765         * Makeconfig (ASFLAGS): Add -Werror=undef.
26766         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
26767         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
26768         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
26769
26770         * Makeconfig (after-link): New variable.
26771         (+link-pie, +link-pie-tests): Use it.
26772         (+link-static, +link-static-tests): Likewise.
26773         (+link, +link-tests): Likewise.
26774         * Makerules (build-module, build-module-asneeded): Likewise.
26775         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
26776         Likewise.
26777         * elf/Makefile ($(objpfx)ld.so): Likewise.
26778
26779 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
26780
26781         [BZ #17965]
26782         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
26783         both struct timeval and struct timespec.
26784
26785 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26786
26787         [BZ #16560]
26788         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
26789         and redefine.
26790         (__ieee754_exp2l): Do not multiply small fractional parts by
26791         M_LN2l.
26792         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
26793         small argument.
26794         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26795         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26796         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
26797         * math/auto-libm-test-in: Add more tests of exp2.
26798         * math/auto-libm-test-out: Regenerated.
26799
26800 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26801
26802         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
26803         unaligned path.
26804
26805 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26806
26807         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
26808         little endian.
26809
26810 2015-02-12  Andreas Schwab  <schwab@suse.de>
26811
26812         [BZ #15790]
26813         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
26814         Filter out elision flags from value returned in kind.
26815         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
26816         * nptl/tst-pthread-mutexattr.c: New file.
26817
26818 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26819
26820         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
26821         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
26822         into gnu-gnu, and update comment to refer to abi-tags.
26823
26824 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
26825
26826         [BZ #15467]
26827         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
26828         (__sincos): Set errno to EDOM for infinite argument.
26829         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
26830         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
26831         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
26832         (__sincosl): Set errno to EDOM for infinite argument.
26833         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
26834         (__sincosl): Set errno to EDOM for infinite argument.
26835         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
26836         (__sincosl): Set errno to EDOM for infinite argument.
26837         * math/libm-test.inc (sincos_test_data): Test errno setting.
26838
26839 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
26840
26841         * string/strxfrm_l.c: Remove #define STRCMP.
26842         * string/strcoll_l.c: Remove #define STRLEN.
26843         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
26844         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
26845
26846 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
26847
26848         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
26849         * sysdeps/mips/mips32/sfp-machine.h: ... here.
26850         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
26851         * sysdeps/mips/mips64/Makefile: ... here.
26852         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
26853         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
26854         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
26855         * sysdeps/mips/mips64/sfp-machine.h: ... here.
26856         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
26857         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
26858         * sysdeps/mips/mips64/n64/Implies: Likewise.
26859
26860 2015-02-10  Roland McGrath  <roland@hack.frob.com>
26861
26862         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
26863         <sys/time.h>, <string.h>, and <errno.h>.
26864         (dest_offset, dest_address, value, zero): Remove unused variables.
26865         (ldouble): Remove typedef.
26866         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
26867         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
26868         1).  Fix code style.
26869         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
26870         (check): Function removed.
26871         (CHECK): New macro.
26872         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
26873         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
26874         Don't call set_sigaction_FP and remove_sigaction_FP here.
26875         (ldouble_test): Just use 'long double' as macro argument, no need for
26876         the 'ldouble' typedef.
26877         (do_test): Set up SIGFPE handler at start, using plain signal rather
26878         than sigaction.  Fix code style.
26879
26880 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
26881
26882         [BZ #17949]
26883         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
26884         jump label.
26885
26886 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26887
26888         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
26889         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26890
26891         * sysdeps/powerpc/configure.ac: Remove file.
26892         * sysdeps/powerpc/configure: Likewise.
26893
26894         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26895         [sysdep_routines]: Remove wordcopy-power6 object.
26896         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
26897         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
26898         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
26899         (__memmove_ppc32): Likewise.
26900         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
26901         file.
26902         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
26903         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
26904         Remove preprocessor.
26905
26906         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26907         [sysdep_routines]: Remove wide chars objects.
26908         [wcsmbs]: New rule for wide char objects.
26909
26910         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26911         Remove wordcopy-power6 obejct.
26912         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
26913         Use local call for wordcopy and memcpy symbols.
26914         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
26915         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
26916         implementation for loader.
26917         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
26918
26919         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26920         Remove wordcopy-power7 object.
26921         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
26922         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
26923         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
26924         (_wordcopy_fwd_dest_aligned): Likewise.
26925         (_wordcopy_bwd_aligned): Likewise.
26926         (_wordcopy_bwd_dest_aligned): Likewise.
26927
26928         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
26929         Rewrite to call __memmove_ppc instead of include default
26930         implementation.
26931
26932         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26933         Remove wide chars objects.
26934         [wcsmbs]: New rule for wide char objects.
26935
26936 2015-02-09  Andreas Schwab  <schwab@suse.de>
26937
26938         [BZ #17912]
26939         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
26940         in terms of __O_DIRECTORY.
26941
26942 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26943
26944         * time/getdate.c: Include <stdbool.h>.
26945         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
26946         call PTR_MANGLE.
26947         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
26948         PTR_DEMANGLE.
26949
26950 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26951
26952         Add ersatz _Static_assert on older C hosts
26953         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
26954         pre-C11 C platform that is not known to support _Static_assert.
26955
26956 2015-02-07  Richard Braun  <rbraun@sceen.net>
26957
26958         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
26959         sigstate.
26960         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
26961
26962 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26963
26964         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
26965         priority against unexistent AIO_PRIO_DELTA_MAX.
26966         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
26967         instead of int.
26968         * misc/fchflags.c (fchflags): Likewise.
26969         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
26970         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
26971         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
26972         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
26973         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
26974         Declare macros.
26975         [__USE_MISC] (chflags, fchflags): Declare functions.
26976         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
26977         EINVAL when nfds is greater than FD_SETSIZE.
26978         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
26979         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
26980         45.
26981         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
26982         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
26983         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
26984         MACH_RCV_TIMED_OUT.
26985         * hurd/hurd/signal.h (_hurd_self_sigstate,
26986         _hurd_critical_section_lock, _hurd_critical_section_unlock):
26987         Explicit casts from void *.
26988         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
26989         * abi-tags: Rename gnu-gnu os into gnu.
26990
26991         [BZ #4719]
26992         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
26993         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
26994         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
26995         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
26996         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
26997         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
26998
26999         [BZ #17944]
27000         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
27001         duplicates ADDR->sun_path with sockaddr LEN limitation.
27002         * sysdeps/mach/hurd/connect.c: Include <string.h>
27003         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
27004         * sysdeps/mach/hurd/sendmsg.c: Likewise.
27005         * sysdeps/mach/hurd/sendto.c: Likewise.
27006         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
27007         implementing it by hand.
27008
27009 2015-02-06  Roland McGrath  <roland@hack.frob.com>
27010
27011         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
27012         Use sfi_breg on ldr.
27013         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
27014         Likewise.
27015
27016         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
27017         it's defined.
27018         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
27019         Test SIGSETXID only if it's defined.
27020
27021         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
27022
27023         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
27024         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
27025
27026         * nptl/tst-align2.c: Moved ...
27027         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
27028         * nptl/Makefile (tests): Remove tst-align2.
27029         * sysdeps/unix/sysv/linux/Makefile
27030         [$(subdir) = nptl] (tests): Add tst-align-clone.
27031         * nptl/tst-getpid1.c: Moved ...
27032         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
27033         * nptl/tst-getpid2.c: Moved ...
27034         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
27035         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
27036         * sysdeps/unix/sysv/linux/Makefile
27037         [$(subdir) = nptl] (tests): ... here.
27038         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
27039         * sysdeps/unix/sysv/linux/Makefile
27040         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
27041
27042         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
27043         Drop trailing \n from perror argument.  Use return rather than exit.
27044
27045         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
27046         on [SA_SIGINFO].
27047         * nptl/tst-cancel21.c (do_test): Likewise.
27048         * debug/tst-backtrace6.c: Include <signal.h> first thing.
27049         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
27050         [!SA_SIGINFO]: Make it a stub test.
27051
27052         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
27053         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
27054
27055         * posix/tst-getlogin.c: Move to ...
27056         * login/tst-getlogin.c: ... here.
27057         * posix/Makefile (tests): Move tst-getlogin to ...
27058         * login/Makefile (tests): ... here.
27059
27060         * libio/tst-atime.c (do_test): Move local variables SV and E
27061         inside [ST_NOATIME] conditional.
27062
27063         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
27064
27065         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
27066
27067         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
27068         (wait_code): New function replaces macro.
27069         Call nanosleep rather than syscall.
27070
27071         * nptl/pt-system.c: Rewritten.  Put everything under
27072         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27073         Use IFUNC to redirect when possible.
27074
27075         * nptl/pt-longjmp.c: Rewritten.  Put everything under
27076         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27077         Use IFUNC to redirect when possible.
27078
27079         * nptl/pt-fork.c: Rewritten.  Put everything under
27080         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27081         Use IFUNC to redirect when possible.
27082         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
27083
27084         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
27085         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
27086         unconditionally nowadays.  This included the only reference to
27087         __vdso_clock_gettime that appears outside libc proper.
27088         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
27089         Remove version set (containing only __vdso_clock_gettime).
27090         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
27091         Add attribute_hidden.
27092         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
27093         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
27094         libc_hidden_data_def.
27095         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27096         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27097
27098         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
27099         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
27100         setrpcent, and getrpcport to ...
27101         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
27102         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
27103         getrpcbynumber_r, and getrpcent_r to ...
27104         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
27105         * inet/getrpcbyname.c: Moved ...
27106         * sunrpc/getrpcbyname.c: ... here.
27107         * inet/getrpcbyname_r.c: Moved ...
27108         * sunrpc/getrpcbyname_r.c: ... here.
27109         * inet/getrpcbynumber.c: Moved ...
27110         * sunrpc/getrpcbynumber.c: ... here.
27111         * inet/getrpcbynumber_r.c: Moved ...
27112         * sunrpc/getrpcbynumber_r.c: ... here.
27113         * inet/getrpcent.c: Moved ...
27114         * sunrpc/getrpcent.c: ... here.
27115         * inet/getrpcent_r.c: Moved ...
27116         * sunrpc/getrpcent_r.c: ... here.
27117         * inet/Makefile (routines): Move those to ...
27118         * sunrpc/Makefile (routines): ... here.
27119         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
27120         the $(subdirs) list.
27121         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
27122         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
27123         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
27124         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
27125
27126         * elf/Makefile (routines): Include $(all-dl-routines), not just
27127         $(dl-routines).
27128         (rtld-routines): Likewise.  Use = rather than :=.
27129         * sysdeps/aarch64/Makefile [$(subdir) = elf]
27130         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
27131         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
27132         * sysdeps/arm/Makefile: Likewise.
27133         * sysdeps/i386/Makefile: Likewise.
27134         * sysdeps/x86_64/Makefile: Likewise.
27135         * sysdeps/hppa/Makefile [$(subdir) = elf]
27136         (sysdep_routines, sysdep-rtld-routines): Don't add
27137         $(sysdep-dl-routines) to these.
27138         * sysdeps/ia64/Makefile: Likewise.
27139         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
27140         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
27141         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
27142         Don't add dl-static to these; sysdep-dl-routines alone is enough.
27143         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
27144         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
27145         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
27146         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
27147         * sysdeps/powerpc/Makefile [$(subdir) = elf]
27148         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
27149         these; sysdep-dl-routines alone is enough.
27150
27151 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
27152
27153         [BZ #17932]
27154         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
27155         where multiplication results in zero and third argument is finite
27156         and nonzero.
27157         * math/auto-libm-test-in: Add more tests of fma.
27158         * math/auto-libm-test-out: Regenerated.
27159
27160         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
27161         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
27162         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
27163         (_FP_CMP_EQ): Likewise.
27164         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
27165
27166         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
27167         extra argument CHECK_NAN.  Redefine as wrapper around
27168         _FP_EXTEND_CNAN.
27169
27170 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
27171
27172         * version.h (RELEASE): Set to "stable".
27173         (VERSION): Set to "2.21"
27174         * include/features.h (__GLIBC_MINOR__): Set to 21.
27175
27176         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
27177
27178 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27179             Paul Eggert  <eggert@cs.ucla.edu>
27180
27181         [BZ #16618]
27182         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
27183         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
27184         size in bytes. Store needed elements in wpmax. Use needed size
27185         in bytes for extend_alloca.
27186
27187 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
27188
27189         * manual/install.texi: Latest tested versions are GCC 4.9.2,
27190         binutls 2.25, and texinfo 5.2.
27191         * INSTALL: Regenerate.
27192         * sysdeps/nios2/configure: Regenerate.
27193         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
27194         * manual/contrib.texi: Update.
27195         * po/be.po: Update.
27196         * po/bg.po: Update.
27197         * po/ca.po: Update.
27198         * po/cs.po: Update.
27199         * po/da.po: Update.
27200         * po/de.po: Update.
27201         * po/el.po: Update.
27202         * po/eo.po: Update.
27203         * po/es.po: Update.
27204         * po/fi.po: Update.
27205         * po/fr.po: Update.
27206         * po/gl.po: Update.
27207         * po/hr.po: Update.
27208         * po/hu.po: Update.
27209         * po/ia.po: Update.
27210         * po/id.po: Update.
27211         * po/it.po: Update.
27212         * po/ja.po: Update.
27213         * po/ko.po: Update.
27214         * po/lt.po: Update.
27215         * po/nb.po: Update.
27216         * po/nl.po: Update.
27217         * po/pl.po: Update.
27218         * po/pt_BR.po: Update.
27219         * po/ru.po: Update.
27220         * po/rw.po: Update.
27221         * po/sk.po: Update.
27222         * po/sl.po: Update.
27223         * po/sv.po: Update.
27224         * po/tr.po: Update.
27225         * po/uk.po: Update.
27226         * po/vi.po: Update.
27227         * po/zh_CN.po: Update.
27228         * po/zh_TW.po: Update.
27229
27230         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
27231         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
27232         * sysdeps/hppa/dl-irel.h: Remove #warning.
27233         * sysdeps/hppa/entry.h: Provide prototype for
27234         __canonicalize_funcptr_for_compare and cast argument.
27235         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
27236         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
27237         * sysdeps/hppa/sotruss-lib.c: New file.
27238         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
27239         (atomic_compare_and_exchange_val_acq): Use __typeof__.
27240         (atomic_compare_and_exchange_bool_acq): Likewise.
27241         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
27242         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
27243
27244         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
27245         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
27246         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
27247
27248 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
27249
27250         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
27251         called function in non-PIC case.
27252
27253 2015-01-31  David S. Miller  <davem@davemloft.net>
27254
27255         * sysdeps/sparc/sparc32/bits/atomic.h
27256         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
27257         unlock not after it.
27258         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
27259         volatile register usage warnings from the compiler.
27260
27261         * sysdeps/sparc/nptl/sem_init.c: Delete.
27262         * sysdeps/sparc/nptl/sem_post.c: Delete.
27263         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
27264         * sysdeps/sparc/nptl/sem_wait.c: Delete.
27265         * sysdeps/sparc/sparc32/sem_init.c: New file.
27266         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
27267         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
27268         padding explicitly initialized.
27269         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
27270         padding for in-semaphore spinlock.
27271         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
27272         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
27273         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
27274         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
27275         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
27276         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
27277         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
27278         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
27279         version.
27280         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
27281         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
27282
27283 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
27284
27285         [BZ #17801]
27286         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27287         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
27288         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
27289         New.
27290         (index_AVX_Fast_Unaligned_Load): Likewise.
27291         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
27292         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
27293         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
27294         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
27295         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
27296         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
27297         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
27298         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
27299         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
27300
27301 2015-01-29  Andreas Schwab  <schwab@suse.de>
27302
27303         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
27304
27305 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
27306
27307         [BZ #17892]
27308         * nscd/nscd_stat.c (send_stats): Initialize DATA.
27309
27310 2015-01-28  Martin Sebor  <msebor@redhat.com>
27311
27312         * math/README.libm-test: Clarify. Add "How to read the test output."
27313
27314 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
27315
27316         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
27317         Define to 0.
27318
27319 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
27320
27321         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
27322         (__HAVE_64B_ATOMICS): Define to 0.
27323
27324 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27325
27326         [BZ #17885]
27327         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
27328         value to set as new flag.
27329
27330         [BZ #16576]
27331         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
27332         and use _ARCH_PPCSQ instead.
27333         (__ieee754_sqrt): Likewise.
27334         (__ieee754_sqrtf): Likewise.
27335         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
27336         _ARCH_PPCSQ is defined.
27337         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
27338         fsqrt instruction.
27339         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
27340         _ARCH_PPCSQ is defined.
27341         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
27342         fsqrts instruction.
27343         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
27344
27345 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27346
27347         * iconv/loop.c: Suppress array out of bound warning caused by GCC
27348         bug (GCC BZ #64739).
27349
27350 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
27351
27352         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
27353         Mark _retval as used.
27354         (lll_futex_wake_unlock): Likewise.
27355         (lll_futex_timed_wait_requeue_pi): Likewise.
27356
27357         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27358         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
27359         register variables.
27360
27361         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
27362         libm_hidden_def.
27363
27364         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
27365         (__bswap_64): Mark as __always_inline.
27366
27367 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
27368
27369         [BZ #15378]
27370         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
27371         when none of the search directories exist.
27372
27373 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27374
27375         [BZ #17869]
27376         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
27377         power8 in .machine directive.
27378
27379         [BZ #17868]
27380         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
27381         set dependency from opd value.
27382
27383 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27384
27385         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27386         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
27387         architecture.
27388
27389 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27390
27391         [BZ #17870]
27392         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
27393         with uint64_t.
27394         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
27395         (uint64_t) 1.
27396         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
27397         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
27398         Replace 1UL with (uint64_t) 1.
27399         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
27400         int with uint64_t.
27401
27402 2015-01-23  Roland McGrath  <roland@hack.frob.com>
27403
27404         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
27405         (if_freenameindex): Likewise.
27406
27407         * resource/getrlimit64.c: Add missing libc_hidden_def.
27408
27409 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
27410
27411         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
27412         __label__.
27413         (_FP_FMA): Likewise.
27414         (_FP_TO_INT_ROUND): Likewise.
27415         (_FP_FROM_INT): Likewise.
27416
27417 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27418
27419         [BZ #16418]
27420         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27421         Make code racy and cancel safe.
27422
27423 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
27424
27425         * sysdeps/arm/unwind-resume.h: Fix copyright year.
27426         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
27427         attribution.
27428
27429         * pwd/tst-getpw.c: Rewrite.
27430
27431         [BZ #17702]
27432         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
27433         (modules-names): Add moddummy1 and moddummy2.
27434         ($(objpfx)tst-rec-dlopen): Define.
27435         * dlfcn/moddummy1.c: New file.
27436         * dlfcn/moddummy2.c: New file.
27437         * dlfcn/tst-rec-dlopen.c: New file.
27438         * elf/dl-cache.c (_dl_load_cache_lookup):
27439         Return char*. Copy result with alloca/strcpy/strdup.
27440         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
27441         returns char*. Free cached. If not saving realname
27442         free cached.
27443         * elf/dl-open.c (dl_open_worker): Do not assert that
27444         _r_debug->r_state is RT_CONSISTENT.
27445         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
27446         returns char*.
27447
27448 2015-01-21  Torvald Riegel  <triegel@redhat.com>
27449             Carlos O'Donell  <carlos@redhat.com>
27450
27451         [BZ #12674]
27452         * nptl/sem_waitcommon.c: New file.
27453         * nptl/sem_wait.c: Include sem_waitcommon.c.
27454         (__sem_wait_cleanup, do_futex_wait): Remove.
27455         (__new_sem_wait): Adapt.
27456         (__new_sem_trywait): New function.
27457         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
27458         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
27459         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
27460         (sem_timedwait): Adapt.
27461         * nptl/sem_post.c (__new_sem_post): Adapt.
27462         (futex_wake): New function.
27463         (__old_sem_post): Add release MO fence.
27464         * nptl/sem_open.c (sem_open): Adapt.
27465         * nptl/sem_init.c (__new_sem_init): Adapt.
27466         (futex_private_if_supported): New function.
27467         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
27468         (__old_sem_getvalue): Add using previous code.
27469         * sysdeps/nptl/internaltypes.h: Adapt.
27470         * nptl/tst-sem13.c (do_test): Adapt.
27471         * nptl/tst-sem11.c (main): Adapt.
27472         * nptl/sem_trywait.c: Remove.
27473         * nptl/DESIGN-sem.txt: Remove.
27474         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
27475         (gen-as-const-headers): Remove structsem.sym.
27476         * nptl/structsem.sym: Remove.
27477         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
27478         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
27479         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
27480         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
27481         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
27482         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
27483         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
27484         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
27485         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
27486         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
27487         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
27488         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
27489         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
27490         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
27491         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
27492         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
27493         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
27494         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
27495         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
27496         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
27497         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
27498         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
27499
27500 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
27501
27502         * INSTALL: Regenerated.
27503
27504         * po/libc.pot: Regenerated.
27505
27506 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
27507             Sandra Loosemore  <sandra@codesourcery.com>
27508             Andrew Jenner  <andrew@codesourcery.com>
27509             Joseph Myers  <joseph@codesourcery.com>
27510             Nathan Sidwell  <nathan@codesourcery.com>
27511
27512         * NEWS: Mention new Nios II port.
27513         * sysdeps/nios2/Implies: New file.
27514         * sysdeps/nios2/Makefile: New file.
27515         * sysdeps/nios2/Subdirs: New file.
27516         * sysdeps/nios2/Versions: New file.
27517         * sysdeps/nios2/__longjmp.S: New file.
27518         * sysdeps/nios2/abort-instr.h: New file.
27519         * sysdeps/nios2/backtrace.c: New file.
27520         * sysdeps/nios2/bits/endian.h: New file.
27521         * sysdeps/nios2/bits/fenv.h: New file.
27522         * sysdeps/nios2/bits/link.h: New file.
27523         * sysdeps/nios2/bits/setjmp.h: New file.
27524         * sysdeps/nios2/bsd-_setjmp.S: New file.
27525         * sysdeps/nios2/bsd-setjmp.S: New file.
27526         * sysdeps/nios2/configure: New generated file.
27527         * sysdeps/nios2/configure.ac: New file.
27528         * sysdeps/nios2/crti.S: New file.
27529         * sysdeps/nios2/crtn.S: New file.
27530         * sysdeps/nios2/dl-init.c: New file.
27531         * sysdeps/nios2/dl-machine.h: New file.
27532         * sysdeps/nios2/dl-sysdep.h: New file.
27533         * sysdeps/nios2/dl-tls.h: New file.
27534         * sysdeps/nios2/dl-trampoline.S: New file.
27535         * sysdeps/nios2/gccframe.h: New file.
27536         * sysdeps/nios2/gmp-mparam.h: New file.
27537         * sysdeps/nios2/jmpbuf-offsets.h: New file.
27538         * sysdeps/nios2/jmpbuf-unwind.h: New file.
27539         * sysdeps/nios2/ldsodefs.h: New file.
27540         * sysdeps/nios2/libc-tls.c: New file.
27541         * sysdeps/nios2/libm-test-ulps: New file.
27542         * sysdeps/nios2/machine-gmon.h: New file.
27543         * sysdeps/nios2/math-tests.h: New file.
27544         * sysdeps/nios2/math_private.h: New file.
27545         * sysdeps/nios2/memusage.h: New file.
27546         * sysdeps/nios2/nptl/Makefile: New file.
27547         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
27548         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
27549         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
27550         * sysdeps/nios2/nptl/pthreaddef.h: New file.
27551         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
27552         * sysdeps/nios2/nptl/tls.h: New file.
27553         * sysdeps/nios2/preconfigure: New file.
27554         * sysdeps/nios2/s_fma.c: New file.
27555         * sysdeps/nios2/s_fmaf.c: New file.
27556         * sysdeps/nios2/setjmp.S: New file.
27557         * sysdeps/nios2/sfp-machine.h: New file.
27558         * sysdeps/nios2/sotruss-lib.c: New file.
27559         * sysdeps/nios2/stackguard-macros.h: New file.
27560         * sysdeps/nios2/stackinfo.h: New file.
27561         * sysdeps/nios2/start.S: New file.
27562         * sysdeps/nios2/sysdep.h: New file.
27563         * sysdeps/nios2/tls-macros.h: New file.
27564         * sysdeps/nios2/tst-audit.h: New file.
27565         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
27566         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
27567         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
27568         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
27569         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
27570         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
27571         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
27572         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
27573         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
27574         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
27575         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
27576         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
27577         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
27578         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
27579         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
27580         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
27581         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
27582         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
27583         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
27584         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
27585         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
27586         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
27587         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
27588         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
27589         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
27590         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
27591         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
27592         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
27593         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
27594         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
27595         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
27596         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
27597         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
27598         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
27599         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
27600         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
27601         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
27602         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
27603         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
27604         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
27605         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
27606         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
27607         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
27608         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
27609
27610 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27611
27612         [BZ #17844]
27613         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
27614         (getutent): Use weak_alias in non SHARED case
27615         and default_symbol_version in SHARED case.
27616         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
27617         (getutent_r, pututline): Likewise.
27618         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
27619         (getutid): Likewise.
27620         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
27621         (getutid_r): Likewise.
27622         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
27623         (getutline): Likewise.
27624         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
27625         (getutline_r): Likewise.
27626         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
27627         (updwtmp): Likewise.
27628
27629 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27630
27631         [BZ #17848]
27632         * sysdeps/s390/s390-32/memcmp.S
27633         (memcmp_g5): Rename to __memcmp_g5.
27634         * sysdeps/s390/s390-32/memcpy.S
27635         (memcpy_g5): Rename to __memcpy_g5.
27636         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27637         (memcpy_mvcle) Rename to __memcpy_mvcle.
27638         * sysdeps/s390/s390-32/memset.S
27639         (memset_g5): Rename to __memset_g5.
27640         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27641         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27642         and use prefixed functions.
27643         * sysdeps/s390/s390-32/multiarch/memcmp.S
27644         (memcmp_z196): Rename to __memcmp_z196.
27645         (memcmp_z10): Rename to __memcmp_z10.
27646         (memcmp): Set alias to __memcmp_g5.
27647         (bcmp): Set alias to __memcmp_g5.
27648         * sysdeps/s390/s390-32/multiarch/memcpy.S
27649         (memcpy_z196): Rename to __memcpy_z196.
27650         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27651         (memcpy_z10): Rename to __memcpy_z10.
27652         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27653         (memcpy): Set alias to __memcpy_g5.
27654         * sysdeps/s390/s390-32/multiarch/memset.S
27655         (memset_z196): Rename to __memset_z196.
27656         Jump to __memset_mvcle instead of memset_mvcle.
27657         (memset_z10): Rename to __memset_z10.
27658         Jump to __memset_mvcle instead of memset_mvcle.
27659         (memset_mvcle) Rename to __memset_mvcle.
27660         (memset): Set alias to __memset_g5.
27661         * sysdeps/s390/s390-64/memcmp.S
27662         (memcmp_z900): Rename to __memcmp_z900.
27663         * sysdeps/s390/s390-64/memcpy.S
27664         (memcpy_z900): Rename to __memcpy_z900.
27665         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27666         (memcpy_mvcle) Rename to __memcpy_mvcle.
27667         * sysdeps/s390/s390-64/memset.S
27668         (memset_z900): Rename to __memset_z900.
27669         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
27670         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27671         and use prefixed functions.
27672         * sysdeps/s390/s390-64/multiarch/memcmp.S
27673         (memcmp_z196): Rename to __memcmp_z196.
27674         (memcmp_z10): Rename to __memcmp_z10.
27675         (memcmp): Set alias to __memcmp_z900.
27676         (bcmp): Set alias to __memcmp_z900.
27677         * sysdeps/s390/s390-64/multiarch/memcpy.S
27678         (memcpy_z196): Rename to __memcpy_z196.
27679         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27680         (memcpy_z10): Rename to __memcpy_z10.
27681         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27682         (memcpy): Set alias to __memcpy_z900.
27683         * sysdeps/s390/s390-64/multiarch/memset.S
27684         (memset_z196): Rename to __memset_z196.
27685         Jump to __memset_mvcle instead of memset_mvcle.
27686         (memset_z10): Rename to __memset_z10.
27687         Jump to __memset_mvcle instead of memset_mvcle.
27688         (memset_mvcle) Rename to __memset_mvcle.
27689         (memset): Set alias to __memset_z900.
27690
27691 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
27692
27693         [BZ #17748]
27694         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
27695         __fesetenv instead of fesetenv.
27696
27697 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27698
27699         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
27700         macro.
27701
27702 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27703
27704         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
27705         regression on LE.
27706
27707         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
27708         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
27709         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27710         strncmp-power8 object.
27711         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27712         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
27713         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
27714         * NEWS: Update.
27715
27716 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27717             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27718
27719         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
27720         trailing byte check.
27721
27722 2015-01-13  David S. Miller  <davem@davemloft.net>
27723
27724         * include/signal.h (__sigreturn): Guard with __USE_MISC.
27725
27726 2015-01-13  Roland McGrath  <roland@hack.frob.com>
27727
27728         * login/logout.c (logout): Use memset rather than bzero.
27729         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
27730         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
27731         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
27732         (_gethtbyaddr): Likewise.
27733         * locale/programs/simple-hash.c (bcopy): Macro removed.
27734
27735 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27736
27737         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27738         Add strcmp-power8 object.
27739         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27740         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
27741         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
27742         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
27743         __strcmp_power8 implementation.
27744         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
27745         * NEWS: Update.
27746
27747         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27748         Add strncpy-power8 and stpncpy-power8 objects.
27749         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27750         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
27751         implementations.
27752         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
27753         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
27754         __stpncpy_power8 implementation.
27755         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
27756         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
27757         __strncpy_power8 implementation.
27758         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
27759         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
27760         * NEWS: Update.
27761
27762         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
27763         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
27764         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
27765
27766         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27767         strncat-power8 object.
27768         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
27769         __strcat_power8 implementation.
27770         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27771         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
27772         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
27773         optimized strcat for power8.
27774
27775         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27776         strcpy-power8 and stpcpy-power8 objects.
27777         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27778         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
27779         implementations.
27780         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
27781         multiarch stpcpy implementation for POWER8.
27782         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
27783         multiarch strcpy implementation for POWER8.
27784         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
27785         __strcpy_power8 function.
27786         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
27787         stpcpy for POWER8.
27788         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
27789         strcpy for POWER8.
27790         * NEWS: Update.
27791
27792 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
27793
27794         [BZ #16009]
27795         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
27796         weights and rules. Use do_xfrm_cached if data fits in cache,
27797         do_xfrm otherwise.  Moved former main loop to...
27798         * (do_xfrm_cached): New function.
27799         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
27800         find_idx, find_position and stack_push.
27801         * (find_idx): New function.
27802         * (find_position): Likewise.
27803         * localedata/sort-test.sh: Added test run for do_xfrm.
27804         * localedata/xfrm-test.c (main): Added command line option
27805         -nocache to run the test with strings that are too large for
27806         the STRXFRM cache.
27807
27808 2015-01-13  Torvald Riegel  <triegel@redhat.com>
27809
27810         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
27811         variable to lll_futex_wake call, not the value itself.
27812
27813 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
27814
27815         [BZ #17803]
27816         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
27817         twom64.  Adjust value to 0x1p-64L.
27818         (__scalblnl): Only return standard underflowing result for K <=
27819         -64 not K <= -63; adjust exponent for underflowing result by 64
27820         not 63.
27821         * math/libm-test.inc (scalbn_test_data): Add more tests.
27822         (scalbln_test_data): Likewise.
27823
27824         [BZ #17834]
27825         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
27826         0x1p63L.
27827         (__scalblnl): Get new exponent of adjusted subnormal value from ES
27828         not HX.
27829         * math/libm-test.inc (scalbn_test_data): Add more tests.
27830         (scalbln_test_data): Likewise.
27831
27832 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27833             Stefani Seibold  <stefani@seibold.net>
27834
27835         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
27836         (sysdep_routines): Add dl-vdso here, ...
27837         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
27838         (sysdep_routines): ... not here.
27839         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
27840         fallback when vDSO is not presented.
27841         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
27842         Define with libc_hidden_proto/libc_hidden_data_def definitions.
27843         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
27844         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
27845         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
27846         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
27847         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
27848         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
27849         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
27850         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
27851         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
27852         fallback configurable symbol when vDSO is not available.
27853         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
27854         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
27855         be able to redefine fallback symbol when vDSO is not available.
27856         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
27857         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
27858
27859 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27860
27861         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
27862         (TLS_INIT_TP): Add tm_capable initialization.
27863         (TLS_DEFINE_INIT_TP): Likewise.
27864         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
27865         TCB.
27866         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
27867         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
27868         calculation.
27869         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
27870         transactoion is lock elision is built and TCB tm_capable is set.
27871         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
27872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
27873         (INTERNAL_SYSCALL_NCS): Likewise.
27874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
27875         (INTERNAL_SYSCALL_NCS): Likewise.
27876         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
27877
27878         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
27879         for powerpc.
27880         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27881         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
27882         and remove it for 32 bits case.
27883         [pthread_rwlock_t] (__rwelision): New field for lock elision.
27884         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
27885         initialization.
27886         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
27887         Disable lock elision with rdlocks if elision is not available.
27888
27889         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
27890         (sysdep_routines): Add lock elision objects.
27891         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27892         [pthread_mutex_t] (__spins): Rework to add lock elision field.
27893         [pthread_mutex_t] (__elision): Add field.
27894         [__PTHREAD_SPINS]: Adjust to init lock elision field.
27895         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
27896         elision definitions for powerpc.
27897         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
27898         implementation of lock elision for powerpc.
27899         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
27900         implementation of timed lock elision for powerpc.
27901         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
27902         implementation of trylock with lock elision for powerpc.
27903         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
27904         implementaion of unlock for lock elision for powerpc.
27905         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
27906         automatic enable lock elision for mutexes.
27907         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
27908         transaction execution definitions for powerpc.
27909         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
27910         definitions.
27911         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
27912         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
27913         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
27914         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
27915         * NEWS: Update.
27916
27917 2015-01-09  Roland McGrath  <roland@hack.frob.com>
27918
27919         * sysdeps/posix/shm-directory.c: Use <> rather than ""
27920         for #include of <shm-directory.h>.
27921
27922 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
27923
27924         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
27925         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
27926
27927 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
27928
27929         [BZ #17791]
27930         * NEWS: Mention bug fix.
27931         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
27932         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
27933         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
27934
27935 2015-01-09  Torvald Riegel <triegel@redhat.com>
27936
27937         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
27938
27939 2015-01-09  Torvald Riegel <triegel@redhat.com>
27940
27941         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
27942
27943 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27944
27945         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
27946         pointer and cast to uintptr_t.
27947
27948 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27949
27950         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
27951         removed.
27952         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
27953
27954 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27955
27956         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
27957         of 0.
27958
27959 2015-01-08  Roland McGrath  <roland@hack.frob.com>
27960
27961         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
27962         <nptl/pthreadP.h> instead.
27963         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
27964
27965         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
27966         already defined.
27967         [__SIGRTMIN] (init): Function removed.
27968         [__SIGRTMIN] (initialized): Variable removed.
27969         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
27970         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
27971         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
27972         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
27973         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
27974         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
27975         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
27976         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
27977         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
27978         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
27979         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
27980         * sysdeps/nptl/allocrtsig.c: New file.
27981         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
27982         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
27983         * sysdeps/generic/testrtsig.h: File removed.
27984
27985         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
27986         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
27987
27988         * nptl/nptl-init.c (pthread_functions): Conditionalize
27989         .ptr__nptl_setxid initialization on [SIGSETXID].
27990
27991         * sysdeps/nptl/sys/procfs.h: New file.
27992         * nptl_db/Makefile (headers): Add it.
27993         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
27994
27995         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
27996         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
27997         * nptl/pthread_attr_setaffinity.c: Include it.
27998         * nptl/pthread_setattr_default_np.c: Likewise.
27999         * nptl/check-cpuset.h: New file.
28000
28001 2015-01-08  Richard Henderson  <rth@redhat.com>
28002
28003         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
28004         (CFLAGS-tst-execstack-prog.c): Likewise.
28005         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
28006
28007 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
28008             Sandra Loosemore  <sandra@codesourcery.com>
28009             Andrew Jenner  <andrew@codesourcery.com>
28010             Joseph Myers  <joseph@codesourcery.com>
28011             Nathan Sidwell  <nathan@codesourcery.com>
28012
28013         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
28014         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
28015         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
28016         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
28017         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
28018         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
28019         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
28020         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
28021         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
28022         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
28023         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
28024         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
28025         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
28026         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
28027         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
28028         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
28029         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
28030
28031 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28032
28033         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
28034         timespec struct member in syscall macro.
28035         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
28036         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
28037         first timeval struct member in syscall macro.
28038         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
28039
28040 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
28041
28042         [BZ #17748]
28043         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
28044         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
28045         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
28046         __feupdateenv and define as weak alias of __feupdateenv.  Use
28047         libm_hidden_weak.
28048         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
28049         libm_hidden_def.
28050         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
28051         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
28052         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28053         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
28054         libm_hidden_def.
28055         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
28056         __feupdateenv and define as weak alias of __feupdateenv.  Use
28057         libm_hidden_weak.
28058         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
28059         libm_hidden_def.
28060         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
28061         __feupdateenv and define as weak alias of __feupdateenv.  Use
28062         libm_hidden_weak.
28063         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
28064         libm_hidden_def.
28065         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28066         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28067         (__feupdateenv): Likewise.
28068         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
28069         __feupdateenv and define as weak alias of __feupdateenv.  Use
28070         libm_hidden_weak.
28071         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28072         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
28073         libm_hidden_def.
28074         * sysdeps/tile/math_private.h (__feupdateenv): New inline
28075         function.
28076         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
28077         libm_hidden_def.
28078         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
28079         __feupdateenv instead of feupdateenv.
28080         (default_libc_feupdateenv_test): Likewise.
28081         (libc_feresetround_ctx): Likewise.
28082
28083 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28084
28085         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
28086         prototype.
28087
28088 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28089
28090         * posix/regcomp.c (parse_bracket_exp): Initialize type to
28091         COLL_SYM in a couple of places to avoid uninitialized variable
28092         wanings on tilegx gcc 4.8.2.
28093
28094 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28095
28096         * sysdeps/aarch64/strcpy.S: New file.
28097         * sysdeps/aarch64/stpcpy.S: New file.
28098         * NEWS: Updated.
28099
28100 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28101
28102         * sysdeps/aarch64/strrchr.S: New file.
28103         * NEWS: Updated.
28104
28105 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
28106
28107         [BZ #17658]
28108         * stdlib/setenv.c: Fix memory leak when setting large,
28109         duplicate string.
28110
28111 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
28112
28113         [BZ #17273]
28114         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
28115         and tabs from buffer before parsing fstab entry.
28116         * misc/tst-mntent.c (main): Add test for mount entry with
28117         trailing spaces and tabs.
28118
28119 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
28120
28121         [BZ #17748]
28122         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
28123         * math/fesetround.c (fesetround): Rename to __fesetround and
28124         define as weak alias of __fesetround.  Use libm_hidden_weak.
28125         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
28126         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
28127         * sysdeps/arm/fesetround.c (fesetround): Likewise.
28128         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
28129         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
28130         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
28131         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
28132         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
28133         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
28134         __fesetround_inline.
28135         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
28136         __fesetround_inline instead of __fesetround.
28137         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
28138         __fesetround and define as weak alias of __fesetround.  Use
28139         libm_hidden_weak.  Call __fesetround_inline instead of
28140         __fesetround.
28141         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
28142         __fesetround and define as weak alias of __fesetround.  Use
28143         libm_hidden_weak.
28144         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
28145         Likewise.
28146         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
28147         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28148         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
28149         * sysdeps/tile/math_private.h (__fesetround): New inline function.
28150         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
28151         __fesetround and define as weak alias of __fesetround.  Use
28152         libm_hidden_weak.
28153         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
28154         __fesetround instead of fesetround.
28155         (default_libc_feholdexcept_setround): Likewise.
28156         (libc_feholdsetround_ctx): Likewise.
28157         (libc_feholdsetround_noex_ctx): Likewise.
28158
28159         [BZ #17748]
28160         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
28161         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
28162         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28163         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28164         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28165         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
28166         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28167         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
28168         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28169         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28170         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28171         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28172         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28173         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28174         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
28175         libm_hidden_def.
28176         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
28177         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
28178         Likewise.
28179         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28180         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28181         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
28182         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28183         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
28184         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28185         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28186         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
28187         __fesetenv instead of fesetenv.
28188         (libc_feresetround_noex_ctx): Likewise.
28189         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28190         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28191         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
28192         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28193         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28194         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28195         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28196         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28197         (__feupdateenv): Likewise.
28198         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28199         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28200         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28201         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
28202
28203 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28204
28205         [BZ #17806]
28206         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
28207         addresses have been freed.
28208
28209 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28210
28211         * resolv/res_init.c (__res_vinit): Improve comments about nserv
28212         and nservall.
28213
28214 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
28215
28216         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
28217         Clean up check_pf allocation pattern. addresses
28218
28219 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28220
28221         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
28222         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
28223         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
28224         * nptl/pthread_exit.c (__pthread_exit): Likewise.
28225         * nptl/pthread_join.c (pthread_join): Likewise.
28226         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
28227         * sysdeps/posix/waitid.c (__waitid): Likewise.
28228         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
28229         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
28230         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
28231         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
28232         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
28233         Likewise.
28234         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
28235         (__libc_pread64): Likewise.
28236         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
28237         (__libc_pwrite): Likewise.
28238         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
28239         (__libc_pwrite64): Likewsie.
28240         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
28241         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
28242         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
28243         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
28244         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
28245         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
28246         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
28247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
28248         Likewise.
28249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
28250         (__libc_pread64): Likewise.
28251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
28252         Likewise.
28253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
28254         (__libc_pwrite64): Likewise.
28255         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
28256         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
28257         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
28258         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
28259         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
28260         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
28261         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
28262         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
28263         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
28264         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
28265         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
28266         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
28267         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
28268         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
28269         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28270         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
28271         Likewise.
28272
28273 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28274
28275         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
28276         (CFLAGS-test-double.c): Likewise.
28277         (CFLAGS-test-ldouble.c): Likewise.
28278         (CPPFLAGS-test-ifloat.c): Likewise.
28279         (CPPFLAGS-test-idouble.c): Likewise.
28280         (CPPFLAGS-test-ildoubl.c): Likewise.
28281         (CFLAGS-test-test-fenv.c): Remove variable.
28282         (CFLAGS-test-misc.c): Likewise.
28283
28284 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28285
28286         [BZ #17797]
28287         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
28288         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
28289         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
28290         CLOCKS_PER_SEC == 1000000.
28291         * time/clocktest.c (main): Replace %ld with %jd and cast to
28292         intmax_t.
28293
28294 2015-01-05  Roland McGrath  <roland@hack.frob.com>
28295
28296         * sysdeps/generic/unwind-resume.h: New file.
28297         * sysdeps/gnu/unwind-resume.c: Include it.
28298         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
28299         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
28300         argument list.
28301         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
28302         global rather than static.
28303         (_Unwind_Resume): Update user.
28304         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
28305         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
28306         rather than static.  Add __attribute__ ((cold)).
28307         (_Unwind_Resume, __gcc_personality_v0): Update callers.
28308         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
28309         * sysdeps/arm/arm-unwind-resume.S: New file.
28310         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
28311         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
28312         * sysdeps/arm/Makefile [$(subdir) = csu]
28313         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
28314         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
28315         Add rt-arm-unwind-resume.
28316         [$(subdir) = nptl]
28317         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28318         Add pt-arm-unwind-resume.
28319         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
28320         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
28321
28322 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28323
28324         [BZ #17748]
28325         * include/fenv.h (__feholdexcept): Declare.  Use
28326         libm_hidden_proto.
28327         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
28328         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
28329         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28330         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
28331         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
28332         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
28333         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
28334         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28335         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
28336         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
28337         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28338         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
28339         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
28340         (feholdexcept): Likewise.
28341         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
28342         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
28343         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28344         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28345         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
28346         __feholdexcept instead of feholdexcept.
28347         (default_libc_feholdexcept_setround): Likewise.
28348
28349 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28350
28351         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
28352         to avoid using stl/str to align destination.
28353
28354 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28355
28356         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
28357
28358 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28359
28360         [BZ #17796]
28361         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
28362         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
28363         Define as weak alias not strong alias.
28364
28365 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28366
28367         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
28368         bltzal with addiupc.
28369         (RTLD_START): Ditto.
28370
28371 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
28372
28373         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
28374         for __vdso_* functions in declarations.
28375         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
28376         definitions.
28377         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
28378         INTERNAL_VSYSCALL): Use struct return types to check for error.
28379
28380         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
28381         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
28382         function with cast from llround().
28383         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
28384         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
28385         Define.
28386
28387 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28388
28389         [BZ #17793]
28390         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
28391         Define as weak alias not strong alias.
28392
28393         [BZ #17635]
28394         * ctype/ctype-c99.c: New file.  isblank implementation moved from
28395         ...
28396         * ctype/ctype-extn.c: ... here.
28397         (__isblank_l): Move to ...
28398         * ctype/ctype-c99_l.c: ... here.  New file.
28399         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
28400         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
28401         Remove variable.
28402         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28403         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28404         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28405         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28406         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28407
28408         [BZ #17777]
28409         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
28410         (posix_fadvise64): Define as weak alias not strong alias.
28411         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
28412         (posix_fallocate64): Likewise.
28413         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
28414         Remove variable.
28415         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28416         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28417         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28418         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28419         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28420
28421 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
28422
28423         [BZ #16191]
28424         * NEWS: Mention bug fix.
28425         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
28426         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
28427         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
28428         (HOST_STACK_END_ADDR): Likewise.
28429
28430 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28431
28432         [BZ #17748]
28433         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
28434         * math/fegetround.c (fegetround): Rename to __fegetround and
28435         define as weak alias of __fegetround.  Use libm_hidden_weak.
28436         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
28437         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
28438         * sysdeps/arm/fegetround.c (fegetround): Likewise.
28439         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
28440         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
28441         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
28442         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
28443         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
28444         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
28445         Undefine after rather than before function definition; use
28446         parentheses around function name in definition.
28447         (__fegetround): Also undefine macro after function definition.
28448         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
28449         __fegetround and define as weak alias of __fegetround.  Use
28450         libm_hidden_weak.  Do not undefine as macro.
28451         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
28452         Likewise.
28453         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
28454         __fegetround and define as weak alias of __fegetround.  Use
28455         libm_hidden_weak.
28456         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28457         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
28458         * sysdeps/tile/math_private.h (__fegetround): New inline function.
28459         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
28460         __fegetround and define as weak alias of __fegetround.  Use
28461         libm_hidden_weak.
28462         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
28463         __fegetround instead of fegetround.
28464
28465         [BZ #17782]
28466         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
28467         Condition macro definition on [__USE_MISC].
28468
28469         [BZ #17781]
28470         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28471         (struct sigaction): Change type of sa_flags field to int.
28472
28473         [BZ #17780]
28474         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
28475         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
28476         __glibc_reserved0.
28477
28478         * nptl/version.c (banner): Use single year in copyright notice.
28479
28480         * NEWS: Update copyright dates.
28481         * catgets/gencat.c (print_version): Likewise.
28482         * csu/version.c (banner): Likewise.
28483         * debug/catchsegv.sh: Likewise.
28484         * debug/pcprofiledump.c (print_version): Likewise.
28485         * debug/xtrace.sh (do_version): Likewise.
28486         * elf/ldconfig.c (print_version): Likewise.
28487         * elf/ldd.bash.in: Likewise.
28488         * elf/pldd.c (print_version): Likewise.
28489         * elf/sotruss.sh: Likewise.
28490         * elf/sprof.c (print_version): Likewise.
28491         * iconv/iconv_prog.c (print_version): Likewise.
28492         * iconv/iconvconfig.c (print_version): Likewise.
28493         * locale/programs/locale.c (print_version): Likewise.
28494         * locale/programs/localedef.c (print_version): Likewise.
28495         * login/programs/pt_chown.c (print_version): Likewise.
28496         * malloc/memusage.sh (do_version): Likewise.
28497         * malloc/memusagestat.c (print_version): Likewise.
28498         * malloc/mtrace.pl: Likewise.
28499         * manual/libc.texinfo: Likewise.
28500         * nptl/version.c (banner): Likewise.
28501         * nscd/nscd.c (print_version): Likewise.
28502         * nss/getent.c (print_version): Likewise.
28503         * nss/makedb.c (print_version): Likewise.
28504         * posix/getconf.c (main): Likewise.
28505         * scripts/test-installation.pl: Likewise.
28506         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
28507
28508 2015-01-02  Will Newton  <will.newton@linaro.org>
28509
28510         * sysdeps/arm/armv7/configure: Removed.
28511         * sysdeps/arm/armv7/configure.ac: Likewise.
28512
28513 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28514
28515         * All files with FSF copyright notices: Update copyright dates
28516         using scripts/update-copyrights.
28517         * intl/plural.c: Regenerated.
28518         * locale/programs/charmap-kw.h: Likewise.
28519         * locale/programs/locfile-kw.h: Likewise.
28520
28521 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28522
28523         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
28524
28525 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28526
28527         [BZ #17748]
28528         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
28529         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
28530         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28531         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28532         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28533         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
28534         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28535         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
28536         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28537         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28538         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28539         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28540         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28541         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28542         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
28543         libm_hidden_def.
28544         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
28545         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
28546         Likewise.
28547         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28548         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28549         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28550         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28551         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
28552         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28553         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28554         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
28555         __fegetenv instead of fegetenv.
28556         (libc_feholdsetround_noex_ctx): Likewise.
28557
28558 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28559
28560         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
28561         (Elf_MIPS_ABIFlags_v0): New structure.
28562         (EF_MIPS_FP64): Define.
28563         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
28564         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
28565         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
28566         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
28567         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
28568         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
28569         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
28570         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
28571         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
28572         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
28573         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
28574         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
28575         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
28576         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
28577         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
28578         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
28579         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
28580         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
28581         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
28582         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
28583         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
28584         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
28585         field.
28586         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
28587         EF_MIPS_FP64.
28588         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
28589         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
28590         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
28591         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
28592         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
28593         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
28594         * sysdeps/mips/tst-abi-interlink.c: Likewise.
28595         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
28596         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
28597         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
28598         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
28599         record the current FP ABI extension.
28600         (mips-mode-switch): Define to show if kernel headers support mode
28601         switching.
28602         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
28603         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
28604         supported SYSV ABI version to 3.
28605         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
28606         feature.
28607
28608 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28609             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28610
28611         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
28612         path.
28613         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
28614
28615 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28616
28617         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
28618         __fegetround and redefine to call __fegetround.  Remove condition
28619         on [!__NO_MATH_INLINES].
28620         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
28621         function.
28622         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
28623         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
28624         Remove macro.
28625         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
28626         instead of <fenv_libc.h>.
28627         (__llrintl): Call fegetround instead of __fegetround.
28628         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
28629         instead of <fenv_libc.h>.
28630         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28631         (__lrintl): Call fegetround instead of __fegetround.
28632         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
28633         instead of <fenv_libc.h>.
28634         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28635         (__rintl): Call fegetround instead of __fegetround.
28636
28637 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
28638
28639         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
28640         arrays.
28641
28642 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28643
28644         [BZ #17775]
28645         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
28646         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
28647         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
28648
28649 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28650
28651         * sysdeps/i386/tls-macros.h: Include <features.h>.
28652         (TLS_LE): Use non-PIC version for GCC >= 5.0.
28653         (TLS_IE): Likewise.
28654         (TLS_LD): Likewise.
28655         (TLS_GD): Likewise.
28656         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
28657         define for GCC >= 5.0.
28658
28659 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
28660
28661         * math/test-fenv.c (test_single_exception, set_single_exc,
28662         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
28663         feexcp_mask_test, feenable_test, fe_single_test): Add
28664         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
28665         case where they are not used.
28666         * math/libm-test.inc: Likewise.
28667         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
28668         unused in the absence of FP rounding/exception support.
28669         * stdio-common/tst-printf-round.c: Likewise.
28670         * stdlib/tst-strtod-round.c: Likewise.
28671         * stdlib/tst-strtod-underflow.c: Likewise.
28672
28673 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
28674
28675         [BZ #17723]
28676         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
28677         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
28678         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28679         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28680         libm_hidden_weak.
28681         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
28682         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28683         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
28684         libm_hidden_def.
28685         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28686         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28687         libm_hidden_weak.
28688         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
28689         Likewise.
28690         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
28691         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28692         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28693         libm_hidden_weak.
28694         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28695         libm_hidden_def.
28696         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
28697         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
28698         (__feraiseexcept): Likewise.
28699         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28700         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28701         libm_hidden_weak.
28702         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28703         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28704         libm_hidden_def.
28705         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
28706         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
28707         Use libm_hidden_def.
28708         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
28709         libm_hidden_def.
28710         (feraiseexcept): Define as weak not strong alias.  Use
28711         libm_hidden_weak.
28712         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
28713         New inline function.  Factored out of ...
28714         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
28715         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
28716         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
28717         feraiseexcept.
28718         * math/w_acos.c (__acos): Likewise.
28719         * math/w_asin.c (__asin): Likewise.
28720         * math/w_ilogb.c (__ilogb): Likewise.
28721         * math/w_j0.c (y0): Likewise.
28722         * math/w_j1.c (y1): Likewise.
28723         * math/w_jn.c (yn): Likewise.
28724         * math/w_log.c (__log): Likewise.
28725         * math/w_log10.c (__log10): Likewise.
28726         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
28727         * sysdeps/aarch64/fpu/math_private.h
28728         (libc_feupdateenv_test_aarch64): Likewise.
28729         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28730         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
28731         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
28732         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28733         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28734         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28735         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
28736         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28737         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28738         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28739
28740 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28741
28742         [BZ #17732]
28743         * io/test-utime.c (main): Replace %ld with %jd and cast to
28744         intmax_t.
28745         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
28746         * nptl/tst-mutex5.c: Include <stdint.h>.
28747         (do_test): Replace %ld with %jd and cast to intmax_t.
28748         * posix/tst-regex.c (run_test): Likewise.
28749         (run_test_backwards): Likewise.
28750         * rt/tst-clock.c: Include <stdint.h>.
28751         (clock_test): Replace %ld with %jd and cast to intmax_t.
28752         * rt/tst-cpuclock1.c: Include <stdint.h>.
28753         (do_test): Replace %lu with %ju and cast to uintmax_t.
28754         * rt/tst-cpuclock2.c: Include <stdint.h>.
28755         (do_test): Replace %lu with %ju and cast to uintmax_t.
28756         * rt/tst-mqueue1.c: Include <stdint.h>.
28757         (check_attrs): Replace %ld with %jd and cast to intmax_t.
28758         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
28759         intmax_t.
28760         * rt/tst-mqueue4.c (do_test): Likewise.
28761         * rt/tst-timer4.c: Include <stdint.h>.
28762         (check_ts): Replace %ld with %jd and cast to intmax_t.
28763         (do_test): Likewise.
28764         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
28765         and cast to intmax_t.
28766         * sysdeps/pthread/tst-timer.c (main): Likewise.
28767         * time/clocktest.c (main): Likewise.
28768         * time/tst-posixtz.c (do_test): Likewise.
28769         * timezone/tst-timezone.c (main): Likewise.
28770
28771 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28772             H.J. Lu  <hongjiu.lu@intel.com>
28773
28774         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
28775         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28776         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
28777         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
28778         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
28779         version if bit_Fast_Unaligned_Load is set.
28780         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28781         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28782         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28783         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28784         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28785         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28786         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28787         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
28788         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
28789         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
28790         to 4.
28791         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
28792         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
28793         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
28794         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
28795
28796 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
28797
28798         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
28799         instead of #if to avoid a Wundef warning.
28800         * stdlib/tst-limits.c (do_test): Likewise.
28801
28802         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
28803         parallel other exception macros.
28804         (fegetenv): Convert from macro to extern inline so that it applies
28805         retroactively to inline functions already seen by the compiler.
28806         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
28807
28808         * posix/Makefile (before-compile): Use $(objpfx) for
28809         posix-conf-vars-def.h.
28810
28811 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28812
28813         * posix/getconf.c (main): Use size_t for type of I.
28814         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
28815         NSPEC.
28816
28817         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
28818         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
28819         * posix/posix-envs.def: Likewise.
28820         * sysdeps/posix/sysconf.c: Likewise.
28821         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
28822         (specs): Remove array.
28823         * scripts/gen-posix-conf-vars.awk: Support generation of specs
28824         array.
28825
28826         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
28827         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
28828         (__sysconf): Use CONF_IS_* macros.
28829
28830         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
28831         ($(objpfx)posix-conf-vars-def.h): New target.
28832         * posix/posix-conf-vars.list: New file.
28833         * posix/posix-conf-vars.h: New file.
28834         * posix/confstr.c: Include posix-conf-vars.h.
28835         (confstr): Use CONF_IS_* macros.
28836         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
28837         CONF_IS_* macros.
28838         * scripts/gen-posix-conf-vars.awk: New file.
28839
28840 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
28841
28842         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
28843         fegetround): Add no-op macros to avoid linknamespace issues.
28844
28845         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
28846         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
28847
28848         * sysdeps/unix/sysv/linux/tile/sysdep.h
28849         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
28850         assembly-specific section to avoid a redefinition warning.
28851
28852         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
28853         long before casting to pointer to avoid a cast warning.
28854
28855 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
28856
28857         * sysdeps/tile/tilegx/Implies: New file.
28858
28859 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
28860
28861         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
28862
28863 2014-12-23  Florian Weimer  <fweimer@redhat.com>
28864
28865         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
28866
28867 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28868
28869         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
28870         not define.
28871         * sysdeps/unix/sysv/linux/utimes.c: Do not include
28872         <kernel-features.h>.
28873         (__utimes) [__NR_utimes]: Make code unconditional.
28874         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
28875         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
28876         (__ASSUME_UTIMES): Do not undefine.
28877         * sysdeps/unix/sysv/linux/tile/kernel-features.h
28878         (__ASSUME_UTIMES): Likewise.
28879         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28880         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
28881         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
28882         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
28883
28884 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28885
28886         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
28887
28888 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
28889
28890         [BZ #17747]
28891         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
28892         alias to weak alias for j0l, y0l.
28893         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
28894         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
28895
28896         [BZ #17746]
28897         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
28898         conversion.
28899
28900 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28901
28902         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
28903         to zero if not already defined.
28904
28905 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28906
28907         [BZ #17724]
28908         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
28909         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
28910         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
28911         (char *) casts added.
28912         * sysdeps/ieee754/k_standardf.c: New file.
28913         * sysdeps/ieee754/k_standardl.c: Likewise.
28914         * math/Makefile (libm-support): Remove k_standard.
28915         (libm-calls): Add k_standard.
28916
28917 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28918
28919         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28920         Optimize to avoid an unnecessary FPCR read.
28921
28922 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28923
28924         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28925         Optimize to reduce FPCR/FPSR accesses.
28926
28927 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28928
28929         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
28930         Call libc_fetestexcept_aarch64.
28931
28932 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28933
28934         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
28935         Call libc_fesetround_aarch64.
28936
28937 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28938
28939         [BZ #17733]
28940         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
28941         (__bind): Do not define as weak alias.
28942         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
28943         define.
28944         (__getsockname): Do not define as weak alias.
28945
28946 2014-12-22  Will Newton  <will.newton@linaro.org>
28947
28948         * manual/install.texi: Document that we require bison 2.7
28949         or above.
28950         * INSTALL: Regenerate.
28951         * configure.ac: Use AC_CHECK_PROG_VER instead of
28952         AC_PATH_PROG when checking for bison and check for
28953         version 2.7 or above.
28954         * configure: Regenerate.
28955
28956 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
28957
28958         [BZ #17745]
28959         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
28960         * sysdeps/tile/ffsll.c (ffsll): To here.
28961
28962         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
28963
28964 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28965
28966         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
28967         if not defined.
28968         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
28969         definition.
28970         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28971         hidden ___tls_get_addr.
28972         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28973         hidden __tls_get_addr.
28974         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
28975         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
28976         Likewise.
28977
28978 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28979
28980         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
28981         _dl_init call.
28982
28983 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28984
28985         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
28986         from "call _dl_init@PLT".
28987         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
28988
28989 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
28990
28991         * manual/search.texi: (Array Sort Function): Clarify stable sorting
28992         guarantees.
28993
28994 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
28995
28996         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
28997
28998 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28999
29000         [BZ #17744]
29001         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
29002         strnlen.
29003
29004 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
29005
29006         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
29007         of multu on MIPSr6.
29008         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
29009         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
29010         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
29011         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
29012         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
29013
29014 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
29015
29016         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
29017         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
29018         (PTR_SUBU): Use subu for mips32r6/mips64r6.
29019         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
29020         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
29021         mips32r6/mips64r6.
29022         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
29023
29024 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
29025
29026         * string/strncat.c (STRNCAT): Simplify implementation.
29027
29028 2014-12-19  David S. Miller  <davem@davemloft.net>
29029
29030         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
29031         access the quad as both a long double and as a series of 4 words.
29032
29033         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
29034         link_map->l_info array access.
29035
29036 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
29037
29038         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
29039
29040         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
29041         * math/atest-exp2.c (TIMEOUT): Likewise.
29042         * math/atest-sincos.c (TIMEOUT): Likewise.
29043
29044 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29045
29046         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
29047         -Wno-error with -fno-builtin-lround.
29048
29049 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29050
29051         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
29052         Contains futex constants and functions moved over from ...
29053         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
29054         <lowlevellock-futex.h>.
29055         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29056         (lll_timedwait_tid): Add comments and parentheses around macro
29057         arguments.
29058
29059 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29060
29061         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
29062         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
29063         (__lll_private_flag): Remove.
29064         (lll_futex_wait): Likewise.
29065         (lll_futex_timed_wait): Likewise.
29066         (lll_futex_wake): Likewise.
29067         (lll_futex_requeue): Likewise.
29068         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29069         (__lll_timedwait_tid): Spell out argument names.
29070         (lll_timedwait_tid): Add comments and parentheses around macro
29071         arguments.
29072         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
29073         LLL_SHARED and LLL_PRIVATE usable from assembly code.
29074
29075 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29076
29077         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
29078         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
29079         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
29080         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
29081         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
29082         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
29083         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
29084         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
29085         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
29086         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
29087         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
29088         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
29089         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
29090         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
29091         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
29092         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
29093         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
29094         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
29095         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
29096
29097 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29098
29099         * sysdeps/x86_64/x32/Makefile: New file.
29100
29101 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29102
29103         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
29104         1L with (mp_limb_t) 1.
29105
29106 2014-12-17  Roland McGrath  <roland@hack.frob.com>
29107
29108         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
29109         * nptl/libc_pthread_init.c: ... here.
29110         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
29111         * nptl/register-atfork.c: ... here.
29112
29113         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
29114         Use pthread_sigmask rather than INTERNAL_SYSCALL.
29115         Use assert_perror to check its return value.
29116         (__gai_create_helper_thread): Likewise.
29117
29118         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
29119
29120         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
29121
29122 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
29123
29124         [BZ #17725]
29125         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
29126         __profil_counter.
29127         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
29128         Likewise.
29129         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
29130         Likewise.
29131         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
29132         Likewise.
29133         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
29134         (profil_counter): Likewise.
29135         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
29136         (profil_counter): Likewise.
29137         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
29138         Likewise.
29139         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
29140         Likewise.
29141         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
29142         (profil_counter): Likewise.
29143         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
29144         Likewise.
29145         [!__profil_counter] (profil_counter): Define as weak alias of
29146         __profil_counter.
29147         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
29148         (profil_counter): Rename to __profil_counter.
29149         [!__profil_counter] (profil_counter): Define as weak alias of
29150         __profil_counter.
29151         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
29152         (profil_counter): Rename to __profil_counter.
29153         [!__profil_counter] (profil_counter): Define as weak alias of
29154         __profil_counter.
29155         * sysdeps/posix/profil.c: Update comment referring to
29156         profil_counter.
29157         (__profil): Use __profil_counter instead of profil_counter.
29158         * sysdeps/posix/sprofil.c (profil_counter): Rename to
29159         __profil_counter.  Use __profil_counter_ushort and
29160         __profil_counter_uint in definitions.
29161         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
29162         instead of profil_counter_uint and profil_counter_ushort.
29163
29164         [BZ #17722]
29165         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
29166         define as weak alias of __inet_makeaddr.
29167         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
29168         as weak alias of __inet_addr.
29169         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
29170         as weak alias of __inet_pton.  Use libc_hidden_weak.
29171         * include/arpa/inet.h (__inet_pton): Declare.  Use
29172         libc_hidden_proto.
29173         (inet_makeaddr): Don't use libc_hidden_proto.
29174         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
29175         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
29176         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
29177         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
29178         Remove variable.
29179         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
29180         (test-xfail-POSIX/time.h/linknamespace): Likewise.
29181
29182 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
29183
29184         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
29185
29186 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29187
29188         * stdio-common/bug-vfprintf-nargs.c (do_test):
29189         Cast value to intptr_t to avoid format warning
29190         for usage with PRIdPTR printing macro.
29191
29192 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29193
29194         * libio/tst-widetext.c (do_test):
29195         Use format type %td instead of %Zd for ptrdiff_t
29196         in order to avoid format warning.
29197
29198 2014-12-17  Andreas Schwab  <schwab@suse.de>
29199
29200         * nscd/mem.c (gc): Add size_t cast to match printf format.
29201
29202 2014-12-16  Roland McGrath  <roland@hack.frob.com>
29203
29204         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
29205         (init): Apply PTR_MANGLE to pointers before storing them.
29206         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
29207         before using them.
29208
29209 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
29210
29211         [BZ #17719]
29212         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
29213         define as weak alias of __memrchr.
29214         (__memrchr): Do not define as strong alias of memrchr.
29215         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
29216         Remove variable.
29217         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
29218         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
29219         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
29220
29221         [BZ #17717]
29222         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
29223         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
29224         (if_indextoname): Rename to __if_indextoname and define as weak
29225         alias of __if_indextoname.  Use libc_hidden_weak.
29226         (if_freenameindex): Rename to __if_freenameindex and define as
29227         weak alias of __if_freenameindex.
29228         (if_nameindex): Rename to __if_nameindex and define as weak alias
29229         of __if_nameindex.
29230         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
29231         __if_nametoindex and define as weak alias of __if_nametoindex.
29232         Use libc_hidden_weak.
29233         (if_freenameindex): Rename to __if_freenameindex and define as
29234         weak alias of __if_freenameindex.
29235         (if_nameindex): Rename to __if_nameindex and define as weak alias
29236         of __if_nameindex.
29237         (if_indextoname): Rename to __if_indextoname and define as weak
29238         alias of __if_indextoname.  Use libc_hidden_weak.
29239         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
29240         __if_nametoindex and define as weak alias of __if_nametoindex.
29241         Use libc_hidden_weak.
29242         (if_freenameindex): Rename to __if_freenameindex and define as
29243         weak alias of __if_freenameindex.  Use libc_hidden_weak.
29244         (if_nameindex_netlink): Use __if_freenameindex instead of
29245         if_freenameindex.
29246         (if_nameindex): Rename to __if_nameindex and define as weak alias
29247         of __if_nameindex.  Use libc_hidden_weak.
29248         (if_indextoname): Rename to __if_indextoname and define as weak
29249         alias of __if_indextoname.  Use libc_hidden_weak.
29250         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
29251         libc_hidden_proto.
29252         [!_ISOMAC] (__if_freenameindex): Likewise.
29253         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
29254         if_nametoindex.
29255         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
29256         variable.
29257         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
29258         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
29259         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
29260         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
29261         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
29262         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
29263         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
29264
29265         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
29266         Remove variable.
29267         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
29268         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
29269
29270 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29271
29272         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
29273         subscript above bounds'
29274
29275         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
29276         bounds.
29277
29278 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
29279
29280         * libio/tst-fopenloc.c: Use test-skeleton.c.
29281
29282         * stdlib/tst-bsearch.c: Use test-skeleton.c.
29283         (entry): Rename to ITEM.
29284         (do_test, comp): Adjust.
29285
29286         * stdio-common/tst-fseek.c: Use test-skeleton.c.
29287
29288 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29289
29290         * string/tester.c: Include <libc-internal.h>.
29291         (test_memset): Ignore -Wmemset-transposed-args.
29292
29293 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29294
29295         * misc/tst-mntent2.c (do_test): Fix warning.
29296
29297 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29298
29299         * elf/tst-unique4lib.cc(a): Mark as used.
29300
29301 2014-12-16  Florian Weimer  <fweimer@redhat.com>
29302
29303         [BZ #17630]
29304         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
29305         names.
29306
29307 2014-12-16  Allan McRae  <allan@archlinux.org>
29308
29309         * stdio-common/Makefile (tests): Re-add bug26.
29310
29311 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
29312
29313         [BZ #17657]
29314         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
29315         static array.
29316
29317 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
29318
29319         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
29320         (__lll_lock_wait): Likewise.
29321         (__lll_timedlock_wait): Likewise.
29322         (__lll_timedwait_tid): Likewise.
29323         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
29324         (__lll_robust_timedlock_wait): Likewise.
29325         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
29326         (lll_cond_trylock): Likewise.
29327         (__lll_lock): Likewise.
29328         (__lll_robust_lock): Likewise.
29329         (__lll_cond_lock): Likewise.
29330         (lll_robust_cond_lock): Likewise.
29331         (__lll_timedlock): Likewise.
29332         (__lll_robust_timedlock): Likewise.
29333         (__lll_unlock): Likewise.
29334         (__lll_robust_unlock): Likewise.
29335         (lll_wait_tid): Likewise.
29336         (lll_timedwait_tid): Likewise.
29337
29338 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29339
29340         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
29341
29342 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29343
29344         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
29345
29346 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29347
29348         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
29349         * stdio-common/tst-sprintf.c: Likewise.
29350
29351 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29352
29353         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
29354
29355 2014-12-15  Jeff Law  <law@redhat.com>
29356
29357         [BZ #16617]
29358         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
29359         on the heap.  (CVE-2012-3406)
29360         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
29361         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
29362         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
29363
29364 2014-12-15  Will Newton  <will.newton@linaro.org>
29365
29366         * manual/install.texi: Bump required version of texinfo
29367         to 4.7 from 4.5.
29368         * INSTALL: Regenerated.
29369         * configure.ac: Check for makeinfo version 4.7 and above.
29370         * configure: Regenerated.
29371
29372 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29373
29374         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
29375         PREFIX, string constant to insert between directory and name.
29376         * sysdeps/posix/shm_open.c: Update caller.
29377         * sysdeps/posix/shm_unlink.c: Likewise.
29378         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
29379         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
29380         (SEM_SHM_PREFIX): New macro.
29381         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
29382         [$(have-thread-library) = no].
29383         * nptl/Makefile (libpthread-routines): Add shm-directory.
29384         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
29385         * sysdeps/nptl/shm-directory.h: New file.
29386         * sysdeps/posix/shm-directory.c
29387         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
29388         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29389         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
29390         INTERNAL_SYSCALL.
29391         (__where_is_shmfs): Function removed.
29392         (mountpoint, defaultmount, defaultdir, __namedsem_once):
29393         Variables removed.
29394         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
29395         Use SHM_GET_NAME.
29396         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
29397
29398         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
29399         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
29400         unconditional for use inside libpthread.
29401         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
29402
29403 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29404
29405         * nptl/pthread_getaffinity.c: New file.
29406         * nptl/pthread_setaffinity.c: New file.
29407         * nptl/pthread_getname.c: New file.
29408         * nptl/pthread_setname.c: New file.
29409
29410         * nptl/pthread_create.c (START_THREAD_DEFN)
29411         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
29412
29413 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29414             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29415
29416         * resolv/res_send.c (send_vc): Disable warning resplen may
29417         be used uninitialized.
29418
29419 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29420
29421         * nptl/tst-mutex6.c
29422         (ATTR_NULL): New define checks ATTR against NULL.
29423         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
29424         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
29425
29426 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
29427
29428         [BZ #17581]
29429         * malloc/hooks.c
29430         (mem2mem_check): Revert my previous change.
29431         (malloc_check_get_size): Revert my previous change.
29432         (mem2chunk_check): Revert my previous change.
29433
29434 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29435
29436         * sysdeps/posix/shm-directory.c: New file.
29437         * sysdeps/posix/shm-directory.h: New file.
29438         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
29439         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
29440         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
29441         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
29442         Transmute EPERM to EACCES.
29443         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
29444         from ...
29445         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
29446         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
29447
29448 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29449
29450         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
29451         pointer and cast to uintptr_t.
29452         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
29453         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
29454         Add cast to avoid warning.
29455         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
29456
29457 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29458
29459         * nptl/semaphore.h: Move to ...
29460         * sysdeps/pthread/semaphore.h: ... here.
29461         * Makefile (installed-headers): Change nptl/semaphore.h to
29462         sysdeps/pthread/semaphore.h.
29463
29464 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29465
29466         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
29467         generated error format strings.
29468
29469         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
29470         -Wformat-extra-args warnings for scanf formats.
29471         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
29472         test of zero-length format (duh).
29473         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
29474         corner-case scanf format test.
29475         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
29476         generated fprintf format string.
29477         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
29478         corner-case sprintf format tests.
29479         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
29480         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
29481         -Wformat-extra-args warnings throughout.
29482         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
29483         (CFLAGS-scanf4.c): Likewise.
29484         (CFLAGS-scanf7.c): Likewise.
29485         (CFLAGS-tst-sprintf.c): Likewise.
29486         (CFLAGS-tst-printf.c): Likewise.
29487         (CFLAGS-tst-printfsz.c): Likewise.
29488
29489 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29490
29491         * include/cpio.h: New file.
29492         * include/fmtmsg.h: Likewise.
29493
29494         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
29495         corresponding format argument to size_t.
29496         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
29497         arguments.
29498         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
29499         corresponding format argument to size_t.
29500         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
29501         arguments.
29502         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
29503         corresponding format argument to size_t.
29504         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
29505         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
29506         (CFLAGS-tst-mbswcs2.c): Likewise.
29507         (CFLAGS-tst-mbswcs3.c): Likewise.
29508         (CFLAGS-tst-mbswcs4.c): Likewise.
29509         (CFLAGS-tst-mbswcs5.c): Likewise.
29510         (CFLAGS-tst-trans.c): Likewise.
29511
29512 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29513
29514         * posix/regexbug1.c (main): Use "%s" format with regerror results,
29515         rather than assuming they won't contain any '%'s.
29516
29517 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
29518
29519         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
29520         inhibit_loop_to_libcall to avoid recursive calls.
29521         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
29522         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
29523
29524 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29525
29526         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
29527         prototype.
29528
29529 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29530
29531         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
29532         integer value instead of boolean.
29533
29534 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29535
29536         * malloc/malloc.c: Fix powerof2 check.
29537
29538 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29539
29540         * locale/programs/locfile.h (maybe_swap_uint32):
29541         Remove inline and add unused attribute.
29542
29543 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29544
29545         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
29546         Truncating assembler expression to a .long expression.
29547
29548 2014-12-11  Andreas Schwab  <schwab@suse.de>
29549
29550         * elf/rtld.c (struct map_args): Constify str member.
29551         (do_preload): Constify fname argument.
29552
29553 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29554
29555         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
29556         constants definition.
29557
29558 2014-12-11  Andreas Schwab  <schwab@suse.de>
29559
29560         [BZ #16657]
29561         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
29562         FORCE_ELISION instead of DO_ELISION.
29563         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
29564         Remove.
29565         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
29566         Likewise.
29567
29568         * iconvdata/gconv-modules: Remove duplicate entry.
29569
29570 2014-12-11  Will Newton  <will.newton@linaro.org>
29571
29572         Merge gettext 0.19.3 into intl/.
29573
29574         This involves a number of cosmetic changes to comments
29575         and ANSI function definitions and prototypes throughout
29576         all the files. The gettext copyright header is used but
29577         with the date ranges taken from the glibc copy.
29578
29579         * NEWS: Add gettext merge to 2.21.
29580         * intl/bindtextdom.c: Switch to gettext copyright.
29581         Use ANSI definitions and prototypes.
29582         Use gl_* locking primitives rather than __libc_* ones.
29583         Use __builtin_expect rather than __glibc_likely/unlikely.
29584         * intl/dcgettext.c: Switch to gettext copyright.
29585         Use ANSI definitions and prototypes.
29586         * intl/dcigettext.c: Switch to gettext copyright.
29587         Use ANSI definitions and prototypes.
29588         (INTDIV0_RAISES_SIGFPE): New define.
29589         Use gl_* locking primitives rather than __libc_* ones.
29590         Include eval-plural.h instead of plural-eval.c.
29591         Use __builtin_expect rather than __glibc_likely/unlikely.
29592         * intl/dcngettext.c: Switch to gettext copyright.
29593         Use ANSI definitions and prototypes.
29594         * intl/dgettext.c: Likewise.
29595         * intl/dngettext.c: Likewise.
29596         * intl/plural-eval.c: Renamed to...
29597         * intl/eval-plural.h: ...this.
29598         * intl/explodename.c: Switch to gettext copyright.
29599         Use ANSI definitions and prototypes.
29600         (_nl_explode_name): Use strchr instead of __rawmemchr.
29601         * intl/finddomain.c: Switch to gettext copyright.
29602         Use ANSI definitions and prototypes.
29603         Use gl_* locking primitives rather than __libc_* ones.
29604         (_nl_find_domain): Use malloc rather than alloca for
29605         allocation of temporary locale name.
29606         * intl/gettext.c: Switch to gettext copyright.
29607         Use ANSI definitions and prototypes.
29608         * intl/gettextP.h: Switch to gettext copyright.
29609         Use ANSI definitions and prototypes.
29610         Use gl_* locking primitives rather than __libc_* ones.
29611         * intl/gmo.h: Switch to gettext copyright.
29612         (struct sysdep_string): Move struct segment_pair outside of
29613         struct definition.
29614         * intl/hash-string.c: Use ANSI definitions and prototypes.
29615         * intl/hash-string.h: Switch to gettext copyright.
29616         Use ANSI definitions and prototypes.
29617         * intl/l10nflist.c: Switch to gettext copyright.
29618         Use ANSI definitions and prototypes.
29619         (_nl_normalize_codeset): Avoid integer overflow.
29620         * intl/loadinfo.h: Switch to gettext copyright.
29621         Use ANSI definitions and prototypes.
29622         (LIBINTL_DLL_EXPORTED): New define.
29623         (PATH_SEPARATOR): New define.
29624         * intl/loadmsgcat.c: Switch to gettext copyright.
29625         * intl/localealias.c: Switch to gettext copyright.
29626         Use ANSI definitions and prototypes.
29627         (_nl_expand_alias): Use PATH_SEPARATOR.
29628         * intl/ngettext.c: Switch to gettext copyright.
29629         Use ANSI definitions and prototypes.
29630         * intl/plural-exp.c: Likewise.
29631         * intl/plural-exp.h: Switch to gettext copyright.
29632         Use ANSI definitions and prototypes.
29633         (struct expression): Move definition of enum operator outside
29634         of struct definition.
29635         * intl/plural.c: Regenerate.
29636         * intl/plural.y: Switch to gettext copyright.
29637         Use ANSI definitions and prototypes.
29638         Port to bison 3.0.
29639         * intl/textdomain.c: Switch to gettext copyright.
29640         Use ANSI definitions and prototypes.
29641         Use gl_* locking primitives rather than __libc_* ones.
29642
29643 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
29644
29645         * debug/warning-nop.c: Add used atrribute.
29646
29647 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29648
29649         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
29650
29651         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
29652         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
29653         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
29654
29655 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29656             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29657
29658         [BZ #17634]
29659         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
29660         Undefine after defining function.  Define as weak alias of
29661         __wcschr.  Use libc_hidden_weak.
29662         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
29663         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
29664         (libc_hidden_def): Also define __GI___wcschr alias.
29665         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
29666         __wcschr and define as weak alias of __wcschr.
29667         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
29668         __wcschr.
29669         [!WCSCHR] (DEFAULT_WCSCHR): Define.
29670         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
29671         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
29672         libc_hidden_weak.  Do not use libc_hidden_def.
29673         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
29674         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
29675         __GI___wcschr alias.
29676         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
29677         [IS_IN (libc)] (wcschr): Define as macro expanding to
29678         __redirect_wcschr.
29679         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
29680         [IS_IN (libc)] (__wcschr_power6): Likewise.
29681         [IS_IN (libc)] (__wcschr_power7): Likewise.
29682         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
29683         instead of wcschr.
29684         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
29685         __libc_wcschr.
29686         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
29687         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
29688         __wcschr and define as weak alias of __wcschr.  Use
29689         libc_hidden_builtin_def.
29690         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
29691         as weak alias of __wcschr.  Use libc_hidden_weak.
29692         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
29693         wcschr.
29694         * time/era.c (_nl_init_era_entries): Likewise.
29695         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
29696         variable.
29697         (test-xfail-XPG3/time.h/linknamespace): Likewise.
29698         (test-xfail-XPG4/time.h/linknamespace): Likewise.
29699
29700 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29701
29702         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
29703         format for long int variable.
29704
29705 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
29706
29707         [BZ #10672]
29708         * manual/search.texi: (Array Sort Function): Remove claim how to make
29709         qsort stable.
29710
29711 2014-12-10  Andreas Schwab  <schwab@suse.de>
29712
29713         [BZ #12847]
29714         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
29715         user-controlled locks.
29716
29717 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
29718
29719         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
29720         register.
29721
29722 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29723
29724         * configure.ac (--disable-werror): New configure option.
29725         (enable_werror): New AC_SUBST.
29726         * configure: Regenerated.
29727         * config.make.in (enable-werror): New variable.
29728         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
29729         -Wno-error=undef.
29730         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
29731         * manual/install.texi (Configuring and compiling): Document
29732         --disable-werror.
29733         * INSTALL: Regenerated.
29734         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
29735         (CFLAGS-tst-chk2.c): Likewise.
29736         (CFLAGS-tst-chk3.c): Likewise.
29737         (CFLAGS-tst-chk4.cc): Likewise.
29738         (CFLAGS-tst-chk5.cc): Likewise.
29739         (CFLAGS-tst-chk6.cc): Likewise.
29740         (CFLAGS-tst-lfschk1.c): Likewise.
29741         (CFLAGS-tst-lfschk2.c): Likewise.
29742         (CFLAGS-tst-lfschk3.c): Likewise.
29743         (CFLAGS-tst-lfschk4.cc): Likewise.
29744         (CFLAGS-tst-lfschk5.cc): Likewise.
29745         (CFLAGS-tst-lfschk6.cc): Likewise.
29746
29747         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
29748         (main): Disable -Wdeprecated-declarations around calls to
29749         register_printf_function.
29750
29751         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
29752         (do_test): Disable -Wdiv-by-zero around some calls to
29753         fwrite_unlocked and fread_unlocked.
29754
29755         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
29756         (DIAG_POP_NEEDS_COMMENT): Likewise.
29757         (_DIAG_STR1): Likewise.
29758         (_DIAG_STR): Likewise.
29759         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
29760         * stdio-common/bug21.c: Include <libc-internal.h>.
29761         (do_test): Disable -Wformat around call to sscanf.
29762         * stdio-common/scanf14.c: Include <libc-internal.h>.
29763         (main): Disable -Wformat around some calls to scanf functions.
29764
29765 2014-12-09  Torvald Riegel  <triegel@redhat.com>
29766
29767         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
29768
29769 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29770
29771         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
29772         stack variable alignment.
29773
29774 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
29775
29776         [BZ #17682]
29777         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
29778         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
29779         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
29780         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
29781         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
29782         __getrlimit instead of getrlimit.
29783         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
29784         __gettimeofday instead of gettimeofday.
29785         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29786         Likewise.
29787         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29788         Likewise.
29789         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29790         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
29791         Remove variable.
29792         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
29793         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
29794
29795 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29796
29797         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
29798         for wide-character tests.
29799
29800 2014-12-04  Roland McGrath  <roland@hack.frob.com>
29801
29802         * io/openat64.c: #include <libc-internal.h>
29803         (__openat64): Prototypify.  Use ignore_value on MODE.
29804         * io/openat.c: Likewise.
29805         * misc/reboot.c: #include <libc-internal.h>
29806         (reboot): Prototypify.  Use ignore_value on HOWTO.
29807         * misc/ptrace.c: #include <libc-internal.h>
29808         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
29809
29810 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
29811
29812         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
29813         XPG4, UNIX98 and XOPEN2K.
29814         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
29815         Remove variable.
29816         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
29817
29818 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29819
29820         * libio/fileops.c: Use ISO C style for function definitions.
29821         * libio/iofopen.c: Likewise.
29822         * libio/wfileops.c: Likewise.
29823
29824         [BZ #17653]
29825         * libio/fileops.c (_IO_new_file_underflow): Unset cached
29826         offset on EOF.
29827         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
29828         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
29829         (fgets_func): Function pointer to fgets and fgetws.
29830         (do_ftell_test): Add test to verify ftell value after read
29831         EOF.
29832         (do_test): Set fgets_func.
29833
29834         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
29835         O_TRUNC flag for w and w+ modes.
29836         (do_rewind_test): Likewise.
29837         (do_ftell_test): Likewise.
29838         (do_write_test): Likewise.
29839
29840         [BZ #17647]
29841         * libio/fileops.c (do_ftell): Seek only when there are
29842         unflushed writes.
29843         * libio/wfileops.c (do_ftell_wide): Likewise.
29844         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
29845         test case.
29846         (do_one_test): Call it.
29847
29848 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
29849
29850         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
29851         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
29852         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
29853         Remove variable.
29854         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
29855         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
29856         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
29857
29858 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29859
29860         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
29861         Remove variable.
29862         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
29863
29864         [BZ #17668]
29865         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
29866         as weak alias of __getifaddrs.  Use libc_hidden_weak.
29867         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29868         __freeifaddrs.  Use libc_hidden_weak.
29869         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
29870         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
29871         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29872         __freeifaddrs.  Use libc_hidden_weak.
29873         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
29874         __getifaddrs and define as weak alias of __getifaddrs.  Use
29875         libc_hidden_weak.
29876         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29877         __freeifaddrs.  Use libc_hidden_weak.
29878         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
29879         Remove variable.
29880         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
29881         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
29882
29883 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29884
29885         [BZ #17601]
29886         * sysdeps/mips/start.S (__start): Use indirect jump to call
29887         __libc_start_main.
29888
29889 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29890
29891         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
29892
29893         * nptl/tst-mutex1.c: Include <stdbool.h>.
29894         [!ATTR] (ATTR_NULL): New macro.
29895         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
29896         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
29897         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
29898
29899         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
29900         to char *.
29901
29902         [BZ #17665]
29903         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
29904         Change conditional to [__USE_MISC].
29905
29906         [BZ #17664]
29907         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
29908         fgets_unlocked.
29909         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
29910         __fgets_unlocked.
29911         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
29912         fgets_unlocked.
29913         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
29914         Remove variable.
29915         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
29916         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
29917         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
29918         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
29919         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
29920         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
29921         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
29922         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
29923         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
29924
29925         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
29926
29927 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29928
29929         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29930         Remove strpbrk objects.
29931         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29932         (__libc_ifunc_impl_list): Remove strpbrk implementation.
29933         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
29934         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
29935         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
29936         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
29937
29938         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29939         Remove strcspn objects.
29940         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29941         (__libc_ifunc_impl_list): Remove strcspn implementation.
29942         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
29943         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
29944         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
29945         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
29946
29947         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29948         Remove strspn objetcs.
29949         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29950         (__libc_ifunc_impl_list): Remove strspn implementation.
29951         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
29952         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
29953         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
29954         * sysdeps/powerpc/powerpc64/strspn.S: New file.
29955
29956 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
29957
29958         [BZ #17581]
29959         * malloc/hooks.c
29960         (mem2mem_check): Add a terminator to the chain of checking blocks.
29961         (malloc_check_get_size): Use it here.
29962         (mem2chunk_check): Ditto.
29963
29964 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29965
29966         * sysdeps/powerpc/powerpc64/strtok.S: New file.
29967         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
29968
29969 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
29970
29971         * bits/ioctl-types.h: Indent preprocessor directives correctly.
29972
29973         * nptl/nptl-init.c: Include libc-internal.h.
29974         (__pthread_initialize_minimal_internal): Use ROUND_UP.
29975
29976         * elf/ldconfig.c (search_dir): Expand comment.
29977
29978 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
29979
29980         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
29981         variable.
29982         (linknamespace-symlist-stdlibs-tests): Likewise.
29983         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
29984         instead of $(objpfx)symlist-stdlibs.
29985         (linknamespace-libs-isoc): New variable.
29986         (linknamespace-libs): Use $(linknamespace-libs-isoc).
29987         (linknamespace-libs-ISO): New variable.
29988         (linknamespace-libs-ISO99): Likewise.
29989         (linknamespace-libs-ISO11): Likewise.
29990         (linknamespace-libs-XPG3): Likewise.
29991         (linknamespace-libs-XPG4): Likewise.
29992         (linknamespace-libs-POSIX): Likewise.
29993         (linknamespace-libs-UNIX98): Likewise.
29994         (linknamespace-libs-XOPEN2K): Likewise.
29995         (linknamespace-libs-POSIX2008): Likewise.
29996         (linknamespace-libs-XOPEN2K8): Likewise.
29997         ($(objpfx)symlist-stdlibs): Replace by
29998         $(linknamespace-symlist-stdlibs-tests).  Use
29999         $(linknamespace-libs-$*) as set of libraries.
30000         ($(linknamespace-header-tests)): Update dependencies.  Use
30001         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
30002         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
30003         * conform/linknamespace.pl: Remove comment about considering
30004         definitions of symbols from irrelevant libraries.
30005
30006 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
30007
30008         [BZ #13862]
30009         * elf/dl-tls.c: Include <atomic.h>.
30010         (oom): Remove #ifdef SHARED/#endif.
30011         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
30012         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
30013         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
30014         big enough.
30015         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
30016         * nptl/Makefile (tests): Add tst-stack4.
30017         (modules-names): Add tst-stack4mod.
30018         ($(objpfx)tst-stack4): New.
30019         (tst-stack4mod.sos): Likewise.
30020         ($(objpfx)tst-stack4.out): Likewise.
30021         ($(tst-stack4mod.sos)): Likewise.
30022         (clean): Likewise.
30023         * nptl/tst-stack4.c: New file.
30024         * nptl/tst-stack4mod.c: Likewise.
30025
30026 2014-11-27  J. Brown  <jb999@gmx.de>
30027
30028         * sysdeps/x86/bits/string.h: Add recent CPUs.
30029
30030 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30031
30032         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
30033         sigblock.
30034
30035         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
30036         feof.
30037
30038         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
30039         variable.
30040
30041 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
30042
30043         * nscd/connections.c: Include libc-internal.h because of macro
30044         usage ignore_value.
30045
30046 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
30047
30048         * string/bits/string3.h (__warn_memset_zero_len): Don't
30049         declare for gcc newer than 5.0.
30050         (memset): Don't test for zero-length __LEN for gcc newer than
30051         5.0.
30052
30053 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30054
30055         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
30056         size_t for %zu format.
30057
30058         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
30059         difference, not %ju.
30060
30061 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30062
30063         * include/libc-internal.h (ignore_value): New macro.
30064         * nscd/connections.c (restart): Wrap calls to setuid and setgid
30065         with ignore_value.
30066
30067         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
30068         definition.
30069
30070         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
30071         pthread_cleanup_push to void *.
30072
30073         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
30074         Undefine.
30075
30076         [BZ #16619]
30077         [BZ #16740]
30078         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
30079         instead of 1L << 52.
30080
30081         * libio/bug-rewind.c (do_test): Check fwscanf return values.
30082         * libio/bug-rewind2.c (do_test): Likewise.
30083
30084         * debug/test-stpcpy_chk-ifunc.c: Remove file.
30085         * debug/test-strcpy_chk-ifunc.c: Likewise.
30086         * wcsmbs/test-wcschr-ifunc.c: Likewise.
30087         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
30088         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
30089         * wcsmbs/test-wcslen-ifunc.c: Likewise.
30090         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
30091         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
30092         * Rules [$(multi-arch) = no] (tests): Do not filter out
30093         $(tests-ifunc).
30094         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
30095         * debug/Makefile (tests-ifunc): Remove variable.
30096         (tests): Do not add $(tests-ifunc).
30097         * wcsmbs/Makefile (tests-ifunc): Remove variable.
30098         (tests): Do not add $(tests-ifunc).
30099         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
30100         [TEST_IFUNC]: Remove conditionals.
30101         * string/test-string.h (TEST_IFUNC): Remove macro.
30102         [TEST_IFUNC]: Remove conditionals.
30103
30104         * string/test-strchr.c [!WIDE] (L): New macro.
30105         [WIDE] (L): Likewise.
30106         (check1): Use CHAR instead of char.  Use L on string and character
30107         constants.
30108
30109 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
30110
30111         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
30112         tests.
30113         * sysdeps/powerpc/bits/atomic.h
30114         (__arch_atomic_exchange_and_add_32_acq): Add definition.
30115         (__arch_atomic_exchange_and_add_32_rel): Likewise.
30116         (atomic_exchange_and_add_acq): Likewise.
30117         (atomic_exchange_and_add_rel): Likewise.
30118         * sysdeps/powerpc/powerpc32/bits/atomic.h
30119         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30120         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30121         * sysdeps/powerpc/powerpc64/bits/atomic.h
30122         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30123         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30124
30125 2014-11-26  Torvald Riegel  <triegel@redhat.com>
30126
30127         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
30128         Change synchronization of __sched_fifo_min_prio and
30129         __sched_fifo_max_prio.
30130         * nptl/pthread_mutexattr_getprioceiling.c
30131         (pthread_mutexattr_getprioceiling): Likewise.
30132         * nptl/pthread_mutexattr_setprioceiling.c
30133         (pthread_mutexattr_setprioceiling): Likewise.
30134         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
30135         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
30136         Likewise.
30137
30138 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30139
30140         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
30141         void.
30142
30143 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30144
30145         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
30146         third argument const.
30147
30148 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30149
30150         fnmatch: work around GCC compiler warning bug with uninit var
30151         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
30152         This works around a bug with x86-64 GCC 4.9.2 and earlier
30153         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
30154         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
30155         used uninitialized in this function [-Wmaybe-uninitialized]".
30156
30157 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30158
30159         * posix/bug-regex31.c (main): Return RES not 0.
30160
30161 2014-11-25  Anton Blanchard <anton@samba.org>
30162
30163         * sysdeps/powerpc/bits/atomic.h
30164         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
30165
30166 2014-11-24  Sterling Augustine  <saugustine@google.com>
30167
30168         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
30169
30170 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
30171
30172         [BZ #17608]
30173         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
30174
30175 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
30176
30177         [BZ #17633]
30178         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
30179         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
30180         variable.
30181         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
30182         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
30183
30184 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30185
30186         * string/strncpy.c (strncpy): Improve performance by using memset.
30187
30188 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30189
30190         * string/strcpy.c (strcpy):
30191         Improve performance by using strlen and memcpy.
30192
30193 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
30194
30195         * string/strcoll_l.c (get_next_seq): __always_inline.
30196         * string/strcoll_l.c (do_compare): __always_inline.
30197
30198 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30199
30200         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
30201         defined.
30202         * include/mqueue.h: Likewise.
30203         * include/stdlib.h: Likewise.
30204
30205         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
30206         (get_null_defines): Adjust.
30207         * sunrpc/Makefile: Adjust comment.
30208         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
30209         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
30210         (CFLAGS-interp.c): Likewise.
30211         (CFLAGS-ldconfig.c): Likewise.
30212         (CPPFLAGS-.os): Likewise.
30213         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30214         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30215         * extra-modules.mk (extra-modules.mk): Likewise.
30216         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
30217         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
30218         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
30219         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
30220         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
30221         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
30222         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
30223         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
30224         * iconvdata/Makefile (CPPFLAGS): Likewise.
30225         (cpp-srcs-left): Add libof for all iconvdata routines.
30226         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
30227         * include/assert.h: Likewise.
30228         * include/ctype.h: Likewise.
30229         * include/errno.h: Likewise.
30230         * include/libc-symbols.h: Likewise.
30231         * include/math.h: Likewise.
30232         * include/netdb.h: Likewise.
30233         * include/resolv.h: Likewise.
30234         * include/stdio.h: Likewise.
30235         * include/stdlib.h: Likewise.
30236         * include/string.h: Likewise.
30237         * include/sys/stat.h: Likewise.
30238         * include/wctype.h: Likewise.
30239         * intl/l10nflist.c: Likewise.
30240         * libidn/idn-stub.c: Likewise.
30241         * libio/libioP.h: Likewise.
30242         * nptl/libc_multiple_threads.c: Likewise.
30243         * nptl/pthreadP.h: Likewise.
30244         * posix/regex_internal.h: Likewise.
30245         * resolv/res_hconf.c: Likewise.
30246         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
30247         * sysdeps/arm/memmove.S: Likewise.
30248         * sysdeps/arm/sysdep.h: Likewise.
30249         * sysdeps/generic/_itoa.h: Likewise.
30250         * sysdeps/generic/symbol-hacks.h: Likewise.
30251         * sysdeps/gnu/errlist.awk: Likewise.
30252         * sysdeps/gnu/errlist.c: Likewise.
30253         * sysdeps/i386/i586/memcpy.S: Likewise.
30254         * sysdeps/i386/i586/memset.S: Likewise.
30255         * sysdeps/i386/i686/memcpy.S: Likewise.
30256         * sysdeps/i386/i686/memmove.S: Likewise.
30257         * sysdeps/i386/i686/mempcpy.S: Likewise.
30258         * sysdeps/i386/i686/memset.S: Likewise.
30259         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30260         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30261         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
30262         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
30263         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30264         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30265         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
30266         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30267         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30268         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30269         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30270         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30271         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30272         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30273         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30274         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30275         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
30276         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
30277         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
30278         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30279         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30280         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30281         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30282         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30283         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30284         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30285         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
30286         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30287         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
30288         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30289         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30290         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30291         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30292         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30293         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30294         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30295         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30296         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30297         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30298         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30299         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30300         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30301         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30302         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30303         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30304         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30305         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
30306         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
30307         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30308         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
30309         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30310         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
30311         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
30312         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30313         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
30314         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
30315         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30316         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
30317         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
30318         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30319         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
30320         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30321         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
30322         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30323         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30324         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
30325         * sysdeps/posix/closedir.c: Likewise.
30326         * sysdeps/posix/opendir.c: Likewise.
30327         * sysdeps/posix/readdir.c: Likewise.
30328         * sysdeps/posix/rewinddir.c: Likewise.
30329         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
30330         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
30331         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
30332         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
30333         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
30334         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
30335         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
30336         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
30337         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
30338         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
30339         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
30340         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
30341         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
30342         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
30343         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
30344         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
30345         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
30346         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
30347         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
30348         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
30349         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
30350         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
30351         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
30352         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
30353         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
30354         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
30355         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
30356         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
30357         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
30358         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
30359         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
30360         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
30361         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
30362         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
30363         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
30364         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
30365         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
30366         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
30367         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
30368         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
30369         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
30370         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
30371         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
30372         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
30373         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
30374         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
30375         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
30376         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
30377         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
30378         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
30379         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
30380         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
30381         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
30382         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
30383         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
30384         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
30385         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
30386         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
30387         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
30388         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
30389         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
30390         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
30391         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
30392         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
30393         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
30394         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
30395         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
30396         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
30397         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
30398         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
30399         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
30400         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
30401         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
30402         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
30403         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
30404         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
30405         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
30406         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
30407         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30408         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
30409         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
30410         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
30411         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
30412         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
30413         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
30414         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
30415         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
30416         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
30417         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
30418         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
30419         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
30420         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
30421         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
30422         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
30423         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30424         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
30425         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
30426         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30427         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
30428         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
30429         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30430         * sysdeps/unix/alpha/sysdep.S: Likewise.
30431         * sysdeps/unix/alpha/sysdep.h: Likewise.
30432         * sysdeps/unix/make-syscalls.sh: Likewise.
30433         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30434         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30435         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30436         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
30437         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30438         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
30439         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
30440         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30441         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30442         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
30443         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30444         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30445         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30446         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30447         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30448         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30449         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30450         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30451         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30452         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30453         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
30454         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30455         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30456         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30457         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30458         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30459         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30462         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
30463         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30464         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30465         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30466         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30467         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
30468         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30469         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30470         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30471         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
30472         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
30473         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30474         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30475         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30476         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
30477         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30478         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30479         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30480         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30481         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30482         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30483         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30484         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30485         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30486         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30487         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
30488         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30489         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30490         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30491         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
30492         * sysdeps/x86_64/memcpy.S: Likewise.
30493         * sysdeps/x86_64/memmove.c: Likewise.
30494         * sysdeps/x86_64/memset.S: Likewise.
30495         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
30496         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30497         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
30498         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
30499         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
30500         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30501         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30502         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30503         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30504         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30505         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30506         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30507         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
30508         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30509         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30510         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
30511         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
30512         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30513         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30514         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30515         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
30516         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30517         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30518         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30519         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30520         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30521         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30522         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
30523         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30524         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30525         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
30526         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30527         * sysdeps/x86_64/strcmp.S: Likewise.
30528
30529         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
30530
30531         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
30532         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
30533         * elf/rtld-Rules: Likewise.
30534         * elf/setup-vdso.h: Likewise.
30535         * include/assert.h: Likewise.
30536         * include/bits/stdlib-float.h: Likewise.
30537         * include/errno.h: Likewise.
30538         * include/sys/stat.h: Likewise.
30539         * include/unistd.h: Likewise.
30540         * sysdeps/aarch64/setjmp.S: Likewise.
30541         * sysdeps/alpha/setjmp.S: Likewise.
30542         * sysdeps/arm/__longjmp.S: Likewise.
30543         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
30544         * sysdeps/arm/setjmp.S: Likewise.
30545         * sysdeps/arm/sysdep.h: Likewise.
30546         * sysdeps/generic/_itoa.h: Likewise.
30547         * sysdeps/generic/dl-sysdep.h: Likewise.
30548         * sysdeps/generic/ldsodefs.h: Likewise.
30549         * sysdeps/i386/dl-tls.h: Likewise.
30550         * sysdeps/i386/setjmp.S: Likewise.
30551         * sysdeps/m68k/setjmp.c: Likewise.
30552         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
30553         * sysdeps/mach/hurd/opendir.c: Likewise.
30554         * sysdeps/posix/getcwd.c: Likewise.
30555         * sysdeps/posix/opendir.c: Likewise.
30556         * sysdeps/posix/profil.c: Likewise.
30557         * sysdeps/powerpc/dl-procinfo.h: Likewise.
30558         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30559         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30560         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
30561         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30562         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
30563         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30564         * sysdeps/s390/dl-tls.h: Likewise.
30565         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30566         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30567         * sysdeps/sh/sh3/setjmp.S: Likewise.
30568         * sysdeps/sh/sh4/setjmp.S: Likewise.
30569         * sysdeps/unix/alpha/sysdep.h: Likewise.
30570         * sysdeps/unix/arm/sysdep.S: Likewise.
30571         * sysdeps/unix/i386/sysdep.S: Likewise.
30572         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30573         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
30574         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30575         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30576         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30577         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30578         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30579         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30580         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30581         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30582         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
30583         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30584         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30587         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30588         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30589         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30590         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30591         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30592         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30593         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30594         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30595         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30596         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30597         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30598         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30599         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30600         * sysdeps/x86_64/setjmp.S: Likewise.
30601
30602         * include/math.h: Use IS_IN instead of IS_IN_libm.
30603         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
30604         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30605         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
30606         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
30607         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30608         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
30609         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
30610         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30611         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30612         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
30613         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
30614         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
30615         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
30616         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
30617         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
30618         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
30619         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30620         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
30621         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30622         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
30623         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
30624         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
30625         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
30626         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
30627         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
30628         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
30629         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
30630         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30631         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30632         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
30633         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
30634         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
30635         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
30636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
30637         Likewise.
30638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
30639         Likewise.
30640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
30641         Likewise.
30642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
30643         Likewise.
30644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
30645         Likewise.
30646         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
30647         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
30648         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
30649         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30650         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30651         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30652         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
30653         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
30654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
30655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
30656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
30657         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
30658         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
30659         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
30660         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
30661         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30662         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
30663         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
30664         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30665         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
30666         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
30667         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
30668         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
30669         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
30670         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
30671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
30672         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
30673
30674         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
30675         * nptl/pthreadP.h: Likewise.
30676         * nptl_db/structs.def: Likewise.
30677         * sysdeps/arm/sysdep.h: Likewise.
30678         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30679         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30680         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
30681         * sysdeps/unix/alpha/sysdep.h: Likewise.
30682         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30683         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30684         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30685         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30686         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30687         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30688         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30689         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30690         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30691         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30692         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30693         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30694         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30695         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30698         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30699         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30700         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30701         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30702         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30703         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30704         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30705         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30706         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
30707         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30708
30709         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
30710         * nptl/pthreadP.h: Likewise.
30711         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30712         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30713         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30714         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30715         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30716         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30717         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30718         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30719         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30720         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30721         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30722         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
30724         Likewise.
30725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
30726         Likewise.
30727         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30728         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30729         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30730         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30731         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30732         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30733         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30734         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30735
30736         * dlfcn/dladdr.c: Use IS_IN.
30737         * dlfcn/dladdr1.c: Likewise.
30738         * dlfcn/dlclose.c: Likewise.
30739         * dlfcn/dlerror.c: Likewise.
30740         * dlfcn/dlinfo.c: Likewise.
30741         * dlfcn/dlmopen.c: Likewise.
30742         * dlfcn/dlopen.c: Likewise.
30743         * dlfcn/dlsym.c: Likewise.
30744         * dlfcn/dlvsym.c: Likewise.
30745
30746         * include/ifaddrs.h: Use IS_IN.
30747         * inet/check_pf.c: Likewise.
30748         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
30749         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
30750
30751         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
30752         IS_IN_ldconfig.
30753         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
30754         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
30755
30756         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
30757         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
30758         IS_IN (libc).
30759
30760         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
30761
30762         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
30763         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30764         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30765         * include/libc-symbols.h (IS_IN_LIB): New macro.
30766         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
30767         * include/netdb.h: Likewise.
30768         * include/stap-probe.h: Remove all uses of IN_LIB.
30769
30770         * Makeconfig (module-cppflags-real): Define MODULE_NAME
30771         instead of IN_MODULE.
30772         * include/libc-symbols.h (IN_MODULE): Define using
30773         MODULE_NAME.
30774         (PASTE_NAME, PASTE_NAME1): New macros.
30775         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
30776         of IN_LIB.
30777         (STAP_PROBE_ASM): Likewise.
30778
30779 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30780
30781         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
30782         __mach_init in dlopened libc.
30783
30784 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
30785
30786         * sysdeps/arm/preconfigure.ac: Delete EABI check.
30787         * sysdeps/arm/preconfigure: Regenerate.
30788
30789 2014-11-21  Roland McGrath  <roland@hack.frob.com>
30790
30791         * nptl/pthread_create.c (__pthread_create_2_1): Set
30792         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
30793         when copying values from IATTR into PD.
30794
30795 2014-11-21  Will Newton  <will.newton@linaro.org>
30796             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30797
30798         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
30799         Refactor inline-asm.  Also add comment.
30800
30801         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
30802         ElfW macro instead of hardcoded Elf64 types.
30803         (la_aarch64_gnu_pltenter): Likewise.
30804         * sysdeps/aarch64/dl-machine.h
30805         (elf_machine_runtime_setup): Use ElfW(Addr).
30806
30807         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
30808         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
30809         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
30810         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
30811         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
30812         (R_AARCH64_TLS_DTPMOD64): Rename to ..
30813         (R_AARCH64_TLS_DTPMOD): This.
30814         (R_AARCH64_TLS_DTPREL64): Rename to ...
30815         (R_AARCH64_TLS_DTPREL): This.
30816         (R_AARCH64_TLS_TPREL64): Rename to ...
30817         (R_AARCH64_TLS_TPREL): This.
30818         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
30819         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
30820         R_AARCH64_TLS_TPREL64.
30821         (elf_machine_rela): Likewise.
30822
30823 2014-11-21  Torvald Riegel  <triegel@redhat.com>
30824
30825         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
30826         by setting it to 0.  64b atomics are not supported currently.
30827
30828 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30829
30830         [BZ #16469]
30831         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
30832         search domain names.
30833
30834 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30835
30836         [BZ #16469]
30837         * NEWS: Update.
30838         * resolv/res_query.c (__libc_res_nquerydomain): Retain
30839         trailing dot.
30840         * posix/tst-getaddrinfo5.c: New.
30841         * posix/Makefile (tests): Add it.
30842
30843 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30844
30845         [BZ #14498]
30846         * NEWS: Fixed.
30847         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
30848         after parsing line but before break_if_match.
30849         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
30850         if there is a protocol mismatch.
30851
30852 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
30853
30854         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
30855         because the potential race is on the user-supplied stream.
30856
30857 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30858
30859         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
30860         string literal if not passed a buffer.
30861         * manual/job.texi (ctermid): Update reasoning, note deviation
30862         from posix, suggest mtasurace when not passed a buffer, for
30863         future non-preliminary safety notes.
30864
30865 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30866
30867         * manual/users.texi (cuserid): Fix MT-Safety note for the case
30868         of not passing it a buffer.
30869         Reported by Peng Haitao.
30870
30871 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30872
30873         * manual/Makefile ($(objpfx)stamp-summary): Require
30874         check-safety.sh to pass.
30875         * manual/check-safety.sh: Wish for verification that every
30876         @deftypefn and @deftypefun is followed by a @safety remark.
30877
30878 2014-11-20  Roland McGrath  <roland@hack.frob.com>
30879
30880         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
30881
30882         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
30883         PTHREAD_CANCEL_ASYNCHRONOUS.
30884         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
30885         send SIGCANCEL.
30886
30887         * nptl/default-sched.h: New file.
30888         * sysdeps/unix/sysv/linux/default-sched.h: New file.
30889         * nptl/pthread_create.c: Include it.
30890         (__pthread_create_2_1): Use collect_default_sched instead of making
30891         Linux syscalls here directly.
30892
30893 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30894
30895         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
30896         __pthread_once): Use C11 atomics.
30897
30898 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30899
30900         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
30901
30902 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30903
30904         * include/atomic.h (__atomic_link_error, __atomic_check_size,
30905         atomic_thread_fence_acquire, atomic_thread_fence_release,
30906         atomic_thread_fence_seq_cst, atomic_load_relaxed,
30907         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
30908         atomic_compare_exchange_weak_relaxed,
30909         atomic_compare_exchange_weak_acquire,
30910         atomic_compare_exchange_weak_release,
30911         atomic_exchange_acquire, atomic_exchange_release,
30912         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
30913         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
30914         atomic_fetch_and_acquire,
30915         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
30916
30917 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30918
30919         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
30920         USE_ATOMIC_COMPILER_BUILTINS): Define.
30921         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
30922         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30923         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
30924         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30925         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
30926         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30927         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
30928         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30929         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
30930         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30931         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
30932         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30933         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
30934         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30935         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
30936         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30937         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30938         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30939         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30940         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30941         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
30942         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30943         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30944         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30945         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
30946         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30947         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30948         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30949         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
30950         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30951         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
30952         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30953         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
30954         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30955         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
30956         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30957         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
30958         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30959         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
30960         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30961
30962 2014-11-19  Roland McGrath  <roland@hack.frob.com>
30963
30964         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
30965         the sched_priority value here.  It was already checked when the user
30966         called pthread_attr_setschedparam.
30967
30968         * nptl/tst-bad-schedattr.c: New file.
30969         * nptl/Makefile (tests): Add it.
30970
30971 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
30972             Florian Weimer  <fweimer@redhat.com>
30973             Joseph Myers  <joseph@codesourcery.com>
30974             Adam Conrad  <adconrad@0c3.net>
30975             Andreas Schwab  <schwab@suse.de>
30976             Brooks  <bmoses@google.com>
30977
30978         [BZ #17625]
30979         * wordexp-test.c (__dso_handle): Add prototype.
30980         (__register_atfork): Likewise.
30981         (__app_register_atfork): New function.
30982         (registered_forks): New global.
30983         (register_fork): New function.
30984         (test_case): Add 3 new tests for WRDE_CMDSUB.
30985         (main): Call __app_register_atfork.
30986         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
30987         fork count is non-zero fail the test.
30988         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
30989         is set.
30990         (parse_dollars): Remove check for WRDE_NOCMD.
30991         (parse_dquote): Likewise.
30992
30993 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30994
30995         * Makeconfig (built-modules): List non-library modules to be
30996         built.
30997         (module-cppflags): Include libc-modules.h for
30998         everything except shlib-versions.v.i.
30999         (CPPFLAGS): Use it.
31000         (before-compile): Add libc-modules.h.
31001         ($(common-objpfx)libc-modules.h,
31002         $(common-objpfx)libc-modules.stmp): New targets.
31003         (common-generated): Add libc-modules.h and libc-modules.stmp.
31004         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
31005         * include/libc-symbols.h: Don't include libc-modules.h.
31006         * include/libc-modules.h: Remove file.
31007         * scripts/gen-libc-modules.awk: New script to generate
31008         libc-modules.h.
31009         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
31010         Depend on libc-modules.stmp.
31011
31012         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
31013
31014         * Makeconfig (in-module): Get value of libof set for the
31015         translation unit.
31016         (CPPFLAGS): Use $(in-module).
31017         * Makerules: Don't suffix routine names for nonlib.
31018         * include/libc-modules.h: New file.
31019         * include/libc-symbols.h: Include libc-modules.h
31020         (IS_IN): New macro to replace IS_IN_* macros.
31021         * elf/Makefile: Set libof-* for each routine.
31022         * elf/rtld-Rules: Likewise.
31023         * extra-modules.mk: Likewise.
31024         * iconv/Makefile: Likewise.
31025         * iconvdata/Makefile: Likewise.
31026         * locale/Makefile: Likewise.
31027         * malloc/Makefile: Likewise.
31028         * nss/Makefile: Likewise.
31029         * sysdeps/gnu/Makefile: Likewise.
31030         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
31031         * sysdeps/unix/sysv/linux/Makefile: Likewise.
31032         * sysdeps/s390/s390-64/Makefile: Likewise.
31033         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
31034         CPPFLAGS for nscd instead of nonlib.
31035
31036 2014-11-18  Roland McGrath  <roland@hack.frob.com>
31037
31038         * nptl/createthread.c: New file.
31039
31040         * nptl/createthread.c: Moved ...
31041         * sysdeps/unix/sysv/linux/createthread.c: ... here.
31042
31043         * nptl/createthread.c: Add proper top-line comment.
31044         (do_clone): Folded into ...
31045         (create_thread): ... here.  Take new arguments STOPPED_START and
31046         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
31047         increment __nptl_threads, do event-reporting logic, do
31048         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
31049         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
31050         resource cleanup if sched_setaffinity or sched_setscheduler fails,
31051         just send SIGCANCEL.
31052         * nptl/pthread_create.c: Forward-declare create_thread before
31053         including createthread.c.
31054         (start_thread): Use new macro START_THREAD_DEFN to replace defining
31055         declaration, and new macro START_THREAD_SELF to replace argument.
31056         Remove return statement.
31057         (report_thread_creation): New function.
31058         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
31059         synchronization logic, and __nptl_nthreads increment here, around
31060         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
31061         PD->parent_cancelhandling here, before create_thread.  When
31062         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
31063         __deallocate_stack, and ENOMEM translation here.
31064
31065 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
31066
31067         [BZ #17616]
31068         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
31069         (mptwo): Rename to __mptwo.
31070         (__inv): Use __mptwo instead of mptwo.
31071         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
31072         (mptwo): Rename to __mptwo.
31073         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
31074         of mpone and __mptwo instead of mptwo.
31075         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
31076         instead of mpone.
31077         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
31078         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
31079         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
31080         of mpone and __mptwo instead of mptwo.
31081         (__mpranred): Use __mpone instead of mpone.
31082         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
31083         variable.
31084         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31085         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31086         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31087         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31088         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31089         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31090         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31091         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31092         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31093         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31094         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31095         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31096         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31097         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31098         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31099         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31100         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31101         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31102         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31103
31104 2014-11-18  Tom de Vries  <tom@codesoucery.com>
31105
31106         * manual/signal.texi (Primitives Interrupted by Signals): In section,
31107         replace BSD Handler xref with BSD Signal Handling.
31108
31109 2014-11-17  Richard Henderson  <rth@redhat.com>
31110
31111         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
31112         (_FP_PACK_RAW_2): Remove.
31113         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
31114         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
31115         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
31116         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
31117         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
31118         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
31119         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
31120         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
31121         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
31122         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
31123         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
31124         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
31125         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
31126         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
31127         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
31128         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
31129
31130 2014-11-14  Roland McGrath  <roland@hack.frob.com>
31131
31132         * signal/signal.h [__USE_MISC]
31133         (struct sigvec): Remove type.
31134         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
31135         (sigvec): Remove declaration.
31136         * sysdeps/posix/sigvec.c: Moved ...
31137         * signal/sigvec.c: ... here, replacing old file.
31138         (struct sigvec): New type, copied from old signal.h definition.
31139         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
31140         (__sigvec): Convert definition to prototype.
31141         (sigvec): Replace weak_alias with compat_symbol.
31142         * signal/Versions (libc: GLIBC_2.21): New version set.
31143         * include/signal.h: Remove __sigvec declaration.
31144         * sysdeps/unix/bsd/sigvec.c: Remove file.
31145         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
31146         * manual/signal.texi (BSD Handler): Remove subsection.
31147         Move siginterrupt up to ...
31148         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
31149         (Blocking in BSD): Fold subsection into its parent.
31150         * NEWS: Mention sigvec removal.
31151
31152 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31153
31154         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
31155         (DLA_FMS): Make definition conditional only on [__FMA4__].
31156         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
31157         definition.
31158
31159         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
31160         Make definition conditional only on [PROF].
31161         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
31162         definition.
31163         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
31164         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
31165
31166         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
31167         !__GNUC__].
31168         * include/signal.h (__sigpause): Move declaration above call to
31169         libc_hidden_proto.
31170         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
31171         variable.
31172         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31173         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31174
31175 2014-11-14  David S. Miller  <davem@davemloft.net>
31176
31177         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
31178         Define before including <string/memcpy.c> and <string/mempcpy.c>.
31179
31180 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31181
31182         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
31183         * configure: Regenerated.
31184         * manual/install.texi (Tools for Compilation): Document a
31185         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
31186         compiler verified to work.
31187         * INSTALL: Regenerated.
31188
31189         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
31190         redeclare with asm name.
31191         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
31192         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
31193         including <string.h>.
31194         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31195         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
31196         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31197         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
31198         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31199         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31200         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31201
31202 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
31203
31204         * stdlib/strtol.c (__strtol): Use prototype definition.
31205
31206         [BZ #17594]
31207         * stdlib/strtol.c (SYM__): New macro.
31208         (SYM__1): Likewise.
31209         (__strtol): Likewise.
31210         (strtol): Rename to __strtol and define as weak alias of
31211         __strtol.  Use libc_hidden_weak.
31212
31213 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31214
31215         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
31216         Use numbered labels in inline assembly.
31217
31218 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31219
31220         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
31221         Add setjmp LIBC_PROBE.
31222         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
31223         Likewise.
31224         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
31225         Add longjmp, longjmp_target LIBC_PROBE.
31226         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
31227         Likewise.
31228
31229 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31230
31231         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
31232         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
31233         to get rid of unused variable warning.
31234
31235 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31236
31237         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
31238         Check for unwind_backtrace ==  NULL only in SHARED case.
31239         (__backchain_backtrace): Compile only in SHARED case.
31240         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
31241         Likewise.
31242         (__backchain_backtrace): Declare as static.
31243
31244 2014-11-12  Roland McGrath  <roland@hack.frob.com>
31245
31246         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
31247         (__libc_multiple_threads_ptr): Variable moved ...
31248         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
31249
31250 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
31251
31252         * conform/GlibcConform.pm: New file.
31253         * conform/conformtest.pl: Use GlibcConform module.
31254         * conform/linknamespace.pl: New file.
31255         * conform/list-header-symbols.pl: Likewise.
31256         * conform/Makefile (linknamespace-symlists-base): New variable.
31257         (linknamespace-symlists-tests): Likewise.
31258         (linknamespace-header-base): Likewise.
31259         (linknamespace-header-tests): Likewise.
31260         (tests-special): Add new tests.
31261         ($(linknamespace-symlists-tests)): New rule.
31262         (linknamespace-libs): New variable.
31263         ($(objpfx)symlist-stdlibs): New rule.
31264         ($(linknamespace-header-tests)): Likewise.
31265         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
31266         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
31267         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
31268         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
31269         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
31270         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
31271         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
31272         (test-xfail-ISO/math.h/linknamespace): Likewise.
31273         (test-xfail-ISO/signal.h/linknamespace): Likewise.
31274         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
31275         (test-xfail-ISO/time.h/linknamespace): Likewise.
31276         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31277         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
31278         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31279         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31280         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
31281         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31282         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31283         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
31284         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31285         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31286         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
31287         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31288         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
31289         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
31290         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
31291         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31292         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
31293         (test-xfail-XPG3/search.h/linknamespace): Likewise.
31294         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
31295         (test-xfail-XPG3/time.h/linknamespace): Likewise.
31296         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
31297         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
31298         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
31299         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
31300         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31301         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
31302         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
31303         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
31304         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31305         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
31306         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
31307         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
31308         (test-xfail-XPG4/search.h/linknamespace): Likewise.
31309         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31310         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
31311         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
31312         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
31313         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
31314         (test-xfail-XPG4/time.h/linknamespace): Likewise.
31315         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
31316         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
31317         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
31318         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31319         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31320         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31321         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
31322         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
31323         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
31324         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
31325         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
31326         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
31327         (test-xfail-POSIX/time.h/linknamespace): Likewise.
31328         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
31329         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31330         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
31331         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
31332         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
31333         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31334         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31335         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
31336         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
31337         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31338         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
31339         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
31340         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
31341         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
31342         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
31343         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
31344         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
31345         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
31346         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31347         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
31348         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
31349         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
31350         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
31351         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
31352         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
31353         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
31354         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31355         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
31356         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31357         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
31358         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
31359         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31360         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31361         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
31362         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
31363         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31364         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
31365         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
31366         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
31367         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
31368         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
31369         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31370         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
31371         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
31372         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
31373         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
31374         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
31375         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
31376         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
31377         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31378         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
31379         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31380         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
31381         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31382         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31383         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31384         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
31385         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31386         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
31387         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
31388         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
31389         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
31390         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31391         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
31392         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
31393         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
31394         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
31395         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31396         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
31397         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
31398         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
31399         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
31400         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31401         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
31402         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
31403         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
31404         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31405         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
31406         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
31407         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
31408         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
31409         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
31410         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31411         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
31412         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
31413         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
31414         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
31415         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
31416         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31417         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
31418         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
31419         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
31420         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
31421         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
31422         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
31423         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31424         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
31425         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31426
31427         [BZ #17589]
31428         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
31429         of fgets_unlocked.
31430
31431         [BZ #17585]
31432         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
31433         (memmem): Rename to __memmem and define as weak alias of
31434         __memmem.  Use libc_hidden_weak.
31435         (__memmem): Use libc_hidden_def.
31436         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
31437         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
31438         memmem.
31439
31440         [BZ #17582]
31441         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
31442         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
31443         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
31444         and define as weak alias of __fgets_unlocked.  Use
31445         libc_hidden_weak.
31446         (__fgets_unlocked): Use libc_hidden_def.
31447         * include/stdio.h (__fgets_unlocked): Declare.  Use
31448         libc_hidden_proto.
31449         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
31450         __fgets_unlocked instead of fgets_unlocked.
31451         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
31452         (GET_NPROCS_CONF_PARSER): Likewise.
31453         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
31454         (GET_NPROCS_CONF_PARSER): Likewise.
31455
31456         [BZ #17574]
31457         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
31458         weak alias of __wmemset.  Use libc_hidden_weak.
31459         (__wmemset): Use libc_hidden_def.
31460         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
31461         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
31462         of wmemset.
31463
31464         [BZ #17573]
31465         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
31466         with asm name __mempcpy.
31467         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
31468
31469         [BZ #17572]
31470         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
31471         and define as weak alias of __rawmemchr.
31472         (__rawmemchr): Do not define as strong alias of rawmemchr.
31473
31474         [BZ #17571]
31475         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
31476         alias of __qsort_r.
31477         (qsort): Call __qsort_r instead of qsort_r.
31478         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
31479         (__qsort_r): Declare.  Call libc_hidden_proto.
31480         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
31481         instead of qsort_r.
31482         * nscd/gai.c (__qsort_r): Define to qsort_r.
31483         * posix/tst-rfc3484.c (__qsort_r): Likewise.
31484         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
31485         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
31486
31487         [BZ #17570]
31488         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
31489         define as weak alias of __malloc_info.
31490
31491         [BZ #17584]
31492         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
31493         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31494         (__rewinddir): Use libc_hidden_def.
31495         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
31496         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31497         (__rewinddir): Use libc_hidden_def.
31498         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
31499         weak alias of __rewinddir.  Don't use libc_hidden_def.
31500         (__rewinddir): Use libc_hidden_def.
31501         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
31502         (__rewinddir): Use libc_hidden_proto.
31503         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
31504         rewinddir.
31505         (__getcwd): Use __rewinddir instead of rewinddir.
31506
31507         [BZ #17583]
31508         * libio/fileno.c (fileno): Rename to __fileno and define as weak
31509         alias of __fileno.  Use libc_hidden_weak.
31510         (__fileno): Use libc_hidden_def.
31511         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
31512         * libio/ftello.c (ftello): Rename to __ftello and define as weak
31513         alias of __ftello.
31514         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
31515         __ftello.
31516         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
31517         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
31518         libc_hidden_def.
31519         (fread_unlocked): Don't use libc_hidden_ver.
31520         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
31521         and define as weak alias of __fread_unlocked.  Don't use
31522         libc_hidden_def.
31523         (__fread_unlocked): Use libc_hidden_def.
31524         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
31525         (ftello): Don't use libc_hidden_proto.
31526         (__ftello): Declare.  Use libc_hidden_proto.
31527         (fread_unlocked): Don't use libc_hidden_proto.
31528         (__fread_unlocked): Declare.  Use libc_hidden_proto.
31529         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
31530         and __ftello instead of fileno, fread_unlocked and ftello.
31531
31532 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
31533
31534         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
31535         GOT12.
31536         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
31537         Likewise.
31538         (_dl_start_user): Likewise.
31539         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
31540
31541 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
31542             Siddhesh Poyarekar  <siddhesh@redhat.com>
31543
31544         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
31545         Move argv and envp down instead of moving argc up.
31546         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
31547
31548 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
31549
31550         [BZ #17506]
31551         * test-skeleton.c (main): Return successful if one of
31552         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
31553         * string/tst-strcoll-overflow.c: Define expected status.
31554
31555 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
31556
31557         [BZ #17475]
31558         * locale/iso-639.def: Define Bhili and Tulu language codes.
31559
31560 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
31561
31562         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
31563
31564 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
31565
31566         [BZ #17555]
31567         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
31568
31569 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
31570
31571         * configure.ac: Updated check of minimal required version to
31572         2.22.
31573         * manual/install.texi (Tools for Compilation): Updated version
31574         number.
31575         * configure: Regenerated.
31576         * INSTALL: Likewise.
31577
31578 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
31579
31580         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
31581         __tls_get_addr.
31582
31583 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
31584
31585         * include/sys/wait.h (__libc_waitpid): Remove declaration.
31586         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
31587         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31588         libc_hidden_weak.
31589         (waitpid): Define as alias of __waitpid.
31590         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
31591         __waitpid.
31592         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31593         libc_hidden_weak.
31594         (waitpid): Define as alias of __waitpid.
31595         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
31596         __libc_waitpid alias.
31597         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
31598         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
31599         Likewise.
31600         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
31601         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
31602         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
31603         alias.
31604         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
31605         __waitpid.
31606         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31607         libc_hidden_weak.
31608         (waitpid): Define as alias of __waitpid.
31609
31610 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
31611
31612         * manual/llio.texi: Add comment that write safety has been
31613         fixed in Linux.
31614
31615         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
31616         (localplt-build-dso): Add elf/ld.so.
31617         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
31618         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
31619         and free for ld.so.
31620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
31621         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
31622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
31623         Likewise.
31624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
31625         Likewise.
31626         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
31627         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
31628         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
31629         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
31630         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
31631         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
31632         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
31633         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
31634         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
31635         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
31636         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31637
31638 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
31639
31640         [BZ #14132]
31641         * include/libc-symbols.h (INTUSE): Remove macro.
31642         (INTDEF): Likewise.
31643         (INTVARDEF): Likewise.
31644         (_INTVARDEF): Likewise.
31645         (INTDEF2): Likewise.
31646         (INTVARDEF2): Likewise.
31647         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
31648         rtld_hidden_def instead of INTVARDEF.
31649         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
31650         (_dl_starting_up_internal): Remove declaration.
31651         (_dl_starting_up): Use rtld_hidden_proto.
31652         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
31653         declaration.
31654         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
31655         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
31656         _dl_starting_up.
31657         * elf/dl-writev.h (_dl_writev): Likewise.
31658         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
31659         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
31660         _dl_starting_up_internal.
31661
31662 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31663
31664         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
31665         test-skeleton.c.
31666
31667 2014-11-05  Will Newton  <will.newton@linaro.org>
31668
31669         * benchtests/Makefile: (bench-malloc): Add malloc thread
31670         scalability benchmark.
31671         * benchtests/bench-malloc-threads.c: New file.
31672
31673 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
31674
31675         * sysdeps/aarch64/strchrnul.S: New file.
31676
31677 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31678
31679         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
31680         definition.
31681         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
31682         Likwise.
31683         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
31684         Likewise.
31685         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
31686         Likewise.
31687         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
31688         Likewise.
31689         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
31690         Likewise.
31691
31692 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
31693
31694         * catgets/test-gencat.c: Use test-skeleton.c.
31695         * catgets/tst-catgets.c: Likewise.
31696         * csu/tst-empty.c: Likewise.
31697         * elf/tst-audit2.c: Likewise.
31698         * elf/tst-global1.c: Likewise.
31699         * elf/tst-pathopt.c: Likewise.
31700         * elf/tst-piemod1.c: Likewise.
31701         * elf/tst-tls10.c: Likewise.
31702         * elf/tst-tls11.c: Likewise.
31703         * elf/tst-tls12.c: Likewise.
31704         * gnulib/tst-gcc.c: Likewise.
31705         * iconvdata/tst-e2big.c: Likewise.
31706         * iconvdata/tst-loading.c: Likewise.
31707         * iconv/tst-iconv1.c: Likewise.
31708         * iconv/tst-iconv2.c: Likewise.
31709         * inet/test-inet6_opt.c: Likewise.
31710         * inet/tst-gethnm.c: Likewise.
31711         * inet/tst-network.c: Likewise.
31712         * inet/tst-ntoa.c: Likewise.
31713         * intl/tst-codeset.c: Likewise.
31714         * intl/tst-gettext2.c: Likewise.
31715         * intl/tst-gettext3.c: Likewise.
31716         * intl/tst-ngettext.c: Likewise.
31717         * intl/tst-translit.c: Likewise.
31718         * io/test-stat.c: Likewise.
31719         * libio/test-fmemopen.c: Likewise.
31720         * libio/tst-freopen.c: Likewise.
31721         * libio/tst-sscanf.c: Likewise.
31722         * libio/tst-ungetwc1.c: Likewise.
31723         * libio/tst-ungetwc2.c: Likewise.
31724         * libio/tst-widetext.c: Likewise.
31725         * localedata/tst-ctype.c: Likewise.
31726         * localedata/tst-digits.c: Likewise.
31727         * localedata/tst-leaks.c: Likewise.
31728         * localedata/tst-mbswcs1.c: Likewise.
31729         * localedata/tst-mbswcs2.c: Likewise.
31730         * localedata/tst-mbswcs3.c: Likewise.
31731         * localedata/tst-mbswcs4.c: Likewise.
31732         * localedata/tst-mbswcs5.c: Likewise.
31733         * localedata/tst-setlocale.c: Likewise.
31734         * localedata/tst-trans.c: Likewise.
31735         * localedata/tst-wctype.c: Likewise.
31736         * localedata/tst-xlocale1.c: Likewise.
31737         * login/tst-grantpt.c: Likewise.
31738         * malloc/tst-calloc.c: Likewise.
31739         * malloc/tst-malloc.c: Likewise.
31740         * malloc/tst-mallocstate.c: Likewise.
31741         * malloc/tst-mcheck.c: Likewise.
31742         * malloc/tst-mtrace.c: Likewise.
31743         * malloc/tst-obstack.c: Likewise.
31744         * math/atest-exp2.c: Likewise.
31745         * math/atest-exp.c: Likewise.
31746         * math/atest-sincos.c: Likewise.
31747         * math/test-matherr.c: Likewise.
31748         * math/test-misc.c: Likewise.
31749         * math/test-powl.c: Likewise.
31750         * math/tst-definitions.c: Likewise.
31751         * misc/tst-dirname.c: Likewise.
31752         * misc/tst-efgcvt.c: Likewise.
31753         * misc/tst-fdset.c: Likewise.
31754         * misc/tst-hsearch.c: Likewise.
31755         * misc/tst-mntent2.c: Likewise.
31756         * nptl/tst-sem7.c: Likewise.
31757         * nptl/tst-sem8.c: Likewise.
31758         * nptl/tst-sem9.c: Likewise.
31759         * nss/test-netdb.c: Likewise.
31760         * posix/tst-fnmatch.c: Likewise.
31761         * posix/tst-getlogin.c: Likewise.
31762         * posix/tst-gnuglob.c: Likewise.
31763         * posix/tst-mmap.c: Likewise.
31764         * pwd/tst-getpw.c: Likewise.
31765         * resolv/tst-inet_ntop.c: Likewise.
31766         * rt/tst-timer.c: Likewise.
31767         * stdio-common/test-fseek.c: Likewise.
31768         * stdio-common/test-popen.c: Likewise.
31769         * stdio-common/test-vfprintf.c: Likewise.
31770         * stdio-common/tst-cookie.c: Likewise.
31771         * stdio-common/tst-fileno.c: Likewise.
31772         * stdio-common/tst-gets.c: Likewise.
31773         * stdio-common/tst-obprintf.c: Likewise.
31774         * stdio-common/tst-perror.c: Likewise.
31775         * stdio-common/tst-sprintf2.c: Likewise.
31776         * stdio-common/tst-sprintf3.c: Likewise.
31777         * stdio-common/tst-sprintf.c: Likewise.
31778         * stdio-common/tst-swprintf.c: Likewise.
31779         * stdio-common/tst-tmpnam.c: Likewise.
31780         * stdio-common/tst-unbputc.c: Likewise.
31781         * stdio-common/tst-wc-printf.c: Likewise.
31782         * stdlib/tst-environ.c: Likewise.
31783         * stdlib/tst-fmtmsg.c: Likewise.
31784         * stdlib/tst-limits.c: Likewise.
31785         * stdlib/tst-rand48-2.c: Likewise.
31786         * stdlib/tst-rand48.c: Likewise.
31787         * stdlib/tst-random2.c: Likewise.
31788         * stdlib/tst-random.c: Likewise.
31789         * stdlib/tst-strtol.c: Likewise.
31790         * stdlib/tst-strtoll.c: Likewise.
31791         * stdlib/tst-tls-atexit.c: Likewise.
31792         * stdlib/tst-xpg-basename.c: Likewise.
31793         * string/test-ffs.c: Likewise.
31794         * string/tst-bswap.c: Likewise.
31795         * string/tst-inlcall.c: Likewise.
31796         * string/tst-strtok.c: Likewise.
31797         * string/tst-strxfrm.c: Likewise.
31798         * sysdeps/x86_64/tst-audit10.c: Likewise.
31799         * sysdeps/x86_64/tst-audit3.c: Likewise.
31800         * sysdeps/x86_64/tst-audit4.c: Likewise.
31801         * sysdeps/x86_64/tst-audit5.c: Likewise.
31802         * time/tst-ftime_l.c: Likewise.
31803         * time/tst-getdate.c: Likewise.
31804         * time/tst-mktime3.c: Likewise.
31805         * time/tst-mktime.c: Likewise.
31806         * time/tst-posixtz.c: Likewise.
31807         * time/tst-strptime2.c: Likewise.
31808         * time/tst-strptime3.c: Likewise.
31809         * wcsmbs/tst-btowc.c: Likewise.
31810         * wcsmbs/tst-mbrtowc.c: Likewise.
31811         * wcsmbs/tst-mbsrtowcs.c: Likewise.
31812         * wcsmbs/tst-wchar-h.c: Likewise.
31813         * wcsmbs/tst-wcpncpy.c: Likewise.
31814         * wcsmbs/tst-wcrtomb.c: Likewise.
31815         * wcsmbs/tst-wcsnlen.c: Likewise.
31816         * wcsmbs/tst-wcstof.c: Likewise.
31817
31818 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
31819
31820         [BZ #14132]
31821         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
31822         INTDEF.
31823         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
31824         declaration.
31825         (_dl_mcount): Use rtld_hidden_proto.
31826         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
31827         _dl_mcount.
31828         * elf/rtld.c (_rtld_global_ro): Likewise.
31829
31830         [BZ #14132]
31831         * elf/dl-init.c (_dl_init): Don't use INTDEF.
31832         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
31833         of _dl_init_internal.
31834         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
31835         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
31836         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
31837         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
31838         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
31839         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
31840         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
31841         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
31842         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
31843         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
31844         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
31845         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
31846         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
31847         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
31848         * sysdeps/tile/dl-start.S (_start): Likewise.
31849         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
31850         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
31851
31852         [BZ #14132]
31853         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
31854         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
31855         (rtld_progname): Make macro definition unconditional.
31856         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
31857         INTDEF.
31858         (dlmopen_doit): Do not use INTUSE with _dl_argv.
31859         (dl_main): Likewise.
31860         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
31861         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
31862         instead of _dl_argv_internal.
31863         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31864         __GI__dl_argv instead of INTUSE(_dl_argv).
31865         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
31866         __GI__dl_argv instead of _dl_argv_internal.
31867
31868         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
31869         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
31870         macro.
31871         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
31872         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
31873         New macro.
31874         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
31875         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
31876         macro.
31877         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
31878         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
31879
31880 2014-11-04  Andreas Schwab  <schwab@suse.de>
31881
31882         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
31883
31884 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31885
31886         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
31887         mtvsrd instruction in binary form.
31888
31889 2014-11-03  Andreas Schwab  <schwab@suse.de>
31890
31891         [BZ #17522]
31892         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
31893         for less than MB_LEN_MAX use a local buffer of that size.
31894         * libio/tst-fputws.c: New file.
31895         * libio/Makefile (tests): Add tst-fputws.
31896
31897 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
31898
31899         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
31900         the size of the fpu_fr.fpu_dregs[] array.
31901
31902 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
31903
31904         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
31905         (__nanosleep): Do not define as alias.
31906         (nanosleep): Define as alias of __nanosleep.
31907         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
31908         __libc_nanosleep name.
31909
31910 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31911
31912         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
31913         install.texi in comment.
31914
31915 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31916
31917         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
31918         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
31919         ... add here and use lwsync or sync ...
31920         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
31921         ... and add here using lwsync.
31922
31923 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
31924
31925         * elf/dl-machine-reject-phdr.h: New file.
31926         * elf/dl-load.c: #include that.
31927         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
31928         if that returned true.
31929
31930 2014-10-31  Roland McGrath  <roland@hack.frob.com>
31931
31932         [BZ #17496]
31933         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
31934         gen-as-const-headers chunk.  Add a big scare comment after the last
31935         safe place to touch before-compile.
31936
31937 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31938
31939         * manual/install.texi (Tools for Compilation): Update autoconf
31940         version requirements.
31941         * INSTALL: Regenerated.
31942
31943         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
31944         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
31945         (__libc_pselect): Likewise.
31946
31947         [BZ #14138]
31948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
31949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31952
31953 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31954
31955         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
31956         correct barrier instruction.
31957         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
31958         Likewise.
31959         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
31960         Likewise.
31961
31962 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31963
31964         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
31965         after defining inlines.  Instead, just use parens to defeat macro
31966         expansion of __isctype in its declaration.
31967
31968 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31969
31970         * include/sys/uio.h (__libc_readv): Remove declaration.
31971         (__libc_writev): Likewise.
31972         * misc/readv.c (__libc_readv): Rename to __readv.
31973         (__readv): Do not define as alias.
31974         (readv): Define as alias of __readv.
31975         * misc/writev.c (__libc_writev): Rename to __writev.
31976         (__writev): Do not define as alias.
31977         (writev): Define as alias of __writev.
31978         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
31979         (__readv): Do not define as alias.
31980         (readv): Define unconditionally as alias of __readv.
31981         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
31982         (__writev): Do not define as alias.
31983         (writev): Define unconditionally as alias of __writev.
31984         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
31985         name.
31986         (writev): Do not define __libc_writev name.
31987
31988 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31989
31990         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
31991         (convert_charseq): New function, broken out of ...
31992         (use_from_charmap): ... here.  Call it.
31993         (use_to_charmap): Use convert_charseq and free instead of duplicating
31994         its code with a variable-length stack struct.
31995
31996 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31997
31998         * include/fcntl.h (__libc_creat): Remove declaration.
31999         * io/creat.c (__libc_creat): Rename to creat.
32000         (creat): Do not define as alias.
32001         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
32002         of creat instead of __libc_creat.
32003         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
32004         to creat.
32005         (creat): Do not define as alias.
32006         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
32007         __libc_creat.
32008         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
32009         __libc_creat name.
32010         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
32011         Likewise.
32012
32013 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
32014
32015         * manual/llio.texi: Add comments discussing why write() may be
32016         considered MT-unsafe on Linux.
32017
32018 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
32019
32020         * dl-load.c (local_strdup): Remove.
32021         (expand_dynamic_string_token): Use __strdup.
32022         (decompose_rpath): Likewise.
32023         (_dl_map_object): Likewise.
32024
32025 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
32026
32027         [BZ #14132]
32028         * sysdeps/generic/unwind-dw2-fde.c
32029         (__register_frame_info_bases_internal): Do not declare.
32030         (__register_frame_info_table_bases_internal): Likewise.
32031         (__deregister_frame_info_bases_internal): Likewise.
32032         (__register_frame_info_bases): Declare and use hidden_proto before
32033         definition.  Use hidden_def instead of INTDEF.
32034         (__register_frame_info_table_bases): Likewise.
32035         (__deregister_frame_info_bases): Likewise.
32036         (__register_frame_info): Do not use INTUSE.
32037         (__register_frame): Likewise.
32038         (__register_frame_info_table): Likewise.
32039         (__register_frame_table): Likewise.
32040         (__deregister_frame_info): Likewise.
32041         (__deregister_frame): Likewise.
32042
32043 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
32044
32045         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32046         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
32047         not undefine.
32048         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
32049         Likewise.
32050         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
32051         Likewise.
32052
32053 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
32054
32055         [BZ #14138]
32056         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
32057         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
32058         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
32059         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
32060         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
32061         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
32062         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
32063         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
32064         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
32065         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
32066         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
32067         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
32068         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
32069         syscall.
32070         (setfsuid): Likewise.
32071         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
32072         (setfsuid): Likewise.
32073         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
32074         (setfsuid): Likewise.
32075         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
32076         Likewise.
32077         (setfsuid): Likewise.
32078         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
32079         (setfsuid): Likewise.
32080         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
32081         Likewise.
32082         (setfsuid): Likewise.
32083
32084 2014-10-27  Andreas Schwab  <schwab@suse.de>
32085
32086         [BZ #17501]
32087         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
32088         check for Slow_SSE4_2 feature bit.
32089         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
32090         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
32091         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
32092         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
32093
32094 2014-10-24  Roland McGrath  <roland@hack.frob.com>
32095
32096         * configure.ac: Validate compiler version with a empirical test of
32097         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
32098         $CC -v output.
32099         * configure: Regenerated.
32100
32101         * inet/htons.c (htons): Prototypify.
32102         * inet/htonl.c (htonl): Likewise.
32103
32104 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32105
32106         * string/strncat.c (strncat): Improve performance by using strlen.
32107
32108 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32109
32110         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
32111
32112 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32113
32114         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
32115         Call libc_fetestexcept_aarch64.
32116
32117 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32118
32119         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
32120         Call libc_feholdexcept_aarch64.
32121
32122 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32123
32124         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
32125         Call get_rounding_mode.
32126
32127 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32128
32129         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
32130         Simplify logic.
32131
32132 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32133
32134         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
32135         Simplify logic.
32136
32137 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
32138
32139         [BZ #14138]
32140         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
32141         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
32142         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
32143         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
32144         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
32145         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
32146         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
32147         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
32148         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
32149         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
32150         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
32151         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
32152         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
32153         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
32154         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
32155         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
32156         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
32157         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
32158         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
32159         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
32160         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
32161         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
32162         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
32163         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
32164         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
32165         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
32166         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
32167         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
32168         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
32169         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
32170         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
32171         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
32172         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
32173         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
32174         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
32175         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
32176         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
32177         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
32178         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
32179         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
32180         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
32181         syscall.
32182         (geteuid): Likewise.
32183         (getgid): Likewise.
32184         (getuid): Likewise.
32185         (getresgid): Likewise.
32186         (getresuid): Likewise.
32187         (getgroups): Likewise.
32188         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
32189         (geteuid): Likewise.
32190         (getgid): Likewise.
32191         (getuid): Likewise.
32192         (getresgid): Likewise.
32193         (getresuid): Likewise.
32194         (getgroups): Likewise.
32195         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
32196         (geteuid): Likewise.
32197         (getgid): Likewise.
32198         (getuid): Likewise.
32199         (getresgid): Likewise.
32200         (getresuid): Likewise.
32201         (getgroups): Likewise.
32202         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
32203         Likewise.
32204         (geteuid): Likewise.
32205         (getgid): Likewise.
32206         (getuid): Likewise.
32207         (getresgid): Likewise.
32208         (getresuid): Likewise.
32209         (getgroups): Likewise.
32210         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
32211         (geteuid): Likewise.
32212         (getgid): Likewise.
32213         (getuid): Likewise.
32214         (getresgid): Likewise.
32215         (getresuid): Likewise.
32216         (getgroups): Likewise.
32217         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
32218         Likewise.
32219         (geteuid): Likewise.
32220         (getgid): Likewise.
32221         (getuid): Likewise.
32222         (getgroups): Likewise.
32223
32224         [BZ #14138]
32225         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
32226         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
32227         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
32228         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
32229         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
32230         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
32231         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
32232         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
32233         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
32234         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
32235         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
32236         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
32237         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
32238         __chown.
32239         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
32240         (lchown): Likewise.
32241         (fchown): Likewise.
32242         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
32243         Likewise.
32244         (lchown): Likewise.
32245         (fchown): Likewise.
32246         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
32247         (lchown): Likewise.
32248         (fchown): Likewise.
32249         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
32250         Likewise.
32251         (lchown): Likewise.
32252         (fchown): Likewise.
32253
32254 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32255
32256         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
32257         Simplify logic.
32258
32259 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32260
32261         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32262         Cleanup logic.
32263
32264 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32265
32266         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32267         Remove unused include.
32268
32269 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32270
32271         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
32272         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
32273         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
32274         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
32275
32276 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
32277             Helge Deller <deller@gmx.de>
32278
32279         [BZ #17508]
32280         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
32281         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
32282         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
32283
32284 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
32285
32286         [BZ #14132]
32287         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
32288         Remove macro definition.
32289         (__ashrdi3_v_glibc20): Likewise.
32290         (__lshrdi3_v_glibc20): Likewise.
32291         (__cmpdi2_v_glibc20): Likewise.
32292         (__ucmpdi2_v_glibc20): Likewise.
32293         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
32294         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
32295         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
32296         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
32297         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
32298         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
32299
32300 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32301
32302         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
32303         old GNU extension [0] syntax.
32304         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
32305         alloca rather than an array member with variable length.
32306         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
32307         * nscd/nscd.c (invalidate_db): New function, broken out of ...
32308         (parse_opt): ... here.  Likewise use alloca there.
32309         Validate the -i argument before checking for rootness.
32310         (send_shutdown): New function, broken out of ...
32311         (parse_opt): ... here.
32312
32313 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32314
32315         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
32316         macro to get at the _rt_local_ro field.
32317         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
32318         ([PIC] case) or _dl_hwcap ([!PIC] case).
32319         * sysdeps/arm/setjmp.S: Likewise.
32320
32321         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
32322         * sysdeps/arm/configure.ac: New check to define it.
32323         * sysdeps/arm/configure: Regenerated.
32324         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
32325         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
32326         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
32327         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
32328         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
32329         Use move/movt pair instead of a load.
32330         (LDST_GLOBAL): Macro removed.
32331         (LDR_GLOBAL): New macro replaces it.
32332         (LDR_HIDDEN): New macro.
32333         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
32334         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
32335
32336         * setjmp/tst-setjmp-static.c: New file.
32337         * setjmp/Makefile (tests): Add it.
32338         (tests-static): New variable.
32339
32340 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
32341
32342         [BZ #17485]
32343         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
32344
32345 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
32346
32347         [BZ #14132]
32348         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
32349
32350 2014-10-21  Roland McGrath  <roland@hack.frob.com>
32351
32352         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
32353
32354 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32355
32356         * io/fts.c (dirent_not_directory): New function.
32357         (fts_build): Call it.
32358
32359 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32360
32361         * nptl/version.c (__nptl_main): Use normal __write rather than
32362         INTERNAL_SYSCALL.
32363         (banner): Update copyright years.
32364
32365         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
32366         gettimeofday.
32367         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
32368         * nptl/pthread_cond_timedwait.c: Likewise.
32369         * nptl/pthread_mutex_timedlock.c: Likewise.
32370         * nptl/sem_timedwait.c: Likewise.
32371
32372         * sysdeps/nptl/bits/libc-lock.h
32373         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
32374         (__libc_lock_init_recursive): Return void, not 0.
32375         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
32376         (__libc_rwlock_init): Likewise.
32377         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
32378
32379 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32380
32381         [BZ #15215]
32382         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
32383         (__pthread_once_slow): ... here.
32384         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
32385         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
32386
32387 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32388
32389         [BZ #15215]
32390         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
32391         __PTHREAD_ONCE_FORK_GEN_INCR): New.
32392         * sysdeps/nptl/fork.c (__libc_fork): Use them.
32393         * nptl/pthread_once.c (__pthread_once): Likewise.
32394         Update comments.
32395
32396 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
32397
32398         [BZ #14138]
32399         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
32400         name.
32401         (writev): Use __libc_writev as strong name.
32402         * sysdeps/unix/sysv/linux/readv.c: Remove file.
32403         * sysdeps/unix/sysv/linux/writev.c: Likewise.
32404
32405 2014-10-17  Roland McGrath  <roland@hack.frob.com>
32406
32407         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
32408
32409         * sysdeps/i386/nptl/tls.h
32410         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
32411         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
32412         New macros.
32413         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
32414         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
32415         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
32416         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
32417         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
32418         Call CHECK_THREAD_SYSINFO instead of doing an assert.
32419
32420         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32421         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
32422         on [__NR_futex].
32423         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
32424         broken out of ...
32425         (__pthread_mutex_init): ... here.  Call it.
32426         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
32427         Conditionalize PI cases on [__NR_futex].
32428         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
32429         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
32430         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
32431
32432         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
32433         conditional on [SIGSETXID].
32434         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
32435         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
32436         is defined.  Likewise for SIGSETXID.
32437         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
32438         Conditionalize definitions on [SIGSETXID].
32439         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
32440         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
32441         unblocking on [SIGCANCEL].
32442
32443         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
32444         [__NR_set_robust_list].
32445
32446 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
32447
32448         * string/strcoll_l.c (get_next_seq): Fix up formatting.
32449         (do_compare): Likewise.
32450
32451 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
32452
32453         [BZ #15884]
32454         * string/strcoll_l.c: Don't include stdio.h.
32455         (coll_seq): Remove members idxarr and rulearr.
32456         (get_next_seq_cached): Remove function.
32457         (get_next_seq): Likewise.
32458         (get_next_seq_nocache): Rename to get_next_seq.
32459         (do_compare): Remove function.
32460         (do_compare_nocache): Rename to do_compare.
32461         (STRCOLL): Remove weight and rules cache.
32462
32463 2014-10-16  Roland McGrath  <roland@hack.frob.com>
32464
32465         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
32466         * sysdeps/arm/sfp-machine.h: ... to here.
32467         * sysdeps/arm/Implies: Remove arm/soft-fp.
32468
32469 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
32470
32471         * conform/data/sys/utsname.h-data (*_t): Allow.
32472         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
32473         [POSIX] (WEXITED): Do not expect constant.
32474         [POSIX] (WSTOPPED): Likewise.
32475         [POSIX] (WNOHANG): Likewise.
32476         [POSIX] (WNOWAIT): Likewise.
32477         [POSIX] (siginfo_t): Do not expect type or elements.
32478         [POSIX] (pid_t): Do not expect type.
32479         [POSIX] (signal.h): Do not allow header.
32480         [POSIX] (sys/resource.h): Likewise.
32481         [POSIX] (si_*): Do not allow pattern.
32482         [POSIX] (W*): Likewise.
32483         [POSIX] (P_*): Likewise.
32484         [POSIX] (BUS_*): Likewise.
32485         [POSIX] (CLD_*): Likewise.
32486         [POSIX] (FPE_*): Likewise.
32487         [POSIX] (ILL_*): Likewise.
32488         [POSIX] (POLL_*): Likewise.
32489         [POSIX] (SEGV_*): Likewise.
32490         [POSIX] (SI_*): Likewise.
32491         [POSIX] (TRAP_*): Likewise.
32492         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
32493         variable.
32494
32495 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
32496
32497         [BZ #12926]
32498         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
32499         infinite loop when __recvmsg returns 0.
32500
32501 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
32502
32503         * CANCEL-FCT-WAIVE: Remove file.
32504         * CANCEL-FILE-WAIVE: Likewise.
32505
32506         [BZ #14132]
32507         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
32508         instead of INTVARDEF.
32509         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32510         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
32511         rtld_hidden_data_def instead of INTVARDEF.
32512         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32513         * elf/dl-deps.c (expand_dst): Likewise.
32514         * elf/dl-load.c (_dl_dst_count): Likewise.
32515         (_dl_dst_substitute): Likewise.
32516         (decompose_rpath): Likewise.
32517         (_dl_init_paths): Likewise.
32518         (open_path): Likewise.
32519         (_dl_map_object): Likewise.
32520         * elf/rtld.c (dl_main): Likewise.
32521         (process_dl_audit): Likewise.
32522         (process_envvars): Likewise.
32523         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
32524         Remove declaration.
32525         (__libc_enable_secure): Use rtld_hidden_proto.
32526
32527 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32528
32529         * elf/dl-load.c
32530         (add_path): New function broken out of _dl_rtld_di_serinfo.
32531         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
32532
32533 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32534
32535         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
32536         parentheses around macro arguments.
32537         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
32538         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
32539         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
32540         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
32541         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
32542         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32543         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32544         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
32545         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
32546         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
32547         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
32548         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
32549         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
32550         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
32551         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
32552         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
32553         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
32554         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
32555         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
32556         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
32557         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
32558         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
32559         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
32560         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32561         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32562         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
32563         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
32564         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
32565         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
32566         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
32567         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
32568         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
32569         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
32570         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
32571         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
32572         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
32573         Likewise.
32574         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
32575         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32576         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32577         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
32578         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
32579         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
32580         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
32581         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
32582         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
32583         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
32584         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
32585         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
32586         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
32587         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
32588         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
32589         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32590         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32591         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
32592         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
32593         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
32594         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
32595         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
32596         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
32597         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
32598         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
32599         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
32600         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
32601         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
32602         (_FP_FRAC_SRS_1): Likewise.
32603         (_FP_FRAC_CLZ_1): Likewise.
32604         (_FP_MUL_MEAT_1_imm): Likewise.
32605         (_FP_MUL_MEAT_1_wide): Likewise.
32606         (_FP_MUL_MEAT_1_hard): Likewise.
32607         (_FP_SQRT_MEAT_1): Likewise.
32608         (_FP_FRAC_ASSEMBLE_1): Likewise.
32609         (_FP_FRAC_DISASSEMBLE_1): Likewise.
32610         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
32611         (__FP_CLZ_2): Likewise.
32612         (_FP_MUL_MEAT_2_wide): Likewise.
32613         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32614         (_FP_MUL_MEAT_2_gmp): Likewise.
32615         (_FP_MUL_MEAT_2_120_240_double): Likewise.
32616         (_FP_SQRT_MEAT_2): Likewise.
32617         (_FP_FRAC_ASSEMBLE_2): Likewise.
32618         (_FP_FRAC_DISASSEMBLE_2): Likewise.
32619         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
32620         (_FP_FRAC_CLZ_4): Likewise.
32621         (_FP_MUL_MEAT_4_wide): Likewise.
32622         (_FP_MUL_MEAT_4_gmp): Likewise.
32623         (_FP_SQRT_MEAT_4): Likewise.
32624         (_FP_FRAC_ASSEMBLE_4): Likewise.
32625         (_FP_FRAC_DISASSEMBLE_4): Likewise.
32626         * soft-fp/op-common.h (_FP_CMP): Likewise.
32627         (_FP_CMP_EQ): Likewise.
32628         (_FP_CMP_UNORD): Likewise.
32629         (_FP_TO_INT): Likewise.
32630         (_FP_FROM_INT): Likewise.
32631         [!__FP_CLZ] (__FP_CLZ): Likewise.
32632         (_FP_DIV_HELP_imm): Likewise.
32633         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
32634         Likewise.
32635         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
32636         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
32637         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
32638         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
32639         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
32640         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32641         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32642         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
32643         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
32644         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
32645         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
32646         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
32647         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
32648         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
32649         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
32650         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
32651         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
32652         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
32653         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
32654         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
32655         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
32656         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
32657         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
32658         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32659         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32660         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
32661         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
32662         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
32663         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
32664         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
32665         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
32666         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
32667         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
32668         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
32669         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
32670         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
32671         (FP_UNPACK_RAW_SP): Likewise.
32672         (FP_PACK_RAW_S): Likewise.
32673         (FP_PACK_RAW_SP): Likewise.
32674         (FP_UNPACK_S): Likewise.
32675         (FP_UNPACK_SP): Likewise.
32676         (FP_UNPACK_SEMIRAW_S): Likewise.
32677         (FP_UNPACK_SEMIRAW_SP): Likewise.
32678         (FP_PACK_S): Likewise.
32679         (FP_PACK_SP): Likewise.
32680         (FP_PACK_SEMIRAW_S): Likewise.
32681         (FP_PACK_SEMIRAW_SP): Likewise.
32682         (_FP_SQRT_MEAT_S): Likewise.
32683         (FP_CMP_S): Likewise.
32684         (FP_CMP_EQ_S): Likewise.
32685         (FP_CMP_UNORD_S): Likewise.
32686         (FP_TO_INT_S): Likewise.
32687         (FP_FROM_INT_S): Likewise.
32688
32689         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
32690
32691         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
32692         (FP_EX_INVALID_IMZ): Likewise.
32693         (FP_EX_INVALID_IMZ_FMA): Likewise.
32694         (FP_EX_INVALID_ISI): Likewise.
32695         (FP_EX_INVALID_ZDZ): Likewise.
32696         (FP_EX_INVALID_IDI): Likewise.
32697         (FP_EX_INVALID_SQRT): Likewise.
32698         (FP_EX_INVALID_CVI): Likewise.
32699         (FP_EX_INVALID_VC): Likewise.
32700         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
32701         "invalid" exceptions.
32702         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
32703         (_FP_ADD_INTERNAL): Likewise.
32704         (_FP_MUL): Likewise.
32705         (_FP_FMA): Likewise.
32706         (_FP_DIV): Likewise.
32707         (_FP_CMP_CHECK_NAN): Likewise.
32708         (_FP_SQRT): Likewise.
32709         (_FP_TO_INT): Likewise.
32710         (FP_EXTEND): Likewise.
32711
32712 2014-10-09  Allan McRae  <allan@archlinux.org>
32713
32714         * po/fr.po: Update French translation from translation project.
32715
32716 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32717
32718         [BZ #14132]
32719         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
32720         of INTDEF.
32721         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
32722         (__cxa_atexit): Use libc_hidden_proto.
32723         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
32724
32725         [BZ #14132]
32726         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
32727         declaration.
32728         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
32729         [!_ISOMAC] (__iswspace_l_internal): Likewise.
32730         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
32731         [!_ISOMAC] (__iswctype_internal): Likewise.
32732         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
32733         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
32734         alias.
32735         (fcntl): Remove __fcntl_internal alias.
32736         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
32737         __connect_internal alias.
32738         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
32739         Likewise.
32740
32741         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
32742         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
32743         FP_DENORM_ZERO.
32744         (_FP_CHECK_FLUSH_ZERO): New macro.
32745         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
32746         (_FP_CMP): Likewise.
32747         (_FP_CMP_EQ): Likewise.
32748         (_FP_TO_INT): Do not set inexact for subnormal arguments if
32749         FP_DENORM_ZERO.
32750         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
32751         (FP_TRUNC): Likewise.
32752
32753         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
32754         treated as invalid conversion, not as normal exponent.
32755
32756         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
32757         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
32758         (_FP_CMP_EQ): Likewise.
32759         (_FP_CMP_UNORD): Likewise.
32760         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
32761         (FP_CMP_EQ_D): Likewise.
32762         (FP_CMP_UNORD_D): Likewise.
32763         * soft-fp/extended.h (FP_CMP_E): Likewise.
32764         (FP_CMP_EQ_E): Likewise.
32765         (FP_CMP_UNORD_E): Likewise.
32766         * soft-fp/quad.h (FP_CMP_Q): Likewise.
32767         (FP_CMP_EQ_Q): Likewise.
32768         (FP_CMP_UNORD_Q): Likewise.
32769         * soft-fp/single.h (FP_CMP_S): Likewise.
32770         (FP_CMP_EQ_S): Likewise.
32771         (FP_CMP_UNORD_S): Likewise.
32772         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
32773         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
32774         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
32775         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
32776         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
32777         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
32778         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
32779         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
32780         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
32781         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
32782         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
32783         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
32784         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
32785         to FP_CMP_Q.
32786         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
32787         FP_CMP_Q.
32788         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
32789         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
32790         FP_CMP_EQ_Q.
32791         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
32792         FP_CMP_Q.
32793         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
32794         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
32795         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
32796         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
32797         FP_CMP_EQ_Q.
32798         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
32799         FP_CMP_Q.
32800         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
32801         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
32802         FP_CMP_EQ_Q.
32803         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
32804         FP_CMP_Q.
32805         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
32806         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
32807         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
32808         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
32809         FP_CMP_EQ_Q.
32810
32811         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
32812         a subnormal result, set the underflow exception if trapping on
32813         underflow is enabled.
32814         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
32815         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
32816         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
32817         redefine to 0.
32818         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
32819         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32820         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32821         * soft-fp/extendxftf2.c (__extendxftf2): Use
32822         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
32823
32824         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
32825         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
32826         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32827         FP_HANDLE_EXCEPTIONS.
32828         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
32829         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32830         FP_HANDLE_EXCEPTIONS.
32831         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
32832         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32833         FP_HANDLE_EXCEPTIONS.
32834         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
32835         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32836         FP_HANDLE_EXCEPTIONS.
32837
32838 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
32839
32840         [BZ #14132]
32841         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
32842         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
32843         use INTUSE.
32844         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
32845         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
32846         Remove alias.
32847         (__adjtimex): Define using libc_hidden_ver.
32848         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
32849         Remove declaration.
32850         (ntp_gettime): Call __adjtimex directly.
32851         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
32852         Remove declaration.
32853         (ntp_gettimex): Call __adjtimex directly.
32854         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
32855         __adjtimex_internal alias.
32856
32857 2014-10-08  Roland McGrath  <roland@hack.frob.com>
32858
32859         [BZ #17460]
32860         * nscd/nscd.c (more_help): Rewrite list of tables collection
32861         using xstrdup and asprintf.
32862
32863         * nscd/nscd_conf.c: Remove local xstrdup declaration.
32864
32865 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32866             Roland McGrath  <roland@hack.frob.com>
32867
32868         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
32869         (do_lookup_unique): ... local function 'enter' here; update callers.
32870
32871 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
32872
32873         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
32874         compat_symbol calls on [SHARED].
32875         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
32876         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
32877         Remove.
32878         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32879         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
32880         (oldsetrlimit): Remove.
32881         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32883         (lchown): New syscall entry.
32884         (oldsetrlimit): Remove.
32885         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32886         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
32887         (oldsetrlimit): Remove.
32888         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32889
32890         [BZ #14138]
32891         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
32892         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
32893         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
32894         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
32895         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32896         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
32897         (fchown): Likewise.
32898         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
32899         (fchown): Likewise.
32900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
32901         Likewise.
32902
32903 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32904
32905         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
32906         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
32907         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
32908         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
32909         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
32910         Likewise.
32911         (__old_sem_post): Likewise.
32912
32913 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
32914
32915         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
32916         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
32917         HAVE_CLOCK_GETTIME_VSYSCALL macros.
32918         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
32919         Use INLINE_VSYSCALL macro.
32920         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
32921         __vdso_clock_gettime.
32922         * sysdeps/unix/sysv/linux/tile/init-first.c
32923         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
32924         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
32925         __vdso_clock_gettime.
32926
32927         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
32928         to set up frame more cleanly.
32929
32930         * sysdeps/tile/memcmp.c: New file.
32931
32932         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
32933
32934         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
32935         * sysdeps/tile/tilegx/strcasestr.c: New file.
32936         * sysdeps/tile/tilegx/strnlen.c: New file.
32937         * sysdeps/tile/tilegx/strstr.c: New file.
32938
32939         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
32940
32941 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
32942
32943         * nptl/tst-setuid3.c: Write errors to stdout.
32944
32945 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32946
32947         * elf/dl-deps.c
32948         (preload): New functions broken out of _dl_map_object_deps.
32949         (_dl_map_object_deps):  Remove a nested function. Update call sites.
32950
32951 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
32952
32953         [BZ #14138]
32954         * sysdeps/unix/sysv/linux/execve.c: Remove file.
32955         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
32956
32957 2014-10-01  Steve Ellcey  <sellcey@mips.com>
32958
32959         * sysdeps/mips/strcmp.S: New.
32960
32961 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
32962
32963         [BZ #14138]
32964         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
32965         (linkat): Likewise.
32966         (mkdirat): Likewise.
32967         (readlinkat): Likewise.
32968         (renameat): Likewise.
32969         (symlinkat): Likewise.
32970         (unlinkat): Likewise.
32971         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
32972         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
32973         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
32974         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
32975         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
32976         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
32977         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
32978
32979 2014-09-30  Will Newton  <will.newton@linaro.org>
32980
32981         * math/math.h: Define long double math functions if
32982         _LIBC_TEST is defined.
32983         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
32984
32985         * localedata/Makefile: Move assignment to tests-special
32986         into an ifdef testing run-built-tests.
32987         * timezone/Makefile: Likewise.
32988
32989 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
32990
32991         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
32992         with $(BASH) not $(SHELL).
32993
32994 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
32995             Matthew LeGendre  <legendre1@llnl.gov>
32996
32997         [BZ #17411]
32998         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
32999         l_reloc_result.
33000
33001 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33002
33003         * stdio-common/printf_fp.c
33004         (hack_digit): New function, broken out of ...
33005         (__printf_fp): ... local function here.  Update call sites.
33006         hack_digit now takes an additional parameter that is a pointer
33007         to a struct of the referenced locals.  Those locals moved inside
33008         the struct and references updated.
33009
33010 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
33011
33012         * aclocal.m4: Require autoconf 2.69.
33013         * configure: Regenerated.
33014         * sysdeps/aarch64/configure: Likewise.
33015         * sysdeps/alpha/configure: Likewise.
33016         * sysdeps/arm/armv7/configure: Likewise.
33017         * sysdeps/arm/configure: Likewise.
33018         * sysdeps/ia64/configure: Likewise.
33019         * sysdeps/mach/configure: Likewise.
33020         * sysdeps/mips/configure: Likewise.
33021         * sysdeps/s390/configure: Likewise.
33022         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
33023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
33024
33025         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
33026         file.
33027         * sysdeps/ia64/configure.ac: Likewise.
33028
33029 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
33030
33031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
33032         specify symbol version for ld.so.  Do not include entry for
33033         libpthread.
33034         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33035         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33036         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33037
33038         [BZ #14171]
33039         * Makeconfig [$(build-shared) = yes]
33040         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
33041         makefiles.
33042         [$(build-shared) = yes && $(soversions.mk-done) = t]
33043         ($(common-objpfx)gnu/lib-names.h): Remove rule.
33044         [$(build-shared) = yes && $(soversions.mk-done) = t]
33045         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
33046         to Makerules.
33047         [$(build-shared) = yes && $(soversions.mk-done) = t]
33048         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
33049         here.
33050         [$(build-shared) = yes && $(soversions.mk-done) = t]
33051         (common-generated): Don't append gnu/lib-names.h and
33052         gnu/lib-names.stmp here.
33053         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
33054         (lib-names-h-abi): New variable.
33055         [$(build-shared) = yes && $(soversions.mk-done) = t]
33056         (lib-names-stmp-abi): Likewise.
33057         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33058         abi-variants] (before-compile): Append
33059         $(common-objpfx)$(lib-names-h-abi).
33060         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33061         abi-variants] (common-generated): Append gnu/lib-names.h.
33062         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33063         abi-variants] (install-others-nosubdir): Depend on
33064         $(inst_includedir)/$(lib-names-h-abi).
33065         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33066         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
33067         [$(build-shared) = yes && $(soversions.mk-done) = t]
33068         ($(common-objpfx)$(lib-names-h-abi)): New rule.
33069         [$(build-shared) = yes && $(soversions.mk-done) = t]
33070         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
33071         [$(build-shared) = yes && $(soversions.mk-done) = t]
33072         (common-generated): Append $(lib-names-h-abi) and
33073         $(lib-names-stmp-abi).
33074         * scripts/lib-names.awk: Do not handle multi being set.
33075         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
33076         Remove variable.
33077         (abi-lp64_be-ld-soname): Likewise.
33078         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
33079         Likewise.
33080         (abi-hard-ld-soname): Likewise.
33081         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
33082         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
33083         Remove variable.
33084         (abi-o32_hard-ld-soname): Likewise.
33085         (abi-o32_soft_2008-ld-soname): Likewise.
33086         (abi-o32_hard_2008-ld-soname): Likewise.
33087         (abi-n32_soft-ld-soname): Likewise.
33088         (abi-n32_hard-ld-soname): Likewise.
33089         (abi-n32_soft_2008-ld-soname): Likewise.
33090         (abi-n32_hard_2008-ld-soname): Likewise.
33091         (abi-n64_soft-ld-soname): Likewise.
33092         (abi-n64_hard-ld-soname): Likewise.
33093         (abi-n64_soft_2008-ld-soname): Likewise.
33094         (abi-n64_hard_2008-ld-soname): Likewise.
33095         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
33096         Likewise.
33097         (abi-64-v2-ld-soname): Likewise.
33098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
33099         ld.so entries.
33100         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
33101         variable.
33102         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
33103         entry.
33104         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
33105         variable.
33106         (abi-64-ld-soname): Likewise.
33107         (abi-x32-ld-soname): Likewise.
33108         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
33109         entry.
33110         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33111
33112 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
33113
33114         [BZ #14138]
33115         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
33116         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
33117         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
33118         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
33119         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
33120         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
33121         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
33122         syscall entry for GLIBC_2.2 symbol version.
33123         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
33124         Likewise.
33125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33126         (setrlimit): Likewise.
33127         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
33128         Likewise.
33129
33130 2014-09-23  Will Newton  <will.newton@linaro.org>
33131
33132         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
33133         _LINUX_ARM_SYSDEP_H include guard too.
33134         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
33135         define.
33136
33137 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33138
33139         * sysdeps/unix/sysv/linux/eventfd.c:
33140         Make first argument unsigned.
33141         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
33142         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
33143
33144 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
33145
33146         [BZ #16852]
33147         * socket/recvmmsg.c (recvmmsg): Drop const argument.
33148         * socket/sys/socket.h: Likewise.
33149         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
33150
33151 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33152
33153         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
33154
33155 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
33156
33157         * time/tst-ftime.c: New test.
33158         * time/Makefile (tests): Add tst-ftime.
33159
33160 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
33161
33162         * soft-fp/extended.h: Fix comment formatting.
33163         * soft-fp/op-1.h: Likewise.
33164         * soft-fp/op-2.h: Likewise.
33165         * soft-fp/op-4.h: Likewise.
33166         * soft-fp/op-8.h: Likewise.
33167         * soft-fp/op-common.h: Likewise.
33168         * soft-fp/soft-fp.h: Likewise.
33169
33170         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
33171
33172 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
33173
33174         [BZ #6652]
33175         * Makeconfig (soversions-default-setname): Remove variable.
33176         ($(common-objpfx)soversions.i): Don't pass default_setname to
33177         soversions.awk.
33178         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
33179         oldest_abi to abi-versions.awk.
33180         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
33181         * config.make.in (oldest-abi): Remove variable.
33182         * configure.ac (--enable-oldest-abi): Remove configure option.
33183         * configure: Regenerated.
33184         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
33185         text.
33186         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
33187         * scripts/soversions.awk: Do not handle default_setname variable.
33188         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
33189         variable.
33190         * sysdeps/mach/hurd/configure: Regenerated.
33191         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
33192         variable.
33193         * sysdeps/unix/sysv/linux/configure: Regenerated.
33194
33195 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33196
33197         * elf/Makefile (CFLAGS-interp.c): Remove.
33198         ($(elf-objpfx)runtime-linker.h): Generate header with linker
33199         path string.
33200         * elf/interp.c: Include generated runtime-linker.h
33201
33202         * Makerules (lib%.so): Don't include $(+interp) in
33203         prerequisites.
33204         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
33205         * dlfcn/eval.c: Remove file.
33206
33207         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
33208         macros.
33209
33210         [BZ #17266]
33211         * misc/sys/cdefs.h: Define __extern_always_inline for clang
33212         4.2 and newer.
33213
33214         [BZ #17370]
33215         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
33216
33217 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33218             Jakub Jelinek  <jakub@redhat.com>
33219
33220         [BZ #17266]
33221         * libio/stdio.h: Check definition of __fortify_function
33222         instead of __extern_always_inline to include bits/stdio2.h.
33223         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
33224         check if __extern_always_inline is defined.
33225         [__USE_MISC || __USE_XOPEN]: Likewise.
33226         [__USE_ISOC99] Likewise.
33227         * misc/sys/cdefs.h (__fortify_function): Define only if
33228         __extern_always_inline is defined.
33229         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
33230         __extern_always_inline and __extern_inline only for g++-4.3
33231         and newer or a compatible gcc.
33232
33233 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
33234
33235         [BZ #17371]
33236         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
33237         last change to handle zero prefix length.
33238
33239 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33240
33241         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
33242         _SC_REGEX_VERSION.
33243
33244         * posix/getconf.c (vars): Add _POSIX_IPV6 and
33245         _POSIX_RAW_SOCKETS.
33246
33247 2014-09-13  Allan McRae  <allan@archlinux.org>
33248
33249         * po/ru.po: Update Russian translation from translation project.
33250
33251 2014-09-12  Roland McGrath  <roland@hack.frob.com>
33252
33253         * locale/programs/locale.c (show_locale_vars): Inline local function
33254         into its sole call site.  Clean up some style nits.
33255         (print_item): New function, broken out of ...
33256         (show_info): ... local function here.  Clean up style nits.
33257
33258         * locale/programs/ld-ctype.c (set_one_default): New function, broken
33259         out of ...
33260         (set_class_defaults): ... local function set_default here.
33261         Define set_default as a macro locally to pass constant parameters.
33262         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
33263         rather than a shared local.
33264
33265         * stdlib/rpmatch.c (try): New function, broken out of ...
33266         (rpmatch): ... local function here.  Also, prototypify definition.
33267
33268 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
33269
33270         * scripts/soversions.awk: Do not handle configuration names.
33271         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
33272         vendor and os variables to soversions.awk.
33273         * configure.ac: Do not modify gnu-* host_os.
33274         * configure: Regenerated
33275         * shlib-versions: Remove first column with configuration names.
33276         * nptl/shlib-versions: Likewise.
33277         * nptl_db/shlib-versions: Likewise.
33278         * sysdeps/hppa/shlib-versions: Likewise.
33279         * sysdeps/m68k/shlib-versions: Likewise.
33280         * sysdeps/mach/hurd/shlib-versions: Likewise.
33281         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
33282         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
33283         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
33284         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
33285         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
33286         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
33287         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
33288         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
33289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33290         Likewise.
33291         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33292         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33293         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33294         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33295         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33296         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
33297         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33298         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33299
33300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33301         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
33302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33303         Regenerated.
33304         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
33305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33306         Condition symbol version definitions on [HAVE_ELFV2_ABI].
33307
33308         * shlib-versions: Remove OS-specific entries.  Moved to files in
33309         sysdeps.
33310         * sysdeps/mach/hurd/shlib-versions: New file.
33311         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33312
33313         * nptl/shlib-versions: Remove architecture-specific entries.
33314         Moved to files in sysdeps.
33315         * shlib-versions: Likewise.
33316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
33317         file.
33318         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33319         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33320         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33321         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33322
33323         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
33324         (UDP_NO_CHECK6_RX): Likewise.
33325
33326 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33327
33328         * sysdeps/posix/sysconf.c (__sysconf): Spell
33329         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
33330
33331 2014-08-12  Florian Weimer  <fweimer@redhat.com>
33332
33333         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
33334         loading.
33335         * iconv/Versions (__gconv_transliterate): Export for use from
33336         gconv modules.
33337         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
33338         (struct __gconv_trans_data, __gconv_trans_fct,
33339         __gconv_trans_context_fct, __gconv_trans_query_fct,
33340         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
33341         definitions.
33342         (struct __gconv_step_data): Remove __trans member.
33343         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
33344         longer hidden.  Remove unused trans_data argument.
33345         * iconv/gconv_int.h (struct trans_struct): Remove definition.
33346         (__gconv_translit_find): Remove declaration.
33347         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
33348         prototype.
33349         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
33350         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
33351         trans_data argument.  Add hidden definition.
33352         (__gconv_translit_find): Remove.
33353         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
33354         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
33355         * iconv/skeleton.c: Remove transliteration initialization.
33356         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
33357         __gconv_step_data initialization.
33358         * libio/iofwide.c (__libio_translit_): Remove.
33359         (_IO_fwide): Adjust struct __gconv_step_data initialization.
33360         * wcsmbs/btowc.c (__btowc): Likewise.
33361         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33362         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
33363         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
33364         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
33365         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
33366         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
33367         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
33368         * wcsmbs/wctob.c (wctob): Likewise.
33369
33370 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33371
33372         [BZ #16194]
33373         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
33374         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
33375         register usage.
33376         * sysdeps/x86/Makefile: Adjust.
33377
33378 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33379             Roland McGrath  <roland@hack.frob.com>
33380
33381         * locale/weight.h: Add include guard.
33382         (findidx): Make static rather than auto; take new parameters
33383         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
33384         * locale/weightwc.h: Likewise.
33385         * posix/fnmatch_loop.c
33386         (FCT): Change type of EXTRA from int32_t to wint_t.
33387         Don't include either header inside the function.
33388         Call FINDIDX rather than findidx, and pass new arguments.
33389         #undef FINDIDX at the end of the file.
33390         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
33391         FINDIDX before including fnmatch_loop.c for the non-wide version.
33392         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
33393         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
33394         for the wide version.
33395         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
33396         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
33397         Pass new arguments to findidx.
33398         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
33399         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
33400         Don't #include it inside the function.  Pass new arguments to findidx.
33401         * posix/regex_internal.h
33402         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
33403         (re_string_elem_size_at): Don't #include it inside the function.
33404         Pass new arguments to findidx.
33405         * string/strcoll_l.c: #include WEIGHT_H at top level.
33406         (get_next_seq): Don't #include it inside the function.
33407         Pass new arguments to findidx.
33408         (get_next_seq_nocache): Likewise.
33409         * string/strxfrm_l.c: #include WEIGHT_H at top level.
33410         (STRXFRM): Don't #include it inside the function.
33411         Pass new arguments to findidx.
33412
33413 2014-09-11  Florian Weimer  <fweimer@redhat.com>
33414
33415         [BZ #17344]
33416         * malloc/malloc.c (unlink): Turn asserts into a call to
33417         malloc_printerr.
33418
33419 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
33420
33421         [BZ #17370]
33422         * libio/wfileops (do_ftell_wide): Free OUT.
33423
33424 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
33425
33426         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
33427
33428 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33429
33430         [BZ #17363]
33431         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
33432         group if the current group is empty.
33433
33434 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33435
33436         * benchtests/bench-memset.c (test_main): Add more test from size
33437         from 32 to 512 bytes.
33438         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33439         Add POWER8 memset object.
33440         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
33441         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
33442         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
33443         implementation.
33444         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
33445         Likewise.
33446         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
33447         multiarch POWER8 memset optimization.
33448         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
33449         POWER8 memset optimization.
33450
33451         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33452         Remove bzero multiarch objects.
33453         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
33454         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
33455         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
33456         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
33457         Remove define.
33458         [__bzero]: Redefine to specific name.
33459         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
33460         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
33461         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
33462         define.
33463         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
33464         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
33465
33466 2014-09-10  Florian Weimer  <fweimer@redhat.com>
33467
33468         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
33469         warnings into errors.
33470
33471         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
33472         __cxa_thread_atexit_impl prototype.
33473
33474 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33475
33476         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
33477         Fix capitalization of error message.
33478
33479 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33480
33481         * sysdeps/mips/preconfigure: Modify ABI tests.
33482
33483 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
33484
33485         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
33486
33487 2014-09-07  Roland McGrath  <roland@hack.frob.com>
33488             Carlos O'Donell  <carlos@systemhalted.org>
33489
33490         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
33491         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
33492         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
33493         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
33494         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
33495         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
33496         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
33497         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
33498         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
33499         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
33500         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
33501         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
33502         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
33503         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
33504         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
33505         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
33506         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
33507         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
33508         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
33509         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
33510         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
33511         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
33512         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
33513         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
33514         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
33515         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
33516         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
33517         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
33518         Deconditionalize the code that was previously under [RESET_PID].
33519         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
33520         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
33521         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
33522         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
33523         include sysdep.h.
33524
33525 2014-09-08  Allan McRae  <allan@archlinux.org>
33526
33527         * version.h (RELEASE): Set to "development".
33528         (VERSION): Set to "2.20.90"
33529
33530 2014-09-07  Allan McRae  <allan@archlinux.org
33531
33532         * version.h (RELEASE): Set to "stable".
33533         (VERSION): Set to "2.20"
33534         * include/features.h (__GLIBC_MINOR__): Set to 20.
33535
33536         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
33537         Liebler.
33538
33539         * po/ko.po: Update Korean translation from translation project.
33540
33541 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
33542
33543         [BZ #17354]
33544         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
33545         macro for handling signed relocations.
33546
33547 2014-09-03  Florian Weimer  <fweimer@redhat.com>
33548
33549         [BZ #17325]
33550         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
33551         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
33552         assert.
33553         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
33554         * iconvdata/ibm935.c (BODY): Likewise.
33555         * iconvdata/ibm937.c (BODY): Likewise.
33556         * iconvdata/ibm939.c (BODY): Likewise.
33557         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
33558         assert.
33559         * iconvdata/Makefile (iconv-test.out): Pass module list to test
33560         script.
33561         * iconvdata/run-iconv-test.sh: New test loop for checking for
33562         decoder crashers.
33563
33564 2014-09-02  Khem Raj  <raj.khem@gmail.com>
33565
33566         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
33567         libm_hidden_ver.
33568
33569 2014-09-01  Allan McRae  <allan@archlinux.org>
33570
33571         * po/eo.po: Update Esperanto translation from translation project.
33572
33573         * po/ca.po: Update Catalan translation from translation project.
33574
33575 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33576
33577         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
33578         __proc_dostop call.
33579
33580 2014-08-27  Mark Wielaard  <mjw@redhat.com>
33581
33582         [BZ #17319]
33583         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
33584         to call set_thread_area instead of hand written asm.
33585         (__NR_set_thread_area): Removed define.
33586         (TLS_FLAG_WRITABLE): Likewise.
33587         (__ASSUME_SET_THREAD_AREA): Remove check.
33588         (TLS_EBX_ARG): Remove define.
33589         (TLS_LOAD_EBX): Likewise.
33590
33591 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33592
33593         Simplify atomicity of socket creation in bind.
33594
33595         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
33596         looking up the name after linking the file.
33597
33598 2014-08-27  Allan McRae  <allan@archlinux.org>
33599
33600         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
33601
33602 2014-08-26  Florian Weimer  <fweimer@redhat.com>
33603
33604         [BZ #17187]
33605         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
33606         trans_compare, open_translit, __gconv_translit_find):
33607         Remove module loading code.
33608
33609 2014-08-26  Allan McRae  <allan@archlinux.org>
33610
33611         * po/vi.po: Update Vietnamese translation from translation project.
33612
33613         * po/uk.po: Update Ukrainian translation from translation project.
33614
33615         * po/fr.po: Update French translation from translation project.
33616
33617         * po/ru.po: Update Russian translation from translation project.
33618
33619         * po/pl.po: Update Polish translation from translation project.
33620
33621         * po/cs.po: Update Czech translation from translation project.
33622
33623         * po/de.po: Update German translation from translation project.
33624
33625         * po/bg.po: Update Bulgarian translation from translation project.
33626
33627         * po/sv.po: Update Sweedish translation from translation project.
33628
33629         * po/nl.po: Update Dutch translation from translation project.
33630
33631         * po/es.po: Update Spanish translation from translation project.
33632
33633 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
33634
33635         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
33636
33637         * catgets/Makefile (CPPFLAGS-gencat): Remove.
33638         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
33639         (CPPFLAGS-iconvconfig): Likewise.
33640         * timezone/Makefile (CPPFLAGS-zic): Likewise.
33641
33642         * include/libc-symbols.h: Remove unnecessary check for
33643         NOT_IN_libc.
33644         * nptl/pthreadP.h: Likewise.
33645         * sysdeps/aarch64/setjmp.S: Likewise.
33646         * sysdeps/alpha/setjmp.S: Likewise.
33647         * sysdeps/arm/sysdep.h: Likewise.
33648         * sysdeps/i386/setjmp.S: Likewise.
33649         * sysdeps/m68k/setjmp.c: Likewise.
33650         * sysdeps/posix/getcwd.c: Likewise.
33651         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
33652         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
33653         * sysdeps/s390/s390-32/setjmp.S: Likewise.
33654         * sysdeps/s390/s390-64/setjmp.S: Likewise.
33655         * sysdeps/sh/sh3/setjmp.S: Likewise.
33656         * sysdeps/sh/sh4/setjmp.S: Likewise.
33657         * sysdeps/unix/alpha/sysdep.h: Likewise.
33658         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
33659         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33660         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
33661         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
33662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
33663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
33664         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33665         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33666         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33667         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33668         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33669         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
33670         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33671         * sysdeps/x86_64/setjmp.S: Likewise.
33672
33673 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
33674
33675         [BZ #17263]
33676         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
33677         <stdint.h>.
33678         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
33679         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
33680
33681 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
33682
33683         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
33684
33685         [BZ #17262]
33686         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
33687         and __x86_64__ when disabling x87 inline functions.
33688
33689 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33690
33691         [BZ #17259]
33692         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
33693         asm statement with __cpuid_count.
33694
33695 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
33696
33697         * configure.ac: Change __ehdr_start code to dereference the struct.
33698         Run readelf on the output to look for relocations.
33699         * configure: Regenerated.
33700
33701 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
33702
33703         [BZ #17261]
33704         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
33705         value to 0.
33706         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
33707
33708 2014-08-12  Roland McGrath  <roland@hack.frob.com>
33709
33710         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
33711
33712 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
33713
33714         [BZ #16892]
33715         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
33716         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
33717
33718 2014-08-12  Sean Anderson  <seanga2@gmail.com>
33719
33720         * malloc/malloc.c: Fix typo in comment.
33721
33722 2014-08-09  Allan McRae  <allan@archlinux.org>
33723
33724         * Regenerate libc.po.
33725
33726 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
33727
33728         * intl/tst-gettext2.sh: Check every lang file for creation.
33729
33730 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33731
33732         * sysdeps/aarch64/fpu/math_private.h
33733         (libc_feholdsetround_noex_aarch64_ctx): New function.
33734
33735 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33736
33737         * sysdeps/arm/armv6/strcpy.S (strcpy):
33738         Fix performance issue in misaligned cases.
33739
33740 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33741
33742         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
33743         Move definition from termios.h.
33744         (struct termio): Likewise.
33745         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33746         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33747         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33748         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33749         Likewise.
33750         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
33751         Move definition to ioctl-types.h
33752         (struct termio): Likewise.
33753         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33754         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33755         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33756         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33757         Likewise.
33758
33759 2014-08-05  Richard Henderson  <rth@redhat.com>
33760
33761         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
33762         exceptions.
33763         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
33764         Add fraiseexcpt.
33765         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
33766         Use __feraiseexcept.
33767         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
33768         Protect libm symbols with IS_IN_libm.
33769
33770         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
33771
33772 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
33773
33774         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
33775
33776 2014-08-04  Will Newton  <will.newton@linaro.org>
33777
33778         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
33779         file.
33780
33781 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
33782
33783         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
33784         variants for each function.
33785
33786 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33787
33788         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
33789         appended ...
33790         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
33791         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
33792         appended ...
33793         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
33794         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
33795         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
33796         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
33797         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
33798         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
33799         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
33800         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
33801         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
33802         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
33803         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
33804         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
33805         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
33806         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
33807         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
33808         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
33809         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
33810         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
33811         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
33812         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
33813         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
33814         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
33815         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
33816         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
33817         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
33818         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
33819         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
33820         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
33821         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
33822         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
33823         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
33824         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
33825         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
33826         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
33827         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
33828         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
33829         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
33830         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
33831         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
33832         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
33833         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
33834         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
33835         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
33836         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
33837         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
33838         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
33839         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
33840         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
33841         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
33842         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
33843         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
33844         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
33845         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
33846         Update #include.
33847         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
33848         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
33849
33850 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33851
33852         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
33853         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
33854         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
33855         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
33856         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
33857         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
33858
33859 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33860
33861         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
33862         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
33863         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
33864         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
33865
33866 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33867
33868         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
33869         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
33870         (__libc_vfork): Define function under this name.
33871         (__vfork): Define as an alias.
33872         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
33873         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
33874
33875 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33876
33877         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
33878         that was previously under [RESET_PID].
33879         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
33880
33881 2014-08-04  Andreas Schwab  <schwab@suse.de>
33882
33883         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
33884
33885 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
33886
33887         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
33888         (main): Likewise.
33889
33890 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33891
33892         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
33893
33894 2014-08-01  Richard Henderon  <rth@redhat.com>
33895
33896         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
33897         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
33898         typo in exact zero test.
33899         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33900         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
33901         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33902
33903 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33904
33905         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
33906         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
33907         * sysdeps/arm/sysdep.h: ... here.
33908         [!__ASSEMBLER__]: Include <stdint.h>.
33909
33910 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33911
33912         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
33913         (HAVE_WCTYPE_H): Likewise.
33914         (HAVE_ISWCTYPE): Likewise.
33915         (ENABLE_NLS): Likewise.
33916         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
33917         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
33918
33919         * posix/regex_internal.c: Check if DEBUG is defined and is
33920         set.
33921
33922         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
33923         (HAVE_MBSRTOWCS): Likewise.
33924         * posix/fnmatch.c: Include string.h unconditionally.
33925
33926 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
33927
33928         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
33929         reversal.
33930
33931 2014-07-31  Roland McGrath  <roland@hack.frob.com>
33932
33933         * sysdeps/generic/safe-fatal.h: New file.
33934         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
33935         * nptl/forward.c: Include it.
33936         (__pthread_unwind): Use __safe_fatal as default action, rather
33937         than a bogus use of INTERNAL_SYSCALL that could never work.
33938
33939         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
33940         * configure.ac (libc_cv_builtin_trap): New test.
33941         * configure: Regenerated.
33942         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
33943         (ABORT_INSTRUCTION): Define using __builtin_trap.
33944
33945         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
33946         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
33947         * sysdeps/nptl/nptl-signals.h: New file.
33948         * nptl/pthreadP.h: Include <nptl-signals.h>.
33949
33950 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33951
33952         * sysdeps/s390/s390-64/utf16-utf32-z9.c
33953         (ONE_DIRECTION): Define.
33954         * sysdeps/s390/s390-64/utf8-utf16-z9.c
33955         (ONE_DIRECTION): Define.
33956         * sysdeps/s390/s390-64/utf8-utf32-z9.c
33957         (ONE_DIRECTION): Define.
33958
33959 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33960
33961         * sysdeps/s390/Makefile: Delete file.
33962         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
33963         * sysdeps/s390/__longjmp.c: Delete file.
33964         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
33965         Remove fields __flags and __reserved.
33966         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
33967         and add versioning.
33968         * sysdeps/s390/rtld-__longjmp.c: Delete file.
33969         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
33970         * sysdeps/s390/rtld-setjmp.S: Likewise.
33971         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
33972         * sysdeps/s390/s390-32/__longjmp.c: ... here.
33973         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
33974         * sysdeps/s390/s390-32/setjmp.S: ... here.
33975         Add versioning.
33976         (__sigsetjmp): Remove setting __flags field.
33977         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
33978         * sysdeps/s390/s390-64/__longjmp.c: ... here.
33979         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
33980         * sysdeps/s390/s390-64/setjmp.S: ... here.
33981         Add versioning.
33982         (__sigsetjmp): Remove setting __flags field.
33983         * sysdeps/s390/setjmp.S: Delete file.
33984         * sysdeps/s390/sigjmp.c: Likewise.
33985         * sysdeps/s390/v1-longjmp.c: Likewise.
33986         * sysdeps/s390/v1-setjmp.h: Likewise.
33987         * sysdeps/s390/v1-sigjmp.c: Likewise.
33988         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
33989         Remove v1-longjmp_chk.
33990         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
33991         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
33992         Include debug/longjmp_chk.c and add versioning.
33993         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
33994         Include nptl/pt-longjmp.c and add versioning.
33995         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
33996         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
33997         Include __longjmp.c.
33998         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
33999         Move to ...
34000         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
34001         (__getcontext): Remove setting __flags field.
34002         Add versioning.
34003         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
34004         Don't restore upper high grps.
34005         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
34006         Likewise.
34007         (__swapcontext): Remove setting uc_flags field.
34008         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
34009         Delete file.
34010         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
34011         Include __longjmp.c.
34012         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
34013         Move to ...
34014         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
34015         (__getcontext): Remove setting __flags field.
34016         Add versioning.
34017         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
34018         (__swapcontext): Remove setting uc_flags field.
34019         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
34020         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
34021         Remove fields uc_high_gprs and __reserved.
34022         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
34023         New file with reverted content.
34024         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
34025         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
34026         Regenerated.
34027         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
34028         Regenerated.
34029
34030 2014-07-31  Andreas Schwab  <schwab@suse.de>
34031
34032         * config.h.in (HAVE_IFUNC): Define to 0.
34033         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
34034         definedness.
34035
34036 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
34037
34038         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34039         memmove-avx-unaligned, memcpy-avx-unaligned and
34040         mempcpy-avx-unaligned.
34041         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34042         Add tests for AVX memcpy functions.
34043         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
34044         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
34045         memcpy_chk.
34046         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
34047         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
34048         memmove_chk.
34049         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
34050         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
34051         mempcpy_chk.
34052         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
34053         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
34054         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
34055
34056 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34057
34058         [BZ #17213]
34059         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
34060         powerpc64le.
34061
34062 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
34063
34064         [BZ #16839]
34065         * manual/llio.texi: Add section about open file description locks.
34066         * manual/examples/ofdlocks.c: Example of open file description
34067         lock usage.
34068         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
34069         F_OFD_SETLK, and F_OFD_SETLKW.
34070
34071 2014-07-23  Allan McRae  <allan@archlinux.org>
34072
34073         * po/es.po: Update Spanish translation from translation project.
34074
34075 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
34076
34077         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
34078
34079 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
34080
34081         [BZ #17078]
34082         * sysdeps/arm/dl-machine.h (elf_machine_rela)
34083         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
34084         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
34085
34086 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
34087
34088         [BZ #17088]
34089         * math/fesetenv.c (__fesetenv)
34090         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
34091         * math/feupdateenv.c (__feupdateenv)
34092         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
34093
34094         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
34095         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
34096         (__ASSUME_SOCKETCALL): Do not define.
34097
34098         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
34099         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
34100         (__ASSUME_SOCKETCALL): Do not define.
34101         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
34102         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34103         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34104         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34105         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34106         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
34107         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34108         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34109
34110         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
34111         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
34112         (__ASSUME_SOCKETCALL): Do not define.
34113         (__ASSUME_IPC64): Define unconditionally.
34114         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34115         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34116         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34117         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34118         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
34119         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34120         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
34121         Likewise.
34122
34123         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
34124         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
34125         (__ASSUME_SOCKETCALL): Do not define.
34126         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
34127         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34128         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34129         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
34130         (__ASSUME_REQUEUE_PI): Define unconditionally.
34131         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
34132         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
34133         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34134         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
34135         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34136         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34137
34138         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
34139         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
34140         (__ASSUME_SOCKETCALL): Do not define.
34141         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
34142         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34143         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34144         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
34145         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34146         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34147
34148         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
34149         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
34150         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34151         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
34152         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34153         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
34154         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34155         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
34156         (__ASSUME_GETCPU_SYSCALL): Likewise.
34157
34158         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
34159         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
34160         cases for individual architectures.
34161         * sysdeps/gnu/configure: Regenerated.
34162         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
34163         LIBC_SLIBDIR_RTLDDIR.
34164         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
34165         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
34166         LIBC_SLIBDIR_RTLDDIR.
34167         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
34168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
34169         LIBC_SLIBDIR_RTLDDIR.
34170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
34171         Regenerated.
34172         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
34173         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
34174         file.
34175         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
34176         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
34177         file.
34178         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
34179         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
34180         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
34181         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
34182
34183         * sysdeps/aarch64/shlib-versions: Move to ...
34184         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
34185         * sysdeps/alpha/shlib-versions: Move to ...
34186         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
34187         * sysdeps/arm/shlib-versions: Move to ...
34188         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
34189         * sysdeps/hppa/shlib-versions: Move all contents except for
34190         libgcc_s entry to ...
34191         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
34192         entry from ...
34193         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
34194         * sysdeps/ia64/shlib-versions: Move to ...
34195         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
34196         entry from ...
34197         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
34198         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
34199         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
34200         * sysdeps/microblaze/shlib-versions: Move to ...
34201         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
34202         * sysdeps/mips/shlib-versions: Move to ...
34203         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
34204         entry from ...
34205         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
34206         * sysdeps/tile/shlib-versions: Move to ...
34207         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
34208         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
34209         from ...
34210         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
34211         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
34212         entry from ...
34213         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
34214
34215 2014-07-17  Will Newton  <will.newton@linaro.org>
34216
34217         * sysdeps/arm/bits/atomic.h
34218         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
34219         (__arch_compare_and_exchange_bool_16_int): Likewise.
34220         (__arch_compare_and_exchange_bool_64_int): Likewise.
34221
34222         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
34223         into an #else block.
34224
34225 2014-07-16  Roland McGrath  <roland@hack.frob.com>
34226
34227         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
34228         just Linux configurations.  Test empirically that the compiler sets
34229         __ARM_EABI__, rather than using the tuple to decide.
34230         * sysdeps/arm/preconfigure: Regenerated.
34231         * sysdeps/unix/sysv/linux/arm/configure: File removed.
34232         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
34233         contents appended ...
34234         * sysdeps/arm/configure.ac: ... here.
34235         * sysdeps/arm/configure: Regenerated.
34236
34237 2014-07-15  Roland McGrath  <roland@hack.frob.com>
34238
34239         * nptl/pthread_kill.c: New file.
34240         * nptl/pthread_sigmask.c: New file.
34241         * nptl/pthread_sigqueue.c: New file.
34242
34243         * sysdeps/nptl/lowlevellock.h: New file.
34244         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
34245         * sysdeps/nptl/lowlevellock-futex.h: New file.
34246
34247         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
34248         Remove dead declarations.
34249
34250 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
34251
34252         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
34253         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
34254         config-cflags-avx2.
34255         * sysdeps/x86_64/configure.ac: Likewise.
34256         * sysdeps/i386/configure: Regenerated.
34257         * sysdeps/x86_64/configure: Likewise.
34258         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34259         memset-avx2 only if config-cflags-avx2 is yes.
34260         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34261         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
34262         defined.
34263         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
34264         only if HAVE_AVX2_SUPPORT is defined.
34265         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
34266
34267 2014-07-14  Alan Modra  <amodra@gmail.com>
34268
34269         [BZ #17153]
34270         * elf/elf.h (DT_PPC64_NUM): Correct value.
34271         * NEWS: Add to fixed bug list.
34272
34273 2014-07-13  Jim Meyering  <meyering@fb.com>
34274
34275         [BZ 17150]
34276         regex: don't deref NULL upon heap allocation failure
34277         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
34278         failure in one more place.
34279         To trigger the segfault, configure grep -with-included-regex,
34280         build it, and run these commands:
34281         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
34282
34283 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
34284
34285         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34286
34287 2014-07-11  Richard Henderson  <rth@redhat.com>
34288
34289         * sysdeps/aarch64/libm-test-ulps: Update.
34290
34291 2014-07-10  Florian Weimer  <fweimer@redhat.com>
34292
34293         [BZ #17135]
34294         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
34295         * nptl/allocatestack.c (__nptl_setxid_error): New function.
34296         (__nptl_setxid): Initialize error member.  Call
34297         __nptl_setxid_error.
34298         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
34299         * nptl/descr.h (struct xid_command): Add error member.
34300         * nptl/tst-setuid3.c: New file.
34301         * nptl/Makefile (tests): Add it.
34302
34303 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34304
34305         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
34306         New define.
34307         (__lll_trylock): Use __lll_base_trylock.
34308         (__lll_cond_trylock): Likewise.
34309
34310 2014-07-10  Roland McGrath  <roland@hack.frob.com>
34311
34312         * nptl/pthread_create.c (start_thread): Use atomic_or and
34313         lll_futex_wake directly rather than lll_robust_dead.
34314         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34315         (lll_robust_dead): Macro removed.
34316         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
34317         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34318         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34319         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34320         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34321         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34322         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34323         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34324         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34325         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34326         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34327         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34328         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34329         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34330         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34331
34332         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
34333         Use atomic_compare_and_exchange_val_acq directly rather than
34334         lll_robust_trylock.
34335         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34336         (__lll_robust_trylock, lll_robust_trylock): Removed.
34337         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34338         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34339         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34340         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34341         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34342         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34343         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34344         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34345         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34346         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34347         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34348         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34349         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34350         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34351
34352 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34353
34354         * manual/locale.texi (Locale Names): New section documenting
34355         locale name syntax.  Adjust menu and node chaining accordingly.
34356         (Choosing Locale): Reference Locale Names, Locale Categories.
34357         Mention setting LC_ALL=C.  Reflect that name syntax is now
34358         documented.
34359         (Locale Categories): New section title.  Reference Locale Names.
34360         LC_ALL is an environment variable, but not a category.
34361         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
34362         description, now in Locale Name.  Reference that section.  Locale
34363         name syntax is now documented.
34364
34365 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34366
34367         [BZ #17137]
34368         * locale/findlocale.c (name_present, valid_locale_name): New
34369         functions.
34370         (_nl_find_locale): Use the loc_name variable to store name
34371         candidates.  Call name_present and valid_locale_name to check and
34372         validate locale names.  Return an error if the locale is invalid.
34373
34374 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34375
34376         * locale/setlocale.c (setlocale): Use strdup for allocating
34377         composite name copy.
34378
34379 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34380
34381         Sync up with gnulib.
34382         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
34383         [!_LIBC && ENABLE_NLS]: Include gettext.h.
34384         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
34385         and _GL_ARG_NONNULL.
34386         [USE_UNLOCKED_IO]: Include unlocked-io.h.
34387         [!_LIBC]: Include code for Windows and Cygwin.
34388         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
34389         Include prototype for int strerror_r.
34390         [!_LIBC] (is_open): New function.
34391         (flush_stdout): New function.
34392         (print_errno_message): Use it.
34393         (error): Likewise.
34394         (error_at_line): Likewise.
34395         (error_tail) Add function attribute macros.  Use
34396         __builtin_expect.
34397
34398         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
34399
34400         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
34401
34402         * io/ftw.c: Include sys/param.h unconditionally.
34403
34404         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
34405
34406         [BZ #17125]
34407         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
34408         libc_freeres_ptr.
34409         (freecache): New function to free CACHE on exit.
34410
34411         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
34412         initialization.
34413
34414 2014-07-09  David S. Miller  <davem@davemloft.net>
34415
34416         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34417
34418         * sysdeps/sparc/nptl/internaltypes.h: Delete.
34419         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
34420         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
34421         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
34422         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
34423         * sysdeps/sparc/nptl/sem_init.c: Likewise.
34424         * sysdeps/sparc/nptl/sem_post.c: Likewise.
34425         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
34426         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
34427         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
34428         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
34429         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
34430         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
34431
34432 2014-07-09  Andreas Schwab  <schwab@suse.de>
34433
34434         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
34435         output.
34436         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
34437         (do_test): Likewise.
34438
34439         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34440
34441 2014-07-09  Will Newton  <will.newton@linaro.org>
34442
34443         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
34444         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
34445         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34446         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34447         * sysdeps/hppa/start.S (_start): Likewise.
34448
34449 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
34450
34451         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
34452
34453         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
34454         defined.
34455
34456 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34457
34458         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
34459         after checking that it is non-NULL.
34460
34461         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
34462
34463 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34464
34465         * sysdeps/powerpc/memmove.c: Remove file.
34466         * sysdeps/powerpc/powerpc32/power4/memcopy.h
34467         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
34468         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34469         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
34470         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
34471         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
34472         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
34473         string memmove instead of removed powerpc one.
34474
34475         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
34476         [weak_alias]: Fix compiler warning due trailing data.
34477         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
34478         [weak_alias]: Likewise.
34479         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
34480         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
34481
34482         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
34483         (__libc_ifunc_impl_list): Add memmove functions.
34484
34485 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34486
34487         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
34488         Remove code.
34489         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
34490         Likewise.
34491         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
34492         Likewise.
34493         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
34494         Likewise.
34495         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
34496         Likewise.
34497         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
34498         Likewise.
34499         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
34500         Likewise.
34501         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
34502         Likewise.
34503         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
34504         Likewise.
34505         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
34506         Likewise.
34507         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
34508         Likewise.
34509         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
34510         Likewise.
34511         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
34512         Likewise.
34513         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
34514         Likewise.
34515         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
34516         Likewise.
34517         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
34518         Likewise.
34519         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
34520         Likewise.
34521
34522 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34523
34524         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
34525         to avoid alignment traps in non-cacheable memory.
34526         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
34527
34528         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
34529         multiarch objects.
34530         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
34531         file: multiarch power7 memmove.
34532         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
34533         multiarch default memmove.
34534         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
34535         multiarch memove for powerpc32/power4.
34536
34537         * string/bcopy.c: Use full path to include memmove.c.
34538         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
34539         multiarch objects.
34540         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
34541         bcopy for powerpc64.
34542         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
34543         bcopy for powerpc64.
34544         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
34545         and memmove implementations.
34546         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
34547         optimized multiarch memmove for POWER7/powerpc64.
34548         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
34549         default multiarch memmove for powerpc64.
34550         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
34551         multiarch for powerpc64.
34552         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
34553         for POWER7/powerpc64.
34554         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
34555         memmove for POWER7/powerpc64.
34556
34557         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
34558         glibc default one.
34559
34560         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
34561         __ELF_NATIVE_CLASS equal to 64.
34562
34563 2014-07-07  Roland McGrath  <roland@hack.frob.com>
34564
34565         * sysdeps/nptl/lowlevellock.h: File removed.
34566
34567         * NEWS: NPTL is no longer an add-on!
34568         * nptl/internaltypes.h: Moved ...
34569         * sysdeps/nptl/internaltypes.h: ... here.
34570         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
34571         * sysdeps/nptl/fork.c: Likewise.
34572         * sysdeps/nptl/gai_misc.h: Likewise.
34573         * sysdeps/nptl/librt-cancellation.c: Likewise.
34574         * sysdeps/nptl/jmp-unwind.c: Likewise.
34575         * sysdeps/nptl/setxid.h: Likewise.
34576         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
34577         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
34578         * sysdeps/unix/sysv/linux/arm/Implies: New file.
34579         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
34580         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
34581         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
34582         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
34583         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
34584         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
34585         * sysdeps/unix/sysv/linux/mips/Implies: New file.
34586         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
34587         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
34588         * sysdeps/unix/sysv/linux/sh/Implies: New file.
34589         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
34590         * sysdeps/unix/sysv/linux/tile/Implies: New file.
34591         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
34592         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
34593         * nptl/Makeconfig: Moved ...
34594         * sysdeps/nptl/Makeconfig: ... here.
34595         * nptl/configure: File removed.
34596         * nptl/ANNOUNCE: File removed.
34597         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
34598         * sysdeps/unix/sysv/linux/configure: Regenerated.
34599
34600         * nptl/Makefile (routines): Add libc_pthread_init,
34601         libc_multiple_threads, register-atfork and unregister-atfork.
34602         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
34603         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
34604         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
34605         pthread-pi-defines.sym, structsem.sym.
34606         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
34607         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
34608         [$(subdir) = nptl] (tests): Add tst-setgetname.
34609         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
34610         * sysdeps/unix/sysv/linux/sigaction.c: Just include
34611         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
34612         [!LIBC_SIGACTION]: Remove aliases.
34613         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
34614         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
34615         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34616         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
34617         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
34618         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
34619         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
34620         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
34621         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
34622         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
34623         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
34624         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
34625         __libc_allocate_rtsig_private.
34626         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
34627         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
34628         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
34629         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
34630         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
34631         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
34632         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
34633         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
34634         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
34635         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
34636         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
34637         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
34638         * nptl/internaltypes.h: ... here.
34639         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
34640         * sysdeps/nptl/jmp-unwind.c: ... here.
34641         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
34642         * nptl/libc-lowlevellock.c: ... here.
34643         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
34644         * nptl/libc_multiple_threads.c: ... here.
34645         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
34646         * nptl/libc_pthread_init.c: ... here.
34647         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
34648         * nptl/lowlevelbarrier.sym: ... here.
34649         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
34650         * nptl/lowlevelcond.sym: ... here.
34651         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
34652         * nptl/lowlevellock.c: ... here.
34653         * nptl/lowlevellock.h: Moved ...
34654         * sysdeps/nptl/lowlevellock.h: ... here.
34655         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
34656         * nptl/lowlevelrobustlock.c: ... here.
34657         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
34658         * nptl/lowlevelrobustlock.sym: ... here.
34659         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
34660         * nptl/lowlevelrwlock.sym: ... here.
34661         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
34662         * nptl/pt-fork.c: ... here.
34663         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
34664         * nptl/pthread-pi-defines.sym: ... here.
34665         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
34666         * nptl/pthread_attr_getaffinity.c: ... here.
34667         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
34668         * nptl/pthread_attr_setaffinity.c: ... here.
34669         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
34670         * nptl/pthread_mutex_cond_lock.c: ... here.
34671         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34672         Update #include.
34673         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
34674         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
34675         * nptl/pthread_once.c: ... here, replacing old file.
34676         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
34677         * nptl/pthread_yield.c: ... here.
34678         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
34679         * nptl/register-atfork.c: ... here.
34680         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
34681         * nptl/sem_post.c: ... here.
34682         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
34683         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
34684         * nptl/sem_timedwait.c: ... here.
34685         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
34686         * nptl/sem_trywait.c: ... here.
34687         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
34688         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
34689         * nptl/sem_wait.c: ... here.
34690         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
34691         * nptl/structsem.sym: ... here.
34692         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
34693         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
34694         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
34695         * nptl/unregister-atfork.c: ... here.
34696         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
34697         * nptl/unwindbuf.sym: ... here.
34698         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
34699         * sysdeps/nptl/fork.c: ... here.
34700         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
34701         * sysdeps/nptl/fork.h: ... here.
34702         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
34703         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
34704         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
34705         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
34706         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
34707         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
34708         * sysdeps/unix/sysv/linux/getpid.c: ... here.
34709         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
34710         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
34711         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
34712         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
34713         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
34714         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
34715         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
34716         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
34717         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
34718         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
34719         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
34720         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
34721         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
34722         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
34723         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
34724         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
34725         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
34726         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
34727         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
34728         * sysdeps/unix/sysv/linux/raise.c: ... here.
34729         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
34730         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
34731         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
34732         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
34733         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
34734         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
34735         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
34736         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
34737         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
34738         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
34739         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
34740         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
34741         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
34742         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
34743         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
34744
34745 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
34746
34747         * sysdeps/generic/memcopy.h: Add comment for
34748         MEMCPY_OK_FOR_FWD_MEMMOVE.
34749
34750 2014-07-04  Will Newton  <will.newton@linaro.org>
34751
34752         * string/memchr.c: Merge from gnulib.
34753         [_LIBC]: Remove conditionals.
34754         (__ptr_t): Remove define.
34755         (LONG_MAX_32_BITS): Likewise.
34756         (LONG_MAX): Likewise.
34757         (MEMCHR): Use ANSI prototype and optimize algorithm.
34758
34759         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
34760
34761 2014-07-03  Roland McGrath  <roland@hack.frob.com>
34762
34763         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
34764         (lll_futex_timed_wait_bitset): Fix syscall argument count.
34765
34766         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
34767         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
34768         in a bare environment with no <stdlib.h> installed.
34769         * sysdeps/nptl/configure: Regenerated.
34770
34771         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
34772
34773         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
34774         AC_EGREP_CPP for kernel header checks, so they only succeed if
34775         including <linux/version.h> actually works right.
34776         * sysdeps/unix/sysv/linux/configure: Regenerated.
34777
34778         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
34779         value so it's not diagnosed as unused.
34780
34781         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
34782         thing) with "ifeq ($(subdir),rt)".
34783
34784 2014-07-03  Richard Henderson  <rth@redhat.com>
34785
34786         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
34787         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
34788         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
34789
34790         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
34791         (math_force_eval): New.
34792
34793         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
34794         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
34795
34796         * sysdeps/alpha/fpu/s_round.c: Remove file.
34797         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
34798
34799         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
34800         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
34801         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
34802         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
34803         (_dl_start, print_statistics): Likewise.
34804         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
34805         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
34806
34807         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34808         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34809         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34810         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34811         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34812         (HP_SMALL_TIMING_AVAIL): Define.
34813         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34814         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34815         (HP_SMALL_TIMING_AVAIL): Define.
34816         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34817         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34818
34819         * sysdeps/aarch64/hp-timing.h: New file.
34820
34821         * sysdeps/generic/hp-timing.h: Remove dead comment.
34822         * sysdeps/generic/hp-timing-common.h: New file.
34823         * sysdeps/alpha/hp-timing.h: Include it.
34824         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
34825         * sysdeps/i386/i686/hp-timing.h: Likewise.
34826         * sysdeps/ia64/hp-timing.h: Likewise.
34827         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34828         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34829         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34830         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34831         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
34832         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
34833         (hp_timing_t): New.
34834
34835         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
34836         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
34837         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
34838         * elf/rtld.c (_dl_start_final): Likewise.
34839         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
34840         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34841         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34842         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34843         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34844         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34845         (HP_TIMING_DIFF_INIT): Remove.
34846         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34847         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34848         (HP_TIMING_DIFF_INIT): Remove.
34849         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34850         * sysdeps/i386/i686/hp-timing.c: Remove file.
34851         * sysdeps/x86_64/hp-timing.c: Remove file.
34852         * sysdeps/ia64/hp-timing.c: Remove file.
34853         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
34854         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
34855         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
34856         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
34857
34858         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
34859         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
34860         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
34861         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34862         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34863         (HP_TIMING_ACCUM): Remove.
34864         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34865         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
34866         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34867
34868         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
34869         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
34870         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
34871         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
34872         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
34873         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34874         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
34875         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34876
34877         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
34878
34879 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
34880
34881         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
34882
34883 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34884
34885         Sync up with gettext.
34886         * intl/loadmsgcat.c: Define O_BINARY if not defined.
34887         [_MSC_VER]: Include malloc.h
34888         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
34889         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
34890         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
34891         TEMP_FAILURE_RETRY.  Cast return of alloca.
34892         [!_LIBC] Call gl_rwlock_init.
34893         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
34894
34895 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34896
34897         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
34898         before checking its value.
34899
34900 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34901
34902         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
34903
34904         * debug/memcpy_chk.c: Don't include pagecopy.h.
34905         * debug/mempcpy_chk.c: Likewise.
34906         * string/memcpy.c: Likewise.
34907         * string/memmove.c: Likewise.
34908         * sysdeps/powerpc/memmove.c: Likewise.
34909         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
34910         definition of PAGE_COPY_FWD_MAYBE here...
34911         * sysdeps/generic/pagecopy.h: ... from here.
34912         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
34913
34914 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34915             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34916
34917         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
34918         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
34919         optimizations.
34920         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34921         (__libc_ifunc_impl_list): Likewise.
34922         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
34923         multiarch strcat for PPC64.
34924         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
34925         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
34926
34927 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34928
34929         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
34930
34931 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34932
34933         * intl/loadmsgcat.c: Remove declaration of
34934         get_sysdep_segment_value.
34935         (get_sysdep_segment_value): Use ISO C style.
34936         (_nl_load_domain): Use ISO C style.  Get rid of redundant
34937         semicolon.  Fix typo and formatting in comment.
34938         (_nl_unload_domain): Use ISO C style.
34939
34940         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
34941
34942 2014-07-02  Will Newton  <will.newton@linaro.org>
34943
34944         * malloc/obstack.c: Merge from gnulib master.
34945         [HAVE_CONFIG_H]: Remove conditional code.
34946         [!_LIBC]: Include config.h.
34947         [!ELIDE_CODE]: Don't include inttypes.h, include
34948         stdint.h unconditionally.
34949         (print_and_abort): Mark as _Noreturn.
34950         (_obstack_allocated_p): Mark as __attribute_pure__.
34951         (obstack_free): Rename to __obstack_free.
34952         [!__attribute__]: Remove conditional code.
34953         * malloc/obstack.h: Merge from gnulib master.
34954         [__cplusplus]: Move conditional down.
34955         [!__attribute_pure__]: Define __attribute_pure__ here
34956         if it is not already defined.
34957         (_obstack_memory_used): Mark as __attribute_pure__.
34958         [!__obstack_free]: Define as obstack_free.
34959         [__GNUC__]: Remove check for ancient NeXT gcc.
34960
34961 2014-07-02  Will Newton  <will.newton@linaro.org>
34962             Paul Eggert  <eggert@cs.ucla.edu>
34963
34964         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
34965
34966 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34967
34968         * resolv/gethnamaddr.c: Add comment warning that the file is
34969         not maintained.
34970
34971 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
34972
34973         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
34974         entries.
34975
34976         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
34977         entry for aio_cancel and aio_cancel64.
34978         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
34979         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
34980         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
34981         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
34982         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
34983         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
34984         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
34985         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
34986         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
34987         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
34988         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
34989         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
34990         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
34991
34992 2014-07-01  Roland McGrath  <roland@hack.frob.com>
34993
34994         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
34995         * nptl/pthread_mutex_lock.c: Likewise.
34996         * nptl/pthread_mutex_timedlock.c: Likewise.
34997         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
34998
34999 2014-07-01  Richard henderson  <rth@redhat.com>
35000
35001         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
35002         (__isnan, __isnanl): Remove.
35003         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
35004
35005         * sysdeps/alpha/fpu/libm-test-ulps: Update.
35006
35007 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
35008
35009         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
35010
35011 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
35012
35013         * resolv/nss_dns/dns-host.c (getanswer_r)
35014         [MULTI_PTRS_ARE_ALIASES]: Remove code.
35015
35016 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
35017
35018         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35019         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
35020         undefine.
35021         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
35022         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
35023
35024 2014-07-01  Roland McGrath <roland@hack.frob.com>
35025
35026         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
35027         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
35028
35029         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
35030         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
35031
35032         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
35033         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
35034         ... here.
35035         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
35036         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
35037
35038         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
35039         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
35040         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
35041         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
35042
35043         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
35044         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
35045         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
35046         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
35047         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
35048         Moved ...
35049         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
35050         ... here.
35051         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
35052         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
35053         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
35054         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
35055         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
35056         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
35057         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
35058         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
35059         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
35060         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
35061         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
35062         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
35063         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
35064         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
35065         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
35066         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
35067         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
35068         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
35069         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
35070         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
35071         ... here.
35072         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
35073         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
35074         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
35075         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
35076         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
35077         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
35078         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
35079         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
35080
35081 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
35082
35083         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
35084         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
35085         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
35086         Add sysdep.
35087
35088 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35089
35090         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35091
35092 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35093
35094         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
35095         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35096
35097         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
35098
35099         * sysdeps/arm/libm-test-ulps: Regenerated.
35100
35101 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35102             Roland McGrath <roland@hack.frob.com>
35103
35104         * test-skeleton.c (signal_handler): Kill the whole process group
35105         before killing the child individually.
35106         (main): Report any failure on `setpgid'.
35107
35108 2014-06-30  Roland McGrath  <roland@hack.frob.com>
35109
35110         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
35111         from _TLS_H to _ARM_NPTL_TLS_H.
35112         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
35113         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
35114
35115 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35116
35117         [BZ #16539]
35118         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
35119         (__expm1l): Return argument unchanged when small but not
35120         subnormal.
35121
35122         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
35123         include macro name.
35124         (_FP_UNPACK_RAW_1_P): Likewise.
35125         (_FP_PACK_RAW_1): Likewise.
35126         (_FP_PACK_RAW_1_P): Likewise.
35127         (_FP_MUL_MEAT_1_wide): Likewise.
35128         (_FP_MUL_MEAT_DW_1_hard): Likewise.
35129         (_FP_MUL_MEAT_1_hard): Likewise.
35130         (_FP_DIV_MEAT_1_imm): Likewise.
35131         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
35132         (_FP_DIV_MEAT_1_udiv): Likewise.
35133         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
35134         (_FP_UNPACK_RAW_2): Likewise.
35135         (_FP_UNPACK_RAW_2_P): Likewise.
35136         (_FP_PACK_RAW_2): Likewise.
35137         (_FP_PACK_RAW_2_P): Likewise.
35138         (_FP_MUL_MEAT_DW_2_wide): Likewise.
35139         (_FP_MUL_MEAT_2_wide): Likewise.
35140         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
35141         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
35142         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
35143         (_FP_MUL_MEAT_2_gmp): Likewise.
35144         (_FP_DIV_MEAT_2_udiv): Likewise.
35145         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
35146         (_FP_FRAC_SRL_4): Likewise.
35147         (_FP_FRAC_SRST_4): Likewise.
35148         (_FP_FRAC_SRS_4): Likewise.
35149         (_FP_UNPACK_RAW_4): Likewise.
35150         (_FP_UNPACK_RAW_4_P): Likewise.
35151         (_FP_PACK_RAW_4): Likewise.
35152         (_FP_PACK_RAW_4_P): Likewise.
35153         (_FP_MUL_MEAT_DW_4_wide): Likewise.
35154         (_FP_MUL_MEAT_4_wide): Likewise.
35155         (_FP_MUL_MEAT_4_gmp): Likewise.
35156         (umul_ppppmnnn): Likewise.
35157         (_FP_DIV_MEAT_4_udiv): Likewise.
35158         (__FP_FRAC_ADD_4): Likewise.
35159         (__FP_FRAC_SUB_3): Likewise.
35160         (__FP_FRAC_SUB_4): Likewise.
35161         (__FP_FRAC_DEC_3): Likewise.
35162         (__FP_FRAC_DEC_4): Likewise.
35163         (__FP_FRAC_ADDI_4): Likewise.
35164         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
35165         (_FP_FRAC_SRL_8): Likewise.
35166         (_FP_FRAC_SRS_8): Likewise.
35167
35168         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
35169         include macro name.
35170         (FP_UNPACK_RAW_EP): Likewise.
35171         (FP_PACK_RAW_E): Likewise.
35172         (FP_PACK_RAW_EP): Likewise.
35173         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
35174         (_FP_ISSIGNAN): Likewise.
35175         (_FP_ADD_INTERNAL): Likewise.
35176         (_FP_FMA): Likewise.
35177         (_FP_CMP): Likewise.
35178         (_FP_SQRT): Likewise.
35179         (_FP_TO_INT): Likewise.
35180         (_FP_FROM_INT): Likewise.
35181         (FP_EXTEND): Likewise.
35182         (_FP_DIV_MEAT_N_loop): Likewise.
35183
35184 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35185
35186         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
35187         throughout.
35188
35189 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
35190
35191         [BZ #17097]
35192         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
35193         result with correct sign in case of exponents that produce
35194         overflow except for X very close to 1.
35195
35196 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
35197
35198         mktime: merge #if/#ifdef usage from glibc
35199         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
35200         as that works with both Glibc's and Gnulib's style.
35201         See thread starting at Siddhesh Poyarekar's bug report at:
35202         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
35203
35204 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35205
35206         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
35207         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
35208         * sysdeps/tile/tilegx/memmove.c: Remove file.
35209
35210 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35211
35212         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
35213         abi-name definition.
35214         * scripts/soversions.awk: Do not handle or generate ABI lines.
35215         * shlib-versions: Remove ABI entries.
35216         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
35217         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
35218
35219 2014-06-27  Roland McGrath  <roland@hack.frob.com>
35220
35221         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
35222         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
35223         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
35224         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
35225         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
35226         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
35227         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
35228         Moved ...
35229         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
35230         ... here.
35231         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
35232         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
35233         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
35234         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
35235         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
35236         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
35237         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
35238         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
35239         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
35240         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
35241         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
35242         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
35243         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
35244         Moved ...
35245         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
35246         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
35247         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
35248         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
35249         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
35250         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
35251         Moved ...
35252         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
35253         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
35254         Moved ...
35255         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
35256         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
35257         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
35258         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
35259         Moved ...
35260         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
35261         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
35262         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
35263         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
35264         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
35265         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
35266         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
35267         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
35268         Moved ...
35269         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
35270         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
35271         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
35272         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
35273         Moved ...
35274         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
35275         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
35276         Moved ...
35277         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
35278         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
35279         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
35280         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
35281         Moved ...
35282         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
35283         ... here.
35284         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
35285         Identical file removed.
35286         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
35287         Moved ...
35288         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
35289         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
35290         Identical file removed.
35291         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
35292         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
35293         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
35294         Moved ...
35295         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
35296         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
35297         Identical file removed.
35298         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
35299         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
35300         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
35301         Identical file removed.
35302         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
35303         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
35304         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
35305         Identical file removed.
35306         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
35307         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
35308         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
35309         Identical file removed.
35310         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
35311         Moved ...
35312         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
35313         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
35314         Identical file removed.
35315         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
35316         Moved ...
35317         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
35318         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
35319         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
35320         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
35321         Identical file removed.
35322         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
35323         Moved ...
35324         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
35325         ... here.
35326         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
35327         Identical file removed.
35328         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
35329         Moved ...
35330         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
35331         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
35332         Identical file removed.
35333         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
35334         Moved ...
35335         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
35336         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
35337         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
35338         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
35339         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
35340         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
35341         Moved ...
35342         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
35343         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
35344         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
35345
35346         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
35347         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
35348         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
35349         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
35350         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
35351
35352 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
35353
35354         [BZ #17092]
35355         * nscd/nscd.c (monitor_child): Return exit status of child
35356         instead of return value from wait syscall.
35357
35358 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35359
35360         * configure.ac (libc_commonpagesize): Remove variable.
35361         (libc_relro_required): Likewise.
35362         (libc_cv_z_relro): Remove configure test.
35363         * configure: Regenerated.
35364         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
35365         variable.
35366         (libc_relro_required): Likewise.
35367         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
35368         (libc_relro_required): Likewise.
35369         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
35370         (libc_relro_required): Likewise.
35371         * sysdeps/arm/preconfigure: Regenerated.
35372         * sysdeps/ia64/preconfigure: Remove file.
35373         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
35374         variable.
35375         (libc_relro_required): Likewise.
35376
35377         [BZ #16561]
35378         [BZ #16562]
35379         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
35380         (__ieee754_yn): Set FE_TONEAREST mode internally and then
35381         recompute overflowing results in original rounding mode.
35382         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
35383         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
35384         recompute overflowing results in original rounding mode.
35385         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
35386         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35387         recompute overflowing results in original rounding mode.
35388         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
35389         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35390         recompute overflowing results in original rounding mode.
35391         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
35392         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35393         recompute overflowing results in original rounding mode.
35394         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
35395         (libc_feholdsetround_ctx): New macro.
35396         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
35397         * sysdeps/i386/fpu/libm-test-ulps: Update.
35398         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
35399
35400 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35401
35402         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
35403         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
35404         corresponding .cpsetup call.
35405
35406 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35407
35408         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
35409         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
35410         * sysdeps/arm/Makefile [$(subdir) = csu]
35411         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
35412         (static-only-routines): Add aeabi_read_tp here.
35413         (shared-only-routines): Add libc-aeabi_read_tp here.
35414         (CFLAGS-libc-start.c): Add -fexceptions here.
35415         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
35416         (sysdep_routines, static-only-routines, shared-only-routines):
35417         Don't add to these here.
35418         (CFLAGS-libc-start.c): Likewise.
35419
35420         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
35421         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
35422         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
35423         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
35424         * sysdeps/arm/Makefile [$(subdir) = rt]
35425         (librt-sysdep_routines, librt-shared-only-routines):
35426         Append rt-aeabi_unwind_cpp_pr1 here.
35427         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
35428         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
35429         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
35430         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35431         Append nptl-aeabi_unwind_cpp_pr1 here.
35432         (tests): Filter out tst-cleanupx4 here.
35433         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
35434         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
35435         Don't do those here.
35436
35437 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35438
35439         * scripts/list-sources.sh: Do not handle ports specially.
35440
35441 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35442
35443         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
35444         * sysdeps/arm/feupdateenv.c: Likewise.
35445
35446         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
35447
35448 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35449
35450         * manual/texinfo.tex: Update to version 2014-05-05.10 with
35451         trailing whitespace removed.
35452         * scripts/config.guess: Update to version 2014-03-23.
35453         * scripts/config.sub: Update to version 2014-05-01
35454         * scripts/install-sh: Update to version 2013-12-25.23.
35455         * scripts/move-if-change: Update from gnulib.
35456
35457 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35458
35459         * debug/memmove_chk.c: Remove pagecopy.h include.
35460
35461 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35462
35463         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
35464         identical to gnulib mktime.
35465
35466 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35467
35468         * configure.ac: Do not test for machine being rs6000.  Do not test
35469         for powerpc*-*soft.
35470         * configure: Regenerated.
35471
35472         [BZ #11505]
35473         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
35474         test.
35475         * configure: Regenerated.
35476         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
35477         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
35478         Remove configure test.
35479         * sysdeps/arm/configure: Regenerated.
35480         * sysdeps/nptl/configure.ac: Do not check
35481         libc_cv_asm_cfi_directives.
35482         * sysdeps/nptl/configure: Regenerated.
35483         * sysdeps/x86_64/nptl/configure.ac: Remove file.
35484         * sysdeps/x86_64/nptl/configure: Remove generated file.
35485         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
35486         unconditional.
35487         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
35488
35489 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35490
35491         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
35492         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
35493         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
35494         it is defined.
35495
35496         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
35497         instead of whether it is defined.
35498         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
35499         * sysdeps/hppa/dl-machine.h: Likewise.
35500         * sysdeps/ia64/dl-machine.h: Likewise.
35501         * sysdeps/m68k/dl-machine.h: Likewise.
35502         * sysdeps/microblaze/dl-machine.h: Likewise.
35503         * sysdeps/mips/dl-machine.: Likewise.
35504         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
35505         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
35506         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
35507         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
35508         * sysdeps/sh/dl-machine.h: Likewise.
35509         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35510         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35511         * sysdeps/tile/dl-machine.h: Likewise.
35512         * sysdeps/x86_64/dl-machine.h: Likewise.
35513
35514         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
35515         code.
35516         (verify_persistent_db): Likewise.
35517
35518 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35519
35520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
35521         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
35522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
35523         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
35524         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35525         Moved ...
35526         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
35527         ... here.
35528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
35529         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
35530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
35531         Identical file removed.
35532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
35533         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
35534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
35535         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
35536         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
35537         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
35538         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
35539         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
35540         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
35541         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
35542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35543         Moved ...
35544         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
35545         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35546         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
35547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
35548         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
35549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35550         Moved ...
35551         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
35552         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
35553         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
35554         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
35555         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
35556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
35557         Identical file removed.
35558         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
35559         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
35560         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
35561         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
35562         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35563         Moved ...
35564         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
35565         ... here.
35566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
35567         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
35568         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
35569         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
35570         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
35571         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
35572         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
35573         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
35574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
35575         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
35576         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35577         Moved ...
35578         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
35579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
35580         Moved ...
35581         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
35582         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
35583         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
35584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35585         Moved ...
35586         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
35587         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
35588         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
35589
35590         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
35591         folded into ...
35592         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
35593         * sysdeps/unix/sysv/linux/s390/Versions
35594         (libpthread: GLIBC_2.19): New version set.
35595         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
35596         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
35597         (librt: GLIBC_2.3.3): New version set.
35598         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
35599         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
35600         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
35601         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
35602         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
35603         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
35604         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
35605         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
35606         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
35607         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
35608         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
35609         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
35610         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
35611         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
35612         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
35613         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
35614         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
35615         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
35616         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
35617         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
35618         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
35619         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
35620         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
35621         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35622         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
35623         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
35624         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
35625         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
35626         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
35627         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
35628         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
35629         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
35630         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
35631         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
35632         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
35633         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
35634         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
35635         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
35636         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
35637         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
35638         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
35639         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
35640         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
35641         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
35642         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
35643
35644         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
35645         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
35646         (__libc_vfork): Define the function under this name.
35647         [!NOT_IN_libc] (__vfork): Make this an alias.
35648         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35649         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
35650         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
35651         (__libc_vfork): Define the function under this name.
35652         [!NOT_IN_libc] (__vfork): Make this an alias.
35653         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35654         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
35655         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
35656         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
35657         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
35658         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
35659
35660         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
35661         code that was previously under [RESET_PID].
35662         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
35663         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
35664         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
35665
35666         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
35667         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
35668         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
35669         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
35670         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
35671         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
35672         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
35673         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
35674         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
35675         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
35676         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
35677         Moved ...
35678         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
35679         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
35680         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
35681         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
35682         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
35683         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
35684         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
35685         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
35686         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
35687         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
35688         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
35689         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
35690         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
35691         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
35692         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
35693         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
35694         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
35695         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
35696         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
35697         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
35698         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
35699         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
35700         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
35701         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
35702         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
35703         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
35704         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
35705         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
35706         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
35707
35708 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35709
35710         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
35711         that was previously under [RESET_PID].
35712         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
35713
35714 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35715
35716         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
35717         not undefine and redefine.
35718         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
35719         [O_CLOEXEC]: Make code unconditional.
35720         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
35721         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
35722         <kernel-features.h>.
35723         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
35724         conditional variable definition.
35725         (shm_open) [O_CLOEXEC]: Make code unconditional.
35726         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
35727         code.
35728
35729         * configure.ac (USE_REGPARMS): Don't define here.
35730         * configure: Regenerated.
35731         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
35732         * sysdeps/i386/configure: Regenerated.
35733
35734         * nptl/createthread.c: Don't include kernel-features.h.
35735         * nptl/pthread_cancel.c: Likewise.
35736         * nptl/pthread_condattr_setclock.c: Likewise.
35737         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
35738         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
35739         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
35740         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
35741         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
35742         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
35743         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
35744         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
35745         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
35746         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
35747         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
35748         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
35749         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
35750         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
35751         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
35752         * nscd/gai.c: Likewise.
35753         * nss/nss_db/db-open.c: Likewise.
35754         * sysdeps/generic/ldsodefs.h: Likewise.
35755         * sysdeps/sh/nptl/tls.h: Likewise.
35756         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35757         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
35758         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
35759         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
35760         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
35761         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35762         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
35763         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
35764         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
35765         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35766         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35767         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
35768         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
35769         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
35770         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
35771         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
35772         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
35773         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
35774         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
35775         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
35776         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
35777         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
35778         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
35779         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
35780         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
35781         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
35782         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
35783         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
35784         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
35785         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
35786         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
35787         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
35788         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35789         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
35790         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
35791         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35792         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
35793         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
35794         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
35795         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
35796         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
35797         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
35798         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
35799         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
35800         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
35801         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
35802         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
35803         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
35804         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
35805         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
35806         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
35807         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
35808         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
35809         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
35810         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
35811         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
35812         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
35813         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
35814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
35815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
35816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
35817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
35818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
35819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
35820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
35821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
35822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
35823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
35824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
35825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
35826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
35827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
35828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
35829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
35830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
35831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
35832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
35833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
35834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
35835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
35836         * sysdeps/unix/sysv/linux/pread.c: Likewise.
35837         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
35838         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
35839         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
35840         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
35841         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
35842         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
35843         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
35844         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
35845         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
35846         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
35847         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
35848         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
35849         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
35850         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
35851         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
35852         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
35853         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
35854         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
35855         * sysdeps/unix/sysv/linux/system.c: Likewise.
35856         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
35857         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
35858         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35859         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35860         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
35861         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
35862         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
35863
35864         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
35865         * configure: Regenerated.
35866         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
35867
35868         * configure.ac (base_machine): Do not set specially for particular
35869         machines here.
35870         * configure: Regenerated.
35871         * sysdeps/powerpc/preconfigure: Move machine and base_machine
35872         settings from configure.ac.
35873         * sysdeps/i386/preconfigure: New file.
35874         * sysdeps/s390/preconfigure: Likewise.
35875         * sysdeps/sh/preconfigure: Likewise.
35876         * sysdeps/sparc/preconfigure: Likewise.
35877
35878 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35879
35880         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
35881         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
35882         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
35883         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
35884         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
35885         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
35886         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
35887         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
35888         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
35889         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
35890         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
35891         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
35892         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
35893         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
35894         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
35895         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
35896         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
35897         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
35898         * sysdeps/sparc/sparc64/Makefile: ... appended here.
35899
35900         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
35901         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
35902         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
35903         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
35904         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
35905         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
35906         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
35907         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
35908         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
35909         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
35910         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
35911         * sysdeps/sparc/sparc32/sem_post.c: ... here.
35912         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
35913         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
35914         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
35915         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
35916         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
35917         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
35918         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
35919         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
35920         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
35921         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
35922         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
35923         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
35924         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
35925         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
35926         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
35927         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
35928         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
35929         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
35930         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
35931         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
35932         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
35933         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
35934         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
35935         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
35936         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
35937         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
35938
35939         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
35940         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
35941         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
35942         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
35943         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35944         Moved ...
35945         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
35946         ... here.
35947         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
35948         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
35949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
35950         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
35951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
35952         Moved ...
35953         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
35954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
35955         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
35956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
35957         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
35958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
35959         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
35960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35961         Moved ...
35962         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
35963         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35964         Moved ...
35965         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
35966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
35967         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
35968         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35969         Moved ...
35970         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
35971         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
35972         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
35973         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
35974         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
35975         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
35976         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
35977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
35978         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
35979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35980         Moved ...
35981         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
35982         ... here.
35983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
35984         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
35985         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
35986         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
35987         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
35988         Moved ...
35989         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
35990         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
35991         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
35992         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
35993         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
35994         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
35995         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
35996         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35997         Moved ...
35998         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
35999         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
36000         Moved ...
36001         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
36002         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
36003         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
36004         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
36005         Moved ...
36006         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
36007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
36008         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
36009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
36010         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
36011
36012 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36013
36014         * timezone/checktab.awk: Update from tzcode 2014e.
36015         * timezone/private.h: Likewise.
36016         * timezone/tzfile.h: Likewise.
36017         * timezone/zdump.c: Likewise.
36018         * timezone/zic.c: Likewise.
36019
36020         * sysdeps/unix/sysv/linux/kernel-features.h
36021         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
36022         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
36023         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
36024         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
36025         Remove conditional code.
36026
36027 2014-06-25  Will Newton  <will.newton@linaro.org>
36028
36029         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
36030         (_dl_arm_cap_flags): Add HWCAP2 values.
36031         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
36032         (_DL_HWCAP_COUNT): Increase to 37.
36033         (_DL_HWCAP_LAST): New define.
36034         (_DL_HWCAP2_LAST): New define.
36035         (_dl_procinfo): Add support for printing
36036         AT_HWCAP2 entries.
36037         (_dl_string_hwcap): Use _dl_hwcap_string.
36038
36039 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36040
36041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36042
36043 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
36044
36045         * README: Do not mention ports directory.
36046
36047         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
36048         Remove macro.
36049         * sysdeps/unix/sysv/linux/futimes.c: Do not include
36050         <kernel-features.h>.
36051         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
36052         conditional variable definition.
36053         (__futimes): Update comment.
36054         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
36055         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
36056
36057         [BZ #16560]
36058         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
36059         arguments close to 0.
36060         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
36061         Likewise.
36062         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
36063         Likewise.
36064         * math/auto-libm-test-in: Add more tests of exp10.
36065         * math/auto-libm-test-out: Regenerated.
36066         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36067
36068         * sysdeps/unix/sysv/linux/kernel-features.h
36069         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
36070         * sysdeps/unix/sysv/linux/readv.c: Do not include
36071         <kernel-features.h>.
36072         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36073         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36074         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36075         unconditional.
36076         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36077         conditional code.
36078         * sysdeps/unix/sysv/linux/writev.c: Do not include
36079         <kernel-features.h>.
36080         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36081         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36082         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36083         unconditional.
36084         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36085         conditional code.
36086
36087 2014-06-25  Will Newton  <will.newton@linaro.org>
36088
36089         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
36090         comment changes throughout the file.  Remove checks
36091         for HAVE_*_H definitions that are not required.
36092         (__gen_tempname): Call abort if an unknown kind value is
36093         passed.
36094
36095 2014-06-25  Andreas Schwab  <schwab@suse.de>
36096
36097         [BZ #17086]
36098         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
36099         scalbln, scalblnf, scalblnl in libc.
36100
36101 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36102
36103         [BZ #17086]
36104         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
36105         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36106         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36107
36108 2014-06-24  Roland McGrath  <roland@hack.frob.com>
36109
36110         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
36111         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
36112         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
36113         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
36114         Update #include.
36115         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
36116         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
36117         Update #include.
36118         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
36119         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
36120         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
36121         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
36122         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
36123         * sysdeps/x86/bits/pthreadtypes.h: ... here.
36124         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
36125         * sysdeps/x86/bits/semaphore.h: ... here.
36126         * sysdeps/x86/nptl/elide.h: Moved ...
36127         * sysdeps/x86/elide.h: ... here.
36128         * sysdeps/x86_64/nptl/Implies: File removed.
36129         * sysdeps/i386/nptl/Implies: File removed.
36130
36131 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
36132
36133         [BZ #16539]
36134         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
36135         return the argument for normal arguments with exponent below -64.
36136         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
36137         Likewise.
36138         * math/auto-libm-test-in: Add another test of expm1.
36139         * math/auto-libm-test-out: Regenerated.
36140
36141         [BZ #16287]
36142         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
36143         calling __erfcl for arguments at least 16.
36144         * math/auto-libm-test-in: Add more tests of erf.
36145         * math/auto-libm-test-out: Regenerated.
36146
36147         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
36148         individual architectures.
36149         * sysdeps/unix/sysv/linux/configure: Regenerated.
36150         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
36151         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
36152         * sysdeps/unix/sysv/linux/powerpc/configure.ac
36153         (ldd_rewrite_script): Define variable.
36154         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
36155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
36156         file.
36157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
36158         generated file.
36159         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
36160         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
36161         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
36162         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
36163         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
36164         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
36165         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
36166         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
36167
36168 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36169
36170         [BZ #17084]
36171         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
36172         Rename member __data.d to __data.__elision_data.
36173
36174 2014-06-24  Wilco  <wdijkstr@arm.com>
36175
36176         * NEWS: Add 16918 to fixed bug list.
36177
36178 2014-06-24  Wilco  <wdijkstr@arm.com>
36179
36180         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
36181
36182 2014-06-24  Wilco  <wdijkstr@arm.com>
36183
36184         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
36185         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
36186         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
36187         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
36188         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
36189         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
36190         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
36191         Use _FPU_MASK_RM.
36192
36193 2014-06-24  Wilco  <wdijkstr@arm.com>
36194
36195         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
36196
36197 2014-06-24  Wilco  <wdijkstr@arm.com>
36198
36199         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
36200         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
36201         * sysdeps/arm/fesetround.c (fesetround): Remove space.
36202         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
36203
36204 2014-06-24  Wilco  <wdijkstr@arm.com>
36205
36206         [BZ #16918]
36207         * sysdeps/arm/feupdateenv.c (feupdateenv):
36208         Rewrite to reduce FPSCR accesses and fix return value.
36209
36210 2014-06-24  Wilco  <wdijkstr@arm.com>
36211
36212         * sysdeps/arm/fclrexcpt.c (feclearexcept):
36213         Optimize to avoid unnecessary FPSCR writes.
36214         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
36215         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
36216         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
36217         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
36218
36219 2014-06-24  Wilco  <wdijkstr@arm.com>
36220
36221         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
36222         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
36223         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
36224         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
36225         Call libc_fetestexcept_vfp.
36226         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
36227         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
36228         __SOFTFP__ ifdef so that they can be built for softfp.
36229
36230 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36231
36232         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
36233         argument type signed char.
36234
36235         * Makerules (check-abi): Dump diff of symlist if the test
36236         fails.
36237
36238 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36239
36240         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
36241         using abort.
36242
36243         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
36244         Remove unused variable ST.
36245
36246 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36247
36248         [BZ #16354]
36249         [BZ #17061]
36250         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
36251         small arguments before calling __expm1.
36252         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
36253         small arguments before calling __expm1f.
36254         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
36255         small arguments before calling __expm1l.
36256         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
36257         Likewise.
36258         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
36259         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
36260         spurious underflow for some cosh tests.
36261         * math/auto-libm-test-out: Regenerated.
36262         * sysdeps/i386/fpu/libm-test-ulps: Update.
36263
36264         [BZ #17050]
36265         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
36266         (__ieee754_y1): Set errno if return value overflows.
36267         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
36268         (__ieee754_y1f): Set errno if return value overflows.
36269         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
36270         (__ieee754_y1l): Set errno if return value overflows.
36271         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
36272         (__ieee754_y1l): Set errno if return value overflows.
36273         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
36274         * math/auto-libm-test-out: Regenerated.
36275
36276         * math/gen-auto-libm-tests.c: Document use of
36277         ignore-zero-inf-sign.
36278         (input_flag_type): Add value flag_ignore_zero_inf_sign.
36279         (input_flags): Add ignore-zero-inf-sign.
36280         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
36281         * math/gen-libm-test.pl (generate_testfile): Handle
36282         ignore-zero-inf-sign.
36283         * math/auto-libm-test-in: Mark some cpow tests with
36284         ignore-zero-inf-sign and some with xfail-rounding.
36285         * math/auto-libm-test-out: Regenerated.
36286         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
36287         * sysdeps/i386/fpu/libm-test-ulps: Update.
36288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36289
36290         [BZ #16315]
36291         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
36292         overflowing or underflowing operations take place with sign of
36293         result.
36294         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36295         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
36296         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
36297         (__ieee754_pow): Recompute overflowing and underflowing results in
36298         original rounding mode.
36299         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
36300         (__powl_helper): Allow negative argument X and scale negated value
36301         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
36302         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
36303         overflowing or underflowing operations take place with sign of
36304         result.
36305         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
36306         Include <math.h>.
36307         * math/auto-libm-test-in: Add more tests of pow.
36308         * math/auto-libm-test-out: Regenerated.
36309         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
36310         (pow_tonearest_test_data): Remove.
36311         (pow_test_tonearest): Likewise.
36312         (pow_towardzero_test_data): Likewise.
36313         (pow_test_towardzero): Likewise.
36314         (pow_downward_test_data): Likewise.
36315         (pow_test_downward): Likewise.
36316         (pow_upward_test_data): Likewise.
36317         (pow_test_upward): Likewise.
36318         (main): Don't call removed functions.
36319         * sysdeps/i386/fpu/libm-test-ulps: Update.
36320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36321
36322 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36323
36324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
36325         Moved ...
36326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
36327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36328         Moved ...
36329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
36330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
36331         Moved ...
36332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
36333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
36334         Moved ...
36335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
36336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
36337         File removed.
36338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
36339         File removed.
36340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
36341         File removed.
36342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
36343         File removed.
36344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
36345         File removed.
36346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
36347         File removed.
36348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
36349         File removed.
36350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
36351         File removed.
36352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
36353         File removed.
36354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36355         File removed.
36356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
36357         File removed.
36358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
36359         File removed.
36360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
36361         Moved ...
36362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
36363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
36364         Moved ...
36365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
36366         ... here.
36367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
36368         Moved ...
36369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
36370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
36371         Moved ...
36372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
36373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
36374         Moved ...
36375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
36376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
36377         Moved ...
36378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
36379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
36380         Moved ...
36381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
36382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
36383         Moved ...
36384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
36385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
36386         Moved ...
36387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
36388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
36389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
36390         ... here.
36391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
36392         Moved ...
36393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
36394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
36395         Moved ...
36396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
36397         ... here.
36398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
36399         Moved ...
36400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
36401         ... here.
36402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
36403         Moved ...
36404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
36405         ... here.
36406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
36407         Moved ...
36408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
36409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
36410         Moved ...
36411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
36412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
36413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
36414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
36415         Moved ...
36416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
36417         ... here.
36418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36419         Moved ...
36420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
36421         ... here.
36422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
36423         Moved ...
36424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
36425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36426         Moved ...
36427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
36428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
36429         Moved ...
36430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
36431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36432         Moved ...
36433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
36434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
36435         Moved ...
36436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
36437         ... here.
36438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36439         Moved ...
36440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
36441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
36442         Moved ...
36443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
36444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36445         Moved ...
36446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
36447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
36448         Moved ...
36449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
36450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
36451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
36452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
36453         Moved ...
36454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
36455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36456         Moved ...
36457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
36458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
36459         Moved ...
36460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
36461         ... here.
36462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36463         Moved ...
36464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
36465         ... here.
36466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
36467         Moved ...
36468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
36469         ... here.
36470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36471         Moved ...
36472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
36473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
36474         Moved ...
36475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
36476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36477         Moved ...
36478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
36479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
36480         Moved ...
36481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
36482         ... here.
36483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36484         Moved ...
36485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
36486         ... here.
36487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
36488         Moved ...
36489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
36490         ... here.
36491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36492         Moved ...
36493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
36494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36495         Moved ...
36496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
36497
36498 2014-06-23  Will Newton  <will.newton@linaro.org>
36499             Wilco  <wdijkstr@arm.com>
36500
36501         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
36502         implementation.  Include get-rounding-mode.h.
36503         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
36504         [!libc_feholdsetround_noex_ctx]: Define
36505         libc_feholdsetround_noex_ctx.
36506         [!libc_feholdsetround_noexf_ctx]: Define
36507         libc_feholdsetround_noexf_ctx.
36508         [!libc_feholdsetround_noexl_ctx]: Define
36509         libc_feholdsetround_noexl_ctx.
36510         (libc_feholdsetround_ctx): New function.
36511         (libc_feresetround_ctx): New function.
36512         (libc_feholdsetround_noex_ctx): New function.
36513         (libc_feresetround_noex_ctx): New function.
36514
36515 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36516
36517         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
36518         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
36519         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
36520         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
36521         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
36522         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
36523
36524         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
36525         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
36526         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
36527         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
36528         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
36529         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
36530         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
36531         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
36532         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36533         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
36534         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
36535         Moved ...
36536         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
36537         ... here.
36538         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
36539         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
36540         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
36541         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
36542         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
36543         Moved ...
36544         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
36545         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
36546         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
36547         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
36548         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
36549         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
36550         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
36551         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
36552         Moved ...
36553         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
36554         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
36555         Moved ...
36556         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
36557         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
36558         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
36559         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
36560         Moved ...
36561         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
36562         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
36563         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
36564         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
36565         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
36566         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
36567         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
36568         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
36569         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
36570         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
36571         Moved ...
36572         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
36573         ... here.
36574         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
36575         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
36576         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
36577         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
36578         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
36579         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
36580         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
36581         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
36582         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
36583         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
36584         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
36585         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
36586         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
36587         Moved ...
36588         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
36589         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
36590         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
36591         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
36592         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
36593         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
36594         Moved ...
36595         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
36596         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
36597         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
36598         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
36599         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
36600
36601         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
36602         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
36603         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
36604         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
36605         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
36606         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
36607         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
36608         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
36609         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
36610         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
36611         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
36612         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
36613         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
36614         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
36615         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
36616         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
36617         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
36618         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
36619         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
36620         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
36621         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
36622         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
36623         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
36624         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
36625         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
36626         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
36627         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
36628         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
36629
36630 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36631
36632         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36633         (FALLOC_FL_COLLAPSE_RANGE): New macro.
36634         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
36635         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
36636         (IPV6_PMTUDISC_INTERFACE): Likewise.
36637         (IPV6_PMTUDISC_OMIT): Likewise.
36638
36639 2014-06-23  Andreas Schwab  <schwab@suse.de>
36640
36641         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
36642         Remove unused errout label.
36643
36644 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36645
36646         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
36647         macro: hardware supports Vector Crypto instructions.
36648
36649 2014-06-23  Will Newton  <will.newton@linaro.org>
36650
36651         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
36652         rather than __builtin_expect.
36653
36654         * elf/dl-lookup.c (undefined_msg): Remove variable.
36655         (_dl_lookup_symbol_x): Replace undefined_msg with string
36656         literal.
36657
36658         * elf/dl-lookup.c (do_lookup_unique): New function.
36659         (do_lookup_x): Move STB_GNU_UNIQUE handling code
36660         to a separate function.
36661
36662 2014-06-23  Andreas Schwab  <schwab@suse.de>
36663
36664         [BZ #17079]
36665         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
36666         before reading the next line.
36667
36668 2014-06-23  Will Newton  <will.newton@linaro.org>
36669
36670         * test-skeleton.c (signal_handler): Use printf and %m
36671         rather than perror.  Use printf rather than fprintf to
36672         stderr.  Use puts rather than fputs to stderr.
36673         (main): Likewise.
36674
36675 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
36676
36677         * nscd/nscd.c (thread_info_t): Remove typedef.
36678         (thread_info): Remove variable.
36679
36680 2014-06-21  Allan McRae  <allan@archlinux.org>
36681
36682         * NEWS: Mention CVE-2014-4043.
36683
36684 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36685
36686         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
36687         * nptl/smp.h: ... here.
36688
36689         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
36690
36691         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
36692         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
36693         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
36694         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
36695
36696         * nptl/allocatestack.c: Include <stack-aliasing.h>.
36697         * nptl/stack-aliasing.h: New file.
36698         * sysdeps/i386/i686/stack-aliasing.h: New file.
36699         * sysdeps/i386/i686/nptl/Makefile: File removed.
36700         * sysdeps/x86_64/stack-aliasing.h: New file.
36701         * sysdeps/x86_64/nptl/Makefile
36702         (CFLAGS-pthread_create.c): Variable removed.
36703
36704         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
36705         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
36706         old file.
36707         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
36708         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
36709         old file.
36710
36711 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
36712
36713         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36714         (__ASSUME_SIGFRAME_V2): Remove macro.
36715         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
36716         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
36717         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
36718         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
36719         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
36720         Declare as function.  Remove conditional macro definitions.
36721         (__default_rt_sa_restorer): Likewise.
36722         (__default_sa_restorer_v1): Remove declaration.
36723         (__default_sa_restorer_v2): Likewise.
36724         (__default_rt_sa_restorer_v1): Likewise.
36725         (__default_rt_sa_restorer_v2): Likewise.
36726         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
36727         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
36728         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
36729
36730 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36731
36732         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
36733         (libpthread-routines): Add sysdep.
36734         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
36735         * sysdeps/unix/sysv/linux/sparc/Versions
36736         (libpthread: GLIBC_2.3.3): New version set.
36737         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
36738         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
36739         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
36740         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
36741         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
36742         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
36743         Moved ...
36744         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
36745         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
36746         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
36747         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
36748         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
36749         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
36750         * sysdeps/sparc/nptl/sem_init.c: ... here.
36751         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
36752         * sysdeps/sparc/nptl/sem_post.c: ... here.
36753         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
36754         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
36755         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
36756         * sysdeps/sparc/nptl/sem_wait.c: ... here.
36757         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
36758         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
36759         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
36760         (libpthread-routines): Add cpu_relax.
36761         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
36762         File removed.
36763         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
36764         (librt: GLIBC_2.3.3): New version set.
36765         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
36766         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
36767         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
36768         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
36769         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
36770         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
36771         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
36772         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
36773         Moved ...
36774         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
36775         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
36776         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
36777         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
36778         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
36779         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
36780         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
36781         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
36782         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
36783         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
36784         Moved ...
36785         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
36786         Update #include.
36787         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
36788         Moved ...
36789         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
36790         Update #include.
36791         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
36792         Moved ...
36793         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
36794         Update #include.
36795         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
36796         Moved ...
36797         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
36798         Update #include.
36799         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
36800         Moved ...
36801         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
36802         Update #include.
36803         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
36804         Moved ...
36805         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
36806         Update #include.
36807         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
36808         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
36809         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
36810         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
36811         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
36812         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
36813         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
36814         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
36815         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
36816         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
36817         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36818         Moved ...
36819         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
36820         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
36821         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
36822         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
36823         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
36824
36825 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36826
36827         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
36828         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
36829         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
36830         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
36831         * nscd/nscd.c: Likewise.
36832         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
36833         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
36834         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
36835         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
36836
36837         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
36838         <kernel-features.h>.
36839         (init_mq_netlink): Remove conditional have_sock_cloexec
36840         definitions.  Remove code conditional on have_sock_cloexec < 0.
36841         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
36842         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
36843         * sysdeps/unix/sysv/linux/opensock.c: Do not include
36844         <kernel-features.h>.
36845         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
36846         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
36847
36848 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36849
36850         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
36851         Add tests for memset_chk and memset.
36852
36853         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
36854         with AVX2_Usable.
36855
36856 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36857
36858         [BZ #16046]
36859         * elf/tst-dl-iter-static.c: New file.
36860         * elf/Makefile (tests-static): Add tst-dl-iter-static.
36861
36862         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
36863         error.
36864
36865 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36866
36867         * sysdeps/unix/sysv/linux/kernel-features.h
36868         (__ASSUME_F_GETOWN_EX): Remove macro.
36869         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
36870         <kernel-features.h>.
36871         (miss_F_GETOWN_EX): Remove variable or macro.
36872         (do_fcntl): Do not check miss_F_GETOWN_EX.
36873         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
36874
36875         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
36876         Remove macro.
36877         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
36878         [!__ASSUME_AT_RANDOM]: Remove conditional code.
36879         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
36880
36881         * sysdeps/unix/sysv/linux/kernel-features.h
36882         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
36883         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
36884         [ADJ_OFFSET_SS_READ]: Make code unconditional.
36885         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
36886
36887 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36888
36889         [BZ #17075]
36890         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
36891         Fix calculation of the symbol's value.
36892         * sysdeps/arm/tst-armtlsdescloc.c: New file.
36893         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
36894         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
36895         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
36896         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
36897         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
36898         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
36899         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
36900         (modules-names): Add `tst-armtlsdescmod',
36901         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
36902         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
36903         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36904         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
36905         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
36906         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36907         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
36908         ($(objpfx)tst-armtlsdescloc): New dependency.
36909         ($(objpfx)tst-armtlsdescextnow): Likewise.
36910         ($(objpfx)tst-armtlsdescextlazy): Likewise.
36911         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
36912         TLS scheme support.
36913         * sysdeps/arm/configure: Regenerate.
36914
36915 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36916
36917         * include/fcntl.h (__atfct_seterrno): Remove prototype.
36918         (__atfct_seterrno_2): Likewise.
36919         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
36920         <kernel-features.h>.
36921         (__ASSUME_ATFCTS): Do not undefine and redefine.
36922         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
36923         (__have_atfcts): Remove conditional definition.
36924         (__fxstatat([__NR_fstatat64]: Make code unconditional.
36925         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
36926         unreachable if [__ASSUME_ATFCTS].
36927         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
36928         not undefine and redefine.
36929         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
36930         <kernel-features.h>.
36931         (faccessat) [__NR_faccessat]: Make code unconditional.
36932         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
36933         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
36934         <kernel-features.h>.
36935         (fchmodat) [__NR_fchmodat]: Make code unconditional.
36936         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36937         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
36938         <kernel-features.h>.
36939         (fchownat) [__NR_fchownat]: Make code unconditional.
36940         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
36941         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
36942         <kernel-features.h>.
36943         (futimesat) [__NR_futimesat]: Make code unconditional.
36944         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
36945         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
36946         <kernel-features.h>.
36947         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36948         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36949         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
36950         <kernel-features.h>.
36951         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
36952         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36953         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
36954         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
36955         <kernel-features.h>.
36956         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
36957         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36958         * sysdeps/unix/sysv/linux/linkat.c: Do not include
36959         <kernel-features.h>.
36960         (linkat) [__NR_linkat]: Make code unconditional.
36961         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36962         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
36963         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
36964         <kernel-features.h>.
36965         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
36966         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36967         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
36968         <kernel-features.h>.
36969         (mkdirat) [__NR_mkdirat]: Make code unconditional.
36970         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
36971         * sysdeps/unix/sysv/linux/openat.c: Do not include
36972         <kernel-features.h>.
36973         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
36974         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
36975         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
36976         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
36977         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
36978         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
36979         <kernel-features.h>.
36980         (readlinkat) [__NR_readlinkat]: Make code unconditional.
36981         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
36982         result of INLINE_SYSCALL directly, not via int variable.
36983         * sysdeps/unix/sysv/linux/renameat.c: Do not include
36984         <kernel-features.h>.
36985         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
36986         (renameat) [__NR_renameat]: Make code unconditional.
36987         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
36988         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
36989         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
36990         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
36991         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
36992         (__ASSUME_ATFCTS): Do not undefine and redefine.
36993         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
36994         <kernel-features.h>.
36995         (symlinkat) [__NR_symlinkat]: Make code unconditional.
36996         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36997         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
36998         <kernel-features.h>.
36999         (unlinkat) [__NR_unlinkat]: Make code unconditional.
37000         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
37001         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
37002         (__ASSUME_ATFCTS): Do not undefine and redefine.
37003         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
37004         <kernel-features.h>.
37005         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
37006         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
37007         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
37008         <kernel-features.h>.
37009         (__xmknodat) [__NR_mknodat]: Make code unconditional.
37010         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
37011
37012 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
37013
37014         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
37015
37016 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
37017
37018         [BZ #17069]
37019         * posix/regcomp.c (parse_reg_exp): Deallocate partially
37020         constructed tree before returning error.
37021         * posix/bug-regexp36.c: Expand test case.
37022
37023 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
37024
37025         [BZ #6803]
37026         * math/libm-test.inc (scalbln_test_date):
37027         Add errno expectations.
37028         * math/w_scalblnf.c: New File.
37029         Add wrapper which checks for setting errno to ERANGE.
37030         Add weak_alias for corresponding scalbln function.
37031         * math/w_scalbln.c: Likewise.
37032         * math/w_scalblnl.c: Likewise.
37033         * math/Makefile (libm-calls): Add w_scalbln.
37034         * sysdeps/ieee754/flt-32/s_scalblnf.c:
37035         Remove weak_alias for corresponding scalbln function.
37036         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37037         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37038         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37039         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37040         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
37041         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
37042         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
37043         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
37044         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
37045         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
37046         Remove long_double_symbol for scalblnl function in libm, libc.
37047         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
37048         Add wrapper which checks for setting errno to ERANGE.
37049         Add long_double_symbol for scalblnl function in libm, libc.
37050         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
37051         Remove long_double_symbol for scalblnl in libm.
37052         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
37053         Add wrapper which checks for setting errno to ERANGE.
37054         Add long_double_symbol for scalblnl function in libm.
37055         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
37056         Do not use wrapper because of own implementation.
37057
37058 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
37059
37060         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
37061         3 bytes for __pad1 for x32.
37062         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
37063
37064 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
37065             H.J. Lu  <hongjiu.lu@intel.com>
37066
37067         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
37068         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
37069         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37070         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37071         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
37072
37073 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
37074
37075         [BZ #17069]
37076         * posix/regcomp.c (parse_expression): Deallocate partially
37077         constructed tree before returning error.
37078         * posix/Makefile.c (tests): Add bug-regex36.
37079         (generated): Add bug-regex36.mtrace.
37080         (tests-special): Add $(objpfx)bug-regex36-mem.out
37081         (bug-regex36-ENV): New variable.
37082         ($(objpfx)bug-regex36-mem.out): New rule.
37083         * posix/bug-regex36.c: New file.
37084
37085 2014-06-19  Will Newton  <will.newton@linaro.org>
37086
37087         * malloc/malloc.c (systrim): If extra is zero then return
37088         early.
37089
37090 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
37091
37092         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
37093
37094 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
37095
37096         * sysdeps/aarch64/strchr.S: New file.
37097
37098 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37099
37100         [BZ #17022]
37101         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
37102         from arguments -2 or below.
37103         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
37104         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
37105
37106 2014-06-18  Andreas Schwab  <schwab@suse.de>
37107
37108         [BZ #17062]
37109         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
37110         of a bracket expr not to run off the end of the string.
37111         * posix/Makefile (tests): Add tst-fnmatch3.
37112         * posix/tst-fnmatch3.c: New file.
37113
37114 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37115
37116         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
37117         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37118         [$(cross-compiling) = no]: Likewise.
37119         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37120         [$(cross-compiling) = no]: Likewise.
37121
37122 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37123
37124         [BZ #17031]
37125         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
37126         double, adjusted for any remainder from the high double.
37127         * math/libm-test.inc (nearbyint): Add tests.
37128         (rint): Likewise.
37129
37130 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37131
37132         * nptl/sysdeps/powerpc/Makefile: Moved ...
37133         * sysdeps/powerpc/nptl/Makefile: ... here.
37134         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
37135         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
37136         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
37137         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
37138         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
37139         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
37140         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
37141         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
37142         * nptl/sysdeps/powerpc/tls.h: Moved ...
37143         * sysdeps/powerpc/nptl/tls.h: ... here.
37144
37145 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
37146
37147         [BZ #16681]
37148         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
37149         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
37150         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
37151         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
37152         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
37153         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
37154         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
37155         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
37156         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
37157
37158 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
37159
37160         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
37161
37162 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
37163
37164         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
37165         defined operator.
37166
37167         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
37168         $TIMEOUTFACTOR.
37169
37170 2014-06-16  Florian Weimer  <fweimer@redhat.com>
37171
37172         [BZ #17058]
37173         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
37174         non-executed part of the test.
37175
37176 2014-06-16  Andreas Schwab  <schwab@suse.de>
37177
37178         * string/bits/string2.h (strdup, strndup): Update feature guard.
37179
37180 2014-06-14  David S. Miller  <davem@davemloft.net>
37181
37182         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37183
37184 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
37185
37186         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
37187         that was previously under [RESET_PID].
37188         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
37189
37190         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
37191         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
37192         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
37193         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
37194         (__libc_vfork): New strong alias.
37195         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
37196
37197 2014-06-14 Andi Kleen  <ak@linux.intel.com>
37198
37199         * sysdeps/generic/elide.h: New file.
37200
37201 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37202
37203         * Makefile (installed-headers): Adjust path of pthread.h header.
37204
37205 2014-06-13  Roland McGrath  <roland@hack.frob.com>
37206
37207         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
37208         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
37209         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
37210         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
37211
37212         * nptl/sysdeps/s390/Makefile: Moved ...
37213         * sysdeps/s390/nptl/Makefile: ... here.
37214         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
37215         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
37216         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
37217         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
37218         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
37219         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
37220         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
37221         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
37222         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
37223         * sysdeps/s390/nptl/pthreaddef.h: ... here.
37224         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
37225         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
37226         * nptl/sysdeps/s390/tls.h: Moved ...
37227         * sysdeps/s390/nptl/tls.h: ... here.
37228
37229         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
37230         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
37231
37232 2014-06-13  David S. Miller  <davem@davemloft.net>
37233
37234         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
37235         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
37236         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
37237         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
37238         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
37239         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
37240         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
37241         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
37242         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
37243         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
37244         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
37245         Remove RESET_PID cpp guards.
37246         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
37247         Remove RESET_PID cpp guards.
37248         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
37249
37250 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
37251
37252         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
37253         __sp to uintptr_t.
37254
37255 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37256
37257         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
37258         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
37259         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
37260         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
37261         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
37262         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
37263         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
37264         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
37265         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
37266         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
37267         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
37268         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
37269         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
37270         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
37271         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
37272         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
37273         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
37274         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
37275         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
37276         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
37277
37278         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
37279         (pthread_rwlock_rdlock): Add elision.
37280         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
37281         (pthread_rwlock_wrlock): Add elision.
37282         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
37283         (pthread_rwlock_trywrlock): Add elision.
37284         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
37285         (pthread_rwlock_tryrdlock): Add elision.
37286         * nptl/pthread_rwlock_unlock.c: Include elide.h.
37287         (pthread_rwlock_tryrdlock): Add elision unlock.
37288         * nptl/sysdeps/pthread/pthread.h:
37289         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
37290         (PTHREAD_RWLOCK_INITIALIZER,
37291         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
37292         Handle new elision field.
37293         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
37294         * sysdeps/arm/nptl/bits/pthreadtypes.h
37295         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37296         * sysdeps/sh/nptl/bits/pthreadtypes.h
37297         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37298         * sysdeps/tile/nptl/bits/pthreadtypes.h
37299         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37300         * sysdeps/a/nptl/bits/pthreadtypes.h
37301         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37302         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37303         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37304         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37305         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37306         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
37307         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37308         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37309         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37310         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37311         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37312         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37313         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37314         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37315         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37316         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
37317         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37318         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
37319         (elision_init): Set try_xbegin to zero when no RTM.
37320         * sysdeps/x86/nptl/bits/pthreadtypes.h
37321         (pthread_rwlock_t): Change __pad1 to __rwelision.
37322         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37323
37324 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37325
37326         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
37327         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
37328         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
37329         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
37330
37331 2014-06-13  Meador Inge  <meadori@codesourcery.com>
37332
37333         [BZ #16996]
37334         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
37335         that the cached result has been set before returning it.
37336
37337 2014-06-12  Roland McGrath  <roland@hack.frob.com>
37338
37339         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
37340         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
37341         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
37342         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
37343         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
37344         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
37345
37346         * nptl/sysdeps/sparc/Makefile: Moved ...
37347         * sysdeps/sparc/nptl/Makefile: ... here.
37348         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
37349         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
37350         * nptl/sysdeps/sparc/tls.h: Moved ...
37351         * sysdeps/sparc/nptl/tls.h: ... here.
37352         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
37353         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
37354         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
37355         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
37356         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
37357         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
37358         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
37359         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
37360         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
37361         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
37362         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
37363         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
37364         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
37365         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
37366         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
37367         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
37368         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
37369         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
37370         Update #include.
37371         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
37372         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
37373         Update #include.
37374         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
37375         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
37376         Update #include.
37377         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
37378         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
37379         Update #include.
37380
37381         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37382
37383         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
37384         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
37385
37386         * sysdeps/pthread/posix-timer.h: Include <list.h>.
37387         (struct list_links): Type removed.
37388         (struct thread_node, struct timer_node): Replace struct list_links
37389         with struct list_head.
37390         (list_unlink_ip): Likewise.
37391         * sysdeps/pthread/timer_routines.c
37392         (timer_free_list, thread_free_list, thread_active_list): Likewise.
37393         (list_append, list_insbefore): Likewise.
37394         (list_init): Function removed.
37395         (thread_init, init_module): Use INIT_LIST_HEAD instead.
37396         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
37397         * sysdeps/pthread/Makefile: ... here, new file.
37398
37399         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
37400         * sysdeps/nptl/Implies: ... here.
37401         * sysdeps/unix/sysv/linux/Implies: Add nptl.
37402         * nptl/sysdeps/pthread/list.h: Moved ...
37403         * include/list.h: ... here.
37404         * nptl/sysdeps/pthread/createthread.c: Moved ...
37405         * nptl/createthread.c: ... here.
37406         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
37407         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
37408         * nptl/pt-longjmp.c: ... here.
37409         * nptl/sysdeps/pthread/Makefile: Moved ...
37410         * sysdeps/nptl/Makefile: ... here.
37411         * nptl/sysdeps/pthread/Subdirs: Moved ...
37412         * sysdeps/nptl/Subdirs: ... here.
37413         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
37414         * sysdeps/nptl/aio_misc.h: ... here.
37415         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
37416         * sysdeps/nptl/bits/libc-lock.h: ... here.
37417         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
37418         * sysdeps/nptl/bits/libc-lockP.h: ... here.
37419         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
37420         * sysdeps/nptl/bits/stdio-lock.h: ... here.
37421         * nptl/sysdeps/pthread/configure: Moved ...
37422         * sysdeps/nptl/configure: ... here.
37423         * nptl/sysdeps/pthread/configure.ac: Moved ...
37424         * sysdeps/nptl/configure.ac: ... here.
37425         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
37426         * sysdeps/nptl/gai_misc.h: ... here.
37427         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
37428         * sysdeps/nptl/librt-cancellation.c: ... here.
37429         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
37430         * sysdeps/nptl/malloc-machine.h: ... here.
37431         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
37432         * sysdeps/nptl/pthread-functions.h: ... here.
37433         * nptl/sysdeps/pthread/pthread.h: Moved ...
37434         * sysdeps/nptl/pthread.h: ... here.
37435         * nptl/sysdeps/pthread/setxid.h: Moved ...
37436         * sysdeps/nptl/setxid.h: ... here.
37437         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
37438         * sysdeps/nptl/sigfillset.c: ... here.
37439         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
37440         * sysdeps/nptl/tcb-offsets.h: ... here.
37441         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
37442         * sysdeps/nptl/tst-mqueue8x.c: ... here.
37443         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
37444         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
37445         * nptl/sysdeps/pthread/allocalim.h: Moved ...
37446         * sysdeps/pthread/allocalim.h: ... here.
37447         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
37448         * sysdeps/pthread/bits/sigthread.h: ... here.
37449         * nptl/sysdeps/pthread/flockfile.c: Moved ...
37450         * sysdeps/pthread/flockfile.c: ... here.
37451         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
37452         * sysdeps/pthread/ftrylockfile.c: ... here.
37453         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
37454         * sysdeps/pthread/funlockfile.c: ... here.
37455         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
37456         * sysdeps/pthread/posix-timer.h: ... here.
37457         * nptl/sysdeps/pthread/timer_create.c: Moved ...
37458         * sysdeps/pthread/timer_create.c: ... here.
37459         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
37460         * sysdeps/pthread/timer_delete.c: ... here.
37461         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
37462         * sysdeps/pthread/timer_getoverr.c: ... here.
37463         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
37464         * sysdeps/pthread/timer_gettime.c: ... here.
37465         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
37466         * sysdeps/pthread/timer_routines.c: ... here.
37467         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
37468         * sysdeps/pthread/timer_settime.c: ... here.
37469         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
37470         * sysdeps/pthread/tst-timer.c: ... here.
37471         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
37472         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
37473
37474         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
37475         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
37476
37477         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
37478         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
37479         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
37480         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
37481         Update #include target.
37482         * nptl/sysdeps/i386/i686/Makefile: Moved ...
37483         * sysdeps/i386/i686/nptl/Makefile: ... here.
37484         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
37485         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
37486         Update #include target.
37487         * nptl/sysdeps/i386/i686/tls.h: Moved ...
37488         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
37489         * nptl/sysdeps/i386/Makefile: Moved ...
37490         * sysdeps/i386/nptl/Makefile: ... here.
37491         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
37492         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
37493         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
37494         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
37495         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
37496         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
37497         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
37498         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
37499         * sysdeps/i386/nptl/pthreaddef.h: ... here.
37500         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
37501         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
37502         * nptl/sysdeps/i386/tls.h: Moved ...
37503         * sysdeps/i386/nptl/tls.h: ... here.
37504
37505         * sysdeps/sh/Makefile [$(subdir) = csu]
37506         (gen-as-const-headers): Add tcb-offsets.sym.
37507         * nptl/sysdeps/sh/Makefile: File removed.
37508         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
37509         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
37510         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
37511         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
37512         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
37513         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
37514         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
37515         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
37516         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
37517         * sysdeps/sh/nptl/pthreaddef.h: ... here.
37518         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
37519         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
37520         * nptl/sysdeps/sh/tls.h: Moved ...
37521         * sysdeps/sh/nptl/tls.h: ... here.
37522         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
37523         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
37524         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
37525         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
37526         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
37527         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
37528         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
37529         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
37530         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
37531         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
37532         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
37533         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
37534         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
37535         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
37536         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
37537         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
37538         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
37539         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
37540         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
37541         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
37542         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
37543         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
37544         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
37545         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
37546         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
37547         Moved ...
37548         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
37549         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
37550         Moved ...
37551         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
37552         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
37553         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
37554         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
37555         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
37556         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
37557         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
37558         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
37559         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
37560         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
37561         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
37562         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
37563         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
37564         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
37565         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
37566         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
37567         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
37568         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
37569         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
37570
37571 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37572
37573         * posix/spawn_faction_addopen.c: Include string.h.
37574
37575 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37576
37577         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
37578         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
37579         * nptl/sysdeps/x86_64/Makefile: Moved ...
37580         * sysdeps/x86_64/nptl/Makefile: ... here.
37581         * nptl/sysdeps/x86_64/configure: Moved ...
37582         * sysdeps/x86_64/nptl/configure: ... here.
37583         * nptl/sysdeps/x86_64/configure.ac: Moved ...
37584         * sysdeps/x86_64/nptl/configure.ac: ... here.
37585         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
37586         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
37587         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
37588         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
37589         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
37590         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
37591         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
37592         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
37593         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
37594         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
37595         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
37596         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
37597         * nptl/sysdeps/x86_64/tls.h: Moved ...
37598         * sysdeps/x86_64/nptl/tls.h: ... here.
37599         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
37600         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
37601         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
37602         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
37603
37604         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
37605
37606 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37607
37608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37609
37610 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
37611
37612         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
37613         type.
37614         [POSIX] (off_t): Likewise.
37615         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
37616         [POSIX] (S_ISBLK): Require macro.
37617         [POSIX] (S_ISCHR): Likewise.
37618         [POSIX] (S_ISDIR): Likewise.
37619         [POSIX] (S_ISFIFO): Likewise.
37620         [POSIX] (S_ISREG): Likewise.
37621         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
37622         optional-macro.
37623         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
37624         type.
37625         [POSIX] (time_t): Likewise.
37626         [POSIX] (timer_t): Likewise.
37627
37628 2014-06-11  Florian Weimer  <fweimer@redhat.com>
37629
37630         [BZ #17048]
37631         * posix/spawn_int.h (struct __spawn_action): Make the path string
37632         non-const to support deallocation.
37633         * posix/spawn_faction_addopen.c
37634         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
37635         * posix/spawn_faction_destroy.c
37636         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
37637         path in all spawn_do_open actions.
37638         * posix/tst-spawn.c (do_test): Exercise the copy operation in
37639         posix_spawn_file_actions_addopen.
37640
37641 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
37642
37643         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
37644         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
37645         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
37646         conditional code always true.
37647         (__libc_vfork): New alias.
37648
37649 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37650
37651         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37652         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
37653
37654         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
37655
37656         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37657         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
37658
37659         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37660         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
37661
37662         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37663         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
37664
37665 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37666
37667         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
37668         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
37669         multiarch strcmp for PPC64.
37670         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
37671         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
37672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
37673         multiarch optimizations.
37674         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37675         (__libc_ifunc_impl_list): Likewise.
37676
37677 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
37678
37679         * benchtests/scripts/validate_benchout.py: New script.
37680         * benchtests/Makefile (bench-func): Call it.
37681         * benchtests/scripts/benchout.schema.json: New file.
37682
37683 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
37684
37685         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
37686         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
37687         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
37688         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
37689         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
37690         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
37691         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
37692         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
37693         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
37694         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
37695         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
37696         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
37697         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
37698         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
37699         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
37700         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
37701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
37702         Moved ...
37703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
37704         ... here.
37705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
37706         Moved ...
37707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
37708         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
37709         Moved ...
37710         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
37711         ... here.
37712         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
37713         Moved ...
37714         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
37715         ... here.
37716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
37717         Moved ...
37718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
37719         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
37720         Moved ...
37721         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
37722         ... here.
37723         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
37724         Moved ...
37725         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
37726         ... here.
37727         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
37728         Moved ...
37729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
37730         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
37731         Moved ...
37732         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
37733         ... here.
37734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
37735         Moved ...
37736         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
37737         ... here.
37738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
37739         Moved ...
37740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
37741         ... here.
37742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
37743         Moved ...
37744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
37745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
37746         Moved ...
37747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
37748         ... here.
37749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
37750         Moved ...
37751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
37752         ... here.
37753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
37754         Moved ...
37755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
37756         ... here.
37757         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
37758         Moved ...
37759         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
37760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
37761         Moved ...
37762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
37763         ... here.
37764         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
37765         Moved ...
37766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
37767         ... here.
37768         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
37769         Moved ...
37770         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
37771         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
37772         Moved ...
37773         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
37774         ... here.
37775         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
37776         Moved ...
37777         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
37778         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
37779         Moved ...
37780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
37781         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
37782         Moved ...
37783         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
37784         ... here.
37785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
37786         Moved ...
37787         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
37788         ... here.
37789         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
37790         Moved ...
37791         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
37792         ... here.
37793         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
37794         Moved ...
37795         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
37796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
37797         Moved ...
37798         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
37799         ... here.
37800         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
37801         Moved ...
37802         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
37803         ... here.
37804         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
37805         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
37806         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
37807         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
37808         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
37809         Moved ...
37810         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
37811         ... here.
37812         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
37813         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
37814         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
37815         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
37816         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
37817         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
37818         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
37819         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
37820         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
37821         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
37822         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
37823         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
37824         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
37825         Moved ...
37826         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
37827         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
37828         Moved ...
37829         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
37830         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
37831         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
37832         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
37833         Moved ...
37834         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
37835         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
37836         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
37837         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
37838         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
37839         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
37840         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
37841
37842 2014-06-10  Wilco  <wdijkstr@arm.com>
37843
37844         * math/test-fenv-return.c: New file.
37845         * math/Makefile: Add new test test-fenv-return.
37846
37847 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
37848
37849         [BZ #17042]
37850         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
37851         when x - 1 is zero.
37852         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
37853         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
37854         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
37855         0.0L for an argument of 1.0L.
37856         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
37857         Likewise.
37858         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
37859         value when x - 1 is zero.
37860         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
37861         * sysdeps/i386/fpu/libm-test-ulps: Update.
37862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37863
37864 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
37865
37866         [BZ #15119]
37867         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
37868
37869 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37870
37871         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
37872         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
37873
37874 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37875
37876         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37877         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
37878
37879         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37880         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
37881
37882         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37883         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
37884
37885         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37886         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
37887
37888         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
37889         if not already defined.
37890         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
37891         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
37892         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
37893         (TLS_INIT_TP): Use it.
37894         (TLS_DEFINE_INIT_TP): New macro.
37895         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
37896
37897 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
37898
37899         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
37900         constant.
37901         [POSIX] (IXANY): Likewise.
37902         [POSIX] (OLCUC): Likewise.
37903         [POSIX || POSIX2008] (CBAUD): Do not allow.
37904         [POSIX || POSIX2008] (DEFECHO): Likewise.
37905         [POSIX || POSIX2008] (ECHOCTL): Likewise.
37906         [POSIX || POSIX2008] (ECHOKE): Likewise.
37907         [POSIX || POSIX2008] (ECHOPRT): Likewise.
37908         [POSIX || POSIX2008] (EXTA): Likewise.
37909         [POSIX || POSIX2008] (EXTB): Likewise.
37910         [POSIX || POSIX2008] (FLUSHO): Likewise.
37911         [POSIX || POSIX2008] (LOBLK): Likewise.
37912         [POSIX || POSIX2008] (PENDIN): Likewise.
37913         [POSIX || POSIX2008] (SWTCH): Likewise.
37914         [POSIX || POSIX2008] (VDISCARD): Likewise.
37915         [POSIX || POSIX2008] (VDSUSP): Likewise.
37916         [POSIX || POSIX2008] (VLNEXT): Likewise.
37917         [POSIX || POSIX2008] (VREPRINT): Likewise.
37918         [POSIX || POSIX2008] (VSTATUS): Likewise.
37919         [POSIX || POSIX2008] (VWERASE): Likewise.
37920         (B*): Change to B[0123456789]*.
37921         * conform/data/time.h-data [POSIX || UNIX98]
37922         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
37923         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
37924         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
37925         [POSIX] (tm_*): Do not allow.
37926
37927 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
37928
37929         * Makefile (install): Don't set LANGUAGE.
37930         * Makefile.in (install): Likewise.
37931         * assert/Makefile (test-assert-ENV): Remove variable.
37932         (test-assert-perr-ENV): Likewise.
37933         * elf/Makefile (neededtest4-ENV): Likewise.
37934         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37935         [$(cross-compiling) = no]: Don't set LANGUAGE.
37936         * io/ftwtest-sh (LANG): Remove variable.
37937         * libio/Makefile (tst-widetext-ENV): Likewise.
37938         * manual/install.texi (Running make install): Don't refer to
37939         environment settings for make install.
37940         * INSTALL: Regenerated.
37941         * nptl/tst-tls6.sh: Don't set LANG.
37942         * posix/globtest.sh (LANG): Remove variable.
37943         * string/Makefile (tester-ENV): Likewise.
37944         (inl-tester-ENV): Likewise.
37945         (noinl-tester-ENV): Likewise.
37946         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37947         [$(cross-compiling) = no]: Don't set LANGUAGE.
37948         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
37949         without explicit environment settings.
37950
37951 2014-06-06  Roland McGrath  <roland@hack.frob.com>
37952
37953         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
37954         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
37955         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
37956         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
37957
37958 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
37959
37960         * crypt/crypt-private.h [DOS]: Add some includes taken from the
37961         other files in the crypt directory.
37962         * crypt/crypt.c: Remove duplicate includes.
37963         * crypt/crypt-entry.c: Likewise.
37964         * crypt/crypt_util.c: Likewise.
37965
37966 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
37967
37968         * Makeconfig (run-program-env): New variable.
37969         (run-program-prefix-before-env): Likewise.
37970         (run-program-prefix-after-env): Likewise.
37971         (run-program-prefix): Define in terms of new variables.
37972         (built-program-cmd-before-env): New variable.
37973         (built-program-cmd-after-env): Likewise.
37974         (built-program-cmd): Define in terms of new variables.
37975         (test-program-prefix-before-env): New variable.
37976         (test-program-prefix-after-env): Likewise.
37977         (test-program-prefix): Define in terms of new variables.
37978         (test-program-cmd-before-env): New variable.
37979         (test-program-cmd-after-env): Likewise.
37980         (test-program-cmd): Define in terms of new variables.
37981         * Rules (make-test-out): Use $(run-program-env).
37982         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
37983         (help): Do not mention environment variables.  Mention
37984         --timeoutfactor option.
37985         (timeoutfactor): New variable.
37986         (blacklist_exports): Remove function.
37987         (exports): Remove variable.
37988         (command): Do not include ${exports}.
37989         * manual/install.texi (Configuring and compiling): Do not mention
37990         test wrappers preserving environment variables.  Mention that last
37991         assignment to a variable must take precedence.
37992         * INSTALL: Regenerated.
37993         * benchtests/Makefile (run-bench): Use $(run-program-env).
37994         * catgets/Makefile ($(objpfx)test1.cat): Use
37995         $(built-program-cmd-before-env), $(run-program-env) and
37996         $(built-program-cmd-after-env).
37997         ($(objpfx)test2.cat): Do not specify environment variables
37998         explicitly.
37999         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
38000         $(run-program-env) and $(built-program-cmd-after-env).
38001         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
38002         $(run-program-env) and $(test-program-cmd-after-env).
38003         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
38004         explicitly.
38005         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
38006         run_program_env and test_program_cmd_after_env arguments.
38007         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
38008         * elf/tst-pathopt.sh: Use run_program_env argument.
38009         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
38010         $(test-wrapper-env) and $(run-program-env).
38011         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
38012         run_program_env arguments.
38013         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
38014         * intl/Makefile ($(objpfx)tst-gettext.out): Use
38015         $(test-program-prefix-before-env), $(run-program-env) and
38016         $(test-program-prefix-after-env).
38017         ($(objpfx)tst-gettext2.out): Likewise.
38018         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
38019         run_program_env and test_program_prefix_after_env arguments.
38020         * intl/tst-gettext2.sh: Likewise.
38021         * intl/tst-gettext4.sh: Do not set environment variables
38022         explicitly.
38023         * intl/tst-gettext6.sh: Likewise.
38024         * intl/tst-translit.sh: Likewise.
38025         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
38026         $(test-program-prefix-before-env), $(run-program-env) and
38027         $(test-program-prefix-after-env).
38028         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
38029         run_program_env and test_program_prefix_after_env arguments.
38030         * math/Makefile (run-regen-ulps): Use $(run-program-env).
38031         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
38032         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
38033         explicitly with each use of ${test_wrapper_env}.
38034         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
38035         $(test-program-prefix-before-env), $(run-program-env) and
38036         $(test-program-prefix-after-env).
38037         * posix/tst-getconf.sh: Do not set environment variables
38038         explicitly.
38039         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
38040         run_program_env and test_program_prefix_after_env arguments.
38041         * stdio-common/tst-printf.sh: Do not set environment variables
38042         explicitly.
38043         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
38044         $(test-program-prefix-before-env), $(run-program-env) and
38045         $(test-program-prefix-after-env).
38046         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
38047         run_program_env and test_program_prefix_after_env arguments.
38048         Split $test calls into $test_pre and $test.
38049         * timezone/Makefile (build-testdata): Use
38050         $(built-program-cmd-before-env), $(run-program-env) and
38051         $(built-program-cmd-after-env).
38052
38053 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38054
38055         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
38056         strlen for non SHARED builds.
38057
38058 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38059
38060         * nptl/allocatestack.c (check_list): Inlined function...
38061         (__reclaim_stacks): ... here.
38062
38063 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38064
38065         [BZ #15698]
38066         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
38067         memory overrun.
38068
38069 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
38070
38071         * Rules (make-test-out): Include
38072         LOCPATH=$(common-objpfx)localedata in default environment.
38073         * debug/Makefile (tst-chk1-ENV): Remove variable.
38074         (tst-chk2-ENV): Likewise.
38075         (tst-chk3-ENV): Likewise.
38076         (tst-chk4-ENV): Likewise.
38077         (tst-chk5-ENV): Likewise.
38078         (tst-chk6-ENV): Likewise.
38079         (tst-lfschk1-ENV): Likewise.
38080         (tst-lfschk2-ENV): Likewise.
38081         (tst-lfschk3-ENV): Likewise.
38082         (tst-lfschk4-ENV): Likewise.
38083         (tst-lfschk5-ENV): Likewise.
38084         (tst-lfschk6-ENV): Likewise.
38085         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
38086         (tst-iconv7-ENV): Likewise.
38087         * intl/Makefile (LOCPATH-ENV): Likewise.
38088         (tst-codeset-ENV): Likewise.
38089         (tst-gettext3-ENV): Likewise.
38090         (tst-gettext5-ENV): Likewise.
38091         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
38092         (tst-fopenloc-ENV): Likewise.
38093         (tst-fgetws-ENV): Remove variable.
38094         (tst-ungetwc1-ENV): Likewise.
38095         (tst-ungetwc2-ENV): Likewise.
38096         (bug-ungetwc2-ENV): Likewise.
38097         (tst-swscanf-ENV): Likewise.
38098         (bug-ftell-ENV): Likewise.
38099         (tst-fgetwc-ENV): Likewise.
38100         (tst-fseek-ENV): Likewise.
38101         (tst-ftell-partial-wide-ENV): Likewise.
38102         (tst-ftell-active-handler-ENV): Likewise.
38103         (tst-ftell-append-ENV): Likewise.
38104         * posix/Makefile (tst-fnmatch-ENV): Likewise.
38105         (tst-regexloc-ENV): Likewise.
38106         (bug-regex1-ENV): Likewise.
38107         (tst-regex-ENV): Likewise.
38108         (tst-regex2-ENV): Likewise.
38109         (bug-regex5-ENV): Likewise.
38110         (bug-regex6-ENV): Likewise.
38111         (bug-regex17-ENV): Likewise.
38112         (bug-regex18-ENV): Likewise.
38113         (bug-regex19-ENV): Likewise.
38114         (bug-regex20-ENV): Likewise.
38115         (bug-regex22-ENV): Likewise.
38116         (bug-regex23-ENV): Likewise.
38117         (bug-regex25-ENV): Likewise.
38118         (bug-regex26-ENV): Likewise.
38119         (bug-regex30-ENV): Likewise.
38120         (bug-regex32-ENV): Likewise.
38121         (bug-regex33-ENV): Likewise.
38122         (bug-regex34-ENV): Likewise.
38123         (bug-regex35-ENV): Likewise.
38124         (tst-rxspencer-ENV): Likewise.
38125         (tst-rxspencer-no-utf8-ENV): Likewise.
38126         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
38127         (tst-sscanf-ENV): Likewise.
38128         (tst-swprintf-ENV): Likewise.
38129         (tst-swscanf-ENV): Likewise.
38130         (test-vfprintf-ENV): Likewise.
38131         (scanf13-ENV): Likewise.
38132         (bug14-ENV): Likewise.
38133         (tst-grouping-ENV): Likewise.
38134         * stdlib/Makefile (tst-strtod-ENV): Likewise.
38135         (tst-strtod3-ENV): Likewise.
38136         (tst-strtod4-ENV): Likewise.
38137         (tst-strtod5-ENV): Likewise.
38138         (testmb2-ENV): Likewise./
38139         * string/Makefile (tst-strxfrm-ENV): Likewise.
38140         (tst-strxfrm2-ENV): Likewise.
38141         (bug-strcoll1-ENV): Likewise.
38142         (test-strcasecmp-ENV): Likewise.
38143         (test-strncasecmp-ENV): Likewise.
38144         * time/Makefile (tst-strptime-ENV): Likewise.
38145         (tst-ftime_l-ENV): Likewise.
38146         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
38147         (tst-mbrtowc-ENV): Likewise.
38148         (tst-wcrtomb-ENV): Likewise.
38149         (tst-mbrtowc2-ENV): Likewise.
38150         (tst-c16c32-1-ENV): Likewise.
38151         (tst-mbsnrtowcs-ENV): Likewise.
38152
38153 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38154
38155         * manual/resource.texi (How to get information about the memory
38156         subsystem?): Fix typo.
38157         Reported by Peon de la Parra Ivan <peon@keba.com>
38158
38159 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
38160
38161         [BZ #16882]
38162         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
38163         (pthread_spin_lock): Branch out of spin loop to proper location.
38164         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
38165         (pthread_spin_lock): Likewise.
38166
38167         * nptl/tst-spin4.c: New test.
38168         * nptl/Makefile (tests): Add tst-spin4.
38169
38170 2014-06-03  Andreas Schwab  <schwab@suse.de>
38171
38172         [BZ #15946]
38173         * resolv/res_send.c (send_dg): Reload file descriptor after
38174         calling reopen.
38175
38176 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
38177
38178         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38179
38180 2014-06-03  Richard Henderson  <rth@redhat.com>
38181
38182         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
38183         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
38184         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
38185         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
38186         in the SAVE_PID block.
38187         (__libc_vfork): New alias.
38188         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
38189
38190         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
38191         child in registers, not on the stack.  Remove RESET_PID conditionals.
38192         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
38193
38194 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38195
38196         * sysdeps/aarch64/libm-test-ulps: Regenerate.
38197
38198 2014-06-03  Wilco  <wdijkstr@arm.com>
38199
38200         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
38201         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
38202         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38203         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
38204         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
38205         Likewise.
38206
38207 2014-06-03  Wilco  <wdijkstr@arm.com>
38208
38209         * sysdeps/aarch64/fpu/math_private.h
38210         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
38211         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
38212         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
38213         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38214         Fix declarations.
38215
38216 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38217
38218         * crypt/crypt-private.h: Include ufc-crypt.h.
38219         (__b64_from_24bit): Declare extern.
38220         * crypt/crypt_util.c(__b64_from_24bit): New function.
38221         (b64t): New static const variable.
38222         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
38223         (b64t): Remove variable.
38224         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
38225         * crypt/sha256-crypt.c: Include crypt-private.h.
38226         (b64t): Remove variable.
38227         (__sha256_crypt_r): Remove b64_from_24bit and replace
38228         with __b64_from_24bit.
38229         * crypt/sha512-crypt.c: Likewise.
38230
38231 2014-06-02  Roland McGrath  <roland@hack.frob.com>
38232
38233         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
38234         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
38235         Label the code __libc_vfork rather than __vfork.
38236         [!NOT_IN_libc] (vfork): Define as weak alias.
38237         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
38238         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
38239         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
38240
38241 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38242
38243         * malloc/malloc.c (malloc_info): Fix format specifier for
38244         n_mmaps.
38245
38246 2014-06-02  Wilco  <wdijkstr@arm.com>
38247
38248         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
38249         FPCR write.
38250
38251 2014-06-02  Wilco  <wdijkstr@arm.com>
38252
38253         [BZ #17009]
38254         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
38255         Rewrite to reduce FPCR/FPSR accesses.
38256
38257 2014-06-01  David S. Miller  <davem@davemloft.net>
38258
38259         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38260
38261 2014-05-31  David S. Miller  <davem@davemloft.net>
38262
38263         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
38264         to occur in round to nearest mode when |x| >= 2.0
38265
38266 2014-05-30  Richard Henderson  <rth@twiddle.net>
38267
38268         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
38269         (PSEUDO_RET_NOERRNO): Remove.
38270         (ret): Don't redefine.
38271         (ret_NOERRNO): Define in terms of ret.
38272         (ret_ERRVAL): Likewise.
38273
38274         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
38275         use of PSEUDO_RET; perform the error check directly.
38276
38277 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
38278
38279         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
38280         with __int128_t.
38281
38282 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38283
38284         * malloc/malloc (malloc_info): Fix formatting.
38285
38286 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38287             Roland McGrath  <roland@hack.frob.com>
38288
38289         * malloc/malloc (malloc_info): Also print mmapped statistics.
38290
38291 2014-05-30  Roland McGrath  <roland@hack.frob.com>
38292
38293         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
38294         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
38295
38296 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
38297
38298         * malloc/malloc.c (malloc_info): Inline mi_arena.
38299
38300 2014-05-29  Richard Henderson  <rth@twiddle.net>
38301
38302         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
38303         Remove comma before expanding ASM_ARGS_##nr.
38304         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
38305         Make _x0 a strict output; make _x8 a strict input; adjust expansion
38306         of ASM_ARGS_##nr.
38307         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
38308         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
38309         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
38310         (ASM_ARGS_1): Add leading comma.
38311
38312         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
38313         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
38314         to __errno_location.
38315         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
38316         Remove the expected plt for __errno_location.
38317
38318         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38319         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
38320         call to __read_tp.
38321
38322         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38323         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
38324         it and break it down.
38325         (DOCARGS_0, DOCARGS_1): Do nothing.
38326         (DOCARGS_2): Update to store into the new stack frame.
38327         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
38328         (UNDOCARGS_1): Update to restore from the new stack frame.
38329         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
38330         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
38331
38332         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38333         (SINGLE_THREAD_P): New parameter for result regno.
38334         (PSEUDO): Update to match; use cbz instead of beq.
38335
38336         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38337         Use ENTRY to define the _nocancel entry point.  Share the syscall
38338         and syscall error check paths with the cancel path.
38339         (PSEUDO_END): New.
38340
38341         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
38342         whitespace; tabs before and after asm mnemonics.
38343
38344 2014-05-29  Eric Wong  <normalperson@yhbt.net>
38345
38346         [BZ #15132]
38347         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38348         Call fstat64 or stat64 internally, depending on arguments passed.
38349         Replace stat buffer argument with file descriptor argument.
38350         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
38351         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
38352         Pass fd to __internal_statvfs instead of calling fstat64.
38353         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
38354         Pass fd to __internal_statvfs64 instead of calling fstat64.
38355         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
38356         Pass -1 to __internal_statvfs instead of calling stat64.
38357         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
38358         Pass -1 to __internal_statvfs64 instead of calling stat64.
38359
38360 2014-05-28  Roland McGrath  <roland@hack.frob.com>
38361
38362         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
38363         that was previously under [RESET_PID].
38364         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
38365
38366         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
38367         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
38368
38369 2014-05-27  Roland McGrath  <roland@hack.frob.com>
38370
38371         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
38372
38373         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
38374         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
38375
38376 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
38377
38378         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
38379
38380 2014-05-27  Andreas Schwab  <schwab@suse.de>
38381
38382         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
38383         TLS_INIT_TP macro.
38384         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
38385         * elf/rtld.c (init_tls, dl_main): Likewise.
38386         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
38387         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
38388         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
38389         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
38390         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
38391         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
38392         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
38393         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
38394         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
38395         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
38396         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
38397         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
38398         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
38399         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
38400         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
38401         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
38402         * sysdeps/generic/tls.h: Update description.
38403
38404 2014-05-27  Will Newton  <will.newton@linaro.org>
38405
38406         [BZ #16990]
38407         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
38408         and restore r2 rather than just restoring.
38409
38410 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38411
38412         [BZ #16724]
38413         * libio/tst-ftell-append.c: New test case.
38414         * libio/Makefile (tests): Add test case.
38415         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
38416         append mode.
38417         * libio/wfileops.c (do_ftell_wide): Likewise.
38418
38419 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38420
38421         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38422
38423         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
38424         ...
38425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
38426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
38427         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
38428         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
38429         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
38430         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
38431         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
38432         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
38433         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38434         Moved ...
38435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
38436         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38437         Moved ...
38438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
38439         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
38440         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
38441         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
38442         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
38443         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
38444         ...
38445         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
38446         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
38447         Moved ...
38448         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
38449         here.
38450         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
38451         ...
38452         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
38453         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
38454         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
38455
38456         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
38457         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
38458         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
38459         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
38460
38461         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
38462         merge into ...
38463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
38464         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
38465         ...
38466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
38467         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
38468         ...
38469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
38470         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38471         Moved ...
38472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
38473         here.
38474         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
38475         Moved ...
38476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
38477         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
38478         Moved ...
38479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
38480
38481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
38482         conditional [RESET_PID].
38483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
38484         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
38485         removed.
38486         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
38487         removed.
38488
38489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
38490         <tcb-offsets.h>.
38491         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
38492         (__libc_vfork): New strong alias.
38493         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
38494         removed.
38495         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
38496         Removed.
38497
38498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
38499         <tcb-offsets.h>.
38500         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
38501         (__libc_vfork): New strong alias.
38502         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
38503         removed.
38504         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
38505         removed.
38506
38507 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
38508
38509         * malloc/malloc.c (mi_arena): New function.
38510         (malloc_info): Remove nested function mi_arena. Call non-nosted
38511         function mi_arena.
38512
38513 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38514
38515         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
38516         by insrwi.
38517         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38518         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38519         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
38520         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
38521         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
38522         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
38523         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38524
38525 2014-05-26  Andreas Schwab  <schwab@suse.de>
38526
38527         [BZ #16984]
38528         * locale/programs/repertoire.c (repertoire_read): Add slash
38529         between I18NPATH element and file name.
38530         * locale/programs/locfile.c (locfile_read): Likewise.
38531
38532 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38533
38534         * nptl/pthread_mutexattr_settype.c
38535         (__pthread_mutexattr_settype):
38536         Disable lock elision for PTHREAD_MUTEX_NORMAL.
38537
38538 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38539
38540         * nptl/tst-mutex5 (do_test):
38541         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
38542
38543 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38544
38545         * benchtests/README: Document 'init' directive.
38546         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
38547         BENCH_INIT.
38548         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
38549         (parse_file): Recognize 'init' directive.
38550
38551 2014-05-26  Kyle McMartin  <kyle@redhat.com>
38552
38553         [BZ #16796]
38554         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
38555         alignment of struct pthread.
38556
38557 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38558
38559         [BZ #16878]
38560         * nscd/netgroupcache.c (addgetnetgrentX): Look for
38561         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38562         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
38563         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38564
38565 2014-05-25  Richard Henderson  <rth@twiddle.net>
38566
38567         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38568         (SINGLE_THREAD_P_PIC): Remove.
38569         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
38570         (SINGLE_THREAD_P_PIC): Remove.
38571
38572         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
38573         branch to syscall error ...
38574         (PSEUDO): ... here.
38575         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
38576         from __local_syscall_error to .Lsyscall_error.
38577         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
38578         (SYSCALL_ERROR): Update label name.
38579
38580         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38581         Do not use DOARGS/UNDOARGS.
38582         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
38583         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
38584         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
38585         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
38586         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
38587
38588         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
38589         block comment.
38590
38591         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
38592         define if !NOT_IN_libc.
38593         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
38594         define with non-default symbol versions.
38595
38596 2014-05-23  Richard Henderson  <rth@twiddle.net>
38597
38598         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
38599         (vfork, __vfork): Define via compat_symbol.
38600
38601         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
38602         [!HAVE_IFUNC] (vfork_compat): Remove.
38603         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
38604
38605 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38606
38607         [BZ #16978]
38608         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
38609         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
38610         variable.
38611
38612 2014-05-23  Richard Henderson  <rth@twiddle.net>
38613
38614         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
38615         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
38616         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
38617         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
38618
38619         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
38620         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
38621         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
38622         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
38623         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
38624         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
38625         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
38626         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
38627         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
38628         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
38629         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
38630         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
38631         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
38632         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
38633         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
38634         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
38635         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
38636         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
38637         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
38638         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
38639         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
38640         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
38641         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
38642         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
38643         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
38644         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
38645         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
38646         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
38647         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
38648         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
38649         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
38650         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
38651         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
38652         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
38653         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
38654         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
38655         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
38656         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
38657         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
38658         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
38659         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
38660         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
38661         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
38662         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
38663         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
38664         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
38665         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
38666         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
38667         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
38668         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
38669         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
38670         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
38671         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
38672         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
38673         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
38674         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
38675
38676         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
38677         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
38678         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
38679         before exiting on error.
38680         (__libc_vfork): New strong alias.
38681         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
38682         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
38683
38684         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
38685         that was previously under [RESET_PID].
38686         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
38687
38688         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
38689
38690 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38691
38692         [BZ #16977]
38693         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
38694         value when x - 1 is zero.
38695         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
38696         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
38697         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
38698         0.0L for an argument of 1.0L.
38699         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
38700         Likewise.
38701         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
38702         value when x - 1 is zero.
38703         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
38704         * sysdeps/i386/fpu/libm-test-ulps: Update.
38705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38706
38707 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
38708
38709         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
38710         alphasort and versionsort.
38711
38712 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38713
38714         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
38715         macro.
38716         [copysignf]: Likewise.
38717
38718 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
38719
38720         * crypt/md5-crypt.c: Fix formatting.
38721
38722 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38723
38724         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
38725         (b64_from_24bit): New function.
38726
38727 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38728
38729         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
38730         libc_hidden_builtin_def to ifunc.
38731         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
38732         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
38733
38734 2014-05-21  Roland McGrath  <roland@hack.frob.com>
38735
38736         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
38737         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
38738
38739 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
38740
38741         * nscd/Depend (linuxthreads): Remove.
38742         (nptl): Add.
38743         * resolv/Depend (linuxthreads): Remove.
38744         * rt/Depend (linuxthreads): Remove.
38745
38746         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
38747         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
38748         $(common-objpfx)elf/.
38749         (link-libc-before-gnulib): Likewise.
38750         (elfobjdir): Remove variable.
38751         * Makefile (install): Use $(elf-objpfx) instead of
38752         $(common-objpfx)elf/.
38753         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
38754         $(elfobjdir)/.
38755         (link-libc-deps): Likewise.
38756         ($(common-objpfx)libc.so): Likewise.
38757         ($(common-objpfx)linkobj/libc.so): Likewise.
38758         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
38759         instead of $(common-objpfx)elf/.
38760         (symbolic-link-list): Likewise.
38761         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38762         [$(cross-compiling) = no]: Likewise.
38763         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
38764         $(elfobjdir)/.
38765         (static-gnulib-arch): Likewise.
38766         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38767         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
38768         $(common-objpfx)elf/.
38769
38770 2014-05-21  Richard Henderson  <rth@redhat.com>
38771
38772         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38773         (SINGLE_THREAD_P): Use the correct width load.  Fold
38774         into the ldr offset.
38775
38776         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
38777         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
38778
38779 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
38780
38781         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
38782         (libgcc_s_resume): Use __attribute_used__.
38783         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
38784         Likewise.
38785
38786 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38787
38788         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
38789         optimization when used with float constants.
38790
38791         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38792
38793 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
38794
38795         [BZ #16915]
38796         * locale/nl_langinfo_l.c: Make direct reference to every
38797         _nl_current_CATEGORY symbol.
38798         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
38799         (tests-static): Add tst-langinfo-static.
38800         (tests-special): Add tst-langinfo-static.out.
38801         ($(objpfx)tst-langinfo.out): Redirect output.
38802         ($(objpfx)tst-langinfo-static.out): New.
38803         * localedata/tst-langinfo.sh: Send output to stdout.
38804         * localedata/tst-langinfo-static.c: New file.
38805
38806         [BZ #16965]
38807         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
38808         when the shift amount is modulo the limb size.
38809
38810 2014-05-20  Richard Henderson  <rth@redhat.com>
38811
38812         [BZ #16967]
38813         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
38814         Change type of sa_flags from unsigned int to int.
38815
38816         [BZ #16966]
38817         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
38818
38819         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
38820
38821 2014-05-20  Will Newton  <will.newton@linaro.org>
38822
38823         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38824         Test the return value of the system call in the nocancel case.
38825
38826 2014-05-20  Will Newton  <will.newton@linaro.org>
38827             Yvan Roux  <yvan.roux@linaro.org>
38828
38829         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
38830         #include of asm/ptrace.h.
38831         (PTRACE_GET_THREAD_AREA): Remove #undef.
38832         (PTRACE_GETHBPREGS): Likewise.
38833         (PTRACE_SETHBPREGS): Likewise.
38834         (struct user_regs_struct): New structure.
38835         (struct user_fpsimd_struct): New structure.
38836         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
38837         #include of asm/ptrace.h and second #include of sys/user.h.
38838         (PTRACE_GET_THREAD_AREA): Remove #undef.
38839         (PTRACE_GETHBPREGS): Likewise.
38840         (PTRACE_SETHBPREGS): Likewise.
38841         (ELF_NGREG): Use new struct user_regs_struct.
38842         (elf_fpregset_t): Use new struct user_fpsimd_struct.
38843
38844 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38845
38846         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
38847         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
38848
38849 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
38850
38851         [BZ #16958]
38852         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
38853         membar to avoid block loads/stores to overlap previous stores.
38854
38855 2014-05-17  Richard Henderson  <rth@redhat.com>
38856
38857         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
38858         Create the __##syscall_name##_nocancel entry point.
38859         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
38860         Remove; let the sysdep-cancel.h code create it.
38861
38862 2014-05-17  David S. Miller  <davem@davemloft.net>
38863
38864         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
38865         Protect with __USE_GNU.
38866         (TIOCSET_TEMPT): Likewise.
38867         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
38868         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
38869         these are already provided in bits/ioctl-types.h
38870
38871 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38872
38873         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
38874         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
38875
38876         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
38877         Use wait4 regardless of [__NR_waitpid].
38878
38879 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
38880
38881         PR libgcc/60166
38882         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
38883         (_FP_NANSIGN_Q): Set the quiet bit.
38884
38885 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
38886
38887         * benchtests/Makefile
38888         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
38889         not $(common-objpfx)math/libm.so.
38890         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
38891         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
38892         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
38893         $(common-objpfx)dlfcn/libdl.so.
38894         ($(objpfx)tst-audit8): Depend on $(libm), not
38895         $(common-objpfx)math/libm.so.
38896         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
38897         not $(common-objpfx)dlfcn/libdl.so.
38898         * math/Makefile
38899         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
38900         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
38901         [$(build-shared) = yes].
38902         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
38903         $(common-objpfx)nptl/libpthread.so.
38904         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
38905         $(common-objpfx)math/libm.so$(libm.so-version) or
38906         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
38907         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
38908         $(common-objpfx)dlfcn/libdl.so.
38909         * setjmp/Makefile (link-libm): Remove variable.
38910         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
38911         * stdio-common/Makefile (link-libm): Remove variable.
38912         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
38913         * stdlib/Makefile (link-libm): Remove variable.
38914         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
38915         ($(objpfx)tst-strtod-round): Likewise.
38916         ($(objpfx)tst-tininess): Likewise.
38917         ($(objpfx)tst-strtod-underflow): Likewise.
38918         ($(objpfx)tst-strtod6): Likewise.
38919         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
38920         $(libdl), not $(common-objpfx)nptl/libpthread.so and
38921         $(common-objpfx)dlfcn/libdl.so.
38922
38923 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38924
38925         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
38926         BSD terminal modes definitions.
38927
38928 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38929
38930         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
38931         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
38932
38933         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
38934         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
38935         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
38936         Don't do #include_next.
38937         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
38938         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
38939         Don't do #include_next.
38940         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
38941         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
38942         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
38943         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
38944
38945 2014-05-16  Allan McRae  <allan@archlinux.org>
38946
38947         * po/sv.po: Update Swedish translation from translation project.
38948
38949         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
38950         in sed expression.
38951
38952 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
38953
38954         [BZ #16917]
38955         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
38956         errno if the TIOCGPTN ioctl fails with an error different than
38957         EINVAL.
38958         * login/tst-ptsname.c: New file.
38959         * login/Makefile (tests): Add tst-ptsname.
38960
38961         [BZ #16943]
38962         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
38963         and prlimit64.
38964
38965 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
38966
38967         [BZ #16849]
38968         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
38969         herrno to return EAI_AGAIN.
38970
38971 2014-05-14  Roland McGrath  <roland@hack.frob.com>
38972
38973         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
38974         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
38975         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
38976         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
38977         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
38978         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
38979         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
38980         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
38981         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
38982         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
38983         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
38984         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
38985         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
38986         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
38987         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
38988         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
38989         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
38990         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
38991         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
38992         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
38993         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
38994         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
38995         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
38996         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
38997         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
38998         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
38999         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
39000         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
39001         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
39002         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
39003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
39004         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
39005         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
39006         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
39007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
39008         Moved ...
39009         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
39010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
39011         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
39012         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
39013         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
39014         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
39015         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
39016         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
39017         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
39018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
39019         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
39020         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
39021         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
39022         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
39023         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
39024         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
39025         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
39026         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
39027         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
39028         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
39029         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
39030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
39031         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
39032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
39033         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
39034         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
39035         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
39036         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
39037         Moved ...
39038         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
39039         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
39040         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
39041         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
39042         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
39043         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
39044         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
39045         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
39046         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
39047         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
39048         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
39049         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
39050         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
39051         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
39052         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
39053         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
39054         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
39055         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
39056         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
39057         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
39058         Moved ...
39059         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
39060         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
39061         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
39062
39063         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
39064         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
39065         (libpthread-sysdep_routines): Add elision-related stuff here instead.
39066         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
39067         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
39068         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
39069         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
39070         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
39071         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
39072         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
39073         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
39074         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
39075         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
39076         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
39077         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
39078         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
39079         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
39080         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
39081         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
39082         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
39083         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
39084         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
39085         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
39086         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
39087         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
39088         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
39089         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
39090         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
39091         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
39092         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
39093         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
39094
39095         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
39096         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
39097
39098         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
39099         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
39100         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
39101         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
39102         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
39103         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
39104         Moved ...
39105         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
39106         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
39107         Moved ...
39108         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
39109         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
39110         Moved ...
39111         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
39112         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
39113         Moved ...
39114         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
39115         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
39116         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
39117         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
39118         Moved ...
39119         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
39120         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
39121         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
39122         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
39123         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
39124         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
39125         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
39126         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
39127         Moved ...
39128         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
39129         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39130         Moved ...
39131         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39132         ... here.
39133         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
39134         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
39135         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
39136         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
39137         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39138         Moved ...
39139         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39140         ... here.
39141         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
39142         Moved ...
39143         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
39144         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
39145         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
39146         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
39147         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
39148         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
39149         Moved ...
39150         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
39151         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
39152         Moved ...
39153         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
39154         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
39155         Moved ...
39156         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
39157         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
39158         Moved ...
39159         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
39160         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
39161         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
39162         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
39163         Moved ...
39164         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
39165         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
39166         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
39167         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
39168         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
39169         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
39170         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
39171         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
39172         Moved ...
39173         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
39174         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39175         Moved ...
39176         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39177         ... here.
39178         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
39179         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
39180         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
39181         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
39182         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39183         Moved ...
39184         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39185         ... here.
39186         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
39187         Moved ...
39188         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
39189         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
39190         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
39191         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
39192         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
39193         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
39194         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
39195         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
39196         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
39197         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
39198         Moved ...
39199         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
39200         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
39201         Moved ...
39202         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
39203         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
39204         Moved ...
39205         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
39206         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
39207         Moved ...
39208         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
39209         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
39210         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
39211         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
39212         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
39213         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
39214         Moved ...
39215         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
39216         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
39217         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
39218         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
39219         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
39220         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
39221         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
39222         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
39223         Moved ...
39224         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
39225         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39226         Moved ...
39227         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39228         ... here.
39229         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
39230         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
39231         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
39232         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
39233         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39234         Moved ...
39235         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39236         ... here.
39237         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
39238         Moved ...
39239         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
39240         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
39241         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
39242         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
39243         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
39244         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
39245         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
39246         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
39247         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
39248         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
39249         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
39250
39251         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
39252         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
39253
39254         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
39255         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
39256
39257         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
39258         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
39259         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
39260         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
39261         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
39262         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
39263         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
39264         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
39265         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
39266         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
39267         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
39268         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
39269         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
39270         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
39271         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
39272         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
39273         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
39274         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
39275         Moved ...
39276         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
39277         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
39278         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
39279         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
39280         Moved ...
39281         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
39282         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
39283         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
39284         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
39285         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
39286         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
39287         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
39288         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
39289         Moved ...
39290         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
39291         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
39292         Moved ...
39293         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
39294         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
39295         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
39296         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
39297         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
39298         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
39299         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
39300         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
39301         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
39302         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
39303         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
39304         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
39305         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
39306         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
39307         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
39308         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
39309         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
39310
39311         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
39312         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
39313         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
39314         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
39315         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
39316
39317         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
39318         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
39319         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
39320         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
39321         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
39322         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
39323         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
39324         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
39325         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
39326         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
39327
39328         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
39329         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
39330
39331         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
39332         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
39333         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
39334         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
39335         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
39336         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
39337         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
39338         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
39339         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
39340         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
39341         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
39342         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
39343         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
39344         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
39345         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
39346         Update #include.
39347         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
39348         Likewise.
39349         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
39350         Likewise.
39351         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39352         Likewise.
39353         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39354         Likewise.
39355         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
39356         Likewise.
39357         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
39358         Likewise.
39359         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
39360         Likewise.
39361         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
39362         Likewise.
39363         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
39364         Likewise.
39365         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
39366         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
39367         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
39368         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
39369         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
39370         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
39371         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
39372         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
39373         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
39374         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
39375         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
39376         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
39377         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
39378         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
39379         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
39380
39381         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
39382         that was previously under [RESET_PID].
39383         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
39384         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
39385         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
39386
39387         * sysdeps/i386/nptl/Implies: New file.
39388         * sysdeps/x86_64/nptl/Implies: New file.
39389         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
39390         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
39391         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
39392         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
39393
39394         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
39395         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39396         (__libc_vfork): New strong alias.
39397         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
39398         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
39399
39400         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
39401         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39402         (__libc_vfork): New strong alias.
39403         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
39404         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
39405
39406         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
39407         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39408         (__libc_vfork): New strong alias.
39409         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
39410         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
39411         * nptl/pt-vfork.c: New file.
39412         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
39413         (libpthread: GLIBC_2.20): New version set (empty).
39414
39415 2014-05-14  Will Newton  <will.newton@linaro.org>
39416
39417         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
39418         rather than #if.
39419
39420 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39421
39422         [BZ #16564]
39423         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
39424         arguments with exponent 65 or above.
39425         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
39426         arguments 0x1p113L or above.
39427         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
39428         to arguments 0x1p107L or above.
39429         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
39430         positive arguments with exponent 65 or above.
39431         * math/auto-libm-test-in: Add more tests of log1p.
39432         * math/auto-libm-test-out: Regenerated.
39433
39434         [BZ #16928]
39435         * math/s_cacos.c (__cacos): Ensure zero real part of result from
39436         non-finite arguments is +0.
39437         * math/s_cacosf.c (__cacosf): Likewise.
39438         * math/s_cacosl.c (__cacosl): Likewise.
39439         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
39440         * sysdeps/i386/fpu/libm-test-ulps: Update.
39441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39442
39443         [BZ #16927]
39444         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
39445         value.
39446         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
39447         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
39448         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
39449         for explicit high bit of mantissa when testing for argument equal
39450         to 1.
39451         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
39452         * sysdeps/i386/fpu/libm-test-ulps: Update.
39453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39454
39455         [BZ #16516]
39456         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
39457         (__erf): Scale by 16 instead of 8 in potentially underflowing
39458         case.  Ensure exception if result actually underflows.
39459         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
39460         (__erff): Scale by 16 instead of 8 in potentially underflowing
39461         case.  Ensure exception if result actually underflows.
39462         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
39463         (efx8): Remove variable.
39464         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39465         case.  Ensure exception if result actually underflows.
39466         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
39467         (efx8): Remove variable.
39468         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39469         case.  Ensure exception if result actually underflows.
39470         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
39471         (efx8): Remove variable.
39472         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39473         case.  Ensure exception if result actually underflows.
39474         * math/auto-libm-test-in: Add more tests of erf.
39475         * math/auto-libm-test-out: Regenerated.
39476
39477 2014-05-14  Andreas Schwab  <schwab@suse.de>
39478
39479         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
39480         Remove code conditionalized on USE___THREAD.
39481
39482         * config.h.in (HAVE_PT_CHOWN): Define as 0.
39483         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
39484         not definedness.
39485
39486 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39487
39488         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
39489         Define unconditionally.
39490         (__ASSUME_O_CLOEXEC): Likewise.
39491         (__ASSUME_SOCK_CLOEXEC): Likewise.
39492         (__ASSUME_IN_NONBLOCK): Likewise.
39493         (__ASSUME_PIPE2): Likewise.
39494         (__ASSUME_EVENTFD2): Likewise.
39495         (__ASSUME_SIGNALFD4): Likewise.
39496         (__ASSUME_DUP3): Likewise.
39497         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39498         (__ASSUME_DUP3): Do not define.
39499         (__ASSUME_EVENTFD2): Likewise.
39500         (__ASSUME_IN_NONBLOCK): Likewise.
39501         (__ASSUME_O_CLOEXEC): Likewise.
39502         (__ASSUME_PIPE2): Likewise.
39503         (__ASSUME_SIGNALFD4): Likewise.
39504         (__ASSUME_SOCK_CLOEXEC): Likewise.
39505         (__ASSUME_UTIMES): Undefine.
39506         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39507         (__ASSUME_UTIMES): Do not define.
39508         (__ASSUME_O_CLOEXEC): Likewise.
39509         (__ASSUME_SOCK_CLOEXEC): Likewise.
39510         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
39511         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
39512         0x020621].
39513         (__ASSUME_PIPE2): Likewise.
39514         (__ASSUME_EVENTFD2): Likewise.
39515         (__ASSUME_SIGNALFD4): Likewise.
39516         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
39517         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
39518         Do not define.
39519         (__ASSUME_EVENTFD2): Likewise.
39520         (__ASSUME_SIGNALFD4): Likewise.
39521         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39522         (__ASSUME_32BITUIDS): Likewise.
39523         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
39524         (__ASSUME_IPC64): Likewise.
39525         (__ASSUME_ST_INO_64_BIT): Likewise.
39526         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
39527         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
39528         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39529         (__ASSUME_UTIMES): Do not define.
39530         (__ASSUME_PSELECT): Likewise.
39531         (__ASSUME_PPOLL): Likewise.
39532         (__ASSUME_O_CLOEXEC): Likewise.
39533         (__ASSUME_SOCK_CLOEXEC): Likewise.
39534         (__ASSUME_IN_NONBLOCK): Likewise.
39535         (__ASSUME_PIPE2): Likewise.
39536         (__ASSUME_EVENTFD2): Likewise.
39537         (__ASSUME_SIGNALFD4): Likewise.
39538         (__ASSUME_DUP3): Likewise.
39539         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39540         (__ASSUME_UTIMES): Likewise.
39541         (__ASSUME_O_CLOEXEC): Likewise.
39542         (__ASSUME_SOCK_CLOEXEC): Likewise.
39543         (__ASSUME_IN_NONBLOCK): Likewise.
39544         (__ASSUME_PIPE2): Likewise.
39545         (__ASSUME_EVENTFD2): Likewise.
39546         (__ASSUME_SIGNALFD4): Likewise.
39547         (__ASSUME_DUP3): Likewise.
39548         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
39549         (__ASSUME_UTIMES): Likewise.
39550         (__ASSUME_O_CLOEXEC): Likewise.
39551         (__ASSUME_SOCK_CLOEXEC): Likewise.
39552         (__ASSUME_IN_NONBLOCK): Likewise.
39553         (__ASSUME_PIPE2): Likewise.
39554         (__ASSUME_EVENTFD2): Likewise.
39555         (__ASSUME_SIGNALFD4): Likewise.
39556         (__ASSUME_DUP3): Likewise.
39557         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
39558         Likewise.
39559         (__ASSUME_UTIMES): Likewise.
39560         (__ASSUME_EVENTFD2): Likewise.
39561         (__ASSUME_SIGNALFD4): Likewise.
39562         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39563         (__ASSUME_O_CLOEXEC): Likewise.
39564         (__ASSUME_SOCK_CLOEXEC): Likewise.
39565         (__ASSUME_IN_NONBLOCK): Likewise.
39566         (__ASSUME_PIPE2): Likewise.
39567         (__ASSUME_EVENTFD2): Likewise.
39568         (__ASSUME_SIGNALFD4): Likewise.
39569         (__ASSUME_DUP3): Likewise.
39570         (__ASSUME_UTIMES): Undefine.
39571
39572         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
39573         feclearexcept.  Remove symbol versioning code.
39574         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
39575         symbol versioning code.
39576         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
39577         symbol versioning code.
39578         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
39579         feupdateenv.  Remove symbol versioning code.
39580         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
39581         fegetexceptflag.  Remove symbol versioning code.
39582         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
39583         fesetexceptflag.  Remove symbol versioning code.
39584         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
39585         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
39586         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
39587         (__posix_fadvise64_l32): Remove prototype.
39588         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
39589         code.
39590
39591 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39592
39593         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
39594         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
39595         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
39596         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
39597
39598 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
39599
39600         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
39601         current working directory
39602
39603 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39604
39605         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
39606         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
39607         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
39608         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
39609         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
39610         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
39611         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
39612         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
39613         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
39614         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
39615         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
39616         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
39617         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
39618         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
39619         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
39620         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
39621         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
39622         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
39623         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
39624         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
39625         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
39626         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
39627         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
39628         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
39629         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
39630         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
39631         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
39632         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
39633         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
39634         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
39635         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
39636         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
39637         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
39638         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
39639         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
39640         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
39641         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
39642         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
39643         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
39644         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
39645         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
39646         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
39647
39648         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
39649         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
39650
39651         * sysdeps/unix/sysv/linux/arm/Makefile
39652         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39653         Add rt-aeabi_unwind_cpp_pr1.
39654         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
39655         Add nptl-aeabi_unwind_cpp_pr1.
39656         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
39657         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
39658         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
39659         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
39660         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
39661         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
39662
39663         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
39664         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
39665         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
39666         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
39667
39668         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
39669         Deconditionalize the code that was previously under [RESET_PID].
39670         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
39671
39672         * sysdeps/generic/exit-thread.h: New file.
39673         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
39674         * include/unistd.h (__exit_thread): Remove declaration.
39675         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
39676         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
39677         * csu/libc-start.c: Include <exit-thread.h>.
39678         (LIBC_START_MAIN): Pass no argument to __exit_thread.
39679         * nptl/pthread_create.c: Include <exit-thread.h>.
39680         (start_thread): Call __exit_thread in place of __exit_thread_inline.
39681         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
39682         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
39683         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
39684         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
39685         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
39686         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
39687         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
39688         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
39689         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
39690         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
39691         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
39692         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
39693         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
39694         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
39695         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
39696         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
39697
39698 2014-05-13  Andreas Schwab  <schwab@suse.de>
39699
39700         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
39701
39702 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
39703
39704         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
39705         (__ASSUME_UTIMES): Do not condition on kernel version.
39706         (__ASSUME_PSELECT): Define unconditionally.
39707         (__ASSUME_PPOLL): Likewise.
39708         (__ASSUME_ATFCTS): Likewise.
39709         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
39710         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
39711         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
39712         (__ASSUME_UTIMENSAT): Define unconditionally.
39713         (__ASSUME_PRIVATE_FUTEX): Likewise.
39714         (__ASSUME_FALLOCATE): Likewise.
39715         (__ASSUME_O_CLOEXEC): Likewise.
39716         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
39717         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
39718         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
39719         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
39720         (__ASSUME_IN_NONBLOCK): Likewise.
39721         (__ASSUME_PIPE2): Likewise.
39722         (__ASSUME_EVENTFD2): Likewise.
39723         (__ASSUME_SIGNALFD4): Likewise.
39724         (__ASSUME_DUP3): Likewise.
39725         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39726         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
39727         (__ASSUME_AT_RANDOM): Likewise.
39728         (__ASSUME_PREADV): Likewise.
39729         (__ASSUME_PWRITEV): Likewise.
39730         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
39731         (__ASSUME_F_GETOWN_EX): Define unconditionally.
39732         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
39733         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
39734         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
39735         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39736         (__ASSUME_O_CLOEXEC): Define unconditionally.
39737         (__ASSUME_PSELECT): Do not undefine conditionally.
39738         (__ASSUME_PPOLL): Likewise.
39739         (__ASSUME_ATFCTS): Likewise.
39740         (__ASSUME_SET_ROBUST_LIST): Likewise.
39741         (__ASSUME_UTIMENSAT): Likewise.
39742         (__ASSUME_FDATASYNC): Define unconditionally.
39743         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39744         (__ASSUME_SIGFRAME_V2): Likewise.
39745         )__ASSUME_EVENTFD2): Likewise.
39746         (__ASSUME_SIGNALFD4): Likewise.
39747         (__ASSUME_PSELECT): Do not undefine conditionally.
39748         (__ASSUME_PPOLL): Likewise.
39749         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39750         (__ASSUME_PSELECT): Define unconditionally.
39751         (__ASSUME_PPOLL): Likewise.
39752         (__ASSUME_O_CLOEXEC): Likewise.
39753         (__ASSUME_SOCK_CLOEXEC): Likewise.
39754         (__ASSUME_IN_NONBLOCK): Likewise.
39755         (__ASSUME_PIPE2): Likewise.
39756         (__ASSUME_EVENTFD2): Likewise.
39757         (__ASSUME_SIGNALFD4): Likewise.
39758         (__ASSUME_DUP3): Likewise.
39759         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39760         (__ASSUME_O_CLOEXEC): Likewise.
39761         (__ASSUME_SOCK_CLOEXEC): Likewise.
39762         (__ASSUME_IN_NONBLOCK): Likewise.
39763         (__ASSUME_PIPE2): Likewise.
39764         (__ASSUME_EVENTFD2): Likewise.
39765         (__ASSUME_SIGNALFD4): Likewise.
39766         (__ASSUME_DUP3): Likewise.
39767         * sysdeps/unix/sysv/linux/mips/kernel-features.h
39768         (__ASSUME_EVENTFD2): Likewise.
39769         (__ASSUME_SIGNALFD4): Likewise.
39770         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39771
39772 2014-05-12  Andreas Schwab  <schwab@suse.de>
39773
39774         [BZ #16932]
39775         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
39776         (_nss_nis_gethostbyname4_r): Return error if item length is larger
39777         than maximum RPC packet size.
39778         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
39779         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
39780         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
39781         (_nss_nis_getservbyport_r): Likewise.
39782
39783 2014-05-12  Will Newton  <will.newton@linaro.org>
39784
39785         * malloc/Makefile (tests): Add tst-mallopt.
39786         * malloc/tst-mallopt.c: New file.
39787
39788 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39789
39790         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
39791         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
39792
39793 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39794
39795         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
39796         (tst-tlsmod6.so): Likewise.
39797
39798 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39799
39800         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
39801
39802 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
39803
39804         [BZ #16064]
39805         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
39806         and <dl-procinfo.h>.
39807         (__fegetenv): Save SSE state in envp->__eip if supported.
39808         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
39809         envp->__eip if supported.
39810         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
39811         and <dl-procinfo.h>.
39812         (__fesetenv): Always set __eip, __cs_selector, __opcode,
39813         __data_offset and __data_selector in environment to 0.  Set SSE
39814         state if supported.
39815         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
39816         test-fenv-sse.
39817         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
39818         -mfpmath=sse.
39819         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
39820
39821 2014-05-09  Will Newton  <will.newton@linaro.org>
39822
39823         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
39824         and libc_relro_required for ARM.
39825         * sysdeps/arm/preconfigure: Regenerate.
39826
39827 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39828             Stefan Liebler  <stli@linux.vnet.ibm.com>
39829
39830         * config.make.in (enable-lock-elision): New Makefile variable.
39831         * configure.ac: Likewise.
39832         * configure: Regenerate.
39833         * sysdeps/s390/configure.ac:
39834         Add check for gcc transactions support.
39835         * sysdeps/s390/configure: Regenerate.
39836         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
39837         Build elision files if enabled.
39838         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
39839         Add lock elision support for s390.
39840         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
39841         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
39842         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
39843         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
39844         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
39845         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
39846         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
39847         Likewise.
39848         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
39849         Likewise.
39850         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
39851         Likewise.
39852         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
39853         Likewise.
39854         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
39855         (__lll_timedlock_elision, __lll_lock_elision)
39856         (__lll_unlock_elision, __lll_trylock_elision)
39857         (lll_timedlock_elision, lll_lock_elision)
39858         (lll_unlock_elision, lll_trylock_elision): Add.
39859         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
39860         (pthread_mutex_t): Add lock elision support for s390.
39861
39862 2014-05-14  Wilco  <wdijkstr@arm.com>
39863
39864         * sysdeps/arm/fclrexcpt.c: Cleanup.
39865         * sysdeps/arm/fedisblxcpt.c: Cleanup.
39866         * sysdeps/arm/feenablxcpt.c: Cleanup.
39867         * sysdeps/arm/fegetenv.c: Cleanup.
39868         * sysdeps/arm/fegetexcept.c: Cleanup.
39869         * sysdeps/arm/fegetround.c: Cleanup.
39870         * sysdeps/arm/feholdexcpt.c: Cleanup.
39871         * sysdeps/arm/fesetenv.c: Cleanup.
39872         * sysdeps/arm/fesetround.c: Cleanup.
39873         * sysdeps/arm/feupdateenv.c: Cleanup.
39874         * sysdeps/arm/fgetexcptflg.c: Cleanup.
39875         * sysdeps/arm/fraiseexcpt.c: Cleanup.
39876         * sysdeps/arm/fsetexcptflg.c: Cleanup.
39877         * sysdeps/arm/ftestexcept.c: Cleanup.
39878         * sysdeps/arm/get-rounding-mode.h: Cleanup.
39879         * sysdeps/arm/setfpucw.c: Cleanup.
39880
39881 2014-05-09  Will Newton  <will.newton@linaro.org>
39882
39883         * sysdeps/arm/armv7/strcmp.S: New file.
39884         * NEWS: Mention addition of ARMv7 optimized strcmp.
39885
39886 2014-05-08  Roland McGrath  <roland@hack.frob.com>
39887
39888         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
39889         look for %.ac rather than %.in.
39890
39891         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
39892         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
39893         * sysdeps/mach/hurd/configure: Regenerated.
39894         * sysdeps/unix/sysv/linux/configure: Regenerated.
39895
39896         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
39897
39898 2014-05-07  Steve Ellcey  <sellcey@mips.com>
39899
39900         [BZ# 16922]
39901         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
39902         (LONG_SUB): Ditto.
39903         (PTR_SUB): Ditto.
39904
39905 2014-05-07  Andreas Schwab  <schwab@suse.de>
39906
39907         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
39908         when skipping over non-matching result from nscd.
39909
39910 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
39911
39912         [BZ #16876]
39913         * nptl/sockperf.c (client): Check socket return value.
39914
39915         [BZ #16877]
39916         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
39917         nscd security class.
39918
39919 2014-05-06  Roland McGrath  <roland@hack.frob.com>
39920
39921         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
39922         * sysdeps/arm/unwind.h: ... here.
39923
39924 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
39925
39926         [BZ# 16916]
39927         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
39928         Define.
39929
39930 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
39931
39932         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
39933         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
39934         multiarch strncpy for PPC64.
39935         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
39936         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
39937         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
39938         multiarch optimizations.
39939         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39940         (__libc_ifunc_impl_list): Likewise.
39941         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
39942         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
39943         multiarch stpncpy for PPC64.
39944         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
39945         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
39946
39947 2014-05-06  Andreas Schwab  <schwab@suse.de>
39948
39949         [BZ #16912]
39950         * gmon/mcount.c (_MCOUNT_DECL): Use
39951         atomic_compare_and_exchange_bool_acq instead of
39952         catomic_compare_and_exchange_bool_acq.
39953
39954 2014-05-05  Roland McGrath  <roland@hack.frob.com>
39955
39956         * elf/Makefile (others, install-bin): Remove pldd.
39957         (pldd-modules): Variable removed.
39958         ($(objpfx)pldd): Target removed.
39959         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
39960         (others, install-bin): Append pldd here.
39961         ($(objpfx)pldd): New target.
39962
39963         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
39964         to 0, so the first #if test emitted later doesn't see it undefined.
39965         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
39966         * sysdeps/gnu/errlist.c: Regenerated.
39967
39968 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39969
39970         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
39971         [libc_hidden_builtin_def]: Define to empty value.
39972         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
39973         [libc_hidden_builtin_def]: Likewise.
39974         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
39975         [libc_hidden_builtin_def]: Likewise.
39976         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
39977         [libc_hidden_builtin_def]: Likewise.
39978         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
39979         __redirect_memcpy and define ifunc as default hidden symbol.
39980         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
39981         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
39982
39983 2014-05-04  Adam Conrad  <adconrad@0c3.net>
39984
39985         * locale/iso-4217.def: Reintroduce XDR currency.
39986
39987 2014-05-04  Allan McRae  <allan@archlinux.org>
39988
39989         * po/eo.po: Update Esperanto translation from translation project.
39990
39991 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
39992
39993         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
39994         and FEATURE_INDEX_MAX to 1.
39995         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
39996
39997 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39998
39999         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
40000         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
40001         * iconvdata/big5.c (ONE_DIRECTION): Define.
40002         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
40003         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
40004         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
40005         * iconvdata/cp932.c (ONE_DIRECTION): Define.
40006         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
40007         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
40008         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
40009         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
40010         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
40011         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
40012         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
40013         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
40014         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
40015         * iconvdata/gbk.c (ONE_DIRECTION): Define.
40016         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
40017         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
40018         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
40019         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
40020         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
40021         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
40022         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
40023         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
40024         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
40025         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
40026         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
40027         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
40028         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
40029         * iconvdata/iso646.c (ONE_DIRECTION): Define.
40030         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
40031         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
40032         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
40033         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
40034         * iconvdata/johab.c (ONE_DIRECTION): Define.
40035         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
40036         * iconvdata/sjis.c (ONE_DIRECTION): Define.
40037         * iconvdata/t.61.c (ONE_DIRECTION): Define.
40038         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
40039         * iconvdata/tscii.c (ONE_DIRECTION): Define.
40040         * iconvdata/uhc.c (ONE_DIRECTION): Define.
40041         * iconvdata/unicode.c (ONE_DIRECTION): Define.
40042         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
40043         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
40044         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
40045
40046 2014-05-01  Roland McGrath  <roland@hack.frob.com>
40047
40048         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
40049         (_IO_JUMPS_OFFSET): Define to 0.
40050
40051         * nptl/sysdeps/pthread/bits/libc-lock.h
40052         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
40053         (__libc_lock_define_initialized_recursive): Always define using
40054         initializer.  Modern compilers treat uninitialized (implicit zero) and
40055         explicit zero initializers the same (i.e. put the datum in bss).
40056
40057 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40058
40059         * nscd/nscd-client.h: Include <string.h>.
40060
40061 2014-05-01  David S. Miller  <davem@davemloft.net>
40062
40063         [BZ #16885]
40064         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
40065         multiple zero bytes exist at the end of a string.
40066         Reported by Aurelien Jarno <aurelien@aurel32.net>
40067
40068         * string/test-strcmp.c (check): Add explicit test for situations where
40069         there are multiple zero bytes after the first.
40070
40071 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40072
40073         [BZ #16890]
40074         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
40075         when compiling wprintf.
40076         * stdio-common/tstdiomisc.c (t3): New function.
40077         (main): Call it.
40078
40079 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40080
40081         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
40082         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
40083         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
40084         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
40085
40086 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40087
40088         * stdlib/longlong.h: Updated from GCC.
40089
40090 2014-05-01  Will Newton  <will.newton@linaro.org>
40091             Bernard Ogden  <bernie.ogden@linaro.org>
40092
40093         * NEWS: Update fixed bug list.
40094
40095         [BZ #15119]
40096         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
40097
40098 2014-04-30  David S. Miller  <davem@davemloft.net>
40099
40100         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
40101         (libc_feholdexcept_setround_sparc_ctx): New function.
40102         (libc_fesetenv_sparc_ctx): Likewise.
40103         (libc_feupdateenv_sparc_ctx): Likewise.
40104         (libc_feholdsetround_sparc_ctx): Likewise.
40105         (libc_feholdexcept_setround_ctx): Define.
40106         (libc_feholdexcept_setroundf_ctx): Likewise.
40107         (libc_feholdexcept_setroundl_ctx): Likewise.
40108         (libc_fesetenv_ctx): Likewise.
40109         (libc_fesetenvf_ctx): Likewise.
40110         (libc_fesetenvl_ctx): Likewise.
40111         (libc_feupdateenv_ctx): Likewise.
40112         (libc_feupdateenvf_ctx): Likewise.
40113         (libc_feupdateenvl_ctx): Likewise.
40114         (libc_feresetround_ctx): Likewise.
40115         (libc_feresetroundf_ctx): Likewise.
40116         (libc_feresetroundl_ctx): Likewise.
40117         (libc_feholdsetround_ctx): Likewise.
40118         (libc_feholdsetroundf_ctx): Likewise.
40119         (libc_feholdsetroundl_ctx): Likewise.
40120
40121         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40122         with __USE_GNU instead of XOPEN cpp guards.
40123
40124         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
40125         0.
40126
40127         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40128         with XOPEN cpp guards.
40129
40130 2014-04-30  Julian Brown  <julian@codesourcery.com>
40131
40132         [BZ #16888]
40133         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
40134         handling.
40135
40136 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
40137
40138         [BZ #9894]
40139         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
40140         Change to 2.6.32.
40141         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
40142         * sysdeps/unix/sysv/linux/configure: Regenerated.
40143         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
40144         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
40145         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
40146         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
40147         * README: Update reference to required Linux kernel version.
40148         * manual/install.texi (Linux): Update reference to required Linux
40149         kernel headers version.
40150         * INSTALL: Regenerated.
40151
40152         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
40153         header inclusion.
40154         [POSIX] (limits.h): Likewise.
40155         [POSIX] (math.h): Likewise.
40156         [POSIX] (sys/wait.h): Likewise.
40157         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
40158         function.
40159         [POSIX] (stddef.h): Do not allow header inclusion.
40160
40161 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40162
40163         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
40164
40165 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
40166
40167         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
40168         Return immediately after lll_futex_wake.
40169
40170 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40171
40172         [BZ #16791]
40173         * nscd/nscd-client.h (datahead_init_common): Initialize entire
40174         structure.
40175         (datahead_init_pos): Call datahead_init_common early.
40176         (datahead_init_neg): Likewise.
40177
40178         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
40179         datahead_init_neg): New functions.
40180         * nscd/aicache.c (addhstaiX): Use them.
40181         * nscd/grpcache.c (cache_addgr): Likewise.
40182         * nscd/hstcache.c (cache_addhst): Likewise.
40183         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40184         * nscd/netgroupcache.c (do_notfound): Likewise.
40185         (addgetnetgrentX): Likewise.
40186         (addinnetgrX): Likewise.
40187         * nscd/pwdcache.c (cache_addpw): Likewise.
40188         * nscd/servicescache.c (cache_addserv): Likewise.
40189
40190 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40191             Atsushi Onoe  <atsushi@onoe.org>
40192
40193         [BZ #14308]
40194         [BZ #12994]
40195         [BZ #13651]
40196         * resolv/res_query.c (__libc_res_nsearch): Return if at least
40197         one response is valid.
40198         * resolv/res_send.c (send_dg): Check for validity of other
40199         response if the current response is a referral.
40200
40201 2014-04-29  Steve Ellcey  <sellcey@mips.com>
40202
40203         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
40204
40205 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
40206
40207         [BZ #16823]
40208         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
40209         Always divide by positive zero when computing -Inf result.
40210         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
40211         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
40212
40213 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40214
40215         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
40216         FPSCR if value do not change.
40217         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
40218         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
40219         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
40220         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
40221         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
40222         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
40223         function.
40224
40225 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
40226
40227         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
40228         * sysdeps/unix/sysv/linux/hppa: Move directory from
40229         ports/systeps/unix/sysv/linux/hppa.
40230         * README: Update listing for hppa-*-linux-gnu.
40231
40232 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
40233
40234         [BZ #16754]
40235         * manual/stdio.texi (Hook functions): Fix types of stream hook
40236         functions.
40237         [BZ #16854]
40238         * socket/sys/socket.h: Fix typo in comment.
40239
40240 2014-04-28  Wilco  <wdijkstr@arm.com>
40241
40242         * sysdeps/arm/fenv_private.h: New file.
40243         * sysdeps/arm/math_private.h: New file.
40244         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
40245
40246 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
40247
40248         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
40249         with __int128_t.
40250         (La_x86_64_retval): Likewise.
40251
40252 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
40253
40254         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
40255         fpsr if value didn't change.
40256         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
40257         to fpcr if value didn't change.
40258         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
40259         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
40260         fpsr or fpcr if value didn't change.
40261         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
40262         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
40263         fpcr if value didn't change.
40264         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
40265         to fpsr if value didn't change.
40266
40267 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
40268
40269         * nptl/tst-sem3.c: Use test-skeleton.c
40270         (main): Rename to do_test.  Use return instead of
40271         exit.
40272         * nptl/tst-sem4.c: Use test-skeleton.c
40273         (main): Rename to do_test.
40274
40275 2014-04-22  David S. Miller  <davem@davemloft.net>
40276
40277         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
40278         (struct sigaction): New struct member __glibc_reserved0, change
40279         type of sa_flags to int.
40280
40281 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
40282
40283         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
40284         (COUNT_LEADING_ZEROS_0): Define for AArch64.
40285
40286 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
40287
40288         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
40289         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
40290
40291 2014-04-22  Will Newton  <will.newton@linaro.org>
40292             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
40293
40294         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
40295         (__longjmp): Add longjmp and longjmp_target SystemTap
40296         probes.
40297         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
40298         (__sigsetjmp): Add setjmp SystemTap probe.
40299
40300 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
40301
40302         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
40303         match manual order.
40304
40305 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40306
40307         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
40308
40309         * sysdeps/powerpc/fpu/fenv_private.h
40310         (libc_feholdexcept_setroundl_ctx): Define to
40311         libc_feholdexcept_setround_ppc_ctx.
40312         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
40313         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
40314         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
40315         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
40316
40317 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40318
40319         * sysdeps/aarch64/math-tests.h: New file.
40320
40321 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
40322
40323         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
40324         New.
40325         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
40326         Check and set bit_AVX2_Usable.
40327         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
40328         macro.
40329         (bit_AVX2): Likewise.
40330         (index_AVX2_Usable): Likewise.
40331         (CPUID_AVX2): Likewise.
40332         (HAS_AVX2): Likewise.
40333
40334 2014-04-17  Will Newton  <will.newton@linaro.org>
40335
40336         * manual/setjmp.texi (System V contexts): Add note that
40337         calling setcontext on a context created by a call to a
40338         signal handler is undefined.  Update text to note that
40339         setcontext from a signal handler is possible but not
40340         recommended.
40341
40342         [BZ #16629]
40343         * stdlib/tst-setcontext.c: Include signal.h.
40344         (main): Check that the signal stack before and
40345         after swapcontext is the same.
40346
40347         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
40348         Re-implement to restore registers in user code and avoid
40349         rt_sigreturn system call.
40350
40351 2014-04-17  Wilco  <wdijkstr@arm.com>
40352
40353         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
40354         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
40355         * math/test-fenv.c: Skip exception trap tests on targets which only
40356         support non-stop mode.
40357
40358 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40359             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40360
40361         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
40362         (libc_feholdsetround_aarch64_ctx)
40363         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
40364         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
40365         (libc_feresetround_ctx, libc_feresetroundf_ctx)
40366         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
40367         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
40368         (libc_feresetround_noexl_ctx): Define.
40369
40370 2014-04-16  Richard Henderson  <rth@redhat.com>
40371
40372         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
40373
40374         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
40375         unwind tables.
40376
40377         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
40378         const from the non-libc, non-ldso copy.
40379
40380         * sysdeps/alpha/libm-test-ulps: Regenerate.
40381
40382 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
40383             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40384
40385         * sysdeps/aarch64/fpu/math_private.h: New file.
40386
40387 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40388
40389         * sysdeps/aarch64/libm-test-ulps: Regenerate.
40390
40391 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
40392
40393         [BZ #16275]
40394         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
40395         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
40396         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
40397         Intel MPX bound registers before _dl_profile_fixup.
40398         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
40399         registers after _dl_profile_fixup.  Save and restore bound
40400         registers bnd0/bnd1 when calling _dl_call_pltexit.
40401         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
40402         (LR_BND_OFFSET): Likewise.
40403         (LRV_BND0_OFFSET): Likewise.
40404         (LRV_BND1_OFFSET): Likewise.
40405
40406 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40407
40408         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
40409         to...
40410         * sysdeps/mach/hurd/i386/tls.h: ... here.
40411         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
40412         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
40413         fields.
40414
40415 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40416
40417         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
40418
40419 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40420
40421         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40422
40423 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40424
40425         [BZ #14770]
40426         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
40427         * sysdeps/s390/configure: Regenerate.
40428
40429         [BZ #16824]
40430         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
40431         Set round-to-nearest internally to reduce error accumulation.
40432
40433 2014-04-16  Alan Modra  <amodra@gmail.com>
40434
40435         [BZ #16740]
40436         [BZ #16619]
40437         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
40438         * math/libm-test.inc (frexp_test_data): Add tests.
40439         * NEWS: Update fixed bug list.
40440
40441 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40442
40443         * benchtests/Makefile: Depend on libraries in build directory.
40444         (bench-math): Separate out math tests.
40445         (bench-pthread): Separate out pthread tests.
40446         (bench): Include math and pthread tests.
40447
40448 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
40449
40450         [BZ #16831]
40451         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
40452         _dl_debug_initialize.
40453
40454         * configure.ac: Remove SELinux header check.
40455         * configure: Regenerate.
40456         * nscd/selinux.c (perms): Array of const char* to permission names.
40457         (nscd_request_avc_has_perm): Call security_deny_unknown to find
40458         default policy. Call string_to_security_class and string_to_av_perm to
40459         translate strings. Enforce default policy and call avs_has_perm with
40460         results of translated strings.
40461
40462 2014-04-13  David S. Miller  <davem@davemloft.net>
40463
40464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40465
40466 2014-04-12  Allan McRae  <allan@archlinux.org>
40467
40468         [BZ #16838]
40469         * manual/string.texi (Collation Functions): Fix qsort argument
40470         order in example.
40471         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40472
40473 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
40474
40475         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
40476         Make the test a no-op if there are no exceptions defined.
40477
40478 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
40479
40480         * elf/Makefile (tests): make tst-dlopen-aout conditional on
40481         enable-hardcoded-path-in-tests
40482
40483 2014-04-11  Will Newton  <will.newton@linaro.org>
40484
40485         * benchtests/Makefile (extra-objs): Add json-lib.o.
40486         (bench-func): Tidy up JSON output.
40487         * benchtests/bench-skeleton.c: Include json-lib.h.
40488         (main): Use JSON library functions to do output of
40489         benchmark results.
40490         * benchtests/bench-timing-type.c (main): Output the
40491         timing type simply, leaving formatting to the user.
40492         * benchtests/json-lib.c: New file.
40493         * benchtests/json-lib.h: Likewise.
40494
40495 2014-04-11  Torvald Riegel  <triegel@redhat.com>
40496
40497         [BZ #15215]
40498         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
40499         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
40500         memory barriers.  Add comments.
40501         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
40502         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
40503         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
40504         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
40505         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
40506         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
40507
40508 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40509
40510         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
40511         * sysdeps/s390/s390-64/configure.ac: ... this ...
40512         * sysdeps/s390/configure.ac: ... to here.
40513         * sysdeps/s390/s390-32/configure: Delete file.
40514         * sysdeps/s390/s390-64/configure: Delete file.
40515         * sysdeps/s390/configure: Regenerate.
40516
40517 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
40518
40519         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
40520
40521 2014-04-11  Will Newton  <will.newton@linaro.org>
40522
40523         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
40524         to zero if it is not defined elsewhere.  (mtrim): Test
40525         the value of MALLOC_DEBUG with #if rather than #ifdef.
40526
40527 2014-04-10 Torvald Riegel  <triegel@redhat.com>
40528
40529         * benchtests/pthread_once-inputs: New file.
40530         * benchtests/pthread_once-source.c: New file.
40531         * benchtests/README: Update documentation.
40532
40533 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
40534             H.J. Lu  <hongjiu.lu@intel.com>
40535
40536         [BZ #16275]
40537         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
40538         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
40539         * sysdeps/x86_64/configure: Regenerated.
40540         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
40541         macro.
40542         (REGISTER_SAVE_RAX): Likewise.
40543         (REGISTER_SAVE_RCX): Likewise.
40544         (REGISTER_SAVE_RDX): Likewise.
40545         (REGISTER_SAVE_RSI): Likewise.
40546         (REGISTER_SAVE_RDI): Likewise.
40547         (REGISTER_SAVE_R8): Likewise.
40548         (REGISTER_SAVE_R9): Likewise.
40549         (REGISTER_SAVE_BND0): Likewise.
40550         (REGISTER_SAVE_BND1): Likewise.
40551         (REGISTER_SAVE_BND2): Likewise.
40552         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
40553         bound registers when calling _dl_fixup.
40554
40555 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40556
40557         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
40558         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
40559         of its definition.
40560         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
40561         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
40562         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
40563         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
40564         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
40565         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
40566         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
40567
40568 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
40569
40570         [BZ #15514]
40571         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
40572         pathconf(_PC_NAME_MAX).
40573
40574 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40575
40576         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
40577         Remove macro usage.
40578         (__PTHREAD_SPINS): Move definition to ...
40579         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40580         (__PTHREAD_SPINS): ... here.
40581         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40582         (__PTHREAD_SPIN): Likewise.
40583         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
40584         (__PTHREAD_SPIN): Likewise.
40585         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
40586         (__PTHREAD_SPIN): Likewise.
40587         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
40588         (__PTHREAD_SPIN): Likewise.
40589         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
40590         (__PTHREAD_SPIN): Likewise.
40591         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
40592         (__PTHREAD_SPIN): Likewise.
40593         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
40594         (__PTHREAD_SPIN): Likewise.
40595         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
40596         (__PTHREAD_SPIN): Likewise.
40597         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
40598         (__PTHREAD_SPIN): Likewise.
40599         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
40600         (__PTHREAD_SPIN): Likewise.
40601         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
40602         (__PTHREAD_SPIN): Likewise.
40603         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
40604         (__PTHREAD_SPIN): Likewise.
40605
40606         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
40607         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
40608         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
40609         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
40610         imply folder.
40611         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
40612         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
40613         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
40614         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
40615         correct imply path.
40616         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
40617         strlen symbol for non multi-arch builds.
40618         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
40619         missing hidden_def and weak_alias.
40620
40621 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
40622
40623         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
40624
40625 2014-04-07  Will Newton  <will.newton@linaro.org>
40626
40627         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
40628         and contents.  [!_LIBC] Remove #ifndef and contents.
40629         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
40630         * string/memccpy.c (__memccpy): Use ANSI prototype.
40631         * string/memfrob.c (memfrob): Likewise.
40632         * string/strcoll.c (STRCOLL): Likewise.
40633         * string/strlen.c (strlen): Likewise.
40634         * string/strtok.c (STRTOK): Likewise.
40635         * string/strcat.c: Remove unused #include of memcopy.h.
40636         (strcat): Use ANSI prototype.
40637         * string/strchr.c: Remove unused #include of memcopy.h.
40638         (strchr): Use ANSI prototype.
40639         * string/strcmp.c: Remove unused #include of memcopy.h.
40640         (strcmp): Use ANSI prototype.
40641         * string/strcpy.c: Remove unused #include of memcopy.h.
40642         (strcpy): Use ANSI prototype.
40643
40644 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40645
40646         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
40647         * config.make.in (config-extra-cppflags): Set it from
40648         libc_extra_cppflags.
40649         * configure.ac (libc_extra_cflags): Make it accumulate over
40650         configure fragments.
40651         (libc_extra_cppflags): New flag.
40652         * configure. Regenerate.
40653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40654         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
40655         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
40656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
40657
40658         [BZ #16815]
40659         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
40660         result for FE_DOWNWARD rounding mode.
40661         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
40662         Likewise.
40663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40664
40665 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
40666
40667         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
40668         in function argument name.
40669
40670 2014-04-03  David Svoboda  <svoboda@cert.org>
40671
40672         [BZ #5666]
40673         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
40674         explicitly.
40675
40676 2014-04-03  Roland McGrath  <roland@hack.frob.com>
40677
40678         * elf/dl-unmap-segments.h: New file.
40679         * sysdeps/generic/ldsodefs.h
40680         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
40681         * elf/dl-close.c: Include <dl-unmap-segments.h>.
40682         * elf/dl-fptr.c: Likewise.
40683         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
40684         * sysdeps/aarch64/tlsdesc.c: Likewise.
40685         * sysdeps/arm/tlsdesc.c: Likewise.
40686         * sysdeps/i386/tlsdesc.c: Likewise.
40687         * sysdeps/tile/dl-runtime.c: Likewise.
40688         * sysdeps/x86_64/tlsdesc.c: Likewise.
40689         * elf/dl-load.h: New file.
40690         * elf/dl-load.c: Include it.
40691         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
40692         Macros moved to dl-load.h.
40693         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
40694         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
40695         Use _dl_unmap_segments in place of __munmap.
40696         Break out segment-mapping loop into ...
40697         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
40698
40699 2014-04-03  Will Newton  <will.newton@linaro.org>
40700
40701         * elf/dl-lookup.c (do_lookup_x): Remove comment
40702         referring to nested function and move variable
40703         declarations down to before first use.
40704
40705 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
40706
40707         [BZ #16799]
40708         [BZ #16800]
40709         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
40710         with 0 numerator.
40711         * math/s_catanf.c (__catanf): Likewise.
40712         * math/s_catanh.c (__catanh): Likewise.
40713         * math/s_catanhf.c (__catanhf): Likewise.
40714         * math/s_catanhl.c (__catanhl): Likewise.
40715         * math/s_catanl.c (__catanl): Likewise.
40716         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
40717         by positive zero when computing -Inf result.
40718         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
40719         (catanh_test): Likewise.
40720         * sysdeps/i386/fpu/libm-test-ulps: Update.
40721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40722
40723         [BZ #16789]
40724         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
40725         instead of using underflowing value in computing result.
40726         * math/s_clog10.c (__clog10): Likewise.
40727         * math/s_clog10f.c (__clog10f): Likewise.
40728         * math/s_clog10l.c (__clog10l): Likewise.
40729         * math/s_clogf.c (__clogf): Likewise.
40730         * math/s_clogl.c (__clogl): Likewise.
40731         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
40732         (clog10_test): Likewise.
40733         * sysdeps/i386/fpu/libm-test-ulps: Update.
40734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40735
40736 2014-04-02  Alan Modra  <amodra@gmail.com>
40737
40738         [BZ #16739]
40739         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
40740         output when value is near a power of two.  Use int64_t for lx and
40741         remove casts.  Use decimal rather than hex exponent constants.
40742         Don't use long double multiplication when double will suffice.
40743         * math/libm-test.inc (nextafter_test_data): Add tests.
40744         * NEWS: Add 16739 and 16786 to bug list.
40745
40746         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
40747
40748         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
40749
40750 2014-04-01  Will Newton  <will.newton@linaro.org>
40751
40752         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
40753         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
40754
40755 2014-04-01  Florian Weimer  <fweimer@redhat.com>
40756
40757         [BZ #13347]
40758         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
40759         * nptl/tst-setuid2.c: New file.
40760         * nptl/Makefile (xtests): Add tst-setuid2.
40761
40762 2014-04-01  Alan Modra  <amodra@gmail.com>
40763
40764         [BZ #16786]
40765         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
40766
40767 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40768
40769         [BZ #6803]
40770         [BZ #6804]
40771         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
40772         set errno as appropriate.
40773         * math/w_scalbf.c (__scalbf): Likewise.
40774         * math/w_scalbl.c (__scalbl): Likewise.
40775         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
40776         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
40777         * math/libm-test.inc (scalb_test_data): Add errno expectations.
40778         Add more NaN tests.
40779
40780         [BZ #16349]
40781         * math/w_atan2.c: Include <errno.h>.
40782         (__atan2): Set errno for result underflowing to zero.
40783         * math/w_atan2f.c: Include <errno.h>.
40784         (__atan2f): Set errno for result underflowing to zero.
40785         * math/w_atan2l.c: Include <errno.h>.
40786         (__atan2l): Set errno for result underflowing to zero.
40787         * math/auto-libm-test-in: Don't allow missing errno for some atan2
40788         tests.
40789         * math/auto-libm-test-out: Regenerated.
40790
40791 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40792
40793         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
40794         Encode instruction correctly in little endian.
40795         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
40796         Likewise.
40797         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
40798         Likewise.
40799         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
40800         Likewise.
40801         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
40802         Likewise.
40803
40804 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40805
40806         [BZ #9894]
40807         * sysdeps/unix/sysv/linux/kernel-features.h
40808         [__sparc__ && !__arch64__ && !__sparc_v9__]
40809         (__ASSUME_SET_ROBUST_LIST): Do not define.
40810         [__sparc__ && !__arch64__ && !__sparc_v9__]
40811         (__ASSUME_FUTEX_LOCK_PI): Likewise.
40812         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
40813         Likewise.
40814         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40815         (__ASSUME_FUTEX_LOCK_PI): Undefine.
40816         (__ASSUME_REQUEUE_PI): Likewise.
40817         (__ASSUME_SET_ROBUST_LIST): Likewise.
40818         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40819         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
40820         Undefine.
40821         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40822         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
40823         Likewise.
40824         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
40825         Likewise.
40826         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
40827         Likewise.
40828         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40829         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
40830         Undefine.
40831         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
40832         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
40833         Likewise.
40834
40835         [BZ #16648]
40836         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40837         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
40838         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
40839
40840 2014-03-31  Will Newton  <will.newton@linaro.org>
40841
40842         * benchtests/Makefile (bench): Add ffs and ffsll to list
40843         of tests.
40844         * benchtests/ffs-inputs: New file.
40845         * benchtests/ffsll-inputs: Likewise.
40846
40847 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
40848
40849         [BZ #16770]
40850         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
40851         too large before casting to int.
40852         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
40853         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
40854         * math/libm-test.inc (scalb_test_data): Add more tests.
40855
40856 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40857
40858         * benchtests/Makefile (DETAILED_OPT): New make option.
40859         (bench-func): Run benchmark program with -d if DETAILED_OPT is
40860         set.
40861         * benchtests/bench-skeleton.c: Include stdbool.h.
40862         (main): Store and print timings per input.
40863         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
40864         member to each argument value.
40865         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
40866         (_print_arg_data): Initialize per-input timing to 0.
40867
40868         * benchtests/Makefile (timing-type): New binary.
40869         (bench-clean): Also remove bench-timing-type.
40870         (bench): New target for timing-type.
40871         (bench-func): Print output in JSON format.
40872         * benchtests/bench-skeleton.c (main): Print output in JSON
40873         format.
40874         * benchtests/bench-timing-type.c: New file.
40875         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
40876         (TIMING_PRINT_STATS): Remove.
40877         * benchtests/scripts/bench.py (_print_arg_data): Store variant
40878         name separately.
40879
40880         * benchtests/bench-modf.c: Remove.
40881         * benchtests/modf-inputs: New inputs file.
40882
40883 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
40884
40885         [BZ #16362]
40886         * math/s_clog10.c (M_PI_LOG10E): New macro.
40887         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
40888         imaginary parts are 0.
40889         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
40890         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
40891         imaginary parts are 0.
40892         * math/s_clog10l.c (M_PI_LOG10El): New macro.
40893         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
40894         imaginary parts are 0.
40895         * math/libm-test.inc (clog10_test_data): Update expected results
40896         for when real and imaginary parts are 0.
40897
40898 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
40899
40900         * elf/dl-load.c: Finish conversion of __builtin_expect into
40901         __glibc_{un}likely.
40902
40903 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
40904
40905         [BZ #16348]
40906         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
40907         1+x for argument with exponent below -67.
40908         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
40909         Likewise.
40910         * math/auto-libm-test-in: Add more tests of exp.
40911         * math/auto-libm-test-out: Regenerated.
40912
40913 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40914
40915         [BZ #16759]
40916         * inet/getnetgrent_r.c (get_nonempty_val): New function.
40917         (nscd_getnetgrent): Use it.
40918
40919         [BZ #16760]
40920         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
40921         of stpcpy.
40922
40923 2014-03-27  Andi Kleen  <ak@linux.intel.com>
40924
40925         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
40926         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40927         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40928         (lll_robust_unlock): Remove out of line section. Use cfi
40929         intrinsics.
40930         (LLL_STUB_UNWIND_INFO*): Remove.
40931         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
40932         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40933         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40934         (lll_robust_unlock): Remove out of line section. Use cfi
40935         intrinsics.
40936         (LLL_STUB_UNWIND_INFO*): Remove.
40937
40938 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40939
40940         [BZ #16758]
40941         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
40942         blank values.
40943
40944 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
40945
40946         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
40947
40948 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
40949
40950         [BZ #16198]
40951         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
40952         fnstenv.
40953         * math/test-fenv-preserve.c: New file.
40954         * math/Makefile (tests): Add test-fenv-preserve.
40955
40956 2014-03-26  Will Newton <will.newton@linaro.org>
40957
40958         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
40959
40960 2014-03-25  Roland McGrath  <roland@hack.frob.com>
40961
40962         * scripts/versionlist.awk: Partition the version sets and emit all
40963         GLIBC_* (sorted) before all others (sorted).
40964
40965 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40966
40967         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
40968         GLIBC_2.2.5 version.
40969
40970 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40971
40972         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
40973         calls.
40974
40975         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
40976         previous change.
40977
40978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40979
40980 2014-03-25  Andreas Schwab  <schwab@suse.de>
40981
40982         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
40983         label to be used after in6ailist is initialized.
40984
40985 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40986
40987         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40988         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40989
40990 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40991
40992         [BZ #16357]
40993         [BZ #16599]
40994         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
40995         min_plus_half.
40996         (fp_formats): Update initializers.
40997         (init_fp_formats): Initialize new field.
40998         (output_for_one_input_case): Allow underflow for results up to
40999         min_plus_half.
41000         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
41001         * math/auto-libm-test-in: Don't mark some underflows from asin and
41002         atanh as spurious.
41003         * math/auto-libm-test-out: Regenerated.
41004         * sysdeps/i386/fpu/libm-test-ulps: Update.
41005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41006
41007 2014-03-25  Andreas Schwab  <schwab@suse.de>
41008
41009         * libio/Makefile (tst-ftell-partial-wide-ENV)
41010         (tst-ftell-active-handler-ENV): Define.
41011
41012 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
41013
41014         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
41015
41016 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
41017
41018         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
41019
41020 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41021
41022         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
41023         * sysdeps/x86_64/fpu/multiarch/e_exp.c
41024         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
41025
41026 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
41027
41028         [BZ #16634]
41029         * elf/dl-load.c (open_verify): Add mode parameter.
41030         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
41031         (open_path): Change from boolean 'secure' to complete flag 'mode'
41032         (_dl_map_object): Adjust.
41033         * elf/Makefile (tests): Add tst-dlopen-aout.
41034         * elf/tst-dlopen-aout.c: New test.
41035
41036 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
41037
41038         [BZ #16714]
41039         * sysdeps/unix/sysv/linux/s390/bits/stat.h
41040         (struct stat): Rename member pad0 to __glibc_reserved0.
41041
41042         [BZ #16712]
41043         * sysdeps/s390/s390-32/bits/wordsize.h
41044         (__WORDSIZE32_SIZE_ULONG): New define.
41045         * sysdeps/s390/s390-64/bits/wordsize.h
41046         (__WORDSIZE32_SIZE_ULONG): Likewise.
41047         * sysdeps/generic/stdint.h (SIZE_MAX):
41048         Define as UL if __WORDSIZE32_SIZE_ULONG.
41049
41050         [BZ #16713]
41051         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
41052         (__glibc_reserved0): New variable.
41053         (sa_flags): Change type to int.
41054
41055         * posix/Makefile (before-compile): Use += before-compile instead
41056         of a :=.
41057
41058         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
41059         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41060
41061 2014-03-20  Andreas Schwab  <schwab@suse.de>
41062
41063         [BZ #16743]
41064         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
41065         non-matching result from nscd.
41066
41067 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41068
41069         * scripts/bench.py: Moved to ...
41070         * benchtests/scripts/bench.py: ... here.
41071         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
41072
41073 2014-03-24  Andreas Schwab  <schwab@suse.de>
41074
41075         [BZ #16002]
41076         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
41077         alloca_account and account alloca use for struct in6ailist.
41078
41079 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41080
41081         [BZ #16284]
41082         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
41083         rounding mode to recompute results that overflow to infinity or
41084         underflow to zero.
41085         * math/auto-libm-test-in: Don't mark tests as expected to fail for
41086         bug 16284.
41087         * math/auto-libm-test-out: Regenerated.
41088         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
41089         (ccosh_test): Likewise.
41090         (csin_test_data): Use plus_oflow.
41091         (csin_test): Use ALL_RM_TEST.
41092         (csinh_test_data): Use plus_oflow.
41093         (csinh_test): Use ALL_RM_TEST.
41094         * sysdeps/i386/fpu/libm-test-ulps: Update.
41095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41096
41097 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
41098
41099         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
41100         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
41101         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
41102
41103         [BZ #16731]
41104         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
41105         when x - 1 is zero.
41106         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
41107         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
41108         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
41109         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
41110         argument is 1.
41111         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
41112         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
41113         zero.
41114         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
41115         * sysdeps/i386/fpu/libm-test-ulps: Update.
41116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41117
41118 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41119
41120         * scripts/bench.pl: Remove file.
41121         * scripts/bench.py: New benchmark script.
41122         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
41123         * benchtests/README: Mention python dependency.
41124         * scripts/pylintrc: New file.
41125         * scripts/pylint: New file.
41126
41127         * bits/mathdef.h: Use #ifdef instead of #if.
41128         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
41129         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41130         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
41131         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41132         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
41133         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41134
41135 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41136             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41137
41138         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
41139         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
41140         and strpbrk-ppc64 objects.
41141         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41142         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
41143         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
41144         multiarch strpbrk for POWER7.
41145         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
41146         multiarch strpbrk for PPC64.
41147         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
41148         ifunc selector.
41149         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
41150         strpbrk for POWER7.
41151
41152 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41153
41154         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
41155         (atan_test): Likewise.
41156         (atanh_test_data): Use NO_TEST_INLINE for two tests.
41157         (atanh_test): Use ALL_RM_TEST.
41158         (atan2_test_data): Likewise.
41159         (cabs_test): Likewise.
41160         (cacosh_test): Likewise.
41161         (carg_test): Likewise.
41162         (casin_test): Likewise.
41163         (casinh_test): Likewise.
41164         (cbrt_test): Likewise.
41165         (csqrt_test): Likewise.
41166         (erf_test): Likewise.
41167         (erfc_test): Likewise.
41168         (pow10_test): Likewise.
41169         (exp2_test): Likewise.
41170         (hypot_test): Likewise.
41171         (j0_test): Likewise.
41172         (j1_test): Likewise.
41173         (lgamma_test): Likewise.
41174         (gamma_test): Likewise.
41175         (sincos_test): Likewise.
41176         (tanh_test): Likewise.
41177         (y0_test): Likewise.
41178         (y1_test): Likewise.
41179         * sysdeps/i386/fpu/libm-test-ulps: Update.
41180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41181
41182 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41183
41184         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
41185         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
41186         and strcspn-ppc64 objects.
41187         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41188         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
41189         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
41190         multiarch strcspn for POWER7.
41191         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
41192         multiarch strcspn for PPC64.
41193         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
41194         ifunc selector.
41195         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
41196         strcspn for POWER7.
41197
41198 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41199
41200         * math/gen-libm-test.pl (generate_testfile): Expect only function
41201         name as argument to AUTO_TESTS_* and pass results for all rounding
41202         modes to parse_args.
41203         (parse_auto_input): Separate inputs of automatic tests from
41204         outputs before storing in %auto_tests.
41205         * math/libm-test.inc (acos_test_data): Update call to
41206         AUTO_TESTS_f_f.
41207         (acos_test): Use ALL_RM_TEST.
41208         (acos_tonearest_test_data): Remove.
41209         (acos_test_tonearest): Likewise.
41210         (acos_towardzero_test_data): Likewise.
41211         (acos_test_towardzero): Likewise.
41212         (acos_downward_test_data): Likewise.
41213         (acos_test_downward): Likewise.
41214         (acos_upward_test_data): Likewise.
41215         (acos_test_upward): Likewise.
41216         (acosh_test_data): Update call to AUTO_TESTS_f_f.
41217         (asin_test_data): Likewise.
41218         (asin_test): Use ALL_RM_TEST.
41219         (asin_tonearest_test_data): Remove.
41220         (asin_test_tonearest): Likewise.
41221         (asin_towardzero_test_data): Likewise.
41222         (asin_test_towardzero): Likewise.
41223         (asin_downward_test_data): Likewise.
41224         (asin_test_downward): Likewise.
41225         (asin_upward_test_data): Likewise.
41226         (asin_test_upward): Likewise.
41227         (asinh_test_data): Update call to AUTO_TESTS_f_f.
41228         (atan_test_data): Likewise.
41229         (atanh_test_data): Likewise.
41230         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
41231         (cabs_test_data): Update call to AUTO_TESTS_c_f.
41232         (carg_test_data): Likewise.
41233         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
41234         (ccos_test_data): Update call to AUTO_TESTS_c_c.
41235         (ccosh_test_data): Likewise.
41236         (cexp_test_data): Likewise.
41237         (clog_test_data): Likewise.
41238         (clog10_test_data): Likewise.
41239         (cos_test_data): Update call to AUTO_TESTS_f_f.
41240         (cos_test): Use ALL_RM_TEST.
41241         (cos_tonearest_test_data): Remove.
41242         (cos_test_tonearest): Likewise.
41243         (cos_towardzero_test_data): Likewise.
41244         (cos_test_towardzero): Likewise.
41245         (cos_downward_test_data): Likewise.
41246         (cos_test_downward): Likewise.
41247         (cos_upward_test_data): Likewise.
41248         (cos_test_upward): Likewise.
41249         (cosh_test_data): Update call to AUTO_TESTS_f_f.
41250         (cosh_test): Use ALL_RM_TEST.
41251         (cosh_tonearest_test_data): Remove.
41252         (cosh_test_tonearest): Likewise.
41253         (cosh_towardzero_test_data): Likewise.
41254         (cosh_test_towardzero): Likewise.
41255         (cosh_downward_test_data): Likewise.
41256         (cosh_test_downward): Likewise.
41257         (cosh_upward_test_data): Likewise.
41258         (cosh_test_upward): Likewise.
41259         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
41260         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
41261         (ctan_test_data): Likewise.
41262         (ctan_test): Use ALL_RM_TEST.
41263         (ctan_tonearest_test_data): Remove.
41264         (ctan_test_tonearest): Likewise.
41265         (ctan_towardzero_test_data): Likewise.
41266         (ctan_test_towardzero): Likewise.
41267         (ctan_downward_test_data): Likewise.
41268         (ctan_test_downward): Likewise.
41269         (ctan_upward_test_data): Likewise.
41270         (ctan_test_upward): Likewise.
41271         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
41272         (ctanh_test): Use ALL_RM_TEST.
41273         (ctanh_tonearest_test_data): Remove.
41274         (ctanh_test_tonearest): Likewise.
41275         (ctanh_towardzero_test_data): Likewise.
41276         (ctanh_test_towardzero): Likewise.
41277         (ctanh_downward_test_data): Likewise.
41278         (ctanh_test_downward): Likewise.
41279         (ctanh_upward_test_data): Likewise.
41280         (ctanh_test_upward): Likewise.
41281         (erf_test_data): Update call to AUTO_TESTS_f_f.
41282         (erfc_test_data): Likewise.
41283         (exp_test_data): Likewise.
41284         (exp_test): Use ALL_RM_TEST.
41285         (exp_tonearest_test_data): Remove.
41286         (exp_test_tonearest): Likewise.
41287         (exp_towardzero_test_data): Likewise.
41288         (exp_test_towardzero): Likewise.
41289         (exp_downward_test_data): Likewise.
41290         (exp_test_downward): Likewise.
41291         (exp_upward_test_data): Likewise.
41292         (exp_test_upward): Likewise.
41293         (exp10_test_data): Update call to AUTO_TESTS_f_f.
41294         (exp10_test): Use ALL_RM_TEST.
41295         (exp10_tonearest_test_data): Remove.
41296         (exp10_test_tonearest): Likewise.
41297         (exp10_towardzero_test_data): Likewise.
41298         (exp10_test_towardzero): Likewise.
41299         (exp10_downward_test_data): Likewise.
41300         (exp10_test_downward): Likewise.
41301         (exp10_upward_test_data): Likewise.
41302         (exp10_test_upward): Likewise.
41303         (exp2_test_data): Update call to AUTO_TESTS_f_f.
41304         (expm1_test_data): Likewise.
41305         (expm1_test): Use ALL_RM_TEST.
41306         (expm1_tonearest_test_data): Remove.
41307         (expm1_test_tonearest): Likewise.
41308         (expm1_towardzero_test_data): Likewise.
41309         (expm1_test_towardzero): Likewise.
41310         (expm1_downward_test_data): Likewise.
41311         (expm1_test_downward): Likewise.
41312         (expm1_upward_test_data): Likewise.
41313         (expm1_test_upward): Likewise.
41314         (fma_test_data): Update call to AUTO_TESTS_fff_f.
41315         (fma_test): Use ALL_RM_TEST.
41316         (fma_towardzero_test_data): Remove.
41317         (fma_test_towardzero): Likewise.
41318         (fma_downward_test_data): Likewise.
41319         (fma_test_downward): Likewise.
41320         (fma_upward_test_data): Likewise.
41321         (fma_test_upward): Likewise.
41322         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
41323         (j0_test_data): Update call to AUTO_TESTS_f_f.
41324         (j1_test_data): Likewise.
41325         (jn_test_data): Update call to AUTO_TESTS_if_f.
41326         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
41327         (log_test_data): Update call to AUTO_TESTS_f_f.
41328         (log10_test_data): Likewise.
41329         (log1p_test_data): Likewise.
41330         (log2_test_data): Likewise.
41331         (pow_test_data): Update call to AUTO_TESTS_ff_f.
41332         (pow_tonearest_test_data): Likewise.
41333         (sin_test_data): Update call to AUTO_TESTS_f_f.
41334         (sin_test): Use ALL_RM_TEST.
41335         (sin_tonearest_test_data): Remove.
41336         (sin_test_tonearest): Likewise.
41337         (sin_towardzero_test_data): Likewise.
41338         (sin_test_towardzero): Likewise.
41339         (sin_downward_test_data): Likewise.
41340         (sin_test_downward): Likewise.
41341         (sin_upward_test_data): Likewise.
41342         (sin_test_upward): Likewise.
41343         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
41344         (sinh_test_data): Update call to AUTO_TESTS_f_f.
41345         (sinh_test): Use ALL_RM_TEST.
41346         (sinh_tonearest_test_data): Remove.
41347         (sinh_test_tonearest): Likewise.
41348         (sinh_towardzero_test_data): Likewise.
41349         (sinh_test_towardzero): Likewise.
41350         (sinh_downward_test_data): Likewise.
41351         (sinh_test_downward): Likewise.
41352         (sinh_upward_test_data): Likewise.
41353         (sinh_test_upward): Likewise.
41354         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
41355         (sqrt_test): Use ALL_RM_TEST.
41356         (sqrt_tonearest_test_data): Remove.
41357         (sqrt_test_tonearest): Likewise.
41358         (sqrt_towardzero_test_data): Likewise.
41359         (sqrt_test_towardzero): Likewise.
41360         (sqrt_downward_test_data): Likewise.
41361         (sqrt_test_downward): Likewise.
41362         (sqrt_upward_test_data): Likewise.
41363         (sqrt_test_upward): Likewise.
41364         (tan_test_data): Update call to AUTO_TESTS_f_f.
41365         (tan_test): Use ALL_RM_TEST.
41366         (tan_tonearest_test_data): Remove.
41367         (tan_test_tonearest): Likewise.
41368         (tan_towardzero_test_data): Likewise.
41369         (tan_test_towardzero): Likewise.
41370         (tan_downward_test_data): Likewise.
41371         (tan_test_downward): Likewise.
41372         (tan_upward_test_data): Likewise.
41373         (tan_test_upward): Likewise.
41374         (tanh_test_data): Update call to AUTO_TESTS_f_f.
41375         (tgamma_test_data): Likewise.
41376         (y0_test_data): Likewise.
41377         (y1_test_data): Likewise.
41378         (yn_test_data): Update call to AUTO_TESTS_if_f.
41379         (main): Do not call removed functions.
41380
41381 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41382
41383         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
41384         (ldexp_test_data): Remove.
41385         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
41386         scalbn_test_data.
41387         (scalb_test): Use ALL_RM_TEST.
41388
41389 2014-03-19  Andreas Schwab  <schwab@suse.de>
41390
41391         * nscd/nscd.service: Also invalidate netgroup cache on reload.
41392
41393 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41394
41395         [BZ #16649]
41396         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
41397         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
41398         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
41399         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41400         (__ASSUME_PREADV): Undefine.
41401         (__ASSUME_PWRITEV): Likewise.
41402
41403 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41404
41405         * bits/mman-linux.h: Add comment about non-Linux use.
41406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
41407         bits/mman-linux.h resting place.
41408
41409         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
41410         * bits/mman-linux.h: ... here.
41411
41412 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41413
41414         * conform/conformtest.pl: Add standard definition when calling C
41415         preprocessor on data files.
41416         (checknamespace): Remove unused variable.
41417
41418 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41419
41420         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
41421         minus_oflow, plus_uflow and minus_uflow in expected results.
41422         * math/libm-test.inc (scalbn_test_data): Add more tests of
41423         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
41424         minus_uflow.
41425         (scalbn_test): Use ALL_RM_TEST.
41426         (scalbln_test_data): Add more tests of negative arguments.  Use
41427         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
41428         (scalbln_test): Use ALL_RM_TEST.
41429
41430 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41431
41432         * scripts/abilist.awk: Ignore symbols marked with .hidden.
41433
41434 2014-03-18  Will Newton  <will.newton@linaro.org>
41435
41436         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
41437         inaccurate comment.
41438
41439 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41440
41441         * Makerules [!subdir] (check-abi): Exit with error status if a
41442         test failed.
41443
41444 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41445
41446         * math/libm-test.inc (nearbyint_test_data): Include all tests used
41447         for rint.  Include results for all rounding modes.
41448         (nearbyint_test): Use ALL_RM_TEST.
41449         (rint_test_data): Include all tests used for nearbyint.
41450
41451 2014-03-17  Will Newton  <will.newton@linaro.org>
41452
41453         * nptl/sysdeps/pthread/pthread.h: Revert previous
41454         change.
41455
41456         * sysdeps/generic/ldsodefs.h: Revert previous
41457         change.
41458
41459         * libio/genops.c: Revert previous change.
41460         * libio/libioP.h: Likewise.
41461         * stdio-common/vfprintf.c: Likewise.
41462
41463         * sysdeps/generic/math_private.h: Revert previous
41464         change.
41465
41466         * sysdeps/generic/math_private.h: Check whether
41467         HAVE_RM_CTX is defined with #ifdef rather
41468         than #if.
41469
41470         * argp/argp-fmtstream.h: Check whether
41471         __STRICT_ANSI__ is defined with #ifdef rather
41472         than #if.
41473         * argp/argp.h: Likewise.
41474
41475         * libio/genops.c: Check whether
41476         _IO_JUMPS_OFFSET is defined with #ifdef rather
41477         than #if.
41478         * libio/libioP.h: Likewise.
41479         * stdio-common/vfprintf.c: Likewise.
41480
41481         * sysdeps/generic/ldsodefs.h: Check whether
41482         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
41483         than #if.
41484
41485         * nptl/sysdeps/pthread/pthread.h: Check
41486         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
41487         its value.
41488
41489 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
41490
41491         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
41492         setting O_APPEND.
41493         * libio/tst-ftell-active-handler.c (do_append_test): Add a
41494         test case.
41495
41496         [BZ #16680]
41497         * libio/fileops.c (_IO_file_open): Seek to end of file but
41498         don't cache the offset.
41499         (get_file_offset): Remove function.
41500         (do_ftell): Use cached offset when available.
41501         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
41502         don't cache the offset.
41503         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
41504         case.
41505         (do_one_test): Call it.
41506         (do_ftell_test): Fix up expected old offset for a+ mode.
41507         * libio/wfileops.c (do_ftell_wide): Used cached offset when
41508         available.
41509
41510         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
41511         up test status with function return status.
41512         (do_write_test): Likewise.
41513         (do_append_test): Likewise.
41514
41515         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
41516         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
41517         Remove.
41518
41519 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41520
41521         * math/gen-libm-test.pl (parse_args): Handle results specified for
41522         each rounding mode separately.
41523         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
41524         tests and results from lrint_tonearest_test_data,
41525         lrint_towardzero_test_data, lrint_downward_test_data and
41526         lrint_upward_test_data.
41527         (lrint_test): Use ALL_RM_TEST.
41528         (lrint_tonearest_test_data): Remove.
41529         (lrint_test_tonearest): Likewise.
41530         (lrint_towardzero_test_data): Likewise.
41531         (lrint_test_towardzero): Likewise.
41532         (lrint_downward_test_data): Likewise.
41533         (lrint_test_downward): Likewise.
41534         (lrint_upward_test_data): Likewise.
41535         (lrint_test_upward): Likewise.
41536         (llrint_test_data): Merge in per-rounding-mode tests and results
41537         from llrint_tonearest_test_data, llrint_towardzero_test_data,
41538         llrint_downward_test_data and llrint_upward_test_data.
41539         (llrint_test): Use ALL_RM_TEST.
41540         (llrint_tonearest_test_data): Remove.
41541         (llrint_test_tonearest): Likewise.
41542         (llrint_towardzero_test_data): Likewise.
41543         (llrint_test_towardzero): Likewise.
41544         (llrint_downward_test_data): Likewise.
41545         (llrint_test_downward): Likewise.
41546         (llrint_upward_test_data): Likewise.
41547         (llrint_test_upward): Likewise.
41548         (rint_test_data): Merge in per-rounding-mode tests and results
41549         from rint_tonearest_test_data, rint_towardzero_test_data,
41550         rint_downward_test_data and rint_upward_test_data.  Add
41551         per-rounding-mode results for tests not in those arrays.
41552         (rint_test): Use ALL_RM_TEST.
41553         (rint_tonearest_test_data): Remove.
41554         (rint_test_tonearest): Likewise.
41555         (rint_towardzero_test_data): Likewise.
41556         (rint_test_towardzero): Likewise.
41557         (rint_downward_test_data): Likewise.
41558         (rint_test_downward): Likewise.
41559         (rint_upward_test_data): Likewise.
41560         (rint_test_upward): Likewise.
41561         (main): Don't call removed functions.
41562
41563 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41564
41565         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
41566         "Compiled on ..." crapola.  It is anti-useful.
41567
41568 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
41569
41570         * scripts/evaluate-test.sh: Handle fourth argument to determine
41571         whether test run should stop on failure.
41572         * Makeconfig (stop-on-test-failure): New variable.
41573         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
41574         $(stop-on-test-failure).
41575         * Makefile (tests): Give a summary of results from testing and
41576         exit with failure status if they include an ERROR or FAIL.
41577         (xtests): Likewise.
41578         * manual/install.texi (Configuring and compiling): Mention
41579         stop-on-test-failure=y.
41580         * INSTALL: Regenerated.
41581
41582 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41583
41584         * scripts/versionlist.awk: New file.
41585         * Makerules [$(build-shared) = yes]
41586         (postclean-generated): Add Versions.def, not Versions.def.v and
41587         Versions.def.v.i.
41588         ($(common-objpfx)Versions.def.v.i): Target removed.
41589         ($(common-objpfx)Versions.def): New target.
41590         ($(common-objpfx)Versions.all): Depend on that rather that
41591         $(common-objpfx)Versions.def.v.
41592         * Versions.def: File removed.
41593
41594         * Makeconfig (+gccwarn): Add -Wundef.
41595         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
41596         a dl-sysdep.h breaking its contract.
41597         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
41598         * include/stackinfo.h: New file.
41599         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
41600         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
41601         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
41602         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
41603         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
41604         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
41605         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41606         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41607         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41608         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41609         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41610         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
41611         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41612         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41613         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41614
41615 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41616
41617         [BZ #16707]
41618         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
41619         implementation.
41620         * math/libm-test.inc (round_test_data): Add more tests.
41621
41622         [BZ #16706]
41623         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
41624         implementation.
41625         * math/libm-test.inc (nearbyint_test_data): Add more tests.
41626
41627         [BZ #16701]
41628         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
41629         implementation.
41630         * math/libm-test.inc (ceil_test_data): Add more tests.
41631
41632         * math/libm-test.inc (trunc_test_data): Add more tests related to
41633         BZ#16414.
41634
41635 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41636
41637         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
41638         with #if rather than #ifdef.
41639         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
41640
41641 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
41642
41643         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
41644         first.  Disable AVX-512 GCC support if assembler doesn't support
41645         it.
41646         * sysdeps/x86_64/configure: Regenerated.
41647
41648 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
41649
41650         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
41651         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
41652         (__old_pthread_attr_setstack): Likewise.
41653         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
41654         [!_STACK_GROWS_DOWN]: Likewise.
41655
41656 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
41657
41658         * config.make.in (have-bash2): Delete.
41659         * configure.ac (libc_cv_have_bash2): Delete.
41660         * configure: Regenerate.
41661         * elf/Makefile (common-ldd-rewrite): Rename to ...
41662         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
41663         (sh-ldd-rewrite): Delete.
41664         (bash-ldd-rewrite): Delete.
41665         (have-bash2): Delete checks.
41666         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
41667         ldd-rewrite.
41668
41669         * config.make.in (have-ksh): Delete.
41670         (KSH): Delete.
41671         * configure.ac (libc_cv_have_ksh): Delete.
41672         * configure: Regenerate.
41673
41674         * elf/Makefile: Delete $(have-ksh) check.
41675         ($(objpfx)sotruss): Change KSH to BASH.
41676         * elf/sotruss.ksh: Rename to ...
41677         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
41678         function style to match POSIX.  Drop ksh vim mode setting.
41679
41680         * manual/time.texi (Specifying the Time Zone with TZ): Change
41681         Tuesday to Thursday.
41682
41683         * debug/tst-longjmp_chk2.c: Update header comment.
41684         (stackoverflow_handler): Add comment.  Call assert on pass value.
41685
41686 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
41687
41688         [BZ #16194]
41689         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
41690         (HAVE_AVX512_ASM_SUPPORT): Likewise.
41691         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
41692         (La_x86_64_vector): Add zmm.
41693         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
41694         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
41695         ($(objpfx)tst-audit10): New target.
41696         ($(objpfx)tst-audit10.out): Likewise.
41697         (tst-audit10-ENV): New.
41698         (AVX512-CFLAGS): Likewise.
41699         (CFLAGS-tst-audit10.c): Likewise.
41700         (CFLAGS-tst-auditmod10a.c): Likewise.
41701         (CFLAGS-tst-auditmod10b.c): Likewise.
41702         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
41703         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
41704         * sysdeps/x86_64/configure: Regenerated.
41705         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
41706         AVX-512 zmm register support.
41707         (_dl_x86_64_save_sse): Likewise.
41708         (_dl_x86_64_restore_sse): Likewise.
41709         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
41710         size vector registers.
41711         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
41712         (ZMM_SIZE): Likewise.
41713         * sysdeps/x86_64/tst-audit10.c: New file.
41714         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
41715         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
41716
41717 2014-03-13  Roland McGrath  <roland@hack.frob.com>
41718
41719         * configure.ac (HAVE_EHDR_START): New check.
41720         * configure: Regenerated.
41721         * config.h.in (HAVE_EHDR_START): New #undef.
41722         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
41723         assuming the lowest-addressed segment maps the start of the file.
41724
41725 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
41726
41727         * INSTALL: Regenerated.
41728
41729 2014-03-13  Will Newton  <will.newton@linaro.org>
41730
41731         * manual/setjmp.texi (System V contexts): Improve
41732         clarity and grammar of documentation.
41733
41734 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
41735
41736         [BZ #16381]
41737         * elf/Makefile (tests): Add tst-pie2.
41738         (tests-pie): Add tst-pie2.
41739         * elf/tst-pie2.c: New file.
41740         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
41741         for ET_EXEC.
41742         * elf/rtld.c (map_doit): Load executable as lt_executable.
41743         (dl_main): Likewise.
41744
41745 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
41746
41747         [BZ #16642]
41748         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41749         (__ASSUME_PSELECT): Undefine.
41750
41751 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41752
41753         [BZ #16689]
41754         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
41755         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
41756         static build.
41757         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
41758         selector for static builds.
41759
41760 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41761
41762         [BZ #16695]
41763         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
41764         key in the buffer.
41765
41766 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41767
41768         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
41769         IFUNC selector for static builds.
41770
41771 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
41772
41773         * sysdeps/mips/math_private.h [__mips_hard_float]
41774         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
41775         libc_feresetround_mips_ctx.
41776         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
41777         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
41778         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
41779
41780         [BZ #16677]
41781         * math/s_nextafter.c (__nextafter): Do not return value from
41782         overflowing computation.
41783         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
41784         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
41785         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
41786         Likewise.
41787         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
41788         Likewise.
41789         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
41790         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
41791
41792 2014-03-11  Roland McGrath  <roland@hack.frob.com>
41793
41794         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
41795         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
41796         Move sfi_sp use from the load-multiple (that no longer sets sp) to
41797         the new mov targetting sp.
41798
41799 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41800
41801         [BZ #16683]
41802         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
41803         Define it for static builds as well.
41804         (NO_BZERO_IMPL): Likewise.
41805
41806 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41807
41808         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
41809         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
41810         multiarch strspn for PPC64.
41811         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
41812         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
41813         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41814         (__libc_ifunc_impl_list): Likewise.
41815         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
41816         multiarch optimizations
41817         * string/strspn.c (strspn): Using macro to redefine symbol name.
41818
41819 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41820             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41821
41822         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
41823         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
41824         multiarch strncat for PPC64.
41825         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
41826         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
41827         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41828         (__libc_ifunc_impl_list): Likewise.
41829         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
41830         multiarch optimizations
41831
41832 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41833
41834         [BZ #16639]
41835         * nscd/nscd.service: Make service type forking.
41836
41837 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41838
41839         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
41840         sign in non default rounding modes.
41841         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
41842
41843 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
41844
41845         * math/libm-test.inc (ALL_RM_TEST): New macro.
41846         (ceil_test): Use ALL_RM_TEST.
41847         (cimag_test): Likewise.
41848         (conj_test): Likewise.
41849         (copysign_test): Likewise.
41850         (cproj_test): Likewise.
41851         (creal_test): Likewise.
41852         (fabs_test): Likewise.
41853         (floor_test): Likewise.
41854         (fmax_test): Likewise.
41855         (fmin_test): Likewise.
41856         (fmod_test): Likewise.
41857         (fpclassify_test): Likewise.
41858         (frexp_test): Likewise.
41859         (ilogb_test): Likewise.
41860         (isfinite_test): Likewise.
41861         (finite_test): Likewise.
41862         (isgreater_test): Likewise.
41863         (isgreaterequal_test): Likewise.
41864         (isinf_test): Likewise.
41865         (isless_test): Likewise.
41866         (islessequal_test): Likewise.
41867         (islessgreater_test): Likewise.
41868         (isnan_test): Likewise.
41869         (isnormal_test): Likewise.
41870         (issignaling_test): Likewise.
41871         (isunordered_test): Likewise.
41872         (logb_test): Likewise.
41873         (logb_downward_test_data): Remove.
41874         (logb_test_downward): Likewise.
41875         (lround_test): Use ALL_RM_TEST.
41876         (llround_test): Likewise.
41877         (modf_test): Likewise.
41878         (nexttoward_test): Likewise.
41879         (remainder_test): Likewise.
41880         (drem_test): Likewise.
41881         (remainder_tonearest_test_data): Likewise.
41882         (remainder_test_tonearest): Likewise.
41883         (drem_test_tonearest): Likewise.
41884         (remainder_towardzero_test_data): Likewise.
41885         (remainder_test_towardzero): Likewise.
41886         (drem_test_towardzero): Likewise.
41887         (remainder_downward_test_data): Likewise.
41888         (remainder_test_downward): Likewise.
41889         (drem_test_downward): Likewise.
41890         (remainder_upward_test_data): Likewise.
41891         (remainder_test_upward): Likewise.
41892         (drem_test_upward): Likewise.
41893         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
41894         (round_test): Use ALL_RM_TEST.
41895         (signbit_test): Likewise.
41896         (trunc_test): Likewise.
41897         (significand_test): Likewise.
41898         (main): Don't call removed functions.
41899
41900 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
41901
41902         [BZ #16674]
41903         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
41904         || __USE_XOPEN2K8].
41905         (ILL_ILLOPN): Likewise.
41906         (ILL_ILLADR): Likewise.
41907         (ILL_ILLTRP): Likewise.
41908         (ILL_PRVOPC): Likewise.
41909         (ILL_PRVREG): Likewise.
41910         (ILL_COPROC): Likewise.
41911         (ILL_BADSTK): Likewise.
41912         (FPE_INTDIV): Likewise.
41913         (FPE_INTOVF): Likewise.
41914         (FPE_FLTDIV): Likewise.
41915         (FPE_FLTOVF): Likewise.
41916         (FPE_FLTUND): Likewise.
41917         (FPE_FLTRES): Likewise.
41918         (FPE_FLTINV): Likewise.
41919         (FPE_FLTSUB): Likewise.
41920         (SEGV_MAPERR): Likewise.
41921         (SEGV_ACCERR): Likewise.
41922         (BUS_ADRALN): Likewise.
41923         (BUS_ADRERR): Likewise.
41924         (BUS_OBJERR): Likewise.
41925         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41926         (TRAP_TRACE): Likewise.
41927         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41928         __USE_XOPEN2K8].
41929         (CLD_KILLED): Likewise.
41930         (CLD_DUMPED): Likewise.
41931         (CLD_TRAPPED): Likewise.
41932         (CLD_STOPPED): Likewise.
41933         (CLD_CONTINUED): Likewise.
41934         (POLL_IN): Likewise.
41935         (POLL_OUT): Likewise.
41936         (POLL_MSG): Likewise.
41937         (POLL_ERR): Likewise.
41938         (POLL_PRI): Likewise.
41939         (POLL_HUP): Likewise.
41940         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
41941         Likewise.
41942         (ILL_ILLOPN): Likewise.
41943         (ILL_ILLADR): Likewise.
41944         (ILL_ILLTRP): Likewise.
41945         (ILL_PRVOPC): Likewise.
41946         (ILL_PRVREG): Likewise.
41947         (ILL_COPROC): Likewise.
41948         (ILL_BADSTK): Likewise.
41949         (FPE_INTDIV): Likewise.
41950         (FPE_INTOVF): Likewise.
41951         (FPE_FLTDIV): Likewise.
41952         (FPE_FLTOVF): Likewise.
41953         (FPE_FLTUND): Likewise.
41954         (FPE_FLTRES): Likewise.
41955         (FPE_FLTINV): Likewise.
41956         (FPE_FLTSUB): Likewise.
41957         (SEGV_MAPERR): Likewise.
41958         (SEGV_ACCERR): Likewise.
41959         (BUS_ADRALN): Likewise.
41960         (BUS_ADRERR): Likewise.
41961         (BUS_OBJERR): Likewise.
41962         (BUS_MCEERR_AR): Likewise.
41963         (BUS_MCEERR_AO): Likewise.
41964         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41965         (TRAP_TRACE): Likewise.
41966         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41967         __USE_XOPEN2K8].
41968         (CLD_KILLED): Likewise.
41969         (CLD_DUMPED): Likewise.
41970         (CLD_TRAPPED): Likewise.
41971         (CLD_STOPPED): Likewise.
41972         (CLD_CONTINUED): Likewise.
41973         (POLL_IN): Likewise.
41974         (POLL_OUT): Likewise.
41975         (POLL_MSG): Likewise.
41976         (POLL_ERR): Likewise.
41977         (POLL_PRI): Likewise.
41978         (POLL_HUP): Likewise.
41979         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
41980         (ILL_ILLOPN): Likewise.
41981         (ILL_ILLADR): Likewise.
41982         (ILL_ILLTRP): Likewise.
41983         (ILL_PRVOPC): Likewise.
41984         (ILL_PRVREG): Likewise.
41985         (ILL_COPROC): Likewise.
41986         (ILL_BADSTK): Likewise.
41987         (FPE_INTDIV): Likewise.
41988         (FPE_INTOVF): Likewise.
41989         (FPE_FLTDIV): Likewise.
41990         (FPE_FLTOVF): Likewise.
41991         (FPE_FLTUND): Likewise.
41992         (FPE_FLTRES): Likewise.
41993         (FPE_FLTINV): Likewise.
41994         (FPE_FLTSUB): Likewise.
41995         (SEGV_MAPERR): Likewise.
41996         (SEGV_ACCERR): Likewise.
41997         (BUS_ADRALN): Likewise.
41998         (BUS_ADRERR): Likewise.
41999         (BUS_OBJERR): Likewise.
42000         (BUS_MCEERR_AR): Likewise.
42001         (BUS_MCEERR_AO): Likewise.
42002         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42003         (TRAP_TRACE): Likewise.
42004         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42005         __USE_XOPEN2K8].
42006         (CLD_KILLED): Likewise.
42007         (CLD_DUMPED): Likewise.
42008         (CLD_TRAPPED): Likewise.
42009         (CLD_STOPPED): Likewise.
42010         (CLD_CONTINUED): Likewise.
42011         (POLL_IN): Likewise.
42012         (POLL_OUT): Likewise.
42013         (POLL_MSG): Likewise.
42014         (POLL_ERR): Likewise.
42015         (POLL_PRI): Likewise.
42016         (POLL_HUP): Likewise.
42017         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
42018         Likewise.
42019         (ILL_ILLOPN): Likewise.
42020         (ILL_ILLADR): Likewise.
42021         (ILL_ILLTRP): Likewise.
42022         (ILL_PRVOPC): Likewise.
42023         (ILL_PRVREG): Likewise.
42024         (ILL_COPROC): Likewise.
42025         (ILL_BADSTK): Likewise.
42026         (ILL_BADIADDR): Likewise.
42027         (ILL_BREAK): Likewise.
42028         (FPE_INTDIV): Likewise.
42029         (FPE_INTOVF): Likewise.
42030         (FPE_FLTDIV): Likewise.
42031         (FPE_FLTOVF): Likewise.
42032         (FPE_FLTUND): Likewise.
42033         (FPE_FLTRES): Likewise.
42034         (FPE_FLTINV): Likewise.
42035         (FPE_FLTSUB): Likewise.
42036         (FPE_DECOVF): Likewise.
42037         (FPE_DECDIV): Likewise.
42038         (FPE_DECERR): Likewise.
42039         (FPE_INVASC): Likewise.
42040         (FPE_INVDEC): Likewise.
42041         (SEGV_MAPERR): Likewise.
42042         (SEGV_ACCERR): Likewise.
42043         (SEGV_PSTKOVF): Likewise.
42044         (BUS_ADRALN): Likewise.
42045         (BUS_ADRERR): Likewise.
42046         (BUS_OBJERR): Likewise.
42047         (BUS_MCEERR_AR): Likewise.
42048         (BUS_MCEERR_AO): Likewise.
42049         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42050         (TRAP_TRACE): Likewise.
42051         (TRAP_BRANCH): Likewise.
42052         (TRAP_HWBKPT): Likewise.
42053         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42054         __USE_XOPEN2K8].
42055         (CLD_KILLED): Likewise.
42056         (CLD_DUMPED): Likewise.
42057         (CLD_TRAPPED): Likewise.
42058         (CLD_STOPPED): Likewise.
42059         (CLD_CONTINUED): Likewise.
42060         (POLL_IN): Likewise.
42061         (POLL_OUT): Likewise.
42062         (POLL_MSG): Likewise.
42063         (POLL_ERR): Likewise.
42064         (POLL_PRI): Likewise.
42065         (POLL_HUP): Likewise.
42066         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
42067         (ILL_ILLOPN): Likewise.
42068         (ILL_ILLADR): Likewise.
42069         (ILL_ILLTRP): Likewise.
42070         (ILL_PRVOPC): Likewise.
42071         (ILL_PRVREG): Likewise.
42072         (ILL_COPROC): Likewise.
42073         (ILL_BADSTK): Likewise.
42074         (FPE_INTDIV): Likewise.
42075         (FPE_INTOVF): Likewise.
42076         (FPE_FLTDIV): Likewise.
42077         (FPE_FLTOVF): Likewise.
42078         (FPE_FLTUND): Likewise.
42079         (FPE_FLTRES): Likewise.
42080         (FPE_FLTINV): Likewise.
42081         (FPE_FLTSUB): Likewise.
42082         (SEGV_MAPERR): Likewise.
42083         (SEGV_ACCERR): Likewise.
42084         (BUS_ADRALN): Likewise.
42085         (BUS_ADRERR): Likewise.
42086         (BUS_OBJERR): Likewise.
42087         (BUS_MCEERR_AR): Likewise.
42088         (BUS_MCEERR_AO): Likewise.
42089         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42090         (TRAP_TRACE): Likewise.
42091         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42092         __USE_XOPEN2K8].
42093         (CLD_KILLED): Likewise.
42094         (CLD_DUMPED): Likewise.
42095         (CLD_TRAPPED): Likewise.
42096         (CLD_STOPPED): Likewise.
42097         (CLD_CONTINUED): Likewise.
42098         (POLL_IN): Likewise.
42099         (POLL_OUT): Likewise.
42100         (POLL_MSG): Likewise.
42101         (POLL_ERR): Likewise.
42102         (POLL_PRI): Likewise.
42103         (POLL_HUP): Likewise.
42104         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
42105         (ILL_ILLOPN): Likewise.
42106         (ILL_ILLADR): Likewise.
42107         (ILL_ILLTRP): Likewise.
42108         (ILL_PRVOPC): Likewise.
42109         (ILL_PRVREG): Likewise.
42110         (ILL_COPROC): Likewise.
42111         (ILL_BADSTK): Likewise.
42112         (FPE_INTDIV): Likewise.
42113         (FPE_INTOVF): Likewise.
42114         (FPE_FLTDIV): Likewise.
42115         (FPE_FLTOVF): Likewise.
42116         (FPE_FLTUND): Likewise.
42117         (FPE_FLTRES): Likewise.
42118         (FPE_FLTINV): Likewise.
42119         (FPE_FLTSUB): Likewise.
42120         (SEGV_MAPERR): Likewise.
42121         (SEGV_ACCERR): Likewise.
42122         (BUS_ADRALN): Likewise.
42123         (BUS_ADRERR): Likewise.
42124         (BUS_OBJERR): Likewise.
42125         (BUS_MCEERR_AR): Likewise.
42126         (BUS_MCEERR_AO): Likewise.
42127         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42128         (TRAP_TRACE): Likewise.
42129         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42130         __USE_XOPEN2K8].
42131         (CLD_KILLED): Likewise.
42132         (CLD_DUMPED): Likewise.
42133         (CLD_TRAPPED): Likewise.
42134         (CLD_STOPPED): Likewise.
42135         (CLD_CONTINUED): Likewise.
42136         (POLL_IN): Likewise.
42137         (POLL_OUT): Likewise.
42138         (POLL_MSG): Likewise.
42139         (POLL_ERR): Likewise.
42140         (POLL_PRI): Likewise.
42141         (POLL_HUP): Likewise.
42142         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
42143         (ILL_ILLOPN): Likewise.
42144         (ILL_ILLADR): Likewise.
42145         (ILL_ILLTRP): Likewise.
42146         (ILL_PRVOPC): Likewise.
42147         (ILL_PRVREG): Likewise.
42148         (ILL_COPROC): Likewise.
42149         (ILL_BADSTK): Likewise.
42150         (FPE_INTDIV): Likewise.
42151         (FPE_INTOVF): Likewise.
42152         (FPE_FLTDIV): Likewise.
42153         (FPE_FLTOVF): Likewise.
42154         (FPE_FLTUND): Likewise.
42155         (FPE_FLTRES): Likewise.
42156         (FPE_FLTINV): Likewise.
42157         (FPE_FLTSUB): Likewise.
42158         (SEGV_MAPERR): Likewise.
42159         (SEGV_ACCERR): Likewise.
42160         (BUS_ADRALN): Likewise.
42161         (BUS_ADRERR): Likewise.
42162         (BUS_OBJERR): Likewise.
42163         (BUS_MCEERR_AR): Likewise.
42164         (BUS_MCEERR_AO): Likewise.
42165         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42166         (TRAP_TRACE): Likewise.
42167         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42168         __USE_XOPEN2K8].
42169         (CLD_KILLED): Likewise.
42170         (CLD_DUMPED): Likewise.
42171         (CLD_TRAPPED): Likewise.
42172         (CLD_STOPPED): Likewise.
42173         (CLD_CONTINUED): Likewise.
42174         (POLL_IN): Likewise.
42175         (POLL_OUT): Likewise.
42176         (POLL_MSG): Likewise.
42177         (POLL_ERR): Likewise.
42178         (POLL_PRI): Likewise.
42179         (POLL_HUP): Likewise.
42180         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
42181         (ILL_ILLOPN): Likewise.
42182         (ILL_ILLADR): Likewise.
42183         (ILL_ILLTRP): Likewise.
42184         (ILL_PRVOPC): Likewise.
42185         (ILL_PRVREG): Likewise.
42186         (ILL_COPROC): Likewise.
42187         (ILL_BADSTK): Likewise.
42188         (ILL_DBLFLT): Likewise.
42189         (ILL_HARDWALL): Likewise.
42190         (FPE_INTDIV): Likewise.
42191         (FPE_INTOVF): Likewise.
42192         (FPE_FLTDIV): Likewise.
42193         (FPE_FLTOVF): Likewise.
42194         (FPE_FLTUND): Likewise.
42195         (FPE_FLTRES): Likewise.
42196         (FPE_FLTINV): Likewise.
42197         (FPE_FLTSUB): Likewise.
42198         (SEGV_MAPERR): Likewise.
42199         (SEGV_ACCERR): Likewise.
42200         (BUS_ADRALN): Likewise.
42201         (BUS_ADRERR): Likewise.
42202         (BUS_OBJERR): Likewise.
42203         (BUS_MCEERR_AR): Likewise.
42204         (BUS_MCEERR_AO): Likewise.
42205         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42206         (TRAP_TRACE): Likewise.
42207         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42208         __USE_XOPEN2K8].
42209         (CLD_KILLED): Likewise.
42210         (CLD_DUMPED): Likewise.
42211         (CLD_TRAPPED): Likewise.
42212         (CLD_STOPPED): Likewise.
42213         (CLD_CONTINUED): Likewise.
42214         (POLL_IN): Likewise.
42215         (POLL_OUT): Likewise.
42216         (POLL_MSG): Likewise.
42217         (POLL_ERR): Likewise.
42218         (POLL_PRI): Likewise.
42219         (POLL_HUP): Likewise.
42220         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
42221         (ILL_ILLOPN): Likewise.
42222         (ILL_ILLADR): Likewise.
42223         (ILL_ILLTRP): Likewise.
42224         (ILL_PRVOPC): Likewise.
42225         (ILL_PRVREG): Likewise.
42226         (ILL_COPROC): Likewise.
42227         (ILL_BADSTK): Likewise.
42228         (FPE_INTDIV): Likewise.
42229         (FPE_INTOVF): Likewise.
42230         (FPE_FLTDIV): Likewise.
42231         (FPE_FLTOVF): Likewise.
42232         (FPE_FLTUND): Likewise.
42233         (FPE_FLTRES): Likewise.
42234         (FPE_FLTINV): Likewise.
42235         (FPE_FLTSUB): Likewise.
42236         (SEGV_MAPERR): Likewise.
42237         (SEGV_ACCERR): Likewise.
42238         (BUS_ADRALN): Likewise.
42239         (BUS_ADRERR): Likewise.
42240         (BUS_OBJERR): Likewise.
42241         (BUS_MCEERR_AR): Likewise.
42242         (BUS_MCEERR_AO): Likewise.
42243         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42244         (TRAP_TRACE): Likewise.
42245         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42246         __USE_XOPEN2K8].
42247         (CLD_KILLED): Likewise.
42248         (CLD_DUMPED): Likewise.
42249         (CLD_TRAPPED): Likewise.
42250         (CLD_STOPPED): Likewise.
42251         (CLD_CONTINUED): Likewise.
42252         (POLL_IN): Likewise.
42253         (POLL_OUT): Likewise.
42254         (POLL_MSG): Likewise.
42255         (POLL_ERR): Likewise.
42256         (POLL_PRI): Likewise.
42257         (POLL_HUP): Likewise.
42258         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
42259         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42260
42261         [BZ #16670]
42262         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
42263         before #include of <time.h>.
42264         [!__USE_XOPEN2K] (__need_timespec): Likewise.
42265         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
42266         (test-xfail-UNIX98/sched.h/conform): Likewise.
42267
42268 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42269
42270         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
42271         error absence of trapping exception support.
42272         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
42273
42274 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42275
42276         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
42277         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
42278         * timezone/Makefile (testdata): Move definition above include of
42279         Rules.
42280         (test-zones): New variable.
42281         (tests-special): Add zone files.
42282         (build-testdata): Use $(evaluate-test).
42283
42284         * elf/Makefile (tests-special): Rename tests to end with .out.
42285         ($(objpfx)noload-mem): Likewise.
42286         ($(objpfx)tst-leaks1-mem): Likewise.
42287         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
42288         * iconv/Makefile (xtests-special): Change test-iconvconfig to
42289         $(objpfx)test-iconvconfig.out.
42290         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
42291         set -e inside subshell and redirect output to file.
42292         * iconvdata/Makefile (generated): Rename tests to end with .out.
42293         Correct type.
42294         (tests-special): Rename tests to end with .out.
42295         ($(objpfx)mtrace-tst-loading): Likewise.
42296         * intl/Makefile (generated): Likewise.
42297         (tests-special): Likewise.
42298         ($(objpfx)mtrace-tst-gettext): Likewise.
42299         * misc/Makefile (generated): Likewise.
42300         (tests-special): Likewise.
42301         ($(objpfx)tst-error1-mem): Likewise.
42302         * nptl/Makefile (tests-special): Likewise.
42303         ($(objpfx)tst-stack3-mem): Likewise.
42304         (generated): Likewise.
42305         * posix/Makefile (generated): Likewise.
42306         (tests-special): Likewise.
42307         (xtests-special): Likewise.
42308         ($(objpfx)tst-fnmatch-mem): Likewise.
42309         ($(objpfx)bug-regex2-mem): Likewise.
42310         ($(objpfx)bug-regex14-mem): Likewise.
42311         ($(objpfx)bug-regex21-mem): Likewise.
42312         ($(objpfx)bug-regex31-mem): Likewise.
42313         ($(objpfx)tst-vfork3-mem): Likewise.
42314         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
42315         ($(objpfx)tst-pcre-mem): Likewise.
42316         ($(objpfx)tst-boost-mem): Likewise.
42317         ($(objpfx)bug-ga2-mem): Likewise.
42318         ($(objpfx)bug-glob2-mem): Likewise.
42319         * resolv/Makefile (generate): Likewise.
42320         (tests-special): Likewise.
42321         (xtests-special): Likewise.
42322         (generated): Likewise.
42323         ($(objpfx)mtrace-tst-leaks): Likewise.
42324         ($(objpfx)mtrace-tst-leaks2): Likewise.
42325
42326         * scripts/merge-test-results.sh: New file.
42327         * Makefile (tests-special-notdir): New variable.
42328         (tests): Run merge-test-results.sh.
42329         (xtests): Likewise.
42330         * Rules (tests-special-notdir): New variable.
42331         (xtests-special-notdir): Likewise.
42332         (tests): Run merge-test-results.sh
42333         (xtests): Likewise.
42334
42335         * Makeconfig (test-xfail-name): New variable.
42336         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
42337         compute variable name for expected failures.
42338         * conform/Makefile (conformtest-headers-data): New variable.
42339         (conformtest-standards): Likewise.
42340         (conformtest-headers-ISO): Likewise.
42341         (conformtest-headers-ISO99): Likewise.
42342         (conformtest-headers-ISO11): Likewise.
42343         (conformtest-headers-POSIX): Likewise.
42344         (conformtest-headers-XPG3): Likewise.
42345         (conformtest-headers-XPG4): Likewise.
42346         (conformtest-headers-UNIX98): Likewise.
42347         (conformtest-headers-XOPEN2K): Likewise.
42348         (conformtest-headers-POSIX2008): Likewise.
42349         (conformtest-headers-XOPEN2K8): Likewise.
42350         (conformtest-header-list-base): Likewise.
42351         (conformtest-header-list-tests): Likewise.
42352         (conformtest-header-base): Likewise.
42353         (conformtest-header-tests): Likewise.
42354         (tests-special): Add $(conformtest-header-list-tests).  If
42355         [$(fast-check) && !$(cross-compiling)], add
42356         $(conformtest-header-tests) instead of
42357         $(objpfx)run-conformtest.out.
42358         (generated): Add $(conformtest-header-list-base).  If
42359         [$(fast-check) && !$(cross-compiling)], add
42360         $(conformtest-header-base).  Remove previous setting.
42361         ($(conformtest-header-list-tests)): New target.
42362         (test-xfail-run-conformtest): Remove variable.
42363         ($(objpfx)run-conformtest.out): Remove target.
42364         (test-xfail-ISO11/complex.h/conform): New variable.
42365         (test-xfail-ISO11/stdalign.h/conform): Likewise.
42366         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
42367         (test-xfail-XPG3/varargs.h/conform): Likewise.
42368         (test-xfail-XPG4/varargs.h/conform): Likewise.
42369         (test-xfail-UNIX98/varargs.h/conform): Likewise.
42370         (test-xfail-XPG4/ndbm.h/conform): Likewise.
42371         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
42372         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
42373         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
42374         (test-xfail-XPG3/fcntl.h/conform): Likewise.
42375         (test-xfail-XPG3/ftw.h/conform): Likewise.
42376         (test-xfail-XPG3/grp.h/conform): Likewise.
42377         (test-xfail-XPG3/langinfo.h/conform): Likewise.
42378         (test-xfail-XPG3/limits.h/conform): Likewise.
42379         (test-xfail-XPG3/pwd.h/conform): Likewise.
42380         (test-xfail-XPG3/search.h/conform): Likewise.
42381         (test-xfail-XPG3/signal.h/conform): Likewise.
42382         (test-xfail-XPG3/stdio.h/conform): Likewise.
42383         (test-xfail-XPG3/stdlib.h/conform): Likewise.
42384         (test-xfail-XPG3/string.h/conform): Likewise.
42385         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
42386         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
42387         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
42388         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
42389         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
42390         (test-xfail-XPG3/sys/types.h/conform): Likewise.
42391         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
42392         (test-xfail-XPG3/termios.h/conform): Likewise.
42393         (test-xfail-XPG3/time.h/conform): Likewise.
42394         (test-xfail-XPG3/unistd.h/conform): Likewise.
42395         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
42396         (test-xfail-XPG4/fcntl.h/conform): Likewise.
42397         (test-xfail-XPG4/langinfo.h/conform): Likewise.
42398         (test-xfail-XPG4/netdb.h/conform): Likewise.
42399         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
42400         (test-xfail-XPG4/signal.h/conform): Likewise.
42401         (test-xfail-XPG4/stdio.h/conform): Likewise.
42402         (test-xfail-XPG4/stdlib.h/conform): Likewise.
42403         (test-xfail-XPG4/stropts.h/conform): Likewise.
42404         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
42405         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
42406         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
42407         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
42408         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
42409         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
42410         (test-xfail-XPG4/sys/time.h/conform): Likewise.
42411         (test-xfail-XPG4/sys/types.h/conform): Likewise.
42412         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
42413         (test-xfail-XPG4/termios.h/conform): Likewise.
42414         (test-xfail-XPG4/ucontext.h/conform): Likewise.
42415         (test-xfail-XPG4/unistd.h/conform): Likewise.
42416         (test-xfail-XPG4/utmpx.h/conform): Likewise.
42417         (test-xfail-POSIX/sched.h/conform): Likewise.
42418         (test-xfail-POSIX/signal.h/conform): Likewise.
42419         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42420         (test-xfail-POSIX/tar.h/conform): Likewise.
42421         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
42422         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
42423         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
42424         (test-xfail-UNIX98/netdb.h/conform): Likewise.
42425         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
42426         (test-xfail-UNIX98/sched.h/conform): Likewise.
42427         (test-xfail-UNIX98/signal.h/conform): Likewise.
42428         (test-xfail-UNIX98/stdio.h/conform): Likewise.
42429         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
42430         (test-xfail-UNIX98/stropts.h/conform): Likewise.
42431         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
42432         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
42433         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
42434         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
42435         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
42436         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
42437         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
42438         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
42439         (test-xfail-UNIX98/unistd.h/conform): Likewise.
42440         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
42441         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
42442         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
42443         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
42444         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
42445         (test-xfail-XOPEN2K/math.h/conform): Likewise.
42446         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
42447         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
42448         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
42449         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
42450         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
42451         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
42452         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
42453         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
42454         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
42455         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
42456         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
42457         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
42458         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
42459         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
42460         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
42461         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
42462         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
42463         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
42464         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
42465         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
42466         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
42467         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
42468         (test-xfail-POSIX2008/signal.h/conform): Likewise.
42469         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
42470         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
42471         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
42472         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
42473         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
42474         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
42475         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
42476         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
42477         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
42478         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
42479         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
42480         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
42481         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
42482         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
42483         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
42484         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
42485         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
42486         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
42487         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
42488         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
42489         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
42490         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
42491         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
42492         (conformtest-cc-flags): Likewise.
42493         ($(conformtest-header-tests): New target.
42494         * conform/check-header-lists.sh: New file.
42495         * conform/run-conformtest.sh: Remove.
42496
42497         * conform/conformtest.pl: Allow ' and \ in values given for
42498         constants.
42499         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
42500         inclusion.
42501         [POSIX] (sys/types.h): Likewise.
42502         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
42503         inclusion.
42504         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
42505         inclusion.
42506         * conform/data/signal.h-data (SIGIO): Remove expectation.
42507         [XPG3] (SIGBUS): Do not expect.
42508         [POSIX || XPG3] (SIGPOLL): Likewise.
42509         [POSIX || XPG3] (SIGPROF): Likewise.
42510         [POSIX || XPG3] (SIGSYS): Likewise.
42511         [XPG3] (SIGTRAP): Likewise.
42512         [POSIX || XPG3] (SIGURG): Likewise.
42513         [POSIX || XPG3] (SIGVTALRM): Likewise.
42514         [POSIX || XPG3] (SIGXCPU): Likewise.
42515         [POSIX || XPG3] (SIGXFSZ): Likewise.
42516         [POSIX] (SA_SIGINFO): Expect.
42517         [XPG3] (siginfo_t): Do not expect type or contents.
42518         [POSIX] (si_pid): Do not expect element.
42519         [POSIX] (si_uid): Likewise.
42520         [POSIX] (si_addr): Likewise.
42521         [POSIX] (si_status): Likewise.
42522         [POSIX] (si_band): Likewise.
42523         [XPG4] (si_value): Likewise.
42524         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
42525         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
42526         [POSIX || XPG3] (ILL_ILLADR): Likewise.
42527         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
42528         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
42529         [POSIX || XPG3] (ILL_PRVREG): Likewise.
42530         [POSIX || XPG3] (ILL_COPROC): Likewise.
42531         [POSIX || XPG3] (ILL_BADSTK): Likewise.
42532         [POSIX || XPG3] (FPE_INTDIV): Likewise.
42533         [POSIX || XPG3] (FPE_INTOVF): Likewise.
42534         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
42535         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
42536         [POSIX || XPG3] (FPE_FLTUND): Likewise.
42537         [POSIX || XPG3] (FPE_FLTRES): Likewise.
42538         [POSIX || XPG3] (FPE_FLTINV): Likewise.
42539         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
42540         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
42541         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
42542         [POSIX || XPG3] (BUS_ADRALN): Likewise.
42543         [POSIX || XPG3] (BUS_ADRERR): Likewise.
42544         [POSIX || XPG3] (BUS_OBJERR): Likewise.
42545         [POSIX || XPG3] (CLD_EXITED): Likewise.
42546         [POSIX || XPG3] (CLD_KILLED): Likewise.
42547         [POSIX || XPG3] (CLD_DUMPED): Likewise.
42548         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
42549         [POSIX || XPG3] (CLD_STOPPED): Likewise.
42550         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
42551         [POSIX || XPG3] (POLL_IN): Likewise.
42552         [POSIX || XPG3] (POLL_OUT): Likewise.
42553         [POSIX || XPG3] (POLL_MSG): Likewise.
42554         [POSIX || XPG3] (POLL_ERR): Likewise.
42555         [POSIX || XPG3] (POLL_PRI): Likewise.
42556         [POSIX || XPG3] (POLL_HUP): Likewise.
42557         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
42558         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
42559         (SIG*): Do not allow.
42560         [XPG3] (si_*): Likewise.
42561         [XPG3] (SI_*): Likewise.
42562         [XPG3 || XPG4] (sigev_*): Likewise.
42563         [XPG3 || XPG4] (SIGEV_*): Likewise.
42564         [XPG3 || XPG4] (sival_*): Likewise.
42565         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
42566         [POSIX || XPG3] (BUS_*): Likewise.
42567         [POSIX || XPG3] (CLD_*): Likewise.
42568         [POSIX || XPG3] (FPE_*): Likewise.
42569         [POSIX || XPG3] (ILL_*): Likewise.
42570         [POSIX || XPG3] (POLL_*): Likewise.
42571         [POSIX || XPG3] (SEGV_*): Likewise.
42572         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
42573         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
42574         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
42575         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
42576         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
42577         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
42578         Specify type and value.
42579         (TVERSLEN): Likewise.
42580         (REGTYPE): Likewise.
42581         (AREGTYPE): Likewise.
42582         (LNKTYPE): Likewise.
42583         (SYMTYPE): Likewise.
42584         (CHRTYPE): Likewise.
42585         (BLKTYPE): Likewise.
42586         (DIRTYPE): Likewise.
42587         (FIFOTYPE): Likewise.
42588         (CONTTYPE): Likewise.
42589         (TSUID): Likewise.
42590         (TSGID): Likewise.
42591         (TSVTX): Likewise.
42592         (TUREAD): Likewise.
42593         (TUWRITE): Likewise.
42594         (TUEXEC): Likewise.
42595         (TGREAD): Likewise.
42596         (TGWRITE): Likewise.
42597         (TGEXEC): Likewise.
42598         (TOREAD): Likewise.
42599         (TOWRITE): Likewise.
42600         (TOEXEC): Likewise.
42601         [POSIX] (TSVTX): Expect constant.
42602
42603 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
42604
42605         * Makefile (tests): Change dependencies to ....
42606         (tests-special): ... additions to this variable.
42607         (tests): Depend on $(tests-special).
42608         * Makerules (check-abi-list): New variable.
42609         (check-abi): Depend on $(check-abi-list).
42610         [$(subdir) = elf] (tests-special): Add
42611         $(objpfx)check-abi-libc.out.
42612         [$(build-shared) = yes && subdir] (tests-special): Add
42613         $(check-abi-list).
42614         [$(build-shared) = yes && subdir] (tests): Do not depend on
42615         check-abi.
42616         * Rules (tests): Depend on $(tests-special).
42617         (xtests): Depend on $(xtests-special).
42618         * catgets/Makefile (tests): Change dependencies to ....
42619         (tests-special): ... additions to this variable.
42620         * conform/Makefile (tests): Change dependencies to ....
42621         (tests-special): ... additions to this variable.
42622         * elf/Makefile (tests): Change dependencies to ....
42623         (tests-special): ... additions to this variable.
42624         * grp/Makefile (tests): Change dependencies to ....
42625         (tests-special): ... additions to this variable.
42626         * iconv/Makefile (xtests): Change dependencies to ....
42627         (xtests-special): ... additions to this variable.
42628         * iconvdata/Makefile (tests): Change dependencies to ....
42629         (tests-special): ... additions to this variable.
42630         * intl/Makefile (tests): Change dependencies to ....
42631         (tests-special): ... additions to this variable.  Also add
42632         $(objpfx)tst-gettext.out.
42633         * io/Makefile (tests): Change dependencies to ....
42634         (tests-special): ... additions to this variable.
42635         * libio/Makefile (tests): Change dependencies to ....
42636         (tests-special): ... additions to this variable.
42637         * malloc/Makefile (tests): Change dependencies to ....
42638         (tests-special): ... additions to this variable.
42639         * misc/Makefile (tests): Change dependencies to ....
42640         (tests-special): ... additions to this variable.
42641         * nptl/Makefile (tests): Change dependencies to ....
42642         (tests-special): ... additions to this variable.
42643         * nptl_db/Makefile (tests): Change dependencies to ....
42644         (tests-special): ... additions to this variable.
42645         * posix/Makefile (tests): Change dependencies to ....
42646         (tests-special): ... additions to this variable.
42647         (xtests): Change dependencies to ....
42648         (xtests-special): ... additions to this variable.
42649         * resolv/Makefile (tests): Change dependencies to ....
42650         (tests-special): ... additions to this variable.
42651         (xtests): Change dependencies to ....
42652         (xtests-special): ... additions to this variable.
42653         * stdio-common/Makefile (tests): Change dependencies to ....
42654         (tests-special): ... additions to this variable.
42655         (do-tst-unbputc): Remove target.
42656         (do-tst-printf): Likewise.
42657         * stdlib/Makefile (tests): Change dependencies to ....
42658         (tests-special): ... additions to this variable.
42659         * string/Makefile (tests): Change dependencies to ....
42660         (tests-special): ... additions to this variable.
42661         * sysdeps/x86/Makefile (tests): Change dependencies to ....
42662         (tests-special): ... additions to this variable.
42663
42664         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
42665         whole file.
42666         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
42667         whole file.
42668         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
42669         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
42670
42671         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
42672         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
42673         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
42674         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
42675         * conform/data/libgen.h-data [XPG3]: Likewise.
42676         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
42677         * conform/data/ndbm.h-data [XPG3]: Likewise.
42678         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42679         * conform/data/netdb.h-data [XPG3]: Likewise.
42680         * conform/data/netinet/in.h-data [XPG3]: Likewise.
42681         * conform/data/poll.h-data [XPG3]: Likewise.
42682         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42683         * conform/data/strings.h-data [XPG3]: Likewise.
42684         * conform/data/stropts.h-data [XPG3]: Likewise.
42685         * conform/data/sys/mman.h-data [XPG3]: Likewise.
42686         * conform/data/sys/resource.h-data [XPG3]: Likewise.
42687         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
42688         Likewise.
42689         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
42690         * conform/data/sys/time.h-data [XPG3]: Likewise.
42691         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
42692         * conform/data/sys/uio.h-data [XPG3]: Likewise.
42693         * conform/data/sys/un.h-data [XPG3]: Likewise.
42694         * conform/data/syslog.h-data [XPG3]: Likewise.
42695         * conform/data/ucontext.h-data [XPG3]: Likewise.
42696         * conform/data/utmpx.h-data [XPG3]: Likewise.
42697         * conform/data/varargs.h-data [UNIX98]: Enable file.
42698
42699         * manual/Makefile (INSTALL_INFO): Remove variable setting.
42700
42701         * math/libm-test.inc (struct test_f_f_data): Move expected results
42702         into structure for each rounding mode.
42703         (struct test_ff_f_data): Likewise.
42704         (struct test_ff_f_data_nexttoward): Likewise.
42705         (struct test_fi_f_data): Likewise.
42706         (struct test_fl_f_data): Likewise.
42707         (struct test_if_f_data): Likewise.
42708         (struct test_fff_f_data): Likewise.
42709         (struct test_c_f_data): Likewise.
42710         (struct test_f_f1_data): Likewise.
42711         (struct test_fF_f1_data): Likewise.
42712         (struct test_ffI_f1_data): Likewise.
42713         (struct test_c_c_data): Likewise.
42714         (struct test_cc_c_data): Likewise.
42715         (struct test_f_i_data): Likewise.
42716         (struct test_ff_i_data): Likewise.
42717         (struct test_f_l_data): Likewise.
42718         (struct test_f_L_data): Likewise.
42719         (struct test_fFF_11_data): Likewise.
42720         (RM_): New macro.
42721         (RM_FE_DOWNWARD): Likewise.
42722         (RM_FE_TONEAREST): Likewise.
42723         (RM_FE_TOWARDZERO): Likewise.
42724         (RM_FE_UPWARD): Likewise.
42725         (RUN_TEST_LOOP_f_f): Update references to expected results.
42726         (RUN_TEST_LOOP_2_f): Likewise.
42727         (RUN_TEST_LOOP_fff_f): Likewise.
42728         (RUN_TEST_LOOP_c_f): Likewise.
42729         (RUN_TEST_LOOP_f_f1): Likewise.
42730         (RUN_TEST_LOOP_fF_f1): Likewise.
42731         (RUN_TEST_LOOP_fI_f1): Likewise.
42732         (RUN_TEST_LOOP_ffI_f1): Likewise.
42733         (RUN_TEST_LOOP_c_c): Likewise.
42734         (RUN_TEST_LOOP_cc_c): Likewise.
42735         (RUN_TEST_LOOP_f_i): Likewise.
42736         (RUN_TEST_LOOP_f_i_tg): Likewise.
42737         (RUN_TEST_LOOP_ff_i_tg): Likewise.
42738         (RUN_TEST_LOOP_f_b): Likewise.
42739         (RUN_TEST_LOOP_f_b_tg): Likewise.
42740         (RUN_TEST_LOOP_f_l): Likewise.
42741         (RUN_TEST_LOOP_f_L): Likewise.
42742         (RUN_TEST_LOOP_fFF_11): Likewise.
42743         * math/gen-libm-test.pl (parse_args): Output four copies of
42744         expected results for each test.
42745
42746         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
42747         (__ASSUME_UTIMES): Remove.
42748         * sysdeps/unix/sysv/linux/tile/kernel-features.h
42749         (__ASSUME_UTIMES): Likewise.
42750
42751         * math/gen-auto-libm-tests.c: Update comment on output format.
42752         (output_for_one_input_case): Generate before-rounding and
42753         after-rounding information as conditions on output flags not
42754         floating-point format.
42755         * math/auto-libm-test-out: Regenerated.
42756         * math/gen-libm-test.pl (cond_value): New function.
42757         (or_cond_value): Use cond_value.
42758         (generate_testfile): Handle conditional exceptions.
42759
42760 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
42761
42762         * math/libm-test.inc (max_valid_error): New variable.
42763         (init_max_error): Take new argument specifying whether function
42764         results are exactly determined.  Set max_valid_error and bound
42765         other variables for errors based on this argument.
42766         (set_max_error): Do not record results above max_valid_error.
42767         (check_float_internal): Only accept errors of up to 0.5ulps if
42768         also at most max_valid_error.
42769         (START): Take new argument EXACT and pass it to init_max_error.
42770         (acos_test): Update call to START.
42771         (acos_test_tonearest): Likewise.
42772         (acos_test_towardzero): Likewise.
42773         (acos_test_downward): Likewise.
42774         (acos_test_upward): Likewise.
42775         (acosh_test): Likewise.
42776         (asin_test): Likewise.
42777         (asin_test_tonearest): Likewise.
42778         (asin_test_towardzero): Likewise.
42779         (asin_test_downward): Likewise.
42780         (asin_test_upward): Likewise.
42781         (asinh_test): Likewise.
42782         (atan_test): Likewise.
42783         (atanh_test): Likewise.
42784         (atan2_test): Likewise.
42785         (cabs_test): Likewise.
42786         (cacos_test): Likewise.
42787         (cacosh_test): Likewise.
42788         (carg_test): Likewise.
42789         (casin_test): Likewise.
42790         (casinh_test): Likewise.
42791         (catan_test): Likewise.
42792         (catanh_test): Likewise.
42793         (cbrt_test): Likewise.
42794         (ccos_test): Likewise.
42795         (ccosh_test): Likewise.
42796         (ceil_test): Likewise.
42797         (cexp_test): Likewise.
42798         (cimag_test): Likewise.
42799         (clog_test): Likewise.
42800         (clog10_test): Likewise.
42801         (conj_test): Likewise.
42802         (copysign_test): Likewise.
42803         (cos_test): Likewise.
42804         (cos_test_tonearest): Likewise.
42805         (cos_test_towardzero): Likewise.
42806         (cos_test_downward): Likewise.
42807         (cos_test_upward): Likewise.
42808         (cosh_test): Likewise.
42809         (cosh_test_tonearest): Likewise.
42810         (cosh_test_towardzero): Likewise.
42811         (cosh_test_downward): Likewise.
42812         (cosh_test_upward): Likewise.
42813         (cpow_test): Likewise.
42814         (cproj_test): Likewise.
42815         (creal_test): Likewise.
42816         (csin_test): Likewise.
42817         (csinh_test): Likewise.
42818         (csqrt_test): Likewise.
42819         (ctan_test): Likewise.
42820         (ctan_test_tonearest): Likewise.
42821         (ctan_test_towardzero): Likewise.
42822         (ctan_test_downward): Likewise.
42823         (ctan_test_upward): Likewise.
42824         (ctanh_test): Likewise.
42825         (ctanh_test_tonearest): Likewise.
42826         (ctanh_test_towardzero): Likewise.
42827         (ctanh_test_downward): Likewise.
42828         (ctanh_test_upward): Likewise.
42829         (erf_test): Likewise.
42830         (erfc_test): Likewise.
42831         (exp_test): Likewise.
42832         (exp_test_tonearest): Likewise.
42833         (exp_test_towardzero): Likewise.
42834         (exp_test_downward): Likewise.
42835         (exp_test_upward): Likewise.
42836         (exp10_test): Likewise.
42837         (exp10_test_tonearest): Likewise.
42838         (exp10_test_towardzero): Likewise.
42839         (exp10_test_downward): Likewise.
42840         (exp10_test_upward): Likewise.
42841         (pow10_test): Likewise.
42842         (exp2_test): Likewise.
42843         (expm1_test): Likewise.
42844         (expm1_test_tonearest): Likewise.
42845         (expm1_test_towardzero): Likewise.
42846         (expm1_test_downward): Likewise.
42847         (expm1_test_upward): Likewise.
42848         (fabs_test): Likewise.
42849         (fdim_test): Likewise.
42850         (floor_test): Likewise.
42851         (fma_test): Likewise.
42852         (fma_test_towardzero): Likewise.
42853         (fma_test_downward): Likewise.
42854         (fma_test_upward): Likewise.
42855         (fmax_test): Likewise.
42856         (fmin_test): Likewise.
42857         (fmod_test): Likewise.
42858         (fpclassify_test): Likewise.
42859         (frexp_test): Likewise.
42860         (hypot_test): Likewise.
42861         (ilogb_test): Likewise.
42862         (isfinite_test): Likewise.
42863         (finite_test): Likewise.
42864         (isgreater_test): Likewise.
42865         (isgreaterequal_test): Likewise.
42866         (isinf_test): Likewise.
42867         (isless_test): Likewise.
42868         (islessequal_test): Likewise.
42869         (islessgreater_test): Likewise.
42870         (isnan_test): Likewise.
42871         (isnormal_test): Likewise.
42872         (issignaling_test): Likewise.
42873         (isunordered_test): Likewise.
42874         (j0_test): Likewise.
42875         (j1_test): Likewise.
42876         (jn_test): Likewise.
42877         (ldexp_test): Likewise.
42878         (lgamma_test): Likewise.
42879         (gamma_test): Likewise.
42880         (lrint_test): Likewise.
42881         (lrint_test_tonearest): Likewise.
42882         (lrint_test_towardzero): Likewise.
42883         (lrint_test_downward): Likewise.
42884         (lrint_test_upward): Likewise.
42885         (llrint_test): Likewise.
42886         (llrint_test_tonearest): Likewise.
42887         (llrint_test_towardzero): Likewise.
42888         (llrint_test_downward): Likewise.
42889         (llrint_test_upward): Likewise.
42890         (log_test): Likewise.
42891         (log10_test): Likewise.
42892         (log1p_test): Likewise.
42893         (log2_test): Likewise.
42894         (logb_test): Likewise.
42895         (logb_test_downward): Likewise.
42896         (lround_test): Likewise.
42897         (llround_test): Likewise.
42898         (modf_test): Likewise.
42899         (nearbyint_test): Likewise.
42900         (nextafter_test): Likewise.
42901         (nexttoward_test): Likewise.
42902         (pow_test): Likewise.
42903         (pow_test_tonearest): Likewise.
42904         (pow_test_towardzero): Likewise.
42905         (pow_test_downward): Likewise.
42906         (pow_test_upward): Likewise.
42907         (remainder_test): Likewise.
42908         (drem_test): Likewise.
42909         (remainder_test_tonearest): Likewise.
42910         (drem_test_tonearest): Likewise.
42911         (remainder_test_towardzero): Likewise.
42912         (drem_test_towardzero): Likewise.
42913         (remainder_test_downward): Likewise.
42914         (drem_test_downward): Likewise.
42915         (remainder_test_upward): Likewise.
42916         (drem_test_upward): Likewise.
42917         (remquo_test): Likewise.
42918         (rint_test): Likewise.
42919         (rint_test_tonearest): Likewise.
42920         (rint_test_towardzero): Likewise.
42921         (rint_test_downward): Likewise.
42922         (rint_test_upward): Likewise.
42923         (round_test): Likewise.
42924         (scalb_test): Likewise.
42925         (scalbn_test): Likewise.
42926         (scalbln_test): Likewise.
42927         (signbit_test): Likewise.
42928         (sin_test): Likewise.
42929         (sin_test_tonearest): Likewise.
42930         (sin_test_towardzero): Likewise.
42931         (sin_test_downward): Likewise.
42932         (sin_test_upward): Likewise.
42933         (sincos_test): Likewise.
42934         (sinh_test): Likewise.
42935         (sinh_test_tonearest): Likewise.
42936         (sinh_test_towardzero): Likewise.
42937         (sinh_test_downward): Likewise.
42938         (sinh_test_upward): Likewise.
42939         (sqrt_test): Likewise.
42940         (sqrt_test_tonearest): Likewise.
42941         (sqrt_test_towardzero): Likewise.
42942         (sqrt_test_downward): Likewise.
42943         (sqrt_test_upward): Likewise.
42944         (tan_test): Likewise.
42945         (tan_test_tonearest): Likewise.
42946         (tan_test_towardzero): Likewise.
42947         (tan_test_downward): Likewise.
42948         (tan_test_upward): Likewise.
42949         (tanh_test): Likewise.
42950         (tgamma_test): Likewise.
42951         (trunc_test): Likewise.
42952         (y0_test): Likewise.
42953         (y1_test): Likewise.
42954         (yn_test): Likewise.
42955         (significand_test): Likewise.
42956
42957         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
42958         individual tests in comment.
42959         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
42960         (prev_max_error): New variable.
42961         (prev_real_max_error): Likewise.
42962         (prev_imag_max_error): Likewise.
42963         (compare_ulp_data): Don't refer to test names in comment.
42964         (find_test_ulps): Remove function.
42965         (find_function_ulps): Likewise.
42966         (find_complex_function_ulps): Likewise.
42967         (init_max_error): Take function name as argument.  Look up ulps
42968         for that function.
42969         (print_ulps): Remove function.
42970         (print_max_error): Use prev_max_error instead of calling
42971         find_function_ulps.
42972         (print_complex_max_error): Use prev_real_max_error and
42973         prev_imag_max_error instead of calling find_complex_function_ulps.
42974         (check_float_internal): Take max_ulp parameter instead of calling
42975         find_test_ulps.  Don't call print_ulps.
42976         (check_float): Update call to check_float_internal.
42977         (check_complex): Update calls to check_float_internal.
42978         (START): Pass argument to init_max_error.
42979         * math/gen-libm-test.pl (%results): Don't include "kind"
42980         information.
42981         (parse_ulps): Don't handle ulps of individual tests.
42982         (print_ulps_file): Likewise.
42983         (output_ulps): Likewise.
42984         * math/README.libm-test: Update.
42985         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
42986         individual tests.
42987         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
42988         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
42989         * sysdeps/arm/libm-test-ulps: Likewise.
42990         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
42991         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
42992         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
42993         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
42994         * sysdeps/microblaze/libm-test-ulps: Likewise.
42995         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
42996         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42997         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
42998         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
42999         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
43000         * sysdeps/sh/libm-test-ulps: Likewise.
43001         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
43002         * sysdeps/tile/libm-test-ulps: Likewise.
43003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43004
43005 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
43006
43007         * math/libm-test.inc (print_complex_max_error): Check separately
43008         whether real and imaginary errors are within allowed range and
43009         pass 0 to print_complex_function_ulps instead of value within
43010         allowed range.
43011
43012 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43013
43014         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
43015         formatting.
43016         (get_handles_fopen): Likewise.
43017         (do_write_test): Likewise.
43018
43019         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
43020
43021         * libio/fileops.c (do_ftell): Use cached offset when
43022         available.
43023         * libio/iofwide.c (do_ftell_wide): Likewise.
43024         * libio/iofdopen.c (_IO_new_fdopen): Don't use
43025         _IO_file_attach.
43026         * libio/wfileops.c (_IO_fwide): Don't cache offset.
43027
43028         [BZ #16532]
43029         * libio/libioP.h (get_file_offset): New function.
43030         * libio/fileops.c (get_file_offset): Likewise.
43031         (do_ftell): Likewise.
43032         (_IO_new_file_seekoff): Split out ftell logic.
43033         * libio/wfileops.c (do_ftell_wide): Likewise.
43034         (_IO_wfile_seekoff): Split out ftell logic.
43035         * libio/tst-ftell-active-handler.c: New test case.
43036         * libio/Makefile (tests): Add it.
43037
43038 2014-03-03  Roland McGrath  <roland@hack.frob.com>
43039
43040         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
43041         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
43042
43043 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
43044
43045         [BZ #16639]
43046         * nscd/connections.c (nscd_init): Call do_exit.
43047         (start_threads): Call do_exit and notify_parent.
43048         (begin_drop_privileges): Call do_exit.
43049         (finish_drop_privileges): Likewise.
43050         * nscd/selinux.c (preserve_capabilities): Likewise.
43051         (install_real_capabilities): Likewise.
43052         (nscd_selinux_enabled): Likewise.
43053         (avc_create_thread): Likewise.
43054         (avc_alloc_lock): Likewise.
43055         (nscd_avc_init): Likewise.
43056         * nscd/nscd.c (parent_fd): New static variable.
43057         (main): Create a pipe between parent and child processes.
43058         Skip closing parent_fd.
43059         (monitor_child): New function.
43060         (do_exit): Likewise.
43061         (notify_parent): Likewise.
43062         * nscd/nscd.h (notify_parent): Likewise.
43063         (do_exit): Likewise.
43064
43065 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
43066
43067         * malloc/malloc.c (__libc_calloc): Revert last change.
43068
43069 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43070
43071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43072
43073 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
43074
43075         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
43076         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
43077         implementation.
43078         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43079         (__libc_ifunc_impl_list): Likewise.
43080         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
43081         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
43082         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
43083         * string/strrchr.c: Define STRRCHR.
43084
43085 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
43086
43087         * benchtest/bench-strtok.c (simple_strtok): Delete.
43088         (strtok_string): Use as benchmark.
43089         * string/strtok (STRTOK): New macro.
43090
43091 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
43092
43093         * manual/threads.texi: Add header and standard comments to all
43094         functions.
43095
43096         * elf/dl-lookup.c (check_match): New function.
43097         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
43098         (do_lookup_x): Remove nested function check_match. Use non-nested
43099         function check_match.
43100
43101 2014-02-28  Roland McGrath  <roland@hack.frob.com>
43102
43103         * csu/Makefile (generated, before-compile): Use += rather than =.
43104         * catgets/Makefile (generated, generated-dirs): Likewise.
43105         * debug/Makefile (generated): Likewise.
43106         * dlfcn/Makefile (generated): Likewise.
43107         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
43108         * iconvdata/Makefile (before-compile, generated): Likewise.
43109         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
43110         * libio/Makefile (generated): Likewise.
43111         * malloc/Makefile (generated): Likewise.
43112         * manual/Makefile (generated, generated-dirs): Likewise.
43113         * misc/Makefile (generated): Likewise.
43114         * posix/Makefile (generated): Likewise.
43115         * resolv/Makefile (generated): Likewise.
43116         * sunrpc/Makefile (generated, generated-dirs): Likewise.
43117         * timezone/Makefile (generated, generated-dirs): Likewise.
43118
43119         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
43120
43121 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43122
43123         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43124         power8 implementation.
43125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
43126         file: POWER8 llround ifunc implementation.
43127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
43128         (__lllround): Add POWER8 implementation.
43129         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
43130         POWER8 llround implementation.
43131
43132         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
43133         power8 implementation.
43134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
43135         file: POWER8 llrint ifunc implementation.
43136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
43137         Add POWER8 implementation.
43138         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
43139         POWER8 llrint implementation.
43140
43141         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
43142         power8 implementation.
43143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
43144         file: POWER8 finite ifunc implementation.
43145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
43146         Add POWER8 implementation.
43147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
43148         Likewise.
43149         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
43150         POWER8 finite implementation.
43151         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
43152
43153         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
43154         power8 implementation.
43155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
43156         file: POWER8 isinf ifunc implementation.
43157         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
43158         POWER8 implementation.
43159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
43160         Likewise.
43161         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
43162         isinf implementation.
43163         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
43164
43165         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
43166         (INIT_ARCH): Add hwcap2 initialization.
43167         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43168         power8 implementation.
43169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
43170         file: POWER8 isnan ifunc implementation.
43171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
43172         POWER8 implementation.
43173         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
43174         Likewise.
43175         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
43176         isnan implementation.
43177         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
43178
43179 2014-02-27  Joey Ye  <joey.ye@arm.com>
43180
43181         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
43182         (_FP_NANFRAC_Q): Set to zero.
43183
43184 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
43185
43186         [BZ #16623]
43187         * math/auto-libm-test-in: New test inputs.
43188         * math/auto-libm-test-out: Regenerate.
43189         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
43190         and DA.
43191         (__cos): Likewise.
43192         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
43193
43194 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
43195
43196         * scripts/evaluate-test.sh: Take new argument indicating whether
43197         failure is expected.
43198         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
43199         indicating whether failure is expected.
43200         * conform/Makefile (test-xfail-run-conformtest): New variable.
43201         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
43202         level.
43203         * posix/Makefile (test-xfail-annexc): New variable.
43204         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
43205
43206 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
43207
43208         * argp/Makefile: Include Makeconfig immediately after defining
43209         subdir.
43210         * assert/Makefile: Likewise.
43211         * benchtests/Makefile: Likewise.
43212         * catgets/Makefile: Likewise.
43213         * conform/Makefile: Likewise.
43214         * crypt/Makefile: Likewise.
43215         * csu/Makefile: Likewise.
43216         (all): Remove target.
43217         * ctype/Makefile: Include Makeconfig immediately after defining
43218         subdir.
43219         * debug/Makefile: Likewise.
43220         * dirent/Makefile: Likewise.
43221         * dlfcn/Makefile: Likewise.
43222         * gmon/Makefile: Likewise.
43223         * gnulib/Makefile: Likewise.
43224         * grp/Makefile: Likewise.
43225         * gshadow/Makefile: Likewise.
43226         * hesiod/Makefile: Likewise.
43227         * hurd/Makefile: Likewise.
43228         (all): Remove target.
43229         * iconvdata/Makefile: Include Makeconfig immediately after
43230         defining subdir.
43231         * inet/Makefile: Likewise.
43232         * intl/Makefile: Likewise.
43233         * io/Makefile: Likewise.
43234         * libio/Makefile: Likewise.
43235         (all): Remove target.
43236         * locale/Makefile: Include Makeconfig immediately after defining
43237         subdir.
43238         * login/Makefile: Likewise.
43239         * mach/Makefile: Likewise.
43240         (all): Remove target.
43241         * malloc/Makefile: Include Makeconfig immediately after defining
43242         subdir.
43243         (all): Remove target.
43244         * manual/Makefile: Include Makeconfig immediately after defining
43245         subdir.
43246         * math/Makefile: Likewise.
43247         * misc/Makefile: Likewise.
43248         * nis/Makefile: Likewise.
43249         * nss/Makefile: Likewise.
43250         * po/Makefile: Likewise.
43251         (all): Remove target.
43252         * posix/Makefile: Include Makeconfig immediately after defining
43253         subdir.
43254         * pwd/Makefile: Likewise.
43255         * resolv/Makefile: Likewise.
43256         * resource/Makefile: Likewise.
43257         * rt/Makefile: Likewise.
43258         * setjmp/Makefile: Likewise.
43259         * shadow/Makefile: Likewise.
43260         * signal/Makefile: Likewise.
43261         * socket/Makefile: Likewise.
43262         * soft-fp/Makefile: Likewise.
43263         * stdio-common/Makefile: Likewise.
43264         * stdlib/Makefile: Likewise.
43265         * streams/Makefile: Likewise.
43266         * string/Makefile: Likewise.
43267         * sunrpc/Makefile: Likewise.
43268         (all): Remove target.
43269         * sysvipc/Makefile: Include Makeconfig immediately after defining
43270         subdir.
43271         * termios/Makefile: Likewise.
43272         * time/Makefile: Likewise.
43273         * timezone/Makefile: Likewise.
43274         (all): Remove target.
43275         * wcsmbs/Makefile: Include Makeconfig immediately after defining
43276         subdir.
43277         * wctype/Makefile: Likewise.
43278
43279 2014-02-26  Steve Ellcey  <sellcey@mips.com>
43280
43281         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
43282         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
43283         (libc_feholdexcept_setround_mips): Ditto.
43284         (libc_feholdsetround): New.
43285         (libc_feholdsetroundf): New.
43286         (libc_feholdsetroundl): New.
43287         (libc_feupdateenv_test_mips): New.
43288         (libc_feupdateenv_test): New.
43289         (libc_feupdateenv_testf): New.
43290         (libc_feupdateenv_testl): New.
43291         (libc_feresetround): New.
43292         (libc_feresetroundf): New.
43293         (libc_feresetroundl): New.
43294         (libc_fetestexcept_mips): New.
43295         (libc_fetestexcept): New.
43296         (libc_fetestexceptf): New.
43297         (libc_fetestexceptl): New.
43298         (HAVE_RM_CTX): New.
43299         (libc_feholdexcept_setround_mips_ctx): New.
43300         (libc_feholdexcept_setround_ctx): New.
43301         (libc_feholdexcept_setroundf_ctx): New.
43302         (libc_feholdexcept_setroundl_ctx): New.
43303         (libc_fesetenv_mips_ctx): New.
43304         (libc_fesetenv_ctx): New.
43305         (libc_fesetenv_ctxf): New.
43306         (libc_fesetenv_ctxl): New.
43307         (libc_feupdateenv_mips_ctx): New.
43308         (libc_feupdateenv_ctx): New.
43309         (libc_feupdateenvf_ctx): New.
43310         (libc_feupdateenvl_ctx): New.
43311         (libc_feholdsetround_mips_ctx): New.
43312         (libc_feholdsetround_ctx): New.
43313         (libc_feholdsetroundf_ctx): New.
43314         (libc_feholdsetroundl_ctx): New.
43315         (libc_feresetround_mips_ctx): New.
43316         (libc_feresetround_ctx): New.
43317         (libc_feresetroundf_ctx): New.
43318         (libc_feresetroundl_ctx): New.
43319
43320 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
43321
43322         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
43323
43324         * manual/ipc.texi: New file.
43325         * manual/Makefile (chapters): Add ipc.
43326         * manual/job.texi: Add "Inter-Process Communication" to next.
43327         * manual/process.texi: Add "Inter-Process Communication" to prev.
43328
43329 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43330
43331         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43332
43333 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
43334
43335         * malloc/malloc.c (__libc_calloc): Simplify implementation.
43336
43337         * manual/arith.texi: Fix spaces after sentences.
43338         * manual/charset.texi: Likewise.
43339         * manual/errno.texi: Likewise.
43340         * manual/install.texi: Likewise.
43341         * manual/llio.texi: Likewise.
43342         * manual/locale.texi: Likewise.
43343         * manual/maint.texi: Likewise.
43344         * manual/math.texi: Likewise.
43345         * manual/memory.texi: Likewise.
43346         * manual/message.texi: Likewise.
43347         * manual/probes.texi: Likewise.
43348         * manual/resource.texi: Likewise.
43349         * manual/signal.texi: Likewise.
43350         * manual/socket.texi: Likewise.
43351         * manual/stdio.texi: Likewise.
43352         * manual/string.texi: Likewise.
43353         * manual/time.texi: Likewise.
43354         * manual/users.texi: Likewise.
43355
43356 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
43357
43358         [BZ #16632]
43359         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
43360         _DEFAULT_SOURCE is defined.
43361
43362 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
43363             Carlos O'Donell  <carlos@redhat.com>
43364
43365         [BZ #16613]
43366         * elf/dl-tls.c (_dl_count_modids): New function.
43367         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
43368         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
43369         audit library and increment generation counter.
43370         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
43371         * elf/tst-audit9.c: New file.
43372         * elf/tst-auditmod9a.c: New file.
43373         * elf/tst-auditmod9b.c: New file.
43374         * elf/Makefile: Add rules to build and run tst-audit9.
43375
43376 2014-02-25  Florian Weimer  <fweimer@redhat.com>
43377
43378         [BZ #15347]
43379         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
43380
43381 2014-02-25  Will Newton  <will.newton@linaro.org>
43382
43383         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
43384         (__longjmp): Restore sp and lr before restoring callee
43385         saved registers.  Add longjmp and longjmp_target
43386         SystemTap probe point.
43387         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
43388         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
43389         Define to zero to match jmpbuf layout.
43390         * sysdeps/arm/setjmp.S: Include stap-probe.h.
43391         (__sigsetjmp): Save sp and lr before saving callee
43392         saved registers.  Add setjmp SystemTap probe point.
43393
43394 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
43395
43396         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
43397
43398 2014-02-24  Andreas Schwab  <schwab@suse.de>
43399
43400         [BZ #15804]
43401         * elf/pldd.c (wait_for_ptrace_stop): New function.
43402         (main): Call it after attaching.
43403
43404 2014-02-22  Roland McGrath  <roland@hack.frob.com>
43405
43406         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
43407         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
43408         Versions files is now verboten.
43409         * hurd/Versions (libc: GLIBC_2.0):
43410         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
43411         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
43412         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
43413         * mach/Versions: Likewise.
43414
43415         * csu/Versions: Remove unused %include.
43416         * resolv/Versions: Likewise.
43417
43418 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
43419
43420         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
43421         ($(objpfx)check-local-headers.out): Likewise.
43422         ($(objpfx)begin-end-check.out): Likewise.
43423         * Makerules (check-abi-%.out): Likewise.
43424         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
43425         ($(objpfx)test2.cat): Likewise.
43426         ($(objpfx)de/libc.cat): Likewise.
43427         ($(objpfx)test-gencat.out): Likewise.
43428         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
43429         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
43430         ($(objpfx)noload-mem): Likewise.
43431         ($(objpfx)tst-pathopt.out): Likewise.
43432         ($(objpfx)tst-rtld-load-self.out): Likewise.
43433         ($(objpfx)tst-array1-cmp.out): Likewise.
43434         ($(objpfx)tst-array1-static-cmp.out): Likewise.
43435         ($(objpfx)tst-array2-cmp.out): Likewise.
43436         ($(objpfx)tst-array3-cmp.out): Likewise.
43437         ($(objpfx)tst-array4-cmp.out): Likewise.
43438         ($(objpfx)tst-array5-cmp.out): Likewise.
43439         ($(objpfx)tst-array5-static-cmp.out): Likewise.
43440         ($(objpfx)check-textrel.out): Likewise.
43441         ($(objpfx)check-execstack.out): Likewise.
43442         ($(objpfx)check-localplt.out): Likewise.
43443         ($(objpfx)order2-cmp.out): Likewise.
43444         ($(objpfx)tst-leaks1-mem): Likewise.
43445         ($(objpfx)tst-leaks1-static-mem): Likewise.
43446         ($(objpfx)tst-initorder-cmp.out): Likewise.
43447         ($(objpfx)tst-initorder2-cmp.out): Likewise.
43448         ($(objpfx)tst-unused-dep.out): Likewise.
43449         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
43450         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
43451         * iconv/Makefile (test-iconvconfig): Likewise.
43452         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
43453         ($(objpfx)iconv-test.out): Likewise.
43454         ($(objpfx)tst-tables.out): Likewise.
43455         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
43456         ($(objpfx)tst-gettext.out): Likewise.
43457         ($(objpfx)tst-translit.out): Likewise.
43458         ($(objpfx)tst-gettext2.out): Likewise.
43459         ($(objpfx)tst-gettext4.out): Likewise.
43460         ($(objpfx)tst-gettext6.out): Likewise.
43461         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
43462         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
43463         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
43464         ($(objpfx)tst-fopenloc-mem.out): Likewise.
43465         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
43466         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
43467         * posix/Makefile ($(objpfx)globtest.out): Likewise.
43468         ($(objpfx)wordexp-tst.out): Likewise.
43469         ($(objpfx)annexc.out): Likewise.
43470         ($(objpfx)tst-fnmatch-mem): Likewise.
43471         ($(objpfx)bug-regex2-mem): Likewise.
43472         ($(objpfx)bug-regex14-mem): Likewise.
43473         ($(objpfx)bug-regex21-mem): Likewise.
43474         ($(objpfx)bug-regex31-mem): Likewise.
43475         ($(objpfx)tst-vfork3-mem): Likewise.
43476         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43477         ($(objpfx)tst-pcre-mem): Likewise.
43478         ($(objpfx)tst-boost-mem): Likewise.
43479         ($(objpfx)tst-getconf.out): Likewise.
43480         ($(objpfx)bug-ga2-mem): Likewise.
43481         ($(objpfx)bug-glob2-mem): Likewise.
43482         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
43483         ($(objpfx)mtrace-tst-leaks2): Likewise.
43484         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
43485         ($(objpfx)tst-printf.out): Likewise.
43486         ($(objpfx)tst-setvbuf1.out): Likewise.
43487         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
43488         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
43489         ($(objpfx)tst-fmtmsg.out): Likewise.
43490         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
43491         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
43492
43493         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
43494         * bits/sigaction.h [__USE_MISC]: Likewise.
43495         * bits/waitstatus.h: Update #endif comments.
43496         * ctype/ctype.h: Likewise.
43497         * dirent/dirent.h: Likewise.
43498         [__USE_MISC]: Remove redundant conditionals.
43499         * grp/grp.h: Update #endif comments.
43500         [__USE_GNU]: Remove redundant conditionals.
43501         [__USE_MISC]: Likewise.
43502         * inet/netinet/in.h [__USE_GNU]: Likewise.
43503         * io/sys/stat.h [__USE_MISC]: Likewise.
43504         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
43505         * libio/bits/stdio.h: Update #endif comments.
43506         [__USE_MISC]: Remove redundant conditionals.
43507         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
43508         * libio/stdio.h: Update #endif comments.
43509         [__USE_MISC]: Remove redundant conditionals.
43510         * math/bits/math-finite.h [__USE_MISC]: Likewise.
43511         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
43512         * math/math.h: Update #else and #endif comments.
43513         [__USE_MISC]: Remove redundant conditionals.
43514         * misc/sys/uio.h: Update #endif comments.
43515         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
43516         * posix/glob.h [__USE_MISC]: Likewise.
43517         * posix/sys/types.h: Update #endif comments.
43518         [__USE_MISC]: Remove redundant conditionals.
43519         * posix/sys/wait.h: Update #endif comments.
43520         [__USE_MISC]: Remove redundant conditionals.
43521         * posix/unistd.h: Update #endif comments.
43522         [__USE_MISC]: Remove redundant conditionals.
43523         * pwd/pwd.h [__USE_GNU]: Likewise.
43524         [__USE_MISC]: Likewise.
43525         * resolv/netdb.h [__USE_GNU]: Likewise.
43526         * signal/signal.h: Update #endif comments.
43527         [__USE_MISC]: Remove redundant conditionals.
43528         * stdlib/stdlib.h: Update #else and #endif comments.
43529         [__USE_MISC]: Remove redundant conditionals.
43530         [__USE_GNU]: Likewise.
43531         * string/bits/string2.h [__USE_MISC]: Likewise.
43532         * string/string.h: Update #endif comments.
43533         [__USE_MISC]: Remove redundant conditionals.
43534         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
43535         Likewise.
43536         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
43537         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
43538         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
43539         Likewise.
43540         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
43541         Likewise.
43542         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
43543         comments.
43544         [__USE_MISC]: Remove redundant conditionals.
43545         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
43546         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
43547         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
43548         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
43549         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
43550         Likewise.
43551         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
43552         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
43553         Likewise.
43554         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
43555         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
43556         Likewise.
43557         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
43558         Likewise.
43559         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
43560         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
43561         Likewise.
43562         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
43563         Likewise.
43564         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
43565         * sysdeps/x86/bits/string.h: Update #endif comments.
43566         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
43567         conditionals.
43568         * time/sys/time.h: Update #endif comments.
43569         * time/time.h: Likewise.
43570         [__USE_MISC]: Remove redundant conditionals.
43571
43572 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
43573
43574         [BZ #16600]
43575         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
43576
43577 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
43578
43579         * Versions.def (librt): Add GLIBC_2.17.
43580
43581 2014-02-21  Adam Conrad  <adconrad@0c3.net>
43582
43583         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
43584         synonym for _SYS_AUXV_H to allow direct inclusion.
43585         * sysdeps/sparc/bits/hwcap.h: Likewise.
43586         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
43587         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
43588         * sysdeps/sparc/sysdep.h: Likewise.
43589
43590 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
43591
43592         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
43593
43594 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43595
43596         * benchtests/bench-strrchr.c: Print length instead of position.
43597
43598 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
43599
43600         [BZ #16611]
43601         * sysdeps/unix/sysv/linux/kernel-features.h
43602         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
43603         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
43604         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
43605         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
43606         Likewise.
43607         [__i386__ || __powerpc__ || __sh__ || __sparc__]
43608         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43609         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
43610         (__ASSUME_SENDMMSG): Define instead of using previous
43611         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
43612         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43613         (__ASSUME_SENDMMSG_SYSCALL): Define.
43614         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43615         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
43616         Likewise.
43617         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43618         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43619         Likewise.
43620         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43621         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43622         Likewise.
43623         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
43624         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43625         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43626         [__ASSUME_SENDMMSG]: Change conditionals to
43627         [__ASSUME_SENDMMSG_SOCKETCALL].
43628         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43629         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
43630         Define.
43631         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43632         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
43633         Likewise.
43634         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
43635         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43636         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43637         [!__ASSUME_SENDMMSG]: Change conditional to
43638         [!__ASSUME_SENDMMSG_SOCKETCALL].
43639         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43640         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43641         Define.
43642
43643         [BZ #16610]
43644         * sysdeps/unix/sysv/linux/kernel-features.h
43645         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
43646         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
43647         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
43648         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
43649         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
43650         [__i386__ || __sparc__]
43651         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43652         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
43653         (__ASSUME_RECVMMSG): Define instead of using previous
43654         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
43655         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43656         (__ASSUME_RECVMMSG_SYSCALL): Define.
43657         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43658         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43659         Likewise.
43660         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43661         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43662         Likewise.
43663         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43664         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43665         Likewise.
43666         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
43667         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43668         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43669         [__ASSUME_RECVMMSG]: Change condition to
43670         [__ASSUME_RECVMMSG_SOCKETCALL].
43671         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43672         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43673         Define.
43674         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43675         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43676         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43677         Likewise.
43678         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
43679         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43680         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43681         [!__ASSUME_RECVMMSG]: Change condition to
43682         [!__ASSUME_RECVMMSG_SOCKETCALL].
43683         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43684         (__ASSUME_RECVMMSG_SYSCALL): Define.
43685
43686         [BZ #16609]
43687         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
43688         __powerpc__ || __s390__ || __sh__ || __sparc__]
43689         (__ASSUME_SOCKETCALL): Define.
43690         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
43691         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
43692         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
43693         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
43694         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
43695         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
43696         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
43697         (__ASSUME_ACCEPT4): Define instead of using previous
43698         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
43699         __powerpc__ || __sparc__ || __s390__)] condition.
43700         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43701         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43702         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
43703         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43704         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43705         [!__ASSUME_ACCEPT4]: Change condition to
43706         [!__ASSUME_ACCEPT4_SOCKETCALL].
43707         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43708         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
43709         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
43710         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43711         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
43712         __ASSUME_ACCEPT4_SYSCALL.
43713         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
43714         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
43715         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43716         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
43717         __ASSUME_ACCEPT4_SYSCALL.
43718         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
43719         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43720         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43721         [__ASSUME_ACCEPT4]: Change condition to
43722         [__ASSUME_ACCEPT4_SOCKETCALL].
43723         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
43724         (__ASSUME_SOCKETCALL): Define.
43725         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
43726         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43727         (__ASSUME_SOCKETCALL): Define.
43728         (__ASSUME_ACCEPT4): Remove.
43729         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
43730         Define.
43731         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43732         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
43733         Likewise.
43734         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43735         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43736
43737         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
43738         macro.
43739         (HWCAP_ARM_LPAE): Likewise.
43740         (HWCAP_ARM_EVTSTRM): Likewise.
43741         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
43742         Add vpfd32, lpae and evtstrm.
43743         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
43744         Increase to 22.
43745
43746 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
43747
43748         * math/auto-libm-test-in: Add tests of clog10.
43749         * math/auto-libm-test-out: Regenerated.
43750         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
43751         * sysdeps/i386/fpu/libm-test-ulps: Update.
43752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43753
43754 2014-02-18  Andreas Schwab  <schwab@suse.de>
43755
43756         [BZ #16574]
43757         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
43758         Store non-zero if the second buffer was newly allocated.
43759         (send_dg): Likewise.
43760         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
43761         to send_vc and send_dg.
43762         (res_nsend): Pass NULL for ansp2_malloced.
43763         * resolv/res_query.c (__libc_res_nquery): Add parameter
43764         answerp2_malloced and pass it down to __libc_res_nsend.
43765         (res_nquery): Pass additional NULL to __libc_res_nquery.
43766         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
43767         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
43768         second answer buffer if answerp2_malloced was set.
43769         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
43770         (__libc_res_nquerydomain): Add parameter
43771         answerp2_malloced and pass it down to __libc_res_nquery.
43772         (res_nquerydomain): Pass additional NULL to
43773         __libc_res_nquerydomain.
43774         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
43775         additional NULL to __libc_res_nsend and __libc_res_nquery.
43776         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
43777         additional NULL to __libc_res_nsearch.
43778         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
43779         parameter of __libc_res_nsearch to check for separately allocated
43780         second buffer.
43781         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
43782         __libc_res_nquery.
43783         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
43784         additional NULL to __libc_res_nquery.
43785         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
43786         __libc_res_nsearch.
43787         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
43788         * include/resolv.h: Update prototypes of __libc_res_nquery,
43789         __libc_res_nsearch, __libc_res_nsend.
43790
43791 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
43792
43793         * math/auto-libm-test-in: Add tests of fma.
43794         * math/auto-libm-test-out: Regenerated.
43795         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
43796         (fma_towardzero_test_data): Likewise.
43797         (fma_downward_test_data): Likewise.
43798         (fma_upward_test_data): Likewise.
43799         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
43800         mpc_mode.
43801         (rounding_modes): Add values for new field.
43802         (func_calc_method): Add value mpfr_fff_f.
43803         (func_calc_desc): Add mpfr_fff_f union field.
43804         (test_function): Add field exact_args.
43805         (FUNC): Add macro argument EXACT_ARGS.
43806         (FUNC_mpfr_f_f): Update call to FUNC.
43807         (FUNC_mpfr_f_f): Likewise.
43808         (FUNC_mpfr_ff_f): Likewise.
43809         (FUNC_mpfr_if_f): Likewise.
43810         (FUNC_mpc_c_f): Likewise.
43811         (FUNC_mpc_c_c): Likewise.
43812         (test_functions): Add fma.  Update calls to FUNC.
43813         (handle_input_arg): Add argument exact_args.
43814         (add_test): Update call to handle_input_arg.
43815         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
43816         (output_for_one_input_case): Update call to calc_generic_results.
43817         Recalculate exact zero results in each rounding mode.
43818
43819         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
43820         non-negative before setting low bit.
43821         * math/auto-libm-test-in: Mark one asin test possibly having
43822         spurious underflow.
43823         * math/auto-libm-test-out: Regenerated.
43824         * sysdeps/i386/fpu/libm-test-ulps: Update.
43825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43826
43827 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
43828
43829         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
43830         * sysdeps/unix/sysv/linux/microblaze: Move directory from
43831         ports/sysdeps/unix/sysv/linux/microblaze.
43832         * README: Add missing listing for microblaze*-*-linux-gnu.
43833
43834 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
43835
43836         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
43837         duplicate code
43838
43839 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
43840
43841         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
43842         * sysdeps/unix/sysv/linux/ia64: Move directory from
43843         ports/sysdeps/unix/sysv/linux/ia64.
43844         * README: Update listing for ia64-*-linux-gnu.
43845
43846 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
43847             Joseph Myers  <joseph@codesourcery.com>
43848
43849         * Makeconfig (test-name): New variable.
43850         (evaluate-test): Likewise.
43851         * Makerules (do-test-clean): Remove .test-result files.
43852         (common-mostlyclean): Likewise.
43853         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
43854         * scripts/evaluate-test.sh: New file.
43855
43856 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
43857
43858         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
43859         separate $(objpfx)tst-fopenloc-cmp.out and
43860         $(objpfx)tst-fopenloc-mem.out targets.
43861         (tests): Update dependencies.
43862         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
43863         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
43864         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
43865         (tst-rxspencer-no-utf8-ARGS): New variable.
43866         (tst-rxspencer-no-utf8-ENV): Likewise.
43867         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
43868         instead of $(objpfx)tst-rxspencer-mem.
43869         ($(objpfx)tst-rxspencer-mem): Change target to
43870         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
43871         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
43872         * posix/tst-rxspencer-no-utf8.c: New file.
43873
43874         * elf/Makefile ($(objpfx)order.out): Remove rule.
43875         [$(run-built-tests) = yes] (tests): Depend on
43876         $(objpfx)order-cmp.out.
43877         ($(objpfx)order-cmp.out): New rule.
43878         [$(run-built-tests) = yes] (tests): Depend on
43879         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
43880         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
43881         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
43882         $(objpfx)tst-array5-static-cmp.out.
43883         ($(objpfx)tst-array1.out): Remove rule.
43884         ($(objpfx)tst-array1-cmp.out): New rule.
43885         ($(objpfx)tst-array1-static.out): Remove rule.
43886         ($(objpfx)tst-array1-static-cmp.out): New rule.
43887         ($(objpfx)tst-array2.out): Remove rule.
43888         ($(objpfx)tst-array2-cmp.out): New rule.
43889         ($(objpfx)tst-array3.out): Remove rule.
43890         ($(objpfx)tst-array3-cmp.out): New rule.
43891         ($(objpfx)tst-array4.out): Remove rule.
43892         ($(objpfx)tst-array4-cmp.out): New rule.
43893         ($(objpfx)tst-array5.out): Remove rule.
43894         ($(objpfx)tst-array5-cmp.out): New rule.
43895         ($(objpfx)tst-array5-static.out): Remove rule.
43896         ($(objpfx)tst-array5-static-cmp.out): New rule.
43897         [$(run-built-tests) = yes] (tests): Depend on
43898         $(objpfx)order2-cmp.out.
43899         ($(objpfx)order2.out): Remove rule.
43900         ($(objpfx)order2-cmp.out): New rule.
43901         ($(objpfx)tst-initorder.out): Remove rule.
43902         [$(run-built-tests) = yes] (tests): Depend on
43903         $(objpfx)tst-initorder-cmp.out.
43904         ($(objpfx)tst-initorder-cmp.out): New rule.
43905         ($(objpfx)tst-initorder2.out): Remove rule.
43906         [$(run-built-tests) = yes] (tests): Depend on
43907         $(objpfx)tst-initorder2-cmp.out.
43908         ($(objpfx)tst-initorder2-cmp.out): New rule.
43909         [$(run-built-tests) = yes] (tests): Depend on
43910         $(objpfx)tst-unused-dep-cmp.out.
43911         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
43912         ($(objpfx)tst-unused-dep-cmp.out): New rule.
43913         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
43914         on $(objpfx)tst-setvbuf1-cmp.out.
43915         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
43916         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
43917         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
43918         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
43919         ($(objpfx)tst-svc.out): Remove rule.
43920         ($(objpfx)tst-svc-cmp.out): New rule.
43921
43922 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
43923
43924         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
43925         * ctype/ctype.h [__USE_MISC]: Likewise.
43926         * dirent/dirent.h [__USE_MISC]: Likewise.
43927         * grp/grp.h [__USE_MISC]: Likewise.
43928         * io/fcntl.h [__USE_MISC]: Likewise.
43929         * io/sys/stat.h [__USE_MISC]: Likewise.
43930         * libio/stdio.h [__USE_MISC]: Likewise.
43931         * posix/unistd.h [__USE_MISC]: Likewise.
43932         * pwd/pwd.h [__USE_MISC]: Likewise.
43933         * stdlib.h [__USE_MISC]: Likewise.
43934         * string/bits/string2.h [__USE_MISC]: Likewise.
43935         * string/string.h [__USE_MISC]: Likewise.
43936         * time/time.h [__USE_MISC]: Likewise.
43937
43938 2014-02-13  Andreas Schwab  <schwab@suse.de>
43939
43940         [BZ #16574]
43941         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
43942         second answer buffer if it was separately allocated.
43943
43944 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
43945
43946         * sysdeps/mips/math-tests.h: Include <features.h>.
43947         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43948         (ROUNDING_TESTS_long_double): Do not define.
43949         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43950         (EXCEPTION_TESTS_long_double): Likewise.
43951         * sysdeps/mips/mips64/libm-test-ulps: Update.
43952
43953         * include/features.h (__USE_BSD): Remove macro definitions.
43954         (__USE_SVID): Likewise.
43955         (_BSD_SOURCE): Likewise.
43956         (_SVID_SOURCE): Likewise.
43957         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
43958         from definition of _DEFAULT_SOURCE.
43959         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
43960         [_DEFAULT_SOURCE].
43961         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
43962         * bits/mman.h [__USE_BSD]: Likewise.
43963         * bits/termios.h [__USE_BSD]: Likewise.
43964         * bits/waitstatus.h [__USE_BSD]: Likewise.
43965         * ctype/ctype.h [__USE_SVID]: Likewise.
43966         * dirent/dirent.h [__USE_BSD]: Likewise.
43967         * grp/grp.h [__USE_SVID]: Likewise.
43968         [__USE_BSD]: Likewise.
43969         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
43970         * io/fcntl.h [__USE_BSD]: Likewise.
43971         * io/ftw.h [__USE_BSD]: Likewise.
43972         * io/sys/stat.h [__USE_BSD]: Likewise.
43973         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
43974         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
43975         * libio/stdio.h [__USE_SVID]: Likewise.
43976         [__USE_BSD]: Likewise.
43977         * math/math.h [__USE_SVID]: Likewise.
43978         [__USE_BSD]: Likewise.
43979         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
43980         * misc/bits/syslog.h [__USE_BSD]: Likewise.
43981         * misc/search.h [__USE_SVID]: Likewise.
43982         * misc/sys/mman.h [__USE_BSD]: Likewise.
43983         * misc/sys/syslog.h [__USE_BSD]: Likewise.
43984         * misc/sys/uio.h [__USE_BSD]: Likewise.
43985         * posix/bits/unistd.h [__USE_BSD]: Likewise.
43986         * posix/glob.h [__USE_BSD]: Likewise.
43987         * posix/regex.h [__USE_BSD]: Likewise.
43988         * posix/sys/types.h [__USE_BSD]: Likewise.
43989         [__USE_SVID]: Likewise.
43990         * posix/sys/utsname.h [__USE_SVID]: Likewise.
43991         * posix/sys/wait.h [__USE_BSD]: Likewise.
43992         [__USE_SVID]: Likewise.
43993         * posix/unistd.h [__USE_BSD]: Likewise.
43994         [__USE_SVID]: Likewise.
43995         * pwd/pwd.h [__USE_SVID]: Likewise.
43996         * resolv/netdb.h [__USE_BSD]: Likewise.
43997         * setjmp/setjmp.h [__USE_BSD]: Likewise.
43998         * signal/signal.h [__USE_BSD]: Likewise.
43999         [__USE_SVID]: Likewise.
44000         * socket/sys/socket.h [__USE_BSD]: Likewise.
44001         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
44002         * stdlib/stdlib.h [__USE_BSD]: Likewise.
44003         [__USE_SVID]: Likewise.
44004         * string/bits/string2.h [__USE_BSD]: Likewise.
44005         [__USE_SVID]: Likewise.
44006         * string/bits/string3.h [__USE_BSD]: Likewise.
44007         * string/endian.h [__USE_BSD]: Likewise.
44008         * string/string.h [__USE_SVID]: Likewise.
44009         [__USE_BSD]: Likewise.
44010         * string/strings.h [__USE_BSD]: Likewise.
44011         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
44012         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
44013         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
44014         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
44015         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
44016         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
44017         Likewise.
44018         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
44019         Likewise.
44020         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
44021         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
44022         Likewise.
44023         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
44024         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
44025         Likewise.
44026         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
44027         Likewise.
44028         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
44029         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
44030         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
44031         Likewise.
44032         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
44033         Likewise.
44034         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
44035         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
44036         * termios/termios.h [__USE_BSD]: Likewise.
44037         * time/sys/time.h [__USE_BSD]: Likewise.
44038         * time/time.h [__USE_BSD]: Likewise.
44039         [__USE_SVID]: Likewise.
44040
44041         * Makefile (subdir_targets): Remove subdir_lint.out.
44042
44043         * stdio-common/Makefile (do-tst-unbputc): Remove target.
44044         (do-tst-printf): Likewise.
44045         (tests): Depend directly on $(objpfx)tst-unbputc.out and
44046         $(objpfx)tst-printf.out.
44047
44048         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
44049
44050         * Makerules (check-abi-%): Change target to
44051         $(objpfx)check-abi-%.out.
44052         (check-abi target): Update dependencies.
44053         (check-abi-pattern variable): Redirect output of diff to $@.
44054         (check-abi variable): Likewise.
44055         * elf/Makefile (check-abi): Update dependencies.
44056
44057         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
44058         unused.
44059         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
44060         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
44061         subnormal range.
44062         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
44063         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
44064         value has largest subnormal exponent.
44065         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
44066         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
44067         * sysdeps/aarch64/soft-fp/sfp-machine.h
44068         (_FP_TININESS_AFTER_ROUNDING): New macro.
44069         * sysdeps/alpha/soft-fp/sfp-machine.h
44070         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44071         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44072         Likewise.
44073         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
44074         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44075         * sysdeps/mips/soft-fp/sfp-machine.h
44076         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44077         * sysdeps/powerpc/soft-fp/sfp-machine.h
44078         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44079         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44080         Likewise.
44081         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
44082         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44083         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
44084         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44085         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44086         Likewise.
44087
44088 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
44089
44090         [BZ #16545]
44091         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
44092         model 1.
44093
44094 2014-02-12  Richard Henderson  <rth@redhat.com>
44095
44096         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
44097         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
44098         * sysdeps/unix/sysv/linux/alpha: Move directory from
44099         ports/sysdeps/unix/sysv/linux/alpha.
44100         * README: Update listing for alpha-*-linux-gnu.
44101
44102 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
44103
44104         * include/features.h: Update comment documenting feature test
44105         macros.
44106         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
44107         _DEFAULT_SOURCE.
44108         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
44109         (_SVID_SOURCE): Likewise.
44110         (_DEFAULT_SOURCE): Update description of default features.
44111         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
44112         with _GNU_SOURCE.
44113         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
44114         (S_ISVTX): Likewise.
44115         * manual/math.texi (Mathematical Constants): Likewise.
44116         * manual/signal.texi (Interrupted Primitives): Likewise.
44117         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
44118         * math/test-matherr.c (_SVID_SOURCE): Do not define.
44119         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
44120         Don't refer to _SVID_SOURCE in warning text.
44121
44122         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44123
44124         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
44125         already defined.
44126         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
44127         * sysdeps/mips/dl-lookup.c: Remove.
44128         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
44129
44130 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
44131
44132         [BZ #16447]
44133         * math/auto-libm-test-in: Add testcase for expl.
44134         * math/auto-libm-test-out: Regenerate.
44135         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
44136         calculation of unsafe.
44137         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
44138
44139 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44140
44141         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
44142         * sysdeps/unix/sysv/linux/aarch64: Move directory from
44143         ports/sysdeps/unix/sysv/linux/aarch64.
44144         * README: Update listing for aarch64*-*-linux-gnu.
44145
44146 2014-02-11  Will Newton  <will.newton@linaro.org>
44147
44148         * manual/probes.texi (Mathematical Function Probes): Use
44149         "triggered" instead of "hit".
44150
44151         * manual/probes.texi (Internal Probes): Add documentation
44152         of setjmp, longjmp and longjmp_target probes.
44153
44154         * include/stap-probe.h: Add comment about probe argument
44155         format.
44156
44157         * malloc/mtrace.c (attribute_hidden): Remove unused macro
44158         definition.  (tr_where, tr_freehook, tr_mallochook,
44159         tr_reallochook, tr_memalignhook): Use ANSI protoype.
44160
44161 2014-02-11  David S. Miller  <davem@davemloft.net>
44162
44163         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
44164         processing int_tests.
44165
44166 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
44167
44168         * sysdeps/mips: Move directory from ports/sysdeps/mips.
44169         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
44170         * sysdeps/unix/sysv/linux/mips: Move directory from
44171         ports/sysdeps/unix/sysv/linux/mips.
44172         * README: Update listing for mips-*-linux-gnu and
44173         mips64-*-linux-gnu.
44174
44175 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
44176
44177         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
44178         * sysdeps/unix/sysv/linux/m68k: Move directory from
44179         ports/sysdeps/unix/sysv/linux/m68k.
44180         * README: Update listing for m68k-*-linux-gnu.
44181
44182 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
44183
44184         * sysdeps/tile: Move directory from ports/sysdeps/tile.
44185         * sysdeps/unix/sysv/linux/generic: Move directory from
44186         ports/sysdeps/unix/sysv/linux/generic.
44187         * sysdeps/unix/sysv/linux/tile: Move directory from
44188         ports/sysdeps/unix/sysv/linux/tile.
44189         * README: Update listing for tile*-*-linux-gnu.
44190
44191 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
44192
44193         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
44194         __builtin_expect.
44195         * benchtests/bench-memmem.c (simple_memmem): Likewise.
44196         * catgets/open_catalog.c (__open_catalog): Likewise.
44197         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
44198         * debug/confstr_chk.c: Likewise.
44199         * debug/fread_chk.c (__fread_chk): Likewise.
44200         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
44201         * debug/getgroups_chk.c: Likewise.
44202         * debug/mbsnrtowcs_chk.c: Likewise.
44203         * debug/mbsrtowcs_chk.c: Likewise.
44204         * debug/mbstowcs_chk.c: Likewise.
44205         * debug/memcpy_chk.c: Likewise.
44206         * debug/memmove_chk.c: Likewise.
44207         * debug/mempcpy_chk.c: Likewise.
44208         * debug/memset_chk.c: Likewise.
44209         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
44210         * debug/strcat_chk.c (__strcat_chk): Likewise.
44211         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
44212         * debug/strncat_chk.c (__strncat_chk): Likewise.
44213         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
44214         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
44215         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
44216         * debug/wcpncpy_chk.c: Likewise.
44217         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
44218         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
44219         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
44220         * debug/wcsncpy_chk.c: Likewise.
44221         * debug/wcsnrtombs_chk.c: Likewise.
44222         * debug/wcsrtombs_chk.c: Likewise.
44223         * debug/wcstombs_chk.c: Likewise.
44224         * debug/wmemcpy_chk.c: Likewise.
44225         * debug/wmemmove_chk.c: Likewise.
44226         * debug/wmempcpy_chk.c: Likewise.
44227         * debug/wmemset_chk.c: Likewise.
44228         * dirent/scandirat.c (SCANDIRAT): Likewise.
44229         * dlfcn/dladdr1.c (dladdr1): Likewise.
44230         * dlfcn/dladdr.c (dladdr): Likewise.
44231         * dlfcn/dlclose.c (dlclose_doit): Likewise.
44232         * dlfcn/dlerror.c (__dlerror): Likewise.
44233         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
44234         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
44235         * dlfcn/dlopen.c (dlopen_doit): Likewise.
44236         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
44237         * dlfcn/dlsym.c (dlsym_doit): Likewise.
44238         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
44239         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
44240         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
44241         Likewise.
44242         * elf/dl-conflict.c: Likewise.
44243         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
44244         * elf/dl-dst.h: Likewise.
44245         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
44246         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
44247         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
44248         * elf/dl-init.c (call_init, _dl_init): Likewise.
44249         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
44250         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
44251         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
44252         Likewise.
44253         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
44254         Likewise.
44255         * elf/dl-minimal.c (__libc_memalign): Likewise.
44256         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
44257         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
44258         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
44259         * elf/dl-sym.c (do_sym): Likewise.
44260         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
44261         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
44262         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
44263         * elf/dl-writev.h (_dl_writev): Likewise.
44264         * elf/ldconfig.c (search_dir): Likewise.
44265         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
44266         (dl_main): Likewise.
44267         * elf/setup-vdso.h (setup_vdso): Likewise.
44268         * grp/compat-initgroups.c (compat_call): Likewise.
44269         * grp/fgetgrent.c (fgetgrent): Likewise.
44270         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
44271         * grp/putgrent.c (putgrent): Likewise.
44272         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
44273         Likewise.
44274         * hurd/hurdinit.c: Likewise.
44275         * iconvdata/8bit-gap.c (struct): Likewise.
44276         * iconvdata/ansi_x3.110.c : Likewise.
44277         * iconvdata/big5.c : Likewise.
44278         * iconvdata/big5hkscs.c : Likewise.
44279         * iconvdata/cp1255.c: Likewise.
44280         * iconvdata/cp1258.c : Likewise.
44281         * iconvdata/cp932.c : Likewise.
44282         * iconvdata/euc-cn.c: Likewise.
44283         * iconvdata/euc-jisx0213.c : Likewise.
44284         * iconvdata/euc-jp.c: Likewise.
44285         * iconvdata/euc-jp-ms.c : Likewise.
44286         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
44287         * iconvdata/gb18030.c : Likewise.
44288         * iconvdata/gbbig5.c (const): Likewise.
44289         * iconvdata/gbgbk.c: Likewise.
44290         * iconvdata/gbk.c : Likewise.
44291         * iconvdata/ibm1364.c : Likewise.
44292         * iconvdata/ibm930.c : Likewise.
44293         * iconvdata/ibm932.c: Likewise.
44294         * iconvdata/ibm933.c : Likewise.
44295         * iconvdata/ibm935.c : Likewise.
44296         * iconvdata/ibm937.c : Likewise.
44297         * iconvdata/ibm939.c : Likewise.
44298         * iconvdata/ibm943.c: Likewise.
44299         * iconvdata/iso_11548-1.c: Likewise.
44300         * iconvdata/iso-2022-cn.c : Likewise.
44301         * iconvdata/iso-2022-cn-ext.c : Likewise.
44302         * iconvdata/iso-2022-jp-3.c: Likewise.
44303         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
44304         * iconvdata/iso-2022-kr.c : Likewise.
44305         * iconvdata/iso646.c (gconv_end): Likewise.
44306         * iconvdata/iso_6937-2.c : Likewise.
44307         * iconvdata/iso_6937.c : Likewise.
44308         * iconvdata/iso8859-1.c: Likewise.
44309         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
44310         * iconvdata/shift_jisx0213.c : Likewise.
44311         * iconvdata/sjis.c : Likewise.
44312         * iconvdata/t.61.c : Likewise.
44313         * iconvdata/tcvn5712-1.c : Likewise.
44314         * iconvdata/tscii.c: Likewise.
44315         * iconvdata/uhc.c : Likewise.
44316         * iconvdata/unicode.c (gconv_end): Likewise.
44317         * iconvdata/utf-16.c (gconv_end): Likewise.
44318         * iconvdata/utf-32.c (gconv_end): Likewise.
44319         * iconvdata/utf-7.c (base64): Likewise.
44320         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
44321         * iconv/gconv_close.c (__gconv_close): Likewise.
44322         * iconv/gconv_open.c (__gconv_open): Likewise.
44323         * iconv/gconv_simple.c (internal_ucs4_loop_single)
44324         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
44325         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
44326         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
44327         (ucs4le_internal_loop_single): Likewise.
44328         * iconv/iconv.c (iconv): Likewise.
44329         * iconv/iconv_close.c: Likewise.
44330         * iconv/loop.c (SINGLE): Likewise.
44331         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
44332         * include/atomic.h: Likewise.
44333         * inet/inet6_option.c (option_alloc): Likewise.
44334         * intl/bindtextdom.c (set_binding_values): Likewise.
44335         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
44336         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
44337         * intl/localealias.c (read_alias_file): Likewise.
44338         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
44339         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
44340         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
44341         * libio/fmemopen.c (fmemopen): Likewise.
44342         * libio/iofgets.c (_IO_fgets): Likewise.
44343         * libio/iofgets_u.c (fgets_unlocked): Likewise.
44344         * libio/iofgetws.c (fgetws): Likewise.
44345         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
44346         * libio/iogetdelim.c (_IO_getdelim): Likewise.
44347         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
44348         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
44349         * locale/findlocale.c (_nl_find_locale): Likewise.
44350         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
44351         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
44352         Likewise.
44353         * locale/setlocale.c (setlocale): Likewise.
44354         * login/programs/pt_chown.c (main): Likewise.
44355         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
44356         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
44357         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
44358         (mmap, mmap64, mremap, munmap): Likewise.
44359         * math/e_exp2l.c: Likewise.
44360         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
44361         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
44362         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
44363         * math/s_catan.c (__catan): Likewise.
44364         * math/s_catanf.c (__catanf): Likewise.
44365         * math/s_catanh.c (__catanh): Likewise.
44366         * math/s_catanhf.c (__catanhf): Likewise.
44367         * math/s_catanhl.c (__catanhl): Likewise.
44368         * math/s_catanl.c (__catanl): Likewise.
44369         * math/s_ccosh.c (__ccosh): Likewise.
44370         * math/s_ccoshf.c (__ccoshf): Likewise.
44371         * math/s_ccoshl.c (__ccoshl): Likewise.
44372         * math/s_cexp.c (__cexp): Likewise.
44373         * math/s_cexpf.c (__cexpf): Likewise.
44374         * math/s_cexpl.c (__cexpl): Likewise.
44375         * math/s_clog10.c (__clog10): Likewise.
44376         * math/s_clog10f.c (__clog10f): Likewise.
44377         * math/s_clog10l.c (__clog10l): Likewise.
44378         * math/s_clog.c (__clog): Likewise.
44379         * math/s_clogf.c (__clogf): Likewise.
44380         * math/s_clogl.c (__clogl): Likewise.
44381         * math/s_csin.c (__csin): Likewise.
44382         * math/s_csinf.c (__csinf): Likewise.
44383         * math/s_csinh.c (__csinh): Likewise.
44384         * math/s_csinhf.c (__csinhf): Likewise.
44385         * math/s_csinhl.c (__csinhl): Likewise.
44386         * math/s_csinl.c (__csinl): Likewise.
44387         * math/s_csqrt.c (__csqrt): Likewise.
44388         * math/s_csqrtf.c (__csqrtf): Likewise.
44389         * math/s_csqrtl.c (__csqrtl): Likewise.
44390         * math/s_ctan.c (__ctan): Likewise.
44391         * math/s_ctanf.c (__ctanf): Likewise.
44392         * math/s_ctanh.c (__ctanh): Likewise.
44393         * math/s_ctanhf.c (__ctanhf): Likewise.
44394         * math/s_ctanhl.c (__ctanhl): Likewise.
44395         * math/s_ctanl.c (__ctanl): Likewise.
44396         * math/w_pow.c: Likewise.
44397         * math/w_powf.c: Likewise.
44398         * math/w_powl.c: Likewise.
44399         * math/w_scalb.c (sysv_scalb): Likewise.
44400         * math/w_scalbf.c (sysv_scalbf): Likewise.
44401         * math/w_scalbl.c (sysv_scalbl): Likewise.
44402         * misc/error.c (error_tail): Likewise.
44403         * misc/pselect.c (__pselect): Likewise.
44404         * nis/nis_callback.c (__nis_create_callback): Likewise.
44405         * nis/nis_call.c (__nisfind_server): Likewise.
44406         * nis/nis_creategroup.c (nis_creategroup): Likewise.
44407         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
44408         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
44409         * nis/nis_getservlist.c (nis_getservlist): Likewise.
44410         * nis/nis_lookup.c (nis_lookup): Likewise.
44411         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
44412         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
44413         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
44414         * nis/nis_xdr.c (xdr_endpoint): Likewise.
44415         * nis/nss_compat/compat-grp.c (getgrent_next_file)
44416         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
44417         * nis/nss_compat/compat-initgroups.c (add_group)
44418         (internal_getgrent_r): Likewise.
44419         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
44420         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
44421         * nis/nss_compat/compat-spwd.c (getspent_next_file)
44422         (internal_getspnam_r): Likewise.
44423         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
44424         (_nss_nis_getaliasbyname_r): Likewise.
44425         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
44426         (_nss_nis_getntohost_r): Likewise.
44427         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
44428         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
44429         (_nss_nis_getgrgid_r): Likewise.
44430         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
44431         (internal_nis_gethostent_r, internal_gethostbyname2_r)
44432         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
44433         (_nss_nis_gethostbyname4_r): Likewise.
44434         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
44435         (initgroups_netid): Likewise.
44436         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
44437         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
44438         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
44439         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
44440         (_nss_nis_getprotobynumber_r): Likewise.
44441         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
44442         (_nss_nis_getsecretkey): Likewise.
44443         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
44444         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
44445         (_nss_nis_getpwuid_r): Likewise.
44446         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
44447         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
44448         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
44449         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
44450         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
44451         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
44452         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
44453         Likewise.
44454         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
44455         (_nss_nisplus_getntohost_r): Likewise.
44456         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
44457         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
44458         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
44459         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
44460         Likewise.
44461         * nis/nss_nisplus/nisplus-initgroups.c
44462         (_nss_nisplus_initgroups_dyn): Likewise.
44463         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
44464         (_nss_nisplus_getnetbyaddr_r): Likewise.
44465         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
44466         (_nss_nisplus_getprotobynumber_r): Likewise.
44467         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
44468         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
44469         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
44470         Likewise.
44471         * nis/nss_nisplus/nisplus-service.c
44472         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
44473         (_nss_nisplus_getservbyport_r): Likewise.
44474         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
44475         (_nss_nisplus_getspnam_r): Likewise.
44476         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
44477         Likewise.
44478         * nscd/aicache.c (addhstaiX): Likewise.
44479         * nscd/cache.c (cache_search, prune_cache): Likewise.
44480         * nscd/connections.c (register_traced_file, send_ro_fd)
44481         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
44482         (main_loop_epoll): Likewise.
44483         * nscd/grpcache.c (addgrbyX): Likewise.
44484         * nscd/hstcache.c (addhstbyX): Likewise.
44485         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44486         * nscd/mem.c (gc, mempool_alloc): Likewise.
44487         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
44488         (addinnetgrX): Likewise.
44489         * nscd/nscd-client.h (__nscd_acquire_maplock)
44490         (__nscd_drop_map_ref): Likewise.
44491         * nscd/nscd_getai.c (__nscd_getai): Likewise.
44492         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44493         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
44494         Likewise.
44495         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
44496         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44497         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
44498         (__nscd_get_map_ref): Likewise.
44499         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
44500         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
44501         Likewise.
44502         * nscd/pwdcache.c (addpwbyX): Likewise.
44503         * nscd/selinux.c (preserve_capabilities): Likewise.
44504         * nscd/servicescache.c (addservbyX): Likewise.
44505         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
44506         * posix/fnmatch.c (fnmatch): Likewise.
44507         * posix/getopt.c (_getopt_internal_r): Likewise.
44508         * posix/glob.c (glob, glob_in_dir): Likewise.
44509         * posix/wordexp.c (exec_comm_child): Likewise.
44510         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
44511         (getanswer_r, gaih_getanswer_slice): Likewise.
44512         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
44513         * resolv/res_init.c: Likewise.
44514         * resolv/res_mkquery.c (res_nmkquery): Likewise.
44515         * resolv/res_query.c (__libc_res_nquery): Likewise.
44516         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
44517         Likewise.
44518         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
44519         * stdio-common/perror.c (perror): Likewise.
44520         * stdio-common/printf_fp.c (___printf_fp): Likewise.
44521         * stdio-common/tmpnam.c (tmpnam): Likewise.
44522         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
44523         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
44524         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
44525         Likewise.
44526         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
44527         * stdlib/putenv.c (putenv): Likewise.
44528         * stdlib/setenv.c (__add_to_environ): Likewise.
44529         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
44530         * stdlib/strtol_l.c (INTERNAL): Likewise.
44531         * string/memmem.c (memmem): Likewise.
44532         * string/strerror.c (strerror): Likewise.
44533         * string/strnlen.c (__strnlen): Likewise.
44534         * string/test-memmem.c (simple_memmem): Likewise.
44535         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
44536         * sunrpc/pm_getport.c (__get_socket): Likewise.
44537         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
44538         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
44539         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
44540         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
44541         Likewise.
44542         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
44543         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
44544         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
44545         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
44546         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
44547         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
44548         Likewise.
44549         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
44550         Likewise.
44551         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
44552         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
44553         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
44554         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
44555         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
44556         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
44557         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
44558         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
44559         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
44560         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
44561         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
44562         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
44563         Likewise.
44564         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
44565         Likewise.
44566         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
44567         Likewise.
44568         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
44569         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
44570         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
44571         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
44572         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
44573         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
44574         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
44575         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
44576         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
44577         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
44578         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
44579         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44580         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
44581         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
44582         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44583         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
44584         Likewise.
44585         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
44586         Likewise.
44587         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
44588         Likewise.
44589         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
44590         Likewise.
44591         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44592         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44593         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
44594         Likewise.
44595         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
44596         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
44597         * sysdeps/posix/opendir.c (__opendirat): Likewise.
44598         * sysdeps/posix/sleep.c: Likewise.
44599         * sysdeps/posix/tempname.c: Likewise.
44600         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
44601         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
44602         Likewise.
44603         * sysdeps/powerpc/powerpc32/dl-machine.h
44604         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
44605         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
44607         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
44608         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
44609         Likewise.
44610         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
44611         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
44612         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44613         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
44614         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44615         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
44616         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
44617         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
44618         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44619         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
44620         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
44621         (elf_machine_lazy_rel): Likewise.
44622         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44623         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
44624         (elf_machine_lazy_rel): Likewise.
44625         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
44626         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
44627         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
44628         * sysdeps/unix/grantpt.c (grantpt): Likewise.
44629         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
44630         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
44631         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
44632         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44633         Likewise.
44634         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
44635         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
44636         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
44637         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
44638         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
44639         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
44640         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
44641         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
44642         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
44643         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
44644         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
44645         Likewise.
44646         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
44647         (__posix_fallocate64_l64): Likewise.
44648         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
44649         (posix_fallocate): Likewise.
44650         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
44651         Likewise.
44652         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44653         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
44654         (getifaddrs_internal): Likewise.
44655         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
44656         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
44657         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
44658         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
44659         * sysdeps/unix/sysv/linux/posix_fallocate64.c
44660         (__posix_fallocate64_l64): Likewise.
44661         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
44662         Likewise.
44663         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
44664         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
44665         (__get_clockfreq): Likewise.
44666         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
44667         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
44668         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
44669         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44670         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44671         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
44672         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
44673         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
44674         Likewise.
44675         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
44676         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
44677         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
44678         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
44679         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44680         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
44681         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
44682         Likewise.
44683         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
44684         (posix_fallocate): Likewise.
44685         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44686         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
44687         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
44688         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
44689         (elf_machine_rela, elf_machine_rela_relative)
44690         (elf_machine_lazy_rel): Likewise.
44691         * time/asctime.c (asctime_internal): Likewise.
44692         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
44693         * time/tzset.c (__tzset_parse_tz): Likewise.
44694         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44695         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44696         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
44697         * wcsmbs/wcsmbsload.h: Likewise.
44698
44699         [BZ #15894]
44700         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
44701
44702         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
44703         (arena_get2): Remove THREAD_STATS conditionals.
44704         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
44705         (__malloc_stats, int): Likewise.
44706
44707 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
44708
44709         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
44710         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
44711
44712         * manual/setjmp.texi: Fix typos/grammar errors.
44713
44714         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
44715         Only return early when n is <= 0.  Delete unused return statement.
44716
44717         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
44718         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
44719         * debug/tst-longjmp_chk3.c: New file.
44720
44721         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
44722         (test_main): Replace code with set_fortify_handler call.
44723         * debug/test-strcpy_chk.c: Likewise.
44724         * debug/tst-chk1.c: Likewise.
44725         * debug/tst-longjmp_chk.c: Likewise.
44726         * test-skeleton.c: Include fcntl.h & paths.h
44727         (set_fortify_handler): Define.
44728
44729         * debug/tst-longjmp_chk.c: Add header comment and include
44730         ../test-skeleton.c.
44731         (do_test): Mark static.
44732         (TEST_FUNCTION): Define.
44733
44734         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
44735         (IP_PMTUDISC_INTERFACE): Likewise.
44736         (IP_MULTICAST_IF): Likewise.
44737         (IP_MULTICAST_TTL): Likewise.
44738         (IP_MULTICAST_LOOP): Likewise.
44739         (IP_ADD_MEMBERSHIP): Likewise.
44740         (IP_DROP_MEMBERSHIP): Likewise.
44741         (IP_UNBLOCK_SOURCE): Likewise.
44742         (IP_BLOCK_SOURCE): Likewise.
44743         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
44744         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
44745         (IP_MSFILTER): Likewise.
44746         (MCAST_JOIN_GROUP): Likewise.
44747         (MCAST_BLOCK_SOURCE): Likewise.
44748         (MCAST_UNBLOCK_SOURCE): Likewise.
44749         (MCAST_LEAVE_GROUP): Likewise.
44750         (MCAST_JOIN_SOURCE_GROUP): Likewise.
44751         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44752         (MCAST_MSFILTER): Likewise.
44753         (IP_MULTICAST_ALL): Likewise.
44754         (IP_UNICAST_IF): Likewise.
44755
44756         * timezone/Makefile: Delete $(have-ksh) check.
44757         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
44758         * timezone/tzselect.ksh: Add +x mode bits.
44759
44760         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
44761         (ANON_INODE_FS_MAGIC): Likewise.
44762         (BDEVFS_MAGIC): Likewise.
44763         (BINFMTFS_MAGIC): Likewise.
44764         (BTRFS_TEST_MAGIC): Likewise.
44765         (CRAMFS_MAGIC_WEND): Likewise.
44766         (DEBUGFS_MAGIC): Likewise.
44767         (ECRYPTFS_SUPER_MAGIC): Likewise.
44768         (EXT3_SUPER_MAGIC): Likewise.
44769         (EXT4_SUPER_MAGIC): Likewise.
44770         (FUTEXFS_SUPER_MAGIC): Likewise.
44771         (HOSTFS_SUPER_MAGIC): Likewise.
44772         (HUGETLBFS_MAGIC): Likewise.
44773         (MINIX3_SUPER_MAGIC): Likewise.
44774         (MTD_INODE_FS_MAGIC): Likewise.
44775         (NILFS_SUPER_MAGIC): Likewise.
44776         (OPENPROM_SUPER_MAGIC): Likewise.
44777         (PIPEFS_MAGIC): Likewise.
44778         (PSTOREFS_MAGIC): Likewise.
44779         (QNX6_SUPER_MAGIC): Likewise.
44780         (RAMFS_MAGIC): Likewise.
44781         (REISERFS_SUPER_MAGIC_STRING): Likewise.
44782         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
44783         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
44784         (SECURITYFS_MAGIC): Likewise.
44785         (SELINUX_MAGIC): Likewise.
44786         (SMACK_MAGIC): Likewise.
44787         (SOCKFS_MAGIC): Likewise.
44788         (SQUASHFS_MAGIC): Likewise.
44789         (STACK_END_MAGIC): Likewise.
44790         (TMPFS_MAGIC): Likewise.
44791         (USBDEVICE_SUPER_MAGIC): Likewise.
44792         (V9FS_MAGIC): Likewise.
44793         (XENFS_SUPER_MAGIC): Likewise.
44794         (CRAMFS_MAGIC): Fix typo in comment.
44795         (EXT2_SUPER_MAGIC): Update comment.
44796         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
44797
44798 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
44799
44800         * sysdeps/arm: Move directory from ports/sysdeps/arm.
44801         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
44802         * sysdeps/unix/sysv/linux/arm: Move directory from
44803         ports/sysdeps/unix/sysv/linux/arm.
44804         * README: Update listing for arm-*-linux-gnueabi.
44805
44806         * README: Remove mention of am33.
44807
44808 2014-02-07  Roland McGrath  <roland@hack.frob.com>
44809
44810         * bits/sigset.h (__sigemptyset): Use a statement expression rather
44811         than the comma operator, to avoid "rhs of comma has no effect"
44812         compiler warnings.
44813         (__sigfillset, __sigandset, __sigorset): Likewise.
44814         * include/signal.h (__sigemptyset): Likewise.
44815         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
44816
44817 2014-02-07  Allan McRae  <allan@archlinux.org>
44818
44819         * version.h (RELEASE): Set to "development".
44820         (VERSION): Set to "2.19.90"
44821         * NEWS: Add 2.20 section.
44822
44823 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
44824
44825         [BZ #16529]
44826         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
44827
44828 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44829
44830         * manual/contrib.texi: Update entry for Carlos O'Donell,
44831         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
44832
44833 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
44834
44835         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
44836
44837         * sysdeps/unix/sysv/linux/kernel-features.h
44838         [__LINUX_KERNEL_VERSION >= 0x020621]
44839         (__ASSUME_PROC_PID_TASK_COMM): Define.
44840
44841 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44842
44843         [BZ #16398]
44844         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
44845         conversion when destination buffer does not have enough space.
44846         * libio/tst-ftell-partial-wide.c: New test case.
44847         * libio/Makefile (tests): Add tst-ftell-partial-wide.
44848
44849         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
44850         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
44851         Leonard and Allan McRae.
44852
44853 2014-02-04  David S. Miller  <davem@davemloft.net>
44854
44855         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
44856         32-bit.
44857
44858 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44859
44860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44861         New file
44862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44863         New file
44864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44865         New file.
44866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44867         New file.
44868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44869         New file.
44870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44871         New file.
44872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44873         New file.
44874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44875         New file.
44876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44877         New file.
44878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44879         New file.
44880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44881         New file.
44882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44883         New file.
44884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44885         New file.
44886
44887 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44888
44889         * nptl/shlib-versions: Change powerpc*le start to 2.17.
44890         * shlib-versions: Likewise.
44891
44892 2014-02-04  Roland McGrath  <roland@hack.frob.com>
44893             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44894
44895         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
44896         (abilist-pattern): New variable, set to %-le.abilist.
44897
44898         * Makerules (abilist-pattern): New variable.
44899         (vpath): Use $(abilist-pattern) in place of %.abilist.
44900         (check-abi-% pattern rule): Likewise.
44901         (check-abi, update-abi): Likewise.
44902
44903 2014-02-04  Eric Wong  <normalperson@yhbt.net>
44904
44905         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44906
44907 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
44908
44909         * manual/startup.texi: Add next, previous, and top entries for
44910         the `Program Arguments' and `Environment Variables' nodes.
44911
44912 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
44913
44914         * manual/macros.texi: Add comments before MTASC-safety macros.
44915
44916         * manual/users.texi: Document MTASC-safety properties.
44917
44918         * manual/threads.texi (pthread_key_create, pthread_key_delete)
44919         (pthread_getspecific, pthread_setspecific): Format with
44920         @deftypefun, and add @safety note.
44921         * manual/signal.texi: Move comments that analyze the above
44922         functions to their home place.
44923
44924 2014-02-03  Allan McRae  <allan@archlinux.org>
44925
44926         * po/sl.po: Update Slovenian translation from translation project.
44927
44928 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
44929
44930         * manual/time.texi (timegm): Add missing blank after @c.
44931         Reported by Joseph Myers <joseph@codesourcery.com>.
44932
44933 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
44934
44935         * manual/check-safety.sh: New.
44936         * manual/Makefile ($(objpfx)stamp-summary): Run it.
44937
44938         * manual/terminal.texi: Document MTASC-safety properties.
44939
44940         * manual/filesys.texi: Document MTASC-safety properties.
44941
44942         * manual/errno.texi: Document MTASC-safety properties.
44943
44944         * manual/intro.texi: Document safety identifiers and
44945         conditionals.
44946
44947         * manual/string.texi (wcstok): Fix prototype.
44948         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
44949
44950         * manual/time.texi: Document MTASC-safety properties.
44951
44952         * manual/string.texi: Document MTASC-safety properties.
44953
44954         * manual/threads.texi: Document MTASC-safety properties.
44955
44956         * manual/stdio.texi: Document MTASC-safety properties.
44957
44958         * manual/syslog.texi: Document MTASC-safety properties.
44959
44960         * manual/sysinfo.texi: Document MTASC-safety properties.
44961
44962         * manual/startup.texi: Document MTASC-safety properties.
44963
44964         * manual/socket.texi: Document MTASC-safety properties.
44965
44966         * manual/signal.texi: Document MTASC-safety properties.
44967
44968 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
44969
44970         * manual/setjmp.texi: Document MTASC-safety properties.
44971
44972         * manual/search.texi: Document MTASC-safety properties.
44973
44974         * manual/resource.texi: Document MTASC-safety properties.
44975
44976         * manual/process.texi: Document MTASC-safety properties.
44977
44978         * manual/platform.texi: Document MTASC-safety properties.
44979
44980         * manual/pipe.texi: Document MTASC-safety properties.
44981
44982         * manual/pattern.texi: Document MTASC-safety properties.
44983
44984         * manual/message.texi: Document MTASC-safety properties.
44985
44986         [BZ #12751]
44987         * manual/memory.texi: Document MTASC-safety properties.
44988
44989         * manual/math.texi: Document MTASC-safety properties.
44990
44991         * manual/locale.texi: Document MTASC-safety properties.
44992
44993         * manual/llio.texi: Document MTASC-safety properties.
44994
44995         * manual/libdl.texi: New.
44996
44997         * manual/lang.texi: Document MTASC-safety properties.
44998
44999         * manual/job.texi: Document MTASC-safety properties.
45000
45001         * manual/getopt.texi: Document MTASC-safety properties.
45002
45003         * manual/ctype.texi: Document MTASC-safety properties.
45004
45005 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
45006
45007         [BZ #16046]
45008         * csu/libc-tls.c (static_map): Remove variable.
45009         (__libc_setup_tls): Use main executable's link map for TLS data.
45010         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
45011         casing for LM_ID_BASE and GL(dl_nns).
45012         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
45013         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
45014         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
45015         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
45016         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
45017         member.
45018         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
45019         l_phnum members.
45020
45021 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
45022
45023         * manual/debug.texi: Document MTASC-safety properties.
45024
45025 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
45026
45027         [BZ #16510]
45028         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
45029         of __x86_64__ when disabling x87 inline functions.
45030
45031 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
45032
45033         * manual/charset.texi: Document MTASC-safety properties.
45034
45035         * manual/crypt.texi: Document MTASC-safety properties.
45036
45037         * manual/conf.texi: Document MTASC-safety properties.
45038
45039         * manual/arith.texi: Document MTASC-safety properties.
45040
45041         * manual/argp.texi: Document MTASC-safety properties.
45042
45043         * manual/macros.texi: Introduce macros to document multi
45044         thread, asynchronous signal and asynchronous cancellation
45045         safety properties.
45046         * manual/intro.texi: Introduce the properties themselves.
45047
45048 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45049
45050         * sysdeps/sh/sh4/Makefile: New file.
45051
45052 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
45053
45054         * math/gen-libm-test.pl ($srcdir): New variable.
45055         ($auto_input): Use it.
45056
45057 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45058
45059         [BZ #16506]
45060         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
45061         access beyond array bounds when parsing netgroups file.
45062
45063         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
45064         the old buffer before realloc.
45065
45066 2014-01-27  Allan McRae  <allan@archlinux.org>
45067
45068         * po/fr.po: Update French translation from translation project.
45069
45070 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45071
45072         * sysdeps/sh/libm-test-ulps: Regenerate.
45073
45074 2014-01-24  David S. Miller  <davem@davemloft.net>
45075
45076         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
45077
45078 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45079
45080         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
45081         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
45082
45083 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45084
45085         [BZ #16474]
45086         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
45087         string pointers after reallocation.
45088
45089 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45090
45091         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
45092         __SH4A__ instead of __SH_FPU_ANY__.
45093
45094 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45095
45096         * sysdeps/sh/fpu_control.h: New file.
45097         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
45098         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
45099         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
45100         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
45101         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
45102         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
45103         * sysdeps/sh/sys/ucontext.h: Remove.
45104         * sysdeps/sh/sys: Remove directory.
45105
45106 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45107
45108         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
45109         s390/sys/ucontext.h.
45110         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
45111         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
45112
45113 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
45114
45115         [BZ #15605]
45116         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
45117
45118 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45119
45120         [BZ#16431]
45121         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
45122         Adjust the vDSO correctly for internal calls.
45123         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
45124
45125 2014-01-20  Allan McRae  <allan@archlinux.org>
45126
45127         * po/ca.po: Update Catalan translation from translation project.
45128
45129 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
45130
45131         * sysdeps/s390/sotruss-lib.c: New file.
45132
45133 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45134
45135         [BZ#16430]
45136         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
45137         (__GI___gettimeofday): Alias for a different internal symbol to avoid
45138         local calls issues by not having a PLT stub required for IFUNC calls.
45139         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
45140
45141 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
45142
45143         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
45144         * math/test-fpucw-static.c: Likewise.
45145
45146 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45147
45148         [BZ #16453]
45149         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
45150
45151 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45152
45153         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
45154         implementation for powerpc.
45155
45156 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
45157
45158         [BZ #14782]
45159         * sysdeps/posix/system.c (__libc_system): Do not enable
45160         asynchronous cancellation.
45161
45162 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45163
45164         [BZ #16427]
45165         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
45166         handling only for numbers special also in the IEEE case.
45167
45168 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45169
45170         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45171
45172 2014-01-11  Allan McRae  <allan@archlinux.org>
45173
45174         * po/bg.po: Update Bulgarian translation from translation project.
45175
45176         * po/de.po: Update German translation from translation project.
45177
45178 2014-01-10  Roland McGrath  <roland@hack.frob.com>
45179
45180         * sysdeps/generic/gcc-compat.h: New file.
45181
45182 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45183
45184         * benchtests/asin-inputs: Correct slow inputs.
45185         * benchtests/acos-inputs: Likewise.
45186
45187 2014-01-10  Allan McRae  <allan@archlinux.org>
45188
45189         * po:sv.po: Update Swedish translation from translation project.
45190
45191         * po/vi.po: Update Vietnamese translation from translation project.
45192
45193         * po/eo.po: Update Esperanto translation from translation project.
45194
45195         * po/cs.po: Update Czech translation from translation project.
45196
45197         * po/nl.po: Update Dutch translation from translation project.
45198
45199         * po/pl.po: Update Polish translation from translation project.
45200
45201         * po/ru.po: Update Russian translation from translation project.
45202
45203         * po/uk.po: Update Ukrainian translation from translation project.
45204
45205 2014-01-08  Brooks Moses  <bmoses@google.com>
45206
45207         * elf/dl-load.c: Fix comment typo.
45208
45209 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
45210
45211         * po/header.pot: Rename to...
45212         * po/pot.header: ... this.
45213         * po/Makefile: Use pot.header.
45214
45215 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
45216             Maxim Kuvyrkov  <maxim@kugelworks.com>
45217
45218         [BZ #16394]
45219         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
45220         SRC and DEST against LEN.
45221
45222 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45223
45224         [BZ #16414]
45225         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
45226         implementation.
45227         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
45228
45229 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45230
45231         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45232
45233 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
45234
45235         [BZ #16408]
45236         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
45237         for large positive arguments.
45238
45239 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
45240
45241         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45242
45243         * math/auto-libm-test-in: Mark various tests with
45244         xfail-rounding:ldbl-128ibm.
45245         * math/auto-libm-test-out: Regenerated.
45246
45247         [BZ #16407]
45248         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
45249         Increase overflow threshold.
45250
45251 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
45252
45253         [BZ #14286]
45254         * stdio-common/vfprintf.c: Check for integer overflow.
45255
45256 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45257
45258         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
45259         the first argument and return value of __tls_get_addr_internal.
45260
45261 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45262
45263         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
45264         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
45265
45266 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45267
45268         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
45269         * sysdeps/s390/rtld-global-offsets.sym: New file.
45270         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
45271         GLIBC_2.19 symbol.
45272         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
45273         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
45274         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
45275         ... this.
45276         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
45277         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
45278         ... this.
45279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45280         Regenerate.
45281         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45282         Regenerate.
45283         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
45284         halfs of GPRs for high_gprs contexts.
45285         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
45286         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
45287         field.
45288         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
45289         uc_flags field.
45290         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
45291         64 bit versions:
45292         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
45293         for high GPRs (uc_high_gprs) and for future extensions
45294         (__reserved).
45295         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
45296         for future extensions (__reserved).
45297         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
45298         64 bit versions:
45299         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
45300         SC_HIGHGPRS offset definition.
45301         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
45302         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
45303
45304         * Versions.def: Add GLIBC_2.19 for libpthread.
45305         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
45306         siglongjmp for libpthread with GLIBC_2.19 symver.
45307         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
45308         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
45309         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
45310         * sysdeps/s390/__longjmp.c: New file.
45311         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
45312         * sysdeps/s390/longjmp.c: New file.
45313         * sysdeps/s390/setjmp.S: New file.
45314         * sysdeps/s390/sigjmp.S: New file.
45315         * sysdeps/s390/v1-longjmp.c: New file.
45316         * sysdeps/s390/v1-setjmp.h: New file.
45317         * sysdeps/s390/v1-sigjmp.c: New file.
45318         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
45319         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
45320         GLIBC_2.19 version.
45321         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
45322         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
45323         versioned symbols for ____longjmp_chk.
45324         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
45325         Likewise.
45326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45327         Regenerate.
45328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45329         Regenerate.
45330         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45331         Regenerate.
45332         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45333         Regenerate.
45334         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
45335         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
45336         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
45337         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
45338         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
45339         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
45340         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
45341         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
45342         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
45343         * sysdeps/s390/rtld-__longjmp.c: New file.
45344         * sysdeps/s390/rtld-setjmp.S: New file.
45345
45346 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
45347
45348         [BZ #16400]
45349         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45350         Return -__logl (x) for small positive arguments without evaluating
45351         a polynomial.
45352
45353 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
45354
45355         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
45356         Rename to ...
45357         (__ptrace_peeksiginfo_args): ... this.
45358         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45359         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45360         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45361
45362 2014-01-06  Allan McRae  <allan@archlinux.org>
45363
45364         * inet/netinet/in.h: Fix typo in comment.
45365
45366 2014-01-05  Andreas Jaeger  <aj@suse.de>
45367
45368         * sysdeps/i386/fpu/libm-test-ulps: Update.
45369
45370 2014-01-05  Allan McRae  <allan@archlinux.org>
45371
45372         * po/libc.pot: Regenerated.
45373
45374         * malloc/memusagestat.c: Fix gettext call formatting.
45375
45376 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
45377
45378         * nscd/nscd.c: Improve usage() output.
45379
45380 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
45381
45382         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
45383         * sysdeps/unix/sysv/linux/configure: Regenerated.
45384         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
45385         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
45386
45387 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45388
45389         [BZ #16390]
45390         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
45391         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
45392
45393 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45394
45395         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
45396         extra tokens at end of #undef directive.
45397         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
45398         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
45399         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
45400
45401 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45402
45403         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45404
45405         * math/auto-libm-test-in: Mark various tests with
45406         xfail-rounding:ldbl-128ibm.
45407         * math/auto-libm-test-out: Regenerated.
45408
45409 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
45410
45411         [BZ #16386]
45412         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
45413         numbers with subnormal high part when calculating exponent.
45414
45415         [BZ #16385]
45416         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
45417         fabs.
45418
45419         [BZ #16384]
45420         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
45421         M_LN2l.
45422         (__ieee754_acoshl): Use __log1pl not __log1p.
45423
45424 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
45425
45426         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
45427         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
45428         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
45429         (grow_heap, heap_trim, _int_new_arena, get_free_list)
45430         (reused_arena, arena_get2): Convert to GNU style.
45431         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
45432         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
45433         (memalign_check, __malloc_set_state): Likewise.
45434         * malloc/mallocbug.c (main): Likewise.
45435         * malloc/malloc.c (__malloc_assert, malloc_init_state)
45436         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
45437         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
45438         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
45439         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
45440         (__posix_memalign, malloc_info): Likewise.
45441         * malloc/malloc.h: Likewise.
45442         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
45443         (mallochook, memalignhook, reallochook, mabort): Likewise.
45444         * malloc/mcheck.h: Likewise.
45445         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
45446         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
45447         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
45448         * malloc/morecore.c (__default_morecore): Likewise.
45449         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
45450         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
45451         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
45452         (print_and_abort): Likewise.
45453         * malloc/obstack.h: Likewise.
45454         * malloc/set-freeres.c (__libc_freeres): Likewise.
45455         * malloc/tst-mallocstate.c (main): Likewise.
45456         * malloc/tst-mtrace.c (main): Likewise.
45457         * malloc/tst-realloc.c (do_test): Likewise.
45458
45459 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45460
45461         [BZ #16366]
45462         * nscd/netgroupcache.c (do_notfound): New function.
45463         (addgetnetgrentX): Use it.
45464
45465         [BZ # 16365]
45466         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
45467         NSS_STATUS_NOTFOUND.
45468
45469 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
45470
45471         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45473
45474 2014-01-01  Allan McRae  <allan@archlinux.org>
45475
45476         * scripts/update-copyrights: Update configure input file suffix.
45477
45478         * NEWS: Update copyright year.
45479         * catgets/gencat.c: Likewise.
45480         * csu/version.c: Likewise.
45481         * debug/catchsegv.sh: Likewise.
45482         * debug/pcprofiledump.c: Likewise.
45483         * debug/xtrace.sh: Likewise.
45484         * elf/ldconfig.c: Likewise.
45485         * elf/ldd.bash.in: Likewise.
45486         * elf/pldd.c: Likewise.
45487         * elf/sotruss.ksh: Likewise.
45488         * elf/sprof.c: Likewise.
45489         * iconv/iconv_prog.c: Likewise.
45490         * iconv/iconvconfig.c: Likewise.
45491         * locale/programs/locale.c: Likewise.
45492         * locale/programs/localedef.c: Likewise.
45493         * login/programs/pt_chown.c: Likewise.
45494         * malloc/memusage.sh: Likewise.
45495         * malloc/memusagestat.c: Likewise.
45496         * malloc/mtrace.pl: Likewise.
45497         * manual/libc.texinfo: Likewise.
45498         * nscd/nscd.c: Likewise.
45499         * nss/getent.c: Likewise.
45500         * nss/makedb.c: Likewise.
45501         * posix/getconf.c: Likewise.
45502         * scripts/test-installation.pl: Likewise.
45503
45504         * All files with FSF copyright notices: Update copyright dates
45505         using scripts/update-copyrights.
45506         * intl/plural.c: Regenerated.
45507         * locale/programs/charmap-kw.h: Likewise.
45508         * locale/programs/locfile-kw.h: Likewise.
45509
45510 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
45511
45512         * sysdeps/unix/sysv/linux/configure: Regenerated.
45513         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
45514         the linux/fanotify.h header.
45515         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
45516         HAVE_LINUX_FANOTIFY_H is defined.
45517
45518 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
45519
45520         * benchtests/cos-inputs: New inputs.
45521         * benchtests/sin-inputs: Likewise.
45522
45523         * benchtests/atan-inputs: New inputs. Fix name of multiple
45524         precision fallback inputs.
45525
45526         * benchtests/atanh-inputs: New inputs.
45527         * benchtests/tanh-inputs: Likewise.
45528
45529         * benchtests/acosh-inputs: New inputs.
45530         * benchtests/asinh-inputs: Likewise.
45531
45532         * benchtests/cosh-inputs: New inputs.
45533         * benchtests/sinh-inputs: Likewise.
45534
45535         * benchtests/acos-inputs: Add more inputs.
45536         * benchtests/asin-inputs: Likewise.
45537
45538 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
45539
45540         [BZ #16375]
45541         * manual/arith.texi: Fix spelling.
45542         * manual/charset.texi: Likewise.
45543         * manual/errno.texi: Likewise.
45544         * manual/filesys.texi: Likewise.
45545         * manual/lang.texi: Likewise.
45546         * manual/llio.texi: Likewise.
45547         * manual/locale.texi: Likewise.
45548         * manual/message.texi: Likewise.
45549         * manual/resource.texi: Likewise.
45550         * manual/search.texi: Likewise.
45551         * manual/setjmp.texi: Likewise.
45552         * manual/stdio.texi: Likewise.
45553         * manual/string.texi: Likewise.
45554         * manual/sysinfo.texi: Likewise.
45555         * manual/time.texi: Likewise.
45556
45557 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
45558
45559         * po/sl.po: New file.
45560
45561 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
45562
45563         * .gitignore: Add core/.gdbinit/.gdb_history.
45564
45565 2013-12-27  Allan McRae  <allan@archlinux.org>
45566
45567         [BZ #16369]
45568         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
45569         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
45570
45571 2013-12-24  Brooks Moses  <bmoses@google.com>
45572
45573         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
45574         all compilers that claim C++98 compliance, not just GCC.
45575         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
45576         Likewise.
45577
45578 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45579
45580         * NEWS: Restore accidentally deleted bug-fix entries.
45581
45582 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45583             Ondřej Bílka  <neleai@seznam.cz>
45584
45585         [BZ #15073]
45586         * malloc/malloc.c (_int_free): Perform sanity check only if we
45587         have_lock.
45588
45589 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
45590
45591         [BZ #12986]
45592         * manual/stdio.texi (String Input Conversions): Clarify that character
45593         classes are not supported.
45594
45595 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45596
45597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45598
45599 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
45600
45601         [BZ #16337]
45602         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45603         Calculate results for small negative arguments directly rather
45604         than using reflection formula with special underflow handling.
45605
45606         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
45607         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
45608         sysdeps/unix/bsd/bsd4.4/syscalls.list.
45609         (fchflags): Likewise.
45610         (revoke): Likewise.
45611         (setlogin): Likewise.
45612         (sigaltstack): Likewise.
45613         (wait4): Likewise.
45614         (sigblock): Remove.
45615         (sigsetmask): Likewise.
45616         (wait3): Likewise.
45617         (waitpid): Likewise.
45618         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
45619         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
45620         file.
45621         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
45622         * sysdeps/unix/bsd/Makefile: ... here.
45623         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
45624         * sysdeps/unix/bsd/Versions: ... here.
45625         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
45626         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
45627         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
45628         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
45629         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
45630         * sysdeps/unix/bsd/sigblock.c: ... here.
45631         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
45632         * sysdeps/unix/bsd/sigsetmask.c: ... here.
45633         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
45634         * sysdeps/unix/bsd/sigvec.c: ... here.
45635         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
45636         * sysdeps/unix/bsd/tcdrain.c: ... here.
45637         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
45638         * sysdeps/unix/bsd/tcgetattr.c: ... here.
45639         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
45640         * sysdeps/unix/bsd/tcsetattr.c: ... here.
45641         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
45642         * sysdeps/unix/bsd/wait.c: ... here.
45643         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
45644         * sysdeps/unix/bsd/wait3.c: ... here.
45645         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
45646         * sysdeps/unix/bsd/waitpid.c: ... here.
45647
45648 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
45649
45650         [BZ #16356]
45651         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
45652         round-to-nearest for [!USE_AS_EXPM1L].
45653         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
45654         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
45655         more tests of exp and exp10.  Expect some exp10 tests to miss
45656         exceptions or fail in directed rounding modes.
45657         * math/auto-libm-test-out: Regenerated.
45658         * math/libm-test.inc (exp10_tonearest_test_data): New array.
45659         (exp10_test_tonearest): New function.
45660         (exp10_towardzero_test_data): New array.
45661         (exp10_test_towardzero): New function.
45662         (exp10_downward_test_data): New array.
45663         (exp10_test_downward): New function.
45664         (exp10_upward_test_data): New array.
45665         (exp10_test_upward): New function.
45666         (main): Call the new functions.
45667         * sysdeps/i386/fpu/libm-test-ulps: Update.
45668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45669
45670 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
45671
45672         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
45673         asinh, atan, atan2, atanh, cbrt, cos and cosh.
45674         * math/auto-libm-test-out: Regenerated.
45675         * math/libm-test.inc (acosh_test_data): Add more tests.
45676         (atanh_test_data): Likewise.
45677         (ceil_test_data): Likewise.
45678         (copysign_test_data): Likewise.
45679         * sysdeps/i386/fpu/libm-test-ulps: Update.
45680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45681
45682         * timezone/checktab.awk: Update from tzcode 2013i.
45683         * timezone/private.h: Likewise.
45684         * timezone/scheck.c: Likewise.
45685         * timezone/tzfile.h: Likewise.
45686         * timezone/tzselect.ksh: Likewise.
45687         * timezone/zdump.c: Likewise.
45688         * timezone/zic.c: Likewise.
45689
45690         * math/auto-libm-test-in: Add tests of cpow.
45691         * math/auto-libm-test-out: Regenerated.
45692         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
45693         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45694         mpc_cc_c.
45695         (func_calc_desc): Add mpc_cc_c union field.
45696         (test_functions): Add cpow.
45697         (special_fill_2pi): New function.
45698         (special_real_inputs): Add 2pi.
45699         (calc_generic_results): Handle mpc_cc_c.
45700         * sysdeps/i386/fpu/libm-test-ulps: Update.
45701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45702
45703         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
45704         csqrt, ctan and ctanh.
45705         * math/auto-libm-test-out: Regenerated.
45706         * math/libm-test.inc (TEST_COND_x86_64): New macro.
45707         (TEST_COND_x86): Likewise.
45708         (ccos_test_data): Use AUTO_TESTS_c_c.
45709         (ccosh_test_data): Likewise.
45710         (cexp_test_data): Likewise.
45711         (clog_test_data): Likewise.
45712         (csqrt_test_data): Likewise.
45713         (ctan_test_data): Likewise.
45714         (ctan_tonearest_test_data): Likewise.
45715         (ctan_towardzero_test_data): Likewise.
45716         (ctan_downward_test_data): Likewise.
45717         (ctan_upward_test_data): Likewise.
45718         (ctanh_test_data): Likewise.
45719         (ctanh_tonearest_test_data): Likewise.
45720         (ctanh_towardzero_test_data): Likewise.
45721         (ctanh_downward_test_data): Likewise.
45722         (ctanh_upward_test_data): Likewise.
45723         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45724         mpc_c_c.
45725         (func_calc_desc): Add mpc_c_c union field.
45726         (FUNC_mpc_c_c): New macro.
45727         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
45728         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
45729         ctanh.
45730         (special_fill_min_subnorm_p120): New function.
45731         (special_real_inputs): Add min_subnorm_p120.
45732         (calc_generic_results): Handle mpc_c_c.
45733         * sysdeps/i386/fpu/libm-test-ulps: Update.
45734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45735
45736 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45737
45738         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
45739         (do_sin_slow): New functions.
45740         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
45741         (cslow2, csloww1, csloww2): Use the new functions.
45742
45743         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
45744         Use M to change sign of result instead of X.  Assume X is
45745         positive.
45746         (csloww1): Likewise.
45747         (__sin): Adjust.
45748         (__cos): Adjust.
45749
45750         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
45751         arguments A and DA.
45752         (__sin): Adjust.
45753         (__cos): Likewise.
45754
45755         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
45756         (__cos): Likewise.
45757         (sloww1): Don't adjust sign of DX.
45758         (csloww1): Likewise.
45759         (sloww2): Use X directly and don't adjust sign of DX.
45760         (csloww2): Likewise.
45761
45762 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45763
45764         * math/auto-libm-test-in: Add tests of cabs and carg.
45765         * math/auto-libm-test-out: Regenerated.
45766         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
45767         (carg_test_data): Likewise.
45768         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45769         mpc_c_f.
45770         (func_calc_desc): Add mpc_c_f union field.
45771         (test_functions): Add cabs and carg.
45772         (calc_generic_results): Handle mpc_c_f.
45773
45774         * sysdeps/powerpc/powerpc32/libgcc-compat.S
45775         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
45776         as a macro and a compat symbol.
45777         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
45778         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
45779         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
45780         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
45781         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
45782         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
45783         not use .hidden.
45784         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
45785         Likewise.
45786         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
45787         Likewise.
45788         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
45789         Likewise.
45790         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
45791         Likewise.
45792         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
45793         Likewise.
45794         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
45795         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
45796         from GLIBC_2.3.2.
45797
45798 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45799
45800         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45801
45802 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45803
45804         * manual/texinfo.tex: Update to version 2013-11-26.10 with
45805         trailing whitespace removed.
45806         * scripts/config.guess: Update to version 2013-11-29.
45807         * scripts/config.sub: Update to version 2013-10-01.
45808
45809         * math/auto-libm-test-in: Add tests of sincos.
45810         * math/auto-libm-test-out: Regenerated.
45811         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
45812         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45813         mpfr_f_11.
45814         (func_calc_desc): Add mpfr_f_11 union field.
45815         (test_functions): Add sincos.
45816         (calc_generic_results): Handle mpfr_f_11.
45817         * sysdeps/i386/fpu/libm-test-ulps: Update.
45818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45819
45820 2013-12-19  Andreas Schwab  <schwab@suse.de>
45821
45822         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
45823         CALL_MCOUNT.
45824         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
45825         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
45826         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
45827
45828 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45829
45830         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
45831         * sysdeps/i386/fpu/libm-test-ulps: Update.
45832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45833
45834         [BZ #16293]
45835         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
45836         round-to-nearest mode when using frndint.
45837         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
45838         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
45839         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
45840         Likewise.
45841         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
45842         sinh test to fail.
45843         * math/auto-libm-test-out: Regenerated.
45844         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
45845         (TEST_COND_x86): Likewise.
45846         (expm1_tonearest_test_data): New array.
45847         (expm1_test_tonearest): New function.
45848         (expm1_towardzero_test_data): New array.
45849         (expm1_test_towardzero): New function.
45850         (expm1_downward_test_data): New array.
45851         (expm1_test_downward): New function.
45852         (expm1_upward_test_data): New array.
45853         (expm1_test_upward): New function.
45854         (main): Run the new test functions.
45855         * sysdeps/i386/fpu/libm-test-ulps: Update.
45856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45857
45858         * include/features.h: Update comment documenting feature test
45859         macros.  Mention _DEFAULT_SOURCE in comment.
45860         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
45861         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
45862         _BSD_SOURCE and _SVID_SOURCE.
45863         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
45864         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
45865         !_SVID_SOURCE]: Likewise.
45866         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45867         (__USE_POSIX_IMPLICITLY): Define.
45868         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45869         (_POSIX_SOURCE): Undefine and redefine.
45870         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45871         (_POSIX_C_SOURCE): Likewise.
45872         * manual/creature.texi (_DEFAULT_SOURCE): Document.
45873         (Feature Test Macros): Update documentation of default features.
45874
45875 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45876
45877         * benchtests/Makefile: Add bench-strtok.
45878         * benchtests/bench-strtok.c: New file: strtok benchtest.
45879
45880 2013-12-19  Allan McRae  <allan@archlinux.org>
45881
45882         * manual/install.texi: Suppress menu for plain text output.
45883         * INSTALL: Regenerated.
45884
45885 2013-12-18  Brooks Moses  <bmoses@google.com>
45886
45887         [BZ #15846]
45888         * misc/getauxval.c: Include errno.h.
45889         (__getauxval): Set errno to ENOENT if the requested type is not
45890         found.
45891         * misc/sys/auxv.h (getauxval): Document that it may set errno;
45892         don't declare with __attribute_const__.
45893         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
45894         * manual/startup.texi: Document that getauxval sets errno.
45895
45896 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45897
45898         * math/auto-libm-test-in: Add tests of jn and yn.
45899         * math/auto-libm-test-out: Regenerated.
45900         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
45901         (yn_test_data): Likewise.
45902         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45903         mpfr_if_f.
45904         (func_calc_desc): Add mpfr_if_f union field.
45905         (FUNC_mpfr_if_f): New macro.
45906         (test_functions): Add jn and yn.
45907         (calc_generic_results): Assert type of second input for
45908         mpfr_ff_f.  Handle mpfr_if_f.
45909         (output_for_one_input_case): Disable all checking for arguments
45910         fitting floating-point types in case of an integer argument.
45911         * sysdeps/i386/fpu/libm-test-ulps: Update.
45912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45913
45914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
45915         Don't expect fegetround reference in libm.so.
45916
45917 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45918
45919         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
45920         $(config-cflags-nofma).
45921
45922 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45923
45924         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
45925         * math/auto-libm-test-out: Regenerated.
45926
45927         [BZ #16338]
45928         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
45929         to determine exponent and adjust argument to have exponent of -1.
45930         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
45931         log2.
45932         * math/auto-libm-test-out: Regenerated.
45933         * sysdeps/i386/fpu/libm-test-ulps: Update.
45934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45935
45936 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
45937
45938         * manual/probes.texi: Remove cases when per-thread arenas are
45939         disabled.
45940
45941 2013-12-18  Andreas Schwab  <schwab@suse.de>
45942
45943         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
45944         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
45945         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
45946         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
45947         * sysdeps/i386/i686/multiarch/Makefile: Update.
45948         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
45949
45950 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45951
45952         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
45953         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
45954
45955 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
45956
45957         [BZ #15968]
45958         Support TZ transition times < 00:00:00.
45959         This is needed for version-3 tz-format files; it supports time
45960         stamps past 2037 for America/Godthab (the only entry in the tz
45961         database for which this change is relevant).
45962         * manual/time.texi (TZ Variable): Document transition times
45963         from -167:59:59 through -00:00:01.
45964         * time/tzset.c (tz_rule): Time of day is now signed.
45965         (__tzset_parse_tz): Parse negative time of day.
45966
45967         Document TZ transition times >= 25:00:00.
45968         * manual/time.texi (TZ Variable): Document transition times from
45969         25:00:00 through 167:59:59.  These are already supported, and this
45970         support will help with version-3 tz-format files.
45971
45972         * manual/time.texi (TZ Variable): Modernize North America example
45973         to reflect current (i.e., 2007-and-later) daylight saving rules.
45974
45975         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
45976
45977 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45978
45979         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
45980         * sysdeps/unix/bsd/bits/stat.h: Likewise.
45981         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
45982         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
45983         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
45984         * sysdeps/unix/bsd/bsdstat.h: Likewise.
45985         * sysdeps/unix/bsd/clock.c: Likewise.
45986         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
45987         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
45988         * sysdeps/unix/bsd/init-posix.c: Likewise.
45989         * sysdeps/unix/bsd/poll.c: Likewise.
45990         * sysdeps/unix/bsd/ptsname.c: Likewise.
45991         * sysdeps/unix/bsd/seekdir.c: Likewise.
45992         * sysdeps/unix/bsd/setegid.c: Likewise.
45993         * sysdeps/unix/bsd/seteuid.c: Likewise.
45994         * sysdeps/unix/bsd/setgid.c: Likewise.
45995         * sysdeps/unix/bsd/setrgid.c: Likewise.
45996         * sysdeps/unix/bsd/setruid.c: Likewise.
45997         * sysdeps/unix/bsd/setsid.c: Likewise.
45998         * sysdeps/unix/bsd/setuid.c: Likewise.
45999         * sysdeps/unix/bsd/sigaction.c: Likewise.
46000         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
46001         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
46002         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
46003         * sysdeps/unix/bsd/telldir.c: Likewise.
46004         * sysdeps/unix/bsd/times.c: Likewise.
46005         * sysdeps/unix/bsd/usleep.c: Likewise.
46006
46007         * misc/Makefile (install-lib): Remove libbsd-compat.a.
46008         ($(objpfx)libbsd-compat.a): Remove rule.
46009
46010         * include/features.h (__FAVOR_BSD): Do not define.
46011         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
46012         features conflicting with POSIX.
46013         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
46014         (_BSD_SOURCE): Remove description of not being a subset of other
46015         feature test macros.
46016         * manual/job.texi (getpgrp): Do not document BSD version.
46017         (getpgid): Do not document by reference to BSD getpgrp.
46018         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
46019         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
46020         * signal/signal.h [__FAVOR_BSD]: Likewise.
46021         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
46022         instead of making contents conditional on [__FAVOR_BSD].
46023         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
46024
46025 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46026
46027         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46028
46029 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
46030
46031         [BZ #16314]
46032         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
46033         values below 2**-450, not 2**-500.
46034         * math/auto-libm-test-in: Don't allow spurious underflow from
46035         hypot.
46036         * math/auto-libm-test-out: Regenerated.
46037
46038         [BZ #16316]
46039         [BZ #16330]
46040         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
46041         values of ha and hb and sort them after adjusting subnormal
46042         arguments.
46043         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
46044         Likewise.
46045         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
46046         values of ea and eb and sort them after adjusting subnormal
46047         arguments.
46048         * math/auto-libm-test-in: Do not expect some hypot tests of
46049         subnormals to fail.  Add more hypot tests.
46050         * math/auto-libm-test-out: Regenerated.
46051
46052 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46053
46054         [BZ #13304]
46055         * sysdeps/sh/s_fma.c: New file.
46056         * sysdeps/sh/s_fmaf.c: New file.
46057         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
46058         version.
46059         * sysdeps/sh/Implies: Add sh/soft-fp.
46060
46061 2013-12-16  Roland McGrath  <roland@hack.frob.com>
46062
46063         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
46064         level of indirection to members `objname', `errstring', `malloced'.
46065         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
46066         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
46067         it as the __longjmp argument (just pass 1 instead).
46068         (_dl_catch_error): Initialize C with argument pointers and address of
46069         volatile local ERRCODE rather than copying values out of C at return.
46070
46071 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
46072
46073         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
46074         * math/auto-libm-test-out: Regenerated.
46075         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
46076         (hypot_test_data): Likewise.
46077         (pow_test_data): Likewise.
46078         (pow_tonearest_test_data): Likewise.
46079         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46080         mpfr_ff_f.
46081         (func_calc_desc): Add mpfr_ff_f union field.
46082         (FUNC_mpfr_ff_f): New macro.
46083         (test_functions): Add atan2, hypot and pow.
46084         (special_fill_min): New function.
46085         (special_fill_minus_min): Likewise.
46086         (special_fill_min_subnorm): Likewise.
46087         (special_fill_minus_min_subnorm): Likewise.
46088         (special_real_inputs): Add min, -min, min_subnorm and
46089         -min_subnorm.
46090         (calc_generic_results): Handle mpfr_ff_f.
46091         * sysdeps/i386/fpu/libm-test-ulps: Update.
46092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46093
46094 2013-12-16  Will Newton  <will.newton@linaro.org>
46095
46096         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
46097         (Aligned Memory Blocks): Add documentation for aligned_alloc
46098         and suggest it as an alternative to posix_memalign.
46099         (Hooks for Malloc): Document __memalign_hook is also called
46100         for aligned_alloc.  (Summary of Malloc): Add summary for
46101         aligned alloc.  Document __memalign_hook is also called
46102         for aligned_alloc.
46103
46104 2013-12-16  Will Newton  <will.newton@linaro.org>
46105
46106         * manual/memory.texi (Malloc Examples): Clarify default
46107         alignment documentation.  Suggest posix_memalign rather
46108         than memalign or valloc.
46109         (Aligned Memory Blocks): Remove suggestion to use memalign
46110         or valloc.  Remove obsolete comment about BSD.
46111         Document memalign errno values and mark the function obsolete.
46112         Document posix_memalign returned error codes.  Mark valloc
46113         as obsolete.  (Hooks for Malloc): __memalign_hook is also
46114         called for posix_memalign and valloc.
46115         (Summary of Malloc): Add posix_memalign to function summary.
46116         __memalign_hook is also called for posix_memalign and valloc.
46117
46118 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
46119
46120         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
46121         TAYLOR_SIN.
46122         (__sin): Adjust.
46123         (__cos): Likewise.
46124         (sloww): Use mynumber union.  Expand ternary operator into
46125         if-else statements.
46126         (cslow): use mynumber union.
46127
46128 2013-12-16  Allan McRae  <allan@archlinux.org>
46129
46130         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
46131         * configure: Regenerated.
46132
46133         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
46134
46135         [BZ #14120]
46136         * configure.ac: Added --enable-maintainer-mode. Check for
46137         autoconf when enabled.
46138         * configure: Regenerated.
46139
46140         * nscd/nscd.service: New file.
46141         * nscd/nscd.tmpfiles: New file.
46142
46143 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
46144
46145         [BZ #12100]
46146         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
46147         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
46148         * sysdeps/x86_64/multiarch/strstr.c: ... here.
46149         (strstr): Add __strstr_sse2_unaligned ifunc.
46150         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
46151         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
46152         (strcasestr): Remove __strcasestr_sse42 ifunc.
46153         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
46154         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
46155         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
46156
46157 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46158
46159         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
46160         * sysdeps/sh/bits/fenv.h: ... here.
46161         * sysdeps/sh/sh4/fpu/bits: Remove directory.
46162
46163 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46164
46165         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
46166
46167         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
46168         hypotf multiarch implementations.
46169         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
46170         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
46171         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
46172         multiarch hypot for PPC64.
46173         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
46174         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
46175         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
46176         multiarch hypotf for PPC64.
46177
46178         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
46179         modff multiarch implementations.
46180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
46181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
46182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
46183         multiarch modf for PPC64.
46184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
46185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
46186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
46187         multiarch modff for PPC64.
46188
46189         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
46190         and logl multiarch implementations.
46191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
46192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
46193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
46194         multiarch logb for PPC64.
46195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
46196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
46197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
46198         multiarch logb for PPC64.
46199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
46200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
46201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
46202         multiarch logb for PPC64.
46203
46204         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
46205         isinff multiarch implementation.
46206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
46207         file.
46208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
46209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
46210         multiarch isinf for PPC64.
46211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
46212         file.
46213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
46214         multiarch isinff for PPC64.
46215
46216         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
46217         finitef multiarch implementation.
46218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
46219         file.
46220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
46221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
46222         multiarch finite for PPC64.
46223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
46224         file.
46225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
46226         multiarch finitef for PPC64.
46227
46228         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
46229         lrint multiarch implementation.
46230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
46231         file.
46232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
46233         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
46234         multiarch llrint for PPC64.
46235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
46236         multiarch lrint for PPC64.
46237
46238         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
46239         copysignf multiarch implementation.
46240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
46241         file.
46242         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
46243         file.
46244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
46245         multiarch copysign for PPC64.
46246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
46247         multiarch copysignf for PPC64.
46248
46249         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
46250         multiarch implementation.
46251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
46252         file.
46253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
46254         file.
46255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
46256         file.
46257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
46258         file.
46259         multiarch llround for PPC64.
46260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
46261         multiarch trunc for PPC64.
46262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
46263         multiarch truncf for PPC64.
46264
46265         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
46266         multiarch implementation.
46267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
46268         file.
46269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
46270         file.
46271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
46272         file.
46273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
46274         file.
46275         multiarch llround for PPC64.
46276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
46277         multiarch round for PPC64.
46278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
46279         multiarch roundf for PPC64.
46280
46281         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
46282         multiarch implementation.
46283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
46284         file.
46285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
46286         file.
46287         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
46288         file.
46289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
46290         file.
46291         multiarch llround for PPC64.
46292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
46293         multiarch floor for PPC64.
46294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
46295         multiarch floorf for PPC64.
46296
46297         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
46298         multiarch implementation.
46299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
46300         file.
46301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
46302         file.
46303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
46304         file.
46305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
46306         file.
46307         multiarch llround for PPC64.
46308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
46309         multiarch ceil for PPC64.
46310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
46311         multiarch ceilf for PPC64.
46312
46313         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
46314         multiarch implementation.
46315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
46316         file.
46317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
46318         file.
46319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
46320         file.
46321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
46322         multiarch llround for PPC64.
46323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
46324         multiarch lround for PPC64.
46325
46326         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
46327         multiarch implementation.
46328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
46329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
46330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
46331         file.
46332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
46333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
46334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
46335         multiarch isnan for PPC64.
46336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
46337         multiarch isnanf for PPC64.
46338
46339         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
46340         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
46341         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
46342         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
46343         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
46344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
46345
46346         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
46347         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
46348         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46349         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46350
46351         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
46352         multiarch implementations.
46353         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46354         (__libc_ifunc_impl_list): Likewise.
46355         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
46356         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
46357         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
46358         multiarch stpcpy for PPC64.
46359
46360         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
46361         multiarch implementations.
46362         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46363         (__libc_ifunc_impl_list): Likewise.
46364         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
46365         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
46366         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
46367         multiarch strcpy for PPC64.
46368
46369         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
46370         redefine function name.
46371         (_wordcopy_fwd_dest_aligned): Likewise.
46372         (_wordcopy_bwd_aligned): Likewise.
46373         (_wordcopy_bwd_dest_aligned): Likewise.
46374         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
46375         multiarch implementations.
46376         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46377         (__libc_ifunc_impl_list): Likewise.
46378         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
46379         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
46380         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
46381         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
46382         multiarch wcscpy for PPC64.
46383
46384         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
46385         multiarch implementations.
46386         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46387         (__libc_ifunc_impl_list): Likewise.
46388         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
46389         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
46390         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
46391         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
46392         multiarch wcscpy for PPC64.
46393
46394         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
46395         multiarch implementations.
46396         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46397         (__libc_ifunc_impl_list): Likewise.
46398         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
46399         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
46400         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
46401         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
46402         multiarch wcsrchr for PPC64.
46403
46404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
46405         multiarch implementations.
46406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46407         (__libc_ifunc_impl_list): Likewise.
46408         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
46409         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
46410         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
46411         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
46412         multiarch wcschr for PPC64.
46413
46414         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
46415         multiarch implementations.
46416         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46417         (__libc_ifunc_impl_list): Likewise.
46418         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
46419         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
46420         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
46421         multiarch strchrnul for PPC64.
46422
46423         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
46424         implementations.
46425         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46426         (__libc_ifunc_impl_list): Likewise.
46427         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
46428         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
46429         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
46430         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
46431         strchr for PPC64.
46432
46433         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
46434         implementations.
46435         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46436         (__libc_ifunc_impl_list): Likewise.
46437         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
46438         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
46439         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
46440         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
46441         strncmp for PPC64.
46442
46443         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
46444         multiarch implementations.
46445         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46446         (__libc_ifunc_impl_list): Likewise.
46447         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
46448         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
46449         strncasecmp for PPC64.
46450         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
46451         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
46452         multiarch strncasecmp_l for PPC64.
46453
46454         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
46455         multiarch implementations.
46456         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46457         (__libc_ifunc_impl_list): Likewise.
46458         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
46459         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
46460         multiarch strcasecmp for PPC64.
46461         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
46462         file.
46463         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
46464         multiarch strcasecmp_l for PPC64.
46465
46466         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
46467         implementations.
46468         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46469         (__libc_ifunc_impl_list): Likewise.
46470         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
46471         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
46472         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
46473         strnlen for PPC64.
46474
46475         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
46476         implementations.
46477         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46478         (__libc_ifunc_impl_list): Likewise.
46479         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
46480         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
46481         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
46482         strlen for PPC64.
46483
46484         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
46485         implementations.
46486         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46487         (__libc_ifunc_impl_list): Likewise.
46488         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
46489         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
46490         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
46491         rawmemrchr for PPC64.
46492
46493         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
46494         implementation.
46495         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46496         (__libc_ifunc_impl_list): Likewise.
46497         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
46498         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
46499         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
46500         memrchr for PPC64.
46501
46502         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
46503         implementation.
46504         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46505         (__libc_ifunc_impl_list): Likewise.
46506         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
46507         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
46508         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
46509         memchr for PPC64.
46510
46511         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
46512         implementation.
46513         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46514         (__libc_ifunc_impl_list): Likewise.
46515         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
46516         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
46517         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
46518         mempcpy for PPC64.
46519
46520         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
46521         avoid cretion of __bzero symbol.
46522         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
46523         Likewise.
46524         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
46525         Likewise.
46526         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
46527         Likewise.
46528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
46529         multiarch implementations.
46530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46531         (__libc_ifunc_impl_list): Likewise.
46532         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
46533         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
46534         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
46535         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
46536         bzero for PPC32.
46537         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
46538         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
46539         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
46540         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
46541         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
46542         memset for PPC64.
46543         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
46544
46545         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
46546         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
46547         implementations.
46548         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46549         (__libc_ifunc_impl_list): Likewise.
46550         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
46551         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
46552         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
46553         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
46554         memcmp for PPC64.
46555
46556         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
46557         multiarch for POWER/PPC64.
46558         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
46559         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
46560         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
46561         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
46562         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
46563         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
46564         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
46565         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
46566         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
46567         memcpy for PPC64.
46568
46569         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
46570         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
46571         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
46572         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
46573         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
46574         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
46575         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
46576         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
46577         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
46578         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
46579         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
46580         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
46581         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
46582         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
46583         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
46584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
46585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
46586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
46587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
46588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
46589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
46590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
46591
46592 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46593
46594         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
46595
46596 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46597
46598         * benchtests/Makefile (bench): Add exp2 and log2.
46599         (LDLIBS-bench-exp2): Add -lm.
46600         (LDLIBS-bench-log2): Likewise.
46601         * benchtests/exp2-inputs: New inputs file.
46602         * benchtests/log2-inputs: New inputs file.
46603         * benchtests/log-inputs: Add new inputs.
46604         * benchtests/tan-inputs: Likewise.
46605
46606 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46607
46608         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
46609         definition...
46610         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
46611         (csloww2): ... from here.
46612
46613         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
46614         instead of structures.
46615         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
46616         (POLYNOMIAL): Likewise.
46617         (TAYLOR_SLOW): Likewise.
46618         (__sin): Likewise.
46619         (__cos): Likewise.
46620         (slow1): Likewise.
46621         (slow2): Likewise.
46622         (sloww): Likewise.
46623         (sloww1); Likewise.
46624         (sloww2): Likewise.
46625         (bsloww1): Likewise.
46626         (bsloww2): Likewise.
46627         (cslow2): Likewise.
46628         (csloww): Likewise.
46629         (csloww1): Likewise.
46630         (csloww2): Likewise.
46631
46632 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
46633
46634         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
46635         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
46636         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
46637         * malloc/hooks.c (realloc_check): Likewise.
46638
46639         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
46640         * malloc/arena.c: Remove PER_THREAD conditional.
46641         [!PER_THREAD]: Remove code.
46642         (ptmalloc_unlock_all2): Likewise.
46643         (ptmalloc_init): Likewise.
46644         (_int_new_arena): Likewise.
46645         (arena_get2): Likewise.
46646         * malloc/hooks.c (__malloc_get_state): Likewise.
46647         (__malloc_set_state): Likewise.
46648         * malloc/malloc.c: Likewise.
46649         (struct malloc_state): Likewise.
46650         (struct malloc_par): Likewise.
46651         (__libc_realloc): Likewise.
46652         (__libc_mallopt): Likewise.
46653
46654 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46655
46656         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
46657
46658 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
46659
46660         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
46661         macro to a function.  Check for zero perturb_byte.
46662         (_int_malloc, _int_free): Remove zero perturb_byte checks.
46663
46664         * malloc/malloc.c: (force_reg): Remove.
46665         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
46666         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
46667         force_reg by atomic_forced_read.
46668         * malloc/arena.c (ptmalloc_init): Likewise.
46669         * malloc/hooks.c (top_check): Likewise.
46670
46671 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46672
46673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46674
46675 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
46676
46677         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46678
46679 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
46680
46681         * math/auto-libm-test-in: Add tests of lgamma.
46682         * math/auto-libm-test-out: Regenerated.
46683         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
46684         (M_LOG_2_SQRT_PIl): Likewise.
46685         (lgamma_test_data): Use AUTO_TESTS_f_f1.
46686         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46687         mpfr_f_f1.
46688         (func_calc_desc): Add mpfr_f_f1 union field.
46689         (ARGS1): New macro.
46690         (ARGS2): Likewise.
46691         (ARGS3): Likewise.
46692         (ARGS4): Likewise.
46693         (RET1): Likewise.
46694         (RET2): Likewise.
46695         (CALC): Likewise.
46696         (FUNC): Likewise.
46697         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
46698         (test_functions): Add lgamma.
46699         (calc_generic_results): Handle mpfr_f_f1.
46700         * sysdeps/i386/fpu/libm-test-ulps: Update.
46701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46702
46703 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46704
46705         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
46706         __mpn_add_n for PowerPC64/POWER7.
46707         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
46708         __mpn_sub_n for PowerPC64/POWER7.
46709
46710         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
46711         __mpn_addmul_1 for PowerPC64.
46712         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
46713         __mpn_submul_1 for PowerPC64.
46714         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
46715         for PowerPC64.
46716         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
46717         for PowerPC64.
46718
46719 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
46720
46721         [BZ #15089]
46722         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
46723
46724 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46725
46726         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
46727
46728         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
46729         add multiarch folders.
46730         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
46731         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
46732         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
46733         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
46734         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
46735         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
46736         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
46737         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
46738         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
46739         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
46740         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
46741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
46742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
46743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
46744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
46745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
46746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
46747
46748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46749         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
46750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
46751         New file.
46752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
46753         New file.
46754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
46755         multiarch __ieee754_hypot for PowerPC32.
46756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
46757         New file.
46758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
46759         New file.
46760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
46761         multiarch __ieee754_hypotf for PowerPC32.
46762
46763         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
46764         long_double_symbol only if __logbl is defined.
46765         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
46766         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
46767         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
46768         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
46769         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
46770         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
46771         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
46772         path for implementation.
46773         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
46774         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
46775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
46776         logb, and logbl multiarch implementations for PowerPC32.
46777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
46778         file.
46779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
46780         file.
46781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
46782         multiarch logb for PowerPC32.
46783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
46784         file.
46785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
46786         file.
46787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
46788         multiarch logbf for PowerPC32.
46789         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
46790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
46791         file.
46792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
46793         multiarch logbl implementation for PowerPC32.
46794
46795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
46796         and modff multiarch implementations.
46797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
46798         New file.
46799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
46800         New file.
46801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
46802         multiarch modf for PowerPC32.
46803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
46804         New file.
46805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
46806         New file.
46807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
46808         multiarch modff for PowerPC32.
46809
46810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
46811         and lrintf multiarch implementations.
46812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
46813         New file.
46814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
46815         New file.
46816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
46817         multiarch lrint for PowerPC32.
46818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
46819         file: multiarch lrintf for PowerPC32.
46820
46821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
46822         and lroundf multiarch implementations.
46823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
46824         New file.
46825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
46826         New file.
46827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
46828         New file.
46829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
46830         multiarch lround for PowerPC32.
46831         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
46832         file: multiarch lroundf for PowerPC32.
46833
46834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46835         copysign and copysignf multiarch implementations.
46836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
46837         New file.
46838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
46839         New file.
46840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
46841         file: multiarch copysign for PowerPC32.
46842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
46843         file: multiarch copysignf for PowerPC32.
46844
46845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
46846         and truncf multiarch implementations.
46847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
46848         New file.
46849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
46850         file.
46851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
46852         multiarch trunc for PowerPC32.
46853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
46854         New file.
46855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
46856         New file.
46857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
46858         multiarch truncf for PowerPC32.
46859
46860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
46861         and roundf multiarch implementations.
46862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
46863         New file.
46864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
46865         file.
46866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
46867         multiarch round for PowerPC32.
46868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
46869         New file.
46870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
46871         New file.
46872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
46873         multiarch roundf for PowerPC32.
46874
46875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
46876         and floorf multiarch implementations.
46877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
46878         New file.
46879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
46880         file.
46881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
46882         multiarch floor for PowerPC32.
46883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
46884         New file.
46885         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
46886         New file.
46887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
46888         multiarch floorf for PowerPC32.
46889
46890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
46891         and ceilf multiarch implementations.
46892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
46893         New file.
46894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
46895         file.
46896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
46897         multiarch ceil for PowerPC32.
46898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
46899         New file.
46900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
46901         file.
46902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
46903         multiarch ceilf for PowerPC32.
46904
46905         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
46906         is defined.
46907         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
46908         FINITEF is defined.
46909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
46910         and finitef multiarch implementations.
46911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
46912         New file.
46913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
46914         file.
46915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
46916         multiarch finite for PowerPC32.
46917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
46918         New file.
46919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
46920         file: multiarch finitef for PowerPC32.
46921
46922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
46923         and isinff multiarch implementations.
46924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
46925         file.
46926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
46927         file.
46928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
46929         multiarch isinf for PowerPC32.
46930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
46931         New file.
46932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
46933         multiarch isinff for PowerPC32.
46934
46935         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
46936         alias when __isnan is defined.
46937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
46938         and isnanf multiarch implementations.
46939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
46940         file.
46941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
46942         file.
46943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
46944         file.
46945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
46946         file.
46947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
46948         multiarch isnan for PowerPC32.
46949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
46950         New file.
46951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
46952         New file.
46953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
46954         multiarch isnanf for PowerPC32.
46955
46956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
46957         and sqrtf multiarch implementations.
46958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
46959         file.
46960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
46961         file.
46962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
46963         multiarch sqrt for PowerPC32.
46964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
46965         file.
46966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
46967         file.
46968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
46969         multiarch sqrtf for PowerPC32.
46970
46971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
46972         and llroundf multiarch implementations.
46973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
46974         New file.
46975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
46976         New file.
46977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
46978         New file.
46979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
46980         file: multiarch llround for PowerPC32.
46981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
46982         file: multiarch llroundf for PowerPC32.
46983
46984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
46985         multiarch PowerPC32 fpu implementations.
46986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
46987         New file.
46988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
46989         New file.
46990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
46991         multiarch llrint for PowerPC32.
46992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
46993         New file.
46994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
46995         New file.
46996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
46997         file.
46998
46999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
47000
47001         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
47002         file.
47003         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
47004         file.
47005         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
47006         file.
47007         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
47008         multiarch wordcopy for PPC32.
47009         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
47010         wordcopy objects.
47011         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47012         (__libc_ifunc_impl_list): Likewise.
47013         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
47014         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
47015         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
47016         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
47017         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
47018         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
47019
47020         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
47021         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
47022         file.
47023         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
47024         file.
47025         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
47026         file.
47027         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
47028         multiarch wcscpy for PPC32.
47029         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
47030         multiarch objects.
47031         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47032         (__libc_ifunc_impl_list): Likewise.
47033         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47034         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47035         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
47036         sysdeps/powerpc/power6/wcscpy.c.
47037
47038         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
47039         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
47040         file.
47041         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
47042         file.
47043         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
47044         file.
47045         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
47046         multiarch wcsrchr for PPC32.
47047         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47048         multiarch objects.
47049         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47050         (__libc_ifunc_impl_list): Likewise.
47051         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47052         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47053         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
47054         sysdeps/powerpc/power6/wcsrchr.c.
47055
47056         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
47057         file.
47058         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
47059         file.
47060         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
47061         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
47062         multiarch wcschr for PPc32.
47063         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47064         multiarch objects.
47065         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47066         (__libc_ifunc_impl_list): Likewise.
47067         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
47068         * sysdeps/powerpc/power6/wcschr.c: ... to here.
47069         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
47070         sysdeps/powerpc/power6/wcschr.c.
47071
47072         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
47073         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
47074         file.
47075         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
47076         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
47077         file: multiarch strchr for PPC32.
47078         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
47079         multiarch objects.
47080         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47081         (__libc_ifunc_impl_list): Likewise.
47082
47083         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
47084         name.
47085         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
47086         file.
47087         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
47088         file.
47089         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
47090         multiarch strchrnul for PPC32.
47091         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
47092         multiarch objects.
47093         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47094         (__libc_ifunc_impl_list): Likewise.
47095
47096         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
47097         file.
47098         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
47099         multiarch strncasecmp for PPC32.
47100         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
47101         file.
47102         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
47103         multiarch strncasecmp_l for PPC32.
47104         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
47105         strncasecmp multiarch objects.
47106         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47107         (__libc_ifunc_impl_list): Likewise.
47108
47109         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
47110         file.
47111         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
47112         multiarch strncasecmp for PPC32.
47113         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
47114         New file.
47115         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
47116         multiarch strcasecmp_l for PPC32.
47117         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
47118         multiarch objects.
47119         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47120         (__libc_ifunc_impl_list): Likewise.
47121
47122         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
47123         file.
47124         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
47125         file.
47126         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
47127         multiarch strncmp for PPC32.
47128         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
47129         multiarch objects.
47130         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47131         (__libc_ifunc_impl_list): Likewise.
47132
47133         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
47134         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
47135         file.
47136         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
47137         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
47138         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
47139         multiarch objects.
47140         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47141         (__libc_ifunc_impl_list): Likewise.
47142
47143         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
47144         file.
47145         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
47146         file.
47147         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
47148         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
47149         multiarch objects.
47150         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47151         (__libc_ifunc_impl_list): Likewise.
47152
47153         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
47154         file.
47155         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
47156         file.
47157         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
47158         multiarch rawmemchr for PPC32.
47159         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
47160         multiarch objects.
47161         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47162         (__libc_ifunc_impl_list): Likewise.
47163
47164         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
47165         file.
47166         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
47167         file.
47168         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
47169         file: memrchr multiarch for PPC32.
47170         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
47171         multiarch objects.
47172         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47173         (__libc_ifunc_impl_list): Likewise.
47174
47175         * string/memchr.c (__memchr): Using macro to redefine symbol name.
47176         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
47177         file.
47178         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
47179         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
47180         multiarch memchr for PPC32.
47181         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
47182         multiarch objects.
47183         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47184         (__libc_ifunc_impl_list): Likewise.
47185
47186         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
47187         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
47188         file.
47189         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
47190         file.
47191         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
47192         file: multiarch mempcpy for PPC32.
47193         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
47194         multiarch objects.
47195         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47196         (__libc_ifunc_impl_list): Likewise.
47197
47198         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
47199         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
47200         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
47201         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
47202         multiarch bzero for PPC32.
47203         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
47204         file.
47205         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
47206         file.
47207         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
47208         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
47209         file: multiarch memset for PPC32.
47210         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
47211         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
47212         memset multiarch objects.
47213         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47214         (__libc_ifunc_impl_list): Likewise.
47215
47216         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
47217         file.
47218         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
47219         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
47220         memcmp for PPC32.
47221         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
47222         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
47223         multiarch objects.
47224         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47225         (__libc_ifunc_impl_list): Likewise.
47226
47227         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
47228         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
47229         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
47230         file.
47231         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
47232         file.
47233         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
47234         file.
47235         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
47236         multiarch memcpy for PPC32.
47237         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
47238         multiarch objects.
47239         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47240         (__libc_ifunc_impl_list): Likewise.
47241
47242         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
47243         support multiarch for POWER/PPC32.
47244         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
47245         Likewise.
47246         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
47247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
47248         Implies file to make multiarch folder appers before the fpu and
47249         default folder for power4 configuration.
47250
47251 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
47252
47253         * scripts/bench.pl: Append volatile keyword to type.
47254
47255 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47256
47257         * sysdeps/sh/sotruss-lib.c: New file.
47258         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
47259
47260 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47261
47262         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47263
47264 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
47265
47266         [BZ #6810]
47267         * math/w_tgamma.c: Include <errno.h>.
47268         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
47269         * math/w_tgammaf.c: Include <errno.h>.
47270         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
47271         * math/w_tgammal.c: Include <errno.h>.
47272         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
47273         * math/auto-libm-test-in: Do not allow missing errno on tgamma
47274         underflow.  Add more tgamma tests.
47275         * math/auto-libm-test-out: Regenerated.
47276         * sysdeps/i386/fpu/libm-test-ulps: Update.
47277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47278
47279         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
47280         sin, sinh, tan, tanh, tgamma, y0 and y1.
47281         * math/auto-libm-test-out: Regenerated.
47282         * math/libm-test.inc (TEST_COND_x86_64): New macro.
47283         (TEST_COND_x86): Likewise.
47284         (M_E2l): Remove macro.
47285         (M_E3l): Likewise.
47286         (M_2_SQRT_PIl): Likewise.
47287         (M_SQRT_PIl): Likewise.
47288         (M_1_DIV_El): Likewise.
47289         (log_test_data): Use AUTO_TESTS_f_f.
47290         (log10_test_data): Likewise.
47291         (log1p_test_data): Likewise.
47292         (log2_test_data): Likewise.
47293         (sin_test_data): Likewise.
47294         (sin_tonearest_test_data): Likewise.
47295         (sin_towardzero_test_data): Likewise.
47296         (sin_downward_test_data): Likewise.
47297         (sin_upward_test_data): Likewise.
47298         (sinh_test_data): Likewise.
47299         (sinh_tonearest_test_data): Likewise.
47300         (sinh_towardzero_test_data): Likewise.
47301         (sinh_downward_test_data): Likewise.
47302         (sinh_upward_test_data): Likewise.
47303         (tan_test_data): Likewise.
47304         (tan_tonearest_test_data): Likewise.
47305         (tan_towardzero_test_data): Likewise.
47306         (tan_downward_test_data): Likewise.
47307         (tan_upward_test_data): Likewise.
47308         (tanh_test_data): Likewise.
47309         (tgamma_test_data): Likewise.
47310         (y0_test_data): Likewise.
47311         (y1_test_data): Likewise.
47312         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
47313         (special_real_inputs): Add pi/4.
47314         * sysdeps/i386/fpu/libm-test-ulps: Update.
47315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47316
47317 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47318
47319         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
47320         "longjmp_target" static probes.
47321         (__longjmp): Rename to __longjmp_symbol.
47322         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
47323         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
47324         on which longjmp to generate.
47325         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
47326         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
47327         probe.
47328         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47329         (__sigjmp_save): Rename to __sigjmp_save_symbol.
47330         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
47331         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
47332         and __sigjmp_save_symbol based on which sigsetjmp to generated.
47333         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
47334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
47335         __longjmp_symbol based on which __longjmp to generate.
47336         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
47337         probe.
47338         (setjmp): Rename to setjmp_symbol.
47339         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47340         (_setjmp): Rename to _setjmp_symbol.
47341         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47342         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
47343         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
47344         which setjmp to generate.
47345         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
47346         "longjmp_target" static probes.
47347
47348 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
47349
47350         * benchtests/README: Add note about output arguments.
47351         * benchtests/bench-sincos.c: Remove file.
47352         * benchtests/sincos-inputs: New file.
47353         * scripts/bench.pl: Identify output arguments and define
47354         static variables for them.
47355
47356         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
47357
47358         [BZ #15941]
47359         * Makefile (INSTALL): Add install-plain.texi as the primary
47360         dependency.
47361         * manual/install-plain.texi: New file.
47362         * manual/install.texi: Include node directive only for
47363         non-plaintext output.
47364
47365 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
47366
47367         * stdlib/longlong.h: Update from GCC.
47368
47369         [BZ #6807]
47370         [BZ #15901]
47371         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
47372         * math/w_j0f.c (y0f): Likewise.
47373         * math/w_j0l.c (__y0l): Likewise.
47374         * math/w_j1.c (y1): Likewise.
47375         * math/w_j1f.c (y1f): Likewise.
47376         * math/w_j1l.c (__y1l): Likewise.
47377         * math/w_jn.c (yn): Likewise.
47378         * math/w_jnf.c (ynf): Likewise.
47379         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
47380         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
47381         value for Bessel function domain errors outside _SVID_ mode.
47382         Adjust sign of return value for yn (negative integer, 0).
47383         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
47384         by zero in return for negative x and set sign appropriately for
47385         negative n.
47386         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
47387         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
47388         * math/libm-test.inc (y0_test_data): Add more tests and adjust
47389         expectations in error cases.
47390         (y1_test_data): Likewise.
47391         (yn_test_data): Likewise.
47392         * sysdeps/i386/fpu/libm-test-ulps: Update.
47393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47394
47395 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47396
47397         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
47398         "64" to "64-v1".  Add "64-v2".
47399         (abi-64-options): Rename to ...
47400         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
47401         (abi-64-condition): Rename to ...
47402         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
47403         (abi-64-ld-soname): Rename to ...
47404         (abi-64-v1-ld-soname): ... this.
47405         (abi-64-v2-options): Define.
47406         (abi-64-v2-condition): Likewise.
47407         (abi-64-v2-ld-soname): Likewise.
47408         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
47409         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
47410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
47411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
47412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
47413
47414 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47415             Alan Modra  <amodra@gmail.com>
47416
47417         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
47418         New versions for use with the ELFv2 ABI.
47419         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
47420         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
47421         declaration.
47422         (struct La_ppc64v2_retval): Likewise.
47423         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
47424         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
47425         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
47426         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
47427         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
47428         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47429         Do not save or restore CR.
47430         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
47431         (_dl_profile_resolve): Do no save or restore CR.  Support extended
47432         return values for ELFv2 ABI.  Fix location of FPR return registers.
47433         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
47434         updated values for _CALL_ELF == 2.
47435         (La_regs, La_retval, int_retval): Likewise.
47436
47437 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47438
47439         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
47440         (FRAME_MIN_SIZE_PARM): Likewise.
47441         (FRAME_BACKCHAIN): Likewise.
47442         (FRAME_CR_SAVE): Likewise.
47443         (FRAME_LR_SAVE): Likewise.
47444         (FRAME_TOC_SAVE): Likewise.
47445         (FRAME_PARM_SAVE): Likewise.
47446         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
47447         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
47448         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47449         (call_mcount_parm_offset): New macro.
47450         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
47451         (PROF): Use symbolic stack frame offsets.
47452         (TAIL_CALL_SYSCALL_ERROR): Likewise.
47453         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
47454         Redefine in terms of FRAME_MIN_SIZE.
47455         (_dl_runtime_resolve): Use symbolic stack frame offsets.
47456         (_dl_profile_resolve): Likewise.  Update comment.
47457         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
47458         symbols stack frame offsets.
47459         (__sigsetjmp): Likewise.
47460         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
47461         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
47462         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
47463         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
47464
47465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
47466         (FRAME_BACKCHAIN): Remove.
47467         (FRAME_CR_SAVE): Likewise.
47468         (FRAME_LR_SAVE): Likewise.
47469         (FRAME_COMPILER_DW): Likewise.
47470         (FRAME_LINKER_DW): Likewise.
47471         (FRAME_TOC_SAVE): Likewise.
47472         (FRAME_PARM_SAVE): Likewise.
47473         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
47474         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
47475         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
47477         (CHECK_SP): Use symbolic stack frame offsets.
47478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
47479         zone" instead of caller's parameter save area for temp storage.
47480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47481         Likewise.  Also, use symbolic stack frame offsets.
47482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
47483         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
47484         our own stack frame instead of the caller's.
47485         (__socket): Use symbolic stack frame offsets.
47486
47487 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47488             Alan Modra  <amodra@gmail.com>
47489
47490         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
47491         Define.
47492         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
47493         (PPC64_LOCAL_ENTRY_OFFSET): Define.
47494         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
47495         New function.
47496         (elf_machine_fixup_plt): Call it.
47497         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
47498         reloc arguments.
47499         (elf_machine_rela): Update call to elf_machine_plt_conflict.
47500         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47501         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
47502         r2 before calling target.
47503
47504 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47505             Alan Modra  <amodra@gmail.com>
47506
47507         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
47508         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
47509         versions of macros to support ELFv2 ABI.
47510         (LOCALENTRY): New macro.
47511         (ENTRY, EALIGN): Use it.
47512         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
47513         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
47514         fall through into ENTRY entry point.
47515         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
47516         Only define if _CALL_ELF != 2.
47517
47518         (elf_machine_matches_host): Verify ABI version matches.
47519         (RTLD_START): Use LOCALENTRY.
47520         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
47521         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
47522         (PLT_ENTRY_WORDS): New macro.
47523         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
47524         (elf_machine_runtime_setup): Support ELFv2 ABI.
47525         (elf_machine_fixup_plt): Likewise.
47526         (elf_machine_plt_conflict): Likewise.
47527         (resolve_ifunc): Likewise.
47528         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
47529         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
47530         Likewise.
47531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
47532         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
47533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47534         (makecontext): Support ELFv2 ABI.
47535         * elf/elf.h (EF_PPC64_ABI): Define.
47536
47537 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47538
47539         * sysdeps/powerpc/powerpc64/sysdep.h
47540         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
47541         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
47542         (ENTRY) [ASSEMBLER]: ... but instead here ...
47543         (EALIGN) [ASSEMBLER]: ... and here.
47544         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
47545         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
47546         (ENTRY_2) [!ASSEMBLER]: Use it.
47547         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
47548         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
47549         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47550         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
47551         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
47552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
47553         Use PPC64_LOAD_FUNCPTR.
47554
47555         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
47556
47557 2013-12-04  Alan Modra  <amodra@gmail.com>
47558
47559         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
47560         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
47561         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
47562         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
47563
47564         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
47565         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
47566         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
47567         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
47568         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
47569         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
47570
47571 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47572
47573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47574         (__makecontext): Fix incorrect CFI when backtracing out of
47575         context created via makecontext.
47576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
47577         (__setcontext): Fix incorrect CFI during switch to new context.
47578         (__novec_setcontext): Likewise.
47579
47580 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47581
47582         [BZ #4772]
47583         * time/strptime_l.c (__strptime_internal): Allow modifiers
47584         in strptime.
47585         * time/tst-strptime.c (day_tests): Add testcase.
47586
47587 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
47588
47589         * scripts/bench.pl: Skip over blank lines.
47590
47591 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47592
47593         [BZ #926]
47594         * manual/time.texi (Calendar Time): Clarify what timezone functions
47595         use.
47596
47597 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47598
47599         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47600
47601 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47602
47603         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
47604         implementation.
47605         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
47606         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
47607         * debug/memset_chk.c (__memset_chk): Likewise.
47608         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
47609         * debug/strncpy_chk.c: Likewise.
47610
47611 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47612
47613         [BZ #15268]
47614         [BZ #15425]
47615         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
47616         (__ieee754_exp): For possibly underflowing results, check size of
47617         result and force underflow exception if required.
47618         * math/auto-libm-test-in: Add more tests of exp.
47619         * math/auto-libm-test-out: Regenerated.
47620         * sysdeps/i386/fpu/libm-test-ulps: Update.
47621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47622
47623         [BZ #16283]
47624         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
47625         * math/w_exp2f.c (__exp2f): Likewise.
47626         * math/w_exp2l.c (__exp2l): Likewise.
47627         * math/auto-libm-test-in: Do not allow missing errno on exp2
47628         underflow.
47629         * math/auto-libm-test-out: Regenerated.
47630
47631 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
47632
47633         [BZ #16274]
47634         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
47635         handle filename validation.
47636         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
47637         (do_open): Delete.
47638
47639 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47640
47641         [BZ #6786]
47642         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
47643         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
47644         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
47645         <float.h>.
47646         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
47647         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
47648         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47649         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
47650         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47651         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
47652         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47653         * math/auto-libm-test-in: Don't allow missing errno from erfc.
47654         Add more erfc tests.
47655         * math/auto-libm-test-out: Regenerated.
47656         * sysdeps/i386/fpu/libm-test-ulps: Update.
47657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47658
47659         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
47660         exp2, expm1, j0 and j1.
47661         * math/auto-libm-test-out: Regenerated.
47662         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
47663         (erfc_test_data): Likewise.
47664         (exp_test_data): Likewise.
47665         (exp_tonearest_test_data): Likewise.
47666         (exp_towardzero_test_data): Likewise.
47667         (exp_downward_test_data): Likewise.
47668         (exp_upward_test_data): Likewise.
47669         (exp10_test_data): Likewise.
47670         (exp2_test_data): Likewise.
47671         (expm1_test_data): Likewise.
47672         (j0_test_data): Likewise.
47673         (j1_test_data): Likewise.
47674         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
47675         (input_flag_type): Add flag_xfail_rounding.
47676         (input_flags): Add xfail-rounding.
47677         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
47678         (output_for_one_input_case): Handle flag_xfail_rounding.
47679         * sysdeps/i386/fpu/libm-test-ulps: Update.
47680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47681
47682 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
47683
47684         [BZ #16289]
47685         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
47686         division by 0.
47687
47688 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
47689
47690         [BZ #16195]
47691         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
47692         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
47693         (STAP_PROBE0): New macro.
47694         (STAP_PROBE1): Likewise.
47695         (STAP_PROBE2): Likewise.
47696         (STAP_PROBE3): Likewise.
47697         (STAP_PROBE4): Likewise.
47698
47699 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
47700
47701         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
47702
47703 2013-12-02  Steve Ellcey  <sellcey@mips.com>
47704
47705         * benchtests/Makefile (bench): Add sqrt.
47706         (LDLIBS-bench-sqrt): New.
47707         * benchtests/sqrt-input: New.
47708
47709 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
47710
47711         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
47712         (GAIH_EAI): Likewise.
47713         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
47714         (gaih_inet): Likewise.
47715         (getaddrinfo): Don't use GAIH_EAI.
47716
47717         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
47718         (struct gaih): Remove definition.
47719
47720 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
47721
47722         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
47723         Use HERRNOP directly.
47724
47725 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47726
47727         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47728
47729 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
47730
47731         * math/gen-auto-libm-tests.c (test_functions): Add more
47732         single-argument functions.
47733         (special_fill_pi_2): New function.
47734         (special_fill_minus_pi_2): Likewise.
47735         (special_fill_pi_6): Likewise.
47736         (special_fill_minus_pi_6): Likewise.
47737         (special_fill_pi_3): Likewise.
47738         (special_fill_2pi_3): Likewise.
47739         (special_fill_e): Likewise.
47740         (special_fill_1_e): Likewise.
47741         (special_fill_e_minus_1): Likewise.
47742         (special_real_inputs): Add more special inputs.
47743         (output_for_one_input_case): Do not require ERANGE on underflow to
47744         zero if round-to-nearest result does not underflow to zero, unless
47745         exact results required.
47746         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
47747         atan, atanh, cbrt, cos and cosh.
47748         * math/auto-libm-test-out: Regenerated.
47749         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
47750         (acos_tonearest_test_data): Likewise.
47751         (acos_towardzero_test_data): Likewise.
47752         (acos_downward_test_data): Likewise.
47753         (acos_upward_test_data): Likewise.
47754         (acosh_test_data): Likewise.
47755         (asin_test_data): Likewise.
47756         (asin_tonearest_test_data): Likewise.
47757         (asin_towardzero_test_data): Likewise.
47758         (asin_upward_test_data): Likewise.
47759         (asinh_test_data): Likewise.
47760         (atan_test_data): Likewise.
47761         (atanh_test_data): Likewise.
47762         (cbrt_test_data): Likewise.
47763         (cos_test_data): Likewise.
47764         (cos_tonearest_test_data): Likewise.
47765         (cos_towardzero_test_data): Likewise.
47766         (cos_downward_test_data): Likewise.
47767         (cos_upward_test_data): Likewise.
47768         (cosh_test_data): Likewise.
47769         (cosh_tonearest_test_data): Likewise.
47770         (cosh_towardzero_test_data): Likewise.
47771         (cosh_downward_test_data): Likewise.
47772         (cosh_upward_test_data): Likewise.
47773         * sysdeps/i386/fpu/libm-test-ulps: Update.
47774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47775
47776 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
47777
47778         [BZ #6787]
47779         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
47780         * math/w_exp10f.c (__exp10f): Likewise.
47781         * math/w_exp10l.c (__exp10l): Likewise.
47782         * math/libm-test.inc (exp10_test_data): Add more tests and expect
47783         errno settings in existing tests.
47784
47785         [BZ #14032]
47786         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
47787         precision control set to double precision.
47788         * sysdeps/i386/fpu/w_sqrt.c: New file.
47789         * math/auto-libm-test-in: Add more tests.
47790         * math/auto-libm-test-out: Update.
47791
47792         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
47793         (sqrt_test_tonearest): New function.
47794         (sqrt_towardzero_test_data): New variable.
47795         (sqrt_test_towardzero): New function.
47796         (sqrt_downward_test_data): New variable.
47797         (sqrt_test_downward): New function.
47798         (sqrt_upward_test_data): New variable.
47799         (sqrt_test_upward): New function.
47800         (main): Call the new functions.
47801
47802         * math/gen-auto-libm-tests.c: New file.
47803         * math/auto-libm-test-in: Likewise.
47804         * math/auto-libm-test-out: New generated file.
47805         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
47806         variables.
47807         (%beautify): Add generated representations of zero.
47808         (top level): Set $auto_input and call parse_auto_input.
47809         (beautify): Remove trailing "f" from hex float constants.
47810         (parse_args): Handle XFAIL_TEST.
47811         (convert_condition): New function.
47812         (or_value): Likewise.
47813         (or_cond_value): Likewise.
47814         (generate_testfile): Handle AUTO_TESTS_* lines.
47815         (parse_auto_input): New function.
47816         * math/libm-test.inc (XFAIL_TEST): New macro.
47817         (ERRNO_UNCHANGED): Update value.
47818         (ERRNO_EDOM): Likewise.
47819         (ERRNO_ERANGE): Likewise.
47820         (IGNORE_RESULT): Likewise.
47821         (TEST_COND_flt_32): New macro.
47822         (TEST_COND_dbl_64): Likewise.
47823         (TEST_COND_ldbl_96_intel): Likewise.
47824         (TEST_COND_ldbl_96_m68k): Likewise.
47825         (TEST_COND_ldbl_128): Likewise.
47826         (TEST_COND_ldbl_128ibm): Likewise.
47827         (TEST_COND_long32): Likewise.
47828         (TEST_COND_long64): Likewise.
47829         (TEST_COND_before_rounding): Likewise.
47830         (TEST_COND_after_rounding): Likewise.
47831         (enable_test): Handle XFAIL_TEST flag.
47832         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
47833         with finite results.
47834         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
47835         auto-libm-test-out.
47836
47837 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47838             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47839
47840         [BZ #16214]
47841         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
47842         __tls_get_addr_internal instead of __tls_get_offset in order to
47843         avoid GOT pointer dependency.  Make rtld export
47844         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
47845         __tls_get_addr since we are a __tls_get_offset platform.
47846         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
47847         GOT pointer being set up before.
47848         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
47849
47850 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
47851
47852         * manual/math.texi (Errors in Math Functions): Document accuracy
47853         goals.
47854
47855         [BZ #15004]
47856         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
47857         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
47858         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
47859         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
47860         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
47861         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
47862         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
47863         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
47864         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
47865         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
47866         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
47867         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
47868         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
47869         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
47870         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
47871         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
47872
47873         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
47874         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
47875         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
47876         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
47877         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
47878         Likewise.
47879         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
47880         Likewise.
47881         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
47882         Likewise.
47883         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
47884         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
47885         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
47886         atomic-feupdateenv and flt-rounds.
47887         * sysdeps/powerpc/nofpu/Versions (libc): Add
47888         __atomic_feholdexcept, __atomic_feclearexcept,
47889         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
47890         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
47891         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
47892         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
47893         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
47894         here.
47895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
47896         Update.
47897
47898         * manual/arith.texi (FP Exceptions): Document that exceptions may
47899         not be raised when matherr is used.
47900         (Math Error Reporting): Document overflow in directed rounding
47901         modes.  Document that errno may not be set when finite values are
47902         returned on overflow.  Document intent to set errno on underflow
47903         only for underflow to zero.
47904
47905         [BZ #16271]
47906         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
47907         round-to-nearest then adjust result for other rounding modes.
47908         * include/fenv.h (fegetround): Use libm_hidden_proto.
47909         * math/fegetround.c (fegetround): Use libm_hidden_def.
47910         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
47911         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
47912         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47913         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
47914         Likewise.
47915         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
47916         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
47917         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
47918         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
47919
47920 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
47921
47922         [BZ #16077]
47923         * nss/Versions (libnss_files): Add
47924         _nss_files_gethostbyname3_r.
47925         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
47926         New function.
47927         (HOST_DB_LOOKUP): Remove macro.
47928         (_nss_files_gethostbyname_r): Implement function without the
47929         HOST_DB_LOOKUP macro.
47930         (_nss_files_gethostbyname2_r): Likewise.
47931
47932 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
47933
47934         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
47935
47936 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
47937
47938         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
47939         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
47940         warning.
47941
47942 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47943
47944         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
47945         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
47946         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47947         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
47948         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
47949         __fe_nomask_env_priv and attribute_hidden.
47950         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
47951         (libc_feupdateenv_test_ppc): Likewise.
47952         (libc_feresetround_ppc): Likewise.
47953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
47954         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
47955         compat_symbol macro.
47956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
47957         (__fe_nomask_env): Likewise.
47958         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
47959
47960 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47961
47962         * string/Makefile: Remove ifunc tests.
47963         * string/test-string.h: Define TEST_IFUNC.
47964         * string/test-bcopy-ifunc.c: Remove.
47965         * string/test-bzero-ifunc.c: Likewise.
47966         * string/test-memccpy-ifunc.c: Likewise.
47967         * string/test-memchr-ifunc.c: Likewise.
47968         * string/test-memcmp-ifunc.c: Likewise.
47969         * string/test-memcpy-ifunc.c: Likewise.
47970         * string/test-memmem-ifunc.c: Likewise.
47971         * string/test-memmove-ifunc.c: Likewise.
47972         * string/test-mempcpy-ifunc.c: Likewise.
47973         * string/test-memrchr-ifunc.c: Likewise.
47974         * string/test-memset-ifunc.c: Likewise.
47975         * string/test-rawmemchr-ifunc.c: Likewise.
47976         * string/test-stpcpy-ifunc.c: Likewise.
47977         * string/test-stpncpy-ifunc.c: Likewise.
47978         * string/test-strcasecmp-ifunc.c: Likewise.
47979         * string/test-strcasestr-ifunc.c: Likewise.
47980         * string/test-strcat-ifunc.c: Likewise.
47981         * string/test-strchr-ifunc.c: Likewise.
47982         * string/test-strchrnul-ifunc.c: Likewise.
47983         * string/test-strcmp-ifunc.c: Likewise.
47984         * string/test-strcpy-ifunc.c: Likewise.
47985         * string/test-strcspn-ifunc.c: Likewise.
47986         * string/test-strlen-ifunc.c: Likewise.
47987         * string/test-strncasecmp-ifunc.c: Likewise.
47988         * string/test-strncat-ifunc.c: Likewise.
47989         * string/test-strncmp-ifunc.c: Likewise.
47990         * string/test-strncpy-ifunc.c: Likewise.
47991         * string/test-strnlen-ifunc.c: Likewise.
47992         * string/test-strpbrk-ifunc.c: Likewise.
47993         * string/test-strrchr-ifunc.c: Likewise.
47994         * string/test-strspn-ifunc.c: Likewise.
47995         * string/test-strstr-ifunc.c: Likewise.
47996
47997 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47998
47999         * benchtests/Makefile: Remove ifunc tests.
48000         * benchtests/bench-string.h: Define TEST_IFUNC.
48001         * benchtests/bench-bcopy-ifunc.c: Remove.
48002         * benchtests/bench-bzero-ifunc.c: Likewise.
48003         * benchtests/bench-memccpy-ifunc.c: Likewise.
48004         * benchtests/bench-memchr-ifunc.c: Likewise.
48005         * benchtests/bench-memcmp-ifunc.c: Likewise.
48006         * benchtests/bench-memcpy-ifunc.c: Likewise.
48007         * benchtests/bench-memmem-ifunc.c: Likewise.
48008         * benchtests/bench-memmove-ifunc.c: Likewise.
48009         * benchtests/bench-mempcpy-ifunc.c: Likewise.
48010         * benchtests/bench-memrchr-ifunc.c: Likewise.
48011         * benchtests/bench-memset-ifunc.c: Likewise.
48012         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
48013         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
48014         * benchtests/bench-stpcpy-ifunc.c: Likewise.
48015         * benchtests/bench-stpncpy-ifunc.c: Likewise.
48016         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
48017         * benchtests/bench-strcasestr-ifunc.c: Likewise.
48018         * benchtests/bench-strcat-ifunc.c: Likewise.
48019         * benchtests/bench-strchr-ifunc.c: Likewise.
48020         * benchtests/bench-strchrnul-ifunc.c: Likewise.
48021         * benchtests/bench-strcmp-ifunc.c: Likewise.
48022         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
48023         * benchtests/bench-strcpy-ifunc.c: Likewise.
48024         * benchtests/bench-strcspn-ifunc.c: Likewise.
48025         * benchtests/bench-strlen-ifunc.c: Likewise.
48026         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
48027         * benchtests/bench-strncat-ifunc.c: Likewise.
48028         * benchtests/bench-strncmp-ifunc.c: Likewise.
48029         * benchtests/bench-strncpy-ifunc.c: Likewise.
48030         * benchtests/bench-strnlen-ifunc.c: Likewise.
48031         * benchtests/bench-strpbrk-ifunc.c: Likewise.
48032         * benchtests/bench-strrchr-ifunc.c: Likewise.
48033         * benchtests/bench-strsep-ifunc.c: Likewise.
48034         * benchtests/bench-strspn-ifunc.c: Likewise.
48035         * benchtests/bench-strstr-ifunc.c: Likewise.
48036
48037 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48038
48039         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
48040
48041 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
48042
48043         * resolv/netdb.h: Use __glibc_reserved instead __unused.
48044         * rt/aio.h: Likewise.
48045         * sysdeps/gnu/bits/utmp.h: Likewise.
48046         * sysdeps/gnu/bits/utmpx.h: Likewise.
48047         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
48048         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
48049         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
48050         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
48051         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
48052         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
48053         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
48054         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
48055         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
48056         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
48057         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
48058         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
48059         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
48060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
48061         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
48062         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
48063         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
48064         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
48065         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
48066         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
48067         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
48068         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
48069         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
48070         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
48071         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
48072         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
48073         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
48074         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
48075         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
48076         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
48077         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
48078         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
48079         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
48080         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
48081         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
48082         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
48083         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
48084         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
48085         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
48086         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
48087         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
48088         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48089
48090 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
48091
48092         [BZ #16245]
48093         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
48094         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
48095
48096 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
48097
48098         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
48099         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
48100         Likewise.
48101
48102 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48103
48104         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
48105         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
48106         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
48107         (__fesetround): Remove define.
48108         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
48109         rounding and exceptions handling.
48110         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
48111         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
48112         (__fe_nomask_env): Likewise.
48113         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
48114         __fegetround instead of fegetround.
48115         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
48116         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
48117
48118 2013-11-21  Roland McGrath  <roland@hack.frob.com>
48119
48120         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
48121         it's there.
48122
48123         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
48124
48125 2013-11-21  Meador Inge  <meadori@codesourcery.com>
48126
48127         [BZ #11157]
48128         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
48129         (encrypt_r): Likewise.
48130         * malloc/obstack.h (obstack_free): Likewise.
48131         * posix/unistd.h (encrypt): Likewise.
48132
48133 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
48134
48135         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
48136         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
48137         DL_CALL_DT_FINI() that call the functions directly.
48138         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
48139         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
48140         * elf/dl-fini.c: Likewise.
48141
48142 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
48143
48144         * malloc/hooks.c (memalign_check): Add alignment rounding.
48145         * malloc/malloc.c (_mid_memalign): New function.
48146         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
48147         Implement by calling _mid_memalign.
48148         * manual/probes.texi (Memory Allocation Probes): Remove
48149         memory_valloc_retry and memory_pvalloc_retry.
48150
48151 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48152
48153         * locale/programs/locarchive.c (open_archive): Add const
48154         qualifier to ARCHIVEFNAME and copy default fname to
48155         DEFAULT_FNAME.
48156
48157         [BZ #15601]
48158         * libio/tst-widetext.input: Rename Oriya to Odia.
48159         * locale/iso-639.def: Likewise.
48160
48161         * manual/probes.texi (Mathematical Function Probes): Add
48162         documentation for sin, cos, asin and acos probes.
48163         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
48164         (__sin32): Add slowasin probe.
48165         (__cos32): Add slowacos probe.
48166         (__mpsin): Add slowsin probe.
48167         (__mpcos): Add slowcos probe.
48168
48169 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
48170
48171         [BZ #15483]
48172         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
48173         thread-local __sim_exceptions_thread and global
48174         __sim_exceptions_global.
48175         (__sim_disabled_exceptions): Change to thread-local
48176         __sim_disabled_exceptions_thread and global
48177         __sim_disabled_exceptions_global.
48178         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48179         and global __sim_round_mode_global.
48180         (__simulate_exceptions): Use thread-local floating-point state and
48181         set global state from it as needed.
48182         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
48183         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
48184         __sim_round_mode_thread.
48185         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
48186         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
48187         and global __sim_exceptions_global.
48188         (__sim_disabled_exceptions): Change to thread-local
48189         __sim_disabled_exceptions_thread and global
48190         __sim_disabled_exceptions_global.
48191         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48192         and global __sim_round_mode_global.
48193         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
48194         (SIM_SET_GLOBAL): Likewise.
48195         * sysdeps/powerpc/soft-fp/sfp-machine.h
48196         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
48197         __sim_round_mode_thread.
48198         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
48199         __sim_disabled_exceptions_thread.
48200         (__sim_exceptions): Change to __sim_exceptions_thread.
48201         (__sim_disabled_exceptions): Change to
48202         __sim_disabled_exceptions_thread.
48203         (__sim_round_mode): Change to __sim_round_mode_thread.
48204         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
48205         thread-local floating-point state and set global state from it as
48206         needed.
48207         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
48208         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
48209         (__sim_disabled_exceptions): Remove extern declaration.
48210         (feenableexcept): Use thread-local floating-point state and set
48211         global state from it as needed.
48212         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
48213         extern declaration.
48214         (__sim_disabled_exceptions): Likewise.
48215         (__sim_round_mode): Likewise.
48216         (__fegetenv): Use thread-local floating-point state.
48217         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
48218         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
48219         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
48220         floating-point state and set global state from it as needed.
48221         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
48222         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
48223         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
48224         Likewise.
48225         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
48226         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
48227         Likewise.
48228         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
48229         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
48230         Use __sim_round_mode_thread.
48231         * math/test-fenv-tls.c: New file.
48232         * math/Makefile (tests): Add test-fenv-tls.
48233         ($(objpfx)test-fenv-tls): Depend on
48234         $(common-objpfx)nptl/libpthread.so.
48235
48236 2013-11-19  Andreas Schwab  <schwab@suse.de>
48237
48238         * locale/programs/locale.c (show_info): Decode wordarray elements.
48239         * locale/categories.def (LC_MONETARY): Add element for
48240         _NL_MONETARY_CRNCYSTR.
48241         * locale/C-monetary.c (conversion_rate): New variable.
48242         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
48243         element.
48244
48245 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
48246
48247         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
48248         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
48249
48250 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
48251
48252         * elf/Makefile (tst-auxv): New test.
48253         * elf/tst-auxv.c: New
48254         * elf/rtld.c (dl_main): Adjust AT_EXECFN
48255
48256 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
48257
48258         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
48259         (hidden_proto): Caller changed.
48260         (hidden_tls_proto): New macro.
48261         (libc_hidden_tls_proto): Likewise.
48262         (rtld_hidden_tls_proto): Likewise.
48263         (libm_hidden_tls_proto): Likewise.
48264         (libresolv_hidden_tls_proto): Likewise.
48265         (librt_hidden_tls_proto): Likewise.
48266         (libdl_hidden_tls_proto): Likewise.
48267         (libnss_files_hidden_tls_proto): Likewise.
48268         (libnsl_hidden_tls_proto): Likewise.
48269         (libnss_nisplus_hidden_tls_proto): Likewise.
48270         (libutil_hidden_tls_proto): Likewise.
48271
48272 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
48273
48274         [BZ #10253]
48275         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
48276         (decompose_rpath): Defer expansion to fillin_rpath.
48277         (_dl_init_paths): Pass linkmap to fillin_rpath.
48278
48279 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
48280
48281         * benchtests/Makefile: Add strsep.
48282         * benchtests/bench-strsep.c: New file: strsep benchtest.
48283         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
48284
48285 2013-11-18  Andreas Schwab  <schwab@suse.de>
48286
48287         * locale/programs/locale.c (show_info) [case byte]: Check for
48288         '\377' instead of '\177'.
48289         * locale/C-monetary.c (not_available): Always use "\377".
48290         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
48291         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
48292         detect unavailable sign_posn locale elements.
48293         * locale/localeconv.c (__localeconv): For grouping and
48294         mon_grouping handle "\177" and "\377" like no grouping.
48295         (INT_ELEM): New macro.  Use it to set all numeric members.
48296         * locale/programs/ld-monetary.c (monetary_read)
48297         <tok_mon_grouping>: Normalize single -1 to the empty string.
48298         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
48299         Likewise.
48300
48301 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48302
48303         [BZ #16055]
48304         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
48305         when we match (nil).
48306         * stdio-common/tst-sscanf.c (struct test): Add testcase.
48307
48308 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
48309
48310         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
48311         (NO_TEST_INLINE): Update value.
48312         (ERRNO_UNCHANGED): Likewise.
48313         (ERRNO_EDOM): Likewise.
48314         (ERRNO_ERANGE): Likewise.
48315         (IGNORE_RESULT): Likewise.
48316         (check_float_internal): Check signs of NaN results if
48317         TEST_NAN_SIGN used.
48318         (check_complex): Pass TEST_NAN_SIGN flag through to second
48319         check_float_internal call.
48320         (copysign_test_data): Add tests with quiet NaNs as second
48321         argument.  Use TEST_NAN_SIGN.
48322         (fabs_test_data): Add test of negative quiet NaN argument.  Use
48323         TEST_NAN_SIGN.
48324         (signbit_test_data): Add tests of quiet NaN argument.
48325         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
48326
48327         * math/gen-libm-test.pl (show_exceptions): Take extra argument
48328         $ignore_result.
48329         (parse_args): Handle function results specified as IGNORE.
48330         * math/libm-test.inc (IGNORE_RESULT): New macro.
48331         (check_float_internal): Do not check numerical result if flag
48332         IGNORE_RESULT set.
48333         (check_complex): Pass through IGNORE_RESULT to second
48334         check_float_internal call.
48335         (check_int): Do not check numerical result if flag IGNORE_RESULT
48336         set.
48337         (check_long): Likewise.
48338         (check_bool): Likewise.
48339         (check_longlong): Likewise.
48340         (lrint_test_data): Add tests of infinite and NaN arguments.
48341         (lrint_tonearest_test_data): Likewise.
48342         (lrint_towardzero_test_data): Likewise.
48343         (lrint_downward_test_data): Likewise.
48344         (lrint_upward_test_data): Likewise.
48345         (llrint_test_data): Likewise.
48346         (llrint_tonearest_test_data): Likewise.
48347         (llrint_towardzero_test_data): Likewise.
48348         (llrint_downward_test_data): Likewise.
48349         (llrint_upward_test_data): Likewise.
48350         (lround_test_data): Likewise.
48351         (llround_test_data): Likewise.
48352
48353         * math/libm-test.inc (NO_TEST_INLINE): New macro.
48354         (ERRNO_UNCHANGED): Update value.
48355         (ERRNO_EDOM): Likewise.
48356         (ERRNO_ERANGE): Likewise.
48357         (NO_TEST_INLINE_FLOAT): New macro.
48358         (NO_TEST_INLINE_DOUBLE): Likewise.
48359         (enable_test): New function.
48360         (RUN_TEST_f_f): Check enable_test before running test.
48361         (RUN_TEST_2_f): Likewise.
48362         (RUN_TEST_fff_f): Likewise.
48363         (RUN_TEST_c_f): Likewise.
48364         (RUN_TEST_f_f1): Likewise.
48365         (RUN_TEST_fF_f1): Likewise.
48366         (RUN_TEST_fI_f1): Likewise.
48367         (RUN_TEST_ffI_f1): Likewise.
48368         (RUN_TEST_c_c): Likewise.
48369         (RUN_TEST_cc_c): Likewise.
48370         (RUN_TEST_f_i): Likewise.
48371         (RUN_TEST_f_i_tg): Likewise.
48372         (RUN_TEST_ff_i_tg): Likewise.
48373         (RUN_TEST_f_b): Likewise.
48374         (RUN_TEST_f_b_tg): Likewise.
48375         (RUN_TEST_f_l): Likewise.
48376         (RUN_TEST_f_L): Likewise.
48377         (RUN_TEST_fFF_11): Likewise.
48378         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
48379         conditionals.
48380         (cosh_test_data): Likewise.
48381         (exp_test_data): Likewise.
48382         (expm1_test_data): Likewise.
48383         (hypot_test_data): Likewise.
48384         (pow_test_data): Likewise.
48385         (sinh_test_data): Likewise.
48386         (tanh_test_data): Likewise.
48387         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
48388         flags argument.
48389
48390         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
48391         tests with quiet NaN input and output.
48392         (acosh_test_data): Likewise.
48393         (asin_test_data): Likewise.
48394         (asinh_test_data): Likewise.
48395         (atan_test_data): Likewise.
48396         (atanh_test_data): Likewise.
48397         (atan2_test_data): Likewise.
48398         (cbrt_test_data): Likewise.
48399         (cos_test_data): Likewise.
48400         (cosh_test_data): Likewise.
48401         (erf_test_data): Likewise.
48402         (erfc_test_data): Likewise.
48403         (exp_test_data): Likewise.
48404         (exp10_test_data): Likewise.
48405         (exp2_test_data): Likewise.
48406         (expm1_test_data): Likewise.
48407         (hypot_test_data): Likewise.
48408         (j0_test_data): Likewise.
48409         (j1_test_data): Likewise.
48410         (jn_test_data): Likewise.
48411         (lgamma_test_data): Likewise.
48412         (log_test_data): Likewise.
48413         (log10_test_data): Likewise.
48414         (log1p_test_data): Likewise.
48415         (log2_test_data): Likewise.
48416         (pow_test_data): Likewise.
48417         (scalb_test_data): Likewise.
48418         (sin_test_data): Likewise.
48419         (sincos_test_data): Likewise.
48420         (sinh_test_data): Likewise.
48421         (tan_test_data): Likewise.
48422         (tanh_test_data): Likewise.
48423         (tgamma_test_data): Likewise.
48424         (y0_test_data): Likewise.
48425         (y1_test_data): Likewise.
48426         (yn_test_data): Likewise.
48427
48428         [BZ #16167]
48429         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
48430         argument being NaN and avoid computations with second argument in
48431         that case.
48432         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
48433         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
48434         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
48435
48436 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
48437
48438         * locale/iso-639.def: Add Chitwani Tharu (the).
48439
48440 2013-11-14  Andreas Schwab  <schwab@suse.de>
48441
48442         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
48443         word instead of empty string.
48444
48445 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48446
48447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48448         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
48449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48450         (__fe_nomask_env): Likewise.
48451
48452 2013-11-13  Steve Ellcey  <sellcey@mips.com>
48453
48454         * benchtests/bench-timing.h: Include time.h.
48455
48456 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
48457
48458         [BZ #15997]
48459         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
48460         to 3.4.0 for x32.
48461         * sysdeps/unix/sysv/linux/configure: Regenerated.
48462
48463 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
48464
48465         [BZ #16151]
48466         * stdlib/strtod_l.c (round_and_return): Do not consider
48467         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
48468         exponent one less than half the least subnormal exponent.
48469         * stdlib/test-strtod-round-data: Add more tests.
48470         * stdlib/tst-strtod-round.c (tests): Regenerated.
48471
48472 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48473
48474         [BZ #14143]
48475         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
48476         (__fe_mask_env): Likewise.
48477         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
48478         libm_hidden_proto and add function prototype.
48479         (__fe_mask_env): Add function prototype.
48480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48481         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
48482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
48483         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
48484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48485         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
48486
48487 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48488
48489         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
48490         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
48491
48492 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48493
48494         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
48495         of htab_find_slot().
48496
48497 2013-11-11  David S. Miller  <davem@davemloft.net>
48498
48499         [BZ #16150]
48500         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
48501         symbol in the non-vis3 case in static builds.
48502         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
48503         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
48504         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
48505         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
48506
48507 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
48508
48509         [BZ #387]
48510         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
48511         it is empty.
48512
48513 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48514
48515         * benchtests/Makefile: Add bench-strtod.
48516         * benchtests/bench-strtod.c: New file: strtod benchtest
48517
48518 2013-11-11  Andreas Schwab  <schwab@suse.de>
48519
48520         [BZ #16153]
48521         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
48522         terminating NUL in key length.
48523
48524 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48525
48526         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48527         Add artificial ODP entry for vDSO symbol for PPC64.
48528         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
48529         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
48530
48531 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48532
48533         [BZ #15374]
48534         * nss/getent.c (services_keys): Recognize services starting with digit.
48535
48536 2013-11-06  David S. Miller  <davem@davemloft.net>
48537
48538         [BZ #15985]
48539         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
48540         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
48541
48542 2013-11-06  Will Newton  <will.newton@linaro.org>
48543
48544         * manual/memory.texi (Malloc Examples): Remove register
48545         keyword from examples.
48546
48547 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
48548
48549         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
48550
48551 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
48552
48553         [BZ #6981]
48554         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
48555         depending on [__GCC_IEC_559 > 0].
48556         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
48557         depending on [__GCC_IEC_559_COMPLEX > 0].
48558
48559 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
48560
48561         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
48562         to iso-639.def.
48563
48564 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
48565
48566         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
48567
48568 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
48569
48570         [BZ #16112]
48571         * malloc/malloc (malloc_info): Do not handle first bin as
48572         special case.
48573
48574 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
48575
48576         * locale/iso-639.def: Add Central Nahuatl (nhn).
48577
48578 2013-11-01  Bruno Haible  <bruno@clisp.org>
48579
48580         [BZ #7003]
48581         * manual/math.texi (BSD Random): Specify range upper bound as
48582         in POSIX.
48583
48584 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
48585
48586         * locale/iso-639.def: Add Meadow Mari (mhr).
48587
48588 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
48589
48590         [BZ #14752], [BZ #15763]
48591         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
48592         Validate name.
48593         * rt/tst_shm.c: Add test for escaping directory.
48594
48595 2013-10-31  Andreas Schwab  <schwab@suse.de>
48596
48597         [BZ #15917]
48598         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
48599         followed by 'x' as part of digit sequence.
48600         * stdio-common/tst-sscanf.c (double_tests2): New tests.
48601
48602 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
48603
48604         [BZ #16037]
48605         * configure.ac: allow GNU Make 4.0 and greater.
48606         * configure: Regenerated.
48607
48608 2013-10-30  Will Newton  <will.newton@linaro.org>
48609
48610         [BZ #16038]
48611         * malloc/hooks.c (memalign_check): Limit alignment to the
48612         maximum representable power of two.
48613         * malloc/malloc.c (__libc_memalign): Likewise.
48614         * malloc/tst-memalign.c (do_test): Add test for very
48615         large alignment values.
48616         * malloc/tst-posix_memalign.c (do_test): Likewise.
48617
48618 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48619
48620         [BZ #11087]
48621         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
48622         (munmap_chunk): Likewise.
48623         (mremap_chunk): Likewise.
48624
48625 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48626
48627         [BZ #15799]
48628         * stdlib/div.c (div): Remove obsolete code.
48629         * stdlib/ldiv.c (ldiv): Likewise.
48630         * stdlib/lldiv.c (lldiv): Likewise.
48631
48632 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48633
48634         [BZ #16071]
48635         * nss/nss_files/files-XXX.c (get_contents_ret): New
48636         enumerator.
48637         (get_contents): New function.
48638         (internal_getent): Use it.  Expand size of LINEBUFLEN.
48639
48640 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
48641
48642         * configure.in: Moved to ...
48643         * configure.ac: ... here. Change reference to configure.in
48644         to configure.ac.
48645         * sysdeps/arm/preconfigure.ac: ... here.
48646         configure.in to configure.ac.
48647         * sysdeps/gnu/configure.in: Moved to ...
48648         * sysdeps/gnu/configure.ac: ... here.
48649         * sysdeps/i386/configure.in: Moved to ...
48650         * sysdeps/i386/configure.ac: ... here.
48651         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
48652         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
48653         * sysdeps/mach/configure.in: Moved to ...
48654         * sysdeps/mach/configure.ac: ... here.
48655         * sysdeps/mach/hurd/configure.in: Moved to ...
48656         * sysdeps/mach/hurd/configure.ac: ... here.
48657         * sysdeps/powerpc/configure.in: Moved to ...
48658         * sysdeps/powerpc/configure.ac: ... here.
48659         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
48660         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
48661         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
48662         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
48663         * sysdeps/s390/s390-32/configure.in: Moved to ...
48664         * sysdeps/s390/s390-32/configure.ac: ... here.
48665         * sysdeps/s390/s390-64/configure.in: Moved to ...
48666         * sysdeps/s390/s390-64/configure.ac: ... here.
48667         * sysdeps/sh/configure.in: Moved to ...
48668         * sysdeps/sh/configure.ac: ... here.
48669         * sysdeps/sparc/configure.in: Moved to ...
48670         * sysdeps/sparc/configure.ac: ... here.
48671         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
48672         * sysdeps/unix/sysv/linux/configure.ac: ... here.
48673         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
48674         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
48675         * sysdeps/x86_64/configure.in: Moved to ...
48676         * sysdeps/x86_64/configure.ac: ... here.
48677         * sysdeps/x86_64/preconfigure.in: Moved to ...
48678         * sysdeps/x86_64/preconfigure.ac: ... here.
48679         * aclocal.m4: Change reference to configure.in to configure.ac.
48680         * config.h.in: Likewise.
48681         * manual/install.texi: Likewise.
48682         * manual/maint.texi: Likewise.
48683         * Makefile: Likewise.
48684         * malloc/Makefile: Likewise.
48685         * nscd/Makefile: Likewise.
48686         * Makeconfig: Change reference to configure.in and
48687         preconfigure.in to configure.ac and preconfigure.ac
48688         respectively.
48689         * INSTALL: Regenerated.
48690         * configure: Likewise.
48691         * sysdeps/gnu/configure: Likewise.
48692         * sysdeps/i386/configure: Likewise.
48693         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
48694         * sysdeps/mach/configure: Likewise.
48695         * sysdeps/mach/hurd/configure: Likewise.
48696         * sysdeps/powerpc/configure: Likewise.
48697         * sysdeps/powerpc/powerpc32/configure: Likewise.
48698         * sysdeps/powerpc/powerpc64/configure: Likewise.
48699         * sysdeps/s390/s390-32/configure: Likewise.
48700         * sysdeps/s390/s390-64/configure: Likewise.
48701         * sysdeps/sh/configure: Likewise.
48702         * sysdeps/sparc/configure: Likewise.
48703         * sysdeps/unix/sysv/linux/configure: Likewise.
48704         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
48705         * sysdeps/x86_64/configure: Likewise.
48706         * sysdeps/x86_64/preconfigure: Likewise.
48707
48708 2013-10-29  Andreas Schwab  <schwab@suse.de>
48709
48710         * stdio-common/Makefile (tst-swscanf-ENV): Define.
48711
48712 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48713
48714         * benchtests/pow-inputs: Add new inputs.
48715
48716         * benchtests/exp-inputs: Add new inputs.
48717
48718         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
48719         conditional check for return value.
48720         (__cos32): Likewise.
48721
48722 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48723
48724         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
48725         to provide a boost for large inputs with word alignment.
48726         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
48727         implementation based on optimized PPC64 strcpy.
48728         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
48729         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
48730         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
48731         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
48732
48733 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48734
48735         [BZ #2801]
48736         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
48737
48738 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48739
48740         [BZ #14876]
48741         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
48742         * time/tst-strptime.c (day_tests): Add testcase.
48743
48744 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48745
48746         [BZ #14029]
48747         * manual/pattern.texi: Acknowledge that fnmatch can fail.
48748
48749 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
48750
48751         [BZ #16074]
48752         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
48753         MAP_FAILED on error.
48754
48755 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48756
48757         [BZ #16072]
48758         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
48759         heap for large requests.
48760
48761 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
48762
48763         [BZ #9954]
48764         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
48765         result if the result has no associated interface.
48766         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
48767         interface for all 127.X.Y.Z addresses.
48768
48769 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
48770
48771         * locale/iso-639.def: Add Ligurian (lij)
48772
48773 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
48774
48775         [BZ #15825]
48776         * sunrpc/rpc_main.c: Document rpcgen -5.
48777
48778 2013-10-19  Michael Stahl  <mstahl@redhat.com>
48779
48780         * elf/rtld.c (do_preload): Print the reason why preloading failed.
48781
48782 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48783
48784         [BZ #10278]
48785         * posix/glob.c: Match only directories when trailing slash is present.
48786         * posix/tst-gnuglob.c (my_opendir): Do not open files.
48787         (main): Add testcase.
48788
48789 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48790
48791         [BZ #15670]
48792         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
48793
48794 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
48795
48796         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
48797         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
48798         AUTH_DES and cindex for FIPS 140-2.
48799         (DES Encryption): Add cindex FIPS 46-3.
48800
48801         * locale/locarchive.h (struct locarhandle): Add fname.
48802         * locale/programs/localedef.c (main): Pass ARGV[remaining]
48803         if an optional argument was specified to --list-archive,
48804         otherwise NULL.
48805         * locale/programs/locarchive.c (show_archive_content): Take new
48806         argument fname and pass it via ah.fname to open_archive.
48807         * locale/programs/localedef.h: Update decl.
48808         (open_archive): If AH->fname is non-null, open that file
48809         rather than the default file name, and don't ignore ENOENT.
48810         (create_archive): Set AH.fname to NULL.
48811         (delete_locales_from_archive): Likewise.
48812         (add_locales_to_archive): Likewise.
48813         * locale/programs/locfile.c (write_all_categories): Likewise.
48814
48815 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
48816             Aldy Hernandez  <aldyh@redhat.com>
48817
48818         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
48819         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
48820         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
48821         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
48822         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
48823         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
48824         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
48825         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
48826         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
48827         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
48828         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
48829         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
48830         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
48831         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
48832         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
48833         Likewise.
48834         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
48835         Likewise.
48836         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
48837         Likewise.
48838         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
48839         Likewise.
48840         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
48841         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
48842         Likewise.
48843         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
48844         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
48845         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
48846         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
48847         Likewise.
48848         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
48849         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
48850         * sysdeps/powerpc/preconfigure: Likewise.
48851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
48852         Likewise.
48853         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
48854         Replace contents of file by #include of <fenv_libc.h>.
48855         * sysdeps/powerpc/soft-fp/sfp-machine.h
48856         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
48857         and <sys/prctl.h>.
48858         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
48859         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
48860         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
48861         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
48862         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
48863         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
48864         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
48865         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
48866         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
48867         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
48868         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
48869         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
48870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
48871         Allow copysignl PLT reference to be missing.
48872
48873 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
48874             Joseph Myers  <joseph@codesourcery.com
48875
48876         [BZ #15948]
48877         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
48878         single character.
48879         (add_to_tablewc): Assert sequence of wide characters is nonempty.
48880
48881 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
48882
48883         * elf/tst-tls-dlinfo.c: Don't include tls.h.
48884         * elf/tst-tls1.c: Likewise.
48885         * elf/tst-tls10.h: Likewise.
48886         * elf/tst-tls14.c: Likewise.
48887         * elf/tst-tls2.c: Likewise.
48888         * elf/tst-tls3.c: Likewise.
48889         * elf/tst-tls4.c: Likewise.
48890         * elf/tst-tls5.c: Likewise.
48891         * elf/tst-tls6.c: Likewise.
48892         * elf/tst-tls7.c: Likewise.
48893         * elf/tst-tls8.c: Likewise.
48894         * elf/tst-tls9.c: Likewise.
48895         * elf/tst-tlsmod1.c: Likewise.
48896         * elf/tst-tlsmod13.c: Likewise.
48897         * elf/tst-tlsmod13a.c: Likewise.
48898         * elf/tst-tlsmod14a.c: Likewise.
48899         * elf/tst-tlsmod16a.c: Likewise.
48900         * elf/tst-tlsmod16b.c: Likewise.
48901         * elf/tst-tlsmod2.c: Likewise.
48902         * elf/tst-tlsmod3.c: Likewise.
48903         * elf/tst-tlsmod4.c: Likewise.
48904         * elf/tst-tlsmod5.c: Likewise.
48905         * elf/tst-tlsmod6.c: Likewise.
48906
48907 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
48908
48909         [BZ #12486]
48910         * malloc/malloc.c: remove checks for statistics.
48911
48912 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48913
48914         [BZ #15277]
48915         * inet/inet_net.c (inet_network): Detect additional invalid strings.
48916         * inet/tst-network.c: Add testcase.
48917
48918 2013-10-17  Andreas Schwab  <schwab@suse.de>
48919
48920         [BZ #15218]
48921         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
48922         to determine canonical name.
48923
48924 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48925
48926         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
48927         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
48928         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48929         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
48930         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48931         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
48932         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48933         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
48934         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
48935         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
48936         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
48937         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48938         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
48939         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
48940         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
48941         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
48942         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48943         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
48944         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
48945         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
48946         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48947         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48948         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
48949         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
48950         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
48951         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
48952         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
48953         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
48954         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
48955         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
48956         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
48957         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48958         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
48959         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
48960         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
48961         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
48962         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
48963         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
48964         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
48965         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48966         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
48967         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
48968         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
48969         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
48970         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
48971         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
48972         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
48973         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
48974         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
48975         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
48976         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
48977         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
48978         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
48979         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
48980         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
48981         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
48982         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48983         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
48984
48985 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
48986
48987         [BZ #16041]
48988         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
48989         make result into a quiet NaN.
48990
48991 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
48992
48993         * soft-fp/adddf3.c: Fix horizontal whitespace.
48994         * soft-fp/addsf3.c: Likewise.
48995         * soft-fp/addtf3.c: Likewise.
48996         * soft-fp/divdf3.c: Likewise.
48997         * soft-fp/divsf3.c: Likewise.
48998         * soft-fp/divtf3.c: Likewise.
48999         * soft-fp/double.h: Likewise.
49000         * soft-fp/eqdf2.c: Likewise.
49001         * soft-fp/eqsf2.c: Likewise.
49002         * soft-fp/eqtf2.c: Likewise.
49003         * soft-fp/extenddftf2.c: Likewise.
49004         * soft-fp/extended.h: Likewise.
49005         * soft-fp/extendsfdf2.c: Likewise.
49006         * soft-fp/extendsftf2.c: Likewise.
49007         * soft-fp/extendxftf2.c: Likewise.
49008         * soft-fp/fixdfdi.c: Likewise.
49009         * soft-fp/fixdfsi.c: Likewise.
49010         * soft-fp/fixdfti.c: Likewise.
49011         * soft-fp/fixsfdi.c: Likewise.
49012         * soft-fp/fixsfsi.c: Likewise.
49013         * soft-fp/fixsfti.c: Likewise.
49014         * soft-fp/fixtfdi.c: Likewise.
49015         * soft-fp/fixtfsi.c: Likewise.
49016         * soft-fp/fixtfti.c: Likewise.
49017         * soft-fp/fixunsdfdi.c: Likewise.
49018         * soft-fp/fixunsdfsi.c: Likewise.
49019         * soft-fp/fixunsdfti.c: Likewise.
49020         * soft-fp/fixunssfdi.c: Likewise.
49021         * soft-fp/fixunssfsi.c: Likewise.
49022         * soft-fp/fixunssfti.c: Likewise.
49023         * soft-fp/fixunstfdi.c: Likewise.
49024         * soft-fp/fixunstfsi.c: Likewise.
49025         * soft-fp/fixunstfti.c: Likewise.
49026         * soft-fp/floatdidf.c: Likewise.
49027         * soft-fp/floatdisf.c: Likewise.
49028         * soft-fp/floatditf.c: Likewise.
49029         * soft-fp/floatsidf.c: Likewise.
49030         * soft-fp/floatsisf.c: Likewise.
49031         * soft-fp/floatsitf.c: Likewise.
49032         * soft-fp/floattidf.c: Likewise.
49033         * soft-fp/floattisf.c: Likewise.
49034         * soft-fp/floattitf.c: Likewise.
49035         * soft-fp/floatundidf.c: Likewise.
49036         * soft-fp/floatundisf.c: Likewise.
49037         * soft-fp/floatunditf.c: Likewise.
49038         * soft-fp/floatunsidf.c: Likewise.
49039         * soft-fp/floatunsisf.c: Likewise.
49040         * soft-fp/floatunsitf.c: Likewise.
49041         * soft-fp/floatuntidf.c: Likewise.
49042         * soft-fp/floatuntisf.c: Likewise.
49043         * soft-fp/floatuntitf.c: Likewise.
49044         * soft-fp/fmadf4.c: Likewise.
49045         * soft-fp/fmasf4.c: Likewise.
49046         * soft-fp/fmatf4.c: Likewise.
49047         * soft-fp/gedf2.c: Likewise.
49048         * soft-fp/gesf2.c: Likewise.
49049         * soft-fp/getf2.c: Likewise.
49050         * soft-fp/ledf2.c: Likewise.
49051         * soft-fp/lesf2.c: Likewise.
49052         * soft-fp/letf2.c: Likewise.
49053         * soft-fp/muldf3.c: Likewise.
49054         * soft-fp/mulsf3.c: Likewise.
49055         * soft-fp/multf3.c: Likewise.
49056         * soft-fp/negdf2.c: Likewise.
49057         * soft-fp/negsf2.c: Likewise.
49058         * soft-fp/negtf2.c: Likewise.
49059         * soft-fp/op-1.h: Likewise.
49060         * soft-fp/op-2.h: Likewise.
49061         * soft-fp/op-4.h: Likewise.
49062         * soft-fp/op-8.h: Likewise.
49063         * soft-fp/op-common.h: Likewise.
49064         * soft-fp/quad.h: Likewise.
49065         * soft-fp/single.h: Likewise.
49066         * soft-fp/soft-fp.h: Likewise.
49067         * soft-fp/sqrtdf2.c: Likewise.
49068         * soft-fp/sqrtsf2.c: Likewise.
49069         * soft-fp/sqrttf2.c: Likewise.
49070         * soft-fp/subdf3.c: Likewise.
49071         * soft-fp/subsf3.c: Likewise.
49072         * soft-fp/subtf3.c: Likewise.
49073         * soft-fp/truncdfsf2.c: Likewise.
49074         * soft-fp/trunctfdf2.c: Likewise.
49075         * soft-fp/trunctfsf2.c: Likewise.
49076         * soft-fp/trunctfxf2.c: Likewise.
49077         * soft-fp/unorddf2.c: Likewise.
49078         * soft-fp/unordsf2.c: Likewise.
49079         * soft-fp/unordtf2.c: Likewise.
49080
49081 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
49082
49083         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
49084         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
49085
49086 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
49087
49088         * elf/dl-libc.c: Clear initfini list after freeing.
49089
49090 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
49091
49092         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
49093         * soft-fp/addsf3.c: Likewise.
49094         * soft-fp/addtf3.c: Likewise.
49095         * soft-fp/divdf3.c: Likewise.
49096         * soft-fp/divsf3.c: Likewise.
49097         * soft-fp/divtf3.c: Likewise.
49098         * soft-fp/double.h: Likewise.
49099         * soft-fp/eqdf2.c: Likewise.
49100         * soft-fp/eqsf2.c: Likewise.
49101         * soft-fp/eqtf2.c: Likewise.
49102         * soft-fp/extenddftf2.c: Likewise.
49103         * soft-fp/extended.h: Likewise.
49104         * soft-fp/extendsfdf2.c: Likewise.
49105         * soft-fp/extendsftf2.c: Likewise.
49106         * soft-fp/extendxftf2.c: Likewise.
49107         * soft-fp/fixdfdi.c: Likewise.
49108         * soft-fp/fixdfsi.c: Likewise.
49109         * soft-fp/fixdfti.c: Likewise.
49110         * soft-fp/fixsfdi.c: Likewise.
49111         * soft-fp/fixsfsi.c: Likewise.
49112         * soft-fp/fixsfti.c: Likewise.
49113         * soft-fp/fixtfdi.c: Likewise.
49114         * soft-fp/fixtfsi.c: Likewise.
49115         * soft-fp/fixtfti.c: Likewise.
49116         * soft-fp/fixunsdfdi.c: Likewise.
49117         * soft-fp/fixunsdfsi.c: Likewise.
49118         * soft-fp/fixunsdfti.c: Likewise.
49119         * soft-fp/fixunssfdi.c: Likewise.
49120         * soft-fp/fixunssfsi.c: Likewise.
49121         * soft-fp/fixunssfti.c: Likewise.
49122         * soft-fp/fixunstfdi.c: Likewise.
49123         * soft-fp/fixunstfsi.c: Likewise.
49124         * soft-fp/fixunstfti.c: Likewise.
49125         * soft-fp/floatdidf.c: Likewise.
49126         * soft-fp/floatdisf.c: Likewise.
49127         * soft-fp/floatditf.c: Likewise.
49128         * soft-fp/floatsidf.c: Likewise.
49129         * soft-fp/floatsisf.c: Likewise.
49130         * soft-fp/floatsitf.c: Likewise.
49131         * soft-fp/floattidf.c: Likewise.
49132         * soft-fp/floattisf.c: Likewise.
49133         * soft-fp/floattitf.c: Likewise.
49134         * soft-fp/floatundidf.c: Likewise.
49135         * soft-fp/floatundisf.c: Likewise.
49136         * soft-fp/floatunsidf.c: Likewise.
49137         * soft-fp/floatunsisf.c: Likewise.
49138         * soft-fp/floatuntidf.c: Likewise.
49139         * soft-fp/floatuntisf.c: Likewise.
49140         * soft-fp/floatuntitf.c: Likewise.
49141         * soft-fp/fmadf4.c: Likewise.
49142         * soft-fp/fmasf4.c: Likewise.
49143         * soft-fp/fmatf4.c: Likewise.
49144         * soft-fp/gedf2.c: Likewise.
49145         * soft-fp/gesf2.c: Likewise.
49146         * soft-fp/getf2.c: Likewise.
49147         * soft-fp/ledf2.c: Likewise.
49148         * soft-fp/lesf2.c: Likewise.
49149         * soft-fp/letf2.c: Likewise.
49150         * soft-fp/muldf3.c: Likewise.
49151         * soft-fp/mulsf3.c: Likewise.
49152         * soft-fp/multf3.c: Likewise.
49153         * soft-fp/negdf2.c: Likewise.
49154         * soft-fp/negsf2.c: Likewise.
49155         * soft-fp/negtf2.c: Likewise.
49156         * soft-fp/op-1.h: Likewise.
49157         * soft-fp/op-2.h: Likewise.
49158         * soft-fp/op-4.h: Likewise.
49159         * soft-fp/op-8.h: Likewise.
49160         * soft-fp/op-common.h: Likewise.
49161         * soft-fp/quad.h: Likewise.
49162         * soft-fp/single.h: Likewise.
49163         * soft-fp/soft-fp.h: Likewise.
49164         * soft-fp/sqrtdf2.c: Likewise.
49165         * soft-fp/sqrtsf2.c: Likewise.
49166         * soft-fp/sqrttf2.c: Likewise.
49167         * soft-fp/subdf3.c: Likewise.
49168         * soft-fp/subsf3.c: Likewise.
49169         * soft-fp/subtf3.c: Likewise.
49170         * soft-fp/truncdfsf2.c: Likewise.
49171         * soft-fp/trunctfdf2.c: Likewise.
49172         * soft-fp/trunctfsf2.c: Likewise.
49173         * soft-fp/trunctfxf2.c: Likewise.
49174         * soft-fp/unorddf2.c: Likewise.
49175         * soft-fp/unordsf2.c: Likewise.
49176         * soft-fp/unordtf2.c: Likewise.
49177
49178 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
49179
49180         [BZ #15672]
49181         * misc/error.c (error_tail): Fix possible buffer overflow.
49182
49183 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
49184
49185         [BZ #13028]
49186         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
49187         address.
49188
49189 2013-10-14  P. J. McDermott  <pj@pehjota.net>
49190
49191         [BZ #832]
49192         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
49193         testing pipefail option.
49194
49195 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49196
49197         * soft-fp/double.h: Indent preprocessor directives inside #if.
49198         * soft-fp/extended.h: Likewise.
49199         * soft-fp/op-2.h: Likewise.
49200         * soft-fp/op-4.h: Likewise.
49201         * soft-fp/op-common.h: Likewise.
49202         * soft-fp/quad.h: Likewise.
49203         * soft-fp/single.h: Likewise.
49204         * soft-fp/soft-fp.h: Likewise.
49205
49206 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
49207
49208         * iconv/iconv_prog.c: Fix typos.
49209         * stdio-common/psiginfo-data.h: Likewise.
49210
49211 2013-10-12   Reuben Thomas <rrt@sc3d.org>
49212
49213         [BZ #15764]
49214         * locale/setlocale.c: Fix typo.
49215
49216 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49217
49218         [BZ #16036]
49219         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
49220         signaling NaN arguments.
49221         * soft-fp/unordsf2.c (__unordsf2): Likewise.
49222         * soft-fp/unordtf2.c (__unordtf2): Likewise.
49223
49224         [BZ #14910]
49225         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
49226         unordered operands.
49227         * soft-fp/gesf2.c (__gesf2): Likewise.
49228         * soft-fp/getf2.c (__getf2): Likewise.
49229         * soft-fp/ledf2.c (__ledf2): Likewise.
49230         * soft-fp/lesf2.c (__lesf2): Likewise.
49231         * soft-fp/letf2.c (__letf2): Likewise.
49232
49233         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
49234         * soft-fp/eqsf2.c (__eqsf2): Likewise.
49235         * soft-fp/eqtf2.c (__eqtf2): Likewise.
49236         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
49237         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
49238         * soft-fp/fixdfti.c (__fixdfti): Likewise.
49239         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
49240         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
49241         * soft-fp/fixsfti.c (__fixsfti): Likewise.
49242         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
49243         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
49244         * soft-fp/fixtfti.c (__fixtfti): Likewise.
49245         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
49246         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
49247         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
49248         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
49249         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
49250         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
49251         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
49252         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
49253         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
49254         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
49255         * soft-fp/floatdisf.c (__floatdisf): Likewise.
49256         * soft-fp/floatsisf.c (__floatsisf): Likewise.
49257         * soft-fp/floattidf.c (__floattidf): Likewise.
49258         * soft-fp/floattisf.c (__floattisf): Likewise.
49259         * soft-fp/floattitf.c (__floattitf): Likewise.
49260         * soft-fp/floatundidf.c (__floatundidf): Likewise.
49261         * soft-fp/floatundisf.c (__floatundisf): Likewise.
49262         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
49263         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
49264         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
49265         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
49266         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
49267         * soft-fp/gesf2.c (__gesf2): Likewise.
49268         * soft-fp/getf2.c (__getf2): Likewise.
49269         * soft-fp/ledf2.c (__ledf2): Likewise.
49270         * soft-fp/lesf2.c (__lesf2): Likewise.
49271         * soft-fp/letf2.c (__letf2): Likewise.
49272
49273         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
49274         Undefine and redefine.
49275         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
49276         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
49277         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
49278         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
49279         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49280         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
49281         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49282         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
49283         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49284         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
49285         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49286         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
49287         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49288         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
49289         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49290
49291         [BZ #16032]
49292         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
49293         without decrementing exponent if mantissa >= that for the
49294         denominator, not >.
49295         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
49296         denominator, not >.  Decrement exponent in < case instead of
49297         incrementing in >= case.
49298         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
49299         without decrementing exponent if mantissa >= that for the
49300         denominator, not >.
49301
49302         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
49303         computing saturated result for unsigned overflow.
49304
49305 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49306             Jeff Law  <law@redhat.com>
49307
49308         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
49309         (atan2Mp): Add systemtap probe marker.
49310         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
49311         (__ieee754_log): Add systemtap probe marker.
49312         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
49313         (atanMp): Add systemtap probe marker.
49314         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
49315         (tanMp): Add systemtap probe marker.
49316         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
49317         (__slowexp): Add systemtap probe marker.
49318         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
49319         (__slowpow): Add systemtap probe marker.
49320         * manual/probes.texi: Document probes.
49321
49322 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
49323
49324         [BZ #15362]
49325         * libio/fileops.c (_IO_new_file_write): Return count of bytes
49326         written.
49327         (_IO_new_file_xsputn): Don't return EOF if nothing has been
49328         written.
49329         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
49330         written to buffer but not flushed.
49331         * libio/iofwrite_u.c:  Likewise.
49332         * libio/iopadn.c:  Return bytes returned even if EOF was
49333         encountered.
49334         * libio/iowpadn.c:  Likewise.
49335         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
49336         if _IO_padn does not write the whole buffer.
49337         [!COMPILE_WPRINTF] (PAD): Likewise.
49338
49339 2013-10-10  David S. Miller  <davem@davemloft.net>
49340
49341         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
49342         directory block.
49343
49344 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49345
49346         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
49347         instead of FSF address.
49348         * soft-fp/fixdfti.c: Likewise.
49349         * soft-fp/fixsfti.c: Likewise.
49350         * soft-fp/fixtfti.c: Likewise.
49351         * soft-fp/fixunsdfti.c: Likewise.
49352         * soft-fp/fixunssfti.c: Likewise.
49353         * soft-fp/fixunstfti.c: Likewise.
49354         * soft-fp/floattidf.c: Likewise.
49355         * soft-fp/floattisf.c: Likewise.
49356         * soft-fp/floattitf.c: Likewise.
49357         * soft-fp/floatuntidf.c: Likewise.
49358         * soft-fp/floatuntisf.c: Likewise.
49359         * soft-fp/floatuntitf.c: Likewise.
49360         * soft-fp/trunctfxf2.c: Likewise.
49361
49362         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
49363         * soft-fp/fixdfti.c: Likewise.
49364         * soft-fp/fixsfti.c: Likewise.
49365         * soft-fp/fixtfti.c: Likewise.
49366         * soft-fp/fixunsdfti.c: Likewise.
49367         * soft-fp/fixunssfti.c: Likewise.
49368         * soft-fp/fixunstfti.c: Likewise.
49369         * soft-fp/floattidf.c: Likewise.
49370         * soft-fp/floattisf.c: Likewise.
49371         * soft-fp/floattitf.c: Likewise.
49372         * soft-fp/floatuntidf.c: Likewise.
49373         * soft-fp/floatuntisf.c: Likewise.
49374         * soft-fp/floatuntitf.c: Likewise.
49375         * soft-fp/trunctfxf2.c: Likewise.
49376
49377 2013-10-10  David S. Miller  <davem@davemloft.net>
49378
49379         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49380
49381 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
49382
49383         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
49384         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
49385         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
49386         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
49387         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
49388         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
49389         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
49390
49391         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
49392         for NaNs before doing comparisons on argument.
49393         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
49394         Likewise.
49395
49396 2013-10-10  Will Newton  <will.newton@linaro.org>
49397
49398         * malloc/hooks.c (memalign_check): Ensure the value of bytes
49399         passed to _int_memalign does not overflow.
49400
49401 2013-10-10  Torvald Riegel  <triegel@redhat.com>
49402
49403         * scripts/bench.pl: Add include-sources directive.
49404         * benchtests/README: Update documentation.
49405
49406 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49407
49408         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
49409         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
49410         instead of FP_INIT_ROUNDMODE.
49411         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
49412         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
49413
49414         [BZ #16034]
49415         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
49416         copy class of input value.
49417         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
49418         not handle exceptions.
49419         * soft-fp/negsf2.c (__negsf2): Likewise.
49420         * soft-fp/negtf2.c (__negtf2): Likewise.
49421         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
49422
49423 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
49424
49425         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
49426         semicolon.  From Linux kernel.
49427
49428 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
49429
49430         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
49431
49432 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
49433
49434         [BZ #156]
49435         * manual/socket.texi: Added statement about buffer
49436         for gethostbyname2_r.
49437
49438 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
49439
49440         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
49441         Use .p2align directive instead, throughout.
49442         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
49443         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
49444         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
49445         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
49446         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
49447         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
49448         * sysdeps/x86_64/strchr.S: Likewise.
49449         * sysdeps/x86_64/strrchr.S: Likewise.
49450
49451 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49452
49453         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
49454
49455         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
49456
49457         * sysdeps/generic/math_private.h (__mpsin1): Remove
49458         declaration.
49459         (__mpcos1): Likewise.
49460         (__mpsin): New argument __range_reduce.
49461         (__mpcos): Likewise.
49462         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49463         (slow): Use __mpsin and __mpcos.
49464         (slow1): Likewise.
49465         (slow2): Likewise.
49466         (sloww): Likewise.
49467         (sloww1): Likewise.
49468         (sloww2): Likewise.
49469         (bsloww): Likewise.
49470         (bsloww1): Likewise.
49471         (bsloww2): Likewise.
49472         (cslow2): Likewise.
49473         (csloww): Likewise.
49474         (csloww1): Likewise.
49475         (csloww2): Likewise.
49476         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
49477         range_reduce.  Merge in __mpsin1.
49478         (__mpcos): Likewise.
49479         (__mpsin1): Remove.
49480         (__mpcos1): Likewise.
49481
49482 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
49483
49484         * locale/loadlocale.c (_nl_intern_locale_data): Use
49485         LOCFILE_ALIGNED_P.
49486         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
49487         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
49488         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
49489         obstack data is appropriately aligned.
49490         (obstack_int32_grow_fast): Likewise.
49491         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
49492         * locale/programs/locfile.c (add_locale_uint32): Likewise.
49493         (add_locale_uint32_array): Likewise.
49494
49495 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49496
49497         * benchtests/Makefile: Remove ARGLIST and RET variables.
49498         ($(objpfx)bench-%.c): Pass only function name to the script.
49499         * benchtests/README: Update documentation.
49500         * benchtests/acos-inputs: Add new directives.
49501         * benchtests/acosh-inputs: Likewise.
49502         * benchtests/asin-inputs: Likewise.
49503         * benchtests/asinh-inputs: Likewise.
49504         * benchtests/atan-inputs: Likewise.
49505         * benchtests/atanh-inputs: Likewise.
49506         * benchtests/cos-inputs: Likewise.
49507         * benchtests/cosh-inputs: Likewise.
49508         * benchtests/exp-inputs: Likewise.
49509         * benchtests/log-inputs: Likewise.
49510         * benchtests/pow-inputs: Likewise.
49511         * benchtests/rint-inputs: Likewise.
49512         * benchtests/sin-inputs: Likewise.
49513         * benchtests/sinh-inputs: Likewise.
49514         * benchtests/tan-inputs: Likewise.
49515         * benchtests/tanh-inputs: Likewise.
49516         * scripts/bench.pl: Add support for new directives.
49517
49518 2013-10-07  Alan Modra  <amodra@gmail.com>
49519
49520         * README: Fix careless merge.
49521
49522 2013-10-05  Alan Modra  <amodra@gmail.com>
49523
49524         * NEWS: Mention powerpc64le support and bugs fixed.
49525         * README: Both big-endian and little-endian powerpc64 supported.
49526
49527 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49528
49529         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
49530         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
49531         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
49532         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
49533
49534 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
49535
49536         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
49537         match prototype.
49538
49539 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
49540
49541         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
49542         Move -mhard-float appending from
49543         ports/sysdeps/powerpc/powerpc32/Makefile.
49544         [$(with-fp) = yes] (ASFLAGS): Likewise.
49545         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
49546         * sysdeps/powerpc/nofpu: Move directory from
49547         ports/sysdeps/powerpc/nofpu.
49548         * sysdeps/powerpc/soft-fp: Move directory from
49549         ports/sysdeps/powerpc/soft-fp.
49550         * sysdeps/powerpc/powerpc32/405: Move directory from
49551         ports/sysdeps/powerpc/powerpc32/405.
49552         * sysdeps/powerpc/powerpc32/440: Move directory from
49553         ports/sysdeps/powerpc/powerpc32/440.
49554         * sysdeps/powerpc/powerpc32/464: Move directory from
49555         ports/sysdeps/powerpc/powerpc32/464.
49556         * sysdeps/powerpc/powerpc32/476: Move directory from
49557         ports/sysdeps/powerpc/powerpc32/476.
49558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
49559         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
49560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
49561         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
49562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
49563         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
49564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
49565         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
49567         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
49568         * README: Update for powerpc-*-linux-gnu software floating point
49569         support in libc.
49570
49571         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
49572         case to powerpc/powerpc32*.
49573         * sysdeps/unix/sysv/linux/configure: Regenerated.
49574
49575         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
49576         (_FPU_MASK_OM): Define as 0x04.
49577         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
49578         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
49579         0x00c10080.
49580         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
49581         0x0000003c.
49582         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
49583
49584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
49585         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49586         getcontext_e500.
49587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
49588         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49589         setcontext_e500.
49590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
49591         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
49592         and setcontext_e500.
49593
49594 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
49595
49596         * locale/iso-3166.def: Update iso-1366.def and related occurrences
49597
49598 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49599
49600         * manual/threads.texi (Default Thread Attributes): Fix typo.
49601
49602 2013-10-04  Will Newton  <will.newton@linaro.org>
49603
49604         * malloc/Makefile: Add tst-memalign.
49605         * malloc/tst-memalign.c: New file.
49606
49607         * malloc/tst-posix_memalign.c: Add comments.
49608         (do_test): Add comments and call free on all potentially
49609         allocated pointers. Add space after cast.
49610
49611         * malloc/tst-pvalloc.c: Add comments.
49612         (do_test): Add comments and call free on all potentially
49613         allocated pointers. Remove duplicate check for NULL pointer.
49614         Add space after cast.
49615
49616         * malloc/tst-valloc.c: Add comments.
49617         (do_test): Add comments and call free on all potentially
49618         allocated pointers. Remove duplicate check for NULL pointer.
49619         Add space after cast.
49620
49621 2013-10-04  Alan Modra  <amodra@gmail.com>
49622
49623         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49624         Use stdint types in rather than __attribute__((mode())).
49625         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49626
49627 2013-10-04  Alan Modra  <amodra@gmail.com>
49628
49629         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49630         Correct handling of unaligned relocs for little-endian.
49631         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49632
49633 2013-10-04  Alan Modra  <amodra@gmail.com>
49634
49635         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
49636         * configure: Regenerate.
49637         * nptl/shlib-versions: Powerpc*le starts at 2.18.
49638         * shlib-versions: Likewise.
49639
49640 2013-10-04  Alan Modra  <amodra@gmail.com>
49641
49642         * string/tester.c (test_memrchr): Increment reported test cycle.
49643
49644 2013-10-04  Alan Modra  <amodra@gmail.com>
49645
49646         * string/test-memcpy.c (do_one_test): When reporting errors, print
49647         string address and don't overrun end of string.
49648
49649 2013-10-04  Alan Modra  <amodra@gmail.com>
49650
49651         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
49652         insrdi.  Make better use of reg selection to speed exit slightly.
49653         Schedule entry path a little better.  Remove useless "are we done"
49654         checks on entry to main loop.  Handle wrapping around zero address.
49655         Correct main loop count.  Handle single left-over word from main
49656         loop inline rather than by using loop_small.  Remove extra word
49657         case in loop_small caused by wrong loop count.  Add little-endian
49658         support.
49659         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
49660         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
49661         cache hint.
49662         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
49663         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
49664         support.  Avoid rlwimi.
49665         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
49666
49667 2013-10-04  Alan Modra  <amodra@gmail.com>
49668
49669         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
49670         insrdi.  Formatting.
49671         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
49672         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
49673         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
49674         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49675         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
49676         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
49677
49678 2013-10-04  Alan Modra  <amodra@gmail.com>
49679
49680         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
49681         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49682         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
49683         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
49684         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
49685         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49686         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49687         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49688         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
49689         use of regs.  Use power7 mtocrf.  Tidy function tails.
49690
49691 2013-10-04  Alan Modra  <amodra@gmail.com>
49692
49693         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
49694         Formatting.  Consistently use rXXX register defines or rN defines.
49695         Use early exit labels that avoid restoring unused non-volatile regs.
49696         Make cr field use more consistent with rWORDn compares.  Rename
49697         regs used as shift registers for unaligned loop, using rN defines
49698         for short lifetime/multiple use regs.
49699         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49700         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
49701         addi 1,1,64 to pop stack frame.  Simplify return value code.
49702         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49703
49704 2013-10-04  Alan Modra  <amodra@gmail.com>
49705
49706         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
49707         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
49708         rather than rlwimi.
49709         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
49710         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
49711         little-endian support.  Correct typos.
49712         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
49713         rather than rlwimi.
49714         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
49715         in loop and entry code to keep "and." results.
49716         (strchr): Add little-endian support.  Comment.  Move cntlzd
49717         earlier in tail.
49718         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
49719
49720 2013-10-04  Alan Modra  <amodra@gmail.com>
49721
49722         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
49723         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
49724         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
49725         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
49726
49727 2013-10-04  Alan Modra  <amodra@gmail.com>
49728
49729         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
49730         (rTMP): Define as r11.
49731         (strcmp): Add little-endian support.  Optimise tail.
49732         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
49733         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49734         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
49735         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
49736         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
49737         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49738         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
49739
49740 2013-10-04  Alan Modra  <amodra@gmail.com>
49741
49742         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
49743         little-endian support.  Remove unnecessary "are we done" tests.
49744         Handle "s" wrapping around zero and extremely large "size".
49745         Correct main loop count.  Handle single left-over word from main
49746         loop inline rather than by using small_loop.  Correct comments.
49747         Delete "zero" tail, use "end_max" instead.
49748         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
49749
49750 2013-10-04  Alan Modra  <amodra@gmail.com>
49751
49752         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
49753         support.  Don't branch over align.
49754         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
49755         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
49756         support.  Rearrange tmp reg use to suit.  Comment.
49757         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
49758
49759 2013-10-04  Alan Modra  <amodra@gmail.com>
49760
49761         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
49762
49763 2013-10-04  Alan Modra  <amodra@gmail.com>
49764
49765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
49766         conditional form of branch and link when obtaining pc.
49767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
49768
49769 2013-10-04  Alan Modra  <amodra@gmail.com>
49770
49771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
49772         HIWORD/LOWORD.
49773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
49774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
49775
49776 2013-10-04  Alan Modra  <amodra@gmail.com>
49777
49778         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
49779         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
49780         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
49781         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
49782         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
49783         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
49784         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
49785         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
49786         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
49787         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
49788
49789 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49790             Alistair Popple <alistair@ozlabs.au.ibm.com>
49791             Alan Modra <amodra@gmail.com>
49792
49793         [BZ #15723]
49794         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
49795         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
49796         _dl_hwcap access for little-endian.
49797         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
49798         destroy vmx regs when saving unaligned.
49799         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
49800         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
49801         destroy vmx regs when saving unaligned.
49802
49803 2013-10-04  Alan Modra  <amodra@gmail.com>
49804
49805         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
49806         Don't use a union to pack hi/low value.
49807
49808 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49809
49810         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
49811         for little-endian.
49812         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49813         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
49814         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49815         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49816         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49817
49818 2013-10-04  Alan Modra  <amodra@gmail.com>
49819
49820         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
49821         constants to usual value for .cst8 section, and remove redundant
49822         high address load.
49823         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
49824         constant for 0x1p52.  Load little-endian words of double from
49825         correct stack offsets.
49826
49827 2013-10-04  Alan Modra  <amodra@gmail.com>
49828
49829         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
49830         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
49831         words of double from correct stack offsets.
49832         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
49833         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
49834         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49835         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49836         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49837         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49838         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49839         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
49840         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
49841         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49842         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49843         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49844         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
49845         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
49846         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
49847         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
49848         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
49849
49850 2013-10-04  Alan Modra  <amodra@gmail.com>
49851
49852         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
49853         64-bit int/double union.
49854         (_FPU_SETCW): Likewise.
49855         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
49856         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
49857
49858 2013-10-04  Alan Modra  <amodra@gmail.com>
49859
49860         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
49861         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
49862
49863 2013-10-04  Alan Modra  <amodra@gmail.com>
49864
49865         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
49866         use vector int constants.
49867         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
49868
49869 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49870
49871         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
49872         array with long long.
49873         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
49874         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
49875         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
49876         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
49877         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
49878         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
49879         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
49880         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
49881         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
49882         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
49883         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
49884         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
49885         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
49886
49887 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49888
49889         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
49890         (__signbit): Likewise.  Correct for little-endian.
49891         (__signbitl): Call __signbit.
49892         (lrint): Correct for little-endian.
49893         (lrintf): Call lrint.
49894
49895 2013-10-04  Alan Modra  <amodra@gmail.com>
49896
49897         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
49898         union 32-bit int array member with 64-bit int array.
49899         (t515, tm256): Double rather than long double.
49900         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
49901
49902 2013-10-04  Alan Modra  <amodra@gmail.com>
49903
49904         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
49905         Delete.
49906         (IEEE854_LONG_DOUBLE_BIAS): Delete.
49907         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
49908         version of math_ldbl.h.
49909
49910 2013-10-04  Alan Modra  <amodra@gmail.com>
49911
49912         [BZ #15734], [BZ #15735]
49913         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
49914         all uses of ieee875 long double macros and unions.  Simplify test
49915         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
49916         ldbl_extract_mantissa value for ix,iy exponents.  Properly
49917         normalize after ldbl_extract_mantissa, and don't add hidden bit
49918         already handled.  Don't treat low word of ieee854 mantissa like
49919         low word of IBM long double and mask off bit when testing for
49920         zero.
49921         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
49922         all uses of ieee875 long double macros and unions.  Simplify tests
49923         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
49924         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
49925         two1022, instead use their values.  Recognise that tests for large
49926         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
49927         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
49928         Rewrite all uses of ieee875 long double macros and unions.  Simplify
49929         test for 0.0L and nan.  Correct negation.
49930         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
49931         ieee875 long double macros and unions.  Correct output for large
49932         magnitude x.  Correct absolute value calculation.
49933         (__erfcl): Likewise.
49934         * math/libm-test.inc: Add tests for errors discovered in IBM long
49935         double versions of fmodl, remainderl, erfl and erfcl.
49936
49937 2013-10-04  Alan Modra  <amodra@gmail.com>
49938
49939         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
49940         all uses of ieee854 long double macros and unions.  Simplify tests
49941         for long doubles that are fully specified by the high double.
49942         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
49943         Likewise.
49944         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
49945         Remove dead code too.
49946         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
49947         (__ieee754_ynl): Likewise.
49948         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
49949         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
49950         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
49951         Remove dead code too.
49952         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
49953         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
49954         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
49955         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
49956         Simplify.
49957         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
49958         Simplify.
49959         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
49960         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
49961         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
49962         Comment on variable precision.
49963         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
49964         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
49965         Likewise.
49966         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
49967         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
49968         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
49969         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
49970         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
49971
49972 2013-10-04  Alan Modra  <amodra@gmail.com>
49973
49974         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
49975         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
49976         all uses of ieee854 long double macros and unions.
49977         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
49978         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
49979         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
49980         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
49981         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
49982         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
49983         Likewise.
49984         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
49985         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
49986         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
49987         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
49988         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
49989         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
49990         Simplify sign and nan test too.
49991         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
49992         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
49993         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
49994         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
49995         Likewise.
49996         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
49997         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
49998         Likewise.
49999         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
50000         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
50001         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
50002         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
50003         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
50004         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
50005
50006 2013-10-04  Alan Modra  <amodra@gmail.com>
50007
50008         * stdio-common/printf_size.c (__printf_size): Don't use
50009         union ieee854_long_double in fpnum union.
50010         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
50011         signbit macro to retrieve sign from long double.
50012         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
50013         retrieve sign from long double.
50014         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
50015         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
50016         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
50017         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
50018         * math/test-misc.c (main): Don't use union ieee854_long_double.
50019
50020 2013-10-04  Alan Modra  <amodra@gmail.com>
50021
50022         [BZ #15680]
50023         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
50024         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
50025         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
50026         calculation.  Remove unnecessary test for denormal exponent.
50027         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
50028         Correct handling of denormals.  Avoid undefined shift behaviour.
50029         Correct normalisation of low mantissa when low double is denormal.
50030         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
50031         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
50032         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
50033         Correct normalisation of low mantissa.  Test for overflow of high
50034         mantissa and normalise.
50035         (ldbl_nearbyint): Use more readable constant for two52.
50036         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
50037         (__mpn_construct_long_double): Fix test for overflow of high
50038         mantissa and correct normalisation.  Avoid undefined shift.
50039
50040 2013-10-04  Alan Modra  <amodra@gmail.com>
50041
50042         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50043         (union ibm_extended_long_double): Define as an array of ieee754_double.
50044         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
50045         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
50046         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
50047         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
50048         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50049         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
50050         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
50051         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
50052         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
50053         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
50054         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
50055
50056 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
50057
50058         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
50059         page size instead of calling getpagesize.
50060
50061         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
50062         (LOCFILE_ALIGN_MASK): Likewise.
50063         (LOCFILE_ALIGN_UP): Likewise.
50064         (LOCFILE_ALIGNED_P): Likewise.
50065         * locale/programs/ld-collate.c (collate_output): Use the new
50066         macros instead of __alignof__ (int32_t).
50067         * locale/weight.h (findidx): Likewise.
50068
50069 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
50070
50071         [BZ #431]
50072         * manual/string.texi: Fix strncat and wcsncat.
50073
50074 2013-10-03  Brooks Moses  <bmoses@google.com>
50075
50076         [BZ #15915]
50077         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
50078         * Makerules: ...here, and adjust associated comments.
50079
50080 2013-10-02  Will Newton  <will.newton@linaro.org>
50081
50082         * malloc/Makefile: Add tst-pvalloc.
50083         * malloc/tst-pvalloc.c: New file.
50084
50085 2013-10-02  Will Newton  <will.newton@linaro.org>
50086
50087         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
50088         improve test coverage.
50089
50090 2013-10-02  Will Newton  <will.newton@linaro.org>
50091
50092         * malloc/Makefile: Add tst-posix_memalign.
50093         * malloc/tst-posix_memalign.c: New file.
50094
50095 2013-10-01  Eric Blake  <eblake@redhat.com>
50096
50097         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
50098         Use __THROWNL rather than __THROW on static functions.
50099
50100 2013-09-30  Petr Machata  <pmachata@redhat.com>
50101
50102         * elf/elf.h (R_AARCH64_ABS16): New macro.
50103         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
50104         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
50105         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
50106         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
50107         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
50108         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
50109         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
50110         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
50111         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
50112         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
50113         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
50114         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
50115         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
50116         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
50117         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
50118         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
50119         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
50120         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
50121         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
50122         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
50123         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
50124         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
50125         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
50126         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
50127         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
50128         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
50129         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
50130         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
50131         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
50132         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
50133         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
50134         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
50135         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
50136         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
50137         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
50138         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
50139         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
50140         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
50141         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
50142         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
50143         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
50144         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
50145         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
50146         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
50147         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
50148         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
50149         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
50150         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
50151         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
50152         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
50153         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
50154         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
50155         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
50156         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
50157         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
50158         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
50159         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
50160         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
50161         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
50162         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
50163         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
50164         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
50165         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
50166         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
50167         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
50168         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
50169         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
50170         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
50171         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
50172         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
50173         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
50174         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
50175         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
50176         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
50177         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
50178         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
50179         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
50180         (R_AARCH64_TLSDESC_LDR): Likewise.
50181         (R_AARCH64_TLSDESC_ADD): Likewise.
50182         (R_AARCH64_TLSDESC_CALL): Likewise.
50183
50184 2013-09-30  Andreas Schwab  <schwab@suse.de>
50185
50186         [BZ #15048]
50187         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
50188         the nss database lookup.
50189         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50190         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50191
50192 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
50193
50194         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
50195
50196 2013-09-28  P. J. McDermott  <pj@pehjota.net>
50197
50198         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
50199         ${Bash-specific parameter/pattern/string} parameter expansion.
50200         * sysdeps/unix/make-syscalls.sh: Likewise.
50201
50202 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
50203
50204         * sysdeps/sh/stackguard-macros.h: New file.
50205
50206 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
50207
50208         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
50209         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
50210         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
50211         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
50212         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
50213         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
50214
50215 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50216
50217         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
50218         Fix thread ID register.
50219
50220 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
50221
50222         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
50223         [POSIX || UNIX98]: Require rather than permitting all symbols from
50224         <time.h>.
50225         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
50226         element of struct sched_param.
50227         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
50228         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
50229         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
50230         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
50231         constant.
50232
50233 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
50234
50235         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
50236         argument calculation.
50237
50238 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50239
50240         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
50241         Expect macro.
50242         [POSIX] (pthread_attr_t): Do not require type.
50243         [POSIX] (pthread_cond_t): Likewise.
50244         [POSIX] (pthread_condattr_t): Likewise.
50245         [POSIX] (pthread_key_t): Likewise.
50246         [POSIX] (pthread_mutex_t): Likewise.
50247         [POSIX] (pthread_mutexattr_t): Likewise.
50248         [POSIX] (pthread_once_t): Likewise.
50249         [POSIX] (pthread_t): Likewise.
50250         [POSIX-based standards] (pthread_atfork): Expect function.
50251
50252 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50253             Richard Sandiford  <richard@codesourcery.com>
50254
50255         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
50256         (swap_endianness_p): New extern variable.
50257         (set_big_endian): New inline function.
50258         (maybe_swap_uint32): Likewise.
50259         (maybe_swap_uint32_array): Likewise.
50260         (maybe_swap_uint32_obstack): Likewise.
50261         * locale/programs/locfile.c: Include <stdbool.h>.
50262         (swap_endianness_p): New variable.
50263         (add_locale_uint32): Call maybe_swap_uint32.
50264         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
50265         (write_locale_data): Call maybe_swap_uint32_array.
50266         * locale/programs/ld-collate.c (obstack_int32_grow): Call
50267         maybe_swap_uint32.
50268         (obstack_int32_grow_fast): Likewise.
50269         (output_weightwc): Call maybe_swap_uint32_obstack.
50270         (collate_output): Likewise.
50271         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
50272         (OPT_LITTLE_ENDIAN): Likewise.
50273         (options): Add --little-endian and --big-endian options.
50274         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
50275         * locale/programs/locarchive.c: Include "locfile.h".
50276         (GET): New macro.
50277         (SET): Likewise.
50278         (INC): Likewise.
50279         (create_archive): Use the new macros to access fields of
50280         structures directly mapped from or written to locale archives.
50281         (oldlocrecentcmp): Likewise.
50282         (enlarge_archive): Likewise.
50283         (insert_name): Likewise.
50284         (add_alias): Likewise.
50285         (add_locale): Likewise.
50286         (delete_locales_from_archive): Likewise.
50287         (show_archive_content): Likewise.
50288         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
50289         locale data.
50290
50291 2013-09-24  Roland McGrath  <roland@hack.frob.com>
50292
50293         * manual/freemanuals.texi: Updated from (newly) canonical copy at
50294         http://www.gnu.org/doc/freemanuals.texi.
50295         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
50296
50297 2013-09-24  Will Newton  <will.newton@linaro.org>
50298
50299         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
50300         macro.
50301
50302 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
50303
50304         * locale/hashval.h (compute_hashval): Interpret bytes of key as
50305         unsigned char.
50306
50307 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
50308
50309         * manual/threads.texi (POSIX Threads): Fix a typo.
50310
50311 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
50312
50313         [BZ #14547]
50314         * string/tst-strcoll-overflow.c: New test case.
50315         * string/Makefile (xtests): Add tst-strcoll-overflow.
50316         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
50317         cache if string sizes may cause integer overflow.
50318
50319         [BZ #14547]
50320         * string/strcoll_l.c (coll_seq): New members rule, idx,
50321         save_idx and back_us.
50322         (get_next_seq_nocache): New function.
50323         (do_compare_nocache): New function.
50324         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
50325         when malloc fails.
50326
50327 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
50328
50329         [BZ #15754]
50330         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
50331         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
50332         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
50333
50334         [BZ #15754]
50335         * elf/Makefile (tests): Add tst-ptrguard1.
50336         (tests-static): Add tst-ptrguard1-static.
50337         (tst-ptrguard1-ARGS): Define.
50338         (tst-ptrguard1-static-ARGS): Define.
50339         * elf/tst-ptrguard1.c: New file.
50340         * elf/tst-ptrguard1-static.c: New file.
50341         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
50342         * sysdeps/i386/stackguard-macros.h: Likewise.
50343         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
50344         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
50345         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
50346         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
50347         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
50348         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
50349
50350 2013-09-23  Hector Marco  <hecmargi@upv.es>
50351             Ismael Ripoll  <iripoll@disca.upv.es>
50352             Carlos O'Donell  <carlos@redhat.com>
50353
50354         [BZ #15754]
50355         * sysdeps/generic/stackguard-macros.h: Define
50356         __pointer_chk_guard_local and POINTER_CHK_GUARD.
50357         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
50358         Define __pointer_chk_guard_local.
50359         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
50360         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
50361
50362 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
50363
50364         [BZ #15859]
50365         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
50366
50367 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
50368
50369         * include/string.h (__ffs): Declare as hidden.
50370         * string/ffs.c (__ffs): Define as hidden.
50371         * sysdeps/i386/ffs.c (__ffs): Likewise.
50372         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
50373         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
50374         * sysdeps/s390/ffs.c (__ffs): Likewise.
50375         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
50376
50377 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
50378
50379         * NEWS: Mention malloc probes.
50380
50381         * malloc/arena.c (new_heap): New memory_heap_new probe.
50382         (grow_heap): New memory_heap_more probe.
50383         (shrink_heap): New memory_heap_less probe.
50384         (heap_trim): New memory_heap_free probe.
50385         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
50386         (systrim): New memory_sbrk_less probe.
50387         * manual/probes.texi: Document them.
50388
50389         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
50390         * manual/probes.texi: Document it.
50391
50392         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
50393         (__libc_realloc): Add memory_realloc_retry probe.
50394         (__libc_memalign): Add memory_memalign_retry probe.
50395         (__libc_valloc): Add memory_valloc_retry probe.
50396         (__libc_pvalloc): Add memory_pvalloc_retry probe.
50397         (__libc_calloc): Add memory_calloc_retry probe.
50398         * manual/probes.texi: Document them.
50399
50400         * malloc/arena.c (get_free_list): Add probe
50401         memory_arena_reuse_free_list.
50402         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
50403         and memory_arena_reuse.
50404         (arena_get2) [!PER_THREAD]: Likewise.
50405         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
50406         memory_arena_reuse_realloc.
50407         * manual/probes.texi: Document them.
50408
50409         * malloc/malloc.c (__libc_free): Add
50410         memory_mallopt_free_dyn_thresholds probe.
50411         (__libc_mallopt): Add multiple memory_mallopt probes.
50412         * manual/probes.texi: Document them.
50413
50414         * malloc/malloc.c: Include stap-probe.h.
50415         (__libc_mallopt): Add memory_mallopt probe.
50416         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
50417         * manual/probes.texi: New.
50418         * manual/Makefile (chapters): Add probes.
50419         * manual/threads.texi: Set next node.
50420
50421 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
50422
50423         [BZ #15963, #13985]
50424         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
50425         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
50426         Add `Chinese' to `nan' entry name.
50427
50428 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50429
50430         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
50431         (POLYNOMIAL): Likewise.
50432         (TAYLOR_SINCOS): Likewise.
50433         (TAYLOR_SLOW): Likewise.
50434         (__sin): Use TAYLOR_SINCOS.
50435         (__cos): Likewise.
50436         (slow): Use TAYLOR_SLOW.
50437         (sloww): Likewise.
50438         (bsloww): Likewise.
50439         (csloww): Likewise.
50440
50441 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50442
50443         * stdlib/strtod_l.c: Fix buffer overrun.
50444
50445 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50446
50447         * benchtests/Makefile (bench): Add sincos.
50448         * benchtests/bench-sincos.c: New file.
50449
50450         * math/libm-test.inc (cos_test_data): New test inputs.
50451         (sin_test_data): Likewise.
50452
50453         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
50454         macro.
50455         (__sin): Use it.
50456         (__cos): Likewise.
50457         (slow1): Likewise.
50458         (slow2): Likewise.
50459         (sloww1): Likewise.
50460         (sloww2): Likewise.
50461         (bsloww1): Likewise.
50462         (bsloww2): Likewise.
50463         (cslow2): Likewise.
50464         (csloww1): Likewise.
50465         (csloww2): Likewise.
50466
50467         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
50468         function.
50469         (__sin): Use it.
50470         (__cos): Likewise.
50471
50472         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
50473         gotos.
50474         (__cos): Likewise.
50475
50476 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
50477
50478         * config.h.in (HAVE_MIPS_NAN2008): New macro.
50479         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
50480         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
50481         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
50482         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
50483         * elf/cache.c (print_entry): Handle the new cache flags.
50484
50485 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50486             Aldy Hernandez  <aldyh@redhat.com>
50487
50488         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
50489         Change condition to [_SOFT_FLOAT].
50490         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
50491         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
50492         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
50493         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
50494         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
50495         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
50496         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
50497         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
50498         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
50499         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
50500         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
50501         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
50502         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
50503         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
50504         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
50505         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
50506         declaration.
50507
50508 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50509
50510         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
50511         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50512         (__longjmp): Use LOAD_GP to load saved GPRs.
50513         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
50514         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50515         (__sigsetjmp): Use SAVE_GP to save GPRs.
50516
50517         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
50518         Do not append -msoft-float.
50519         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
50520
50521 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50522
50523         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
50524
50525 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
50526
50527         [BZ #15966]
50528         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
50529         (_FPU_GETCW): Use initial "__" on variable and field names but not
50530         on macro parameter name.
50531         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
50532         parentheses around reference to macro parameter.
50533
50534 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
50535
50536         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
50537         prototype.
50538         (ctype_startup): Use uint32_t in cast and sizeof for
50539         ctype->charnames.
50540
50541 2013-09-11  Jia Liu  <proljc@gmail.com>
50542
50543         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
50544         __daddr_t_defined.
50545         [__FreeBSD__]: Likewise.
50546
50547 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
50548
50549         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
50550         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
50551         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
50552         (strchr): Remove __strchr_sse42 ifunc selection.
50553         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
50554         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
50555
50556 2013-09-11  Will Newton  <will.newton@linaro.org>
50557
50558         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
50559         parameter to RES. Remove hardcoded 1000 value.
50560         * benchtests/bench-skeleton.c (main): Pass RES parameter
50561         to TIMING_INIT and multiply result by 1000.
50562
50563 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50564
50565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50566
50567 2013-09-11  Andreas Schwab  <schwab@suse.de>
50568
50569         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
50570         if not defined.
50571         (O_TMPFILE) [__USE_GNU]: Define.
50572         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
50573         Define.
50574
50575 2013-09-11  Will Newton  <will.newton@linaro.org>
50576
50577         [BZ #15857]
50578         * malloc/malloc.c (__libc_memalign): Check the value of bytes
50579         does not overflow.
50580
50581 2013-09-11  Will Newton  <will.newton@linaro.org>
50582
50583         [BZ #15856]
50584         * malloc/malloc.c (__libc_valloc): Check the value of bytes
50585         does not overflow.
50586
50587 2013-09-11  Will Newton  <will.newton@linaro.org>
50588
50589         [BZ #15855]
50590         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
50591         does not overflow.
50592
50593 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
50594
50595         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
50596         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
50597         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
50598         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
50599         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
50600
50601 2013-09-10  Allan McRae  <allan@archlinux.org>
50602
50603         [BZ #15748]
50604         * manual/arith.texi (Parsing of Floats): Clarify
50605         cross-reference.
50606
50607         [BZ #15849]
50608         * manual/install.texi (Running make install): Mention
50609         --enable-pt-chown.
50610         * INSTALL: Regenerated.
50611
50612 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
50613
50614         * csu/init-first.c (_init): Remove the !SHARED condition around
50615         FPU control word initialization.
50616         * elf/dl-support.c (_dl_fpu_control): New variable.
50617         (_dl_aux_init) <AT_FPUCW>: Initialize it.
50618         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
50619         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
50620         * math/test-fpucw-static.c: New file.
50621         * math/test-fpucw-ieee.c: New file.
50622         * math/test-fpucw-ieee-static.c: New file.
50623         * math/Makefile (tests): Add `test-fpucw-ieee' and
50624         `$(tests-static)'.
50625         (tests-static): New variable.
50626         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
50627         dependency to...
50628         [($(build-shared),yes)]
50629         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
50630         ... this.
50631         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
50632         New dependency.
50633
50634 2013-09-09  Allan McRae  <allan@archlinux.org>
50635
50636         [BZ #15939]
50637         * manual/string.texi (Collation Functions): Fix typo in
50638         strcoll example.
50639         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
50640
50641         [BZ #15893]
50642         * stdlib/isomac.c (get_null_defines): Fix memory leak.
50643
50644         [BZ #15892]
50645         * libio/memstream.c (open_memstream): Fix memory leak.
50646         * libio/wmemstream.c (open_wmemstream): Likewise.
50647
50648         [BZ #15895]
50649         * nscd/netgroupcache.c: Fix nesting of ifdefs.
50650
50651 2013-09-09  Will Newton  <will.newton@linaro.org>
50652
50653         * malloc/Makefile: Add tst-realloc to tests.
50654         * malloc/tst-realloc.c: New file.
50655
50656 2013-09-09  Allan McRae  <allan@archlinux.org>
50657
50658         [BZ #15844]
50659         * COPYING: Update from GNU website to fix FSF address.
50660         * COPYING.LIB: Likewise.
50661
50662 2013-09-06  David S. Miller  <davem@davemloft.net>
50663
50664         * po/zh_TW.po: Update Chinese (traditional) translation from
50665         translation project.
50666
50667 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
50668             Joseph Myers  <joseph@codesourcery.com>
50669
50670         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
50671         "localeinfo.h".
50672         (obstack_chunk_alloc): New macro.
50673         (obstack_chunk_free): Likewise.
50674         (record_offset): New function.
50675         (init_locale_data): Likewise.
50676         (align_locale_data): Likewise.
50677         (add_locale_empty): Likewise.
50678         (add_locale_raw_data): Likewise.
50679         (add_locale_raw_obstack): Likewise.
50680         (add_locale_string): Likewise.
50681         (add_locale_wstring): Likewise.
50682         (add_locale_uint32): Likewise.
50683         (add_locale_uint32_array): Likewise.
50684         (add_locale_char): Likewise.
50685         (start_locale_structure): Likewise.
50686         (end_locale_structure): Likewise.
50687         (start_locale_prelude): Likewise.
50688         (end_locale_prelude): Likewise.
50689         (write_locale_data): Take locale_file structure rather than an
50690         iovec.
50691         * locale/programs/locfile.h: Include "obstack.h".
50692         (struct locale_file): Change to store locale file contents instead
50693         of header.
50694         (init_locale_data): New prototype.
50695         (align_locale_data): Likewise.
50696         (add_locale_empty): Likewise.
50697         (add_locale_raw_data): Likewise.
50698         (add_locale_raw_obstack): Likewise.
50699         (add_locale_string): Likewise.
50700         (add_locale_wstring): Likewise.
50701         (add_locale_uint32): Likewise.
50702         (add_locale_uint32_array): Likewise.
50703         (add_locale_char): Likewise.
50704         (start_locale_structure): Likewise.
50705         (end_locale_structure): Likewise.
50706         (start_locale_prelude): Likewise.
50707         (end_locale_prelude): Likewise.
50708         (write_locale_data): Update prototype.
50709         * locale/programs/3level.h (struct TABLE): Remove result field.
50710         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
50711         Use new locale_file interface.
50712         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
50713         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
50714         * locale/programs/ld-address.c (address_output): Use new
50715         locale_file interface.
50716         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
50717         NO_ADD_LOCALE.
50718         (collate_finish): Don't call collseq_table_finalize.
50719         (collate_output): Use new locale_file interface.
50720         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
50721         in file.
50722         (NO_FINALIZE): Change to NO_ADD_LOCALE.
50723         (TABLE): Move defines earlier in file.
50724         (ELEMENT): Likewise.
50725         (DEFAULT): Likewise.
50726         (wctrans_table_add): Move macro and inline function earlier in
50727         file.
50728         (struct wctype_table): Move type earlier in file.
50729         (add_locale_wctype_table): New static prototype.
50730         (struct locale_ctype_t): Use logical types instead of struct iovec
50731         pointers for members.
50732         (ctype_output): Use new locale_file interface.
50733         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
50734         new locale_file interface.
50735         (allocate_arrays): Update for use of new locale_file interface.
50736         * locale/programs/ld-identification.c (identification_output): Use
50737         new locale_file interface.
50738         * locale/programs/ld-measurement.c (measurement_output): Likewise.
50739         * locale/programs/ld-messages.c (messages_output): Likewise.
50740         * locale/programs/ld-monetary.c (monetary_output): Likewise.
50741         * locale/programs/ld-name.c (name_output): Likewise.
50742         * locale/programs/ld-numeric.c (numeric_output): Likewise.
50743         * locale/programs/ld-paper.c (paper_output): Likewise.
50744         * locale/programs/ld-telephone.c (telephone_output): Likewise.
50745         * locale/programs/ld-time.c (time_output): Likewise.
50746
50747 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50748
50749         * benchtests/Makefile: Add memrchr benchmark.
50750         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
50751         benchmark as memrchr.
50752         * benchtests/bench-memrchr-ifunc.c: New file.
50753         * benchtests/bench-memrchr.c: New file.
50754
50755 2013-09-06   Will Newton  <will.newton@linaro.org>
50756
50757         * benchtests/Makefile (string-bench): Add memcpy.
50758
50759 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
50760             Cong Wang  <amwang@redhat.com>
50761
50762         [BZ #15850]
50763         * sysdeps/unix/sysv/linux/bits/in.h
50764         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
50765         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
50766         before __USE_KERNEL_IPV6_DEFS uses.
50767         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
50768         IPPROTO_BEETPH.
50769         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
50770         sockaddr_in6, or ipv6_mreq.
50771
50772 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50773
50774         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
50775         memory access for final bytes in some large inputs.
50776         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
50777
50778 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50779
50780         * string/test-memrchr.c: New file.
50781         * string/test-memrchr-ifunc.c: New file.
50782         * string/Makefile: Add new memrchr testcase.
50783
50784 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
50785
50786         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
50787         fanotify_init returns EPERM.
50788
50789 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50790
50791         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
50792         errors.
50793         (top level): Treat second token from macro or constant entries for
50794         allowed headers as allowed.
50795         * include/complex.h: Condition internal declarations on
50796         [!_ISOMAC].
50797         * include/fenv.h: Condition include of <stdbool.h> and internal
50798         declarations on [!_ISOMAC].
50799
50800 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
50801
50802         [BZ #15923]
50803         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
50804
50805 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50806
50807         * configure.in (--enable-versioning): Remove configure option.
50808         (libc_cv_asm_symver_directive): Remove configure test.
50809         (libc_cv_ld_version_script_option): Likewise.
50810         (VERSIONING): Remove variable and AC_SUBST.
50811         (DO_VERSIONING): Remove AC_DEFINE.
50812         * configure: Regenerated.
50813         * config.h.in (DO_VERSIONING): Remove macro.
50814         * Makerules [$(versioning) = yes]: Change conditionals to
50815         [$(build-shared) = yes].
50816         * config.make.in (versioning): Remove variable.
50817         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
50818         [$(build-shared) = yes].
50819         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
50820         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
50821         * elf/Makefile [$(versioning) = yes]: Change conditionals to
50822         [$(build-shared) = yes].
50823         * extra-lib.mk [$(versioning) = yes]: Likewise.
50824         * hurd/Makefile [$(versioning) = yes]: Likewise.
50825         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
50826         [SHARED].
50827         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
50828         [SHARED].
50829         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50830         [SHARED && !NO_HIDDEN].
50831         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
50832         [SHARED].
50833         [SHARED && DO_VERSIONING]: Likewise..
50834         * libio/Makefile [$(versioning) = yes]: Change conditionals to
50835         [$(build-shared) = yes].
50836         * manual/install.texi (--disable-versioning): Remove
50837         documentation.
50838         * INSTALL: Regenerated.
50839         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
50840         to [SHARED].
50841         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
50842         [$(build-shared) = yes].
50843         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
50844         * sysdeps/i386/i686/multiarch/strstr-c.c
50845         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50846         [SHARED && !NO_HIDDEN].
50847         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
50848         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
50849         * sysdeps/powerpc/powerpc32/dl-machine.c
50850         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
50851         * sysdeps/powerpc/powerpc32/sysdep.h
50852         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
50853         to [SHARED && PIC && !NO_HIDDEN].
50854         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
50855         conditional to [SHARED].
50856
50857 2013-09-04   Will Newton  <will.newton@linaro.org>
50858
50859         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
50860         * benchtests/bench-string.h: Include bench-timing.h instead
50861         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
50862         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
50863         call to HP_TIMING_DIFF_INIT.
50864         * benchtests/bench-memccpy.c: Use bench-timing.h macros
50865         instead of hp-timing.h macros.
50866         * benchtests/bench-memchr.c: Likewise.
50867         * benchtests/bench-memcmp.c: Likewise.
50868         * benchtests/bench-memcpy.c: Likewise.
50869         * benchtests/bench-memmem.c: Likewise.
50870         * benchtests/bench-memmove.c: Likewise.
50871         * benchtests/bench-memset.c: Likewise.
50872         * benchtests/bench-rawmemchr.c: Likewise.
50873         * benchtests/bench-strcasecmp.c: Likewise.
50874         * benchtests/bench-strcasestr.c: Likewise.
50875         * benchtests/bench-strcat.c: Likewise.
50876         * benchtests/bench-strchr.c: Likewise.
50877         * benchtests/bench-strcmp.c: Likewise.
50878         * benchtests/bench-strcpy.c: Likewise.
50879         * benchtests/bench-strcpy_chk.c: Likewise.
50880         * benchtests/bench-strlen.c: Likewise.
50881         * benchtests/bench-strncasecmp.c: Likewise.
50882         * benchtests/bench-strncat.c: Likewise.
50883         * benchtests/bench-strncmp.c: Likewise.
50884         * benchtests/bench-strncpy.c: Likewise.
50885         * benchtests/bench-strnlen.c: Likewise.
50886         * benchtests/bench-strpbrk.c: Likewise.
50887         * benchtests/bench-strrchr.c: Likewise.
50888         * benchtests/bench-strspn.c: Likewise.
50889         * benchtests/bench-strstr.c: Likewise.
50890
50891 2013-09-04  Will Newton  <will.newton@linaro.org>
50892
50893         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
50894
50895 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
50896
50897         [BZ #15427]
50898         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
50899         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
50900         * math/libm-test.inc (lgamma_test_data): Add more tests.
50901         * sysdeps/i386/fpu/libm-test-ulps: Update.
50902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50903
50904 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
50905
50906         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
50907         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50908         Add ifunc.
50909         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50910         Add strcmp-sse2-unaligned
50911         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
50912
50913 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50914
50915         * Versions.def (libc): Add GLIBC_2.19.
50916
50917 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50918
50919         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
50920         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
50921
50922 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
50923
50924         [BZ #14155]
50925         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
50926         intermediate calculations in recurrence.
50927         (__ieee754_ynf): Likewise.
50928         * math/libm-test.inc (jn_test_data): Do not allow spurious
50929         underflow exception.  Add more tests.
50930         (yn_test_data): Add more tests.
50931         * sysdeps/i386/fpu/libm-test-ulps: Update.
50932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50933
50934 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
50935
50936         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
50937
50938 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50939
50940         * csu/init-first.c: Fix then/than typos.
50941         * locale/programs/ld-collate.c: Likewise.
50942         * locale/programs/linereader.h: Likewise.
50943         * manual/charset.texi: Likewise.
50944         * manual/filesys.texi: Likewise.
50945         * manual/stdio.texi: Likewise.
50946         * manual/string.texi: Likewise.
50947         * stdlib/fmtmsg.c: Likewise.
50948         * sysdeps/i386/stpncpy.S: Likewise.
50949         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
50950         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
50951         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
50952         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
50953
50954 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50955
50956         * elf/dl-open.c: Fix typos.
50957         * iconvdata/gbbig5.c: Likewise.
50958         * iconvdata/iso-2022-jp.c: Likewise.
50959         * iconv/gconv_int.h: Likewise.
50960         * iconv/loop.c: Likewise.
50961         * nis/rpcsvc/nis.h: Likewise.
50962         * resolv/ns_name.c: Likewise.
50963         * stdio-common/vfscanf.c: Likewise.
50964         * streams/stropts.h: Likewise.
50965         * sunrpc/rpc_thread.c: Likewise.
50966         * sysdeps/i386/strpbrk.S: Likewise.
50967         * sysdeps/ieee754/k_standard.c: Likewise.
50968         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
50969         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50970         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
50971         * sysdeps/mach/hurd/profil.c: Likewise.
50972         * sysdeps/s390/dl-procinfo.h: Likewise.
50973         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
50974         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
50975         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
50976         * sysdeps/x86_64/dl-trampoline.S: Likewise.
50977         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
50978
50979 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
50980
50981         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
50982         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
50983
50984 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
50985
50986         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
50987         aix specific files.
50988         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
50989         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
50990         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
50991         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
50992         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
50993         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
50994         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
50995         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
50996
50997 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50998             Roland McGrath  <roland@hack.frob.com>
50999
51000         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
51001         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
51002
51003 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
51004
51005         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
51006         __executable_start symbol instead of _start.
51007
51008 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
51009
51010         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
51011         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
51012         Move macros to...
51013         * sysdeps/gnu/ldsodefs.h: ... this new file.
51014
51015         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
51016         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
51017         instead of ELFOSABI_LINUX.
51018
51019         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
51020         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
51021         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
51022         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
51023         Likewise.
51024         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
51025         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
51026         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
51027         Likewise.
51028         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
51029         (ibm_extended_long_double): Add ieee_nan member.
51030         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
51031         (do_test): New function.
51032
51033         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
51034         TEST_TRUNC.
51035         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
51036         functions, renamed from truncdfsf_test, trunctfsf_test,
51037         trunctfdf_test.
51038         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
51039         functions.
51040         (do_test): Run all these.
51041
51042 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
51043
51044         * argp/argp-help.c: Fix typos.
51045         * argp/argp-parse.c: Likewise.
51046         * debug/backtracesyms.c: Likewise.
51047         * elf/elf.h: Likewise.
51048         * malloc/malloc.c: Likewise.
51049         * nis/nis_print.c: Likewise.
51050         * resolv/res_comp.c: Likewise.
51051         * stdlib/stdlib.h: Likewise.
51052         * sunrpc/clnt_tcp.c: Likewise.
51053         * sunrpc/clnt_udp.c: Likewise.
51054         * sunrpc/clnt_unix.c: Likewise.
51055         * sysdeps/unix/bsd/ptsname.c: Likewise.
51056         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
51057         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
51058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
51059         Likewise.
51060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
51061         Likewise.
51062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
51063         Likewise.
51064         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
51065
51066 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51067
51068         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
51069         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
51070
51071 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
51072
51073         [BZ #15897]
51074         * dlfcn/Makefile (tests): Add bug-dl-leaf.
51075         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
51076         ($(objpfx)bug-dl-leaf): New rule.
51077         ($(objpfx)bug-dl-leaf.so): Likewise.
51078         ($(objpfx)bug-dl-leaf.out): Likewise.
51079         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
51080         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
51081         * dlfcn/bug-dl-leaf.c: New test.
51082         * dlfcn/bug-dl-leaf-lib.c: Likewise.
51083         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
51084         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
51085         (dlclose): Likewise.
51086         (dlmopen): Likewise.
51087
51088 2013-08-27  Roland McGrath  <roland@hack.frob.com>
51089
51090         * include/netdb.h [!_ISOMAC]:
51091         Don't include <tls.h>.
51092         (h_errno, __libc_h_errno): Move declaration and macros out of
51093         [_LIBC_REENTRANT].
51094
51095         * include/resolv.h [_RESOLV_H_]:
51096         Don't include <tls.h>.
51097         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
51098         * resolv/res_libc.c: Don't include <tls.h>.
51099         (_res): Use __attribute__ ((nocommon)) in place of
51100         __attribute__ ((section (".bss"))).
51101
51102         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
51103         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
51104
51105         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
51106
51107         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
51108         only under [SIOCGIFCONF && SIOCGIFNETMASK].
51109
51110         * resolv/res_mkquery.c: Include <sys/time.h>.
51111
51112         * inet/ifreq.c: Moved to ...
51113         * sysdeps/unix/ifreq.c: ... here.
51114         * inet/ifreq.c: New file, true stub version.
51115
51116         * socket/sa_len.c: New file.
51117         * socket/Makefile (aux): Add it.
51118         * sysdeps/unix/sysv/linux/Makefile
51119         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
51120         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
51121         and #include <socket/sa_len.c>.
51122         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
51123         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
51124
51125         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
51126         * bits/socket.h: ... here.
51127
51128         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
51129         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
51130         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
51131
51132 2013-08-27  Andreas Schwab  <schwab@suse.de>
51133
51134         [BZ #15736]
51135         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
51136         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
51137         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
51138         * string/test-strcasecmp.c (test_main): Run tests in several
51139         locales.
51140         * string/test-strncasecmp.c (test_main): Likewise.
51141
51142         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
51143         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
51144         to __strcasecmp_nonascii and __strncasecmp_nonascii.
51145         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
51146         (__strncasecmp_ssse3) [PIC]: Likewise.
51147
51148 2013-08-26  Roland McGrath  <roland@hack.frob.com>
51149
51150         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
51151
51152         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
51153         instead of explicitly declaring xdecrypt.
51154         * nis/nss_nis/nis-publickey.c: Likewise.
51155
51156 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51157
51158         [BZ #15890]
51159         * nscd/aicache.c: Include res_hconf.h.
51160         (addhstaiX): Initialize res_hconf.
51161
51162 2013-08-26  Andreas Schwab  <schwab@suse.de>
51163
51164         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
51165         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
51166
51167 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51168
51169         * nscd/aicache.c (addhstaiX): Fix indentation.
51170
51171 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
51172
51173         * configure.ac: Quote $build_pt_chown test.
51174         * configure: Regenerated.
51175
51176 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
51177
51178         [BZ #15532]
51179         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
51180         * math/s_cexpf.c (__cexpf): Likewise.
51181         * math/s_cexpl.c (__cexpl): Likewise.
51182         * math/libm-test.inc (cexp_test_data): Correct expected return
51183         value for NaN + i0.  Add another test.
51184
51185 2013-08-22  David S. Miller  <davem@davemloft.net>
51186
51187         * po/ca.po: Update Catalan translation from translation project.
51188         * po/uk.po: Add Ukrainian translations from translation project.
51189
51190 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
51191
51192         [BZ #15797]
51193         * math/s_fdim.c (__fdim): Check for infinite arguments if result
51194         is infinite, not alongside NaN test.
51195         * math/s_fdimf.c (__fdimf): Likewise.
51196         * math/s_fdiml.c (__fdiml): Likewise.
51197         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
51198         errno is unchanged.
51199
51200 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
51201
51202         * argp/argp-help.c: Fix typos.
51203         * crypt/speeds.c: Likewise.
51204         * csu/check_fds.c: Likewise.
51205         * elf/dl-load.c: Likewise.
51206         * elf/dl-open.c: Likewise.
51207         * elf/reldep3.c: Likewise.
51208         * elf/reldep.c: Likewise.
51209         * elf/sprof.c: Likewise.
51210         * iconv/iconv_charmap.c: Likewise.
51211         * iconv/skeleton.c: Likewise.
51212         * iconv/strtab.c: Likewise.
51213         * io/lockf64.c: Likewise.
51214         * libio/libioP.h: Likewise.
51215         * resolv/gai_notify.c: Likewise.
51216         * resolv/ns_name.c: Likewise.
51217         * resolv/ns_samedomain.c: Likewise.
51218         * resolv/res_send.c: Likewise.
51219         * stdlib/random.c: Likewise.
51220         * sunrpc/rpc/xdr.h: Likewise.
51221         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
51222         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
51223         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
51224         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
51225         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
51226         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
51227         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
51228         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
51229         * sysdeps/mach/hurd/check_fds.c: Likewise.
51230         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
51231         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
51232         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
51233         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
51234         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
51235         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
51236         * sysdeps/pthread/aio_notify.c: Likewise.
51237         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
51238         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
51239         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
51240         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
51241         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
51242
51243 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51244
51245         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
51246         version if bit_Slow_SSE4_2 is set.
51247         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
51248         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
51249
51250 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51251
51252         [BZ #15867]
51253         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
51254         trampoline stack frame information.
51255         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
51256         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
51257         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
51258         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
51259         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
51260         * sysdeps/unix/sysv/linux/powerpc/init-first.c
51261         (_libc_vdso_platform_setup): Initialize the signal trampolines.
51262         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
51263         sa_flags value.
51264         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
51265         interrupting a syscall and set with option SA_SIGINFO.
51266
51267 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51268
51269         [BZ #15531]
51270         * math/s_cproj.c (__cproj): Only return an infinity if one part of
51271         argument is infinite.
51272         * math/s_cprojf.c (__cprojf): Likewise.
51273         * math/s_cprojl.c (__cprojl): Likewise.
51274         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
51275         * math/libm-test.inc (cproj_test_data): Add more tests.
51276
51277         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
51278
51279         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
51280         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
51281         size.  Use __ffs to determine corresponding shift.
51282
51283 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51284             Roland McGrath  <roland@hack.frob.com>
51285
51286         * Makefile (INSTALL): Remove trailing blank lines from output of
51287         makeinfo.
51288
51289 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51290
51291         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
51292         Align 32 bit compat elf_greg to 8 bytes.
51293
51294 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
51295
51296         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
51297
51298 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51299
51300         * string/strcoll_l.c (coll_seq): New structure.
51301         (get_next_seq_cached): New function.
51302         (get_next_seq): New function.
51303         (do_compare): New function.
51304         (STRCOLL): Use GNU style definition.  Simplify implementation
51305         by using get_next_seq, get_next_seq_cached and do_compare.
51306
51307 2013-08-16  Florian Weimer  <fweimer@redhat.com>
51308
51309         [BZ #14699]
51310         CVE-2013-4237
51311         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
51312         member.
51313         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
51314         member.
51315         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
51316         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
51317         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
51318         conditional.
51319         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
51320         GETDENTS_64BIT_ALIGNED.
51321         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
51322         * manual/filesys.texi (Reading/Closing Directory): Document
51323         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
51324         strongly.
51325         * manual/conf.texi (Limits for Files): Add portability note to
51326         NAME_MAX, PATH_MAX.
51327         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
51328
51329 2013-08-13  Andreas Schwab  <schwab@suse.de>
51330
51331         [BZ #15749]
51332         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
51333         of fabs.
51334         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
51335         LDBL_MAX_EXP >= 16384]: Add tests for it.
51336
51337 2013-08-12  David S. Miller  <davem@davemloft.net>
51338
51339         * version.h (RELEASE): Set to "development".
51340         (VERSION): Set to "2.18.90".
51341         * NEWS: Add 2.19 section.
51342
51343 2013-08-03  David S. Miller  <davem@davemloft.net>
51344
51345         * po/ko.po: Update Korean translation from translation project.
51346
51347 2013-08-01  David S. Miller  <davem@davemloft.net>
51348
51349         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
51350         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
51351         Bilka.
51352
51353 2013-07-30  David S. Miller  <davem@davemloft.net>
51354
51355         * po/fr.po: Update French translation from translation project.
51356
51357 2013-07-28  David S. Miller  <davem@davemloft.net>
51358
51359         * po/cs.po: Update Czech translation from translation project.
51360
51361         * po/sv.po: Update Swedish translation from translation project.
51362
51363 2013-07-27  David S. Miller  <davem@davemloft.net>
51364
51365         * po/eo.po: Update Esperanto translation from translation project.
51366
51367         * po/vi.po: Update Vietnamese translation from translation project.
51368
51369         * po/de.po: Update German translation from translation project.
51370
51371 2013-07-26  David S. Miller  <davem@davemloft.net>
51372
51373         * po/bg.po: Update Bulgarian translation from translation project.
51374
51375         * po/nl.po: Update Dutch translation from translation project.
51376         * po/pl.po: Update Polish translation from translation project.
51377         * po/ru.po: Update Russian translation from translation project.
51378
51379 2013-07-24  David S. Miller  <davem@davemloft.net>
51380
51381         * po/libc.pot: Update.
51382
51383 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51384
51385         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
51386         variable page size.
51387         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
51388         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
51389         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
51390
51391 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51392
51393         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
51394
51395 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51396             Andreas Schwab  <schwab@suse.de>
51397             Roland McGrath  <roland@hack.frob.com>
51398             Joseph Myers  <joseph@codesourcery.com>
51399             Carlos O'Donell  <carlos@redhat.com>
51400
51401         [BZ #15755]
51402         * config.h.in: Define HAVE_PT_CHOWN.
51403         * config.make.in (build-pt-chown): New variable.
51404         * configure.in (--enable-pt_chown): New configure option.
51405         * configure: Regenerate.
51406         * login/Makefile: Include Makeconfig.  Build pt_chown only if
51407         build-pt-chown is enabled.
51408         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
51409         pt_chown to fix pty ownership.
51410         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
51411         CLOSE_ALL_FDS.
51412         * manual/install.texi (Configuring and compiling): Mention
51413         --enable-pt_chown. Add @findex for grantpt.
51414         * INSTALL: Regenerate.
51415
51416 2013-07-20  David S. Miller  <davem@davemloft.net>
51417
51418         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
51419         difference between 32-bit and 64-bit.
51420
51421 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
51422
51423         [BZ #15711]
51424         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
51425         Avoid system header dependency with -ffreestanding.
51426         ($(objpfx)bits/syscall%d): Likewise.
51427
51428 2013-07-13  David S. Miller  <davem@davemloft.net>
51429
51430         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
51431         underflows from atanl/atan2l due to bug 15319.
51432         (casinh_test_data): Likewise.
51433
51434 2013-07-07  David S. Miller  <davem@davemloft.net>
51435
51436         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
51437
51438 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
51439
51440         * sysdeps/i386/fpu/libm-test-ulps: Update.
51441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51442
51443 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
51444
51445         * configure.in (--enable-lock-elision): Fix message text.
51446         * INSTALL: Regenerate.
51447         * configure: Regenerate.
51448
51449 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51450
51451         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51452
51453 2013-07-03  Andreas Jaeger  <aj@suse.de>
51454
51455         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
51456         define.
51457         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
51458         (ptrace_peeksiginfo_args): Add.
51459         (__ptrace_peeksiginfo_flags): Add.
51460         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51461         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51462         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51463
51464 2013-07-03  Allan McRae  <allan@archlinux.org>
51465
51466         * sysdeps/i386/fpu/libm-test-ulps: Update.
51467
51468 2013-07-02  David S. Miller  <davem@davemloft.net>
51469
51470         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51471
51472 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
51473
51474         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51475
51476 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51477
51478         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51480
51481 2013-07-02  Andi Kleen <ak@linux.intel.com>
51482
51483         * config.h.in (ENABLE_LOCK_ELISION): Add.
51484         * configure.in (--enable-lock-elision): Add option.
51485         * manual/install.texi: Document --enable lock elision.
51486         * configure: Regenerate
51487         * INSTALL: Regenerate.
51488
51489 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
51490
51491         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
51492         SSE4.2 strcasecmp for libc.a.
51493         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
51494
51495 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51496
51497         [BZ #13304]
51498         * soft-fp/op-common.h (_FP_FMA): New macro.
51499         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
51500         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
51501         (_FP_MUL_MEAT_1_imm): ... here.
51502         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
51503         (_FP_MUL_MEAT_1_wide): ... here.
51504         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
51505         (_FP_MUL_MEAT_1_hard): ... here.
51506         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
51507         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
51508         (_FP_MUL_MEAT_2_wide): ... here.
51509         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
51510         (_FP_MUL_MEAT_2_wide_3mul): ... here.
51511         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
51512         (_FP_MUL_MEAT_2_gmp): ... here.
51513         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
51514         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
51515         (_FP_MUL_MEAT_4_wide): ... here.
51516         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
51517         (_FP_MUL_MEAT_4_gmp): ... here.
51518         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
51519         (_FP_WFRACBITS_DW_S): Likewise.
51520         (_FP_WFRACXBITS_DW_S): Likewise.
51521         (_FP_HIGHBIT_DW_S): Likewise.
51522         (FP_FMA_S): Likewise.
51523         (_FP_FRAC_HIGH_DW_S): Likewise.
51524         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
51525         (_FP_WFRACBITS_DW_D): Likewise.
51526         (_FP_WFRACXBITS_DW_D): Likewise.
51527         (_FP_HIGHBIT_DW_D): Likewise.
51528         (FP_FMA_D): Likewise.
51529         (_FP_FRAC_HIGH_DW_D): Likewise.
51530         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
51531         (_FP_WFRACBITS_DW_E): Likewise.
51532         (_FP_WFRACXBITS_DW_E): Likewise.
51533         (_FP_HIGHBIT_DW_E): Likewise.
51534         (FP_FMA_E): Likewise.
51535         (_FP_FRAC_HIGH_DW_E): Likewise.
51536         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
51537         (_FP_WFRACBITS_DW_Q): Likewise.
51538         (_FP_WFRACXBITS_DW_Q): Likewise.
51539         (_FP_HIGHBIT_DW_Q): Likewise.
51540         (FP_FMA_Q): Likewise.
51541         (_FP_FRAC_HIGH_DW_Q): Likewise.
51542         * soft-fp/fmasf4.c: New file.
51543         * soft-fp/fmadf4.c: Likewise.
51544         * soft-fp/fmatf4.c: Likewise.
51545
51546 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51547
51548         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
51549         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
51550         Silvermont.
51551         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
51552         macro.
51553         (index_Slow_SSE4_2): Likewise.
51554         (index_Prefer_PMINUB_for_stringop): Likewise.
51555         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
51556         bit_Slow_SSE4_2 is set.
51557         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51558         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
51559
51560 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51561
51562         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
51563         rtld_global._dl_hwcap2.
51564         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
51565         POWER8.
51566         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
51567         POWER8 feature descriptions defined in _dl_hwcap2.
51568         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
51569         string handling for POWER8 feature bits.
51570         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
51571         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
51572         _dl_powerpc_cap_flags.
51573         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
51574         * sysdeps/powerpc/rtld-global-offsets.sym
51575         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
51576         _dl_hwcap2 in the rtld_global_ro structure.
51577
51578 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51579
51580         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
51581         hardware capabilities in support of AT_HWCAP2.
51582         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
51583         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
51584         GLRO(dl_hwcap2).
51585         (_dl_show_auxv): Add support for calling _dl_procinfo to display
51586         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
51587         explicitly the unknown a_type display mechanism is used.
51588         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
51589         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
51590         struct member.
51591         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
51592         to macro prototype for AT_HWCAP2 support.
51593         * sysdeps/i386/dl-procinfo.h: Likewise.
51594         * sysdeps/s390/dl-procinfo.h: Likewise.
51595         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
51596         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
51597         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
51598         return -1 for unknown a_type display fallback.
51599         * sysdeps/sparc/dl-procinfo.h: Likewise.
51600         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
51601         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
51602
51603 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
51604
51605         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
51606         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
51607
51608 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
51609
51610         [BZ #12492]
51611         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
51612         mprotect making __stack_prot writable.
51613
51614 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
51615             Joseph Myers  <joseph@codesourcery.com>
51616
51617         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
51618         as being properly aligned.
51619
51620 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
51621
51622         * dlfcn/modstatic5.c: New file.
51623         * dlfcn/tststatic5.c: New file.
51624         * dlfcn/Makefile (tests): Add tststatic5.
51625         (tests-static): Likewise.
51626         (modules-names): Add modstatic5.
51627         (tststatic5-ENV): New variable.
51628         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
51629
51630         [BZ #15022]
51631         * elf/dl-support.c (_dl_main_map): New variable.
51632         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
51633         (_dl_nns, _dl_load_adds): Set to 1.
51634         (_dl_initial_searchlist): Refer to _dl_main_map.
51635         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
51636         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
51637         call to _dl_get_origin.
51638         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
51639         around call_map.
51640         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
51641         * dlfcn/modstatic3.c: New file.
51642         * dlfcn/tststatic3.c: New file.
51643         * dlfcn/tststatic4.c: New file.
51644         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
51645         (tests-static): Likewise.
51646         (modules-names): Add modstatic3.
51647         (tststatic3-ENV, tststatic4-ENV): New variables.
51648         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
51649         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
51650
51651 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
51652
51653         * configure.in (CC): Require GCC version 4.4 or later.
51654         * configure: Regenerated.
51655         * manual/install.texi (Tools for Compilation): Update GCC version
51656         requirement.
51657         * INSTALL: Regenerated.
51658
51659 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51660
51661         [BZ #15674]
51662         * string/test-memcmp.c (check2): New.
51663         (main): Call check2.
51664
51665         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
51666
51667 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
51668
51669         [BZ #15022]
51670         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
51671         over to...
51672         (dl_open_worker) [!SHARED]: ... here.
51673
51674 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51675
51676         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
51677
51678 2013-06-25  Richard Henderson  <rth@redhat.com>
51679
51680         * locale/programs/locarchive.c: Include <libc-internal.h>
51681
51682 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
51683
51684         * manual/texinfo.tex: Update to version 2013-06-21.17, with
51685         trailing whitespace removed.
51686
51687 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51688
51689         [BZ #10283]
51690         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
51691         * locale/programs/locarchive.c: Include libc-mmap.h.
51692         (prepare_address_space): Take two new outputs (the mmap base and len).
51693         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
51694         values.
51695         (create_archive): Declare new mmap base and len values for
51696         prepare_address_space, and store the result in ah.
51697         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
51698         (enlarge_archive): If ah->mmap_base is not NULL, use that and
51699         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51700         Declare new mmap base and len values for
51701         prepare_address_space, and store the result in new_ah.
51702         (open_archive): Declare new mmap base and len values for
51703         prepare_address_space, and store the result in ah.
51704         (close_archive): If ah->mmap_base is not NULL, use that and
51705         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51706         * sysdeps/generic/libc-mmap.h: New file.
51707
51708 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51709
51710         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
51711         (ALIGN_UP): Likewise.
51712         (PTR_ALIGN_DOWN): Likewise.
51713         (PTR_ALIGN_UP): Likewise.
51714
51715 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51716
51717         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
51718         entry mapped to PPC_PLATFORM_POWER8.
51719         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
51720         POWER8.
51721         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
51722         (_dl_string_platform): Add case for exporting platform position for
51723         POWER8.
51724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
51725         search path to sysdeps/powerpc/powerpc32/power8 directory.
51726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
51727         search path to sysdeps/powerpc/powerpc64/power8 directory.
51728         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
51729         power7 directories.
51730         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
51731         power7 directories.
51732
51733 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51734
51735         * INSTALL: Regenerate.
51736
51737         * nscd/connections.c (nscd_init): Fix comment.
51738
51739 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
51740
51741         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
51742
51743         [BZ #15667]
51744         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
51745         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
51746
51747 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51748
51749         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
51750         DL_DST_REQ_STATIC.
51751         (DL_DST_REQ_STATIC): Remove macro.
51752
51753 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
51754
51755         [BZ #7006]
51756         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
51757         with a shift of 0 bits.
51758
51759 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51760
51761         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
51762         $(tststatic-ENV).
51763
51764 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51765
51766         [BZ #15655]
51767         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
51768
51769 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51770
51771         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
51772         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
51773         accepts -fno-tree-loop-distribute-patterns.
51774         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
51775         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
51776         recursive call.
51777         * string/memset.c (memset): Likewise.
51778         * string/test-memmove.c (simple_memmove): Disable loop transformation
51779         to library calls.
51780         * string/test-memset.c (simple_memset): Likewise.
51781         * benchtests/bench-memmove.c (simple_memmove): Likewise.
51782         * benchtests/bench-memset.c (simple_memset): Likewise.
51783         * configure: Regenerated.
51784
51785 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
51786
51787         * math/test-misc.c (main): Ignore fesetround failure when failures
51788         of subsequent rounding tests would be ignored.
51789
51790         [BZ #15654]
51791         * math/fedisblxcpt.c (fedisableexcept): Return 0.
51792         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
51793         * math/fegetenv.c (__fegetenv): Return 0.
51794         * math/fegetexcept.c (fegetexcept): Return 0.
51795         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
51796         FE_TONEAREST.
51797         * math/feholdexcpt.c (feholdexcept): Return 0.
51798         * math/fesetenv.c (__fesetenv): Return 0.
51799         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
51800         argument FE_TONEAREST.
51801         * math/feupdateenv.c (__feupdateenv): Return 0.
51802         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
51803
51804 2013-06-18  Roland McGrath  <roland@hack.frob.com>
51805
51806         * elf/rtld-Rules (rtld-compile-command.S): New variable.
51807         (rtld-compile-command.s, rtld-compile-command.c): New variables.
51808         ($(objpfx)rtld-%.os rules): Use them.
51809
51810 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51811
51812         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
51813         fields.
51814
51815 2013-06-17  Roland McGrath  <roland@hack.frob.com>
51816
51817         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
51818         length of target pattern, then descending length of dependency pattern.
51819         * configure.in (AWK): Require gawk 3.1.2 or newer.
51820         * manual/install.texi (Tools for Compilation): Say that we do.
51821         * configure: Regenerated.
51822
51823         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
51824         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
51825         * scripts/sysd-rules.awk: ... this new script.
51826         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
51827         than a glob-style pattern.
51828
51829 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
51830
51831         * math/test-misc.c (main): Do not treat incorrectly rounded
51832         conversions as failure unless ROUNDING_TESTS passes.
51833
51834 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
51835
51836         [BZ #15631]
51837         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
51838         restore exception state around main square root computation, then
51839         check for inexactness explicitly.
51840
51841         * math/libm-test.inc (fma_test_data): Add another test.
51842
51843 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51844
51845         * manual/threads.texi (Non-POSIX Extensions): New document
51846         node.  Document pthread_getattr_default_np and
51847         pthread_setattr_default_np.
51848
51849         * Versions.def (libpthread): Add GLIBC_2.18.
51850         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
51851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
51852         Likewise.
51853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
51854         Likewise.
51855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
51856         Likewise.
51857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
51858         Likewise.
51859         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
51860         Likewise.
51861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
51862         Likewise.
51863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
51864         Likewise.
51865         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
51866         Likewise.
51867         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
51868         Likewise.
51869
51870 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51871
51872         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51873         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
51874
51875 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51876             H.J. Lu  <hjl.tools@gmail.com>
51877
51878         [BZ #15627]
51879         * sysdeps/x86_64/rtld-memset.c: Remove file.
51880         * sysdeps/x86_64/rtld-memset.S: New file.
51881
51882 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
51883
51884         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
51885         (test_in_one_mode): Take arguments for whether the rounding mode
51886         is supported for each floating-point type.
51887         (do_test): Pass new arguments to test_in_one_mode using
51888         ROUNDING_TESTS.
51889
51890 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51891
51892         * posix/tst-waitid.c (do_test): Distinguish different instances of
51893         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
51894         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
51895         before entering the kernel for waitpid.
51896
51897 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51898
51899         * NEWS: Fix note on clock function precision.  Text by Roland
51900         McGrath.
51901
51902 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51903
51904         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
51905         it into place only when and if the sanity check passes.
51906
51907 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
51908
51909         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
51910         output for whether conversion result is exact.  Take argument
51911         indicating whether type is IBM long double.
51912         (round_for_all): Change need_exact field to ibm_ld.
51913         * stdlib/tst-strtod-round.c (struct exactness): New type.
51914         (struct test): Change bool ld_ok field to struct exactness exact.
51915         (TEST): Update all definitions for change to field.
51916         (tests): Regenerate array contents.
51917         (test_in_one_mode): Take pointer to new field instead of old ld_ok
51918         field value.  Check for IBM long double here.
51919         (do_test): Update calls to test_in_one_mode.
51920
51921 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51922
51923         [BZ #12515]
51924         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
51925         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
51926
51927 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51928
51929         [BZ #15605]
51930         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
51931         generated by the compiler on loop optimizations.
51932         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
51933         general definitions.
51934
51935 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
51936
51937         * math/bug-nextafter.c: Include <math-tests.h>.
51938         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51939         the relevant type.
51940         * math/bug-nexttoward.c: Include <math-tests.h>.
51941         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51942         the relevant type.
51943         * math/test-misc.c: Include <math-tests.h>.
51944         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51945         the relevant type.
51946
51947 2013-06-12  Andreas Jaeger  <aj@suse.de>
51948
51949         * po/ia.po: Update Interlingua translation from translation
51950         project.
51951
51952 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
51953
51954         * include/fenv.h: Include stdbool.h.
51955         (struct rm_ctx): New structure.
51956         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
51957         Define macro.
51958         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
51959         (SET_RESTORE_ROUNDF): Likewise.
51960         (SET_RESTORE_ROUNDL): Likewise.
51961         (SET_RESTORE_ROUND_NOEX): Likewise.
51962         (SET_RESTORE_ROUND_NOEXF): Likewise.
51963         (SET_RESTORE_ROUND_NOEXL): Likewise.
51964         (SET_RESTORE_ROUND_53BIT): Likewise.
51965         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
51966         (libc_feresetround_noexf_ctx): Likewise.
51967         (libc_feresetround_noexl_ctx): Likewise.
51968         (libc_feholdsetround_53bit_ctx): Likewise.
51969         (libc_feresetround_53bit_ctx): Likewise.
51970         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
51971         (libc_feholdexcept_setround_sse_ctx): New function.
51972         (libc_fesetenv_sse_ctx): Likewise.
51973         (libc_feupdateenv_sse_ctx): Likewise.
51974         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
51975         (libc_feholdexcept_setround_387_ctx): Likewise.
51976         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
51977         (libc_feholdsetround_387_prec_ctx): Likewise.
51978         (libc_feholdsetround_387_ctx): Likewise.
51979         (libc_feholdsetround_387_53bit_ctx): Likewise.
51980         (libc_feholdsetround_sse_ctx): Likewise.
51981         (libc_feresetround_sse_ctx): Likewise.
51982         (libc_feresetround_387_ctx): Likewise.
51983         (libc_feupdateenv_387_ctx): Likewise.
51984         (libc_feholdexcept_setroundf_ctx): Define macro.
51985         (libc_fesetenvf_ctx): Likewise.
51986         (libc_feupdateenvf_ctx): Likewise.
51987         (libc_feholdsetroundf_ctx): Likewise.
51988         (libc_feresetroundf_ctx): Likewise.
51989         (libc_feholdexcept_setround_ctx): Likewise.
51990         (libc_fesetenv_ctx): Likewise.
51991         (libc_feupdateenv_ctx): Likewise.
51992         (libc_feholdsetround_ctx): Likewise.
51993         (libc_feresetround_ctx): Likewise.
51994         (libc_feholdexcept_setroundl_ctx): Likewise.
51995         (libc_feupdateenvl_ctx): Likewise.
51996         (libc_feholdsetroundl_ctx): Likewise.
51997         (libc_feresetroundl_ctx): Likewise.
51998         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
51999         (libc_feresetround_53bit_ctx): Likewise.
52000
52001 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52002
52003         * locale/iso-639.def: Convert to UTF-8.
52004
52005 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
52006
52007         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
52008         (EXCEPTION_TESTS_double): Likewise.
52009         (EXCEPTION_TESTS_long_double): Likewise.
52010         (EXCEPTION_TESTS): Likewise.
52011         * math/libm-test.inc (test_exceptions): Only test exceptions if
52012         EXCEPTION_TESTS (FLOAT).
52013
52014 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52015
52016         * benchtests/Makefile (string-bench): Add strcpy_chk and
52017         stpcpy_chk.
52018         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
52019         * benchtests/bench-stpcpy_chk.c: New file.
52020         * benchtests/bench-strcpy_chk-ifunc.c: New file.
52021         * benchtests/bench-strcpy_chk.c: New file.
52022         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
52023         code.
52024         (do_test): Likewise.
52025
52026 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52027
52028         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
52029         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
52030         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
52031         with tabs where appropriate.
52032         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
52033         dl-procinfo.h.
52034         [PPC_PLATFORM_PPC440]: Likewise.
52035         [PPC_PLATFORM_PPC464]: Likewise.
52036         [PPC_PLATFORM_PPC476]: Likewise.
52037         (_dl_string_platform): Add support for detecting ppc405, ppc440,
52038         ppc464, and ppc476 platform strings merging from ports/
52039         dl-procinfo.h.
52040
52041 2013-06-11  Andreas Schwab  <schwab@suse.de>
52042
52043         [BZ #14991]
52044         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
52045         (from_ucs4_idx): Regenerate.
52046         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
52047         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
52048         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
52049         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
52050         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
52051         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
52052         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
52053         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
52054         from FROM_LOOP and TO_LOOP specific macros.
52055         (BODY): Handle combining characters.
52056         * iconvdata/BIG5HKSCS.irreversible: Update.
52057         * iconvdata/BIG5HKSCS.precomposed: New file.
52058         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
52059         characters.
52060         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
52061
52062 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52063
52064         * include/sys/time.h: Fix indentation and add copyright header.
52065
52066         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
52067         (do_test): Likewise.
52068         * string/test-memchr.c (do_one_test): Likewise.
52069         (do_test): Likewise.
52070         * string/test-memcmp.c (do_one_test): Likewise.
52071         (do_test): Likewise.
52072         * string/test-memcpy.c (do_one_test): Likewise.
52073         (do_test): Likewise.
52074         * string/test-memmem.c (do_one_test): Likewise.
52075         (do_test): Likewise.
52076         (do_random_tests): Likewise.
52077         * string/test-memmove.c (do_one_test): Likewise.
52078         (do_test): Likewise.
52079         * string/test-memset.c (do_one_test): Likewise.
52080         (do_test): Likewise.
52081         * string/test-rawmemchr.c (do_one_test): Likewise.
52082         (do_test): Likewise.
52083         * string/test-strcasecmp.c (do_one_test): Likewise.
52084         (do_test): Likewise.
52085         * string/test-strcasestr.c (do_one_test): Likewise.
52086         (do_test): Likewise.
52087         * string/test-strcat.c (do_one_test): Likewise.
52088         (do_test): Likewise.
52089         * string/test-strchr.c (do_one_test): Likewise.
52090         (do_test): Likewise.
52091         * string/test-strcmp.c (do_one_test): Likewise.
52092         (do_test): Likewise.
52093         * string/test-strcpy.c (do_one_test): Likewise.
52094         (do_test): Likewise.
52095         * string/test-string.h: Likewise.
52096         (test_init): Likewise.
52097         * string/test-strlen.c (do_one_test): Likewise.
52098         (do_test): Likewise.
52099         * string/test-strncasecmp.c (do_one_test): Likewise.
52100         (do_test): Likewise.
52101         * string/test-strncat.c (do_one_test): Likewise.
52102         (do_test): Likewise.
52103         * string/test-strncmp.c (do_one_test): Likewise.
52104         (do_test_limit): Likewise.
52105         (do_test): Likewise.
52106         * string/test-strncpy.c (do_one_test): Likewise.
52107         (do_test): Likewise.
52108         * string/test-strnlen.c (do_one_test): Likewise.
52109         (do_test): Likewise.
52110         * string/test-strpbrk.c (do_one_test): Likewise.
52111         (do_test): Likewise.
52112         * string/test-strrchr.c (do_one_test): Likewise.
52113         (do_test): Likewise.
52114         * string/test-strspn.c (do_one_test): Likewise.
52115         (do_test): Likewise.
52116         * string/test-strstr.c (do_one_test): Likewise.
52117         (do_test): Likewise.
52118
52119         * benchtests/Makefile (string-bench): Add string benchmarks.
52120         * benchtests/bench-bcopy-ifunc.c: New file.
52121         * benchtests/bench-bcopy.c: New file.
52122         * benchtests/bench-bzero-ifunc.c: New file.
52123         * benchtests/bench-bzero.c: New file.
52124         * benchtests/bench-memccpy-ifunc.c: New file.
52125         * benchtests/bench-memccpy.c: New file.
52126         * benchtests/bench-memchr-ifunc.c: New file.
52127         * benchtests/bench-memchr.c: New file.
52128         * benchtests/bench-memcmp-ifunc.c: New file.
52129         * benchtests/bench-memcmp.c: New file.
52130         * benchtests/bench-memmem-ifunc.c: New file.
52131         * benchtests/bench-memmem.c: New file.
52132         * benchtests/bench-memmove-ifunc.c: New file.
52133         * benchtests/bench-memmove.c: New file.
52134         * benchtests/bench-mempcpy-ifunc.c: New file.
52135         * benchtests/bench-mempcpy.c: New file.
52136         * benchtests/bench-memset-ifunc.c: New file.
52137         * benchtests/bench-memset.c: New file.
52138         * benchtests/bench-rawmemchr-ifunc.c: New file.
52139         * benchtests/bench-rawmemchr.c: New file.
52140         * benchtests/bench-stpcpy-ifunc.c: New file.
52141         * benchtests/bench-stpcpy.c: New file.
52142         * benchtests/bench-stpncpy-ifunc.c: New file.
52143         * benchtests/bench-stpncpy.c: New file.
52144         * benchtests/bench-strcasecmp-ifunc.c: New file.
52145         * benchtests/bench-strcasecmp.c: New file.
52146         * benchtests/bench-strcasestr-ifunc.c: New file.
52147         * benchtests/bench-strcasestr.c: New file.
52148         * benchtests/bench-strcat-ifunc.c: New file.
52149         * benchtests/bench-strcat.c: New file.
52150         * benchtests/bench-strchr-ifunc.c: New file.
52151         * benchtests/bench-strchr.c: New file.
52152         * benchtests/bench-strchrnul-ifunc.c: New file.
52153         * benchtests/bench-strchrnul.c: New file.
52154         * benchtests/bench-strcmp-ifunc.c: New file.
52155         * benchtests/bench-strcmp.c: New file.
52156         * benchtests/bench-strcpy-ifunc.c: New file.
52157         * benchtests/bench-strcpy.c: New file.
52158         * benchtests/bench-strcspn-ifunc.c: New file.
52159         * benchtests/bench-strcspn.c: New file.
52160         * benchtests/bench-strlen-ifunc.c: New file.
52161         * benchtests/bench-strlen.c: New file.
52162         * benchtests/bench-strncasecmp-ifunc.c: New file.
52163         * benchtests/bench-strncasecmp.c: New file.
52164         * benchtests/bench-strncat-ifunc.c: New file.
52165         * benchtests/bench-strncat.c: New file.
52166         * benchtests/bench-strncmp-ifunc.c: New file.
52167         * benchtests/bench-strncmp.c: New file.
52168         * benchtests/bench-strncpy-ifunc.c: New file.
52169         * benchtests/bench-strncpy.c: New file.
52170         * benchtests/bench-strnlen-ifunc.c: New file.
52171         * benchtests/bench-strnlen.c: New file.
52172         * benchtests/bench-strpbrk-ifunc.c: New file.
52173         * benchtests/bench-strpbrk.c: New file.
52174         * benchtests/bench-strrchr-ifunc.c: New file.
52175         * benchtests/bench-strrchr.c: New file.
52176         * benchtests/bench-strspn-ifunc.c: New file.
52177         * benchtests/bench-strspn.c: New file.
52178         * benchtests/bench-strstr-ifunc.c: New file.
52179         * benchtests/bench-strstr.c: New file.
52180
52181         * benchtests/Makefile: Disable parallel execution of targets.
52182         (string-bench): Add memcpy.
52183         (benchset): New variable to store a list of benchmark sets.
52184         (bench-func): Renamed from bench.
52185         (bench-set): New target.
52186         (bench): Depend on bench-func and bench-set.
52187         * benchtests/README: Add section on benchmark sets.
52188         * benchtests/bench-memcpy-ifunc.c: New file.
52189         * benchtests/bench-memcpy.c: New file.
52190         * benchtests/bench-string.h: New file.
52191
52192 2013-06-11  Andreas Schwab  <schwab@suse.de>
52193
52194         [BZ #15577]
52195         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
52196         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
52197         values in the triple.
52198         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
52199         terminator in the group key.
52200
52201 2013-06-11  Andreas Jaeger  <aj@suse.de>
52202
52203         * po/zh_TW.po: Update Chinese (traditional) translation from
52204         translation project.
52205
52206 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52207
52208         * include/time.h (__clock_gettime): Add libc_hidden_proto.
52209         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
52210         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
52211         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
52212         (clock_getcpuclockid): Likewise.
52213         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
52214         Add weak_alias and libc_hidden_def.
52215         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
52216         * rt/clock_gettime.c (clock_gettime): Rename to
52217         __clock_gettime.  Add weak_alias and libc_hidden_def.
52218         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
52219         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
52220         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
52221         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
52222         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
52223         Likewise.
52224         * rt/clock_settime.c (clock_settime): Rename to
52225         __clock_settime.  Add weak_alias and libc_hidden_def.
52226         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
52227
52228 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
52229
52230         * mach/err_boot.sub: Remove trailing whitespace.
52231         * mach/err_ipc.sub: Likewise.
52232         * mach/err_mach.sub: Likewise.
52233
52234         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
52235         (ROUNDING_TESTS_double): Likewise.
52236         (ROUNDING_TESTS_long_double): Likewise.
52237         (ROUNDING_TESTS): Likewise.
52238         * math/libm-test.inc: Include <math-tests.h>.
52239         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
52240         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
52241         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
52242         (IF_ROUND_INIT_FE_UPWARD): Likewise.
52243
52244 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52245
52246         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
52247         of assigning.
52248
52249 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
52250
52251         * sysdeps/gnu/errlist.awk: Do not generate space at end of
52252         otherwise empty TRANS lines.
52253         * sysdeps/gnu/errlist.c: Regenerated.
52254
52255         * catgets/gencat.c (error_print): Use (void) in function
52256         definition.
52257         * crypt/crypt_util.c (__init_des): Likewise.
52258         * crypt/speeds.c (Stop): Likewise.
52259         (main): Likewise.
52260         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
52261         * inet/ruserpass.c (token): Likewise.
52262         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
52263         * intl/localealias.c (extend_alias_table): Likewise.
52264         * intl/plural-exp.c (init_germanic_plural): Likewise.
52265         * libio/fcloseall.c (__fcloseall): Likewise.
52266         * libio/genops.c (_IO_flush_all): Likewise.
52267         (_IO_flush_all_linebuffered): Likewise.
52268         (_IO_cleanup): Likewise.
52269         (_IO_iter_begin): Likewise.
52270         (_IO_iter_end): Likewise.
52271         (_IO_list_lock): Likewise.
52272         (_IO_list_unlock): Likewise.
52273         (_IO_list_resetlock): Likewise.
52274         * libio/getchar.c (getchar): Likewise.
52275         * libio/getchar_u.c (getchar_unlocked): Likewise.
52276         * libio/getwchar.c (getwchar): Likewise.
52277         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
52278         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
52279         * login/getpt.c (__getpt): Likewise.
52280         * login/tst-utmp.c (main): Likewise.
52281         * malloc/hooks.c (__malloc_check_init): Likewise.
52282         * malloc/malloc.c (__malloc_stats): Likewise.
52283         * malloc/mtrace.c (tr_break): Likewise.
52284         (mtrace): Likewise.
52285         (muntrace): Likewise.
52286         * misc/fstab.c (endfsent): Likewise.
52287         * misc/getclktck.c (__getclktck): Likewise.
52288         * misc/getdtsz.c (__getdtablesize): Likewise.
52289         * misc/gethostid.c (gethostid): Likewise.
52290         * misc/getpagesize.c (__getpagesize): Likewise.
52291         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
52292         (__get_nprocs): Likewise.
52293         (__get_phys_pages): Likewise.
52294         (__get_avphys_pages): Likewise.
52295         * misc/getttyent.c (getttyent): Likewise.
52296         (setttyent): Likewise.
52297         (endttyent): Likewise.
52298         * misc/getusershell.c (getusershell): Likewise.
52299         (endusershell): Likewise.
52300         (setusershell): Likewise.
52301         (initshells): Likewise.
52302         * misc/hsearch.c (__hdestroy): Likewise.
52303         * misc/sync.c (sync): Likewise.
52304         * misc/syslog.c (closelog_internal): Likewise.
52305         (closelog): Likewise.
52306         * misc/ttyslot.c (ttyslot): Likewise.
52307         * misc/vhangup.c (vhangup): Likewise.
52308         * posix/fork.c (__fork): Likewise.
52309         * posix/getegid.c (__getegid): Likewise.
52310         * posix/geteuid.c (__geteuid): Likewise.
52311         * posix/getgid.c (__getgid): Likewise.
52312         * posix/getpid.c (__getpid): Likewise.
52313         * posix/getppid.c (__getppid): Likewise.
52314         * posix/getuid.c (__getuid): Likewise.
52315         * posix/pause.c (pause): Likewise.
52316         * posix/setpgrp.c (setpgrp): Likewise.
52317         * posix/setsid.c (__setsid): Likewise.
52318         * posix/test-vfork.c (noop): Likewise.
52319         * resolv/gethnamaddr.c (_endhtent): Likewise.
52320         (_gethtent): Likewise.
52321         (ht_endhostent): Likewise.
52322         (gethostent): Likewise.
52323         (dns_service): Likewise.
52324         * stdlib/drand48.c (drand48): Likewise.
52325         * stdlib/lrand48.c (lrand48): Likewise.
52326         * stdlib/mrand48.c (mrand48): Likewise.
52327         * stdlib/rand.c (rand): Likewise.
52328         * stdlib/random.c (__random): Likewise.
52329         * stdlib/setenv.c (clearenv): Likewise.
52330         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
52331         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
52332         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
52333         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
52334         (__get_nprocs): Likewise.
52335         (__get_phys_pages): Likewise.
52336         (__get_avphys_pages): Likewise.
52337         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
52338         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
52339         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
52340         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
52341         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
52342         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
52343         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
52344         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
52345         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
52346         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
52347         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
52348         * sysdeps/mach/hurd/sync.c (sync): Likewise.
52349         * sysdeps/posix/clock.c (clock): Likewise.
52350         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
52351         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
52352         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
52353         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
52354         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
52355         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
52356         (__get_nprocs_conf): Likewise.
52357         (__get_phys_pages): Likewise.
52358         (__get_avphys_pages): Likewise.
52359         * time/clock.c (clock): Likewise.
52360         * time/tzset.c (__tzname_max): Likewise.
52361
52362 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
52363
52364         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
52365         (__bswap_32): Do not use "register".
52366         * crypt/crypt.c (_ufc_doit_r): Likewise.
52367         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52368         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52369         * gmon/gmon.c (__monstartup): Likewise.
52370         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
52371         * hurd/hurdmalloc.c (more_memory): Likewise.
52372         (malloc): Likewise.
52373         (free): Likewise.
52374         (realloc): Likewise.
52375         (malloc_fork_prepare): Likewise.
52376         (malloc_fork_parent): Likewise.
52377         (malloc_fork_child): Likewise.
52378         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
52379         (_svcauth_des): Likewise.
52380         * inet/inet_lnaof.c (inet_lnaof): Likewise.
52381         * inet/inet_net.c (inet_network): Likewise.
52382         * inet/inet_netof.c (inet_netof): Likewise.
52383         * inet/rcmd.c (__validuser2_sa): Likewise.
52384         * io/fts.c (fts_open): Likewise.
52385         (fts_load): Likewise.
52386         (fts_close): Likewise.
52387         (fts_read): Likewise.
52388         (fts_children): Likewise.
52389         (fts_build): Likewise.
52390         (fts_stat): Likewise.
52391         (fts_sort): Likewise.
52392         (fts_alloc): Likewise.
52393         (fts_lfree): Likewise.
52394         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
52395         (_IO_file_xsgetn): Likewise.
52396         (_IO_file_xsgetn_mmap): Likewise.
52397         * libio/iofopncook.c (_IO_cookie_read): Likewise.
52398         (_IO_cookie_write): Likewise.
52399         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
52400         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
52401         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
52402         * malloc/obstack.c (_obstack_begin): Likewise.
52403         (_obstack_begin_1): Likewise.
52404         (_obstack_newchunk): Likewise.
52405         (_obstack_allocated_p): Likewise.
52406         (obstack_free): Likewise.
52407         (_obstack_memory_used): Likewise.
52408         * misc/getttyent.c (getttynam): Likewise.
52409         (getttyent): Likewise.
52410         (skip): Likewise.
52411         (value): Likewise.
52412         * misc/getusershell.c (initshells): Likewise.
52413         * misc/syslog.c (__vsyslog_chk): Likewise.
52414         * misc/ttyslot.c (ttyslot): Likewise.
52415         * nis/nis_hash.c (__nis_hash): Likewise.
52416         * posix/fnmatch_loop.c (FCT): Likewise.
52417         * posix/getconf.c (print_all): Likewise.
52418         (main): Likewise.
52419         * posix/getopt.c (exchange): Likewise.
52420         * posix/glob.c (globfree): Likewise.
52421         (prefix_array): Likewise.
52422         (__glob_pattern_type): Likewise.
52423         * resolv/arpa/nameser.h (NS_GET16): Likewise.
52424         (NS_GET32): Likewise.
52425         (NS_PUT16): Likewise.
52426         (NS_PUT32): Likewise.
52427         * resolv/gethnamaddr.c (getanswer): Likewise.
52428         (gethostbyname2): Likewise.
52429         (gethostbyaddr): Likewise.
52430         (_gethtent): Likewise.
52431         (_gethtbyname2): Likewise.
52432         (_gethtbyaddr): Likewise.
52433         * resolv/ns_print.c (dst_s_get_int16): Likewise.
52434         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
52435         * resolv/res_init.c (__res_vinit): Likewise.
52436         (net_mask): Likewise.
52437         * resolv/res_mkquery.c (outchar): Likewise.
52438         (PRINT): Likewise.
52439         * stdio-common/printf_fp.c (outchar): Likewise.
52440         (PRINT): Likewise.
52441         * stdio-common/printf_fphex.c (outchar): Likewise.
52442         (PRINT): Likewise.
52443         * stdio-common/printf_size.c (outchar): Likewise.
52444         (PRINT): Likewise.
52445         * stdio-common/test_rdwr.c (main): Likewise.
52446         * stdio-common/tfformat.c (matches): Likewise.
52447         * stdio-common/vfprintf.c (outchar): Likewise.
52448         (printf_unknown): Likewise.
52449         (buffered_vfprintf): Likewise.
52450         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52451         * stdio-common/xbug.c (AppendToBuffer): Likewise.
52452         (ReadFile): Likewise.
52453         * stdlib/qsort.c (SWAP): Likewise.
52454         (_quicksort): Likewise.
52455         * stdlib/setenv.c (__add_to_environ): Likewise.
52456         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52457         * stdlib/strtol_l.c (__strtol_l): Likewise.
52458         * stdlib/tst-strtod.c (main): Likewise.
52459         * stdlib/tst-strtol.c (main): Likewise.
52460         * stdlib/tst-strtoll.c (main): Likewise.
52461         * string/bits/string2.h (__strcmp_cc): Likewise.
52462         (__strcmp_cg): Likewise.
52463         (__strcspn_c1): Likewise.
52464         (__strcspn_c2): Likewise.
52465         (__strcspn_c3): Likewise.
52466         (__strspn_c1): Likewise.
52467         (__strspn_c2): Likewise.
52468         (__strspn_c3): Likewise.
52469         (__strsep_1c): Likewise.
52470         (__strsep_2c): Likewise.
52471         (__strsep_3c): Likewise.
52472         * string/memccpy.c (__memccpy): Likewise.
52473         * string/stpcpy.c (__stpcpy): Likewise.
52474         * string/strcmp.c (strcmp): Likewise.
52475         * string/strrchr.c (strrchr): Likewise.
52476         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
52477         Likewise.
52478         * sysdeps/mach/hurd/getcwd.c
52479         (_hurd_canonicalize_directory_name_internal): Likewise.
52480         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
52481         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
52482         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
52483         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
52484         Likewise, in both definitions.
52485         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
52486         definitions.
52487         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
52488         64] (__bswap_64): Likewise.
52489         * time/test_time.c (main): Likewise.
52490         * time/tzfile.c (__tzfile_read): Likewise.
52491         (__tzfile_compute): Likewise.
52492         * time/tzset.c (__tzset_parse_tz): Likewise.
52493         (tzset_internal): Likewise.
52494         (compute_change): Likewise.
52495         * wcsmbs/wcscat.c (__wcscat): Likewise.
52496         * wcsmbs/wcschr.c (wcschr): Likewise.
52497         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
52498         * wcsmbs/wcscspn.c (wcscspn): Likewise.
52499         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
52500         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
52501         * wcsmbs/wcsspn.c (wcsspn): Likewise.
52502         * wcsmbs/wcsstr.c (wcsstr): Likewise.
52503         * wcsmbs/wmemchr.c (wmemchr): Likewise.
52504         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
52505         * wcsmbs/wmemset.c (wmemset): Likewise.
52506
52507 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
52508
52509         * scripts/config.guess: Update to version 2013-05-16.
52510         * scripts/config.sub: Update to version 2013-04-24.
52511         * scripts/install-sh: Update to version 2011-11-20.07.
52512         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
52513         * scripts/move-if-change: Update to version 2012-01-06 07:23.
52514
52515 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
52516
52517         * debug/fgetws_u_chk.c: Fix leading whitespaces.
52518         * elf/sln.c: Likewise.
52519         * hurd/hurd/ioctl.h: Likewise.
52520         * hurd/hurdmalloc.c: Likewise.
52521         * hurd/xattr.c: Likewise.
52522         * include/shlib-compat.h: Likewise.
52523         * inet/ruserpass.c: Likewise.
52524         * libio/iofgets_u.c: Likewise.
52525         * libio/iofgetws_u.c: Likewise.
52526         * locale/programs/ld-identification.c: Likewise.
52527         * locale/programs/ld-time.c: Likewise.
52528         * mach/msg-destroy.c: Likewise.
52529         * nss/nss_files/files-netgrp.c: Likewise.
52530         * resolv/res_data.c: Likewise.
52531         * soft-fp/op-1.h: Likewise.
52532         * soft-fp/op-2.h: Likewise.
52533         * soft-fp/op-4.h: Likewise.
52534         * soft-fp/op-common.h: Likewise.
52535         * stdio-common/printf_fphex.c: Likewise.
52536         * stdlib/strtod_l.c: Likewise.
52537         * sunrpc/rpc/clnt.h: Likewise.
52538         * sysdeps/generic/framestate.c: Likewise.
52539         * sysdeps/i386/bsd-_setjmp.S: Likewise.
52540         * sysdeps/i386/bsd-setjmp.S: Likewise.
52541         * sysdeps/i386/__longjmp.S: Likewise.
52542         * sysdeps/i386/setjmp.S: Likewise.
52543         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
52544         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
52545         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52546         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
52547         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
52548         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
52549         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
52550         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
52551         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
52552         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
52553         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
52554         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
52555         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
52556         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
52557         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
52558         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
52559         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
52560         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
52561         * sysdeps/ieee754/support.c: Likewise.
52562         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52563         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
52564         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
52565         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
52566         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
52567         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
52568         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
52569         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
52570         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
52571         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
52572         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
52573         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
52574         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
52575         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
52576         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
52577         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
52578         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
52579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
52580
52581 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
52582
52583         * posix/transbug.c: Remove executable mode.
52584
52585 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
52586
52587         * crypt/speeds.c: Remove trailing whitespace.
52588         * dlfcn/default.c: Likewise.
52589         * elf/ifuncdep2.c: Likewise.
52590         * elf/ifuncmain1.c: Likewise.
52591         * elf/ifuncmain1vis.c: Likewise.
52592         * elf/testobj.h: Likewise.
52593         * elf/tst-stackguard1.c: Likewise.
52594         * gmon/sys/gmon.h: Likewise.
52595         * hurd/hurdmsg.c: Likewise.
52596         * hurd/new-fd.c: Likewise.
52597         * hurd/ports-get.c: Likewise.
52598         * iconvdata/ibm1008_420.c: Likewise.
52599         * inet/tst-getni1.c: Likewise.
52600         * inet/tst-getni2.c: Likewise.
52601         * libio/ioungetc.c: Likewise.
52602         * libio/wfiledoalloc.c: Likewise.
52603         * manual/libm-err-tab.pl: Likewise.
52604         * math/w_dremf.c: Likewise.
52605         * misc/ftruncate.c: Likewise.
52606         * posix/bug-glob2.c: Likewise.
52607         * posix/tst-pcre.c: Likewise.
52608         * posix/wait4.c: Likewise.
52609         * resolv/README: Likewise.
52610         * resolv/res_debug.h: Likewise.
52611         * resolv/tst-inet_ntop.c: Likewise.
52612         * setjmp/bug269-setjmp.c: Likewise.
52613         * soft-fp/extended.h: Likewise.
52614         * soft-fp/op-1.h: Likewise.
52615         * soft-fp/op-2.h: Likewise.
52616         * soft-fp/op-4.h: Likewise.
52617         * soft-fp/op-8.h: Likewise.
52618         * soft-fp/testit.c: Likewise.
52619         * stdio-common/bug16.c: Likewise.
52620         * stdlib/random.c: Likewise.
52621         * sunrpc/rpcsvc/rquota.x: Likewise.
52622         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
52623         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
52624         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52625         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
52626         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
52627         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
52628         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
52629         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
52630         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
52631         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
52632         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
52633         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
52634         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
52635         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
52636         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
52637         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
52638         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
52639         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
52640         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
52641         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
52642         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
52643         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
52644         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
52645         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
52646         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
52647         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
52648         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
52649         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
52650         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
52651         * sysdeps/ieee754/s_lib_version.c: Likewise.
52652         * sysdeps/mach/hurd/check_fds.c: Likewise.
52653         * sysdeps/mach/hurd/getsockname.c: Likewise.
52654         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
52655         * sysdeps/mach/hurd/recvfrom.c: Likewise.
52656         * sysdeps/powerpc/bits/link.h: Likewise.
52657         * sysdeps/powerpc/dl-procinfo.c: Likewise.
52658         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
52659         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
52660         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
52661         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52662         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
52663         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
52664         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52665         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
52666         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
52667         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
52668         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
52669         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
52670         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
52671         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
52672         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
52673         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
52674         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
52675         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
52676         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52677         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52678         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
52679         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52680         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
52681         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
52682         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
52683         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
52684         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52685         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52686         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
52687         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
52688         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
52689         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52690         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
52691         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
52692         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52693         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
52694         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
52695         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
52696         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
52697         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
52698         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
52699         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
52700         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
52701         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
52702         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
52703         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
52704         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
52705         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
52706         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
52707         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52708         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52709         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52710         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52711         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
52712         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
52713         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
52714         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52715         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
52716         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
52717         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
52718         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
52719         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
52720         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52721         * sysdeps/powerpc/sysdep.h: Likewise.
52722         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
52723         * sysdeps/s390/s390-64/sub_n.S: Likewise.
52724         * sysdeps/sh/dl-trampoline.S: Likewise.
52725         * sysdeps/sh/memset.S: Likewise.
52726         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
52727         * sysdeps/sh/strlen.S: Likewise.
52728         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
52729         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
52730         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
52731         * sysdeps/sparc/sparc32/rem.S: Likewise.
52732         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
52733         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
52734         * sysdeps/sparc/sparc32/strchr.S: Likewise.
52735         * sysdeps/sparc/sparc32/udiv.S: Likewise.
52736         * sysdeps/sparc/sparc32/urem.S: Likewise.
52737         * sysdeps/sparc/sparc64/add_n.S: Likewise.
52738         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
52739         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
52740         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
52741         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
52742         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
52743         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
52744         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
52745         * sysdeps/unix/bsd/times.c: Likewise.
52746         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
52747         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
52748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
52749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
52750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
52751         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
52752         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
52753         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
52754         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
52755         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
52756         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
52757         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
52758         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
52759         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
52760         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
52761         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52762         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
52763         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
52764         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
52765         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
52766         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
52767         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
52768         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
52769         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
52770         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
52771         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
52772         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
52773         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
52774         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
52775         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
52776         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
52777         * sysdeps/x86_64/strcspn.S: Likewise.
52778
52779 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52780
52781         * locale/C-translit.h: Revert #include <stdint.h> because this is a
52782         generated file.  Regenerate properly from gen-translit.pl.
52783         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
52784         locale/C-translit.h.
52785
52786 2013-06-05  Andreas Schwab  <schwab@suse.de>
52787
52788         [BZ #15100]
52789         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
52790         week as 6 instead of -1.
52791         * time/tst-strptime.c (day_tests): Add test case.
52792
52793 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52794
52795         * sysdeps/generic/math_private.h
52796         (libc_feholdexcept_setround_53bit): Replace with
52797         libc_feholdsetround_53bit.
52798         (libc_feupdateenv_53bit): Replace with
52799         libc_feresetround_53bit.
52800         (SET_RESTORE_ROUND_53BIT): Adjust.
52801
52802 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52803
52804         * string/test-strchrnul.c: Add copyright header.
52805
52806         * posix/tst-getaddrinfo4.c: Increase test timeout.
52807
52808 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
52809
52810         [BZ #15536]
52811         * math/libm-test.inc (MAX_EXP): Remove
52812         (MIN_EXP): Define.
52813         (ulp): Use MIN_EXP - MANT_DIG.
52814         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
52815
52816 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
52817
52818         * po/be.po: Revert last change.
52819         * po/zh_CN.po: Likewise.
52820         * po/header.pot: Likewise.
52821
52822 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
52823
52824         * Makefile ($(common-objpfx)linkobj/libc.so): Define
52825         link-libc-deps to empty as target-specific variable.
52826         * Makerules (link-libc-args): New variable.
52827         (libc-for-link): Likewise.
52828         (link-libc-deps): Likewise.
52829         (lib%.so): Depend on $(link-libc-deps).  Link with
52830         $(link-libc-args).
52831         (build-module): Link with $(link-libc-args).
52832         (build-module-asneeded): Likewise.
52833         (build-module-helper-objlist): Filter out $(link-libc-deps) from
52834         list of objects.
52835         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
52836         target-specific variable.
52837         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
52838         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
52839         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
52840         libc.
52841         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
52842         libc and ld.so.
52843         ($(objpfx)libpcprofile.so): Likewise.
52844         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
52845         libc_nonshared.a.
52846         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
52847         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
52848         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
52849         $(link-libc-deps).
52850         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
52851         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
52852         * login/Makefile ($(objpfx)libutil.so): Likewise.
52853         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
52854         * math/Makefile ($(objpfx)libm.so): Likewise.
52855         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
52856         $(objpfx)libnsl.so): Define libc-for-link as target-specific
52857         variable instead of depending directly on libc.
52858         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
52859         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
52860         $(link-libc-deps).
52861         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
52862         libc.
52863         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
52864         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
52865         ($(objpfx)libanl.so): Likewise.
52866         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
52867         ld.so.
52868         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
52869         $(link-libc-deps).
52870         * sysdeps/i386/fpu/Makefile: Remove file.
52871         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
52872         ($(objpfx)libm.so): Remove dependency on ld.so.
52873
52874 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
52875
52876         [BZ # 15553]
52877         * nis/yp_xdr.c (XDRMAXNAME): Define.
52878         (XDRMAXRECORD): Define.
52879         (xdr_domainname): Use XDRMAXNAME.
52880         (xdr_mapname): Likewise.
52881         (xdr_peername): Likewise.
52882         (xdr_keydat): Use XDRMAXRECORD.
52883         (xdr_valdat): Likewise.
52884
52885 2013-05-30  Jeff Law  <law@redhat.com>
52886
52887         [BZ #14256]
52888         * manual/errno.texi (ESTALE): Update to account for more than
52889         just NFS file systems.
52890         * sysdeps/gnu/errlist.c: Regenerated.
52891
52892 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
52893
52894         [BZ #15465]
52895         * elf/Makefile (tests): Add tst-null-argv.
52896         (modules-names):  Add tst-null-argv-lib.
52897         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
52898         (tst-null-argv-ENV): Set environment for tst-null-argv.
52899         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
52900         (RTLD_PROGNAME): New macro.
52901         * elf/tst-null-argv.c: New test case.
52902         * elf/tst-null-argv-lib.c: Library for test case.
52903         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
52904         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
52905         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
52906         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
52907         * elf/dl-init.c (call_init): Likewise.
52908         (_dl_init): Likewise.
52909         * elf/dl-load.c (print_search_path): Likewise.
52910         (_dl_map_object): Likewise.
52911         * elf/dl-lookup.c (do_lookup_x): Likewise.
52912         (add_dependency): Likewise.
52913         (_dl_lookup_symbol_x): Likewise.
52914         (_dl_debug_bindings): Likewise.
52915         * elf/dl-open.c (_dl_show_scope): Likewise.
52916         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
52917         * elf/dl-version.c (match_symbol): Likewise.
52918         (_dl_check_map_versions): Likewise.
52919         * elf/rtld.c (dl_main): Likewise.
52920         (print_unresolved): Use RTLD_PROGNAME.
52921         (print_missing_version): Likewise.
52922         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
52923         (elf_machine_rela): Likewise.
52924         * sysdeps/powerpc/powerpc32/dl-machine.c
52925         (__process_machine_rela): Likewise.
52926         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
52927         Likewise.
52928         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
52929         Likewise.
52930         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
52931         Likewise.
52932         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52933         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
52934         Likewise.
52935         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
52936         Likewise.
52937         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
52938
52939 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
52940
52941         * po/be.po: Add descriptive title.
52942         * po/zh_CN.po: Likewise.
52943         * po/header.pot: Likewise.
52944
52945 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
52946
52947         * locale/programs/locarchive.c (create_archive): Inlucde fname in
52948         error message.
52949         (enlarge_archive): Likewise.
52950
52951 2013-05-28  Ben North  <ben@redfrontdoor.org>
52952
52953         * manual/arith.texi (frexp): It is the magnitude of the return
52954         value which lies in [0.5, 1), not the return value itself.
52955
52956 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52957
52958         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52959
52960 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
52961
52962         * stdio-common/bug26.c (main): Correct fscanf template.
52963
52964         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
52965         declare _dl_skip_args.
52966
52967         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
52968         Don't declare.
52969
52970         * manual/platform.texi: Add missing @end deftypefun.
52971
52972 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52973
52974         [BZ #15529]
52975         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
52976         bit of mantissa of 2^16382.
52977         * math/libm-test.inc (hypot_test_data): Add more tests.
52978
52979         * math/libm-test.inc: Add drem and pow10 to list of tested
52980         functions.
52981         (pow10_test): New function.
52982         (drem_test): Likewise.
52983         (drem_test_tonearest): Likewise.
52984         (drem_test_towardzero): Likewise.
52985         (drem_test_downward): Likewise.
52986         (drem_test_upward): Likewise.
52987         (main): Call the new functions.
52988
52989         * math/libm-test.inc (finite_test_data): Remove.
52990         (finite_test): Run tests from isfinite_test_data.
52991         (gamma_test_data): Remove.
52992         (gamma_test): Run tests from lgamma_test_data.
52993         * sysdeps/i386/fpu/libm-test-ulps: Update.
52994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52995
52996 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52997
52998         * manual/platform.texi: Add PowerPC PPR function set documentation.
52999         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
53000         implementation.
53001
53002 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
53003
53004         * math/libm-test.inc (MAX_EXP): Define.
53005         (ULPDIFF): Define.
53006         (ulp): New function.
53007         (check_float_internal): Use ULPDIFF.
53008         (cpow_test): Disable failing test.
53009         (check_ulp): Test ulp() implemetnation.
53010         (main): Call check_ulp before starting tests.
53011
53012 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
53013
53014         * math/gen-libm-test.pl (generate_testfile): Do not handle
53015         START_DATA and END_DATA.
53016         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
53017         END_DATA.
53018         (acos_tonearest_test_data): Likewise.
53019         (acos_towardzero_test_data): Likewise.
53020         (acos_downward_test_data): Likewise.
53021         (acos_upward_test_data): Likewise.
53022         (acosh_test_data): Likewise.
53023         (asin_test_data): Likewise.
53024         (asin_tonearest_test_data): Likewise.
53025         (asin_towardzero_test_data): Likewise.
53026         (asin_downward_test_data): Likewise.
53027         (asin_upward_test_data): Likewise.
53028         (asinh_test_data): Likewise.
53029         (atan_test_data): Likewise.
53030         (atanh_test_data): Likewise.
53031         (atan2_test_data): Likewise.
53032         (cabs_test_data): Likewise.
53033         (cacos_test_data): Likewise.
53034         (cacosh_test_data): Likewise.
53035         (carg_test_data): Likewise.
53036         (casin_test_data): Likewise.
53037         (casinh_test_data): Likewise.
53038         (catan_test_data): Likewise.
53039         (catanh_test_data): Likewise.
53040         (cbrt_test_data): Likewise.
53041         (ccos_test_data): Likewise.
53042         (ccosh_test_data): Likewise.
53043         (ceil_test_data): Likewise.
53044         (cexp_test_data): Likewise.
53045         (cimag_test_data): Likewise.
53046         (clog_test_data): Likewise.
53047         (clog10_test_data): Likewise.
53048         (conj_test_data): Likewise.
53049         (copysign_test_data): Likewise.
53050         (cos_test_data): Likewise.
53051         (cos_tonearest_test_data): Likewise.
53052         (cos_towardzero_test_data): Likewise.
53053         (cos_downward_test_data): Likewise.
53054         (cos_upward_test_data): Likewise.
53055         (cosh_test_data): Likewise.
53056         (cosh_tonearest_test_data): Likewise.
53057         (cosh_towardzero_test_data): Likewise.
53058         (cosh_downward_test_data): Likewise.
53059         (cosh_upward_test_data): Likewise.
53060         (cpow_test_data): Likewise.
53061         (cproj_test_data): Likewise.
53062         (creal_test_data): Likewise.
53063         (csin_test_data): Likewise.
53064         (csinh_test_data): Likewise.
53065         (csqrt_test_data): Likewise.
53066         (ctan_test_data): Likewise.
53067         (ctan_tonearest_test_data): Likewise.
53068         (ctan_towardzero_test_data): Likewise.
53069         (ctan_downward_test_data): Likewise.
53070         (ctan_upward_test_data): Likewise.
53071         (ctanh_test_data): Likewise.
53072         (ctanh_tonearest_test_data): Likewise.
53073         (ctanh_towardzero_test_data): Likewise.
53074         (ctanh_downward_test_data): Likewise.
53075         (ctanh_upward_test_data): Likewise.
53076         (erf_test_data): Likewise.
53077         (erfc_test_data): Likewise.
53078         (exp_test_data): Likewise.
53079         (exp_tonearest_test_data): Likewise.
53080         (exp_towardzero_test_data): Likewise.
53081         (exp_downward_test_data): Likewise.
53082         (exp_upward_test_data): Likewise.
53083         (exp10_test_data): Likewise.
53084         (exp2_test_data): Likewise.
53085         (expm1_test_data): Likewise.
53086         (fabs_test_data): Likewise.
53087         (fdim_test_data): Likewise.
53088         (finite_test_data): Likewise.
53089         (floor_test_data): Likewise.
53090         (fma_test_data): Likewise.
53091         (fma_towardzero_test_data): Likewise.
53092         (fma_downward_test_data): Likewise.
53093         (fma_upward_test_data): Likewise.
53094         (fmax_test_data): Likewise.
53095         (fmin_test_data): Likewise.
53096         (fmod_test_data): Likewise.
53097         (fpclassify_test_data): Likewise.
53098         (frexp_test_data): Likewise.
53099         (gamma_test_data): Likewise.
53100         (hypot_test_data): Likewise.
53101         (ilogb_test_data): Likewise.
53102         (isfinite_test_data): Likewise.
53103         (isgreater_test_data): Likewise.
53104         (isgreaterequal_test_data): Likewise.
53105         (isinf_test_data): Likewise.
53106         (isless_test_data): Likewise.
53107         (islessequal_test_data): Likewise.
53108         (islessgreater_test_data): Likewise.
53109         (isnan_test_data): Likewise.
53110         (isnormal_test_data): Likewise.
53111         (issignaling_test_data): Likewise.
53112         (isunordered_test_data): Likewise.
53113         (j0_test_data): Likewise.
53114         (j1_test_data): Likewise.
53115         (jn_test_data): Likewise.
53116         (ldexp_test_data): Likewise.
53117         (lgamma_test_data): Likewise.
53118         (lrint_test_data): Likewise.
53119         (lrint_tonearest_test_data): Likewise.
53120         (lrint_towardzero_test_data): Likewise.
53121         (lrint_downward_test_data): Likewise.
53122         (lrint_upward_test_data): Likewise.
53123         (llrint_test_data): Likewise.
53124         (llrint_tonearest_test_data): Likewise.
53125         (llrint_towardzero_test_data): Likewise.
53126         (llrint_downward_test_data): Likewise.
53127         (llrint_upward_test_data): Likewise.
53128         (log_test_data): Likewise.
53129         (log10_test_data): Likewise.
53130         (log1p_test_data): Likewise.
53131         (log2_test_data): Likewise.
53132         (logb_test_data): Likewise.
53133         (logb_downward_test_data): Likewise.
53134         (lround_test_data): Likewise.
53135         (llround_test_data): Likewise.
53136         (modf_test_data): Likewise.
53137         (nearbyint_test_data): Likewise.
53138         (nextafter_test_data): Likewise.
53139         (nexttoward_test_data): Likewise.
53140         (pow_test_data): Likewise.
53141         (pow_tonearest_test_data): Likewise.
53142         (pow_towardzero_test_data): Likewise.
53143         (pow_downward_test_data): Likewise.
53144         (pow_upward_test_data): Likewise.
53145         (remainder_test_data): Likewise.
53146         (remainder_tonearest_test_data): Likewise.
53147         (remainder_towardzero_test_data): Likewise.
53148         (remainder_downward_test_data): Likewise.
53149         (remainder_upward_test_data): Likewise.
53150         (remquo_test_data): Likewise.
53151         (rint_test_data): Likewise.
53152         (rint_tonearest_test_data): Likewise.
53153         (rint_towardzero_test_data): Likewise.
53154         (rint_downward_test_data): Likewise.
53155         (rint_upward_test_data): Likewise.
53156         (round_test_data): Likewise.
53157         (scalb_test_data): Likewise.
53158         (scalbn_test_data): Likewise.
53159         (scalbln_test_data): Likewise.
53160         (signbit_test_data): Likewise.
53161         (sin_test_data): Likewise.
53162         (sin_tonearest_test_data): Likewise.
53163         (sin_towardzero_test_data): Likewise.
53164         (sin_downward_test_data): Likewise.
53165         (sin_upward_test_data): Likewise.
53166         (sincos_test_data): Likewise.
53167         (sinh_test_data): Likewise.
53168         (sinh_tonearest_test_data): Likewise.
53169         (sinh_towardzero_test_data): Likewise.
53170         (sinh_downward_test_data): Likewise.
53171         (sinh_upward_test_data): Likewise.
53172         (sqrt_test_data): Likewise.
53173         (tan_test_data): Likewise.
53174         (tan_tonearest_test_data): Likewise.
53175         (tan_towardzero_test_data): Likewise.
53176         (tan_downward_test_data): Likewise.
53177         (tan_upward_test_data): Likewise.
53178         (tanh_test_data): Likewise.
53179         (tgamma_test_data): Likewise.
53180         (trunc_test_data): Likewise.
53181         (y0_test_data): Likewise.
53182         (y1_test_data): Likewise.
53183         (yn_test_data): Likewise.
53184         (significand_test_data): Likewise.
53185
53186         * math/gen-libm-test.pl (@functions): Remove variable.
53187         (generate_testfile): Don't handle START and END lines.
53188         * math/libm-test.inc (START): New macro.
53189         (END): Likewise.
53190         (END_COMPLEX): Likewise.
53191         (acos_test): Use END macro without arguments.
53192         (acos_test_tonearest): Likewise.
53193         (acos_test_towardzero): Likewise.
53194         (acos_test_downward): Likewise.
53195         (acos_test_upward): Likewise.
53196         (acosh_test): Likewise.
53197         (asin_test): Likewise.
53198         (asin_test_tonearest): Likewise.
53199         (asin_test_towardzero): Likewise.
53200         (asin_test_downward): Likewise.
53201         (asin_test_upward): Likewise.
53202         (asinh_test): Likewise.
53203         (atan_test): Likewise.
53204         (atanh_test): Likewise.
53205         (atan2_test): Likewise.
53206         (cabs_test): Likewise.
53207         (cacos_test): Use END_COMPLEX macro without arguments.
53208         (cacosh_test): Likewise.
53209         (carg_test): Use END macro without arguments.
53210         (casin_test): Use END_COMPLEX macro without arguments.
53211         (casinh_test): Likewise.
53212         (catan_test): Likewise.
53213         (catanh_test): Likewise.
53214         (cbrt_test): Use END macro without arguments.
53215         (ccos_test): Use END_COMPLEX macro without arguments.
53216         (ccosh_test): Likewise.
53217         (ceil_test): Use END macro without arguments.
53218         (cexp_test): Use END_COMPLEX macro without arguments.
53219         (cimag_test): Use END macro without arguments.
53220         (clog_test): Use END_COMPLEX macro without arguments.
53221         (clog10_test): Likewise.
53222         (conj_test): Likewise.
53223         (copysign_test): Use END macro without arguments.
53224         (cos_test): Likewise.
53225         (cos_test_tonearest): Likewise.
53226         (cos_test_towardzero): Likewise.
53227         (cos_test_downward): Likewise.
53228         (cos_test_upward): Likewise.
53229         (cosh_test): Likewise.
53230         (cosh_test_tonearest): Likewise.
53231         (cosh_test_towardzero): Likewise.
53232         (cosh_test_downward): Likewise.
53233         (cosh_test_upward): Likewise.
53234         (cpow_test): Use END_COMPLEX macro without arguments.
53235         (cproj_test): Likewise.
53236         (creal_test): Use END macro without arguments.
53237         (csin_test): Use END_COMPLEX macro without arguments.
53238         (csinh_test): Likewise.
53239         (csqrt_test): Likewise.
53240         (ctan_test): Likewise.
53241         (ctan_test_tonearest): Likewise.
53242         (ctan_test_towardzero): Likewise.
53243         (ctan_test_downward): Likewise.
53244         (ctan_test_upward): Likewise.
53245         (ctanh_test): Likewise.
53246         (ctanh_test_tonearest): Likewise.
53247         (ctanh_test_towardzero): Likewise.
53248         (ctanh_test_downward): Likewise.
53249         (ctanh_test_upward): Likewise.
53250         (erf_test): Use END macro without arguments.
53251         (erfc_test): Likewise.
53252         (exp_test): Likewise.
53253         (exp_test_tonearest): Likewise.
53254         (exp_test_towardzero): Likewise.
53255         (exp_test_downward): Likewise.
53256         (exp_test_upward): Likewise.
53257         (exp10_test): Likewise.
53258         (exp2_test): Likewise.
53259         (expm1_test): Likewise.
53260         (fabs_test): Likewise.
53261         (fdim_test): Likewise.
53262         (finite_test): Likewise.
53263         (floor_test): Likewise.
53264         (fma_test): Likewise.
53265         (fma_test_towardzero): Likewise.
53266         (fma_test_downward): Likewise.
53267         (fma_test_upward): Likewise.
53268         (fmax_test): Likewise.
53269         (fmin_test): Likewise.
53270         (fmod_test): Likewise.
53271         (fpclassify_test): Likewise.
53272         (frexp_test): Likewise.
53273         (gamma_test): Likewise.
53274         (hypot_test): Likewise.
53275         (ilogb_test): Likewise.
53276         (isfinite_test): Likewise.
53277         (isgreater_test): Likewise.
53278         (isgreaterequal_test): Likewise.
53279         (isinf_test): Likewise.
53280         (isless_test): Likewise.
53281         (islessequal_test): Likewise.
53282         (islessgreater_test): Likewise.
53283         (isnan_test): Likewise.
53284         (isnormal_test): Likewise.
53285         (issignaling_test): Likewise.
53286         (isunordered_test): Likewise.
53287         (j0_test): Likewise.
53288         (j1_test): Likewise.
53289         (jn_test): Likewise.
53290         (ldexp_test): Likewise.
53291         (lgamma_test): Likewise.
53292         (lrint_test): Likewise.
53293         (lrint_test_tonearest): Likewise.
53294         (lrint_test_towardzero): Likewise.
53295         (lrint_test_downward): Likewise.
53296         (lrint_test_upward): Likewise.
53297         (llrint_test): Likewise.
53298         (llrint_test_tonearest): Likewise.
53299         (llrint_test_towardzero): Likewise.
53300         (llrint_test_downward): Likewise.
53301         (llrint_test_upward): Likewise.
53302         (log_test): Likewise.
53303         (log10_test): Likewise.
53304         (log1p_test): Likewise.
53305         (log2_test): Likewise.
53306         (logb_test): Likewise.
53307         (logb_test_downward): Likewise.
53308         (lround_test): Likewise.
53309         (llround_test): Likewise.
53310         (modf_test): Likewise.
53311         (nearbyint_test): Likewise.
53312         (nextafter_test): Likewise.
53313         (nexttoward_test): Likewise.
53314         (pow_test): Likewise.
53315         (pow_test_tonearest): Likewise.
53316         (pow_test_towardzero): Likewise.
53317         (pow_test_downward): Likewise.
53318         (pow_test_upward): Likewise.
53319         (remainder_test): Likewise.
53320         (remainder_test_tonearest): Likewise.
53321         (remainder_test_towardzero): Likewise.
53322         (remainder_test_downward): Likewise.
53323         (remainder_test_upward): Likewise.
53324         (remquo_test): Likewise.
53325         (rint_test): Likewise.
53326         (rint_test_tonearest): Likewise.
53327         (rint_test_towardzero): Likewise.
53328         (rint_test_downward): Likewise.
53329         (rint_test_upward): Likewise.
53330         (round_test): Likewise.
53331         (scalb_test): Likewise.
53332         (scalbn_test): Likewise.
53333         (scalbln_test): Likewise.
53334         (signbit_test): Likewise.
53335         (sin_test): Likewise.
53336         (sin_test_tonearest): Likewise.
53337         (sin_test_towardzero): Likewise.
53338         (sin_test_downward): Likewise.
53339         (sin_test_upward): Likewise.
53340         (sincos_test): Likewise.
53341         (sinh_test): Likewise.
53342         (sinh_test_tonearest): Likewise.
53343         (sinh_test_towardzero): Likewise.
53344         (sinh_test_downward): Likewise.
53345         (sinh_test_upward): Likewise.
53346         (sqrt_test): Likewise.
53347         (tan_test): Likewise.
53348         (tan_test_tonearest): Likewise.
53349         (tan_test_towardzero): Likewise.
53350         (tan_test_downward): Likewise.
53351         (tan_test_upward): Likewise.
53352         (tanh_test): Likewise.
53353         (tgamma_test): Likewise.
53354         (trunc_test): Likewise.
53355         (y0_test): Likewise.
53356         (y1_test): Likewise.
53357         (yn_test): Likewise.
53358         (significand_test): Likewise.
53359
53360 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
53361
53362         [BZ #15381]
53363         * libio/genops.c (_IO_no_init): Initialize wide struct info.
53364
53365 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53366
53367         [BZ #14894]
53368         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
53369         __ppc_mdoio and __ppc_mdoom.
53370         * manual/platform.texi: Document new functions __ppc_yield,
53371         __ppc_mdoio and __ppc_mdoom.
53372
53373 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
53374
53375         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
53376         (main): Mention "tls" pseudo-hwcap is legacy.
53377         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
53378
53379 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53380
53381         * math/gen-libm-test.pl (parse_args): Output only string of
53382         arguments as text for test name, not full call or descriptions of
53383         tests for extra outputs.
53384         (generate_testfile): Do not pass function name to parse_args.
53385         Generate this_func variable from START.
53386         * math/libm-test.inc (struct test_f_f_data): Rename test_name
53387         field to arg_str.
53388         (struct test_ff_f_data): Likewise.
53389         (test_ff_f_data_nexttoward): Likewise.
53390         (struct test_fi_f_data): Likewise.
53391         (struct test_fl_f_data): Likewise.
53392         (struct test_if_f_data): Likewise.
53393         (struct test_fff_f_data): Likewise.
53394         (struct test_c_f_data): Likewise.
53395         (struct test_f_f1_data): Likewise.  Remove field extra_name.
53396         (struct test_fF_f1_data): Likewise.
53397         (struct test_ffI_f1_data): Likewise.
53398         (struct test_c_c_data): Rename test_name field to arg_str.
53399         (struct test_cc_c_data): Likewise.
53400         (struct test_f_i_data): Likewise.
53401         (struct test_ff_i_data): Likewise.
53402         (struct test_f_l_data): Likewise.
53403         (struct test_f_L_data): Likewise.
53404         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
53405         and extra2_name.
53406         (COMMON_TEST_SETUP): New macro.
53407         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
53408         (COMMON_TEST_CLEANUP): Likewise.
53409         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
53410         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
53411         macros.
53412         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
53413         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
53414         macros.
53415         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
53416         (RUN_TEST_fff_f): Take argument string.  Call new setup and
53417         cleanup macros.
53418         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
53419         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
53420         macros.
53421         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
53422         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
53423         macros.
53424         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53425         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
53426         cleanup macros.
53427         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53428         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
53429         cleanup macros.
53430         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53431         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
53432         cleanup macros.
53433         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53434         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
53435         macros.
53436         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
53437         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
53438         macros.
53439         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
53440         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
53441         macros.
53442         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
53443         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
53444         cleanup macros.
53445         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
53446         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
53447         cleanup macros.
53448         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
53449         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
53450         macros.
53451         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
53452         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
53453         cleanup macros.
53454         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
53455         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
53456         macros.
53457         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
53458         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
53459         macros.
53460         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
53461         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
53462         cleanup macros.
53463         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
53464
53465 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
53466
53467         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
53468         to _sifields.sigfault.
53469         (si_addr_lsb): Define new macro.
53470         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53471         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
53472         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
53473
53474 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
53475
53476         [BZ #15441]
53477         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
53478         returns -1.
53479         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
53480         null return -1.
53481         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
53482         loading the domain.
53483
53484 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53485
53486         * math/gen-libm-test.pl (parse_args): Do not include expected
53487         result in test name.
53488         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
53489         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53490         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53491         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53492         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53494
53495 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
53496
53497         * benchtests/Makefile: Sort function entries.
53498
53499         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
53500         tanh, asinh, acosh, atanh.
53501         * benchtests/acos-inputs: New file.
53502         * benchtests/acosh-inputs: New file.
53503         * benchtests/asin-inputs: New file.
53504         * benchtests/asinh-inputs: New file.
53505         * benchtests/atanh-inputs: New file.
53506         * benchtests/cosh-inputs: New file.
53507         * benchtests/log-inputs: New file.
53508         * benchtests/sinh-inputs: New file.
53509         * benchtests/tanh-inputs: New file.
53510
53511 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
53512
53513         [BZ #15339]
53514         * posix/tst-getaddrinfo4.c: New test.
53515         * posix/Makefile (tests): Add it.
53516
53517 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53518
53519         [BZ #15339]
53520         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
53521         when no services were used.
53522         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
53523         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
53524
53525 2013-05-21  Andreas Schwab  <schwab@suse.de>
53526
53527         [BZ #15014]
53528         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
53529         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
53530         successful.
53531         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
53532         redundant variable declarations and reallocation of buffer when
53533         parsing as IPv6 address.  Always set NSS status when called from
53534         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
53535         buffer too small.  Correct computation of needed size.
53536         * nss/Makefile (tests): Add test-digits-dots.
53537         * nss/test-digits-dots.c: New test.
53538
53539 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53540
53541         * benchtests/Makefile: Remove instructions for adding
53542         benchmark tests.
53543         * benchtests/README: New file to explain how to execute and
53544         enhance the benchmark tests.
53545
53546 2013-05-21  Andreas Schwab  <schwab@suse.de>
53547
53548         [BZ #15493]
53549         * setjmp/Makefile (tests): Add tst-sigsetjmp.
53550         * setjmp/tst-sigsetjmp.c: New test.
53551
53552 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53553
53554         * sysdeps/x86_64/memset.S (memset): New implementation.
53555         (__bzero): Likewise.
53556         (__memset_tail): New function.
53557
53558 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53559
53560         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
53561         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
53562         __memcpy_sse2_unaligned ifunc selection.
53563         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53564         Add memcpy-sse2-unaligned.S.
53565         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53566         Add: __memcpy_sse2_unaligned.
53567
53568 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
53569
53570         [BZ #15490]
53571         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53572         math_force_eval before restoring floating-point envrionment.
53573         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
53574         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
53575         Likewise.
53576         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53577         <math_private.h>.
53578         (__nearbyintl): Use math_force_eval before restoring
53579         floating-point environment.
53580         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
53581
53582         * math/gen-libm-test.pl (special_functions): Remove.
53583         (parse_args): Don't handle TEST_extra.  Handle functions with no
53584         return value.
53585         * math/libm-test.inc (struct test_sincos_data): Replace with
53586         struct test_fFF_11_data.
53587         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
53588         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
53589         (sincos_test_data): Change element type to struct
53590         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
53591         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
53592         RUN_TEST_LOOP_sincos.
53593         * math/README.libm-test: Don't mention special handling of
53594         individual functions.
53595         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
53596         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53597         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53598         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53599         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53601
53602         * math/gen-libm-test.pl (get_variable): Remove function.
53603         (parse_args): Don't show pointer parameters to call in test
53604         names.  Use "extra output N" in test names for extra outputs
53605         rather than naming variables.
53606
53607 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
53608
53609         [BZ #15488]
53610         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
53611         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
53612         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
53613         double tests.
53614         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
53615         disable.
53616         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
53617         check_long_double.
53618
53619         * math/gen-libm-test.pl (@tests): Remove variable.
53620         ($count): Likewise.
53621         (new_test): Remove function.
53622         (show_exceptions): New function.
53623         (special_functions): Use show_exceptions instead of new_test.
53624         (parse_args): Likewise.
53625         (generate_testfile): Pass only function name in generated call to
53626         print_max_error or print_complex_max_error.
53627         (get_ulps): Do not handle complex tests specially.
53628         (output_test): Rename to ...
53629         (get_all_ulps_for_test): ... this.  Return a string rather than
53630         printing to a file.  Require ulps to be present.
53631         (output_ulps): Generate arrays rather than #defines.
53632         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
53633         (struct ulp_data): New type.
53634         (BUILD_COMPLEX_ULP): Remove macro.
53635         (compare_ulp_data): New function.
53636         (find_ulps): Likewise.
53637         (find_test_ulps): Likewise.
53638         (find_function_ulps): Likewise.
53639         (find_complex_function_ulps): Likewise.
53640         (print_max_error): Determine allowed ulps using
53641         find_function_ulps.
53642         (print_complex_max_error): Determine allowed ulps using
53643         find_complex_function_ulps.
53644         (check_float_internal): Determine max ulps using find_test_ulps.
53645         (check_float): Do not take max_ulp parameter.  Update call to
53646         check_float_internal.
53647         (check_complex): Likewise.
53648         (check_int): Do not take max_ulp parameter.
53649         (check_long): Likewise.
53650         (check_bool): Likewise.
53651         (check_longlong): Likewise.
53652         (struct test_f_f_data): Remove max_ulp field.
53653         (struct test_ff_f_data): Likewise.
53654         (struct test_ff_f_data_nexttoward): Likewise.
53655         (struct test_fi_f_data): Likewise.
53656         (struct test_fl_f_data): Likewise.
53657         (struct test_if_f_data): Likewise.
53658         (struct test_fff_f_data): Likewise.
53659         (struct test_c_f_data): Likewise.
53660         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
53661         (struct test_fF_f1_data): Likewise.
53662         (struct test_ffI_f1_data): Likewise.
53663         (struct test_c_c_data): Remove max_ulp field.
53664         (struct test_cc_c_data): Likewise.
53665         (struct test_f_i_data): Likewise.
53666         (struct test_ff_i_data): Likewise.
53667         (struct test_f_l_data): Likewise.
53668         (struct test_f_L_data): Likewise.
53669         (struct test_sincos_data): Likewise.
53670         (RUN_TEST_f_f): Do not handle ulps.
53671         (RUN_TEST_LOOP_f_f): Likewise.
53672         (RUN_TEST_2_f): Likewise.
53673         (RUN_TEST_LOOP_2_f): Likewise.
53674         (RUN_TEST_fff_f): Likewise.
53675         (RUN_TEST_LOOP_fff_f): Likewise.
53676         (RUN_TEST_c_f): Likewise.
53677         (RUN_TEST_LOOP_c_f): Likewise.
53678         (RUN_TEST_f_f1): Likewise.
53679         (RUN_TEST_LOOP_f_f1): Likewise.
53680         (RUN_TEST_fF_f1): Likewise.
53681         (RUN_TEST_LOOP_fF_f1): Likewise.
53682         (RUN_TEST_fI_f1): Likewise.
53683         (RUN_TEST_LOOP_fI_f1): Likewise.
53684         (RUN_TEST_ffI_f1): Likewise.
53685         (RUN_TEST_LOOP_ffI_f1): Likewise.
53686         (RUN_TEST_c_c): Likewise.
53687         (RUN_TEST_LOOP_c_c): Likewise.
53688         (RUN_TEST_cc_c): Likewise.
53689         (RUN_TEST_LOOP_cc_c): Likewise.
53690         (RUN_TEST_f_i): Likewise.
53691         (RUN_TEST_LOOP_f_i): Likewise.
53692         (RUN_TEST_f_i_tg): Likewise.
53693         (RUN_TEST_LOOP_f_i_tg): Likewise.
53694         (RUN_TEST_ff_i_tg): Likewise.
53695         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53696         (RUN_TEST_f_b): Likewise.
53697         (RUN_TEST_LOOP_f_b): Likewise.
53698         (RUN_TEST_f_b_tg): Likewise.
53699         (RUN_TEST_LOOP_f_b_tg): Likewise.
53700         (RUN_TEST_f_l): Likewise.
53701         (RUN_TEST_LOOP_f_l): Likewise.
53702         (RUN_TEST_f_L): Likewise.
53703         (RUN_TEST_LOOP_f_L): Likewise.
53704         (RUN_TEST_sincos): Likewise.
53705         (RUN_TEST_LOOP_sincos): Likewise.
53706
53707 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
53708
53709         [BZ #15480]
53710         [BZ #15485]
53711         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
53712         main case of finite arguments, set rounding mode to FE_TONEAREST
53713         and discard exceptions.
53714         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
53715         exceptions.
53716         (remainder_tonearest_test_data): New variable.
53717         (remainder_test_tonearest): New function.
53718         (remainder_towardzero_test_data): New variable.
53719         (remainder_test_towardzero): New function.
53720         (remainder_downward_test_data): New variable.
53721         (remainder_test_downward): New function.
53722         (remainder_upward_test_data): New variable.
53723         (remainder_test_upward): New function.
53724         (main): Call the new test functions.
53725
53726         * math/libm-test.inc (struct test_f_f1_data): Remove field
53727         extra_init.
53728         (struct test_fF_f1_data): Likewise.
53729         (struct test_ffI_f1_data): Likewise.
53730         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
53731         based on value of EXTRA_EXPECTED.
53732         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53733         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
53734         EXTRA_VAR based on value of EXTRA_EXPECTED.
53735         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53736         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
53737         EXTRA_VAR based on value of EXTRA_EXPECTED.
53738         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53739         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
53740         EXTRA_VAR based on value of EXTRA_EXPECTED.
53741         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53742         * math/gen-libm-test.pl (parse_args): Don't output initializers
53743         for extra output values.
53744
53745         * math/libm-test.inc (check_int): Expect result to be exactly
53746         equal to expected value and do not handle ulps.
53747         (check_long): Likewise.
53748         (check_longlong): Likewise.
53749
53750         * math/libm-test.inc (ceil_test_data): Test for "inexact"
53751         exceptions.
53752         (cimag_test_data): Likewise.
53753         (conj_test_data): Likewise.
53754         (copysign_test_data): Likewise.
53755         (cproj_test_data): Likewise.
53756         (creal_test_data): Likewise.
53757         (fabs_test_data): Likewise.
53758         (fdim_test_data): Likewise.
53759         (finite_test_data): Likewise.
53760         (floor_test_data): Likewise.
53761         (fmax_test_data): Likewise.
53762         (fmin_test_data): Likewise.
53763         (fmod_test_data): Likewise.
53764         (fpclassify_test_data): Likewise.
53765         (frexp_test_data): Likewise.
53766         (ilogb_test_data): Likewise.
53767         (isfinite_test_data): Likewise.
53768         (isgreater_test_data): Likewise.
53769         (isgreaterequal_test_data): Likewise.
53770         (isinf_test_data): Likewise.
53771         (isless_test_data): Likewise.
53772         (islessequal_test_data): Likewise.
53773         (islessgreater_test_data): Likewise.
53774         (isnan_test_data): Likewise.
53775         (isnormal_test_data): Likewise.
53776         (issignaling_test_data): Likewise.
53777         (isunordered_test_data): Likewise.
53778         (ldexp_test_data): Likewise.
53779         (lrint_test_data): Likewise.
53780         (lrint_test_data) [TEST_FLOAT]: Disable one test.
53781         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
53782         (lrint_tonearest_test_data): Test for "inexact" exceptions.
53783         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53784         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
53785         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53786         test input.
53787         (lrint_towardzero_test_data): Test for "inexact" exceptions.
53788         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53789         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
53790         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
53791         that test input.
53792         (lrint_downward_test_data): Test for "inexact" exceptions.
53793         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53794         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53795         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53796         test input.
53797         (lrint_upward_test_data): Test for "inexact" exceptions.
53798         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
53799         test input.
53800         (llrint_test_data): Test for "inexact" exceptions.
53801         (llrint_test_data) [TEST_FLOAT]: Disable one test.
53802         (llrint_tonearest_test_data): Test for "inexact" exceptions.
53803         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53804         (llrint_towardzero_test_data): Test for "inexact" exceptions.
53805         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53806         (llrint_downward_test_data): Test for "inexact" exceptions.
53807         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53808         (llrint_upward_test_data): Test for "inexact" exceptions.
53809         (logb_test_data): Likewise.
53810         (logb_downward_test_data): Likewise.
53811         (nextafter_test_data): Likewise.
53812         (nexttoward_test_data): Likewise.
53813         (remainder_test_data): Likewise.
53814         (remquo_test_data): Likewise.
53815         (scalbn_test_data): Likewise.
53816         (scalbln_test_data): Likewise.
53817         (signbit_test_data): Likewise.
53818         (sqrt_test_data): Likewise.
53819         (significand_test_data): Likewise.
53820
53821 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53822
53823         [BZ #15424]
53824         * benchtests/bench-modf.c (struct args): Mark arg0 as
53825         volatile.
53826         * scripts/bench.pl: Mark members of struct args as volatile.
53827
53828 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53829
53830         [BZ # 15497]
53831         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
53832         negative infinity on POWER6 or lower.
53833         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
53834
53835 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
53836
53837         [BZ #15442]
53838         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
53839         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
53840         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
53841         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
53842         (_FP_SETQNAN): New macro.
53843         (_FP_SETQNAN_SEMIRAW): Likewise.
53844         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
53845         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
53846         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
53847         (FP_EXTEND): Use _FP_FRAC_SNANP.
53848         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
53849         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
53850         into account.
53851         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53852         New macro.
53853         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53854         Likewise.
53855
53856 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53857
53858         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
53859         with DIVIDE_BY_ZERO_EXCEPTION.
53860         (gamma_test_data): Likewise.
53861         (lgamma_test_data): Likewise.
53862         (log_test_data): Likewise.
53863         (log10_test_data): Likewise.
53864         (log2_test_data): Likewise.
53865         (tgamma_test_data): Likewise.
53866
53867         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
53868         (acos_test_tonearest): Likewise.
53869         (acos_test_towardzero): Likewise.
53870         (acos_test_downward): Likewise.
53871         (acos_test_upward): Likewise.
53872         (acosh_test): Likewise.
53873         (asin_test): Likewise.
53874         (asin_test_tonearest): Likewise.
53875         (asin_test_towardzero): Likewise.
53876         (asin_test_downward): Likewise.
53877         (asin_test_upward): Likewise.
53878         (asinh_test): Likewise.
53879         (atan_test): Likewise.
53880         (atanh_test): Likewise.
53881         (atan2_test): Likewise.
53882         (cabs_test): Likewise.
53883         (cacos_test): Likewise.
53884         (cacosh_test): Likewise.
53885         (casin_test): Likewise.
53886         (casinh_test): Likewise.
53887         (catan_test): Likewise.
53888         (catanh_test): Likewise.
53889         (cbrt_test): Likewise.
53890         (ccos_test): Likewise.
53891         (ccosh_test): Likewise.
53892         (cexp_test): Likewise.
53893         (clog_test): Likewise.
53894         (clog10_test): Likewise.
53895         (cos_test): Likewise.
53896         (cos_test_tonearest): Likewise.
53897         (cos_test_towardzero): Likewise.
53898         (cos_test_downward): Likewise.
53899         (cos_test_upward): Likewise.
53900         (cosh_test): Likewise.
53901         (cosh_test_tonearest): Likewise.
53902         (cosh_test_towardzero): Likewise.
53903         (cosh_test_downward): Likewise.
53904         (cosh_test_upward): Likewise.
53905         (cpow_test): Likewise.
53906         (csin_test): Likewise.
53907         (csinh_test): Likewise.
53908         (csqrt_test): Likewise.
53909         (ctan_test): Likewise.
53910         (ctan_test_tonearest): Likewise.
53911         (ctan_test_towardzero): Likewise.
53912         (ctan_test_downward): Likewise.
53913         (ctan_test_upward): Likewise.
53914         (ctanh_test): Likewise.
53915         (ctanh_test_tonearest): Likewise.
53916         (ctanh_test_towardzero): Likewise.
53917         (ctanh_test_downward): Likewise.
53918         (ctanh_test_upward): Likewise.
53919         (erf_test): Likewise.
53920         (erfc_test): Likewise.
53921         (exp_test): Likewise.
53922         (exp_test_tonearest): Likewise.
53923         (exp_test_towardzero): Likewise.
53924         (exp_test_downward): Likewise.
53925         (exp_test_upward): Likewise.
53926         (exp10_test): Likewise.
53927         (exp2_test): Likewise.
53928         (expm1_test): Likewise.
53929         (fmod_test): Likewise.
53930         (gamma_test): Likewise.
53931         (hypot_test): Likewise.
53932         (j0_test): Likewise.
53933         (j1_test): Likewise.
53934         (jn_test): Likewise.
53935         (lgamma_test): Likewise.
53936         (log_test): Likewise.
53937         (log10_test): Likewise.
53938         (log1p_test): Likewise.
53939         (log2_test): Likewise.
53940         (logb_test_downward): Likewise.
53941         (pow_test): Likewise.
53942         (pow_test_tonearest): Likewise.
53943         (pow_test_towardzero): Likewise.
53944         (pow_test_downward): Likewise.
53945         (pow_test_upward): Likewise.
53946         (remainder_test): Likewise.
53947         (remquo_test): Likewise.
53948         (sin_test): Likewise.
53949         (sin_test_tonearest): Likewise.
53950         (sin_test_towardzero): Likewise.
53951         (sin_test_downward): Likewise.
53952         (sin_test_upward): Likewise.
53953         (sincos_test): Likewise.
53954         (sinh_test): Likewise.
53955         (sinh_test_tonearest): Likewise.
53956         (sinh_test_towardzero): Likewise.
53957         (sinh_test_downward): Likewise.
53958         (sinh_test_upward): Likewise.
53959         (sqrt_test): Likewise.
53960         (tan_test): Likewise.
53961         (tan_test_tonearest): Likewise.
53962         (tan_test_towardzero): Likewise.
53963         (tan_test_downward): Likewise.
53964         (tan_test_upward): Likewise.
53965         (tanh_test): Likewise.
53966         (tgamma_test): Likewise.
53967         (y0_test): Likewise.
53968         (y1_test): Likewise.
53969         (yn_test): Likewise.
53970
53971         * math/gen-libm-test.pl (adjust_arg): Remove function.
53972         (special_function): Remove argument $in_func.  Only handle
53973         generating output for tables of tests, not inside functions.
53974         (parse_args): Likewise.
53975         (generate_testfile): Remove variable $in_func.  Update call to
53976         parse_args.
53977         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
53978         (MINUS_ZERO_INIT): Rename macro to minus_zero.
53979         (PLUS_INFTY_INIT): Rename macro to plus_infty.
53980         (MINUS_INFTY_INIT): Rename macro to minus_infty.
53981         (QNAN_VALUE_INIT): Rename macro to qnan_value.
53982         (MAX_VALUE_INIT): Rename macro to max_value.
53983         (MIN_VALUE_INIT): Rename macro to min_value.
53984         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
53985         (plus_zero): Remove variable.
53986         (minus_zero): Likewise.
53987         (plus_infty): Likewise.
53988         (minus_infty): Likewise.
53989         (qnan_value): Likewise.
53990         (max_value): Likewise.
53991         (min_value): Likewise.
53992         (min_subnorm_value): Likewise.
53993
53994 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53995
53996         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
53997         uint64_t or uint32_t usage.
53998         * crypt/sha256-block.c: Likewise.
53999         * crypt/sha256-crypt.c: Likewise.
54000         * crypt/sha256.c: Likewise.
54001         * crypt/sha512-block.c: Likewise.
54002         * crypt/sha512-crypt.c: Likewise.
54003         * crypt/sha512.c: Likewise.
54004         * debug/backtrace-tst.c: Likewise.
54005         * debug/pcprofiledump.c: Likewise.
54006         * elf/cache.c: Likewise.
54007         * elf/dl-cache.c: Likewise.
54008         * elf/dl-misc.c: Likewise.
54009         * elf/dl-profile.c: Likewise.
54010         * elf/dl-support.c: Likewise.
54011         * elf/ldconfig.c: Likewise.
54012         * elf/sprof.c: Likewise.
54013         * iconv/dummy-repertoire.c: Likewise.
54014         * iconv/iconv_charmap.c: Likewise.
54015         * iconv/skeleton.c: Likewise.
54016         * iconvdata/8bit-generic.c: Likewise.
54017         * iconvdata/cp737.h: Likewise.
54018         * iconvdata/cp775.h: Likewise.
54019         * iconvdata/ibm1008.h: Likewise.
54020         * iconvdata/ibm1025.h: Likewise.
54021         * iconvdata/ibm1046.h: Likewise.
54022         * iconvdata/ibm1097.h: Likewise.
54023         * iconvdata/ibm1112.h: Likewise.
54024         * iconvdata/ibm1122.h: Likewise.
54025         * iconvdata/ibm1123.h: Likewise.
54026         * iconvdata/ibm1124.h: Likewise.
54027         * iconvdata/ibm1129.h: Likewise.
54028         * iconvdata/ibm1130.h: Likewise.
54029         * iconvdata/ibm1132.h: Likewise.
54030         * iconvdata/ibm1133.h: Likewise.
54031         * iconvdata/ibm1137.h: Likewise.
54032         * iconvdata/ibm1140.h: Likewise.
54033         * iconvdata/ibm1141.h: Likewise.
54034         * iconvdata/ibm1142.h: Likewise.
54035         * iconvdata/ibm1143.h: Likewise.
54036         * iconvdata/ibm1144.h: Likewise.
54037         * iconvdata/ibm1145.h: Likewise.
54038         * iconvdata/ibm1146.h: Likewise.
54039         * iconvdata/ibm1147.h: Likewise.
54040         * iconvdata/ibm1148.h: Likewise.
54041         * iconvdata/ibm1149.h: Likewise.
54042         * iconvdata/ibm1153.h: Likewise.
54043         * iconvdata/ibm1154.h: Likewise.
54044         * iconvdata/ibm1155.h: Likewise.
54045         * iconvdata/ibm1156.h: Likewise.
54046         * iconvdata/ibm1157.h: Likewise.
54047         * iconvdata/ibm1158.h: Likewise.
54048         * iconvdata/ibm1160.h: Likewise.
54049         * iconvdata/ibm1161.h: Likewise.
54050         * iconvdata/ibm1162.h: Likewise.
54051         * iconvdata/ibm1163.h: Likewise.
54052         * iconvdata/ibm1164.h: Likewise.
54053         * iconvdata/ibm1166.h: Likewise.
54054         * iconvdata/ibm1167.h: Likewise.
54055         * iconvdata/ibm12712.h: Likewise.
54056         * iconvdata/ibm1390.h: Likewise.
54057         * iconvdata/ibm1399.h: Likewise.
54058         * iconvdata/ibm16804.h: Likewise.
54059         * iconvdata/ibm4517.h: Likewise.
54060         * iconvdata/ibm4899.h: Likewise.
54061         * iconvdata/ibm4909.h: Likewise.
54062         * iconvdata/ibm4971.h: Likewise.
54063         * iconvdata/ibm5347.h: Likewise.
54064         * iconvdata/ibm803.h: Likewise.
54065         * iconvdata/ibm856.h: Likewise.
54066         * iconvdata/ibm901.h: Likewise.
54067         * iconvdata/ibm902.h: Likewise.
54068         * iconvdata/ibm9030.h: Likewise.
54069         * iconvdata/ibm9066.h: Likewise.
54070         * iconvdata/ibm921.h: Likewise.
54071         * iconvdata/ibm922.h: Likewise.
54072         * iconvdata/ibm9448.h: Likewise.
54073         * iconvdata/isiri-3342.h: Likewise.
54074         * iconvdata/jis0201.h: Likewise.
54075         * include/link.h: Likewise.
54076         * include/netdb.h: Likewise.
54077         * inet/check_native.c: Likewise.
54078         * inet/check_pf.c: Likewise.
54079         * inet/getipv4sourcefilter.c: Likewise.
54080         * inet/getnameinfo.c: Likewise.
54081         * inet/getsourcefilter.c: Likewise.
54082         * inet/htonl.c: Likewise.
54083         * inet/setipv4sourcefilter.c: Likewise.
54084         * inet/setsourcefilter.c: Likewise.
54085         * inet/test-inet6_opt.c: Likewise.
54086         * inet/tst-network.c: Likewise.
54087         * locale/C-collate.c: Likewise.
54088         * locale/C-ctype.c: Likewise.
54089         * locale/C-time.c: Likewise.
54090         * locale/C-translit.h: Likewise.
54091         * locale/loadarchive.c: Likewise.
54092         * locale/programs/3level.h: Likewise.
54093         * locale/programs/charmap.c: Likewise.
54094         * locale/programs/charmap.h: Likewise.
54095         * locale/programs/ld-address.c: Likewise.
54096         * locale/programs/ld-collate.c: Likewise.
54097         * locale/programs/ld-ctype.c: Likewise.
54098         * locale/programs/ld-identification.c: Likewise.
54099         * locale/programs/ld-measurement.c: Likewise.
54100         * locale/programs/ld-messages.c: Likewise.
54101         * locale/programs/ld-monetary.c: Likewise.
54102         * locale/programs/ld-name.c: Likewise.
54103         * locale/programs/ld-numeric.c: Likewise.
54104         * locale/programs/ld-paper.c: Likewise.
54105         * locale/programs/ld-telephone.c: Likewise.
54106         * locale/programs/ld-time.c: Likewise.
54107         * locale/programs/linereader.c: Likewise.
54108         * locale/programs/locale.c: Likewise.
54109         * locale/programs/locarchive.c: Likewise.
54110         * locale/programs/locfile.h: Likewise.
54111         * locale/programs/repertoire.c: Likewise.
54112         * locale/programs/simple-hash.c: Likewise.
54113         * locale/programs/simple-hash.h: Likewise.
54114         * malloc/memusage.c: Likewise.
54115         * malloc/memusagestat.c: Likewise.
54116         * nis/nis_defaults.c: Likewise.
54117         * nis/nis_hash.c: Likewise.
54118         * nis/nis_print.c: Likewise.
54119         * nis/nis_xdr.c: Likewise.
54120         * nscd/connections.c: Likewise.
54121         * nscd/hstcache.c: Likewise.
54122         * nscd/nscd_gethst_r.c: Likewise.
54123         * nscd/nscd_getserv_r.c: Likewise.
54124         * nscd/nscd_helper.c: Likewise.
54125         * nscd/servicescache.c: Likewise.
54126         * nss/makedb.c: Likewise.
54127         * nss/nss_db/db-XXX.c: Likewise.
54128         * nss/nss_db/db-initgroups.c: Likewise.
54129         * nss/nss_db/db-netgrp.c: Likewise.
54130         * nss/nss_files/files-network.c: Likewise.
54131         * nss/nss_files/files-parse.c: Likewise.
54132         * posix/bug-regex5.c: Likewise.
54133         * posix/fnmatch_loop.c: Likewise.
54134         * posix/regcomp.c: Likewise.
54135         * posix/regexec.c: Likewise.
54136         * posix/tst-rfc3484-2.c: Likewise.
54137         * posix/tst-rfc3484-3.c: Likewise.
54138         * posix/tst-rfc3484.c: Likewise.
54139         * resolv/nss_dns/dns-canon.c: Likewise.
54140         * resolv/nss_dns/dns-network.c: Likewise.
54141         * resolv/res_init.c: Likewise.
54142         * resolv/res_mkquery.c: Likewise.
54143         * resolv/tst-aton.c: Likewise.
54144         * stdlib/cxa_atexit.c: Likewise.
54145         * stdlib/cxa_finalize.c: Likewise.
54146         * stdlib/gen-fpioconst.c: Likewise.
54147         * stdlib/strtol_l.c: Likewise.
54148         * string/tst-endian.c: Likewise.
54149         * sunrpc/auth_des.c: Likewise.
54150         * sunrpc/clnt_udp.c: Likewise.
54151         * sunrpc/rtime.c: Likewise.
54152         * sunrpc/svcauth_des.c: Likewise.
54153         * sunrpc/xdr.c: Likewise.
54154         * sunrpc/xdr_intXX_t.c: Likewise.
54155         * sunrpc/xdr_rec.c: Likewise.
54156         * sysdeps/generic/ldconfig.h: Likewise.
54157         * sysdeps/generic/ldsodefs.h: Likewise.
54158         * sysdeps/generic/memusage.h: Likewise.
54159         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
54160         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
54161         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
54162         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
54163         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
54164         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
54165         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
54166         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
54167         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
54168         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
54169         * sysdeps/posix/getaddrinfo.c: Likewise.
54170         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
54171         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54172         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
54173         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
54174         * sysdeps/powerpc/test-gettimebase.c: Likewise.
54175         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
54176         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
54177         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
54178         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
54179         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
54180         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
54181         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
54182         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
54183         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
54184         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
54185         * sysdeps/x86_64/dl-tls.h: Likewise.
54186         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
54187         * time/alt_digit.c: Likewise.
54188         * time/era.c: Likewise.
54189         * wcsmbs/tst-c16c32-1.c: Likewise.
54190
54191 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54192
54193         * math/libm-test.inc (struct test_sincos_data): New type.
54194         (RUN_TEST_LOOP_sincos): New macro.
54195         (sincos_test_data): New variable.
54196         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
54197
54198 2013-05-16  Richard Henderson  <rth@redhat.com>
54199
54200         * math/atest-exp2.c (LIMB64): New macro.
54201         (CONSTSZ): New macro.
54202         (mp_exp1, mp_exp_m1, mp_log2): New variables.
54203         (hexdig): Move ...
54204         (print_mpn_fp): ... to function scope.
54205         (read_mpn_hex): Remove.
54206         (get_log2): Remove.
54207         (exp2_mpn): Use mp_log2.
54208         (main): Use mp_exp1.
54209
54210 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54211
54212         * math/libm-test.inc: Remove comment about not testing "inexact"
54213         exceptions.
54214         (INEXACT_EXCEPTION): New macro.
54215         (NO_INEXACT_EXCEPTION): Likewise.
54216         (INVALID_EXCEPTION_OK): Update value.
54217         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
54218         (OVERFLOW_EXCEPTION_OK): Likewise.
54219         (UNDERFLOW_EXCEPTION_OK): Likewise.
54220         (IGNORE_ZERO_INF_SIGN): Likewise.
54221         (ERRNO_UNCHANGED): Likewise.
54222         (ERRNO_EDOM): Likewise.
54223         (ERRNO_ERANGE): Likewise.
54224         (test_exceptions): Handle testing "inexact" exceptions.
54225         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
54226         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
54227         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
54228         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
54229         INEXACT_EXCEPTION.
54230         (rint_towardzero_test_data): Likewise.
54231         (rint_downward_test_data): Likewise.
54232         (rint_upward_test_data): Likewise.
54233
54234         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
54235         with OVERFLOW_EXCEPTION.
54236         (exp10_test_data): Likewise.
54237         (exp2_test_data): Likewise.
54238         (expm1_test_data): Likewise.
54239         (lgamma_test_data): Likewise.
54240         (pow_test_data): Likewise.
54241         (tgamma_test_data): Likewise.
54242         (yn_test_data): Remove duplicate test of overflow.
54243
54244         * math/libm-test.inc (struct test_cc_c_data): New type.
54245         (RUN_TEST_LOOP_cc_c): New macro.
54246         (cpow_test_data): New variable.
54247         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
54248
54249         * math/libm-test.inc (struct test_f_L_data): New type.
54250         (RUN_TEST_LOOP_f_L): New macro.
54251         (llrint_test_data): New variable.
54252         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
54253         (llrint_tonearest_test_data): New variable.
54254         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
54255         (llrint_towardzero_test_data): New variable.
54256         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
54257         (llrint_downward_test_data): New variable.
54258         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
54259         (llrint_upward_test_data): New variable.
54260         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
54261         (llround_test_data): New variable.
54262         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
54263
54264 2013-05-13  Peter Collingbourne  <pcc@google.com>
54265
54266         * math/atest-exp2.c (get_log2): Remove const attribute.
54267
54268 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54269
54270         * math/libm-test.inc (struct test_f_l_data): New type.
54271         (RUN_TEST_LOOP_f_l): New macro.
54272         (lrint_test_data): New variable.
54273         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
54274         (lrint_tonearest_test_data): New variable.
54275         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
54276         (lrint_towardzero_test_data): New variable.
54277         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
54278         (lrint_downward_test_data): New variable.
54279         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
54280         (lrint_upward_test_data): New variable.
54281         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
54282         (lround_test_data): New variable.
54283         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
54284
54285 2013-05-15  Peter Collingbourne  <pcc@google.com>
54286
54287         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
54288         (EXTRACT_WORDS64) Use where appropriate.
54289         (INSERT_WORDS64) Likewise.
54290
54291         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
54292         constraints with x constraints.
54293         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
54294
54295         * malloc/obstack.c (_obstack_compat): Add initializer.
54296
54297 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
54298
54299         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
54300         si_trapno and add si_addr_lsb to _sifields.sigfault.
54301         (si_trapno): Remove macro.
54302         (si_addr_lsb): Define new macro.
54303         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
54304
54305 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54306
54307         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
54308         instead of TEST_f_l.
54309         (llrint_test_tonearest): Likewise.
54310         (llrint_test_towardzero): Likewise.
54311         (llrint_test_downward): Likewise.
54312         (llrint_test_upward): Likewise.
54313         (llround_test): Likewise.
54314
54315         * math/libm-test.inc (struct test_f_i_data): Add comment.
54316         (RUN_TEST_LOOP_f_b): New macro.
54317         (RUN_TEST_LOOP_f_b_tg): Likewise.
54318         (finite_test_data): New variable.
54319         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
54320         (isfinite_test_data): New variable.
54321         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54322         (isinf_test_data): New variable.
54323         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54324         (isnan_test_data): New variable.
54325         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54326         (isnormal_test_data): New variable.
54327         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54328         (issignaling_test_data): New variable.
54329         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54330         (signbit_test_data): New variable.
54331         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54332
54333         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
54334         with INVALID_EXCEPTION.
54335         (acosh_test_data): Likewise.
54336         (asin_test_data): Likewise.
54337         (atanh_test_data): Likewise.
54338         (fmod_test_data): Likewise.
54339         (log_test_data): Likewise.
54340         (log10_test_data): Likewise.
54341         (log2_test_data): Likewise.
54342         (pow_test_data): Likewise.
54343         (sqrt_test_data): Likewise.
54344         (y0_test_data): Likewise.
54345         (y1_test_data): Likewise.
54346         (yn_test_data): Likewise.
54347
54348         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
54349         function contents.
54350
54351         * math/libm-test.inc (struct test_ff_i_data): New type.
54352         (RUN_TEST_LOOP_ff_i_tg): New macro.
54353         (isgreater_test_data): New variable.
54354         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54355         (isgreaterequal_test_data): New variable.
54356         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54357         (isless_test_data): New variable.
54358         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54359         (islessequal_test_data): New variable.
54360         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54361         (islessgreater_test_data): New variable.
54362         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54363         (isunordered_test_data): New variable.
54364         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54365
54366 2013-05-14  David S. Miller  <davem@davemloft.net>
54367
54368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54369
54370 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
54371
54372         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
54373
54374         * math/libm-test.inc (struct test_fF_f1_data): Change type of
54375         extra_test to int.
54376         (struct test_f_i_data): Change type of max_ulp to int.
54377
54378         * math/libm-test.inc (test_ffI_f1_data): New type.
54379         (RUN_TEST_LOOP_ffI_f1): New macro.
54380         (remquo_test_data): New variable.
54381         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
54382
54383         * setjmp/tst-setjmp-fp.c: New file.
54384         * setjmp/Makefile (tests): Add tst-setjmp-fp.
54385         (link-libm): New variable.
54386         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
54387
54388         * math/libm-test.inc (struct test_f_i_data): New type.
54389         (RUN_TEST_LOOP_f_i): New macro.
54390         (RUN_TEST_LOOP_f_i_tg): Likewise.
54391         (fpclassify_test_data): New variable.
54392         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
54393         (ilogb_test_data): New variable.
54394         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
54395
54396         * math/libm-test.inc (scalbln_test): Correct function name in END
54397         call.
54398
54399         * math/libm-test.inc (struct test_f_f1_data): Add comment.
54400         (RUN_TEST_LOOP_fI_f1): New macro.
54401         (frexp_test_data): New variable.
54402         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
54403
54404         * math/libm-test.inc (struct test_fF_f1_data): New type.
54405         (RUN_TEST_LOOP_fF_f1): New macro.
54406         (modf_test_data): New variable.
54407         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
54408
54409         * math/libm-test.inc (struct test_f_f1_data): New type.
54410         (RUN_TEST_LOOP_f_f1): New macro.
54411         (gamma_test_data): New variable.
54412         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54413         (lgamma_test_data): New variable.
54414         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54415
54416 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
54417
54418         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
54419         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
54420         (main): Comment "tls" pseudo-hwcap.
54421
54422 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54423
54424         * math/libm-test.inc (struct test_fl_f_data): New type.
54425         (RUN_TEST_LOOP_fl_f): New variable.
54426         (scalbln_test_data): New variable.
54427         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
54428
54429         * math/libm-test.inc (struct test_fi_f_data): New type.
54430         (RUN_TEST_LOOP_fi_f): New macro.
54431         (ldexp_test_data): New variable.
54432         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
54433         (scalbn_test_data): New variable.
54434         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
54435
54436         * math/libm-test.inc (struct test_c_f_data): New type.
54437         (RUN_TEST_LOOP_c_f): New macro.
54438         (cabs_test_data): New variable.
54439         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
54440         (carg_test_data): New variable.
54441         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
54442         (cimag_test_data): New variable.
54443         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
54444         (creal_test_data): New variable.
54445         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
54446
54447         * math/libm-test.inc (struct test_if_f_data): New type.
54448         (RUN_TEST_LOOP_if_f): New macro.
54449         (jn_test_data): New variable.
54450         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
54451         (yn_test_data): New variable.
54452         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
54453
54454         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
54455
54456 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54457
54458         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
54459         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
54460
54461 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
54462
54463         * benchtests/Makefile (CPPFLAGS-nonlib): Add
54464         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
54465         (bench-deps): Add bench-timing.h.
54466         * benchtests-bench-skeleton.c: Include bench-timing.h.
54467         (main): Use TIMING_* macros instead of clock_gettime.
54468         * benchtests/bench-timing.h: New file.
54469
54470         [BZ #14582]
54471         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
54472         Renamed from _LIB_VERSION.
54473         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
54474
54475 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
54476
54477         * math/libm-test.inc (struct test_fff_f_data): New type.
54478         (RUN_TEST_LOOP_fff_f): New macro.
54479         (fma_test_data): New variable.
54480         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
54481         (fma_towardzero_test_data): New variable.
54482         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
54483         (fma_downward_test_data): New variable.
54484         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
54485         (fma_upward_test_data): New variable.
54486         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
54487
54488         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
54489         (struct test_c_c_data): New type.
54490         (RUN_TEST_LOOP_c_c): New macro.
54491         (cacos_test_data): New variable.
54492         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
54493         (cacosh_test_data): New variable.
54494         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
54495         (casin_test_data): New variable.
54496         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
54497         (casinh_test_data): New variable.
54498         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
54499         (catan_test_data): New variable.
54500         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
54501         (catanh_test_data): New variable.
54502         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
54503         (ccos_test_data): New variable.
54504         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
54505         (ccosh_test_data): New variable.
54506         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
54507         (cexp_test_data): New variable.
54508         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54509         (clog_test_data): New variable.
54510         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
54511         (clog10_test_data): New variable.
54512         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
54513         (conj_test_data): New variable.
54514         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
54515         (cproj_test_data): New variable.
54516         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
54517         (csin_test_data): New variable.
54518         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
54519         (csinh_test_data): New variable.
54520         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
54521         (csqrt_test_data): New variable.
54522         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
54523         (ctan_test_data): New variable.
54524         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
54525         (ctan_tonearest_test_data): New variable.
54526         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54527         (ctan_towardzero_test_data): New variable.
54528         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54529         (ctan_downward_test_data): New variable.
54530         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54531         (ctan_upward_test_data): New variable.
54532         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54533         (ctanh_test_data): New variable.
54534         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
54535         (ctanh_tonearest_test_data): New variable.
54536         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54537         (ctanh_towardzero_test_data): New variable.
54538         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54539         (ctanh_downward_test_data): New variable.
54540         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54541         (ctanh_upward_test_data): New variable.
54542         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54543         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
54544         of BUILD_COMPLEX.
54545
54546         * math/libm-test.inc (struct test_ff_f_data): New type.
54547         (struct test_ff_f_data_nexttoward): Likewise.
54548         (RUN_TEST_LOOP_2_f): New macro.
54549         (RUN_TEST_LOOP_ff_f): Likewise.
54550         (atan2_test_data): New variable.
54551         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
54552         (copysign_test_data): New variable.
54553         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
54554         (fdim_test_data): New variable.
54555         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
54556         (fmax_test_data): New variable.
54557         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
54558         (fmin_test_data): New variable.
54559         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
54560         (fmod_test_data): New variable.
54561         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
54562         (hypot_test_data): New variable.
54563         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
54564         (nextafter_test_data): New variable.
54565         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
54566         (nexttoward_test_data): New variable.
54567         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
54568         (pow_test_data): New variable.
54569         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
54570         (pow_tonearest_test_data): New variable.
54571         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
54572         (pow_towardzero_test_data): New variable.
54573         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
54574         (pow_downward_test_data): New variable.
54575         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
54576         (pow_upward_test_data): New variable.
54577         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
54578         (remainder_test_data): New variable.
54579         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
54580         (scalb_test_data): New variable.
54581         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
54582         * sysdeps/i386/fpu/libm-test-ulps: Update.
54583
54584 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
54585
54586         * math/libm-test.inc (fma_test): Use max_value instead of local
54587         variable fltmax.
54588         (nextafter_test): Likewise.
54589
54590         * math/libm-test.inc (acos_towardzero_test_data): New variable.
54591         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54592         (acos_downward_test_data): New variable.
54593         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54594         (acos_upward_test_data): New variable.
54595         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54596         (acosh_test_data): New variable.
54597         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
54598         (asin_test_data): New variable.
54599         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
54600         (asin_tonearest_test_data): New variable.
54601         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54602         (asin_towardzero_test_data): New variable.
54603         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54604         (asin_downward_test_data): New variable.
54605         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54606         (asin_upward_test_data): New variable.
54607         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54608         (asinh_test_data): New variable.
54609         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
54610         (atan_test_data): New variable.
54611         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
54612         (atanh_test_data): New variable.
54613         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
54614         (cbrt_test_data): New variable.
54615         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
54616         (ceil_test_data): New variable.
54617         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
54618         (cos_test_data): New variable.
54619         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
54620         (cos_tonearest_test_data): New variable.
54621         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54622         (cos_towardzero_test_data): New variable.
54623         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54624         (cos_downward_test_data): New variable.
54625         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54626         (cos_upward_test_data): New variable.
54627         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54628         (cosh_test_data): New variable.
54629         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
54630         (cosh_tonearest_test_data): New variable.
54631         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54632         (cosh_towardzero_test_data): New variable.
54633         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54634         (cosh_downward_test_data): New variable.
54635         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54636         (cosh_upward_test_data): New variable.
54637         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54638         (erf_test_data): New variable.
54639         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
54640         (erfc_test_data): New variable.
54641         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
54642         (exp_test_data): New variable.
54643         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
54644         (exp_tonearest_test_data): New variable.
54645         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54646         (exp_towardzero_test_data): New variable.
54647         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54648         (exp_downward_test_data): New variable.
54649         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54650         (exp_upward_test_data): New variable.
54651         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54652         (exp10_test_data): New variable.
54653         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
54654         (exp2_test_data): New variable.
54655         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
54656         (expm1_test_data): New variable.
54657         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
54658         (fabs_test_data): New variable.
54659         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
54660         (floor_test_data): New variable.
54661         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
54662         (j0_test_data): New variable.
54663         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
54664         (j1_test_data): New variable.
54665         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
54666         (log_test_data): New variable.
54667         (log_test): Run tests with RUN_TEST_LOOP_f_f.
54668         (log10_test_data): New variable.
54669         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
54670         (log1p_test_data): New variable.
54671         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
54672         (log2_test_data): New variable.
54673         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
54674         (logb_test_data): New variable.
54675         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
54676         (logb_downward_test_data): New variable.
54677         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54678         (nearbyint_test_data): New variable.
54679         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
54680         (rint_test_data): New variable.
54681         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
54682         (rint_tonearest_test_data): New variable.
54683         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54684         (rint_towardzero_test_data): New variable.
54685         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54686         (rint_downward_test_data): New variable.
54687         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54688         (rint_upward_test_data): New variable.
54689         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54690         (round_test_data): New variable.
54691         (round_test): Run tests with RUN_TEST_LOOP_f_f.
54692         (sin_test_data): New variable.
54693         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
54694         (sin_tonearest_test_data): New variable.
54695         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54696         (sin_towardzero_test_data): New variable.
54697         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54698         (sin_downward_test_data): New variable.
54699         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54700         (sin_upward_test_data): New variable.
54701         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54702         (sinh_test_data): New variable.
54703         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
54704         (sinh_tonearest_test_data): New variable.
54705         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54706         (sinh_towardzero_test_data): New variable.
54707         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54708         (sinh_downward_test_data): New variable.
54709         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54710         (sinh_upward_test_data): New variable.
54711         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54712         (sqrt_test_data): New variable.
54713         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
54714         (tan_test_data): New variable.
54715         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
54716         (tan_tonearest_test_data): New variable.
54717         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54718         (tan_towardzero_test_data): New variable.
54719         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54720         (tan_downward_test_data): New variable.
54721         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54722         (tan_upward_test_data): New variable.
54723         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54724         (tanh_test_data): New variable.
54725         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
54726         (tgamma_test_data): New variable.
54727         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
54728         (trunc_test_data): New variable.
54729         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
54730         (y0_test_data): New variable.
54731         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
54732         (y1_test_data): New variable.
54733         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
54734         (significand_test_data): New variable.
54735         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
54736
54737 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
54738
54739         [BZ #12387]
54740         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
54741
54742 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
54743
54744         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
54745
54746 2013-05-10  Andreas Jaeger  <aj@suse.de>
54747
54748         [BZ #15448]
54749         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
54750         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
54751
54752 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54753
54754         * math/gen-libm-test.pl (adjust_arg): New function.
54755         (special_functions): Handle generating output in both functions
54756         and arrays.
54757         (parse_args): Likewise.
54758         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
54759         $in_func argument to parse_args.
54760         * math/libm-test.inc (struct test_f_f_data): New type.
54761         (IF_ROUND_INIT_): New macro.
54762         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
54763         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
54764         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
54765         (IF_ROUND_INIT_FE_UPWARD): Likewise.
54766         (ROUND_RESTORE_): Likewise.
54767         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
54768         (ROUND_RESTORE_FE_TONEAREST): Likewise.
54769         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
54770         (ROUND_RESTORE_FE_UPWARD): Likewise.
54771         (RUN_TEST_LOOP_f_f): New macro.
54772         (acos_test_data): New variable.
54773         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
54774         (acos_tonearest_test_data): New variable.
54775         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54776
54777 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
54778
54779         * benchtests/bench-skeleton.c (startup): Fix coding style.
54780
54781 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54782
54783         [BZ #6809]
54784         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
54785         negative infinity argument.
54786         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
54787         negative infinity argument.
54788         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
54789         negative infinity argument.
54790         * math/libm-test.inc (tgamma_test): Expect errno to be set for
54791         domain errors.
54792
54793 2013-05-10  Florian Weimer  <fweimer@redhat.com>
54794
54795         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
54796         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
54797         * iconv/iconv_prog.c (main): Likewise.
54798         * locale/programs/charmap-dir.c (charmap_readdir)
54799         (fopen_uncompressed): Likewise.
54800         * locale/programs/locfile.c (siblings_uncached)
54801         (write_locale_data): Use lstat64 instead of lstat.
54802         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
54803         stat.
54804
54805 2013-05-10  Andreas Jaeger  <aj@suse.de>
54806
54807         [BZ #15395]
54808         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
54809         localization.
54810         Include <locale.h>.
54811
54812 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
54813
54814         * elf/dl-close.c (_dl_close_worker): Add comments.
54815
54816 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
54817
54818         [BZ #15359]
54819         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
54820         high part of pi/2.
54821         (__ieee754_rem_pio2l): Update comments.
54822
54823         [BZ #15429]
54824         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
54825         high part of pi/2.
54826         (__ieee754_rem_pio2l): Update comments.
54827
54828         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
54829         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
54830
54831         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
54832         M_PI_4l.
54833
54834         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
54835         (M_PI_34_LOG10El): Likewise.
54836         (M_PI2_LOG10El): Likewise.
54837         (M_PI4_LOG10El): Likewise.
54838         (M_PI_LOG10El): Likewise.
54839
54840 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54841
54842         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54843
54844 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
54845
54846         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
54847         (MINUS_ZERO_INIT): Likewise.
54848         (PLUS_INFTY_INIT): Likewise.
54849         (MINUS_INFTY_INIT): Likewise.
54850         (QNAN_VALUE_INIT): Likewise.
54851         (MAX_VALUE_INIT): Likewise.
54852         (MIN_VALUE_INIT): Likewise.
54853         (MIN_SUBNORM_VALUE_INIT): Likewise.
54854         (plus_zero): Initialize with PLUS_ZERO_INIT.
54855         (minus_zero): Initialize with MINUS_ZERO_INIT.
54856         (plus_infty): Initialize with PLUS_INFTY_INIT.
54857         (minus_infty): Initialize with MINUS_INFTY_INIT.
54858         (qnan_value): Initialize with QNAN_VALUE_INIT.
54859         (max_value): Initialize with MAX_VALUE_INIT.
54860         (min_value): Initialize with MIN_VALUE_INIT.
54861         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
54862
54863         * math/libm-test.inc (RUN_TEST_if_f): New macro.
54864         (jn_test): Use TEST_if_f instead of TEST_ff_f.
54865         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
54866         (yn_test): Use TEST_if_f instead of TEST_ff_f.
54867
54868         * math/libm-test.inc (RUN_TEST_f_f): New macro.
54869         (RUN_TEST_2_f): Likewise.
54870         (RUN_TEST_ff_f): Likewise.
54871         (RUN_TEST_fi_f): Likewise.
54872         (RUN_TEST_fl_f): Likewise.
54873         (RUN_TEST_fff_f): Likewise.
54874         (RUN_TEST_c_f): Likewise.
54875         (RUN_TEST_f_f1): Likewise.
54876         (RUN_TEST_fF_f1): Likewise.
54877         (RUN_TEST_fI_f1): Likewise.
54878         (RUN_TEST_ffI_f1): Likewise.
54879         (RUN_TEST_c_c): Likewise.
54880         (RUN_TEST_cc_c): Likewise.
54881         (RUN_TEST_f_i): Likewise.
54882         (RUN_TEST_f_i_tg): Likewise.
54883         (RUN_TEST_ff_i_tg): Likewise.
54884         (RUN_TEST_f_b): Likewise.
54885         (RUN_TEST_f_b_tg): Likewise.
54886         (RUN_TEST_f_l): Likewise.
54887         (RUN_TEST_f_L): Likewise.
54888         (RUN_TEST_sincos): Likewise.
54889         * math/gen-libm-test.pl (new_test): Take new argument to indicate
54890         whether to show exceptions.  Do not include ");\n" in return
54891         value.
54892         (special_functions): Output call to RUN_TEST_sincos instead of
54893         check_float calls.  Update calls to new_test.
54894         (parse_args): Output call to single RUN_TEST_* macro instead of
54895         check_* calls and other assignments.  Update calls to new_test.
54896
54897         [BZ #2546]
54898         [BZ #2560]
54899         [BZ #5159]
54900         [BZ #15426]
54901         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
54902         input to result for tgamma overflow.
54903         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
54904         (gamma_coeff): New variable.
54905         (NCOEFF): New macro.
54906         (gamma_positive): New function.
54907         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
54908         underflow here.  Use gamma_positive instead of exp (lgamma) for
54909         other arguments.
54910         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
54911         (gamma_coeff): New variable.
54912         (NCOEFF): New macro.
54913         (gammaf_positive): New function.
54914         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
54915         underflow here.  Use gamma_positive instead of exp (lgamma) for
54916         other arguments.
54917         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
54918         (gamma_coeff): New variable.
54919         (NCOEFF): New macro.
54920         (gammal_positive): New function.
54921         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
54922         underflow here.  Use gamma_positive instead of exp (lgamma) for
54923         other arguments.
54924         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
54925         (gamma_coeff): New variable.
54926         (NCOEFF): New macro.
54927         (gammal_positive): New function.
54928         (__ieee754_gammal_r): Handle positive infinity, overflow and
54929         underflow here.  Handle NaN the same as positive infinity.  Remove
54930         check x < 0xffffffff for negative integers.  Use gamma_positive
54931         instead of exp (lgamma) for other arguments.
54932         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
54933         (gamma_coeff): New variable.
54934         (NCOEFF): New macro.
54935         (gammal_positive): New function.
54936         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
54937         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
54938         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
54939         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
54940         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
54941         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
54942         * sysdeps/generic/math_private.h (__gamma_productf): New
54943         prototype.
54944         (__gamma_product): Likewise.
54945         (__gamma_productl): Likewise.
54946         * math/Makefile (libm-calls): Add gamma_product.
54947         * math/libm-test.inc (tgamma_test): Add more tests.
54948         * sysdeps/i386/fpu/libm-test-ulps: Update.
54949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54950
54951 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
54952
54953         * benchtests/bench-skeleton.c (main): Preheat CPU.
54954
54955 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
54956
54957         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
54958
54959 2013-05-07  Roland McGrath  <roland@hack.frob.com>
54960
54961         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
54962         and _dl_skip_args_internal.
54963
54964 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
54965
54966         * manual/message.texi (Message Translation): Talk about users.
54967         Message to key mapping impacts design.
54968
54969 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54970
54971         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
54972
54973         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
54974
54975         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
54976         * sysdeps/wordsize-64/glob64.c: ... here.
54977
54978         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
54979         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
54980         New macros.
54981
54982         * debug/getlogin_r_chk.c: Moved to ...
54983         * login/getlogin_r_chk.c: ... here.
54984         * debug/Makefile (routines): Move getlogin_r_chk to ...
54985         * login/Makefile (routines): ... here.
54986         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
54987         * login/Versions (libc: GLIBC_2.4): ... here.
54988
54989         * io/poll.c (__poll): Renamed from poll.
54990         Add libc_hidden_def.
54991         (poll): Define as weak alias.
54992
54993         * debug/ptsname_r_chk.c: Moved to ...
54994         * login/ptsname_r_chk.c: ... here.
54995         * debug/Makefile (routines): Move ptsname_r_chk to ...
54996         * login/Makefile (routines): ... here.
54997         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
54998         * login/Versions (libc: GLIBC_2.4): ... here.
54999
55000         * posix/getlogin.c: Moved to ...
55001         * login/getlogin.c: ... here.
55002         * posix/getlogin_r.c: Moved to ...
55003         * login/getlogin_r.c: ... here.
55004         * posix/getlogin_r.c: Moved to ...
55005         * login/getlogin_r.c: ... here.
55006         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
55007         * login/Makefile (routines): ... here.
55008         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
55009         * login/Versions (libc: GLIBC_2.0): ... here.
55010
55011         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
55012         (setrlimit): Define as weak alias.
55013
55014         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
55015         Call __ names for open, ftruncate, and close.
55016         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
55017         (truncate): Define as weak alias.
55018
55019 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
55020
55021         * math/gen-libm-test.pl (parse_args): Initialize x before each
55022         test of frexp, modf and remquo.
55023
55024         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
55025         test signgam value.
55026
55027 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55028
55029         [BZ #15418]
55030         [BZ #15419]
55031         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
55032         internal tests.
55033         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
55034
55035 2013-05-06  Roland McGrath  <roland@hack.frob.com>
55036
55037         * elf/dl-writev.h: New file.
55038         * elf/dl-misc.c: Include it.
55039         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
55040         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
55041
55042 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
55043
55044         * math/libm-test.inc (noXFails): Remove variable.
55045         (noXPasses): Likewise.
55046         (BUILD_COMPLEX_INT): Remove macro.
55047         (print_screen): Remove xfail argument.
55048         (print_screen_max_error): Likewise.
55049         (update_stats): Likewise.
55050         (print_max_error): Likewise.  Update calls to other affected
55051         functions.
55052         (print_complex_max_error): Likewise.
55053         (test_single_exception): Update calls to print_screen.
55054         (test_single_errno): Likewise.
55055         (check_float_internal): Remove xfail argument.  Update calls to
55056         other affected functions.
55057         (check_float): Likewise.
55058         (check_complex): Likewise.
55059         (check_int): Likewise.
55060         (check_long): Likewise.
55061         (check_bool): Likewise.
55062         (check_longlong): Likewise.
55063         (main): Don't print noXFails and noXPasses.
55064         * math/gen-libm-test.pl (top level): Don't mention expected
55065         failure handling in comment.
55066         (new_test): Don't handle expected failures.
55067         (parse_args): Don't mention expected failure handling in comment.
55068         (generate_testfile): Don't handle expected failures.
55069         (parse_ulps): Likewise.
55070         (print_ulps_file): Likewise.
55071         (get_failure): Remove function.
55072         (output_test): Don't handle expected failures.
55073         * make/README.libm-test: Don't mention expected failure handling.
55074
55075         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
55076         (minus_zero): Likewise.
55077         (plus_infty): Likewise.
55078         (minus_infty): Likewise.
55079         (qnan_value): Likewise.
55080         (max_value): Likewise.
55081         (min_value): Likewise.
55082         (min_subnorm_value): Likewise.
55083         (initialize): Do not initialize those variables dynamically.
55084
55085 2013-05-03  Roland McGrath  <roland@hack.frob.com>
55086
55087         * io/open.c (__open_2): Moved to ...
55088         * io/open_2.c: ... this new file.
55089         * io/open64.c (__open64_2): Moved to ...
55090         * io/open64_2.c: ... this new file.
55091         * io/openat.c (__openat_2): Moved to ...
55092         * io/openat_2.c: ... this new file.
55093         * io/openat64.c (__openat64_2): Moved to ...
55094         * io/openat64_2.c: ... this new file.
55095         * io/Makefile (routines): Add them.
55096         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
55097         * sysdeps/unix/sysv/linux/open_2.c: File removed.
55098         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
55099         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
55100         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
55101         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
55102         (__openat64): Add hidden_ver.
55103         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
55104         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
55105
55106         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
55107         Separately conditionalize setting of GLRO(dl_sysinfo) so
55108         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
55109         as well, but the actual setting is only under [NEED_DL_SYSINFO].
55110
55111 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55112
55113         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
55114         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
55115         definition.
55116         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
55117         * sysdeps/unix/sysv/linux/powerpc/init-first.c
55118         (_libc_vdso_platform_setup): Add __vdso_time initialization.
55119         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
55120         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
55121
55122 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
55123
55124         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
55125         test signgam value.
55126
55127         * math/libm-test.inc (hypot_test): Do not use
55128         IGNORE_ZERO_INF_SIGN.
55129
55130 2013-05-03  Andreas Jaeger  <aj@suse.de>
55131
55132         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
55133         Linux 3.9.
55134         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
55135         (PF_MAX): Adjust for VSOCK change.
55136
55137 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55138
55139         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55140
55141 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
55142
55143         [BZ #15264]
55144         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
55145         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
55146         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
55147
55148 2013-05-02  David S. Miller  <davem@davemloft.net>
55149
55150         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55151
55152 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
55153
55154         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
55155
55156 2013-05-01  Roland McGrath  <roland@hack.frob.com>
55157
55158         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
55159
55160 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
55161
55162         [BZ #14952]
55163         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
55164         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55165         Use __attribute__ ((__gnu_inline__)).
55166         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55167         Don't use __attribute__ ((__gnu_inline__)).
55168
55169 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
55170
55171         [BZ #15423]
55172         * math/s_catan.c (__catan): Handle small real or imaginary part of
55173         input specially to avoid spurious underflow.
55174         * math/s_catanf.c (__catanf): Likewise.
55175         * math/s_catanh.c (__catanh): Likewise.
55176         * math/s_catanhf.c (__catanhf): Likewise.
55177         * math/s_catanhl.c (__catanhl): Likewise.
55178         * math/s_catanl.c (__catanl): Likewise.
55179         * math/libm-test.inc (catan_test): Add more tests.
55180         (catanh_test): Likewise.
55181         * sysdeps/i386/fpu/libm-test-ulps: Update.
55182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55183
55184 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55185
55186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55187
55188 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
55189
55190         [BZ #15416]
55191         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
55192         accurately for denominator in atan2.
55193         * math/s_catanf.c (__catanf): Likewise.
55194         * math/s_catanh.c (__catanh): Likewise.
55195         * math/s_catanhf.c (__catanhf): Likewise.
55196         * math/s_catanhl.c (__catanhl): Likewise.
55197         * math/s_catanl.c (__catanl): Likewise.
55198         * math/libm-test.inc (catan_test): Add more tests.
55199         (catanh_test): Likewise.
55200         * sysdeps/i386/fpu/libm-test-ulps: Update.
55201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55202
55203 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55204
55205         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
55206
55207         * benchtests/Makefile (bench): Remove slow benchmarks.
55208         * benchtests/atan-inputs: Add slow benchmark inputs.
55209         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
55210         (BENCH_FUNC): Accept variant offset.
55211         (VARIANT): Define.
55212         * benchtests/bench-skeleton.c (main): Run benchmark for each
55213         variant.
55214         * benchtests/cos-inputs: Add slow benchmark inputs.
55215         * benchtests/exp-inputs: Likewise.
55216         * benchtests/pow-inputs: Likewise.
55217         * benchtests/sin-inputs: Likewise.
55218         * benchtests/slowatan-inputs: Remove.
55219         * benchtests/slowatan.c: Remove.
55220         * benchtests/slowcos-inputs: Remove.
55221         * benchtests/slowcos.c: Remove.
55222         * benchtests/slowexp-inputs: Remove.
55223         * benchtests/slowexp.c: Remove.
55224         * benchtests/slowpow-inputs: Remove.
55225         * benchtests/slowpow.c: Remove.
55226         * benchtests/slowsin-inputs: Remove.
55227         * benchtests/slowsin.c: Remove.
55228         * benchtests/slowtan-inputs: Remove.
55229         * benchtests/slowtan.c: Remove.
55230         * benchtests/tan-inputs: Add slow benchmark inputs.
55231         * scripts/bench.pl: Parse comments and directives.
55232
55233         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
55234         in CPPFLAGS.
55235         ($(objpfx)bench-%.c): Remove *-ITER.
55236         * benchtests/bench-modf.c: Remove definition of ITER.
55237         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
55238         (main): Loop for DURATION seconds instead of fixed number of
55239         iterations.
55240         * scripts/bench.pl: Don't expect iterations in parameters.
55241
55242 2013-04-29  Roland McGrath  <roland@hack.frob.com>
55243
55244         * io/fchdir.c (__fchdir): Renamed from fchdir.
55245         (fchdir): Define as weak alias.
55246
55247 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55248
55249         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
55250         (ERRNO_EDOM): Likewise.
55251         (ERRNO_ERANGE): Likewise.
55252         (noErrnoTests): New variable.
55253         (init_max_error): Set errno to 0.
55254         (test_single_errno): New function.
55255         (test_errno): Likewise.
55256         (check_float_internal): Call test_errno.  Set errno to 0.
55257         (check_complex): Refer to errno tests in comment.
55258         (check_int): Call test_errno.  Set errno to 0.
55259         (check_long): Likewise.
55260         (check_bool): Likewise.
55261         (check_longlong): Likewise.
55262         (cos_test): Use ERRNO_* flags for errno tests instead of
55263         check_int.
55264         (expm1_test): Likewise.
55265         (fmod_test): Likewise.
55266         (ilogb_test): Likewise.
55267         (lgamma_test): Likewise.
55268         (pow_test): Likewise.
55269         (remainder_test): Likewise.
55270         (sin_test): Likewise.
55271         (tan_test): Likewise.
55272         (yn_test): Likewise.
55273         (initialize): Set errno to 0.
55274         (main): Print number of errno tests.
55275         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
55276
55277 2013-04-29  Andreas Jaeger  <aj@suse.de>
55278
55279         [BZ #15084]
55280         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
55281         and RES_USEVC.
55282
55283         [BZ #15085]
55284         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
55285         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
55286         unimplemented.
55287
55288         [BZ #15380]
55289         * stdlib/random.c (__initstate): Return NULL if
55290         __initstate fails.
55291
55292         [BZ #15086]
55293         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
55294         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
55295         RES_SNGLKUPREOP.
55296
55297 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55298
55299         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55300
55301 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55302
55303         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
55304         of individual tests.
55305         (casin_test): Likewise.
55306         (casinh_test): Likewise.
55307
55308 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
55309
55310         [BZ #15409]
55311         * math/s_catan.c (__catan): Handle arguments with large real or
55312         imaginary part separately without squaring.
55313         * math/s_catanf.c (__catanf): Likewise.
55314         * math/s_catanh.c (__catanh): Likewise.
55315         * math/s_catanhf.c (__catanhf): Likewise.
55316         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55317         and redefine.
55318         (__catanhl): Handle arguments with large real or imaginary part
55319         separately without squaring.
55320         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55321         and redefine.
55322         (__catanl): Handle arguments with large real or imaginary part
55323         separately without squaring.
55324         * math/libm-test.inc (catan_test): Add more tests.
55325         (catanh_test): Likewise.
55326         * sysdeps/i386/fpu/libm-test-ulps: Update.
55327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55328
55329 2013-04-27  Andreas Jaeger  <aj@suse.de>
55330
55331         [BZ #15007]
55332         * stdlib/stdlib.h: Update guards for qecvt.
55333         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
55334         <stdlib.h>.
55335
55336 2013-04-27  Allan McRae  <allan@archlinux.org>
55337
55338         * sysdeps/i386/fpu/libm-test-ulps: Update.
55339
55340 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
55341
55342         [BZ #15406]
55343         * math/s_catan.c: Include <float.h>.
55344         (__catan): Ensure underflow exception occurs for underflowed
55345         result.
55346         * math/s_catanf.c: Include <float.h>.
55347         (__catanf): Ensure underflow exception occurs for underflowed
55348         result.
55349         * math/s_catanh.c: Include <float.h>.
55350         (__catanh): Ensure underflow exception occurs for underflowed
55351         result.
55352         * math/s_catanhf.c: Include <float.h>.
55353         (__catanhf): Ensure underflow exception occurs for underflowed
55354         result.
55355         * math/s_catanhl.c: Include <float.h>.
55356         (__catanhl): Ensure underflow exception occurs for underflowed
55357         result.
55358         * math/s_catanl.c: Include <float.h>.
55359         (__catanl): Ensure underflow exception occurs for underflowed
55360         result.
55361         * math/libm-test.inc (catan_test): Add more tests.
55362         (catanh_test): Likewise.
55363
55364         [BZ #15405]
55365         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
55366         underflowed result.
55367         * math/s_ccoshf.c (__ccoshf): Likewise.
55368         * math/s_ccoshl.c (__ccoshl): Likewise.
55369         * math/s_csin.c (__csin): Likewise.
55370         * math/s_csinf.c (__csinf): Likewise.
55371         * math/s_csinh.c (__csinh): Likewise.
55372         * math/s_csinhf.c (__csinhf): Likewise.
55373         * math/s_csinhl.c (__csinhl): Likewise.
55374         * math/s_csinl.c (__csinl): Likewise.
55375         * math/libm-test.inc (ccos_test): Add more tests.
55376         (ccosh_test): Likewise.
55377         (csin_test): Likewise.
55378         (csinh_test): Likewise.
55379
55380 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55381
55382         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
55383         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
55384         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
55385         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
55386         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
55387         powerpc/power5+/fpu folders.
55388         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
55389
55390
55391 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
55392
55393         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55394
55395 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
55396
55397         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
55398         additions to variable.
55399         [$(config-machine) = x86_64] (modules-names): Likewise.
55400         ($(objpfx)tst-audit3): Remove dependency.
55401         ($(objpfx)tst-audit3.out): Likewise.
55402         ($(objpfx)tst-audit4): Likewise.
55403         ($(objpfx)tst-audit4.out): Likewise.
55404         ($(objpfx)tst-audit5): Likewise.
55405         ($(objpfx)tst-audit5.out): Likewise.
55406         ($(objpfx)tst-audit6): Likewise.
55407         ($(objpfx)tst-audit6.out): Likewise.
55408         ($(objpfx)tst-audit7): Likewise.
55409         ($(objpfx)tst-audit7.out): Likewise.
55410         (tst-audit3-ENV): Remove variable.
55411         (tst-audit4-ENV): Likewise.
55412         (tst-audit5-ENV): Likewise.
55413         (tst-audit6-ENV): Likewise.
55414         (tst-audit7-ENV): Likewise.
55415         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
55416         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
55417         addition to variable.
55418         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
55419         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
55420         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
55421         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
55422         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
55423         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
55424         tst-audit3, tst-audit4 and tst-audit5.
55425         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
55426         tst-audit6 and tst-audit7.
55427         [$(subdir) = elf] (modules-names): Add audit modules for those
55428         tests.
55429         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
55430         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
55431         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
55432         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
55433         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
55434         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
55435         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
55436         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
55437         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
55438         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
55439         [$(subdir) = elf] (tst-audit3-ENV): New variable.
55440         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
55441         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
55442         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
55443         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
55444         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
55445         Likewise.
55446         [$(subdir) = elf && $(config-cflags-avx) = yes]
55447         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
55448         [$(subdir) = elf && $(config-cflags-avx) = yes]
55449         (CFLAGS-tst-auditmod4a.c): Likewise.
55450         [$(subdir) = elf && $(config-cflags-avx) = yes]
55451         (CFLAGS-tst-auditmod4b.c): Likewise.
55452         [$(subdir) = elf && $(config-cflags-avx) = yes]
55453         (CFLAGS-tst-auditmod6b.c): Likewise.
55454         [$(subdir) = elf && $(config-cflags-avx) = yes]
55455         (CFLAGS-tst-auditmod6c.c): Likewise.
55456         [$(subdir) = elf && $(config-cflags-avx) = yes]
55457         (CFLAGS-tst-auditmod7b.c): Likewise.
55458         * elf/tst-audit3.c: Move to ...
55459         * sysdeps/x86_64/tst-audit3.c: ... here.
55460         * elf/tst-audit4.c: Move to ...
55461         * sysdeps/x86_64/tst-audit4.c: ... here.
55462         * elf/tst-audit5.c: Move to ...
55463         * sysdeps/x86_64/tst-audit5.c: ... here.
55464         * elf/tst-audit6.c: Move to ...
55465         * sysdeps/x86_64/tst-audit6.c: ... here.
55466         * elf/tst-audit7.c: Move to ...
55467         * sysdeps/x86_64/tst-audit7.c: ... here.
55468         * elf/tst-auditmod3a.c: Move to ...
55469         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
55470         * elf/tst-auditmod3b.c: Move to ...
55471         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
55472         * elf/tst-auditmod4a.c: Move to ...
55473         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
55474         * elf/tst-auditmod4b.c: Move to ...
55475         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
55476         * elf/tst-auditmod5a.c: Move to ...
55477         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
55478         * elf/tst-auditmod5b.c: Move to ...
55479         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
55480         * elf/tst-auditmod6a.c: Move to ...
55481         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
55482         * elf/tst-auditmod6b.c: Move to ...
55483         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
55484         * elf/tst-auditmod6c.c: Move to ...
55485         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
55486         * elf/tst-auditmod7a.c: Move to ...
55487         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
55488         * elf/tst-auditmod7b.c: Move to ...
55489         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
55490
55491 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
55492
55493         [BZ #15366]
55494         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
55495         define unconditionally.
55496         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
55497         define unconditionally.
55498         (INT8_C, INT16_C, etc.): Likewise.
55499
55500 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
55501
55502         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
55503         __ehdr_start with hidden visibility.
55504
55505         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
55506
55507 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
55508
55509         * math/libm-test.inc (cos_test): Use accurate hex constants.
55510         (sincost_test): Likewise.
55511
55512 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
55513
55514         * math/libm-test.inc (catan_test): Add more tests.
55515         (catanh_test): Likewise.
55516
55517         * math/s_catanf.c (__catanf): Use suffixed floating-point
55518         constants.
55519         * math/s_catanhf.c (__catanhf): Likewise.
55520         * math/s_catanhl.c (__catanhl): Likewise.
55521         * math/s_catanl.c (__catanl): Likewise.
55522
55523         [BZ #15394]
55524         * math/s_catan.c (__catan): Calculate imaginary part of result
55525         with log1p not log unless computing log of number close to 0.
55526         * math/s_catanf.c (__catanf): Likewise.
55527         * math/s_catanl.c (__catanl): Likewise.
55528         * math/s_catanh.c (__catanh): Calculate real part of result with
55529         log1p not log unless computing log of number close to 0.
55530         * math/s_catanhf.c (__catanhf): Likewise.
55531         * math/s_catanhl.c (__catanhl): Likewise.
55532         * math/libm-test.inc (catan_test): Add more tests.
55533         (catanh_test): Likewise.
55534         * sysdeps/i386/fpu/libm-test-ulps: Update.
55535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55536
55537 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55538
55539         * benchtests/Makefile: Mention files in which fast and slow
55540         paths of math functions are implemented.
55541
55542 2013-04-23  Roland McGrath  <roland@hack.frob.com>
55543
55544         * sysdeps/posix/timespec_get.c: New file.
55545
55546 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55547
55548         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
55549         POWER.
55550         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
55551         for POWER.
55552         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
55553         powerpc/power5/fpu folders.
55554         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
55555         * benchtests/Makefile: Add modf testcase.
55556         * benchtests/bench-modf.c: New file: Benchmark test for mo
55557
55558 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
55559
55560         [BZ #14888]
55561         * time/Makefile (tests): Add tst-strptime-whitespace.
55562         * time/strptime_l.c (get_number): Use ISSPACE.
55563         (__strptime_internal): Likewise.
55564         * time/tst-strptime-whitespace.c: New test case.
55565
55566 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
55567
55568         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
55569         member.
55570         (_nss_files_init): Set it here.
55571
55572 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
55573
55574         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
55575         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
55576         unsigned.
55577
55578 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
55579
55580         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
55581
55582 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
55583
55584         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
55585         size just once.
55586
55587 2013-04-21  David S. Miller  <davem@davemloft.net>
55588
55589         * po/ru.po: Update Russion translation from translation project.
55590
55591 2013-04-17  Adam Conrad  <adconrad@0c3.net>
55592
55593         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
55594         and setfsgid.
55595
55596 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
55597
55598         * configure.in: Remove i386 configure warning. Remove i386 case.
55599         * configure: Regenerate.
55600         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
55601         Add example to error message.
55602         * sysdeps/i386/configure: Regenerate.
55603
55604 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55605
55606         * benchtests/Makefile (bench): Add cos, tan, slowcos and
55607         slowtan.
55608         * benchtests/cos-inputs: New file.
55609         * benchtests/slowcos-inputs: New file.
55610         * benchtests/slowcos.c: New file.
55611         * benchtests/slowtan-inputs: New file.
55612         * benchtests/slowtan.c: New file.
55613         * benchtests/tan-inputs: New file.
55614
55615 2013-04-16  Roland McGrath  <roland@hack.frob.com>
55616
55617         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
55618         considered kosher.
55619
55620 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55621
55622         * benchtests/Makefile: Include cppflags-iterator.mk to add
55623         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
55624
55625         * Makefile.in (bench-clean): New target.
55626         * benchtests/Makefile (bench-clean): Likewise.
55627
55628 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
55629
55630         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
55631
55632 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
55633
55634         * stdio-common/tstdiomisc.c: Fix coding-style violation.
55635
55636 2013-04-15  Andreas Schwab  <schwab@suse.de>
55637
55638         * nscd/grpcache.c (cache_addgr): Properly check for short write.
55639         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55640         * nscd/pwdcache.c (cache_addpw): Likewise.
55641         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
55642         more than recsize.
55643
55644 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55645
55646         * benchtests/Makefile (bench): Write all output to
55647         bench-out.tmp together.
55648
55649 2013-04-15  Andreas Schwab  <schwab@suse.de>
55650
55651         * nscd/nscd.c (main): Don't fork again after closing files.
55652
55653 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55654
55655         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
55656
55657         * benchtests/Rules (bench-deps): Collect dependencies into a
55658         single variable.  Add Makefile to dependencies.
55659         ($(objpfx)bench-%.c): Depend on bench-deps.
55660
55661 2013-04-12  Roland McGrath  <roland@hack.frob.com>
55662             Xavier Roche  <roche+kml2@exalead.com>
55663
55664         [BZ #15361]
55665         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
55666         just that it's a file descriptor.
55667         * manual/llio.texi (Synchronizing AIO Operations): Update description
55668         for EBADF error from aio_fsync.
55669
55670 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
55671
55672         * Rules (bench): Move target definition...
55673         * benchtests/Makefile: ... here.
55674
55675 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
55676
55677         * math/libm-test.inc (cos_test): Fix PI/2 test.
55678         (sincos_test): Likewise.
55679         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
55680         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
55681
55682 2013-04-11  Andreas Schwab  <schwab@suse.de>
55683
55684         [BZ #13988]
55685         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
55686         accept exponent character only when digits were seen.
55687         * stdio-common/Makefile (tests): Add bug26.
55688         * stdio-common/bug26.c: New file.
55689
55690         [BZ #14293]
55691         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
55692         non-freeable.
55693
55694 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55695
55696         * Makeconfig (rtld-prefix): Define built linker prefix.
55697         * Rules (run-bench): Use it.
55698         * math/Makefile (run-regen-ulps): Likewise.
55699
55700         * Rules (bench): Remove eval.
55701
55702 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55703             Roland McGrath  <roland@hack.frob.com>
55704             Ondrej Bilka  <neleai@seznam.cz>
55705
55706         [BZ #15346]
55707         * time/getdate.c: Include ctype.h and alloca.h.
55708         (__getdate_r): Trim leading and trailing spaces of input.
55709         * time/tst-getdate.c (tests): Add tests with leading and
55710         trailing spaces.
55711
55712 2013-04-08  Roland McGrath  <roland@hack.frob.com>
55713
55714         [BZ #14280]
55715         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
55716         when computing value.
55717
55718 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55719
55720         * math/README.libm-test (How can I generate "libm-test-ulps"?):
55721         Use testrun.sh to run libm tests.
55722
55723         [BZ #15309]
55724         * elf/dl-open.c (dl_open_worker): memset all of seen array.
55725
55726 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
55727
55728         [BZ #15264]
55729         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
55730
55731 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55732
55733         * Makefile.in (regen-ulps): New target.
55734         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
55735         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
55736         [ifneq (no,$(PERL)] (regen-ulps): New target.
55737         [ifeq (no,$(PERL)] (regen-ulps): New target.
55738         * math/libm-test.inc (ulps_file_name): Define.
55739         (output_dir): New variable.
55740         (options): Add "output-dir" option.
55741         (parse_opt): Handle 'o' case.
55742         (main): If output_dir is non-NULL use it as a prefix
55743         otherwise use "".
55744         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
55745
55746 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55747
55748         [BZ #10060, #10062]
55749         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
55750         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
55751         fail configure if __sync_val_compare_and_swap is not inlined.
55752         * sysdeps/i386/configure: Regenerate.
55753         * configure.in: Build for i686 when configured for i386.
55754         * configure: Regenerate.
55755         * README: Remove i386 reference.
55756
55757 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55758
55759         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
55760         * sysdeps/s390/s390-64/sysdep.h: Likewise.
55761
55762 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
55763
55764         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
55765         (lmsnanval): New variables.
55766         (F): Add conversion tests.
55767         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
55768         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
55769
55770         * stdio-common/tstdiomisc.c (F): Properly collect individual
55771         tests' results.
55772
55773         [BZ #14686, #15336]
55774         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
55775         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
55776         Instead, use input NaN values or generate a qNaN by arithmetic
55777         operation.  Also fix bugs to comply with the standard.
55778         * math/libm-test.inc (remainder_test): Add more tests.
55779
55780         [BZ #15335, #15342]
55781         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
55782         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
55783         input NaN values or generate a qNaN by arithmetic operation.
55784
55785         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
55786         unreachable code.
55787
55788         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
55789         definitions.
55790
55791 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
55792
55793         [BZ #14478]
55794         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
55795         underflowed result.
55796         * math/s_cexpf.c (__cexpf): Likewise.
55797         * math/s_cexpl.c (__cexpl): Likewise.
55798         * math/libm-test.inc (cexp_test): Add more tests.
55799
55800 2013-04-03  Andreas Schwab  <schwab@suse.de>
55801
55802         [BZ #15330]
55803         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
55804         order arrays from heap if bigger than alloca cutoff.
55805
55806 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
55807
55808         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
55809         (SNAN_TESTS_double): Refer to GCC PR56831.
55810         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
55811         GCC PR56828.
55812
55813 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55814
55815         * Rules (bench): Move bench.out after the run is complete.
55816
55817         * Rules (bench): Echo currently running benchmark.
55818
55819         * benchtests/Makefile (bench): Add atan and slowatan.
55820         * benchtests/atan-inputs: New file.
55821         * benchtests/slowatan-inputs: New file.
55822         * benchtests/slowatan.c: New file.
55823
55824         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
55825         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
55826         its value.
55827
55828         [BZ #15305]
55829         * sysdeps/unix/sysv/linux/kernel-features.h
55830         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
55831         __ASSUME_XFS_RESTRICTED_CHOWN.
55832         * sysdeps/unix/sysv/linux/pathconf.c
55833         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
55834         Save and restore errno.
55835
55836 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
55837
55838         [BZ #15327]
55839         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
55840         arguments using __kernel_casinh.
55841         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
55842         arguments using __kernel_casinhf.
55843         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
55844         arguments using __kernel_casinhl.
55845         * math/libm-test.inc (cacosh_test): Add more tests.
55846         * sysdeps/i386/fpu/libm-test-ulps: Update.
55847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55848
55849 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55850
55851         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
55852         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
55853
55854         * bench/Makefile (bench): Add sin and slowsin.
55855         * benchtests/sin-inputs: New file.
55856         * benchtests/slowsin-inputs: New file.
55857         * benchtests/slowsin.c: New file.
55858
55859         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
55860         (bench): Add slowexp and slowpow.
55861         (exp-ITER): Increase iterations.
55862         (pow-ITER): Likewise.
55863         * benchtests/exp-inputs: Change input.
55864         * benchtests/pow-inputs: Likewise.
55865         * benchtests/slowexp-inputs: New file.
55866         * benchtests/slowexp.c: New file.
55867         * benchtests/slowpow-inputs: New file.
55868         * benchtests/slowpow.c: New file.
55869
55870 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55871
55872         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
55873         instructions.
55874         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
55875         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
55876         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
55877         * benchtests/Makefile: Add rint benchtest.
55878         * benchtests/rint-inputs: Input for rint benchtest.
55879
55880 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
55881
55882         * Versions.def (libm): Add GLIBC_2.18.
55883         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
55884         hidden libm prototypes.
55885         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
55886         * math/Makefile (libm-calls): Add s_issignaling.
55887         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
55888         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
55889         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
55890         declaration.
55891         * math/math.h [__USE_GNU] (issignaling): New macro.
55892         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
55893         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
55894         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
55895         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
55896         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
55897         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
55898         * manual/arith.texi (issignaling): New section.
55899         * manual/libm-err-tab.pl (@all_functions): Update comment.
55900         * math/gen-libm-test.pl (parse_args): Apply special handling for
55901         issignaling.
55902         * math/libm-test.inc (print_float, issignaling_test): New
55903         functions.
55904         (check_float_internal): Add issignaling checks.
55905         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
55906         default definition.
55907         * sysdeps/powerpc/math-tests.h: New file.
55908         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
55909         tests.
55910         * math/test-snan.c (TEST_FUNC): Likewise.
55911
55912 2013-03-30  David S. Miller  <davem@davemloft.net>
55913
55914         * po/de.po: Update from translation team.
55915
55916 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
55917
55918         [BZ #10357]
55919         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55920         imaginary part less than 1.0 and real part less than 0.5
55921         specially.
55922         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55923         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55924         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
55925         (cacos_test): Add more tests.
55926         (casin_test): Likewise.
55927         (casinh_test): Likewise.
55928         * sysdeps/i386/fpu/libm-test-ulps: Update.
55929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55930
55931 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55932
55933         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
55934         ONE with its value.
55935
55936         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
55937         (__pow_mp): Replace ONE and MONE with their values.
55938         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55939         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
55940         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55941         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
55942         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55943         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55944
55945         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
55946
55947         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
55948         (__pow_mp): Replace ZERO and MZERO with their values.
55949         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55950         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55951         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55952         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
55953         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55954         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
55955         (__sqr): Likewise.
55956
55957         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
55958
55959         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
55960
55961 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55962
55963         * include/stdlib.h [!SHARED] (__call_tls_dtors):
55964         Declare with __attribute__ ((weak)).
55965         * stdlib/exit.c (__libc_atexit) [!SHARED]:
55966         Call __call_tls_dtors only if it's not NULL.
55967
55968 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55969
55970         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
55971         didn't do it already, then set _dl_phdr and _dl_phnum based on the
55972         magic __ehdr_start linker symbol if it's defined.
55973         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
55974         them up here if it was already done.
55975
55976         * elf/dl-support.c (_dl_phdr): Make pointer to const.
55977         (_dl_aux_init): Use const in cast when setting it.
55978         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
55979         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
55980         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
55981
55982         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
55983         Declare them here.
55984         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
55985         * csu/libc-tls.c: Nor here.
55986         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
55987
55988         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
55989         (__libc_message): Never call vsyslog.
55990
55991 2013-03-28  Alan Modra  <amodra@gmail.com>
55992
55993         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
55994         Define as empty.
55995         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
55996         Likewise.
55997
55998 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55999
56000         [BZ #15214]
56001         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
56002         underflow.
56003         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56004
56005 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56006
56007         [BZ #15304]
56008         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
56009         Don't add gid passed as argument.
56010
56011         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
56012
56013 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
56014
56015         [BZ #15307]
56016         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56017         imaginary part between 1.0 and 1.5 and real part less than 0.5
56018         specially.
56019         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56020         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56021         * math/libm-test.inc (cacos_test): Add more tests.
56022         (casin_test): Likewise.
56023         (casinh_test): Likewise.
56024         * sysdeps/i386/fpu/libm-test-ulps: Update.
56025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56026
56027 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56028
56029         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
56030         constants.
56031         (norm): Likewise.
56032         (denorm): Likewise.
56033         (__dbl_mp): Likewise.
56034         (add_magnitudes): Likewise.
56035         (sub_magnitudes): Likewise.
56036         (__add): Likewise.
56037         (__sub): Likewise.
56038         (__mul): Likewise.
56039         (__sqr): Likewise.
56040         (__inv): Likewise.
56041         (__dvd): Likewise.
56042
56043         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
56044         commented code.
56045         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
56046         (__dubcos): Likewise.
56047         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
56048         (__ieee754_acos): Likewise.
56049         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
56050         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
56051         (__exp1): Likewise.
56052         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56053         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
56054         (log1): Likewise.
56055         (my_log2): Likewise.
56056         (checkint): Likewise.
56057         * sysdeps/ieee754/dbl-64/e_remainder.c
56058         (__ieee754_remainder): Likewise.
56059         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56060         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
56061         (bsloww): Likewise.
56062         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56063
56064         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56065         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
56066         MANTISSA_STORE_T to store computations on mantissa.  Use
56067         macros for rounding and division.
56068         (denorm): Likewise.
56069         (__dbl_mp): Likewise.
56070         (add_magnitudes): Likewise.
56071         (sub_magnitudes): Likewise.
56072         (__mul): Likewise.
56073         (__sqr): Likewise.
56074         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56075         powers of two in terms of TWOPOW macro.
56076         (mp_no): Make type of mantissa as MANTISSA_T.
56077         [!RADIXI]: Define RADIXI.
56078         [!TWO52]: Define TWO52.
56079         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56080
56081 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56082
56083         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
56084         llroundl symbol when building for PPC32.
56085
56086 2013-03-24  Mark H Weaver  <mhw@netris.org>
56087
56088         * manual/arith.texi (Normalization Functions): Fix prototypes for
56089         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
56090
56091 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56092
56093         [BZ #13889]
56094         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
56095         high value to check if expl overflow.
56096         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
56097         to check for underflow and overflow.
56098         * math/libm-test.inc: Add exp test.
56099
56100 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
56101
56102         [BZ #11120]
56103         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
56104         with NOT_IN_libc.
56105
56106 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56107
56108         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
56109         symbol.
56110
56111 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
56112
56113         * math/gen-libm-test.pl (parse_args, special_functions): Properly
56114         wrap blocks consisting of several statements.
56115
56116         * sysdeps/generic/math-tests.h: New file.
56117         * sysdeps/i386/fpu/math-tests.h: Likewise.
56118         * math/test-snan.c: Include it.
56119         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
56120
56121 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56122
56123         [BZ #15285]
56124         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
56125         (__ieee754_j0l): Do not improve calculations using cos of twice
56126         input for inputs above LDBL_MAX / 2.0L.
56127         (__ieee754_y0l): Likewise.
56128         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
56129         (__ieee754_j1l): Do not improve calculations using cos of twice
56130         input for inputs above LDBL_MAX / 2.0L.
56131         (__ieee754_y1l): Likewise.
56132         * math/libm-test.inc (j0_test): Add another test.
56133         (j1_test): Likewise.
56134         (y0_test): Likewise.
56135         (y1_test): Likewise.
56136         * sysdeps/i386/fpu/libm-test-ulps: Update.
56137
56138 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56139
56140         * Rules ($(objpfx)bench-%.c): Include code from a C source
56141         file.
56142
56143 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56144
56145         [BZ #15287]
56146         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56147         imaginary part 1.0 and real part less than 0.5 specially.
56148         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56149         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56150         * math/libm-test.inc (cacos_test): Add more tests.
56151         (casin_test): Likewise.
56152         (casinh_test): Likewise.
56153         * sysdeps/i386/fpu/libm-test-ulps: Update.
56154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56155
56156 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56157
56158         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
56159         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
56160
56161 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
56162
56163         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
56164         * config.make.in (config-cflags-sse4): Remove variable.
56165         (config-cflags-avx): Likewise.
56166         (config-cflags-sse2avx): Likewise.
56167         (config-cflags-novzeroupper): Likewise.
56168         (config-asflags-i686): Likewise.
56169         (have-mfma4): Likewise.
56170         (have-as-vis3): Likewise.
56171         (MIG): Likewise.
56172         * configure.in (MIG): Do not AC_SUBST.
56173         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
56174         (libc_cv_cc_sse4): Do not AC_SUBST.
56175         (libc_cv_cc_avx): Likewise.
56176         (libc_cv_cc_sse2avx): Likewise.
56177         (libc_cv_cc_novzeroupper): Likewise.
56178         (libc_cv_cc_fma4): Likewise.
56179         (libc_cv_as_i686): Likewise.
56180         (libc_cv_sparc_as_vis3): Likewise.
56181         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
56182         LIBC_CONFIG_VAR.
56183         (config-asflags-i686): Likewise.
56184         (config-cflags-avx): Likewise.
56185         (config-cflags-sse2avx): Likewise.
56186         (have-mfma4): Likewise.
56187         (config-cflags-novzeroupper): Likewise.
56188         * sysdeps/mach/configure.in (MIG): Likewise.
56189         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
56190         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
56191         LIBC_CONFIG_VAR.
56192         (config-cflags-avx): Likewise.
56193         (config-cflags-sse2avx): Likewise.
56194         (have-mfma4): Likewise.
56195         (config-cflags-novzeroupper): Likewise.
56196         * configure: Regenerated.
56197         * sysdeps/i386/configure: Likewise.
56198         * sysdeps/mach/configure: Likewise.
56199         * sysdeps/sparc/configure: Likewise.
56200         * sysdeps/x86_64/configure: Likewise.
56201
56202 2013-03-20  Roland McGrath  <roland@hack.frob.com>
56203
56204         [BZ #14812]
56205         * locale/programs/localedef.c (options): Put N_ translation marker
56206         on argument names, not just descriptions.
56207
56208 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56209
56210         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
56211
56212 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
56213
56214         [BZ #14176]
56215         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
56216
56217 2013-03-19  Roland McGrath  <roland@hack.frob.com>
56218
56219         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
56220         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
56221         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
56222         [!BEFORE_ABORT] (before_abort): New function.
56223         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
56224         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
56225         (writev_for_fatal): New function.
56226         (WRITEV_FOR_FATAL): New macro; call that.
56227         (backtrace_and_maps): New function.
56228         (BEFORE_ABORT): New macro; call that.
56229         (struct str_list): Type removed.
56230         (__libc_message, __libc_fatal): Functions removed.
56231         Include <sysdeps/posix/libc_fatal.c> instead.
56232
56233 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
56234
56235         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
56236         constants.
56237         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
56238         double constants.
56239
56240 2013-03-19  Andreas Schwab  <schwab@suse.de>
56241
56242         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
56243         * sysdeps/gnu/configure: Regenerate.
56244
56245         * configure.in: Substitute libc_cv_rtlddir.
56246         * configure: Regenerate.
56247         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
56248         * Makeconfig (rtlddir, inst_rtlddir): New variables.
56249         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
56250         * elf/Makefile (install-others, CFLAGS-interp.c)
56251         (ldso_install, common-ldd-rewrite): Likewise.
56252         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
56253         $(inst_slibdir)/$(rtld-installed-name).
56254         * scripts/rellns-sh: Add -p option.
56255         * Makerules (make-shlib-link): Use rellns-sh to get relative name
56256         for source.
56257
56258 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56259
56260         * manual/nptl.texi: Renamed to ...
56261         * manual/threads.texi: ... this.
56262         * manual/Makefile (chapters): Update.
56263
56264 2013-03-18  Roland McGrath  <roland@hack.frob.com>
56265
56266         [BZ #14812]
56267         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
56268         on argument names, not just descriptions.
56269         * malloc/memusagestat.c (options): Likewise.
56270         * nss/getent.c (options): Likewise.
56271
56272 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
56273
56274         [BZ #14812]
56275         * iconv/iconv_prog.c (options): Put N_ translation marker
56276         on argument names, not just descriptions.
56277         * iconv/iconvconfig.c (options): Likewise.
56278
56279 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
56280
56281         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
56282         implementation which is faster on all x86_64 architectures.
56283         Tested on AMD, Intel Nehalem, SNB, IVB.
56284         * sysdeps/x86_64/strnlen.S: Likewise.
56285
56286         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
56287         Remove all multiarch strlen and strnlen versions.
56288         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
56289         Remove strlen and strnlen related parts.
56290
56291         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
56292         Inline strlen part.
56293         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
56294
56295         * sysdeps/x86_64/multiarch/strlen.S: Remove.
56296         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
56297         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
56298         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
56299         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56300         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
56301
56302 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
56303
56304         * manual/memory.texi (Malloc Tunable Parameters):
56305         Sort parameters alphabetically. Add comments for missing entries.
56306
56307 2013-03-17  David S. Miller  <davem@davemloft.net>
56308
56309         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56310
56311 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
56312
56313         [BZ #15283]
56314         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
56315         for arguments at most half maximum finite value.
56316         * math/libm-test.inc (j0_test): Add more tests.
56317         (j1_test): Likewise.
56318         (y0_test): Likewise.
56319         (y1_test): Likewise.
56320         * sysdeps/i386/fpu/libm-test-ulps: Update.
56321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56322
56323         [BZ #14155]
56324         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
56325         1 / x and functions P and Q for arguments above 0x1p256L.
56326         (__ieee754_y0l): Likewise.
56327         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
56328         (__ieee754_y1l): Likewise.
56329         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
56330         (j1_test): Likewise.
56331         (y0_test): Likewise.
56332         (y1_test): Likewise.
56333
56334 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
56335
56336         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
56337         variable.
56338
56339 2013-03-15  Roland McGrath  <roland@hack.frob.com>
56340
56341         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
56342         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
56343         zero since it's initialized to EXEC_PAGESIZE.
56344
56345         * sysdeps/unix/sysv/linux/ldsodefs.h
56346         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
56347         * sysdeps/generic/ldsodefs.h: ... here.
56348
56349 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
56350
56351         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
56352
56353         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
56354         math/test-snan.c.
56355         * math/test-snan.c: Renamed from
56356         sysdeps/powerpc/fpu/test-powerpc-snan.c.
56357         * math/Makefile (tests): Add test-snan.
56358         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
56359         test-powerpc-snan.
56360
56361         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
56362         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
56363         functions.
56364         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
56365         __builtin_nan family of functions.
56366         * math/libm-test.inc (initialize): Initialize qnan_value with
56367         __builtin_nan family of functions.
56368         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
56369         Remove variables.
56370         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
56371         Remove functions.
56372         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
56373         storage class.  Initialize qNaN_var and sNaN_var with
56374         __builtin_nan and __builtin_nans families of functions,
56375         respectively.
56376
56377         * math/libm-test.inc (acosh_test): Also test with qNaN input.
56378         (sqrt_test): Remove duplicate test with qNaN input.
56379         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
56380         (round_test, signbit_test, significand_test): Note missing +/-Inf
56381         as well as qNaN tests.
56382
56383         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
56384         qNaN_var.  Fix a few strings, too.
56385         * math/libm-test.inc (nan_value): Rename to qnan_value.
56386         * math/gen-libm-test.pl (%beautify): Adjust to that.
56387         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
56388         * math/test-misc.c (main): Likewise.
56389         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
56390         to __qnan_bytes, and __qnan_union, respectively.
56391         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
56392         Likewise.
56393         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
56394         and lqnanval, respectively.
56395         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
56396         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
56397         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
56398         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
56399
56400         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
56401         * math/test-misc.c (main) [__x86_64__]: Enable test for long
56402         doubles.
56403
56404         * math/test-misc.c (main): Fix copy'n'pastos.
56405         * misc/tst-efgcvt.c (special): Likewise.
56406
56407         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
56408         Remove declarations.
56409
56410 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56411
56412         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
56413         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
56414         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
56415         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
56416
56417 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56418
56419         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
56420         macro to return vdso values correctly in IFUNC implementations.
56421         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
56422         Optimization by using IFUNC.
56423
56424 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56425             Richard Henderson  <rth@redhat.com>
56426             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56427
56428         * Makefile.in (bench): New target.
56429         * NEWS: Mention the benchmark framework.
56430         * Rules (bench): Likewise.
56431         (binaries-bench): Generate binaries for functions to
56432         benchmark.
56433         * benchtests/Makefile: New makefile for benchmark tests.
56434         * benchtests/bench-skeleton.c: New skeleton file for benchmark
56435         programs.
56436         * benchtests/exp-inputs: New input file for EXP function.
56437         * benchtests/pow-inputs: New input file for POW function.
56438         * scripts/bench.pl: New script to generate source files for
56439         benchmark programs.
56440
56441 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56442
56443         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56444         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
56445         computations on mantissa.  Use macros for rounding and
56446         division.
56447         (denorm): Likewise.
56448         (__dbl_mp): Likewise.
56449         (add_magnitudes): Likewise.
56450         (sub_magnitudes): Likewise.
56451         (__mul): Likewise.
56452         (__sqr): Likewise.
56453         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56454         powers of two in terms of TWOPOW macro.
56455         (mp_no): Make type of mantissa as MANTISSA_T.
56456         [!RADIXI]: Define RADIXI.
56457         [!TWO52]: Define TWO52.
56458         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56459
56460         * manual/nptl.texi (cindex): Modify threads to pthreads.
56461
56462 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
56463
56464         * sysdeps/x86_64/preconfigure: Regenerated.
56465
56466 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
56467
56468         [BZ #14155]
56469         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
56470         0x1p28 and above.
56471         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
56472         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
56473         0x1p28 and above.
56474         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
56475         * math/libm-test.inc (j0_test): Do not allow one spurious
56476         underflow exception.
56477         (y1_test): Likewise.
56478
56479 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56480
56481         * manual/Makefile (chapters): Add nptl.
56482         * manual/debug.texi (Debugging Support): Add link to Threads
56483         chapter.
56484         * manual/nptl.texi: New file.
56485
56486         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
56487
56488 2013-03-14  Petr Baudis  <pasky@ucw.cz>
56489
56490         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
56491         for non-NULL pointer before the memory validity test. Pointed
56492         out by Holger Brunck <holger.brunck@keymile.com>.
56493
56494 2013-03-13  Andreas Schwab  <schwab@suse.de>
56495
56496         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
56497         instead of .os.
56498
56499 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
56500
56501         * timezone/zic.c: Update from tzcode 2013b.
56502
56503 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
56504
56505         * manual/install.texi (Configuring and compiling):
56506         Mention i686 and i586.
56507         * INSTALL: Regenerate.
56508
56509 2013-03-12  Roland McGrath  <roland@hack.frob.com>
56510
56511         * sysdeps/init_array/elf-init.c: New file.
56512         * csu/elf-init.c
56513         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
56514         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
56515
56516         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
56517         __gmon_start__ as global, but as static with a .preinit_array pointer.
56518         * sysdeps/init_array/gmon-start.c: New file.  Use that.
56519         * sysdeps/init_array/crti.S: New file, empty except for comments.
56520         * sysdeps/init_array/crtn.S: Likewise.
56521
56522 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
56523
56524         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
56525         definining bcopy.
56526         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56527         Remove Prefer_SSE_for_memop.
56528         * sysdeps/x86_64/multiarch/init-arch.h: Remove
56529         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
56530         HAS_PREFER_SSE_FOR_MEMOP.
56531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
56532         memset-x86-64.
56533         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
56534         Remove bzero, memset ifunc support.
56535         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
56536         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
56537         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56538         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56539
56540 2013-03-11  Andreas Schwab  <schwab@suse.de>
56541
56542         [BZ #15234]
56543         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
56544         by SHLIB_COMPAT.
56545         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
56546         (GLIBC_2.16): Remove pthread_atfork.
56547
56548 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
56549
56550         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
56551         (ptestcases.h): Likewise.
56552
56553 2013-03-08  Roland McGrath  <roland@hack.frob.com>
56554
56555         * Makeconfig ($(common-objpfx)config.status): Depend on
56556         sysdeps/*/preconfigure{,.in} too.
56557
56558 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
56559
56560         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
56561         (__free_hook): Use void * instead of __malloc_ptr_t.
56562         (__malloc_hook): Likewise.
56563         (__realloc_hook): Likewise.
56564         (__memalign_hook): Likewise.
56565         (__after_morecore_hook): Likewise.
56566         * malloc/arena.c (save_malloc_hook): Likewise.
56567         (save_free_hook): Likewise.
56568         * malloc/hooks.c (malloc_hook_ini): Likewise.
56569         (realloc_hook_ini): Likewise.
56570         (memalign_hook_ini): Likewise.
56571         * malloc/malloc.c (malloc_hook_ini): Likewise.
56572         (realloc_hook_ini): Likewise.
56573         (memalign_hook_ini): Likewise.
56574         (__free_hook): Likewise.
56575         (__malloc_hook): Likewise.
56576         (__realloc_hook): Likewise.
56577         (__memalign_hook): Likewise.
56578         (__libc_malloc): Likewise.
56579         (__libc_free): Likewise.
56580         (__libc_realloc): Likewise.
56581         (__libc_memalign): Likewise.
56582         (__libc_valloc): Likewise.
56583         (__libc_pvalloc): Likewise.
56584         (__libc_calloc): Likewise.
56585         (__posix_memalign): Likewise.
56586         * malloc/morecore.c (__sbrk): Likewise.
56587         (__default_morecore): Likewise.
56588
56589         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
56590
56591         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
56592         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
56593         __malloc_ptrdiff_t.
56594
56595         * malloc/malloc.h (__malloc_size_t): Remove macro.
56596         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
56597         __malloc_size_t.
56598         (old_memalign_hook): Likewise.
56599         (old_realloc_hook): Likewise.
56600         (struct hdr): Likewise.
56601         (flood): Likewise.
56602         (mallochook): Likewise.
56603         (memalignhook): Likewise.
56604         (reallochook): Likewise.
56605         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
56606         (tr_old_realloc_hook): Likewise.
56607         (tr_old_memalign_hook): Likewise.
56608         (tr_mallochook): Likewise.
56609         (tr_reallochook): Likewise.
56610         (tr_memalignhook): Likewise.
56611
56612 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56613
56614         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
56615         default_ldbl_pack and using as default implementation.
56616         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
56617         implementation.
56618         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
56619         redundant definition.
56620         (ldbl_insert_mantissa): Likewise.
56621         (ldbl_canonicalize): Likewise.
56622         (ldbl_nearbyint): Likewise.
56623         (ldbl_pack): Rename to ldbl_pack_ppc.
56624         (ldbl_unpack): Rename to ldbl_unpack_ppc.
56625         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
56626         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
56627
56628 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56629
56630         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
56631         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
56632         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
56633         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
56634         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
56635         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
56636         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
56637         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
56638
56639 2013-03-07  Andreas Jaeger  <aj@suse.de>
56640
56641         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56642         bits/mman-linux.h.
56643
56644 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56645
56646         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
56647         Include mpa.h and declare __MPEXP.
56648         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
56649         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56650         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56651         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
56652         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56653         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56654         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
56655
56656         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
56657         (__slowpow): Use long double EXPL and LOGL functions to
56658         compute POW.
56659         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56660         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56661         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
56662         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56663         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56664         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
56665
56666         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
56667         intermediate variable to calculate exponent.
56668         (__sqr): Likewise.
56669         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
56670         Likewise.
56671         (__sqr): Likewise.
56672
56673         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
56674         [!NO__SQR]: Define __sqr.
56675         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
56676         and NO__SQR.  Remove all code except __mul and __sqr.  Include
56677         sysdeps/ieee754/dbl-64/mpa.c.
56678         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56679
56680         [BZ #12723]
56681         * posix/Makefile (tests): Add tst-pathconf.
56682         * posix/tst-pathconf.c: New test case.
56683         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
56684         _PC_PIPE_BUF.
56685         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
56686
56687 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
56688
56689         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
56690
56691 2013-03-06  Andreas Jaeger  <aj@suse.de>
56692
56693         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
56694         definition via __MAP_ANONYMOUS.
56695
56696         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
56697         it's not part of Linux headers.
56698
56699         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
56700         (MAP_HUGE_MASK): Define.
56701
56702         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56703         Define.
56704         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56705         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56706         Define.
56707         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56708         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56709         Define.
56710         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56711         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
56712         Define.
56713         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56714
56715         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
56716         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
56717         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
56718         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
56719         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
56720         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
56721
56722         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
56723         Handle f2fs.
56724
56725         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
56726         Handle f2fs and efivarfs.
56727
56728         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
56729         f2fs.
56730
56731         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
56732         (EFIVARFS_MAGIC): Add.
56733         (F2FS_LINK_MAX): Add.
56734
56735 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
56736
56737         * stdio-common/vfprintf.c: Replace __builtin_expect with
56738         __glibc_unlikely.
56739
56740 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
56741
56742         [BZ #13550]
56743         * sysdeps/generic/bp-sym.h: Remove file.
56744         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
56745         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
56746         <bp-sym.h> and <bp-asm.h>.
56747         (__longjmp): Don't use BP_SYM.
56748         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
56749         and <bp-asm.h>.
56750         (memcpy): Don't use BP_SYM.
56751         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
56752         <bp-sym.h> and <bp-asm.h>.
56753         (memcpy): Don't use BP_SYM.
56754         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
56755         <bp-asm.h>.
56756         (memcpy): Don't use BP_SYM.
56757         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
56758         <bp-asm.h>.
56759         (memset): Don't use BP_SYM.
56760         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56761         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56762         (__bzero): Don't use BP_SYM.
56763         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56764         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56765         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
56766         <bp-sym.h> and <bp-asm.h>.
56767         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56768         pointers.
56769         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
56770         <bp-sym.h> and <bp-asm.h>.
56771         (memcpy): Don't use BP_SYM.
56772         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
56773         <bp-sym.h> and <bp-asm.h>.
56774         (memset): Don't use BP_SYM.
56775         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56776         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56777         (__bzero): Don't use BP_SYM.
56778         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56779         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56780         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
56781         <bp-sym.h> and <bp-asm.h>.
56782         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56783         pointers.
56784         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
56785         <bp-sym.h> and <bp-asm.h>.
56786         (memcpy): Don't use BP_SYM.
56787         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
56788         <bp-sym.h> and <bp-asm.h>.
56789         (memset): Don't use BP_SYM.
56790         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56791         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56792         (__bzero): Don't use BP_SYM.
56793         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56794         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56795         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
56796         <bp-sym.h> and <bp-asm.h>.
56797         (__memchr): Don't use BP_SYM.
56798         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
56799         <bp-sym.h> and <bp-asm.h>.
56800         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56801         pointers.
56802         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
56803         <bp-sym.h> and <bp-asm.h>.
56804         (memcpy): Don't use BP_SYM.
56805         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
56806         <bp-sym.h> and <bp-asm.h>.
56807         (__mempcpy): Don't use BP_SYM.
56808         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
56809         <bp-sym.h> and <bp-asm.h>.
56810         (__memrchr): Don't use BP_SYM.
56811         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
56812         <bp-sym.h> and <bp-asm.h>.
56813         (memset): Don't use BP_SYM.
56814         (__bzero): Likewise.
56815         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
56816         <bp-sym.h> and <bp-asm.h>.
56817         (__rawmemchr): Don't use BP_SYM.
56818         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
56819         <bp-sym.h> and <bp-asm.h>.
56820         (__STRCMP): Don't use BP_SYM.
56821         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
56822         <bp-sym.h> and <bp-asm.h>.
56823         (strchr): Don't use BP_SYM.
56824         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
56825         <bp-sym.h> and <bp-asm.h>.
56826         (__strchrnul): Don't use BP_SYM.
56827         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
56828         <bp-sym.h> and <bp-asm.h>.
56829         (strlen): Don't use BP_SYM.
56830         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
56831         <bp-sym.h> and <bp-asm.h>.
56832         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56833         pointers.
56834         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
56835         <bp-sym.h> and <bp-asm.h>.
56836         (__strnlen): Don't use BP_SYM.
56837         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
56838         <bp-sym.h> and <bp-asm.h>.
56839         (__GI__setjmp): Don't use BP_SYM.
56840         (_setjmp): Likewise.
56841         (__sigsetjmp): Likewise.
56842         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
56843         (L(start_addresses)): Don't use BP_SYM.
56844         (_start): Likewise.
56845         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
56846         <bp-asm.h>.
56847         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
56848         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
56849         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56850         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56851         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
56852         <bp-asm.h>.
56853         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
56854         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
56855         about bounded pointers.
56856         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56857         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56858         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
56859         <bp-asm.h>.
56860         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56861         about bounded pointers.  Remove GKM FIXME comments.
56862         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56863         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
56864         <bp-asm.h>.
56865         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
56866         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
56867         Remove GKM FIXME comments.
56868         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56869         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56870         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
56871         <bp-asm.h>.
56872         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56873         about bounded pointers.  Remove GKM FIXME comment.
56874         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
56875         and <bp-asm.h>.
56876         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56877         pointers.
56878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
56879         <bp-sym.h> and <bp-asm.h>.
56880         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
56882         <bp-sym.h> and <bp-asm.h>.
56883         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56884         comment.
56885
56886 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
56887
56888         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
56889         call free(NULL).
56890
56891 2013-03-05  David S. Miller  <davem@davemloft.net>
56892
56893         * po/es.po: Update from translation team.
56894
56895 2013-03-05  Andreas Jaeger  <aj@suse.de>
56896
56897         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
56898         <bits/mman-linux.h>.
56899         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56900         is fine.
56901         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
56902         <bits/mman-linux.h> to end of file.
56903         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56904         is fine.
56905         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
56906         <bits/mman-linux.h> to end of file.
56907         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56908         is fine.
56909         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
56910         <bits/mman-linux.h> to end of file.
56911
56912         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
56913         (MCL_CURRENT, MCL_FUTURE): Define here.
56914
56915 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56916
56917         [BZ #15232]
56918         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
56919         attribute_hidden.
56920         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
56921
56922 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56923
56924         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
56925         fourth parameter needed for rt_sigprocmask syscall.
56926         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
56927         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
56928         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
56929         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
56930         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
56931         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
56932
56933 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
56934
56935         [BZ #13550]
56936         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
56937         comment about bounded pointers.
56938         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
56939         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
56940
56941 2013-03-04  Andreas Jaeger  <aj@suse.de>
56942
56943         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
56944         common definitions.
56945
56946         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
56947         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
56948         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
56949         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
56950         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
56951         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
56952
56953 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56954
56955         [BZ #15055]
56956         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
56957         __ieee754_sqrl instead of __sqrl.
56958
56959 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
56960
56961         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
56962         * sysdeps/powerpc/fpu_control.h: ... here.
56963         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
56964         * sysdeps/powerpc/bits/fenvinline.h: ... here.
56965         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
56966         * sysdeps/powerpc/bits/mathinline.h: ... here.
56967
56968 2013-03-01  Roland McGrath  <roland@hack.frob.com>
56969
56970         * elf/dl-hwcaps.c (_dl_important_hwcaps):
56971         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
56972         to just [NEED_DL_SYSINFO_DSO].
56973         * elf/dl-support.c: Likewise.
56974         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
56975         * elf/rtld.c (dl_main): Likewise.
56976         * elf/setup-vdso.h (setup_vdso): Likewise.
56977         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
56978         * sysdeps/unix/sysv/linux/dl-sysdep.c
56979         (_dl_discover_osversion): Likewise.
56980
56981 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
56982
56983         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
56984         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56985
56986 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
56987
56988         * NEWS: Mention libm performance improvements and non-x86 PI
56989         futex support.
56990
56991         * csu/libc-start.c (__pthread_initialize_minimal): Change
56992         function arguments.
56993         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56994
56995 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
56996
56997         [BZ #13550]
56998         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
56999         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
57000         <bp-sym.h> and <bp-asm.h>.
57001         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57002         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
57003         and <bp-asm.h>.
57004         (memcpy): Don't use BP_SYM.
57005         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
57006         <bp-asm.h>.
57007         (__mpn_add_n): Don't use BP_SYM.
57008         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
57009         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
57010         and <bp-asm.h>.
57011         (__mpn_addmul_1): Don't use BP_SYM.
57012         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57013         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
57014         <bp-sym.h>.
57015         (_setjmp): Don't use BP_SYM.
57016         (__novmx_setjmp): Likewise.
57017         (__GI__setjmp): Likewise.
57018         (__vmx_setjmp): Likewise.
57019         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
57020         <bp-sym.h>.
57021         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
57022         (__bzero): Don't use BP_SYM.
57023         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
57024         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
57025         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
57026         <bp-sym.h> and <bp-asm.h>.
57027         (memcpy): Don't use BP_SYM.
57028         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
57029         <bp-sym.h> and <bp-asm.h>.
57030         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57031         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
57032         <bp-sym.h> and <bp-asm.h>.
57033         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
57034         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
57035         <bp-asm.h>.
57036         (__mpn_lshift): Don't use BP_SYM.
57037         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57038         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
57039         <bp-asm.h>.
57040         (memset): Don't use BP_SYM.
57041         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
57042         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
57043         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
57044         <bp-asm.h>.
57045         (__mpn_mul_1): Don't use BP_SYM.
57046         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57047         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
57048         <bp-sym.h> and <bp-asm.h>.
57049         (memcmp): Don't use BP_SYM.
57050         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
57051         <bp-sym.h> and <bp-asm.h>.
57052         (memcpy): Don't use BP_SYM.
57053         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
57054         <bp-sym.h> and <bp-asm.h>.
57055         (memset): Don't use BP_SYM.
57056         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
57057         <bp-sym.h> and <bp-asm.h>.
57058         (strncmp): Don't use BP_SYM.
57059         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
57060         <bp-sym.h> and <bp-asm.h>.
57061         (memcpy): Don't use BP_SYM.
57062         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
57063         <bp-sym.h> and <bp-asm.h>.
57064         (memset): Don't use BP_SYM.
57065         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
57066         <bp-sym.h> and <bp-asm.h>.
57067         (__memchr): Don't use BP_SYM.
57068         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
57069         <bp-sym.h> and <bp-asm.h>.
57070         (memcmp): Don't use BP_SYM.
57071         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
57072         <bp-sym.h> and <bp-asm.h>.
57073         (memcpy): Don't use BP_SYM.
57074         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
57075         <bp-sym.h> and <bp-asm.h>.
57076         (__mempcpy): Don't use BP_SYM.
57077         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
57078         <bp-sym.h> and <bp-asm.h>.
57079         (__memrchr): Don't use BP_SYM.
57080         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
57081         <bp-sym.h> and <bp-asm.h>.
57082         (memset): Don't use BP_SYM.
57083         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
57084         <bp-sym.h> and <bp-asm.h>.
57085         (__rawmemchr): Don't use BP_SYM.
57086         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
57087         <bp-sym.h> and <bp-asm.h>.
57088         (__STRCMP): Don't use BP_SYM.
57089         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
57090         <bp-sym.h> and <bp-asm.h>.
57091         (strchr): Don't use BP_SYM.
57092         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
57093         <bp-sym.h> and <bp-asm.h>.
57094         (__strchrnul): Don't use BP_SYM.
57095         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
57096         <bp-sym.h> and <bp-asm.h>.
57097         (strlen): Don't use BP_SYM.
57098         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
57099         <bp-sym.h> and <bp-asm.h>.
57100         (strncmp): Don't use BP_SYM.
57101         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
57102         <bp-sym.h> and <bp-asm.h>.
57103         (__strnlen): Don't use BP_SYM.
57104         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
57105         <bp-asm.h>.
57106         (__mpn_rshift): Don't use BP_SYM.
57107         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57108         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
57109         <bp-sym.h> and <bp-asm.h>.
57110         (__sigsetjmp): Don't use BP_SYM.
57111         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
57112         (L(start_addresses)): Don't use BP_SYM.
57113         (_start): Likewise.
57114         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
57115         <bp-asm.h>.
57116         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
57117         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57118         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57119         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
57120         <bp-asm.h>.
57121         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
57122         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57123         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57124         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
57125         <bp-asm.h>.
57126         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57127         comments.
57128         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57129         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
57130         <bp-asm.h>.
57131         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
57132         FIXME comments.
57133         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57134         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57135         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
57136         <bp-asm.h>.
57137         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57138         comment.
57139         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
57140         and <bp-asm.h>.
57141         (strncmp): Don't use BP_SYM,
57142         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
57143         <bp-asm.h>.
57144         (__mpn_sub_n): Don't use BP_SYM.
57145         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57146         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
57147         and <bp-asm.h>.
57148         (__mpn_submul_1): Don't use BP_SYM.
57149         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
57151         <bp-sym.h> and <bp-asm.h>.
57152         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
57154         <bp-sym.h> and <bp-asm.h>.
57155         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57156         comment.
57157
57158 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57159
57160         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
57161         Use ZK to minimize writes to Z.
57162         (sub_magnitudes): Simplify code a bit.
57163         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
57164         Use ZK to minimize writes to Z.
57165         (sub_magnitudes): Simplify code a bit.
57166
57167 2013-02-27  Roland McGrath  <roland@hack.frob.com>
57168
57169         * csu/gmon-start.c: Add special exception to license text.
57170
57171 2013-02-27  Richard Henderson  <rth@redhat.com>
57172
57173         * scripts/config.guess: Update from config.git.
57174         * scripts/config.sub: Likewise.
57175
57176 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57177
57178         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
57179
57180         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
57181
57182         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
57183
57184         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
57185
57186         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
57187
57188 2013-02-26  Roland McGrath  <roland@hack.frob.com>
57189
57190         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
57191         [$(build-shared = yes].
57192
57193 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57194
57195         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
57196         (__mul): Reduce iterations for calculating mantissa.
57197
57198         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
57199         MPTWO.
57200         (__mpranred): Likewise.
57201
57202         [BZ #15160]
57203         * malloc/memusagestat.c (main): Draw graphs for heap and stack
57204         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
57205
57206 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
57209         Define __attribute__.
57210
57211 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57212
57213         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
57214         unused.
57215         * posix/regex_internal.h (__attribute): Remove.
57216         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
57217         (re_string_context_at): Likewise.
57218         (bitset_not): Use __attribute__ and mark function as possibly
57219         unused.
57220         (bitset_merge): Likewise.
57221         (bitset_mask): Likewise.
57222         (re_string_char_size_at): Likewise.
57223         (re_string_wchar_at): Likewise.
57224         (re_string_elem_size_at): Likewise.
57225
57226 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57227
57228         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
57229         code.
57230         (cc32): Likewise.
57231
57232         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
57233         (__acr): Likewise.
57234         (__cpy): Likewise.
57235         (norm): Likewise.
57236         (denorm): Likewise.
57237         (__dbl_mp): Likewise.
57238         (add_magnitudes): Likewise.
57239         (sub_magnitudes): Likewise.
57240         (__mul): Likewise.
57241         (__inv): Likewise.
57242
57243         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
57244         style.
57245
57246         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
57247         style.
57248
57249         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
57250         code.
57251
57252         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
57253         up changes with default code.
57254         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
57255         Likewise.
57256
57257 2013-02-24  Allan McRae  <allan@archlinux.org>
57258
57259         * manual/socket.texi (The Internet Namespace): Order menu items
57260         to match that in the file.
57261
57262         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
57263         node listing of the info page menu.
57264
57265 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
57266
57267         [BZ #13550]
57268         * sysdeps/i386/bp-asm.h: Remove file.
57269         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57270         (PARMS): Do not use macros from bp-asm.h.
57271         (S1): Likewise.
57272         (S2): Likewise.
57273         (SIZE): Likewise.
57274         (__mpn_add_n): Do not use BP_SYM
57275         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
57276         "bp-asm.h".
57277         (PARMS): Do not use macros from bp-asm.h.
57278         (S1): Likewise.
57279         (SIZE): Likewise.
57280         (__mpn_addmul_1): Do not use BP_SYM
57281         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
57282         "bp-asm.h".
57283         (PARMS): Do not use macros from bp-asm.h.
57284         (SIGMSK): Likewise.
57285         (_setjmp): Likewise.  Do not use BP_SYM.
57286         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
57287         "bp-asm.h".
57288         (PARMS): Do not use macros from bp-asm.h.
57289         (SIGMSK): Likewise.
57290         (setjmp): Likewise.  Do not use BP_SYM.
57291         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
57292         "bp-asm.h".
57293         (PARMS): Do not use macros from bp-asm.h.
57294         (__frexp): Do not use BP_SYM.
57295         (frexp): Likewise.
57296         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
57297         "bp-asm.h".
57298         (PARMS): Do not use macros from bp-asm.h.
57299         (__frexpf): Do not use BP_SYM.
57300         (frexpf): Likewise.
57301         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
57302         "bp-asm.h".
57303         (PARMS): Do not use macros from bp-asm.h.
57304         (__frexpl): Do not use BP_SYM.
57305         (frexpl): Likewise.
57306         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
57307         "bp-asm.h".
57308         (PARMS): Do not use macros from bp-asm.h.
57309         (__remquo): Do not use BP_SYM.
57310         (remquo): Likewise.
57311         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
57312         "bp-asm.h".
57313         (PARMS): Do not use macros from bp-asm.h.
57314         (__remquof): Do not use BP_SYM.
57315         (remquof): Likewise.
57316         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
57317         "bp-asm.h".
57318         (PARMS): Do not use macros from bp-asm.h.
57319         (__remquol): Do not use BP_SYM.
57320         (remquol): Likewise.
57321         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
57322         "bp-asm.h".
57323         (PARMS): Do not use macros from bp-asm.h.
57324         (DEST): Likewise.
57325         (SRC): Likewise.
57326         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
57327         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
57328         "bp-asm.h".
57329         (PARMS): Do not use macros from bp-asm.h.
57330         (strlen): Do not use BP_SYM.
57331         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
57332         "bp-asm.h".
57333         (PARMS): Do not use macros from bp-asm.h.
57334         (S1): Likewise.
57335         (S2): Likewise.
57336         (SIZE): Likewise.
57337         (__mpn_add_n): Do not use BP_SYM.
57338         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
57339         "bp-asm.h".
57340         (PARMS): Do not use macros from bp-asm.h.
57341         (S1): Likewise.
57342         (SIZE): Likewise.
57343         (__mpn_addmul_1): Do not use BP_SYM.
57344         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
57345         weak_alias.
57346         (bzero): Likewise.
57347         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
57348         "bp-asm.h".
57349         (PARMS): Do not use macros from bp-asm.h.
57350         (S): Likewise.
57351         (SIZE): Likewise.
57352         (__mpn_lshift): Do not use BP_SYM.
57353         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
57354         "bp-asm.h".
57355         (PARMS): Do not use macros from bp-asm.h.
57356         (DEST): Likewise.
57357         (SRC): Likewise.
57358         (LEN): Likewise.
57359         (memcpy): Likewise.  Do not use BP_SYM.
57360         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
57361         libc_hidden_def and weak_alias.
57362         (mempcpy): Do not use BP_SYM in weak_alias.
57363         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
57364         "bp-asm.h".
57365         (PARMS): Do not use macros from bp-asm.h.
57366         (DEST): Likewise.
57367         (LEN): Likewise.
57368         [!BZERO_P] (CHR): Likewise.
57369         (memset): Likewise.  Do not use BP_SYM.
57370         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
57371         "bp-asm.h".
57372         (PARMS): Do not use macros from bp-asm.h.
57373         (S1): Likewise.
57374         (SIZE): Likewise.
57375         (__mpn_mul_1): Do not use BP_SYM.
57376         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
57377         "bp-asm.h".
57378         (PARMS): Do not use macros from bp-asm.h.
57379         (S): Likewise.
57380         (SIZE): Likewise.
57381         (__mpn_rshift): Do not use BP_SYM.
57382         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
57383         "bp-asm.h".
57384         (PARMS): Do not use macros from bp-asm.h.
57385         (STR): Likewise.
57386         (CHR): Likewise.
57387         (strchr): Likewise.  Do not use BP_SYM.
57388         (index): Do not use BP_SYM in weak_alias.
57389         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
57390         "bp-asm.h".
57391         (PARMS): Do not use macros from bp-asm.h.
57392         (DEST): Likewise.
57393         (SRC): Likewise.
57394         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
57395         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
57396         "bp-asm.h".
57397         (PARMS): Do not use macros from bp-asm.h.
57398         (strlen): Do not use BP_SYM.
57399         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
57400         "bp-asm.h".
57401         (PARMS): Do not use macros from bp-asm.h.
57402         (S1): Likewise.
57403         (S2): Likewise.
57404         (SIZE): Likewise.
57405         (__mpn_sub_n): Do not use BP_SYM.
57406         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
57407         "bp-asm.h".
57408         (PARMS): Do not use macros from bp-asm.h.
57409         (S1): Likewise.
57410         (SIZE): Likewise.
57411         (__mpn_submul_1): Do not use BP_SYM.
57412         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
57413         "bp-asm.h".
57414         (PARMS): Do not use macros from bp-asm.h.
57415         (S1): Likewise.
57416         (S2): Likewise.
57417         (SIZE): Likewise.
57418         (__mpn_add_n): Do not use BP_SYM.
57419         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
57420         weak_alias.
57421         (bzero): Likewise.
57422         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
57423         "bp-asm.h".
57424         (PARMS): Do not use macros from bp-asm.h.
57425         (BLK2): Likewise.
57426         (LEN): Likewise.
57427         (memcmp): Do not use BP_SYM.
57428         (bcmp): Do not use BP_SYM in weak_alias.
57429         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
57430         "bp-asm.h".
57431         (PARMS): Do not use macros from bp-asm.h.
57432         (DEST): Likewise.
57433         (SRC): Likewise.
57434         (LEN): Likewise.
57435         (memcpy): Likewise.  Do not use BP_SYM.
57436         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
57437         "bp-asm.h".
57438         (PARMS): Do not use macros from bp-asm.h.
57439         (DEST): Likewise.
57440         (SRC): Likewise.
57441         (LEN): Likewise.
57442         (memmove): Likewise.  Do not use BP_SYM.
57443         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
57444         "bp-asm.h".
57445         (PARMS): Do not use macros from bp-asm.h.
57446         (DEST): Likewise.
57447         (SRC): Likewise.
57448         (LEN): Likewise.
57449         (__mempcpy): Likewise.  Do not use BP_SYM.
57450         (mempcpy): Do not use BP_SYM in weak_alias.
57451         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
57452         "bp-asm.h".
57453         (PARMS): Do not use macros from bp-asm.h.
57454         (DEST): Likewise.
57455         (LEN): Likewise.
57456         [!BZERO_P] (CHR): Likewise.
57457         (memset): Likewise.  Do not use BP_SYM.
57458         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
57459         "bp-asm.h".
57460         (PARMS): Do not use macros from bp-asm.h.
57461         (STR2): Likewise.
57462         (strcmp): Do not use BP_SYM.
57463         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
57464         "bp-asm.h".
57465         (PARMS): Do not use macros from bp-asm.h.
57466         (STR): Likewise.
57467         (DELIM): Likewise.
57468         [USE_AS_STRTOK_R] (SAVE): Likewise.
57469         (FUNCTION): Likewise.  Do not use BP_SYM.
57470         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
57471         aliases.
57472         (strtok_r): Likewise.
57473         (__GI___strtok_r): Likewise.
57474         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57475         (PARMS): Do not use macros from bp-asm.h.
57476         (S): Likewise.
57477         (SIZE): Likewise.
57478         (__mpn_lshift): Do not use BP_SYM.
57479         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57480         (PARMS): Do not use macros from bp-asm.h.
57481         (STR): Likewise.
57482         (CHR): Likewise.
57483         (__memchr): Do not use BP_SYM.
57484         (memchr): Do not use BP_SYM in weak_alias.
57485         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57486         (PARMS): Do not use macros from bp-asm.h.
57487         (BLK2): Likewise.
57488         (LEN): Likewise.
57489         (memcmp): Do not use BP_SYM.
57490         (bcmp): Do not use BP_SYM in weak_alias.
57491         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
57492         (PARMS): Do not use macros from bp-asm.h.
57493         (S1): Likewise.
57494         (SIZE): Likewise.
57495         (__mpn_mul_1): Do not use BP_SYM.
57496         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
57497         "bp-asm.h".
57498         (PARMS): Do not use macros from bp-asm.h.
57499         (STR): Likewise.
57500         (CHR): Likewise.
57501         (__rawmemchr): Do not use BP_SYM.
57502         (rawmemchr): Do not use BP_SYM in weak_alias.
57503         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57504         (PARMS): Do not use macros from bp-asm.h.
57505         (S): Likewise.
57506         (SIZE): Likewise.
57507         (__mpn_rshift): Do not use BP_SYM.
57508         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57509         (PARMS): Do not use macros from bp-asm.h.
57510         (SIGMSK): Likewise.
57511         (__sigsetjmp): Likewise.  Do not use BP_SYM.
57512         * sysdeps/i386/start.S: Do not include "bp-sym.h".
57513         (_start): Do not use BP_SYM.
57514         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
57515         (PARMS): Do not use macros from bp-asm.h.
57516         (DEST): Likewise.
57517         (SRC): Likewise.
57518         (__stpcpy): Likewise.  Do not use BP_SYM.
57519         (stpcpy): Do not use BP_SYM in weak_alias.
57520         * sysdeps/i386/stpncpy.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         (LEN): Likewise.
57526         (__stpncpy): Likewise.  Do not use BP_SYM.
57527         (stpncpy): Do not use BP_SYM in weak_alias.
57528         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57529         (PARMS): Do not use macros from bp-asm.h.
57530         (STR): Likewise.
57531         (CHR): Likewise.
57532         (strchr): Likewise.  Do not use BP_SYM.
57533         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
57534         "bp-asm.h".
57535         (PARMS): Do not use macros from bp-asm.h.
57536         (STR): Likewise.
57537         (CHR): Likewise.
57538         (__strchrnul): Likewise.  Do not use BP_SYM.
57539         (strchrnul): Do not use BP_SYM in weak_alias.
57540         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
57541         "bp-asm.h".
57542         (PARMS): Do not use macros from bp-asm.h.
57543         (STOP): Likewise.
57544         (strcspn): Do not use BP_SYM.
57545         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
57546         "bp-asm.h".
57547         (PARMS): Do not use macros from bp-asm.h.
57548         (STR): Likewise.
57549         (STOP): Likewise.
57550         (strpbrk): Likewise.  Do not use BP_SYM.
57551         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
57552         "bp-asm.h".
57553         (PARMS): Do not use macros from bp-asm.h.
57554         (STR): Likewise.
57555         (CHR): Likewise.
57556         (strrchr): Likewise.  Do not use BP_SYM.
57557         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
57558         (PARMS): Do not use macros from bp-asm.h.
57559         (SKIP): Likewise.
57560         (strspn): Do not use BP_SYM.
57561         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
57562         (PARMS): Do not use macros from bp-asm.h.
57563         (STR): Likewise.
57564         (DELIM): Likewise.
57565         (SAVE): Likewise.
57566         (FUNCTION): Likewise.  Do not use BP_SYM.
57567         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
57568         aliases.
57569         (strtok_r): Likewise.
57570         (__GI___strtok_r): Likewise.
57571         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57572         (PARMS): Do not use macros from bp-asm.h.
57573         (S1): Likewise.
57574         (S2): Likewise.
57575         (SIZE): Likewise.
57576         (__mpn_sub_n): Do not use BP_SYM.
57577         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
57578         "bp-asm.h".
57579         (PARMS): Do not use macros from bp-asm.h.
57580         (S1): Likewise.
57581         (SIZE): Likewise.
57582         (__mpn_submul_1): Do not use BP_SYM.
57583         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
57584         <bp-sym.h>.
57585         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
57586         and <bp-asm.h>.
57587         (PARMS): Do not use macros from bp-asm.h.
57588         (FLAGS): Likewise.
57589         (PTID): Likewise.
57590         (TLS): Likewise.
57591         (CTID): Likewise.
57592         (__clone): Do not use BP_SYM.
57593         (clone): Do not use BP_SYM in weak_alias.
57594         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
57595         and <bp-asm.h>.
57596         (PARMS): Do not use macros from bp-asm.h.
57597         (LEN): Likewise.
57598         (__mmap64): Do not use BP_SYM.
57599         (mmap64): Do not use BP_SYM in weak_alias.
57600         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57601         <bp-sym.h> and <bp-asm.h>.
57602         (PARMS): Do not use macros from bp-asm.h.
57603         (__posix_fadvise64_l64): Do not use BP_SYM.
57604         * sysdeps/unix/sysv/linux/i386/semtimedop.S
57605         (PARMS): Do not use macros from bp-asm.h.
57606         (NSOPS): Likewise.
57607         (semtimedop): Do not use BP_SYM.
57608         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
57609         and <bp-asm.h>.
57610
57611 2013-02-21  Allan McRae  <allan@archlinux.org>
57612
57613         * manual/message.texi (Charset conversion in gettext):
57614         Move @end statement to beginning of line.
57615
57616 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57617
57618         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
57619         static.
57620         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
57621         Likewise.
57622
57623         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
57624         (denorm): Likewise.
57625         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
57626         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
57627
57628 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57629
57630         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
57631         tail-call to the resolved function if pltexit isn't needed.
57632
57633 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57634
57635         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
57636         or Y being zero as being unlikely.
57637         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57638         Likewise.
57639
57640 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
57641
57642         * manual/nss.texi (System Databases and Name Service Switch):
57643         Remove frobnicate @pxref.
57644
57645 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57646
57647         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57648         __attribute__ ((unused)) to __attribute__ ((__unused__)).
57649
57650 2013-02-20  Petr Machata  <pmachata@redhat.com>
57651
57652         * elf/elf.h (R_ARM_TARGET1): New macro.
57653         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
57654         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
57655         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
57656         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
57657         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
57658         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
57659         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
57660         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
57661         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
57662         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
57663         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
57664         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
57665         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
57666         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
57667         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
57668         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
57669         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
57670         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
57671         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
57672         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
57673         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
57674         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
57675         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
57676         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
57677         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
57678         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
57679         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
57680         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
57681         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
57682         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
57683         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
57684         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
57685         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
57686         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
57687         (R_ARM_THM_GOT_BREL12): Likewise.
57688         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
57689         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
57690         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
57691         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
57692         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
57693         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
57694         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
57695         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57696         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
57697
57698 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57699
57700         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57701         __attribute_used__ to __attribute__ ((unused)).
57702
57703 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57704
57705         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
57706         powerpc mpa.c.
57707         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
57708         comment formatting.
57709         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
57710
57711 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
57712
57713         [BZ #13550]
57714         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
57715         Remove macro.
57716         (ENTER): Remove both macro definitions.
57717         (LEAVE): Likewise.
57718         (CHECK_BOUNDS_LOW): Likewise.
57719         (CHECK_BOUNDS_HIGH): Likewise.
57720         (CHECK_BOUNDS_BOTH): Likewise.
57721         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
57722         (RETURN_BOUNDED_POINTER): Likewise.
57723         (RETURN_NULL_BOUNDED_POINTER): Likewise.
57724         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
57725         (POP_ERRNO_LOCATION_RETURN): Likewise.
57726         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
57727         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57728         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
57729         macros.
57730         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57731         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
57732         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
57733         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
57734         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
57735         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
57736         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
57737         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
57738         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
57739         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
57740         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
57741         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
57742         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57743         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
57744         removed macros.
57745         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57746         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
57747         macros.
57748         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57749         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
57750         * sysdeps/i386/i586/memset.S (memset): Likewise.
57751         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
57752         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57753         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
57754         macros.
57755         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57756         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
57757         Change uses of L(2) to L(out).
57758         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
57759         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
57760         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
57761         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57762         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
57763         removed macros.
57764         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57765         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
57766         macros.
57767         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57768         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
57769         (RETURN): Do not use macro LEAVE.
57770         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
57771         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
57772         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
57773         * sysdeps/i386/i686/memset.S (memset): Likewise.
57774         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
57775         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
57776         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57777         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
57778         Likewise.
57779         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57780         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
57781         L(1_2) and L(1_3) into L(1).
57782         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57783         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
57784         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57785         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
57786         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57787         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
57788         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
57789         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57790         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
57791         macros.
57792         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
57793         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57794         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
57795         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
57796         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
57797         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57798         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
57799         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
57800         * sysdeps/i386/strcspn.S (strcspn): Likewise.
57801         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
57802         * sysdeps/i386/strrchr.S (strrchr): Likewise.
57803         * sysdeps/i386/strspn.S (strspn): Likewise.
57804         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
57805         conditional code.
57806         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57807         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
57808         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57809         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
57810         L(1_3) into L(1_1).
57811         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
57812         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57813         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
57814         macros.
57815         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57816
57817 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
57818
57819         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
57820         macro.
57821
57822 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57823
57824         * math/atest-exp.c (exp_mpn): Remove ROUND.
57825         * math/atest-exp2.c (exp_mpn): Likewise.
57826         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
57827
57828         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
57829         * stdlib/tst-tls-atexit-lib.c: Likewise.
57830         * stdlib/tst-tls-atexit.c: Likewise.
57831
57832 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57833
57834         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
57835         and __attribute_alloc_size__.
57836
57837 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57838
57839         * include/programs/xmalloc.h: Change __attribute_alloc_size to
57840         __attribute_alloc_size__.
57841         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
57842         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
57843
57844 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57845
57846         * include/programs/xmalloc.h: New file.
57847         * catgets/gencat.c: Include it.
57848         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
57849         * elf/pldd.c: Likewise.
57850         * iconv/iconv_charmap.c: Likewise.
57851         * iconv/iconvconfig.c: Likewise.
57852         * iconv/strtab.c: Likewise.
57853         * locale/programs/locale.c: Likewise.
57854         * locale/programs/localedef.h: Likewise.
57855         * locale/programs/simple-hash.c: Likewise.
57856         * nscd/nscd.h: Likewise.
57857         * nss/makedb.c: Likewise.
57858         * sysdeps/generic/ldconfig.h: Likewise.
57859
57860 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57861
57862         * Versions.def: Add GLIBC_2.18.
57863         * include/link.h (struct link_map): New member l_tls_dtor_count.
57864         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
57865         (__call_tls_dtors): Likewise.
57866         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
57867         __cxa_thread_atexit_impl.
57868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
57869         Likewise.
57870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
57871         Likewise.
57872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
57873         Likewise.
57874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
57875         Likewise.
57876         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
57877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
57878         Likewise.
57879         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
57880         Likewise.
57881         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
57882         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
57883         Likewise.
57884         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
57885         (tests): Add test case tst-tls-atexit.
57886         (modules-names): Add shared library for tst-tls-atexit.
57887         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
57888         (GLIBC_PRIVATE): Add __call_tls_dtors.
57889         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
57890         for libstdc++.
57891         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
57892         * stdlib/tst-tls-atexit.c: New test case.
57893         * stdlib/tst-tls-atexit-lib.c: New test case.
57894
57895         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
57896
57897         * elf/Versions (ld): Add _dl_find_dso_for_object.
57898         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
57899         * elf/dl-open.c (_dl_find_dso_for_object): New function.
57900         (dl_open_worker): Use _dl_find_dso_for_object.
57901         * elf/dl-sym.c (do_sym): Likewise.
57902         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
57903
57904 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57905
57906         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
57907         Syntactic changes only.
57908         (_dl_runtime_profile): Do a tail-call to the resolved function.
57909
57910 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
57911
57912         [BZ #13550]
57913         * sysdeps/x86_64/bp-asm.h: Remove file.
57914         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
57915         <bp-sym.h> and <bp-asm.h>.
57916         (__clone): Do not use BP_SYM.
57917         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
57918         <bp-sym.h> and <bp-asm.h>.
57919         * sysdeps/unix/x86_64/sysdep.S: Likewise.
57920         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
57921         "bp-asm.h".
57922         (_setjmp): Do not use BP_SYM.
57923         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
57924         "bp-asm.h".
57925         (setjmp): Do not use BP_SYM.
57926         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
57927         libc_hidden_def.
57928         (mempcpy): Do not use BP_SYM in weak_alias.
57929         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
57930         "bp-asm.h".
57931         (strchr): Do not use BP_SYM.
57932         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
57933         "bp-asm.h".
57934         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
57935         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
57936         (_start): Do not use BP_SYM.
57937         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
57938         "bp-asm.h".
57939         (strcat): Do not use BP_SYM.
57940         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
57941         "bp-asm.h".
57942         (STRCMP): Do not use BP_SYM.
57943         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
57944         "bp-asm.h".
57945         (STRCPY): Do not use BP_SYM.
57946         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
57947         "bp-asm.h".
57948         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
57949         "bp-asm.h".
57950         (FUNCTION): Do not use BP_SYM.
57951         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
57952         weak_alias.
57953         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
57954
57955 2013-02-17  Andreas Jaeger  <aj@suse.de>
57956
57957         * time/Versions: Sort entries.
57958         * string/Versions: Likewise.
57959         * resolv/Versions: Likewise.
57960         * posix/Versions: Likewise.
57961         * iconv/Versions: Likewise.
57962         * elf/Versions: Likewise.
57963         * wcsmbs/Versions: Likewise.
57964
57965 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57966
57967         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
57968         loop termination condition.
57969
57970         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
57971         variable to calculate EZ.
57972         (__sqr): Likewise.
57973
57974         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
57975         the lower precision input.
57976
57977 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
57978
57979         [BZ #13550]
57980         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
57981         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
57982         (run-via-rtld-prefix): Do not handle %-bp tests.
57983         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
57984         (all-object-suffixes): Remove .ob.
57985         (bppfx): Remove variable.
57986         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
57987         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
57988         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
57989         [$(build-bounded) = yes] (libtype.ob): Likewise.
57990         * Makerules (elide-routines.ob): Remove variable.
57991         (do-tests-clean): Do not handle *-bp.out.
57992         (common-mostlyclean): Do not handle *-bp and *-bp.out.
57993         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
57994         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
57995         (tests): Do not include $(tests-bp.out).
57996         (xtests): Do not include $(xtests-bp.out).
57997         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
57998         [$(build-bounded) = yes] ($(addprefix
57999         $(objpfx),$(binaries-bounded))): Remove rule.
58000         ($(objpfx)%-bp.out): Remove rule.
58001         * config.make.in (build-bounded): Remove variable.
58002         * crypt/Makefile [$(build-bounded) = yes]
58003         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
58004         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
58005         append to variable.
58006         [$(build-bounded) = yes] (install-lib): Likewise.
58007         [$(build-bounded) = yes] (generated): Likewise.
58008         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
58009         Remove rule.
58010         * intl/Makefile [$(build-bounded) = yes]
58011         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
58012         * math/Makefile [$(build-bounded) = yes]
58013         ($(tests:%=$(objpfx)%-bp): Likewise.
58014         * misc/Makefile [$(build-bounded) = yes]
58015         ($(objpfx)tst-tsearch-bp): Likewise.
58016         * nptl/Makeconfig (bounded-thread-library): Remove variable.
58017         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
58018         Remove dependency.
58019         * string/Makefile (o-objects.ob): Remove variable.
58020         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
58021         (CFLAGS-.ob): Remove variable.
58022         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
58023         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
58024         both definitions of variable.
58025         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
58026         (ASFLAGS-.ob): Remove variable.
58027
58028 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
58029
58030         [BZ #13550]
58031         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
58032         Remove __BOUNDED_POINTERS__ from condition.
58033         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
58034         * string/bits/string2.h [!__NO_STRING_INLINES &&
58035         !__BOUNDED_POINTERS__]: Likewise.
58036         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
58037         Likewise.
58038         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
58039         Remove conditional code.
58040         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
58041         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
58042         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
58043         condition.
58044
58045         [BZ #13550]
58046         * csu/libc-start.c: Do not include <bp-sym.h>.
58047         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
58048         * elf/dl-open.c: Do not include <bp-sym.h>.
58049         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
58050         * math/fegetenv.c: Do not include <bp-sym.h>.
58051         (fegetenv): Do not use BP_SYM in versioned symbols.
58052         * nptl/sysdeps/pthread/bits/libc-lockP.h
58053         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
58054         <bp-sym.h>.
58055         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58056         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
58057         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58058         (__pthread_mutex_destroy): Likewise.
58059         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58060         (__pthread_mutex_lock): Likewise.
58061         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58062         (__pthread_mutex_trylock): Likewise.
58063         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58064         (__pthread_mutex_unlock): Likewise.
58065         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58066         (__pthread_mutexattr_init): Likewise.
58067         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58068         (__pthread_mutexattr_destroy): Likewise.
58069         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58070         (__pthread_mutexattr_settype): Likewise.
58071         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58072         (__pthread_rwlock_init): Likewise.
58073         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58074         (__pthread_rwlock_destroy): Likewise.
58075         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58076         (__pthread_rwlock_rdlock): Likewise.
58077         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58078         (__pthread_rwlock_tryrdlock): Likewise.
58079         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58080         (__pthread_rwlock_wrlock): Likewise.
58081         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58082         (__pthread_rwlock_trywrlock): Likewise.
58083         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58084         (__pthread_rwlock_unlock): Likewise.
58085         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58086         (__pthread_key_create): Likewise.
58087         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58088         (__pthread_setspecific): Likewise.
58089         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58090         (__pthread_getspecific): Likewise.
58091         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
58092         Likewise.
58093         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58094         (_pthread_cleanup_push_defer): Likewise.
58095         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58096         (_pthread_cleanup_pop_restore): Likewise.
58097         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58098         (pthread_setcancelstate): Likewise.
58099         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
58100         <bp-sym.h>.
58101         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
58102         (memchr): Do not use BP_SYM in weak_alias.
58103         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
58104         (fegetenv): Do not use BP_SYM in versioned symbols.
58105         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
58106         (fesetenv): Do not use BP_SYM in versioned symbols.
58107         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58108         (feupdateenv): Do not use BP_SYM in versioned symbols.
58109         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58110         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58111         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
58112         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
58113         (open64): Do not use BP_SYM in weak_alias.
58114         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
58115         (fegetenv): Do not use BP_SYM in versioned symbols.
58116         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
58117         (fesetenv): Do not use BP_SYM in versioned symbols.
58118         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58119         (feupdateenv): Do not use BP_SYM in versioned symbols.
58120         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
58121         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
58122         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
58123         (feraiseexcept): Do not use BP_SYM in versioned symbols.
58124         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58125         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58126         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
58127         <bp-sym.h>.
58128         (__libc_start_main): Do not use BP_SYM.
58129
58130 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58131
58132         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
58133         redundant return line.
58134         (norm): Likewise.
58135         (denorm): Likewise.
58136         (dbl_mp): Likewise.
58137         (sub_magnitudes): Likewise.
58138         (__add): Likewise.
58139         (__sub): Likewise.
58140         (__mul): Likewise.
58141         (__inv): Likewise.
58142         (__dvd): Likewise.
58143         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
58144         (norm): Likewise.
58145         (denorm): Likewise.
58146         (dbl_mp): Likewise.
58147         (sub_magnitudes): Likewise.
58148         (__add): Likewise.
58149         (__sub): Likewise.
58150         (__mul): Likewise.
58151         (__inv): Likewise.
58152         (__dvd): Likewise.
58153
58154         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
58155         instead of __mul.
58156         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
58157         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
58158         (cc32): Likewise.
58159
58160         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
58161         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
58162         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
58163         of __mul for squares.
58164         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
58165         function
58166         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
58167         Likewise.
58168         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
58169         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
58170
58171 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
58172
58173         [BZ #13550]
58174         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
58175         code.
58176         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
58177         prototype or function definition.  Rename ubp_* variables and
58178         parameters.  Remove argv definitions conditional on
58179         [__BOUNDED_POINTERS__].
58180         * debug/backtrace.c (__backtrace): Do not use __unbounded.
58181         * elf/dl-runtime.c (_dl_fixup): Likewise.
58182         * include/set-hooks.h (RUN_HOOK): Likewise.
58183         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
58184         definition.
58185         * string/strcpy.c (strcpy): Do not use __unbounded.
58186         * sysdeps/generic/frame.h (struct layout): Likewise.
58187         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
58188         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
58189         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
58190         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
58191         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
58192         (__backtrace): Likewise.
58193         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
58194         use __ptrvalue.
58195         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
58196         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
58197         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
58198         Likewise.
58199         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
58200         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
58201         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
58202         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58203         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
58204         Do not use __unbounded.
58205         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
58206         Rename __unboundedrlimits parameter to rlimits in prototype.
58207         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
58208         Do not use __unbounded.
58209         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
58210         not use __ptrvalue.
58211         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58212         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
58213         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58214         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
58215         __ptrvalue or __unbounded.
58216         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
58217         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
58218         use __unbounded.
58219         (__new_msgctl): Do not use __ptrvalue.
58220         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
58221         __unbounded.
58222         (__libc_msgrcv): Do not use __ptrvalue.
58223         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
58224         startup_info): Do not use __unbounded.
58225         (__libc_start_main): Likewise.  Rename ubp_* variables and
58226         parameters.  Remove argv definitions conditional on
58227         [__BOUNDED_POINTERS__].
58228         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
58229         __ptrvalue.
58230         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
58231         use __unbounded.
58232         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
58233         or __ptrvalue.
58234         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
58235         use __unbounded.
58236         (__new_shmctl): Do not use __ptrvalue.
58237         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
58238         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
58239         Likewise.
58240         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
58241         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
58242         (__libc_sigaction): Likewise.
58243         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
58244         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
58245         Likewise.
58246         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58247
58248 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
58249
58250         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
58251
58252         * string/mempcpy.c: Implement by calling memcpy.
58253
58254 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58255
58256         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
58257
58258         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
58259         evaluation.
58260
58261         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
58262         values in the mantissa.
58263
58264         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
58265         minimize writes to Z.
58266         (sub_magnitudes): Simplify code a bit.
58267
58268 2013-02-12  Roland McGrath  <roland@hack.frob.com>
58269
58270         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
58271         from the message.  The linker prefixes all warnings with that already.
58272
58273 2013-02-12  Andreas Schwab  <schwab@suse.de>
58274
58275         [BZ #15078]
58276         * posix/regexec.c (extend_buffers): Add parameter min_len.
58277         (check_matching): Pass minimum needed length.
58278         (clean_state_log_if_needed): Likewise.
58279         (get_subexp): Likewise.
58280         * posix/Makefile (tests): Add bug-regex34.
58281         (bug-regex34-ENV): Define.
58282         * posix/bug-regex34.c: New file.
58283
58284         [BZ #11561]
58285         * posix/regcomp.c (parse_bracket_exp): When looking up collating
58286         elements compare against the byte sequence of it, not its name.
58287         * posix/Makefile (tests): Add bug-regex35.
58288         (bug-regex35-ENV): Define.
58289         * posix/bug-regex35.c: New file.
58290
58291 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58292
58293         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
58294         comment.
58295         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
58296         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
58297         (CHECK_EOL): Add undef.
58298
58299 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
58300
58301         * bits/stdlib-bsearch.h: New file.
58302         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
58303         * stdlib/stdlib.h: Likewise.
58304
58305 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58306
58307         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
58308         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
58309         declaration.
58310         * manual/search.texi (Array Search Function): Add missing const in
58311         lfind prototype.
58312         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
58313         declaration to use rlim_t.
58314         (Basic Scheduling Functions): Remove erroneous const from
58315         sched_getparam prototype.  Remove erroneous * from
58316         sched_get_priority_max and sched_get_priority_min prototypes.
58317         (Resource Usage): Fix summary @comment on vtimes to refer to
58318         sys/vtimes.h rather than vtimes.h.
58319         Add missing *s in vtimes prototype.
58320         (Limits on Resources): Fix ulimit prototype to return long int.
58321         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
58322         prototypes to use long int rather than double.
58323         (BSD Random): Fix initstate and setstate to use char *, not void *.
58324         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
58325         prototype to make second argument 'struct aiocb64 *const[]'.
58326         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
58327         (Status of AIO Operations): Remove erroneous const in aio_return and
58328         aio_return64 prototypes.
58329         (Synchronizing I/O): Fix sync prototype to return void.
58330         * manual/startup.texi (Suboptions): Remove an erroneous const in
58331         getsubopt prototype.
58332         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
58333         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
58334         use size_t rather than int.
58335         (Scanning All Users): Likewise for getpwent_r.
58336         (Setting Groups): Add missing const to setgroups prototype.
58337         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
58338         * manual/socket.texi (Host Names): Fix gethostbyaddr and
58339         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
58340         'const void *' rather than 'const char *'.
58341         (Host Address Functions): Likewise for inet_ntop.
58342         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
58343         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
58344         ssize_t for return value.
58345         (Sending Data): Likewise for send, sendto, sendmsg.
58346         (Socket Option Functions): Add a missing const in setsockopt prototype.
58347         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
58348         use wchar_t for the argument.
58349         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
58350         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
58351         take no arguments.
58352         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
58353         double/float/long double for second argument.
58354         Fix return types of significand, significandf, significandl.
58355         * manual/filesys.texi (Setting Permissions): Use mode_t for second
58356         argument in fchmod prototype.
58357         (File Owner): Use uid_t and gid_t in fchown prototype.
58358         (File Times): Add const to utimes, futimes, and lutimes prototypes.
58359         (Making Special Files): Use mode_t and dev_t in mknod prototype.
58360         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
58361         use 'const struct dirent **' as argument types to CMP function pointer
58362         argument.
58363         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
58364         (File Times): Fix summary magic @comment for struct utimbuf and utime
58365         to refer to utime.h, not time.h.
58366         * manual/string.texi (Argz Functions): Add missing const in
58367         argz_extract and argz_next prototypes.
58368         (Finding Tokens in a String): Likewise for basename.
58369         (String/Array Comparison): Fix typo in wcscasecmp prototype.
58370         (Copying and Concatenation): Fix typo in wmemmove prototype.
58371         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
58372         (Signal Stack): Remove erroneous const in sigstack prototype.
58373         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
58374         prototype.
58375         (Simple Calendar Time): Likewise for stime.
58376         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
58377         prototype.
58378         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
58379         say sys/sysctl.h instead.
58380         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
58381         and vsyslog prototypes.
58382
58383 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58384
58385         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
58386         Remove.
58387
58388 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58389
58390         * misc/sys/mman.h: Fix typo in mremap comment.
58391
58392 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58393
58394         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
58395         the '\0' terminator.
58396
58397 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58398
58399         [BZ #13550]
58400         * debug/segfault.c: Don't include <bp-checks.h>.
58401         * sysdeps/generic/bp-checks.h: Remove file.
58402         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
58403         (__GETDENTS): Don't use CHECK_N.
58404         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
58405         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
58406         (__getgroups): Don't use CHECK_N.
58407         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
58408         (setgroups): Don't use CHECK_N.
58409         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
58410         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
58411         (__libc_msgrcv): Don't use CHECK_N.
58412         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
58413         (__libc_msgsnd): Don't use CHECK_N.
58414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
58415         <bp-checks.h>.
58416         (__libc_pread): Don't use CHECK_N.
58417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
58418         include <bp-checks.h>.
58419         (__libc_pread64): Don't use CHECK_N.
58420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
58421         include <bp-checks.h>.
58422         (__libc_pwrite): Don't use CHECK_N.
58423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
58424         include <bp-checks.h>.
58425         (__libc_pwrite64): Don't use CHECK_N.
58426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
58427         <bp-checks.h>.
58428         (__libc_pread): Don't use CHECK_N.
58429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
58430         include <bp-checks.h>.
58431         (__libc_pread64): Don't use CHECK_N.
58432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
58433         include <bp-checks.h>.
58434         (__libc_pwrite): Don't use CHECK_N.
58435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
58436         include <bp-checks.h>.
58437         (__libc_pwrite64): Don't use CHECK_N.
58438         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
58439         (do_pread): Don't use CHECK_N.
58440         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
58441         (do_pread64): Don't use CHECK_N.
58442         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
58443         (do_pwrite): Don't use CHECK_N.
58444         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
58445         (do_pwrite64): Don't use CHECK_N.
58446         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
58447         (__libc_readv): Don't use CHECK_N.
58448         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
58449         (semop): Don't use CHECK_N.
58450         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
58451         <bp-checks.h>.
58452         (semtimedop): Don't use CHECK_N.
58453         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
58454         (__libc_pread): Don't use CHECK_N.
58455         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
58456         <bp-checks.h>.
58457         (__libc_pread64): Don't use CHECK_N.
58458         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
58459         <bp-checks.h>.
58460         (__libc_pwrite): Don't use CHECK_N.
58461         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
58462         <bp-checks.h>.
58463         (__libc_pwrite64): Don't use CHECK_N.
58464         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
58465         <bp-checks.h>.
58466         (__libc_msgrcv): Don't use CHECK_N.
58467         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
58468         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
58469         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
58470         (__libc_writev): Don't use CHECK_N.
58471
58472 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58473
58474         * string/strcpy.c: Removed unused variable.
58475
58476         * Makeconfig (+sysdep-includes): Define with := rather than =.
58477         Use an existing include/ subdir of each sysdeps dir before it.
58478
58479 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58480
58481         * nscd/connection.c (register_traced_file): Comment function.
58482         [HAVE_INOTIFY] (union __inev): Define.
58483         [HAVE_INOTIFY] (inotify_check_files): New function.
58484         [HAVE_INOTIFY] (clear_db_cache): Likewise.
58485         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
58486         clear_db_cache.
58487         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
58488
58489 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58490
58491         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
58492         loaded if not already and that a failure is permanent.
58493
58494 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58495
58496         [BZ #15006]
58497         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
58498         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
58499
58500 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58501
58502         [BZ #13550]
58503         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
58504         (CHECK_1_NULL_OK): Likewise.
58505         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
58506         (__fxstat): Do not use CHECK_1.
58507         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
58508         <bp-checks.h>.
58509         (___fxstat64): Do not use CHECK_1.
58510         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
58511         <bp-checks.h>.
58512         (__fxstatat): Do not use CHECK_1.
58513         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
58514         <bp-checks.h>.
58515         (__fxstatat64): Do not use CHECK_1.
58516         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
58517         <bp-checks.h>.
58518         (__fxstat): Do not use CHECK_1.
58519         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
58520         <bp-checks.h>.
58521         (__fxstatat): Do not use CHECK_1.
58522         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
58523         <bp-checks.h>.
58524         (__getresgid): Do not use CHECK_1.
58525         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
58526         <bp-checks.h>.
58527         (__getresuid): Do not use CHECK_1.
58528         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
58529         <bp-checks.h>.
58530         (__lxstat): Do not use CHECK_1.
58531         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
58532         <bp-checks.h>.
58533         (__old_msgctl): Do not use CHECK_1.
58534         (__new_msgctl): Likewise.
58535         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
58536         <bp-checks.h>.
58537         (__new_setrlimit): Do not use CHECK_1.
58538         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
58539         <bp-checks.h>.
58540         (__old_shmctl): Do not use CHECK_1.
58541         (__new_shmctl): Likewise.
58542         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
58543         <bp-checks.h>.
58544         (__xstat): Do not use CHECK_1.
58545         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
58546         (__lxstat): Do not use CHECK_1.
58547         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
58548         <bp-checks.h>.
58549         (___lxstat64): Do not use CHECK_1.
58550         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
58551         (__old_msgctl): Do not use CHECK_1.
58552         (__new_msgctl): Likewise.
58553         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
58554         <bp-checks.h>.
58555         (__gettimeofday): Do not use CHECK_1.
58556         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
58557         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
58558         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
58559         <bp-checks.h>.
58560         (__gettimeofday): Do not use CHECK_1.
58561         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
58562         (__old_shmctl): Do not use CHECK_1_NULL_OK.
58563         (__new_shmctl): Do not use CHECK_1.
58564         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
58565         <bp-checks.h>.
58566         (do_sigtimedwait): Do not use CHECK_1.
58567         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
58568         <bp-checks.h>.
58569         (do_sigwaitinfo): Do not use CHECK_1.
58570         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
58571         <bp-checks.h>.
58572         (msgctl): Do not use CHECK_1.
58573         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
58574         <bp-checks.h>.
58575         (shmctl): Do not use CHECK_1.
58576         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
58577         (ustat): Do not use CHECK_1.
58578         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
58579         <bp-checks.h>.
58580         (__fxstat): Do not use CHECK_1.
58581         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
58582         <bp-checks.h>.
58583         (__fxstatat): Do not use CHECK_1.
58584         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
58585         <bp-checks.h>.
58586         (__lxstat): Do not use CHECK_1.
58587         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
58588         <bp-checks.h>.
58589         (__xstat): Do not use CHECK_1.
58590         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
58591         (__xstat): Do not use CHECK_1.
58592         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
58593         (___xstat64): Do not use CHECK_1.
58594
58595         [BZ #13550]
58596         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
58597         definitions.
58598         (CHECK_BOUNDS_HIGH): Likewise.
58599         * string/strcpy.c: Do not include <bp-checks.h>.
58600         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
58601
58602 2013-02-07  Roland McGrath  <roland@hack.frob.com>
58603
58604         * nscd/nscd-client.h (__nscd_drop_map_ref):
58605         Add __attribute__ ((unused)).
58606         * nis/nss-nisplus.h (niserr2nss): Likewise.
58607
58608         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
58609         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
58610
58611         * csu/libc-tls.c (init_static_tls, init_slotinfo):
58612         Remove inline keyword.
58613         * include/rounding-mode.h (round_away): Likewise.
58614         * libio/wfileops.c (adjust_wide_data): Likewise.
58615         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
58616         (__m128i_strloadu_tolower): Likewise.
58617         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
58618         (__m128i_strloadu_tolower): Likewise.
58619         * time/mktime.c (ydhms_diff): Likewise.
58620         * locale/elem-hash.h (elem_hash): Likewise.
58621         * locale/setlocale.c (setdata): Likewise.
58622         * posix/regex_internal.h (re_string_char_size_at): Likewise.
58623         (re_string_wchar_at): Likewise.
58624         (bitset_not, bitset_merge, bitset_mask): Likewise.
58625         [!(__GNUC__ > 3)] (inline): Remove macro.
58626         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
58627         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
58628         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
58629         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
58630         * string/memcmp.c (memcmp_bytes): Likewise.
58631         * locale/programs/locarchive.c (compute_hashval): Likewise.
58632         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
58633         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
58634         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
58635         * nss/getent.c (print_rpc, print_protocols): Likewise.
58636         (print_passwd, print_group, print_aliases): Likewise.
58637         * nis/nss-nisplus.h (niserr2nss): Likewise.
58638         * nscd/connections.c (restart_p): Likewise.
58639         Change return type to bool.
58640
58641 2013-02-05  Roland McGrath  <roland@hack.frob.com>
58642
58643         * Makeconfig (all-Depend-files): Add existing
58644         $(sorted-subdirs:=/Depend) files.
58645         (all-subdirs): Remove nss.
58646         * sysdeps/unix/inet/Subdirs: Add it here instead.
58647         * hesiod/Depend: New file.
58648
58649         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
58650         instead of calling alloca.
58651
58652         * io/lseek.c (__lseek): Rename to __libc_lseek.
58653         Define __lseek as an alias.
58654
58655         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
58656
58657 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
58658
58659         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
58660         else clause and remove check for non-standard endianness.
58661
58662 2013-02-04  David S. Miller  <davem@davemloft.net>
58663
58664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58665
58666 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
58667
58668         [BZ #13550]
58669         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
58670         (__ubp_memchr): Remove prototype.
58671         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
58672         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58673         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
58674         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58675         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
58676         Remove alias.
58677         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
58678         (__ubp_memchr): Likewise.
58679         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
58680         (__ubp_memchr): Likewise.
58681         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
58682         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
58683         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
58684         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
58685         CHECK_STRING.
58686         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
58687         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
58688         (__getcwd): Do not use CHECK_STRING.
58689         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
58690         <bp-checks.h>.
58691         (__real_chown): Do not use CHECK_STRING.
58692         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
58693         <bp-checks.h>.
58694         (fchownat): Do not use CHECK_STRING.
58695         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
58696         CHECK_STRING.
58697         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
58698         <bp-checks.h>.
58699         (__lchown): Do not use CHECK_STRING.
58700         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58701         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58702         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58703         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
58704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
58705         include <bp-checks.h>.
58706         (truncate64): Do not use CHECK_STRING.
58707         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
58708         <bp-checks.h>.
58709         (__real_chown): Do not use CHECK_STRING.
58710         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
58711         <bp-checks.h>.
58712         (__lchown): Do not use CHECK_STRING.
58713         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
58714         <bp-checks.h>.
58715         (__chown): Do not use CHECK_STRING.
58716         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
58717         <bp-checks.h>.
58718         (truncate64): Do not use CHECK_STRING.
58719         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
58720         Likewise.
58721         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
58722         (__xmknod): Do not use CHECK_STRING.
58723         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
58724         <bp-checks.h>.
58725         (__xmknodat): Do not use CHECK_STRING.
58726         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58727         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
58728
58729 2013-02-04  Andreas Schwab  <schwab@suse.de>
58730
58731         [BZ #14142]
58732         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
58733         * include/netdb.h: Likewise for h_errno.
58734         * elf/tst-stackguard1.c: Include <tls.h>.
58735
58736 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
58737
58738         * elf/link.h (struct link_map): Extend the l_addr comment.
58739         * include/link.h (struct link_map): Likewise.
58740
58741 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
58742
58743         [BZ #13550]
58744         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
58745         (BOUNDED_1): Remove macro.
58746         * debug/backtrace.c: Don't include <bp-checks.h>.
58747         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
58748         (__backtrace): Likewise.
58749         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
58750         <bp-checks.h>.
58751         (__backtrace): Don't use BOUNDED_1.
58752         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
58753         <bp-checks.h>.
58754         (__backtrace): Don't use BOUNDED_1.
58755         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
58756         (__backtrace): Don't use BOUNDED_1.
58757         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
58758         (shmat): Don't use BOUNDED_N.
58759
58760 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
58761
58762         [BZ #13550]
58763         * sysdeps/generic/bp-start.h: Remove file.
58764         * csu/libc-start.c: Don't include <bp-start.h>.
58765         (LIBC_START_MAIN): Set up __environ directly instead of using
58766         INIT_ARGV_and_ENVIRON.
58767         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
58768         <bp-start.h>.
58769
58770         [BZ #13550]
58771         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
58772         definitions.
58773         (CHECK_FCNTL): Likewise.
58774         (CHECK_N_PAGES): Likewise.
58775
58776         [BZ #13550]
58777         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
58778         definitions.
58779         (CHECK_SIGSET_NULL_OK): Likewise.
58780         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
58781         <bp-checks.h>.
58782         (sigpending): Don't use CHECK_SIGSET.
58783         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
58784         <bp-checks.h>.
58785         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58786         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
58787         <bp-checks.h>.
58788         (do_sigsuspend): Don't use CHECK_SIGSET.
58789         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
58790         use CHECK_SIGSET.
58791         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
58792         (do_sigwait): Don't use CHECK_SIGSET.
58793         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
58794         use CHECK_SIGSET.
58795         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
58796         include <bp-checks.h>.
58797         (sigpending): Don't use CHECK_SIGSET.
58798         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
58799         include <bp-checks.h>.
58800         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58801         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
58802         <bp-checks.h>.
58803         (sigpending): Don't use CHECK_SIGSET.
58804         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
58805         <bp-checks.h>.
58806         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58807
58808         [BZ #13550]
58809         * sysdeps/generic/bp-semctl.h: Remove file.
58810         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
58811         <bp-checks.h> and <bp-semctl.h>.
58812         (__old_semctl): Don't use CHECK_SEMCTL.
58813         (__new_semctl): Likewise.
58814         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
58815         and <bp-semctl.h>.
58816         (__old_semctl): Don't use CHECK_SEMCTL.
58817         (__new_semctl): Likewise.
58818         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
58819         <bp-checks.h> and <bp-semctl.h>.
58820         (__old_semctl): Don't use CHECK_SEMCTL.
58821         (__new_semctl): Likewise.
58822         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
58823         <bp-checks.h> and <bp-semctl.h>.
58824         (semctl): Don't use CHECK_SEMCTL.
58825
58826         [BZ #13550]
58827         * Makerules (elide-bp-thunks): Remove variable.
58828         (elide-routines.oS): Don't use $(elide-bp-thunks).
58829         (elide-routines.os): Likewise.
58830         (elide-routines.o): Likewise.
58831         (elide-routines.op): Likewise.
58832         (elide-routines.og): Likewise.
58833         (objects): Don't use $(bp-thunks).
58834         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
58835         include.
58836         (common-generated): Do not add s-proto-bp.d.
58837         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
58838         (int): Likewise.
58839         (typ): Likewise.
58840         Do not generate makefile rules for bounded-pointer thunks.
58841         * sysdeps/generic/bp-thunks.h: Remove file.
58842         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
58843         * sysdeps/unix/s-proto-bp.S: Likewise.
58844
58845         [BZ #15062]
58846         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
58847         parts of result separately when argument is not close to line from
58848         -i to i and one part of argument is small.
58849         * math/k_casinhf.c (__kernel_casinhf): Likewise.
58850         * math/k_casinhl.c (__kernel_casinhl): Likewise.
58851         * math/libm-test.inc (cacos_test): Add more tests.
58852         (casin_test): Likewise.
58853         (casinh_test): Likewise.
58854         * sysdeps/i386/fpu/libm-test-ulps: Update.
58855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58856
58857 2013-01-31  David S. Miller  <davem@davemloft.net>
58858
58859         * po/de.po: Update from translation team.
58860
58861 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
58862
58863         * time/tzfile.c: Include stdint.h for SIZE_MAX.
58864
58865 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
58866
58867         * configure.in (_AC_PROG_CC_C89): New definition.
58868         * configure: Regenerate.
58869
58870         * configure.in (AC_PROG_CPP): New definition.
58871         * configure: Regenerate.
58872
58873 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58874
58875         * debug/tst-backtrace.h: New file.
58876         * debug/tst-backtrace2.c: Include tst-backtrace.h.
58877         (ret): Remove variable.
58878         (x): Likewise.
58879         (FAIL): Remove macro.
58880         (NO_INLINE): Likewise.
58881         (fn1): Use match function instead of strstr.
58882         * debug/tst-backtrace3.c: Include tst-backtrace.h.
58883         (ret): Remove variable.
58884         (x): Likewise.
58885         (FAIL): Remove macro.
58886         (NO_INLINE): Likewise.
58887         (fn): Use match function instead of strstr.
58888         * debug/tst-backtrace4.c: Include tst-backtrace.h.
58889         (ret): Remove variable.
58890         (x): Likewise.
58891         (FAIL): Remove macro.
58892         (NO_INLINE): Likewise.
58893         (handle_signal): Use match function instead of strstr.
58894         * debug/tst-backtrace5.c: Include tst-backtrace.h.
58895         (ret): Remove variable.
58896         (x): Likewise.
58897         (FAIL): Remove macro.
58898         (NO_INLINE): Likewise.
58899         (handle_signal): Use match function instead of strstr.
58900
58901 2013-01-23  Roland McGrath  <roland@hack.frob.com>
58902
58903         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
58904
58905 2013-01-23  David S. Miller  <davem@davemloft.net>
58906
58907         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
58908         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
58909         argument of CAS if possible.
58910         * sysdeps/sparc/sparc64/bits/atomic.h
58911         (__arch_compare_and_exchange_val_32_acq): Likewise.
58912         (__arch_compare_and_exchange_val_64_acq): Likewise.
58913
58914 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
58915
58916         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
58917         * sysdeps/posix/ulimit.c: ... this.
58918         Include <limits.h>.
58919         * sysdeps/unix/bsd/ulimit.c: Remove file.
58920
58921 2013-01-23  Adam Conrad  <adconrad@0c3.net>
58922
58923         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
58924         (LDFLAGS-tst-array5): Likewise.
58925
58926 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58927
58928         [BZ #15036]
58929         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
58930         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
58931         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
58932         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
58933
58934 2013-01-21  David S. Miller  <davem@davemloft.net>
58935
58936         * sysdeps/sparc/backtrace.c: New file.
58937         * sysdeps/sparc/sparc32/backtrace.h: New file.
58938         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
58939         * sysdeps/sparc/sparc64/backtrace.h: New file.
58940         * sysdeps/sparc/sparc64/backtrace.c: Delete.
58941         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
58942         -funwind-tables.
58943
58944 2013-01-21  Andreas Schwab  <schwab@suse.de>
58945
58946         [BZ #15020]
58947         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
58948         closed its stdout.
58949
58950 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
58951
58952         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
58953         "mpa2.h".
58954         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58955
58956 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
58957             Mark Mitchell  <mark@codesourcery.com>
58958             Tom de Vries  <tom@codesourcery.com>
58959             Paul Pluzhnikov  <ppluzhnikov@google.com>
58960
58961         * debug/tst-backtrace2.c: New file.
58962         * debug/tst-backtrace3.c: Likewise.
58963         * debug/tst-backtrace4.c: Likewise.
58964         * debug/tst-backtrace5.c: Likewise.
58965         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
58966         (CFLAGS-tst-backtrace3.c): Likewise.
58967         (CFLAGS-tst-backtrace4.c): Likewise.
58968         (CFLAGS-tst-backtrace5.c): Likewise.
58969         (LDFLAGS-tst-backtrace2): Likewise.
58970         (LDFLAGS-tst-backtrace3): Likewise.
58971         (LDFLAGS-tst-backtrace4): Likewise.
58972         (LDFLAGS-tst-backtrace5): Likewise.
58973         (tests): Add new tests tst-backtrace2, tst-backtrace3,
58974         tst-backtrace4 and tst-backtrace5.
58975
58976 2013-01-18  Anton Blanchard  <anton@samba.org>
58977             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58978
58979         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
58980         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
58981         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
58982         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
58983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
58984         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
58985         "+r" and remove output regs list as redundant.  Add explicit inline
58986         asm to specify register of return val to work around compiler codegen
58987         bug.  Remove (int) cast on return value.  Add return type parameter to
58988         use in macro so that this macro does not truncate return value for
58989         64-bit values.
58990         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
58991         pass to INTERNAL_VSYSCALL_NCS.
58992         (INLINE_VSYSCALL): Add 'long int' as return type to
58993         INTERNAL_VSYSCALL_NCS macro invocation.
58994         (INTERNAL_VSYSCALL): Add 'long int' as return type to
58995         INTERNAL_VSYSCALL_NCS macro invocation.
58996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
58997
58998 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58999
59000         [BZ #14496]
59001         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
59002         Fix application of SIMD FP exception mask.
59003
59004         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
59005         mp_no from a power of two.
59006         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
59007         __mpexp_twomm1.  Use __pow_mp.
59008
59009         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
59010         multiplication.
59011
59012 2013-01-17  David S. Miller  <davem@davemloft.net>
59013
59014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59015
59016 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59017
59018         [BZ #15023]
59019         * include/complex.h: Condition contents on [!_COMPLEX_H].
59020         (__kernel_casinhf): New prototype.
59021         (__kernel_casinh): Likewise.
59022         (__kernel_casinhl): Likewise.
59023         * math/Makefile (libm_calls): Add k_casinh.
59024         * math/k_casinh.c: New file.
59025         * math/k_casinhf.c: Likewise.
59026         * math/k_casinhl.c: Likewise.
59027         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
59028         finite nonzero arguments.
59029         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
59030         finite nonzero arguments.
59031         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
59032         finite nonzero arguments.
59033         * math/s_casinh.c: Do not include <float.h>.
59034         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
59035         * math/s_casinhf.c: Do not include <float.h>.
59036         (__casinhf): Move code for finite nonzero arguments to
59037         k_casinhf.c.
59038         * math/s_casinhl.c: Do not include <float.h>.
59039         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
59040         redefine.
59041         (__casinhl): Move code for finite nonzero arguments to
59042         k_casinhl.c.
59043         * math/libm-test.inc (cacos_test): Add more tests.
59044         * sysdeps/i386/fpu/libm-test-ulps: Update.
59045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59046
59047 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
59048
59049         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
59050         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
59051         [!HAVE_MREMAP]: Remove [defined linux] case.
59052         * malloc/arena.c: Do not include <malloc-sysdep.h>.
59053
59054 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
59055
59056         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
59057
59058 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
59059
59060         * elf/elf.h (R_386_SIZE32): New relocation.
59061         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
59062         R_386_SIZE32.
59063         (elf_machine_rela): Likewise.
59064         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
59065         R_X86_64_SIZE64 and R_X86_64_SIZE32.
59066
59067 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59068
59069         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
59070         (FP_FAST_FMA): Do not define.
59071         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
59072         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
59073         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
59074         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
59075         !_SOFT_FLOAT]: Likewise.
59076         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
59077         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
59078         value.
59079         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
59080         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
59081         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
59082         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
59083         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
59084         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
59085         file.
59086
59087 2013-01-16  Andreas Schwab  <schwab@suse.de>
59088
59089         [BZ #14327]
59090         * include/stdlib.h (__mktemp): Add declaration.
59091         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
59092         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
59093
59094 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
59095
59096         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
59097         definitions.
59098         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59099         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
59100         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
59101         definitions here.
59102         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
59103         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
59104         definitions.
59105         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
59106         and ONE.
59107         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
59108         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
59109         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
59110         definitions.
59111         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
59112         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
59113         definitions.
59114         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59115
59116         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
59117
59118 2013-01-15  David S. Miller  <davem@davemloft.net>
59119
59120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59121         trunc{,f} to libm-sysdep_routes.
59122         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
59124         file.
59125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
59126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
59127         file.
59128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
59129         file.
59130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
59131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
59132         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
59133         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
59134         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
59135         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
59136         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
59137         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
59138
59139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59140         nearbyint{,f} to libm-sysdep_routes.
59141         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
59143         New file.
59144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
59145         file.
59146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
59147         New file.
59148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
59149         file.
59150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
59151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
59152         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
59153         file.
59154         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
59155         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
59156         file.
59157         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
59158         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
59159         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
59160
59161         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
59162         libc_feholdexcept and libc_fesetenv.
59163
59164 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
59165
59166         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
59167
59168 2013-01-14  David S. Miller  <davem@davemloft.net>
59169
59170         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
59171         (SPARC_ASM_VIS2_IFUNC): Likewise.
59172         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
59173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
59174         use of 'siam' instruction.
59175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
59176         Likewise.
59177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
59178         Likewise.
59179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
59180         Likewise.
59181         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
59182         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
59183         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
59184         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
59185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
59186         file.
59187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
59188         file.
59189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
59190         file.
59191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
59192         file.
59193         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
59194         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
59195         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
59196         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
59197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
59198         new VIS2 routines.
59199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
59200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
59201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
59202         Likewise.
59203         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
59204         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
59205         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
59206         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
59207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
59208         routines to libm-sysdep_routines.
59209         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59210
59211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59212         fdim/fdimf to libm-sysdep_routines.
59213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
59214         file.
59215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
59216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
59217         file.
59218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
59219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
59220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
59221         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
59222         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
59223         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
59224         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
59225
59226 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59227
59228         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
59229         to optimize copies.
59230
59231         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
59232         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59233         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59234
59235         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
59236         local variable MPTWO.
59237         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
59238         Likewise.
59239
59240 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59241
59242         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
59243         GLOB_NOESCAPE.
59244
59245 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59246
59247         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
59248
59249 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59250
59251         * manual/pattern.texi (glob_t): Document gl_flags.
59252         (glob64_t): Likewise.
59253
59254 2013-01-11  David S. Miller  <davem@davemloft.net>
59255
59256         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
59257         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
59258         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
59259         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
59260         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
59261         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
59262         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
59263         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
59264         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
59265         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
59266         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
59267         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
59268         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
59269
59270         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59271         sparc V9 rather than using V8 code.
59272         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59273         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59274
59275         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
59276         Move to...
59277         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
59278         Here.
59279
59280 2013-01-11  Roland McGrath  <roland@hack.frob.com>
59281
59282         [BZ #14941]
59283         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
59284         not in the main loop.
59285         * configure: Regenerated.
59286
59287 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
59288
59289         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
59290         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
59291         to just #else.
59292         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
59293         [!__GLIBC_HAVE_LONG_LONG] case.
59294         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
59295         condition to just #else.
59296         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
59297         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
59298         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
59299         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
59300         unconditional.
59301         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
59302         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59303         #elif condition to just #else.
59304         * sysdeps/unix/sysv/linux/sys/sysmacros.h
59305         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
59306         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59307         #elif condition to just #else.
59308
59309 2013-01-11  Steve Ellcey  <sellcey@mips.com>
59310
59311         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
59312         (EF_MIPS_ARCH_64): Fix value.
59313         (EF_MIPS_ARCH_32R2): New.
59314         (EF_MIPS_ARCH_64R2): New.
59315
59316 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
59317
59318         * Makeconfig (+link-pie-before-libc): New.
59319         (+link-pie-after-libc): Likewise.
59320         (+link-pie-tests): Likewise.
59321         (+link-pie): Rewritten.
59322         (link-before-libc): Remove $(config-LDFLAGS).
59323         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
59324         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
59325         (config-LDFLAGS): Renamed to ...
59326         (rtld-LDFLAGS): This.
59327         (rtld-tests-LDFLAGS): New macro.
59328         (link-libc-rpath-link): Likewise.
59329         (link-libc-tests-rpath-link): Likewise.
59330         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
59331         (link-libc): Prepand $(link-libc-rpath-link).
59332         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
59333         (test-program-prefix): New macro.
59334         (test-via-rtld-prefix): Likewise.
59335         (test-program-cmd): Likewise.
59336         (host-test-program-cmd): Likewise.
59337         * Makefile ($(common-objpfx)testrun.sh): Replace
59338         $(run-program-prefix) with $(test-program-prefix).
59339         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
59340         $(rtld-LDFLAGS).
59341         ($(common-objpfx)shlib.lds): Likewise.
59342         (build-module-helper): Likewise.
59343         ($(common-objpfx)format.lds): Likewise.
59344         * Rules (binaries-pie-tests): New.
59345         (binaries-pie-notests): Likewise.
59346         (binaries-pie): Rewritten.
59347         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
59348         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
59349         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
59350         (make-test-out): Replace $(host-built-program-cmd) with
59351         $(host-test-program-cmd).
59352         * config.make.in (build-hardcoded-path-in-tests): New variable.
59353         * configure.in (--enable-hardcoded-path-in-tests): New configure
59354         option.
59355         (hardcoded_path_in_tests): New AC_SUBST.
59356         * configure: Regenerated.
59357         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
59358         $(built-program-cmd) with $(test-program-cmd).
59359         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
59360         (test_program_cmd): This.
59361         * elf/Makefile ($(objpfx)order.out): Run test with
59362         $(test-program-prefix).
59363         ($(objpfx)order2.out): Likewise.
59364         ($(objpfx)tst-initorder.out): Likewise.
59365         ($(objpfx)tst-initorder2.out): Likewise.
59366         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
59367         $(test-program-cmd).
59368         ($(objpfx)tst-array1-static.out): Likewise.
59369         ($(objpfx)tst-array2.out): Likewise.
59370         ($(objpfx)tst-array3.out): Likewise.
59371         ($(objpfx)tst-array4.out): Likewise.
59372         ($(objpfx)tst-array5.out): Likewise.
59373         ($(objpfx)tst-array5-static.out): Likewise.
59374         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
59375         $(test-program-cmd).
59376         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
59377         $(run-program-prefix) with $(test-program-prefix).
59378         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
59379         (test_program_prefix): This.
59380         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
59381         $(run-program-prefix) with $(test-program-prefix).
59382         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
59383         (test_program_prefix): This.
59384         * iconvdata/tst-tables.sh: Likewise.
59385         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
59386         $(run-program-prefix) with $(test-program-prefix).
59387         ($(objpfx)tst-translit.out): Likewise.
59388         ($(objpfx)tst-gettext2.out): Likewise.
59389         ($(objpfx)tst-gettext4.out): Likewise.
59390         ($(objpfx)tst-gettext6.out): Likewise.
59391         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
59392         (test_program_prefix): This.
59393         * intl/tst-gettext2.sh: Likewise.
59394         * intl/tst-gettext4.sh  Likewise.
59395         * intl/tst-gettext6.sh: Likewise.
59396         * intl/tst-translit.sh: Likewise.
59397         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
59398         with $(test-program-cmd).
59399         * libio/Makefile ($(objpfx)test-freopen.out): Replace
59400         $(run-program-prefix) with $(test-program-prefix).
59401         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
59402         (test_program_prefix): This.
59403         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
59404         $(run-program-prefix) with $(test-program-prefix).
59405         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
59406         (test_program_prefix): This.
59407         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
59408         * posix/Makefile ($(objpfx)globtest.out): Replace
59409         $(run-via-rtld-prefix) and $(test-wrapper) with
59410         $(test-program-prefix) and $(test-via-rtld-prefix).
59411         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
59412         $(test-program-prefix).
59413         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
59414         $(host-test-program-cmd).
59415         (tst-spawn-ARGS): Likewise.
59416         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
59417         $(test-program-prefix).
59418         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
59419         (test_via_rtld_prefix): This.
59420         (test_wrapper): Renamed to ...
59421         (test_program_prefix): This.
59422         (run_program_prefix): Replaced by test_program_prefix.
59423         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
59424         (test_program_prefix): This.
59425         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
59426         with $(host-test-program-cmd).
59427         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
59428         $(run-program-prefix) with $(test-program-prefix).
59429         ($(objpfx)tst-printf.out): Likewise.
59430         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
59431         $(test-program-cmd).
59432         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
59433         (test_program_prefix): This.
59434         * stdio-common/tst-unbputc.sh: Likewise.
59435         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
59436         $(run-program-prefix) with $(test-program-prefix).
59437         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
59438         (test_program_prefix): This.
59439         * string/Makefile ($(objpfx)tst-svc.out):  Replace
59440         $(built-program-cmd) with $(test-program-cmd).
59441
59442 2013-01-11  Andreas Jaeger  <aj@suse.de>
59443
59444         [BZ #15003]
59445         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
59446         value. Sync with Linux 3.7.
59447
59448 2013-01-10  David S. Miller  <davem@davemloft.net>
59449
59450         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
59451         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59452         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59453
59454 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59455
59456         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
59457         never set.
59458         * configure: Regenerated.
59459
59460 2013-01-10  David S. Miller  <davem@davemloft.net>
59461
59462         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59463         sparc V9 rather than using V8 code.
59464         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59465         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59466
59467 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59468
59469         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
59470         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
59471         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
59472         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
59473         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
59474         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
59475         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
59476         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
59477         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
59478         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
59479         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
59480         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
59481         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
59482         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
59483         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
59484         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
59485         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
59486         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
59487         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
59488         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
59489         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
59490         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
59491         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
59492         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
59493         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
59494         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
59495         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
59496
59497 2013-01-10  David S. Miller  <davem@davemloft.net>
59498
59499         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59500
59501 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59502
59503         * posix/Makefile (tests-static): New variable.
59504         (tests): Add $(tests-static).
59505         (tst-exec-static-ARGS): New variable.
59506         (tst-spawn-static-ARGS): Likewise.
59507         * posix/tst-exec-static.c: New file.
59508         * posix/tst-spawn-static.c: Likewise.
59509         * posix/tst-exec.c: Support run directly.
59510         * posix/tst-spawn.c: Likewise.
59511
59512 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
59513
59514         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
59515         long.
59516         * math/bits/mathcalls.h (llrint): Likewise.
59517         (llround): Likewise.
59518         * stdlib/stdlib.h (struct drand48_data): Likewise.
59519         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
59520         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
59521         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
59522         Likewise.
59523         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
59524         Likewise.
59525         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
59526         (elf_greg_t): Likewise.
59527         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
59528         (__jmp_buf): Likewise.
59529         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
59530         definitions.
59531         (llrint): Likewise, for all definitions.
59532         (llrintl): Likewise.
59533
59534         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
59535         Remove [__GNUC__] condition.
59536         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
59537         condition to just [__USE_ISOC99].
59538         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
59539
59540 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59541
59542         [BZ #14200]
59543         * sysdeps/unix/sysv/linux/x86/bits/environments.h
59544         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
59545         defined.
59546         (_POSIX_V6_ILP32_OFF32): Likewise.
59547         (_XBS5_ILP32_OFF32): Likewise.
59548         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
59549         (__ILP32_OFFBIG_LDFLAGS): Likewise.
59550
59551 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59552
59553         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
59554
59555         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
59556         doubles __mpexp_twomm1.  Adjust usage.
59557         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
59558         Remove.
59559
59560 2013-01-10  Andreas Schwab  <schwab@suse.de>
59561
59562         [BZ #14964]
59563         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
59564         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
59565
59566 2013-01-09  David S. Miller  <davem@davemloft.net>
59567
59568         [BZ #15003]
59569         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
59570         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
59571         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
59572         (TCP_FASTOPEN): Define.
59573         (tcp_repair_opt): New structure.
59574         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
59575         enum values.
59576         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
59577         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
59578         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
59579         (tcp_cookie_transactions): New structure.
59580
59581 2013-01-09  Anton Blanchard  <anton@samba.org>
59582
59583         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
59584         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
59585         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
59586         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
59587
59588 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
59589
59590         * include/features.h (__USE_ANSI): Remove.
59591
59592 2013-01-09  Roland McGrath  <roland@hack.frob.com>
59593
59594         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
59595
59596         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
59597
59598 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
59599
59600         * sysdeps/s390/fpu/libm-test-ulps: Update.
59601
59602         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59603
59604         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
59605         (__acr): Likewise.
59606         (__cpy): Likewise.
59607         (norm): Likewise.
59608         (denorm): Likewise.
59609         (__mp_dbl): Likewise.
59610         (__dbl_mp): Likewise.
59611         (add_magnitudes): Likewise.
59612         (sub_magnitudes): Likewise.
59613         (__add): Likewise.
59614         (__sub): Likewise.
59615         (__mul): Likewise.
59616         (__inv): Likewise.
59617         (__dvd): Likewise.
59618         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
59619         (__acr): Likewise.
59620         (__cpy): Likewise.
59621         (norm): Likewise.
59622         (denorm): Likewise.
59623         (__mp_dbl): Likewise.
59624         (__dbl_mp): Likewise.
59625         (add_magnitudes): Likewise.
59626         (sub_magnitudes): Likewise.
59627         (__add): Likewise.
59628         (__sub): Likewise.
59629         (__mul): Likewise.
59630         (__inv): Likewise.
59631         (__dvd): Likewise.
59632         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
59633         (__acr): Likewise.
59634         (__cpy): Likewise.
59635         (norm): Likewise.
59636         (denorm): Likewise.
59637         (__mp_dbl): Likewise.
59638         (__dbl_mp): Likewise.
59639         (add_magnitudes): Likewise.
59640         (sub_magnitudes): Likewise.
59641         (__add): Likewise.
59642         (__sub): Likewise.
59643         (__mul): Likewise.
59644         (__inv): Likewise.
59645         (__dvd): Likewise.
59646
59647 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
59648
59649         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
59650         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
59651         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
59652         2 && __USE_EXTERN_INLINES]: Likewise.
59653
59654 2013-01-08  Andreas Jaeger  <aj@suse.de>
59655
59656         [BZ# 14985]
59657         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
59658         Remove.
59659         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59660         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59661
59662 2013-01-07  Anton Blanchard  <anton@samba.org>
59663
59664         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
59665         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59666         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
59667         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59668         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59669         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59670         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
59671         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59672         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59673         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59674         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59675         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59676         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
59677         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59678         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
59679         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59680         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59681         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59682         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
59683         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59684         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
59685         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
59686         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
59687         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
59688         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
59689         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59690         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
59691         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59692         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
59693         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
59694         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
59695         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59696         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59697         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59698         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59699         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
59700         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59701         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59702         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
59703         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
59704         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
59705         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
59706         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59707
59708 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
59709
59710         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
59711         (__MALLOC_PMT): Likewise.
59712         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
59713         [__GNUC__], only on [_LIBC].
59714         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59715         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
59716         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59717         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
59718         forward declaration.
59719         (realloc_hook_ini): Likewise.
59720         (memalign_hook_ini): Likewise.
59721         (__libc_memalign): Do not use __MALLOC_PMT in variable
59722         declaration.
59723         (__libc_valloc): Likewise.
59724         (__libc_pvalloc): Likewise.
59725         (__libc_calloc): Likewise.
59726         (__posix_memalign): Likewise.
59727
59728         [BZ #14996]
59729         * math/s_casinh.c: Include <float.h>.
59730         (__casinh): Do not do computation with squaring and square root
59731         for large arguments.
59732         * math/s_casinhf.c: Include <float.h>.
59733         (__casinhf): Do not do computation with squaring and square root
59734         for large arguments.
59735         * math/s_casinhl.c: Include <float.h>.
59736         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
59737         (__casinhl): Do not do computation with squaring and square root
59738         for large arguments.
59739         * math/libm-test.inc (casin_test): Add more tests.
59740         (casinh_test): Likewise.
59741         * sysdeps/i386/fpu/libm-test-ulps: Update.
59742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59743
59744 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
59745
59746         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
59747         (__x86_64_raw_data_cache_size): Likewise.
59748         (__x86_64_data_cache_size_half): Likewise.
59749         (__x86_64_raw_data_cache_size_half): Likewise.
59750         (__x86_64_shared_cache_size): Likewise.
59751         (__x86_64_raw_shared_cache_size): Likewise.
59752         (__x86_64_shared_cache_size_half): Likewise.
59753         (__x86_64_raw_shared_cache_size_half): Likewise.
59754         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
59755         to ...
59756         (__x86_data_cache_size): This.
59757         (__x86_64_raw_data_cache_size): Renamed to ...
59758         (__x86_raw_data_cache_size): This.
59759         (__x86_64_data_cache_size_half): Renamed to ...
59760         (__x86_data_cache_size_half): This.
59761         (__x86_64_raw_data_cache_size_half): Renamed to ...
59762         (__x86_raw_data_cache_size_half): This.
59763         (__x86_64_shared_cache_size): Renamed to ...
59764         (__x86_shared_cache_size): This.
59765         (__x86_64_raw_shared_cache_size): Renamed to ...
59766         (__x86_raw_shared_cache_size): This.
59767         (__x86_64_shared_cache_size_half): Renamed to ...
59768         (__x86_shared_cache_size_half): This.
59769         (__x86_64_raw_shared_cache_size_half): Renamed to ...
59770         (__x86_raw_shared_cache_size_half): This.
59771         * sysdeps/x86_64/memcpy.S: Updated.
59772         * sysdeps/x86_64/memset.S: Likewise.
59773         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
59774         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
59775         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
59776
59777 2013-01-04  David S. Miller  <davem@davemloft.net>
59778
59779         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59780
59781 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
59782
59783         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
59784         1 to avoid redefinition warning.
59785         (__USE_GNU): Don't define.
59786         (init_signaling_nan): Protoize.
59787
59788         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59789
59790 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59791
59792         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
59793         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
59794         (__cpymn): Likewise.
59795         (norm): Remove commented code.
59796         (denorm): Likewise.
59797         (__mp_dbl): Likewise.
59798         (__inv): Likewise.
59799         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
59800         (__cpymn): Likewise.
59801         (norm): Remove commented code.
59802         (denorm): Likewise.
59803         (__mp_dbl): Likewise.
59804         (__inv): Likewise.
59805
59806         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
59807         mp_no value for 1.0 and 2.0.
59808         (norm): Use RADIXI instead of radixi.d.
59809         (denorm): Likewise.
59810         (__mul): Use 0.0 instead of zero.d.
59811         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
59812         mp_no value for 1.0 and 2.0.
59813         (norm): Use RADIXI instead of radixi.d.
59814         (denorm): Likewise.
59815         (__mul): Use 0.0 instead of zero.d.
59816
59817 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
59818
59819         [BZ #14994]
59820         * math/s_casinh.c (__casinh): Reduce finite argument to first
59821         quadrant then set signs of results at the end.
59822         * math/s_casinhf.c (__casinhf): Likewise.
59823         * math/s_casinhl.c (__casinhl): Likewise.
59824         * math/libm-test.inc (casin_test): Add more tests.
59825         (casinh_test): Likewise.
59826         * sysdeps/i386/fpu/libm-test-ulps: Update.
59827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59828
59829 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59830
59831         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
59832
59833         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
59834
59835         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
59836         declarations.
59837         (denorm): Likewise.
59838         (__mp_dbl): Likewise.
59839         (__inv): Likewise.
59840
59841         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
59842         and adjust the header comment.
59843
59844         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
59845         variable name from declaration.
59846
59847 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
59848
59849         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59850         Initialize COMMON_CPUID_INDEX_7 element.
59851         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
59852         (CPUID_RTM): Likewise.
59853         (HAS_RTM): Likewise.
59854         (COMMON_CPUID_INDEX_7): New enum.
59855
59856 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
59857
59858         [BZ #14981]
59859         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
59860         size is zero, record memory as freed.
59861
59862 2013-01-03  Andreas Jaeger  <aj@suse.de>
59863
59864         * po/ia.po: Add new Interlingua translation.
59865
59866 2012-01-03  Allan McRae  <allan@archlinux.org>
59867
59868         * locale/programs/localedef.c: Fix description of '--posix' flag.
59869
59870 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
59871
59872         * NEWS: Update dates in second copyright notice.
59873         * README: Update copyright dates in example.
59874         * manual/libc.texinfo: Update copyright dates.
59875         * scripts/test-installation.pl: Update copyright date in --version
59876         output.
59877
59878         * hurd/ctty-input.c: Fix copyright notice formatting.
59879         * hurd/ctty-output.c: Likewise.
59880         * hurd/dtable.c: Likewise.
59881         * hurd/hurd-raise.c: Likewise.
59882         * hurd/hurdprio.c: Likewise.
59883         * hurd/msgportdemux.c: Likewise.
59884         * misc/sys/file.h: Likewise.
59885         * misc/sys/ioctl.h: Likewise.
59886         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
59887         * sysdeps/mach/hurd/chdir.c: Likewise.
59888         * sysdeps/mach/hurd/fchdir.c: Likewise.
59889         * sysdeps/mach/hurd/rename.c: Likewise.
59890         * sysdeps/mach/hurd/rmdir.c: Likewise.
59891         * sysdeps/mach/hurd/seekdir.c: Likewise.
59892         * sysdeps/mach/hurd/setsid.c: Likewise.
59893         * sysdeps/posix/wait3.c: Likewise.
59894
59895         * All files with FSF copyright notices: Update copyright dates
59896         using scripts/update-copyrights.
59897         * intl/plural.c: Regenerated.
59898         * locale/programs/charmap-kw.h: Likewise.
59899         * locale/programs/locfile-kw.h: Likewise.
59900
59901 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
59902
59903         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
59904         four values.
59905
59906         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
59907         calculation loop and add branch prediction.
59908
59909         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
59910         check access beyond bounds of m1np.
59911
59912         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59913         MPTWO.
59914         (__inv): Remove local variable MPTWO to use the global
59915         constant.
59916         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
59917         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59918         variable MPTWO.
59919         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
59920         MP3HALFS static const.
59921
59922 2013-01-01  David S. Miller  <davem@davemloft.net>
59923
59924         * po/ca.po: Update from translation team.
59925
59926 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
59927
59928         * scripts/update-copyrights: New file.
59929         * Makeconfig: Reformat copyright notice.
59930         * ctype/ctype.h: Likewise.
59931         * debug/swprintf_chk.c: Likewise.
59932         * elf/dl-cache.c: Likewise.
59933         * elf/dl-debug.c: Likewise.
59934         * elf/dl-object.c: Likewise.
59935         * grp/initgroups.c: Likewise.
59936         * hurd/Makefile: Likewise.
59937         * hurd/hurd/signal.h: Likewise.
59938         * hurd/hurdfault.c: Likewise.
59939         * hurd/hurdioctl.c: Likewise.
59940         * hurd/hurdlookup.c: Likewise.
59941         * hurd/intr-msg.c: Likewise.
59942         * iconv/gconv_open.c: Likewise.
59943         * libio/swprintf.c: Likewise.
59944         * locale/lc-ctype.c: Likewise.
59945         * locale/nl_langinfo.c: Likewise.
59946         * mach/Machrules: Likewise.
59947         * mach/Makefile: Likewise.
59948         * malloc/obstack.h: Likewise.
59949         * manual/Makefile: Likewise.
59950         * manual/tsort.awk: Likewise.
59951         * misc/bits/stab.def: Likewise.
59952         * nis/nis_print_group_entry.c: Likewise.
59953         * nis/nis_table.c: Likewise.
59954         * nis/nss_compat/compat-pwd.c: Likewise.
59955         * nis/nss_compat/compat-spwd.c: Likewise.
59956         * po/Makefile: Likewise.
59957         * posix/fnmatch.c: Likewise.
59958         * posix/regex.h: Likewise.
59959         * resolv/Makefile: Likewise.
59960         * resolv/nss_dns/dns-network.c: Likewise.
59961         * resolv/res_hconf.c: Likewise.
59962         * scripts/gen-sorted.awk: Likewise.
59963         * soft-fp/soft-fp.h: Likewise.
59964         * stdio-common/printf.h: Likewise.
59965         * stdlib/monetary.h: Likewise.
59966         * stdlib/random.c: Likewise.
59967         * stdlib/random_r.c: Likewise.
59968         * sysdeps/generic/Makefile: Likewise.
59969         * sysdeps/gnu/Makefile: Likewise.
59970         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
59971         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
59972         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
59973         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
59974         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
59975         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
59976         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
59977         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
59978         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
59979         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
59980         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
59981         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
59982         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
59983         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
59984         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
59985         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
59986         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
59987         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
59988         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
59989         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
59990         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
59991         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
59992         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
59993         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59994         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
59995         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
59996         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
59997         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
59998         * sysdeps/mach/hurd/errnos.awk: Likewise.
59999         * sysdeps/mach/hurd/fork.c: Likewise.
60000         * sysdeps/mach/hurd/getcwd.c: Likewise.
60001         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
60002         * sysdeps/mach/hurd/mmap.c: Likewise.
60003         * sysdeps/mach/hurd/utimes.c: Likewise.
60004         * sysdeps/mach/hurd/xmknod.c: Likewise.
60005         * sysdeps/posix/profil.c: Likewise.
60006         * sysdeps/posix/readdir_r.c: Likewise.
60007         * sysdeps/powerpc/bits/mathdef.h: Likewise.
60008         * sysdeps/powerpc/bits/setjmp.h: Likewise.
60009         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
60010         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
60011         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
60012         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
60013         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
60014         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60015         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
60016         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
60017         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
60018         * sysdeps/pthread/lio_listio.c: Likewise.
60019         * sysdeps/sparc/dl-procinfo.h: Likewise.
60020         * sysdeps/unix/i386/sysdep.S: Likewise.
60021         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
60022         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
60023         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
60024         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
60025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
60026         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
60027         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
60028         * sysdeps/unix/sysv/linux/speed.c: Likewise.
60029         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
60030         * sysdeps/wordsize-32/divdi3.c: Likewise.
60031         * time/sys/time.h: Likewise.
60032         * wcsmbs/Makefile: Likewise.
60033
60034 2013-01-01  David S. Miller  <davem@davemloft.net>
60035
60036         * po/fr.po: Update from translation team.
60037
60038         * catgets/gencat.c: Update copyright year.
60039         * csu/version.c: Likewise.
60040         * debug/catchsegv.sh: Likewise.
60041         * debug/pcprofiledump.c: Likewise.
60042         * debug/xtrace.sh: Likewise.
60043         * elf/ldconfig.c: Likewise.
60044         * elf/ldd.bash.in: Likewise.
60045         * elf/pldd.c: Likewise.
60046         * elf/sotruss.ksh: Likewise.
60047         * elf/sprof.c: Likewise.
60048         * iconv/iconv_prog.c: Likewise.
60049         * iconv/iconvconfig.c: Likewise.
60050         * locale/programs/locale.c: Likewise.
60051         * locale/programs/localedef.c: Likewise.
60052         * login/programs/pt_chown.c: Likewise.
60053         * malloc/memusage.sh: Likewise.
60054         * malloc/memusagestat.c: Likewise.
60055         * malloc/mtrace.pl: Likewise.
60056         * nscd/nscd.c: Likewise.
60057         * nss/getent.c: Likewise.
60058         * nss/makedb.c: Likewise.
60059         * posix/getconf.c: Likewise.
60060
60061 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
60062
60063         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
60064         numbers.
60065
60066 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
60067
60068         * math/bits/mathcalls.h (modf): Use __nonnull.
60069
60070 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60071
60072         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
60073         (split): Use macro CN instead of the bare value.
60074         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
60075         could be used.
60076         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
60077         instead of the bare value.
60078         (power1): Likewise.
60079
60080 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60081
60082         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
60083         __ATAN_TWOM.
60084         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60085
60086         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
60087         their values.
60088         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
60089         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
60090         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
60091         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
60092
60093 2012-12-28  Andreas Jaeger  <aj@suse.de>
60094
60095         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
60096         values are from Linux 3.7.
60097
60098         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
60099         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
60100
60101 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60102
60103         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
60104         TRUE case.
60105
60106         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
60107         (norm): Likewise.
60108         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
60109         variables with preprocessor constants.
60110         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60111         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
60112         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
60113
60114 2012-12-27  Bruno Haible  <bruno@clisp.org>
60115
60116         [BZ #14317]
60117         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
60118         only if needed.
60119
60120 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60121
60122         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
60123         and use variable directly.
60124         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
60125
60126         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60127         MPONE.
60128         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
60129         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60130         variable MPONE.
60131         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
60132         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
60133         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
60134         include directive.  Remove local variable MPONE.
60135         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
60136         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
60137         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
60138
60139 2012-12-25  David S. Miller  <davem@davemloft.net>
60140
60141         * version.h (RELEASE): Set to "development".
60142         (VERSION): Set to "2.17.90".
60143         * NEWS: Add 2.18 section.
60144
60145 2012-12-21  David S. Miller  <davem@davemloft.net>
60146
60147         * po/hr.po: Update from translation team.
60148
60149 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60150
60151         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
60152
60153 2012-12-19  Steve Ellcey  <sellcey@mips.com>
60154
60155         * NEWS:  Mention new memcpy for MIPS.
60156
60157 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60158
60159         * manual/contrib.texi (Contributors): Spelling correction.
60160
60161 2012-12-15  David S. Miller  <davem@davemloft.net>
60162
60163         * po/ru.po: Update from translation team.
60164
60165 2012-12-13  David S. Miller  <davem@davemloft.net>
60166
60167         * NEWS: Mention IFUNC testsuite enhancements.
60168
60169         * po/pl.po: Update from translation team.
60170         * po/bg.po: Likewise.
60171
60172         * manual/contrib.texi (Contributors): Update entries for Hongjiu
60173         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
60174
60175 2012-12-11  David S. Miller  <davem@davemloft.net>
60176
60177         * po/sv.po: Update from translation team.
60178
60179         * po/vi.po: Update from translation team.
60180
60181         * po/cs.po: Update from translation team.
60182
60183         * po/de.po: Update from translation team.
60184         * po/eo.po: Likewise.
60185         * po/nl.po: Likewise.
60186
60187 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60188
60189         [BZ #14246]
60190         * manual/argp.texi (Argp Helper Functions): Move node to follow
60191         Argp Parsing State.
60192
60193         [BZ #14872]
60194         * manual/conf.texi (Limits on File System Capacity): Mention if
60195         terminating null is included in the max size.
60196
60197 2012-12-10  Andreas Jaeger  <aj@suse.de>
60198
60199         * po/cs.po: Update from translation team.
60200
60201 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
60202
60203         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
60204         void pointer and cast to uintptr_t.
60205         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
60206         path.
60207         * sysdeps/s390/s390-64/memcpy.S: Likewise.
60208         * sysdeps/s390/s390-64/memset.S: Likewise.
60209
60210 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
60211
60212         [BZ #14833]
60213         * menual/message.texi (Message Translation): Fix typos.
60214         (Helper programs for gettext): Likewise.
60215
60216 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
60217
60218         [BZ #14898]
60219         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
60220         Change to -1.
60221
60222 2012-12-07  David S. Miller  <davem@davemloft.net>
60223
60224         * po/libc.pot: Update.
60225
60226 2012-12-07  Richard Henderson  <rth@redhat.com>
60227
60228         [BZ #10114]
60229         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
60230         normal/normal case to before the switch.
60231         (_FP_DIV): Likewise.
60232
60233 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
60234             Mike Frysinger  <vapier@gentoo.org>
60235
60236         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
60237         check for __NR_fadvise64_64.
60238
60239 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
60240
60241         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
60242         0, not just to plain "0" as a statement.
60243         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
60244         with cw.
60245
60246 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
60247
60248         * NEWS: Use sourceware.org in Bugzilla URL.
60249
60250 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60251
60252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
60253         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60254
60255         * stdio-common/tst-put-error.c (do_test): Add newline to the
60256         padded test to ensure flush.
60257
60258 2012-12-05  Jeff Law  <law@redhat.com>
60259
60260         * sunrpc/etc.rpc (fedfs_admin): Add entry.
60261
60262 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
60263
60264         * README: Don't refer to ports add-on as distributed separately.
60265         Mention AArch64 in list of systems supported in the ports add-on.
60266
60267         * LICENSES: Add more non-FSF copyright and license notices.
60268
60269         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
60270         ((unused)).
60271
60272         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
60273
60274         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
60275         10000 as width of padded output.
60276
60277 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60278
60279         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
60280
60281         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
60282         variable LX with __attribute__ ((unused)).
60283         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
60284         Likewise.
60285         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
60286         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60287         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
60288         with __attribute__ ((unused)).
60289
60290 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
60291
60292         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
60293
60294 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60295
60296         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
60297         (CFLAGS-nldbl-acos.c): New variable.
60298         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
60299         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
60300         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
60301         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
60302         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
60303         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
60304         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
60305         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
60306         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
60307         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
60308         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
60309         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
60310         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
60311         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
60312         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
60313         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
60314         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
60315         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
60316         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
60317         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
60318         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
60319         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
60320         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
60321         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
60322         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
60323         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
60324         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
60325         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
60326         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
60327         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
60328         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
60329         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
60330         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
60331         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
60332         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
60333         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
60334         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
60335         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
60336         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
60337         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
60338         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
60339         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
60340         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
60341         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
60342         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
60343         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
60344         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
60345         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
60346         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
60347         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
60348         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
60349         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
60350         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
60351         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
60352         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
60353         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
60354         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
60355         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
60356         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
60357         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
60358         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
60359         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
60360         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
60361         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
60362         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
60363         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
60364         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
60365         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
60366         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
60367         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
60368         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
60369         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
60370         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
60371         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
60372         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
60373         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
60374         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
60375         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
60376         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
60377         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
60378         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
60379         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
60380         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
60381         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
60382         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
60383         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
60384         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
60385         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
60386         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
60387         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
60388         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
60389         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
60390         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
60391         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
60392         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
60393         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
60394         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
60395
60396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
60397         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60398
60399         [BZ #14914]
60400         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
60401         whole low double instead of just low 47 bits when splitting values
60402         into two parts.
60403
60404 2012-12-03  Allan McRae  <allan@archlinux.org>
60405
60406         * manual/stdio.texi (Predefined Printf Handlers): Remove
60407         @hsep and @vsep usage.
60408
60409 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
60410
60411         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
60412         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
60413
60414 2012-12-03  Jeff Law  <law@redhat.com>
60415
60416         * time/sys/time.h (settimeofday): Do not mark TV argument
60417         as __nonnull.
60418
60419 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
60420
60421         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
60422         when currently writing and seek to current position when not.
60423         * libio/Makefile (tests): Remove bug-fclose1.
60424         * libio/bug-fclose1.c: Delete.
60425
60426 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
60427
60428         * manual/arith.texi (feenableexcept): Fix typo.
60429         (fedisableexcept): Likewise.
60430
60431 2012-11-30  Roland McGrath  <roland@hack.frob.com>
60432
60433         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
60434         second, differently-typed declaration, rather than a cast.
60435
60436 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
60437
60438         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
60439         * include/rpc/svc.h: ... here.
60440
60441 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
60442
60443         [BZ #13013]
60444         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
60445         depending n and resplen2 to catch cases where answer
60446         equals answerp2.
60447
60448 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
60449
60450         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
60451         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
60452
60453 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
60454
60455         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
60456
60457 2012-11-29  Roland McGrath  <roland@hack.frob.com>
60458
60459         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
60460
60461 2012-11-28  Jeff Law  <law@redhat.com>
60462
60463         [BZ #13761]
60464         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
60465         dataset_temporary.  Track alloca usage into alloca_used.
60466         If dataset is large allocate and release it via malloc/free.
60467
60468 2012-06-04  Florian Weimer  <fweimer@redhat.com>
60469
60470         [BZ #14197]
60471         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
60472
60473 2012-11-28  David S. Miller  <davem@davemloft.net>
60474
60475         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60476
60477 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60478
60479         [BZ #14803]
60480         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
60481         of pi/2 rounded to nearest to 64 bits.
60482         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
60483         nearest to 64 bits.
60484         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
60485         bits.
60486
60487 2012-11-28  Jeff Law <law@redhat.com>
60488             Martin Osvald <mosvald@redhat.com>
60489
60490         [BZ #14889]
60491         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
60492         * sunrpc/svc.c: Include time.h.
60493         (__svc_accept_failed): New function.
60494         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
60495         any reason other than EINTR, call __svc_accept_failed.
60496         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
60497         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
60498
60499 2012-11-28  Andreas Schwab  <schwab@suse.de>
60500
60501         * scripts/abilist.awk: Also handle indirect functions in .opd
60502         section.
60503
60504 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60505
60506         [BZ #13881]
60507         * sysdeps/x86/fpu/powl_helper.c: New file.
60508         * sysdeps/x86/fpu/Makefile: Likewise.
60509         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
60510         (p3): New object.
60511         (__ieee754_powl): Use __powl_helper for finite arguments except
60512         integer exponents below 8.
60513         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
60514         (p3): New object.
60515         (__ieee754_powl): Use __powl_helper for finite arguments except
60516         integer exponents below 8.
60517         * math/libm-test.inc (pow_test): Add more tests and enable some
60518         previously disabled tests.
60519         * sysdeps/i386/fpu/libm-test-ulps: Update.
60520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60521
60522 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60523             Carlos O'Donell  <carlos_odonell@mentor.com>
60524
60525         * nss/makedb.c (is_prime): Assert that input is odd and greater
60526         than 4.  Note that fact in a comment too.
60527         (next_prime): Add 4 to input.
60528
60529 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60530
60531         [BZ #11741]
60532         * libio/Makefile (tests): Add test case tst-fwrite-error.
60533         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
60534         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
60535         * libio/tst-fwrite-error.c: New test case.
60536
60537 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
60538
60539         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
60540         before casting to void *.
60541         * include/libc-internal.h (__pointer_type): New macro.
60542         (__integer_if_pointer_type_sub): Likewise.
60543         (__integer_if_pointer_type): Likewise.
60544         (cast_to_integer): Likewise.
60545         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
60546         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
60547         before casting to atomic64_t.
60548         (atomic_exchange_acq): Likewise.
60549         (__arch_exchange_and_add_body): Likewise.
60550         (__arch_add_body): Likewise.
60551         (atomic_add_negative): Likewise.
60552         (atomic_add_zero): Likewise.
60553
60554 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
60555
60556         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
60557         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
60558         (add_fdes): Likewise.
60559         (linear_search_fdes): Likewise.
60560         (binary_search_unencoded_fdes): Likewise.
60561
60562 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
60563
60564         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
60565
60566 2012-11-24  Adam Conrad  <adconrad@0c3.net>
60567
60568         * configure.in: Autodetect C++ header directories.
60569         * configure: Regenerated.
60570
60571 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
60572
60573         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
60574
60575 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
60576
60577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60578
60579 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
60580
60581         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
60582         LDBL_MANT_DIG == 106]: Disable some tests.
60583         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60584         Likewise.
60585         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60586         Likewise.
60587
60588         [BZ #14871]
60589         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
60590         input for small inputs.  Return +/- pi/2 for large inputs.
60591         * math/libm-test.inc (atan_test): Add more tests.
60592
60593         * sysdeps/generic/unwind-dw2-fde-glibc.c
60594         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
60595         __attribute__ ((unused)).
60596
60597         [BZ #14645]
60598         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
60599         x * y if x and y are nonzero and z is zero.
60600
60601         [BZ #14811]
60602         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
60603         nonzero exponents with absolute value below 0x1p-117 to +/-
60604         0x1p-117.
60605
60606         [BZ #14869]
60607         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
60608         up arguments below 2**-450, not just those below 2**-500.
60609         * math/libm-test.inc (hypot_test): Add another test.
60610
60611         [BZ #14868]
60612         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
60613         Return a+b for ratio over 2**120, not 2**60.
60614         * math/libm-test.inc (hypot_test): Add another test.
60615
60616         * math/libm-test.inc (clog_test): Use
60617         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
60618         (clog10_test): Likewise.
60619
60620         [BZ #6778]
60621         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
60622
60623 2012-11-22  Andreas Schwab  <schwab@suse.de>
60624
60625         * sysdeps/i386/fpu/libm-test-ulps: Update.
60626
60627 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
60628
60629         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
60630         printf output with newline.
60631
60632 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60633
60634         [BZ #14865]
60635         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
60636         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
60637         -z nodlopen, -z initfirst and -z execstack support.
60638         * configure: Regenerated.
60639
60640         * elf/elf.h (DF_1_NODIRECT): New macro.
60641         (DF_1_IGNMULDEF): Likewise.
60642         (DF_1_NOKSYMS): Likewise.
60643         (DF_1_NOHDR): Likewise.
60644         (DF_1_EDITED): Likewise.
60645         (DF_1_NORELOC): Likewise.
60646         (DF_1_SYMINTPOSE): Likewise.
60647         (DF_1_GLOBAUDIT): Likewise.
60648         (DF_1_SINGLETON): Likewise.
60649         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
60650         DT_1_SUPPORTED_MASK bits.
60651         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
60652
60653 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
60654
60655         * sysdeps/unix/make-syscalls.sh: Document prefixes.
60656
60657 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
60658
60659         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
60660         macro.
60661
60662         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
60663         (sendmmsg): Move declarations...
60664         * socket/sys/socket.h: ... here.
60665         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
60666         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
60667         include it from...
60668         * socket/recvmmsg.c: ... this new file.
60669         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
60670         (sendmmsg): Rename to __sendmmsg, create weak alias and make
60671         definition of __sendmmsg hidden.
60672         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
60673         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
60674         Move ENOSYS stub into and include it from...
60675         * socket/sendmmsg.c: ... this new file.
60676         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
60677         (sysdep_routines): Move recvmmsg and sendmmsg...
60678         * socket/Makefile (routines): ... here.
60679         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
60680         (GLIBC_PRIVATE): Add __sendmmsg.
60681         * include/sys/socket.h (__sendmmsg): Add declarations.
60682         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
60683         sendmmsg.
60684
60685 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
60686
60687         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
60688         variable I1 with __attribute__ ((unused)).
60689         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
60690
60691 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60692
60693         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
60694         DUMMY variables with __attribute__ ((unused)).
60695
60696         * bits/byteswap.h: Include <bits/types.h>.
60697         (__bswap_64): Use __uint64_t instead of unsigned long long int.
60698
60699 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60700
60701         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
60702         string_t.  Do not manually set errno.
60703         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
60704         length with __strnlen.  Make sure to both set errno and return it on
60705         failure.
60706
60707 2012-11-19  David S. Miller  <davem@davemloft.net>
60708
60709         With help from Joseph Myers.
60710         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
60711         very large arguments properly.
60712         * math/libm-test.inc (atan_test): New tests.
60713         (atan2_test): New tests.
60714         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60715         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60716
60717 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60718
60719         [BZ #14856]
60720         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
60721         Define to 3.
60722
60723         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
60724         [POSIX] (EADDRNOTAVAIL): Likewise.
60725         [POSIX] (EAFNOSUPPORT): Likewise.
60726         [POSIX] (EALREADY): Likewise.
60727         [POSIX] (ECONNABORTED): Likewise.
60728         [POSIX] (ECONNREFUSED): Likewise.
60729         [POSIX] (ECONNRESET): Likewise.
60730         [POSIX] (EDESTADDRREQ): Likewise.
60731         [POSIX] (EDQUOT): Likewise.
60732         [POSIX] (EHOSTUNREACH): Likewise.
60733         [POSIX] (EIDRM): Likewise.
60734         [POSIX] (EISCONN): Likewise.
60735         [POSIX] (ELOOP): Likewise.
60736         [POSIX] (EMULTIHOP): Likewise.
60737         [POSIX] (ENETDOWN): Likewise.
60738         [POSIX] (ENETUNREACH): Likewise.
60739         [POSIX] (ENOBUFS): Likewise.
60740         [POSIX] (ENODATA): Likewise.
60741         [POSIX] (ENOLINK): Likewise.
60742         [POSIX] (ENOMSG): Likewise.
60743         [POSIX] (ENOPROTOOPT): Likewise.
60744         [POSIX] (ENOSR): Likewise.
60745         [POSIX] (ENOSTR): Likewise.
60746         [POSIX] (ENOTCONN): Likewise.
60747         [POSIX] (ENOTSOCK): Likewise.
60748         [POSIX] (EOPNOTSUPP): Likewise.
60749         [POSIX] (EOVERFLOW): Likewise.
60750         [POSIX] (EPROTO): Likewise.
60751         [POSIX] (EPROTONOSUPPORT): Likewise.
60752         [POSIX] (EPROTOTYPE): Likewise.
60753         [POSIX] (ESTALE): Likewise.
60754         [POSIX] (ETIME): Likewise.
60755         [POSIX] (ETXTBSY): Likewise.
60756         [POSIX] (EWOULDBLOCK): Likewise.
60757         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
60758         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
60759         [POSIX] (SEEK_CUR): Likewise.
60760         [POSIX] (SEEK_END): Likewise.
60761         [POSIX || UNIX98] (mode_t): Do not require.
60762         [POSIX] (off_t): Likewise.
60763         [POSIX] (pid_t): Likewise.
60764         [POSIX] (sys/stat.h): Do not allow header.
60765         [POSIX] (unistd.h): Likewise.
60766         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
60767         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
60768         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
60769         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
60770         require.
60771         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
60772         sigevent): Specify elements.
60773         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
60774         entry.
60775         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
60776         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
60777
60778         * conform/data/cpio.h-data [POSIX]: Disable whole file.
60779         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
60780         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
60781         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
60782         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
60783         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
60784         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
60785         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
60786         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
60787         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
60788         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
60789         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
60790         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
60791         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
60792         Likewise.
60793         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
60794         Likewise.
60795         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
60796         Likewise.
60797         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
60798         Likewise.
60799         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
60800         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
60801         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
60802         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
60803         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
60804         Specify lower bound on value.
60805         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
60806         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
60807         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
60808         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
60809         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
60810         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
60811         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
60812         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
60813         value.
60814         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
60815         as optional.
60816         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
60817         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
60818         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
60819         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
60820         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
60821         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
60822         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
60823         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
60824         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
60825         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
60826         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
60827         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
60828         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
60829         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
60830         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
60831         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
60832         entry.
60833         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
60834         optional.
60835         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
60836         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
60837         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
60838         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
60839         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
60840         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
60841         Likewise.
60842         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
60843         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
60844         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
60845         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
60846         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
60847         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
60848         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
60849         as optional.
60850         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
60851         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
60852         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
60853         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
60854         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
60855         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
60856         specify as optional.
60857         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
60858         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
60859         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
60860         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
60861         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
60862         [XPG3] (NL_LANGMAX): Likewise.
60863         [POSIX || XPG3] (NL_MSGMAX): Likewise.
60864         [POSIX || XPG3] (NL_NMAX): Likewise.
60865         [POSIX || XPG3] (NL_SETMAX): Likewise.
60866         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
60867         [XPG3] (NZERO): Likewise.
60868         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
60869         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
60870         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
60871         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
60872         (REG_ERANGE): Expect.
60873         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
60874         optional-constant.
60875         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
60876         Use (void) in prototype.
60877         [POSIX] (*_t): Allow.
60878         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
60879         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
60880         (WRDE_BADVAL): Expect.
60881
60882         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
60883         expect.
60884         [XPG3 || XPG4] (O_RSYNC): Likewise.
60885         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
60886         Likewise.
60887         [XPG3 || XPG4] (pthread_sigmask): Likewise.
60888         [XPG3 || XPG4] (sigqueue): Likewise.
60889         [XPG3 || XPG4] (sigtimedwait): Likewise.
60890         [XPG3 || XPG4] (sigwaitinfo): Likewise.
60891         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
60892         [XPG3 || XPG4] (vsnprintf): Likewise.
60893         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
60894         Likewise.
60895         [XPG3 || XPG4] (blksize_t): Likewise.
60896         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
60897         Likewise.
60898         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
60899         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
60900         [XPG3 || XPG4] (struct itimerspec): Likewise.
60901         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
60902         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
60903         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
60904         [XPG3 || XPG4] (clockid_t): Likewise.
60905         [XPG3 || XPG4] (timer_t): Likewise.
60906         [XPG3 || XPG4] (clock_getres): Likewise.
60907         [XPG3 || XPG4] (clock_gettime): Likewise.
60908         [XPG3 || XPG4] (clock_settime): Likewise.
60909         [XPG3 || XPG4] (nanosleep): Likewise.
60910         [XPG3 || XPG4] (timer_create): Likewise.
60911         [XPG3 || XPG4] (timer_delete): Likewise.
60912         [XPG3 || XPG4] (timer_gettime): Likewise.
60913         [XPG3 || XPG4] (timer_getoverrun): Likewise.
60914         [XPG3 || XPG4] (timer_settime): Likewise.
60915         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
60916         [XPG3 || XPG4] (getlogin_r): Likewise.
60917         [XPG3 || XPG4] (pread): Likewise.
60918         [XPG3 || XPG4] (pthread_atfork): Likewise.
60919         [XPG3 || XPG4] (pwrite): Likewise.
60920
60921         [BZ #14835]
60922         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
60923         <bits/siginfo.h>.
60924
60925 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60926
60927         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
60928         finalizing MALLSTREAM.
60929
60930         * sysdeps/mach/hurd/syncfs.c: New file.
60931
60932 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
60933
60934         [BZ #14719]
60935         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
60936         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
60937         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
60938         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
60939         (_nss_dns_gethostbyname4_r): Likewise.
60940         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
60941         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
60942
60943 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
60944
60945         [BZ #13763]
60946         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
60947
60948 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
60949
60950         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
60951         * elf/cache.c (print_entry): Print ",AArch64" for
60952         FLAG_AARCH64_LIB64
60953
60954         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
60955         * elf/cache.c (print_entry): Print ",hard-float" for
60956         FLAG_ARM_LIBHF.
60957
60958 2012-11-18  David S. Miller  <davem@davemloft.net>
60959
60960         With help from Joseph Myers.
60961         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
60962         cutoff to 2**-13.
60963         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
60964         cutoff to 2**-25.
60965         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
60966         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
60967         small.
60968         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
60969         * math/libm-test.inc (y0_test): New tests.
60970         (y1_test): New tests.
60971         * sysdeps/i386/fpu/libm-test-ulps: Update.
60972         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60974
60975 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
60976
60977         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
60978         64-bit targets.
60979         * configure: Regenerated.
60980
60981 2012-11-17  David S. Miller  <davem@davemloft.net>
60982
60983         [BZ #14811]
60984         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
60985         nonzero exponents with absolute value below 0x1p-128 to +/-
60986         0x1p-128.
60987
60988 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
60989
60990         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
60991
60992         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
60993
60994         * posix/getconf-speclist.c: New file.
60995         * posix/posix-envs.def: Likewise.
60996         * posix/confstr.c (START_ENV_GROUP): New macro.
60997         (END_ENV_GROUP): Likewise.
60998         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60999         (KNOWN_PRESENT_ENV_STRING): Likewise.
61000         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
61001         (UNKNOWN_ENVIRONMENT): Likewise.
61002         (confstr): Include posix-envs.def instead of handling
61003         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
61004         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
61005         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
61006         (END_ENV_GROUP): Likewise.
61007         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
61008         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
61009         (UNKNOWN_ENVIRONMENT): Likewise.
61010         (__sysconf): Include posix-envs.def instead of handling associated
61011         cases directly here.
61012         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
61013         preprocessing getconf-speclist.c rather than running getconf or
61014         generating empty file.
61015
61016 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
61017
61018         * scripts/check-local-headers.sh: Ignore 'mach' headers.
61019
61020 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
61021
61022         [BZ #14672]
61023         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
61024
61025 2012-11-16  David S. Miller  <davem@davemloft.net>
61026
61027         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
61028         smaller than LDBL_EPSILON/2.0L, just return xm1.
61029
61030 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
61031
61032         * elf/tst-array1.c (init): Set constructor priority to 1000.
61033         (fini): Set destructor priority to 1000.
61034         * elf/tst-array2dep.c: Likewise.
61035
61036 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61037
61038         [BZ #11741]
61039         * libio/fileops.c (_IO_new_file_write): Correctly return error.
61040         (_IO_new_file_xsputn): Also return EOF if none of the input
61041         data was written when overflow failed.
61042         * libio/iopadn.c (_IO_padn): Likewise.
61043         * libio/iowpadn.c (_IO_wpadn): Likewise.
61044         * stdio-common/tst-put-error.c: Add copyright notice.
61045         (do_test): Add case for printing padded string.
61046         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
61047         _IO_padn returned error.
61048         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
61049         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
61050         return EOF.
61051
61052 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61053
61054         * libio/libioP.h: Add comment note that the references to C++
61055         bits are now obsolete.
61056
61057 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61058
61059         * math/libm-test.inc (check_complex): Use asprintf.
61060
61061 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
61062
61063         * debug/pcprofiledump.c (print_version): Update copyright year.
61064         * malloc/memusagestat.c (print_version): Likewise.
61065
61066 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
61067
61068         [BZ #14831]
61069         * elf/Makefile (tests): Add tst-audit8.
61070         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
61071         ($(objpfx)tst-audit8.out): New target.
61072         (tst-audit8-ENV): New variable.
61073         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
61074         audit if l_reloc_result is NULL.
61075         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
61076         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
61077         * elf/tst-audit8.c: New file.
61078
61079 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61080
61081         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
61082         * misc/Makefile (CFLAGS-select.c): Define.
61083         * posix/Makefile (CFLAGS-pause.c): Define.
61084
61085 2012-11-13  David S. Miller  <davem@davemloft.net>
61086
61087         * crypt/Makefile: Move test targets after toplevel Rules
61088         inclusion.  Grab any necessary sysdep routines when linking.
61089         * crypt/md5.c (md5_process_block): Remove define, we will always
61090         name it __md5_process_block.
61091         (md5_finish_ctx): Update md5_process_block call.
61092         (md5_stream): Likewise.
61093         (md5_process_bytes): Likewise.
61094         (md5_process_block): Rename to __md5_process_block and move to ...
61095         * crypt/md5-block.c: ... here.
61096         * crypt/sha256.c (sha256_process_block): Move to ...
61097         * crypt/sha256-block.c: ... here.
61098         * crypt/sha512.c (sha512_process_block): Move to ...
61099         * crypt/sha512-block.c: ... here.
61100         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
61101         path.
61102         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
61103         * sysdeps/sparc/sparc64/multiarch/Makefile
61104         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
61105         crypt subdir.
61106         (localedef-aux): Add md5 crypto assembler when in locale subdir.
61107         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
61108         multiarch changes.
61109         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
61110         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
61111         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
61112         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
61113         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
61114         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
61115         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
61116         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
61117         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
61118         file.
61119         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
61120         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
61121         file.
61122         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
61123
61124 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
61125
61126         * timezone/tzselect.ksh: Update from tzcode git revision
61127         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
61128         * timezone/zdump.c: Likewise.
61129         * timezone/zic.c: Likewise.
61130         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
61131         in TZVERSION setting, not $(PKGVERSION).
61132         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
61133         REPORT_BUGS_TO settings.
61134
61135         [BZ #14838]
61136         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
61137         macro.
61138
61139 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61140
61141         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
61142         detection to immediately after _FP_ROUND().
61143         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
61144         bits are 0.
61145
61146 2012-11-11  David S. Miller  <davem@davemloft.net>
61147
61148         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
61149         inttypes.h
61150         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
61151         __close rather than their public counterparts.
61152
61153 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
61154
61155         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
61156         file.
61157         [UNIX98] (sem_timedwait): Do not expect.
61158         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
61159         [XPG4 || UNIX98] (sockatmark): Do not expect.
61160         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
61161         (clock_getcpuclockid): Do not expect.
61162         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
61163         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
61164         Do not expect.
61165         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
61166         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
61167         [UNIX98] (vwscanf): Likewise.
61168         [UNIX98] (vswscanf): Likewise.
61169
61170 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
61171
61172         * timezone/version.h: Remove file.
61173         * timezone/README: Do not refer to version.h.
61174         * timezone/Makefile ($(objpfx)zic.o): New dependency on
61175         $(objpfx)version.h.
61176         ($(objpfx)zdump.o): Likewise.
61177         ($(objpfx)version.h): New target.
61178
61179         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
61180         2012i.
61181         * timezone/README: Don't mention modification to tzselect.ksh.
61182         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
61183         work on unmodified tzselect.ksh.  Substitute version numbers in
61184         tzselect.ksh.
61185
61186         * Makefile (format-me): Remove.
61187         (INSTALL): Adjust indentation.  Use commands directly instead of
61188         using $(format-me).
61189
61190         * aclocal.m4 (ACX_PKGVERSION): New macro.
61191         (ACX_BUGURL): Likewise.
61192         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
61193         (PKGVERSION): New AC_DEFINE_UNQUOTED.
61194         (REPORT_BUGS_TO): Likewise.
61195         * configure: Regenerated.
61196         * config.h.in (PKGVERSION): New macro.
61197         (REPORT_BUGS_TO): Likewise.
61198         * config.make.in (PKGVERSION): New variable.
61199         (PKGVERSION_TEXI): Likewise.
61200         (REPORT_BUGS_TO): Likewise.
61201         (REPORT_BUGS_TEXI): Likewise.
61202         * Makefile (format-me): Use -I$(common-objpfx)manual.
61203         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
61204         ($(common-objpfx)manual/%): New target.
61205         (manual/%): Remove target.
61206         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
61207         (print_version): Use PKGVERSION.
61208         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
61209         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
61210         and REPORT_BUGS_TO.
61211         ($(objpfx)xtrace): Likewise.
61212         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
61213         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
61214         (print_version): Use PKGVERSION.
61215         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
61216         (do_version): Use PKGVERSION.
61217         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
61218         REPORT_BUGS_TO.
61219         (common-ldd-rewrite): Likewise.
61220         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
61221         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
61222         (print_version): Use PKGVERSION.
61223         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
61224         * elf/pldd.c (argp_program_bug_address): Remove variable.
61225         (more_help): New function.
61226         (argp): Use more_help.
61227         (print_version): Use PKGVERSION.
61228         * elf/sln.c (main): Use PKGVERSION.
61229         (usage): Use REPORT_BUGS_TO.
61230         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
61231         (top level): Use PKGVERSION.
61232         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
61233         (print_version): Use PKGVERSION.
61234         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
61235         (print_version): Use PKGVERSION.
61236         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
61237         (print_version): Use PKGVERSION.
61238         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
61239         (print_version): Use PKGVERSION.
61240         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
61241         (print_version): Use PKGVERSION.
61242         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
61243         (print_version): Use PKGVERSION.
61244         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
61245         and BUGURL.
61246         ($(objpfx)memusage): Likewise.
61247         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
61248         (do_version): Use PKGVERSION.
61249         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
61250         (print_version): Use PKGVERSION.
61251         * malloc/mtrace.pl ($PACKAGE): Remove variable.
61252         ($PKGVERSION): New variable.
61253         ($REPORT_BUGS_TO): Likewise.
61254         (usage): Use $REPORT_BUGS_TO.
61255         (top level): Use $PKGVERSION.
61256         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
61257         ($(objpfx)pkgvers.texi): New rule.
61258         ($(objpfx)stamp-pkgvers): Likewise.
61259         * manual/install.texi: Include pkgvers.texi.
61260         (--with-pkgversion): Document new configure option.
61261         (--with-bugurl): Likewise.
61262         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
61263         than necessarily for this particular distribution.  Use
61264         REPORT_BUGS_TO for where to report bugs.
61265         * INSTALL: Regenerated.
61266         * manual/libc.texinfo: Include pkgvers.texi.
61267         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
61268         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
61269         (print_version): Use PKGVERSION.
61270         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
61271         (print_version): Use PKGVERSION.
61272         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
61273         (print_version): Use PKGVERSION.
61274         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
61275         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
61276         macro.
61277         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
61278         (print_version): Use PKGVERSION.
61279         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
61280         (print_version): Use PKGVERSION.
61281         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
61282         and PKGVERSION.
61283
61284         * timezone/checktab.awk: Update from tzcode 2012i.
61285         * timezone/ialloc.c: Likewise.
61286         * timezone/private.h: Likewise.
61287         * timezone/scheck.c: Likewise.
61288         * timezone/tzfile.h: Likewise.
61289         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
61290         (TZVERSION): Hardcode tzcode version number.
61291         * timezone/zdump.c: Update from tzcode 2012i.
61292         * timezone/zic.c: Likewise.
61293         * timezone/version.h: New file.
61294         * timezone/README: Describe version.h.  Update upstream location.
61295
61296         [BZ #14824]
61297         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
61298         (mktemp): Enable declaration.
61299         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
61300         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
61301         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
61302         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
61303         Likewise.
61304         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
61305         Likewise.
61306         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
61307         Likewise.
61308         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
61309         Likewise.
61310         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
61311         Likewise.
61312         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
61313         Likewise.
61314
61315         [BZ #14821]
61316         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
61317         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
61318         for copies of such integer values.
61319         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
61320         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
61321
61322 2012-11-09  Andreas Jaeger  <aj@suse.de>
61323
61324         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
61325         definitions and declarations that are provided by
61326         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
61327
61328 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61329
61330         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
61331         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
61332         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
61333         definition.
61334
61335 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61336
61337         * elf/elf.h: Update comment before AArch64 relocations.
61338
61339 2012-11-07  David S. Miller  <davem@davemloft.net>
61340
61341         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
61342         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
61343         (__start_context): Declare.
61344         (__makecontext_ret): Delete.
61345         (__makecontext): Hook up __start_context instead of
61346         __makecontext_ret.
61347         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
61348         (sysdep_routines): Add __start_context when in stdlib.
61349
61350 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61351
61352         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
61353         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61354         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
61355         hardcoded "nm".
61356         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
61357         (READELF): New variable.  Use it instead of hardcoded "readelf".
61358
61359 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
61360
61361         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
61362         * sysdeps/x86/Makefile: Here.
61363         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
61364         * sysdeps/x86/tst-xmmymm.sh: This.
61365
61366 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61367
61368         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
61369         expectations.
61370         [UNIX98] (pthread_barrier_t): Do not expect.
61371         [UNIX98] (pthread_barrierattr_t): Likewise.
61372         [UNIX98] (pthread_spinlock_t): Likewise.
61373         [UNIX98] (pthread_barrier_destroy): Likewise.
61374         [UNIX98] (pthread_barrier_init): Likewise.
61375         [UNIX98] (pthread_barrier_wait): Likewise.
61376         [UNIX98] (pthread_barrierattr_destroy): Likewise.
61377         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
61378         [UNIX98] (pthread_barrierattr_init): Likewise.
61379         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
61380         [UNIX98] (pthread_getcpuclockid): Likewise.
61381         [UNIX98] (pthread_mutex_timedlock): Likewise.
61382         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
61383         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
61384         [UNIX98] (pthread_sigmask): Likewise.
61385         [UNIX98] (pthread_spin_destroy): Likewise.
61386         [UNIX98] (pthread_spin_init): Likewise.
61387         [UNIX98] (pthread_spin_lock): Likewise.
61388         [UNIX98] (pthread_spin_trylock): Likewise.
61389         [UNIX98] (pthread_spin_unlock): Likewise.
61390         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
61391         Do not expect.
61392         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
61393         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
61394         [XPG3 || XPG4] (pthread_cond_t): Likewise.
61395         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
61396         [XPG3 || XPG4] (pthread_key_t): Likewise.
61397         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
61398         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
61399         [XPG3 || XPG4] (pthread_once_t): Likewise.
61400         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
61401         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
61402         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
61403         [XPG3 || XPG4] (pthread_t): Likewise.
61404
61405         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
61406         not expect.
61407         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
61408
61409         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
61410         Change function return type to int.
61411
61412         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
61413         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
61414         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
61415         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
61416         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
61417         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
61418         [!POSIX] (posix_madvise): Likewise.
61419         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
61420         && !UNIX98].
61421         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
61422         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
61423         (mode_t): Likewise.
61424         (posix_mem_offset): Likewise.
61425         (posix_typed_mem_get_info): Likewise.
61426         (posix_typed_mem_open): Likewise.
61427
61428         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
61429         Change condition to [XOPEN2K8].
61430
61431         * conform/conformtest.pl: Preprocess allow-header data with -x c
61432         instead of from stdin.
61433         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
61434         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
61435         [C99-based standards] (cerfc): Likewise.
61436         [C99-based standards] (cexp2): Likewise.
61437         [C99-based standards] (cexpm1): Likewise.
61438         [C99-based standards] (clog10): Likewise.
61439         [C99-based standards] (clog1p): Likewise.
61440         [C99-based standards] (clog2): Likewise.
61441         [C99-based standards] (clgamma): Likewise.
61442         [C99-based standards] (ctgamma): Likewise.
61443         [C99-based standards] (cerff): Likewise.
61444         [C99-based standards] (cerfcf): Likewise.
61445         [C99-based standards] (cexp2f): Likewise.
61446         [C99-based standards] (cexpm1f): Likewise.
61447         [C99-based standards] (clog10f): Likewise.
61448         [C99-based standards] (clog1pf): Likewise.
61449         [C99-based standards] (clog2f): Likewise.
61450         [C99-based standards] (clgammaf): Likewise.
61451         [C99-based standards] (ctgammaf): Likewise.
61452         [C99-based standards] (cerfl): Likewise.
61453         [C99-based standards] (cerfcl): Likewise.
61454         [C99-based standards] (cexp2l): Likewise.
61455         [C99-based standards] (cexpm1l): Likewise.
61456         [C99-based standards] (clog10l): Likewise.
61457         [C99-based standards] (clog1pl): Likewise.
61458         [C99-based standards] (clog2l): Likewise.
61459         [C99-based standards] (clgammal): Likewise.
61460         [C99-based standards] (ctgammal): Likewise.
61461         * conform/data/inttypes.h-data [C99-based standards]: Include
61462         stdint.h-data.  Remove all expectations for stdint.h contents.
61463         [C99-based standards] (PRI*): Do not allow.
61464         [C99-based standards] (SCN*): Likewise.
61465         [C99-based standards] (*_t): Likewise.
61466         [C99-based-standards] (PRId8): Expect macro.
61467         [C99-based-standards] (PRIi8): Likewise.
61468         [C99-based-standards] (PRIo8): Likewise.
61469         [C99-based-standards] (PRIu8): Likewise.
61470         [C99-based-standards] (PRIx8): Likewise.
61471         [C99-based-standards] (PRIX8): Likewise.
61472         [C99-based-standards] (SCNd8): Likewise.
61473         [C99-based-standards] (SCNi8): Likewise.
61474         [C99-based-standards] (SCNo8): Likewise.
61475         [C99-based-standards] (SCNu8): Likewise.
61476         [C99-based-standards] (SCNx8): Likewise.
61477         [C99-based-standards] (PRIdLEAST8): Likewise.
61478         [C99-based-standards] (PRIiLEAST8): Likewise.
61479         [C99-based-standards] (PRIoLEAST8): Likewise.
61480         [C99-based-standards] (PRIuLEAST8): Likewise.
61481         [C99-based-standards] (PRIxLEAST8): Likewise.
61482         [C99-based-standards] (PRIXLEAST8): Likewise.
61483         [C99-based-standards] (SCNdLEAST8): Likewise.
61484         [C99-based-standards] (SCNiLEAST8): Likewise.
61485         [C99-based-standards] (SCNoLEAST8): Likewise.
61486         [C99-based-standards] (SCNuLEAST8): Likewise.
61487         [C99-based-standards] (SCNxLEAST8): Likewise.
61488         [C99-based-standards] (PRIdFAST8): Likewise.
61489         [C99-based-standards] (PRIiFAST8): Likewise.
61490         [C99-based-standards] (PRIoFAST8): Likewise.
61491         [C99-based-standards] (PRIuFAST8): Likewise.
61492         [C99-based-standards] (PRIxFAST8): Likewise.
61493         [C99-based-standards] (PRIXFAST8): Likewise.
61494         [C99-based-standards] (SCNdFAST8): Likewise.
61495         [C99-based-standards] (SCNiFAST8): Likewise.
61496         [C99-based-standards] (SCNoFAST8): Likewise.
61497         [C99-based-standards] (SCNuFAST8): Likewise.
61498         [C99-based-standards] (SCNxFAST8): Likewise.
61499         [C99-based-standards] (PRId16): Likewise.
61500         [C99-based-standards] (PRIi16): Likewise.
61501         [C99-based-standards] (PRIo16): Likewise.
61502         [C99-based-standards] (PRIu16): Likewise.
61503         [C99-based-standards] (PRIx16): Likewise.
61504         [C99-based-standards] (PRIX16): Likewise.
61505         [C99-based-standards] (SCNd16): Likewise.
61506         [C99-based-standards] (SCNi16): Likewise.
61507         [C99-based-standards] (SCNo16): Likewise.
61508         [C99-based-standards] (SCNu16): Likewise.
61509         [C99-based-standards] (SCNx16): Likewise.
61510         [C99-based-standards] (PRIdLEAST16): Likewise.
61511         [C99-based-standards] (PRIiLEAST16): Likewise.
61512         [C99-based-standards] (PRIoLEAST16): Likewise.
61513         [C99-based-standards] (PRIuLEAST16): Likewise.
61514         [C99-based-standards] (PRIxLEAST16): Likewise.
61515         [C99-based-standards] (PRIXLEAST16): Likewise.
61516         [C99-based-standards] (SCNdLEAST16): Likewise.
61517         [C99-based-standards] (SCNiLEAST16): Likewise.
61518         [C99-based-standards] (SCNoLEAST16): Likewise.
61519         [C99-based-standards] (SCNuLEAST16): Likewise.
61520         [C99-based-standards] (SCNxLEAST16): Likewise.
61521         [C99-based-standards] (PRIdFAST16): Likewise.
61522         [C99-based-standards] (PRIiFAST16): Likewise.
61523         [C99-based-standards] (PRIoFAST16): Likewise.
61524         [C99-based-standards] (PRIuFAST16): Likewise.
61525         [C99-based-standards] (PRIxFAST16): Likewise.
61526         [C99-based-standards] (PRIXFAST16): Likewise.
61527         [C99-based-standards] (SCNdFAST16): Likewise.
61528         [C99-based-standards] (SCNiFAST16): Likewise.
61529         [C99-based-standards] (SCNoFAST16): Likewise.
61530         [C99-based-standards] (SCNuFAST16): Likewise.
61531         [C99-based-standards] (SCNxFAST16): Likewise.
61532         [C99-based-standards] (PRId32): Likewise.
61533         [C99-based-standards] (PRIi32): Likewise.
61534         [C99-based-standards] (PRIo32): Likewise.
61535         [C99-based-standards] (PRIu32): Likewise.
61536         [C99-based-standards] (PRIx32): Likewise.
61537         [C99-based-standards] (PRIX32): Likewise.
61538         [C99-based-standards] (SCNd32): Likewise.
61539         [C99-based-standards] (SCNi32): Likewise.
61540         [C99-based-standards] (SCNo32): Likewise.
61541         [C99-based-standards] (SCNu32): Likewise.
61542         [C99-based-standards] (SCNx32): Likewise.
61543         [C99-based-standards] (PRIdLEAST32): Likewise.
61544         [C99-based-standards] (PRIiLEAST32): Likewise.
61545         [C99-based-standards] (PRIoLEAST32): Likewise.
61546         [C99-based-standards] (PRIuLEAST32): Likewise.
61547         [C99-based-standards] (PRIxLEAST32): Likewise.
61548         [C99-based-standards] (PRIXLEAST32): Likewise.
61549         [C99-based-standards] (SCNdLEAST32): Likewise.
61550         [C99-based-standards] (SCNiLEAST32): Likewise.
61551         [C99-based-standards] (SCNoLEAST32): Likewise.
61552         [C99-based-standards] (SCNuLEAST32): Likewise.
61553         [C99-based-standards] (SCNxLEAST32): Likewise.
61554         [C99-based-standards] (PRIdFAST32): Likewise.
61555         [C99-based-standards] (PRIiFAST32): Likewise.
61556         [C99-based-standards] (PRIoFAST32): Likewise.
61557         [C99-based-standards] (PRIuFAST32): Likewise.
61558         [C99-based-standards] (PRIxFAST32): Likewise.
61559         [C99-based-standards] (PRIXFAST32): Likewise.
61560         [C99-based-standards] (SCNdFAST32): Likewise.
61561         [C99-based-standards] (SCNiFAST32): Likewise.
61562         [C99-based-standards] (SCNoFAST32): Likewise.
61563         [C99-based-standards] (SCNuFAST32): Likewise.
61564         [C99-based-standards] (SCNxFAST32): Likewise.
61565         [C99-based-standards] (PRId64): Likewise.
61566         [C99-based-standards] (PRIi64): Likewise.
61567         [C99-based-standards] (PRIo64): Likewise.
61568         [C99-based-standards] (PRIu64): Likewise.
61569         [C99-based-standards] (PRIx64): Likewise.
61570         [C99-based-standards] (PRIX64): Likewise.
61571         [C99-based-standards] (SCNd64): Likewise.
61572         [C99-based-standards] (SCNi64): Likewise.
61573         [C99-based-standards] (SCNo64): Likewise.
61574         [C99-based-standards] (SCNu64): Likewise.
61575         [C99-based-standards] (SCNx64): Likewise.
61576         [C99-based-standards] (PRIdLEAST64): Likewise.
61577         [C99-based-standards] (PRIiLEAST64): Likewise.
61578         [C99-based-standards] (PRIoLEAST64): Likewise.
61579         [C99-based-standards] (PRIuLEAST64): Likewise.
61580         [C99-based-standards] (PRIxLEAST64): Likewise.
61581         [C99-based-standards] (PRIXLEAST64): Likewise.
61582         [C99-based-standards] (SCNdLEAST64): Likewise.
61583         [C99-based-standards] (SCNiLEAST64): Likewise.
61584         [C99-based-standards] (SCNoLEAST64): Likewise.
61585         [C99-based-standards] (SCNuLEAST64): Likewise.
61586         [C99-based-standards] (SCNxLEAST64): Likewise.
61587         [C99-based-standards] (PRIdFAST64): Likewise.
61588         [C99-based-standards] (PRIiFAST64): Likewise.
61589         [C99-based-standards] (PRIoFAST64): Likewise.
61590         [C99-based-standards] (PRIuFAST64): Likewise.
61591         [C99-based-standards] (PRIxFAST64): Likewise.
61592         [C99-based-standards] (PRIXFAST64): Likewise.
61593         [C99-based-standards] (SCNdFAST64): Likewise.
61594         [C99-based-standards] (SCNiFAST64): Likewise.
61595         [C99-based-standards] (SCNoFAST64): Likewise.
61596         [C99-based-standards] (SCNuFAST64): Likewise.
61597         [C99-based-standards] (SCNxFAST64): Likewise.
61598         [C99-based-standards] (PRIdMAX): Likewise.
61599         [C99-based-standards] (PRIiMAX): Likewise.
61600         [C99-based-standards] (PRIoMAX): Likewise.
61601         [C99-based-standards] (PRIuMAX): Likewise.
61602         [C99-based-standards] (PRIxMAX): Likewise.
61603         [C99-based-standards] (PRIXMAX): Likewise.
61604         [C99-based-standards] (SCNdMAX): Likewise.
61605         [C99-based-standards] (SCNiMAX): Likewise.
61606         [C99-based-standards] (SCNoMAX): Likewise.
61607         [C99-based-standards] (SCNuMAX): Likewise.
61608         [C99-based-standards] (SCNxMAX): Likewise.
61609         [C99-based-standards] (PRIdPTR): Likewise.
61610         [C99-based-standards] (PRIiPTR): Likewise.
61611         [C99-based-standards] (PRIoPTR): Likewise.
61612         [C99-based-standards] (PRIuPTR): Likewise.
61613         [C99-based-standards] (PRIxPTR): Likewise.
61614         [C99-based-standards] (PRIXPTR): Likewise.
61615         [C99-based-standards] (SCNdPTR): Likewise.
61616         [C99-based-standards] (SCNiPTR): Likewise.
61617         [C99-based-standards] (SCNoPTR): Likewise.
61618         [C99-based-standards] (SCNuPTR): Likewise.
61619         [C99-based-standards] (SCNxPTR): Likewise.
61620         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
61621         allow.
61622         * conform/data/stdint.h-data: Update comments to clarify
61623         requirements.
61624         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
61625         type.
61626         [C99-based standards] (INT8_MAX): Likewise.
61627         [C99-based standards] (INT16_MIN): Likewise.
61628         [C99-based standards] (INT16_MAX): Likewise.
61629         [C99-based standards] (INT32_MIN): Likewise.
61630         [C99-based standards] (INT32_MAX): Likewise.
61631         [C99-based standards] (INT64_MIN): Likewise.
61632         [C99-based standards] (INT64_MAX): Likewise.
61633         [C99-based standards] (UINT8_MAX): Likewise.
61634         [C99-based standards] (UINT16_MAX): Likewise.
61635         [C99-based standards] (UINT32_MAX): Likewise.
61636         [C99-based standards] (UINT64_MAX): Likewise.
61637         [C99-based standards] (INT_LEAST8_MIN): Likewise.
61638         [C99-based standards] (INT_LEAST8_MAX): Likewise.
61639         [C99-based standards] (INT_LEAST16_MIN): Likewise.
61640         [C99-based standards] (INT_LEAST16_MAX): Likewise.
61641         [C99-based standards] (INT_LEAST32_MIN): Likewise.
61642         [C99-based standards] (INT_LEAST32_MAX): Likewise.
61643         [C99-based standards] (INT_LEAST64_MIN): Likewise.
61644         [C99-based standards] (INT_LEAST64_MAX): Likewise.
61645         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
61646         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
61647         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
61648         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
61649         [C99-based standards] (INT_FAST8_MIN): Likewise.
61650         [C99-based standards] (INT_FAST8_MAX): Likewise.
61651         [C99-based standards] (INT_FAST16_MIN): Likewise.
61652         [C99-based standards] (INT_FAST16_MAX): Likewise.
61653         [C99-based standards] (INT_FAST32_MIN): Likewise.
61654         [C99-based standards] (INT_FAST32_MAX): Likewise.
61655         [C99-based standards] (INT_FAST64_MIN): Likewise.
61656         [C99-based standards] (INT_FAST64_MAX): Likewise.
61657         [C99-based standards] (UINT_FAST8_MAX): Likewise.
61658         [C99-based standards] (UINT_FAST16_MAX): Likewise.
61659         [C99-based standards] (UINT_FAST32_MAX): Likewise.
61660         [C99-based standards] (UINT_FAST64_MAX): Likewise.
61661         [C99-based standards] (INTPTR_MIN): Likewise.
61662         [C99-based standards] (INTPTR_MAX): Likewise.
61663         [C99-based standards] (UINTPTR_MAX): Likewise.
61664         [C99-based standards] (INTMAX_MIN): Likewise.
61665         [C99-based standards] (INTMAX_MAX): Likewise.
61666         [C99-based standards] (UINTMAX_MAX): Likewise.
61667         [C99-based standards] (PTRDIFF_MIN): Likewise.
61668         [C99-based standards] (PTRDIFF_MAX): Likewise.
61669         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
61670         [C99-based standards] (SIZE_MAX): Likewise.
61671         [C99-based standards] (WCHAR_MAX): Likewise.
61672         [C99-based standards] (WINT_MAX): Likewise.
61673         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
61674         constraint on value.
61675         [C99-based standards] (WCHAR_MIN): Likewise.
61676         [C99-based standards] (WINT_MIN): Likewise.
61677         [C99-based standards] (*_t): Allow.
61678         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
61679         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
61680         Include math.h-data and complex.h-data.  Remove all expectations
61681         of math.h and complex.h contents.
61682         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
61683         at end of line.
61684         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
61685         (struct tm): Expect tag.
61686         [C99-based-standards] (wcstof): Expect function.
61687         [C99-based-standards] (wcstold): Likewise.
61688         [C99-based-standards] (wcstoll): Likewise.
61689         [C99-based-standards] (wcstoull): Likewise.
61690         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
61691         macro-int-constant.  Specify type.
61692         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
61693         constraint on value.
61694         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61695         Specify type.
61696         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
61697         Specify value.
61698         [ISO C standards]: Do not allow headers.
61699         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
61700         wcs[abcdefghijklmnopqrstuvwxyz]*.
61701         [ISO C standards] (*_t): Do not allow.
61702         * conform/data/wctype.h-data [C99-based standards] (iswblank):
61703         Expect function.
61704         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
61705         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61706         Specify type.
61707         [ISO C standards]: Do not allow headers.
61708         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
61709         is[abcdefghijklmnopqrstuvwxyz]*.
61710         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
61711         to[abcdefghijklmnopqrstuvwxyz]*.
61712         [ISO C standards] (*_t): Do not allow.
61713         * conform/data/stdalign.h-data: New file.
61714         * conform/data/stdbool.h-data: Likewise.
61715         * conform/data/stdnoreturn.h-data: Likewise.
61716
61717 2012-11-07  Roland McGrath  <roland@hack.frob.com>
61718
61719         [BZ #14815]
61720         * manual/filesys.texi (Directory Entries): Typo fix.
61721         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
61722
61723 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61724
61725         * elf/elf.h (EM_AARCH64): New macro.
61726         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
61727         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
61728         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
61729         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
61730         (R_AARCH64_TLSDESC): Likewise.
61731         (NT_ARM_TLS): Likewise.
61732         (NT_ARM_HW_BREAK): Likewise.
61733         (NT_ARM_HW_WATCH): Likewise.
61734
61735 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61736
61737         [BZ #14811]
61738         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
61739         (__ieee754_powl): Saturate nonzero exponents with absolute value
61740         below 0x1p-79 to +/- 0x1p-79.
61741         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
61742         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
61743         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
61744         nonzero exponents with absolute value below 0x1p-32 to +/-
61745         0x1p-32.
61746         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
61747         (__ieee754_powl): Saturate nonzero exponents with absolute value
61748         below 0x1p-79 to +/- 0x1p-79.
61749         * math/libm-test.inc (pow_test): Add more tests.
61750
61751 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61752
61753         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
61754         _dl_s390_cap_flags with kernel. Increase string length.
61755         (_dl_s390_platforms): Add z196 and zEC12.
61756
61757 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61758
61759         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
61760         Change XOPEN21K to XOPEN2K.
61761
61762 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
61763
61764         * string/memmove.c: Use memcpy when possible.
61765
61766 2012-11-06  Andreas Jaeger  <aj@suse.de>
61767
61768         * po/eo.po: Update from translation team.
61769
61770 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
61771
61772         [BZ #14793]
61773         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
61774         exponent and small x and y exponents, scale x or y up.  Increase
61775         by 2 the exponent used in scaling up.
61776         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61777         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61778         * math/libm-test.inc (fma_test): Add more tests.
61779         (fma_test_towardzero): Likewise.
61780         (fma_test_downward): Likewise.
61781         (fma_test_upward): Likewise.
61782
61783 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
61784
61785         [BZ #14805]
61786         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
61787         fenv_t *.
61788
61789         [BZ #14801]
61790         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
61791         namespace for names of struct fields.
61792         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
61793         fenv_t fields.
61794         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
61795         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
61796
61797 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61798
61799         [BZ #3665]
61800         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
61801
61802 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61803
61804         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
61805         PTR_DEMANGLE.
61806
61807         [BZ #5246]
61808         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
61809         PTR_DEMANGLE.
61810
61811 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
61812
61813         [BZ #14797]
61814         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
61815         definitely overflow as x * y not x * y + z.
61816         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61817         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61818         * math/libm-test.inc (fma_test): Add more tests.
61819         (fma_test_towardzero): Likewise.
61820         (fma_test_downward): Likewise.
61821         (fma_test_upward): Likewise.
61822
61823 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61824
61825         [BZ #157]
61826
61827         * include/stub-tag.h: Remove file.
61828         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
61829         '#include' of it.
61830         * manual/maint.texi (Porting): Don't reference it.
61831         * Makerules ($(objpfx)stubs): Likewise.
61832         * dirent/closedir.c: Don't include <stub-tag.h>.
61833         * dirent/dirfd.c: Likewise.
61834         * dirent/fdopendir.c: Likewise.
61835         * dirent/getdents.c: Likewise.
61836         * dirent/getdents64.c: Likewise.
61837         * dirent/opendir.c: Likewise.
61838         * dirent/readdir.c: Likewise.
61839         * dirent/readdir64.c: Likewise.
61840         * dirent/readdir64_r.c: Likewise.
61841         * dirent/readdir_r.c: Likewise.
61842         * dirent/rewinddir.c: Likewise.
61843         * dirent/seekdir.c: Likewise.
61844         * dirent/telldir.c: Likewise.
61845         * gmon/profil.c: Likewise.
61846         * grp/setgroups.c: Likewise.
61847         * inet/if_index.c: Likewise.
61848         * io/access.c: Likewise.
61849         * io/chdir.c: Likewise.
61850         * io/chmod.c: Likewise.
61851         * io/chown.c: Likewise.
61852         * io/close.c: Likewise.
61853         * io/dup.c: Likewise.
61854         * io/dup2.c: Likewise.
61855         * io/dup3.c: Likewise.
61856         * io/euidaccess.c: Likewise.
61857         * io/faccessat.c: Likewise.
61858         * io/fchdir.c: Likewise.
61859         * io/fchmod.c: Likewise.
61860         * io/fchmodat.c: Likewise.
61861         * io/fchown.c: Likewise.
61862         * io/fchownat.c: Likewise.
61863         * io/fcntl.c: Likewise.
61864         * io/flock.c: Likewise.
61865         * io/fstatfs.c: Likewise.
61866         * io/fstatfs64.c: Likewise.
61867         * io/fstatvfs.c: Likewise.
61868         * io/fstatvfs64.c: Likewise.
61869         * io/futimens.c: Likewise.
61870         * io/fxstat.c: Likewise.
61871         * io/fxstat64.c: Likewise.
61872         * io/fxstatat.c: Likewise.
61873         * io/fxstatat64.c: Likewise.
61874         * io/getcwd.c: Likewise.
61875         * io/isatty.c: Likewise.
61876         * io/lchmod.c: Likewise.
61877         * io/lchown.c: Likewise.
61878         * io/link.c: Likewise.
61879         * io/linkat.c: Likewise.
61880         * io/lseek.c: Likewise.
61881         * io/lseek64.c: Likewise.
61882         * io/lxstat64.c: Likewise.
61883         * io/mkdir.c: Likewise.
61884         * io/mkdirat.c: Likewise.
61885         * io/mkfifo.c: Likewise.
61886         * io/mkfifoat.c: Likewise.
61887         * io/open.c: Likewise.
61888         * io/open64.c: Likewise.
61889         * io/openat.c: Likewise.
61890         * io/openat64.c: Likewise.
61891         * io/pipe.c: Likewise.
61892         * io/pipe2.c: Likewise.
61893         * io/poll.c: Likewise.
61894         * io/posix_fadvise.c: Likewise.
61895         * io/posix_fadvise64.c: Likewise.
61896         * io/posix_fallocate.c: Likewise.
61897         * io/posix_fallocate64.c: Likewise.
61898         * io/read.c: Likewise.
61899         * io/readlink.c: Likewise.
61900         * io/readlinkat.c: Likewise.
61901         * io/rmdir.c: Likewise.
61902         * io/sendfile.c: Likewise.
61903         * io/sendfile64.c: Likewise.
61904         * io/statfs.c: Likewise.
61905         * io/statfs64.c: Likewise.
61906         * io/statvfs.c: Likewise.
61907         * io/statvfs64.c: Likewise.
61908         * io/symlink.c: Likewise.
61909         * io/symlinkat.c: Likewise.
61910         * io/ttyname.c: Likewise.
61911         * io/ttyname_r.c: Likewise.
61912         * io/umask.c: Likewise.
61913         * io/unlink.c: Likewise.
61914         * io/unlinkat.c: Likewise.
61915         * io/utime.c: Likewise.
61916         * io/utimensat.c: Likewise.
61917         * io/write.c: Likewise.
61918         * io/xmknod.c: Likewise.
61919         * io/xmknodat.c: Likewise.
61920         * io/xstat.c: Likewise.
61921         * io/xstat64.c: Likewise.
61922         * login/getpt.c: Likewise.
61923         * login/grantpt.c: Likewise.
61924         * login/unlockpt.c: Likewise.
61925         * math/e_acoshl.c: Likewise.
61926         * math/e_acosl.c: Likewise.
61927         * math/e_asinl.c: Likewise.
61928         * math/e_atan2l.c: Likewise.
61929         * math/e_atanhl.c: Likewise.
61930         * math/e_coshl.c: Likewise.
61931         * math/e_expl.c: Likewise.
61932         * math/e_fmodl.c: Likewise.
61933         * math/e_gammal_r.c: Likewise.
61934         * math/e_hypotl.c: Likewise.
61935         * math/e_j0l.c: Likewise.
61936         * math/e_j1l.c: Likewise.
61937         * math/e_jnl.c: Likewise.
61938         * math/e_lgammal_r.c: Likewise.
61939         * math/e_log10l.c: Likewise.
61940         * math/e_log2l.c: Likewise.
61941         * math/e_logl.c: Likewise.
61942         * math/e_powl.c: Likewise.
61943         * math/e_rem_pio2l.c: Likewise.
61944         * math/e_sinhl.c: Likewise.
61945         * math/e_sqrtl.c: Likewise.
61946         * math/fclrexcpt.c: Likewise.
61947         * math/fedisblxcpt.c: Likewise.
61948         * math/feenablxcpt.c: Likewise.
61949         * math/fegetenv.c: Likewise.
61950         * math/fegetexcept.c: Likewise.
61951         * math/fegetround.c: Likewise.
61952         * math/feholdexcpt.c: Likewise.
61953         * math/fesetenv.c: Likewise.
61954         * math/fesetround.c: Likewise.
61955         * math/feupdateenv.c: Likewise.
61956         * math/fgetexcptflg.c: Likewise.
61957         * math/fraiseexcpt.c: Likewise.
61958         * math/fsetexcptflg.c: Likewise.
61959         * math/ftestexcept.c: Likewise.
61960         * math/k_cosl.c: Likewise.
61961         * math/k_rem_pio2l.c: Likewise.
61962         * math/k_sinl.c: Likewise.
61963         * math/k_tanl.c: Likewise.
61964         * math/s_asinhl.c: Likewise.
61965         * math/s_atanl.c: Likewise.
61966         * math/s_cbrtl.c: Likewise.
61967         * math/s_erfl.c: Likewise.
61968         * math/s_expm1l.c: Likewise.
61969         * math/s_log1pl.c: Likewise.
61970         * math/s_tanhl.c: Likewise.
61971         * misc/acct.c: Likewise.
61972         * misc/brk.c: Likewise.
61973         * misc/chflags.c: Likewise.
61974         * misc/chroot.c: Likewise.
61975         * misc/fchflags.c: Likewise.
61976         * misc/fgetxattr.c: Likewise.
61977         * misc/flistxattr.c: Likewise.
61978         * misc/fremovexattr.c: Likewise.
61979         * misc/fsetxattr.c: Likewise.
61980         * misc/fsync.c: Likewise.
61981         * misc/ftruncate.c: Likewise.
61982         * misc/futimes.c: Likewise.
61983         * misc/futimesat.c: Likewise.
61984         * misc/getdomain.c: Likewise.
61985         * misc/getdtsz.c: Likewise.
61986         * misc/gethostid.c: Likewise.
61987         * misc/gethostname.c: Likewise.
61988         * misc/getloadavg.c: Likewise.
61989         * misc/getpagesize.c: Likewise.
61990         * misc/getsysstats.c: Likewise.
61991         * misc/getxattr.c: Likewise.
61992         * misc/gtty.c: Likewise.
61993         * misc/ioctl.c: Likewise.
61994         * misc/lgetxattr.c: Likewise.
61995         * misc/listxattr.c: Likewise.
61996         * misc/llistxattr.c: Likewise.
61997         * misc/lremovexattr.c: Likewise.
61998         * misc/lsetxattr.c: Likewise.
61999         * misc/lutimes.c: Likewise.
62000         * misc/madvise.c: Likewise.
62001         * misc/mincore.c: Likewise.
62002         * misc/mlock.c: Likewise.
62003         * misc/mlockall.c: Likewise.
62004         * misc/mmap.c: Likewise.
62005         * misc/mprotect.c: Likewise.
62006         * misc/msync.c: Likewise.
62007         * misc/munlock.c: Likewise.
62008         * misc/munlockall.c: Likewise.
62009         * misc/munmap.c: Likewise.
62010         * misc/preadv.c: Likewise.
62011         * misc/preadv64.c: Likewise.
62012         * misc/ptrace.c: Likewise.
62013         * misc/pwritev.c: Likewise.
62014         * misc/pwritev64.c: Likewise.
62015         * misc/readv.c: Likewise.
62016         * misc/reboot.c: Likewise.
62017         * misc/remap_file_pages.c: Likewise.
62018         * misc/removexattr.c: Likewise.
62019         * misc/revoke.c: Likewise.
62020         * misc/select.c: Likewise.
62021         * misc/setdomain.c: Likewise.
62022         * misc/setegid.c: Likewise.
62023         * misc/seteuid.c: Likewise.
62024         * misc/sethostid.c: Likewise.
62025         * misc/sethostname.c: Likewise.
62026         * misc/setregid.c: Likewise.
62027         * misc/setreuid.c: Likewise.
62028         * misc/setxattr.c: Likewise.
62029         * misc/sstk.c: Likewise.
62030         * misc/stty.c: Likewise.
62031         * misc/swapoff.c: Likewise.
62032         * misc/swapon.c: Likewise.
62033         * misc/sync.c: Likewise.
62034         * misc/syncfs.c: Likewise.
62035         * misc/syscall.c: Likewise.
62036         * misc/truncate.c: Likewise.
62037         * misc/ualarm.c: Likewise.
62038         * misc/usleep.c: Likewise.
62039         * misc/ustat.c: Likewise.
62040         * misc/utimes.c: Likewise.
62041         * misc/vhangup.c: Likewise.
62042         * misc/writev.c: Likewise.
62043         * posix/_exit.c: Likewise.
62044         * posix/alarm.c: Likewise.
62045         * posix/execve.c: Likewise.
62046         * posix/fexecve.c: Likewise.
62047         * posix/fork.c: Likewise.
62048         * posix/fpathconf.c: Likewise.
62049         * posix/getaddrinfo.c: Likewise.
62050         * posix/getegid.c: Likewise.
62051         * posix/geteuid.c: Likewise.
62052         * posix/getgid.c: Likewise.
62053         * posix/getgroups.c: Likewise.
62054         * posix/getlogin.c: Likewise.
62055         * posix/getlogin_r.c: Likewise.
62056         * posix/getpgid.c: Likewise.
62057         * posix/getpid.c: Likewise.
62058         * posix/getppid.c: Likewise.
62059         * posix/getresgid.c: Likewise.
62060         * posix/getresuid.c: Likewise.
62061         * posix/getsid.c: Likewise.
62062         * posix/getuid.c: Likewise.
62063         * posix/glob64.c: Likewise.
62064         * posix/nanosleep.c: Likewise.
62065         * posix/pathconf.c: Likewise.
62066         * posix/pause.c: Likewise.
62067         * posix/posix_madvise.c: Likewise.
62068         * posix/pread.c: Likewise.
62069         * posix/pread64.c: Likewise.
62070         * posix/pwrite.c: Likewise.
62071         * posix/pwrite64.c: Likewise.
62072         * posix/sched_getaffinity.c: Likewise.
62073         * posix/sched_getp.c: Likewise.
62074         * posix/sched_gets.c: Likewise.
62075         * posix/sched_primax.c: Likewise.
62076         * posix/sched_primin.c: Likewise.
62077         * posix/sched_rr_gi.c: Likewise.
62078         * posix/sched_setaffinity.c: Likewise.
62079         * posix/sched_setp.c: Likewise.
62080         * posix/sched_sets.c: Likewise.
62081         * posix/sched_yield.c: Likewise.
62082         * posix/setgid.c: Likewise.
62083         * posix/setlogin.c: Likewise.
62084         * posix/setpgid.c: Likewise.
62085         * posix/setresgid.c: Likewise.
62086         * posix/setresuid.c: Likewise.
62087         * posix/setsid.c: Likewise.
62088         * posix/setuid.c: Likewise.
62089         * posix/sleep.c: Likewise.
62090         * posix/spawni.c: Likewise.
62091         * posix/sysconf.c: Likewise.
62092         * posix/times.c: Likewise.
62093         * posix/wait.c: Likewise.
62094         * posix/wait3.c: Likewise.
62095         * posix/wait4.c: Likewise.
62096         * posix/waitpid.c: Likewise.
62097         * resolv/gai_sigqueue.c: Likewise.
62098         * resource/getpriority.c: Likewise.
62099         * resource/getrlimit.c: Likewise.
62100         * resource/getrusage.c: Likewise.
62101         * resource/nice.c: Likewise.
62102         * resource/setpriority.c: Likewise.
62103         * resource/setrlimit.c: Likewise.
62104         * resource/ulimit.c: Likewise.
62105         * rt/aio_cancel.c: Likewise.
62106         * rt/aio_fsync.c: Likewise.
62107         * rt/aio_read.c: Likewise.
62108         * rt/aio_sigqueue.c: Likewise.
62109         * rt/aio_suspend.c: Likewise.
62110         * rt/aio_write.c: Likewise.
62111         * rt/clock_getres.c: Likewise.
62112         * rt/clock_gettime.c: Likewise.
62113         * rt/clock_nanosleep.c: Likewise.
62114         * rt/clock_settime.c: Likewise.
62115         * rt/lio_listio.c: Likewise.
62116         * rt/mq_close.c: Likewise.
62117         * rt/mq_getattr.c: Likewise.
62118         * rt/mq_notify.c: Likewise.
62119         * rt/mq_open.c: Likewise.
62120         * rt/mq_receive.c: Likewise.
62121         * rt/mq_send.c: Likewise.
62122         * rt/mq_setattr.c: Likewise.
62123         * rt/mq_timedreceive.c: Likewise.
62124         * rt/mq_timedsend.c: Likewise.
62125         * rt/mq_unlink.c: Likewise.
62126         * rt/shm_open.c: Likewise.
62127         * rt/shm_unlink.c: Likewise.
62128         * rt/timer_create.c: Likewise.
62129         * rt/timer_delete.c: Likewise.
62130         * rt/timer_getoverr.c: Likewise.
62131         * rt/timer_gettime.c: Likewise.
62132         * rt/timer_settime.c: Likewise.
62133         * setjmp/__longjmp.c: Likewise.
62134         * setjmp/setjmp.c: Likewise.
62135         * signal/kill.c: Likewise.
62136         * signal/killpg.c: Likewise.
62137         * signal/raise.c: Likewise.
62138         * signal/sigaction.c: Likewise.
62139         * signal/sigaltstack.c: Likewise.
62140         * signal/sigblock.c: Likewise.
62141         * signal/sigignore.c: Likewise.
62142         * signal/sigintr.c: Likewise.
62143         * signal/signal.c: Likewise.
62144         * signal/sigpause.c: Likewise.
62145         * signal/sigpending.c: Likewise.
62146         * signal/sigqueue.c: Likewise.
62147         * signal/sigreturn.c: Likewise.
62148         * signal/sigset.c: Likewise.
62149         * signal/sigsetmask.c: Likewise.
62150         * signal/sigstack.c: Likewise.
62151         * signal/sigsuspend.c: Likewise.
62152         * signal/sigtimedwait.c: Likewise.
62153         * signal/sigvec.c: Likewise.
62154         * signal/sigwait.c: Likewise.
62155         * signal/sigwaitinfo.c: Likewise.
62156         * signal/sysv_signal.c: Likewise.
62157         * socket/accept.c: Likewise.
62158         * socket/accept4.c: Likewise.
62159         * socket/bind.c: Likewise.
62160         * socket/connect.c: Likewise.
62161         * socket/getpeername.c: Likewise.
62162         * socket/getsockname.c: Likewise.
62163         * socket/getsockopt.c: Likewise.
62164         * socket/isfdtype.c: Likewise.
62165         * socket/listen.c: Likewise.
62166         * socket/recv.c: Likewise.
62167         * socket/recvfrom.c: Likewise.
62168         * socket/recvmsg.c: Likewise.
62169         * socket/send.c: Likewise.
62170         * socket/sendmsg.c: Likewise.
62171         * socket/sendto.c: Likewise.
62172         * socket/setsockopt.c: Likewise.
62173         * socket/shutdown.c: Likewise.
62174         * socket/sockatmark.c: Likewise.
62175         * socket/socket.c: Likewise.
62176         * socket/socketpair.c: Likewise.
62177         * stdio-common/ctermid.c: Likewise.
62178         * stdio-common/cuserid.c: Likewise.
62179         * stdio-common/remove.c: Likewise.
62180         * stdio-common/rename.c: Likewise.
62181         * stdio-common/renameat.c: Likewise.
62182         * stdio-common/tempname.c: Likewise.
62183         * stdlib/getcontext.c: Likewise.
62184         * stdlib/makecontext.c: Likewise.
62185         * stdlib/setcontext.c: Likewise.
62186         * stdlib/swapcontext.c: Likewise.
62187         * stdlib/system.c: Likewise.
62188         * streams/fattach.c: Likewise.
62189         * streams/fdetach.c: Likewise.
62190         * streams/getmsg.c: Likewise.
62191         * streams/getpmsg.c: Likewise.
62192         * streams/putmsg.c: Likewise.
62193         * streams/putpmsg.c: Likewise.
62194         * sysdeps/unix/bsd/getpt.c: Likewise.
62195         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
62196         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
62197         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
62198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
62199         Likewise.
62200         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
62201         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
62202         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
62203         * sysvipc/msgctl.c: Likewise.
62204         * sysvipc/msgget.c: Likewise.
62205         * sysvipc/msgrcv.c: Likewise.
62206         * sysvipc/msgsnd.c: Likewise.
62207         * sysvipc/semctl.c: Likewise.
62208         * sysvipc/semget.c: Likewise.
62209         * sysvipc/semop.c: Likewise.
62210         * sysvipc/semtimedop.c: Likewise.
62211         * sysvipc/shmat.c: Likewise.
62212         * sysvipc/shmctl.c: Likewise.
62213         * sysvipc/shmdt.c: Likewise.
62214         * sysvipc/shmget.c: Likewise.
62215         * termios/tcdrain.c: Likewise.
62216         * termios/tcflow.c: Likewise.
62217         * termios/tcflush.c: Likewise.
62218         * termios/tcgetattr.c: Likewise.
62219         * termios/tcgetpgrp.c: Likewise.
62220         * termios/tcsendbrk.c: Likewise.
62221         * termios/tcsetattr.c: Likewise.
62222         * termios/tcsetpgrp.c: Likewise.
62223         * time/adjtime.c: Likewise.
62224         * time/clock.c: Likewise.
62225         * time/getitimer.c: Likewise.
62226         * time/gettimeofday.c: Likewise.
62227         * time/setitimer.c: Likewise.
62228         * time/settimeofday.c: Likewise.
62229         * time/stime.c: Likewise.
62230         * time/time.c: Likewise.
62231
62232 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
62233
62234         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
62235         /usr/old/bin.
62236
62237         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
62238         instead of spaces.
62239         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
62240
62241 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
62242
62243         [BZ #14796]
62244         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
62245         FE_TONEAREST before applying Dekker multiplication and Knuth
62246         addition.  Clear inexact exceptions and check for exact zero
62247         results afterwards.
62248         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62249         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
62250         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62251         * math/libm-test.inc (fma_test): Add more tests.
62252         (fma_test_towardzero): Likewise.
62253         (fma_test_downward): Likewise.
62254         (fma_test_upward): Likewise.
62255         * sysdeps/generic/math_private.h (default_libc_fesetround): New
62256         function.
62257         (libc_fesetround): New macro.
62258         (libc_fesetroundf): Likewise.
62259         (libc_fesetroundl): Likewise.
62260         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
62261         function.
62262         (libc_fesetround_387): Likewise.
62263         (libc_fesetroundf): New macro.
62264         (libc_fesetround): Likewise.
62265         (libc_fesetroundl): Likewise.
62266         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
62267         function.
62268         (libc_fesetroundf): New macro.
62269         (libc_fesetround): Likewise.
62270         (libc_fesetroundl): Likewise.
62271         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
62272         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
62273         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
62274         libm_hidden_ver.
62275         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
62276         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
62277         libm_hidden_def.
62278         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
62279         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
62280         libm_hidden_ver.
62281         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
62282         libm_hidden_def.
62283
62284         [BZ #3439]
62285         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
62286         integer constant usable in #if and use that to give value to enum
62287         constant.
62288         (FE_DIVBYZERO): Likewise.
62289         (FE_UNDERFLOW): Likewise.
62290         (FE_OVERFLOW): Likewise.
62291         (FE_INVALID): Likewise.
62292         (FE_INVALID_SNAN): Likewise.
62293         (FE_INVALID_ISI): Likewise.
62294         (FE_INVALID_IDI): Likewise.
62295         (FE_INVALID_ZDZ): Likewise.
62296         (FE_INVALID_IMZ): Likewise.
62297         (FE_INVALID_COMPARE): Likewise.
62298         (FE_INVALID_SOFTWARE): Likewise.
62299         (FE_INVALID_SQRT): Likewise.
62300         (FE_INVALID_INTEGER_CONVERSION): Likewise.
62301         (FE_TONEAREST): Likewise.
62302         (FE_TOWARDZERO): Likewise.
62303         (FE_UPWARD): Likewise.
62304         (FE_DOWNWARD): Likewise.
62305         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
62306         (FE_DIVBYZERO): Likewise.
62307         (FE_OVERFLOW): Likewise.
62308         (FE_UNDERFLOW): Likewise.
62309         (FE_INEXACT): Likewise.
62310         (FE_TONEAREST): Likewise.
62311         (FE_DOWNWARD): Likewise.
62312         (FE_UPWARD): Likewise.
62313         (FE_TOWARDZERO): Likewise.
62314         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
62315         (FE_UNDERFLOW): Likewise.
62316         (FE_OVERFLOW): Likewise.
62317         (FE_DIVBYZERO): Likewise.
62318         (FE_INVALID): Likewise.
62319         (FE_TONEAREST): Likewise.
62320         (FE_TOWARDZERO): Likewise.
62321         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
62322         (FE_OVERFLOW): Likewise.
62323         (FE_UNDERFLOW): Likewise.
62324         (FE_DIVBYZERO): Likewise.
62325         (FE_INEXACT): Likewise.
62326         (FE_TONEAREST): Likewise.
62327         (FE_TOWARDZERO): Likewise.
62328         (FE_UPWARD): Likewise.
62329         (FE_DOWNWARD): Likewise.
62330         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
62331         (FE_DIVBYZERO): Likewise.
62332         (FE_OVERFLOW): Likewise.
62333         (FE_UNDERFLOW): Likewise.
62334         (FE_INEXACT): Likewise.
62335         (FE_TONEAREST): Likewise.
62336         (FE_DOWNWARD): Likewise.
62337         (FE_UPWARD): Likewise.
62338         (FE_TOWARDZERO): Likewise.
62339
62340 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
62341
62342         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
62343
62344 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
62345
62346         * scripts/cross-test-ssh.sh (command): Use newlines to separate
62347         commands.  Quote $PWD.
62348         (blacklist_exports): Don't use remove_newlines.  Replace "declare
62349         -x" by "export".
62350         (remove_newlines): Remove.
62351
62352 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
62353
62354         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
62355         * stdlib/stdlib.h (atof): Moved to ...
62356         * include/bits/stdlib-float.h: Here.  New file.
62357         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
62358         * stdlib/bits/stdlib-float.h: New file.
62359         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
62360         -mno-sse -mno-mmx.
62361         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
62362         <xmmintrin.h>.
62363
62364 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62365
62366         * conform/conformtest.pl (@headers): Add fenv.h.
62367         * conform/data/fenv.h-data: New file.
62368         * include/fenv.h [_ISOMAC]: Disable all contents of file except
62369         include of <math/fenv.h>.
62370
62371         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
62372         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
62373         && !UNIX98].  Enables tests for XOPEN2K8.
62374         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
62375         POSIX2008]: Likewise.
62376
62377         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
62378         (struct rusage): Do not expect type or its members.
62379
62380         [BZ #3439]
62381         * math/math.h (FP_NAN): Define macro to integer constant usable in
62382         #if and use that to give value to enum constant.
62383         (FP_INFINITE): Likewise.
62384         (FP_ZERO): Likewise.
62385         (FP_SUBNORMAL): Likewise.
62386         (FP_NORMAL): Likewise.
62387
62388 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
62389
62390         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
62391         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
62392         arguments.
62393
62394 2012-11-02  Roland McGrath  <roland@hack.frob.com>
62395
62396         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
62397         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
62398         autoconf-time if not.
62399         * configure.in: Remove AC_PREREQ.
62400
62401 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62402
62403         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
62404         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
62405         of the internal implementation.
62406
62407 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62408
62409         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
62410         except include of <misc/sys/syslog.h>.
62411
62412 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62413
62414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
62415         function returns with a NULL context exit with zero.
62416
62417 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62418
62419         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
62420
62421 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
62422
62423         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
62424         (run_program_cmd): This.
62425         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
62426         (tst_langinfo): New variable.  Use it.
62427
62428 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
62429
62430         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
62431         floating point opcodes.
62432
62433 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62434
62435         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62436         variable.
62437
62438         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
62439
62440         * sysdeps/mach/hurd/powerpc: Remove directory.
62441         * sysdeps/mach/powerpc: Likewise.
62442
62443 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62444
62445         * scripts/check-local-headers.sh: Ignore c++ headers.
62446
62447 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62448
62449         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
62450         __libc_cleanup_region_start argument.
62451
62452 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
62453
62454         [BZ #14784]
62455         [BZ #14785]
62456         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
62457         x * y using scaling, not as x * y + z.
62458         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62459         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62460         * math/libm-test.inc (fma_test): Add more tests.
62461         (fma_test_towardzero): Likewise.
62462         (fma_test_downward): Likewise.
62463         (fma_test_upward): Likewise.
62464
62465 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62466
62467         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
62468
62469 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62470
62471         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
62472         New variable.
62473
62474 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
62475
62476         * rt/tst-shm.c (worker): Correct checking for mmap failure.
62477
62478 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62479
62480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62481         Fix sort order.
62482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62483         Likewise.
62484
62485 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62486
62487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62488         Fix the order of the list for glibc 2.17.
62489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62490         Likewise.
62491
62492 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62493
62494         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62495
62496 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62497
62498         [BZ #14610]
62499         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
62500         for low part of x being zero before using __atanl (y).
62501         * math/libm-test.inc (atan2_test): Add another test.
62502
62503         * manual/install.texi (Configuring and compiling): Document
62504         general use of test-wrapper and test-wrapper-env.
62505         * INSTALL: Regenerated.
62506
62507         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
62508         (__fma): Do not extract and scale down low bits on after-rounding
62509         systems when result rounded to normal precision would have normal
62510         exponent.
62511         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
62512         (__fmal): Do not extract and scale down low bits on after-rounding
62513         systems when result rounded to normal precision would have normal
62514         exponent.
62515         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
62516         (__fmal): Do not extract and scale down low bits on after-rounding
62517         systems when result rounded to normal precision would have normal
62518         exponent.
62519         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
62520         macro.
62521         (fma_test): Add more tests.
62522         (fma_test_towardzero): Likewise.
62523         (fma_test_downward): Likewise.
62524         (fma_test_upward): Likewise.
62525
62526 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
62527
62528         * sysdeps/i386/tininess.h: Renamed to ...
62529         * sysdeps/x86/tininess.h: This.
62530         * sysdeps/x86_64/tininess.h: Removed.
62531
62532 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62533
62534         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
62535         input.  Use $(build-program-cmd).
62536         ($(objpfx)tst-array1-static.out): Likewise.
62537         ($(objpfx)tst-array2.out): Likewise.
62538         ($(objpfx)tst-array3.out): Likewise.
62539         ($(objpfx)tst-array4.out): Likewise.
62540         ($(objpfx)tst-array5.out): Likewise.
62541         ($(objpfx)tst-array5-static.out): Likewise.
62542
62543 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
62544
62545         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
62546         if defined.
62547
62548         * nss/nsswitch.h (nss_interface_function): Provide new
62549         macro for use with NSS functions.
62550         * grp/initgroups.c: Use new macro.
62551         * nss/getXXbyYY.c: Likewise.
62552         * nss/getXXbyYY_r.c: Likewise.
62553         * nss/getXXent.c: Likewise.
62554         * nss/getXXent_r.c: Likewise.
62555         * sysdeps/posix/getaddrinfo.c: Likewise.
62556
62557 2012-10-30  Andreas Jaeger  <aj@suse.de>
62558
62559         * po/ru.po: Update Russion translation from translation project.
62560
62561 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62562
62563         [BZ #14152]
62564         [BZ #14783]
62565         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62566         result and shift together with sticky bit instead of replicating
62567         round-to-nearest rounding.
62568         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62569         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62570         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
62571         missing underflow exceptions.
62572         (fma_test_towardzero): Add more tests.
62573         (fma_test_downward): Likewise.
62574         (fma_test_upward): Likewise.
62575
62576         [BZ #14047]
62577         * sysdeps/generic/tininess.h: New file.
62578         * sysdeps/i386/tininess.h: Likewise.
62579         * sysdeps/sh/tininess.h: Likewise.
62580         * sysdeps/x86_64/tininess.h: Likewise.
62581         * stdlib/tst-strtod-underflow.c: Likewise.
62582         * stdlib/tst-tininess.c: Likewise.
62583         * stdlib/strtod_l.c: Include <tininess.h>.
62584         (round_and_return): Do not set errno for exact underflow cases.
62585         Force an underflow exception when setting errno for underflow.
62586         Determine underflow based on rounding to normal precision if
62587         TININESS_AFTER_ROUNDING.
62588         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
62589         ERANGE for exact underflow cases.
62590         * stdlib/Makefile (tests): Add tst-tininess and
62591         tst-strtod-underflow.
62592         ($(objpfx)tst-tininess): Use $(link-libm).
62593         ($(objpfx)tst-strtod-underflow): Likewise.
62594
62595 2012-10-30  Andreas Jaeger  <aj@suse.de>
62596
62597         [BZ#14767]
62598         * elf/Makefile (tests): Remove conditional for have-initfini-array
62599         since this is now always required and the variable does not exist
62600         anymore.
62601         (tests-static): Likewise.
62602         (modules-names): Likewise.
62603
62604         * po/eo.po: Add Esperanto translation from translation project.
62605
62606         * elf/tst-array1.c (fini_array): Make writeable so that it can be
62607         merged with constructor/destructor.
62608         (init_array): Likewise.
62609         * elf/tst-array2dep.c (fini_array): Likewise.
62610         (init_array): Likewise.
62611
62612 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
62613
62614         * manual/message.texi: Delete @cartouche tags.
62615
62616 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
62617
62618         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
62619         EOPNOTSUPP.
62620         * sysdeps/mach/hurd/fsync.c: Likewise.
62621
62622         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
62623         [_POSIX_REALTIME_SIGNALS]: Change condition to
62624         [_POSIX_REALTIME_SIGNALS > 0].
62625
62626 2012-10-27  Andreas Jaeger  <aj@suse.de>
62627
62628         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
62629         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
62630         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
62631         [__WORDSIZE != 64]: Likewise.
62632
62633 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
62634
62635         *  iconvdata/tst-table.sh: Remove ${SHELL}.
62636         *  iconvdata/tst-tables.sh: Likewise.
62637
62638 2012-10-25  David S. Miller  <davem@davemloft.net>
62639
62640         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62641         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
62642         of strtoull.
62643
62644         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
62645         ifunc-impl-list.c
62646         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
62647         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
62648         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
62649         file.
62650
62651 2012-10-25  Roland McGrath  <roland@hack.frob.com>
62652
62653         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62654         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
62655         __getdirentries.
62656
62657 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62658             Jim Blandy  <jimb@codesourcery.com>
62659
62660         * scripts/cross-test-ssh.sh: New file.
62661         * manual/install.texi (Configuring and compiling): Document use of
62662         cross-test-ssh.sh.
62663         * INSTALL: Regenerated.
62664
62665 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
62666
62667         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
62668         EOPNOTSUPP.
62669
62670 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62671
62672         * Makeconfig (run-program-prefix): Fix comment.
62673
62674 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62675             Jim Blandy  <jimb@codesourcery.com>
62676
62677         * Makeconfig (test-wrapper): New variable,
62678         (test-wrapper-env): Likewise.
62679         [$(cross-compiling) = yes && $(test-wrapper) != ""]
62680         (run-built-tests): Define to yes.
62681         (run-program-prefix): Use $(test-wrapper).
62682         (built-program-cmd): Likewise.
62683         * Rules (make-test-out): Use $(test-wrapper-env) and
62684         $(host-built-program-cmd).
62685         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
62686         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
62687         tst-pathopt.sh.
62688         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
62689         $(test-wrapper-env) to tst-rtld-load-self.sh.
62690         ($(objpfx)order2.out): Use $(test-wrapper).
62691         ($(objpfx)tst-initorder.out): Likewise.
62692         ($(objpfx)tst-initorder2.out): Likewise.
62693         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
62694         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
62695         (test_wrapper_env): New variable.  Use it to run ld.so.
62696         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
62697         Use it to run ld.so.
62698         (test_wrapper_env): Likewise.
62699         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
62700         $(test-wrapper) to run-iconv-test.sh.
62701         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
62702         (ICONV): Use $test_wrapper.
62703         * posix/Makefile ($(objpfx)globtest.out): Pass
62704         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
62705         globtest.sh, not $(run-program-prefix).
62706         * posix/globtest.sh (run_via_rtld_prefix): New variable.
62707         (test_wrapper): Likewise.
62708         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
62709         set together with run_via_rtld_prefix.
62710         (run_program_prefix): Define in terms of test_wrapper and
62711         run_via_rtld_prefix.
62712
62713 2012-10-24  Roland McGrath  <roland@hack.frob.com>
62714
62715         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
62716         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
62717         Targets removed.
62718
62719         [BZ #14743]
62720         * include/time.h: Remove librt_hidden_proto (clock_gettime).
62721         Declare __clock_getres, __clock_gettime, __clock_settime,
62722         __clock_nanosleep, and __clock_getcpuclockid.
62723         * rt/clock_gettime.c: Define __clock_gettime as an alias.
62724         Remove librt_hidden_def (clock_gettime).
62725         * sysdeps/unix/clock_gettime.c: Likewise.
62726         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
62727         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
62728         * rt/clock_getres.c: Define __clock_getres as an alias.
62729         * sysdeps/posix/clock_getres.c: Likewise.
62730         * rt/clock_settime.c: Define __clock_settime as an alias.
62731         * sysdeps/unix/clock_settime.c: Likewise.
62732         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
62733         * sysdeps/unix/clock_nanosleep.c: Likewise.
62734         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
62735         * rt/clock-compat.c: New file.
62736         * rt/Makefile (librt-routines): Add clock-compat and move
62737         $(clock-routines) to ...
62738         (routines): ... here, new variable.
62739         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
62740         Don't add get_clockfreq here.
62741         * rt/Versions (libc: GLIBC_2.17): New version set.
62742         Add clock_* symbols here.
62743         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
62744         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
62745         (GLIBC_2.17): Add clock_* symbols.
62746         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
62747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
62748         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
62749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62750         Likewise.
62751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62752         Likewise.
62753         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
62754         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
62755         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
62756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
62757         * NEWS: Mention the move.
62758
62759         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
62760         Use __open, __read, __close rather than their public counterparts.
62761         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62762         (__get_clockfreq_via_cpuinfo): Likewise.
62763         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
62764         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
62765
62766         * config.h.in (HAVE_IFUNC): New #undef.
62767         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
62768         was successful.
62769         * configure: Regenerated.
62770
62771 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62772
62773         * configure.in: Move READELF check to start of file.
62774         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
62775         libc_cv_asm_gnu_indirect_function in the process.
62776         * configure: Regenerated.
62777
62778 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62779
62780         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
62781         send the output to /dev/null.
62782         (libc_cv_cc_with_libunwind): Likewise.
62783         (libc_cv_as_noexecstack): Likewise.
62784         * configure: Regenerate.
62785
62786 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62787
62788         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
62789
62790         * posix/globtest.sh (TMPDIR): Do not set.
62791         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
62792         (testout): Likewise.
62793
62794 2012-10-24  Andreas Jaeger  <aj@suse.de>
62795
62796         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
62797         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
62798         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
62799         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
62800         posix_fadvise64, posix_fallocate64.
62801
62802         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
62803         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
62804         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
62805         Likewise.
62806         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
62807         Likewise.
62808         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
62809
62810         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
62811         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
62812         <bits/fcntl-linux.h>.
62813         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
62814
62815         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
62816         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
62817         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
62818         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
62819         [__WORDSIZE != 64]: Likewise.
62820
62821 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62822
62823         * Makeconfig (run-built-tests): New variable.
62824         * Rules [$(cross-compiling) = yes]: Change condition to
62825         [$(run-built-tests) = no].
62826         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
62827         to [$(run-built-tests) = yes].
62828         * elf/Makefile [$(cross-compiling) = no]: Likewise.
62829         * grp/Makefile [$(cross-compiling) = no]: Likewise.
62830         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
62831         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
62832         * intl/Makefile [$(cross-compiling) = no]: Likewise.
62833         * io/Makefile [$(cross-compiling) = no]: Likewise.
62834         * libio/Makefile [$(cross-compiling) = no]: Likewise.
62835         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
62836         * misc/Makefile [$(cross-compiling) = no]: Likewise.
62837         * posix/Makefile [$(cross-compiling) = no]: Likewise.
62838         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
62839         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
62840         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
62841         * string/Makefile [$(cross-compiling) = no]: Likewise.
62842
62843         * posix/Makefile ($(objpfx)globtest.out): Pass
62844         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
62845         $(rtld-installed-name).
62846         * posix/globtest.sh (elf_objpfx): Remove variable.
62847         (rtld_installed_name): Likewise.
62848         (library_path): Likewise.
62849         (run_program_prefix): New variable.  Use for running globtest
62850         binary.
62851
62852 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
62853             Joseph Myers  <joseph@codesourcery.com>
62854
62855         * Makeconfig (host-built-program-cmd): New variable.
62856         * elf/Makefile (tst-stackguard1-ARGS): Use
62857         $(host-built-program-cmd).
62858         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
62859         (tst-spawn-ARGS): Likewise.
62860         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
62861
62862 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62863             Jim Blandy  <jimb@codesourcery.com>
62864
62865         * Makeconfig (run-via-rtld-prefix): New variable.
62866         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
62867         (built-program-cmd): Likewise.
62868
62869 2012-10-22  Andreas Jaeger  <aj@suse.de>
62870
62871         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
62872         __O_RSYNC if it exists, otherwise to O_SYNC.
62873
62874 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
62875             Joseph Myers  <joseph@codesourcery.com>
62876
62877         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
62878         /dev/null.
62879         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
62880         from /dev/null
62881         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
62882         /dev/null.
62883
62884 2012-10-22  Andreas Jaeger  <aj@suse.de>
62885
62886         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
62887         Define always.
62888         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
62889
62890         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
62891         bits/fcntl-linux.h.
62892
62893         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
62894         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
62895
62896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
62897         to __O_LARGEFILE.
62898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
62899         to __O_LARGEFILE.
62900
62901 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
62902             Joseph Myers  <joseph@codesourcery.com>
62903
62904         * config.make.in (NM): New variable.
62905
62906 2012-10-21  Andreas Jaeger  <aj@suse.de>
62907
62908         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
62909         definitions and declarations that are provided by
62910         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
62911
62912 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62913
62914         [BZ #14683]
62915         * elf/Makefile (tests-static): Add tst-leaks1-static.
62916         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
62917         ($(objpfx)tst-leaks1-static): New rule.
62918         ($(objpfx)tst-leaks1-static-mem): Likewise.
62919         (tst-leaks1-static-ENV): New macro.
62920         * elf/dl-open.c (dl_open_worker): Check the main application
62921         only if SHARED is defined.
62922         * elf/tst-leaks1-static.c: New file.
62923
62924 2012-10-20  Andreas Jaeger  <aj@suse.de>
62925
62926         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
62927         generic values for Linux.
62928         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
62929         and declarations that are provided by <bits/fcntl-linux.h> and
62930         include <bits/fcntl-linux.h>.
62931         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
62932         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
62933
62934 2012-10-20  Roland McGrath  <roland@hack.frob.com>
62935
62936         * io/fcntl.h: Move include of <bits/types.h> to the top and
62937         include it unconditionally.
62938
62939 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62940
62941         * wcsmbs/Makefile (tests-ifunc): New variable.
62942         (tests): Add $(tests-ifunc).
62943         * wcsmbs/test-wcschr-ifunc.c: New file.
62944         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
62945         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
62946         * wcsmbs/test-wcslen-ifunc.c: Likewise.
62947         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
62948         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
62949
62950         * string/Makefile (tests-ifunc): New variable.
62951         (tests): Add $(tests-ifunc).
62952         * string/test-memccpy.c (TEST_NAME): New macro.
62953         * string/test-memchr.c (TEST_NAME): Likewise.
62954         * string/test-memcmp.c (TEST_NAME): Likewise.
62955         * string/test-memcpy.c (TEST_NAME): Likewise.
62956         * string/test-memmem.c (TEST_NAME): Likewise.
62957         * string/test-memmove.c (TEST_NAME): Likewise.
62958         * string/test-memset.c (TEST_NAME): Likewise.
62959         * string/test-rawmemchr.c (TEST_NAME): Likewise.
62960         * string/test-stpcpy.c (TEST_NAME): Likewise.
62961         * string/test-stpncpy.c (TEST_NAME): Likewise.
62962         * string/test-strcasecmp.c (TEST_NAME): Likewise.
62963         * string/test-strcasestr.c (TEST_NAME): Likewise.
62964         * string/test-strcat.c (TEST_NAME): Likewise.
62965         * string/test-strchr.c (TEST_NAME): Likewise.
62966         * string/test-strcmp.c(TEST_NAME): Likewise.
62967         * string/test-strcpy.c (TEST_NAME): Likewise.
62968         * string/test-strcspn.c (TEST_NAME): Likewise.
62969         * string/test-strlen.c (TEST_NAME): Likewise.
62970         * string/test-strncasecmp.c (TEST_NAME): Likewise.
62971         * string/test-strncmp.c (TEST_NAME): Likewise.
62972         * string/test-strncpy.c (TEST_NAME): Likewise.
62973         * string/test-strnlen.c (TEST_NAME): Likewise.
62974         * string/test-strpbrk.c (TEST_NAME): Likewise.
62975         * string/test-strrchr.c (TEST_NAME): Likewise.
62976         * string/test-strspn.c (TEST_NAME): Likewise.
62977         * string/test-strstr.c (TEST_NAME): Likewise.
62978         * string/test-bcopy-ifunc.c: New file.
62979         * string/test-bzero-ifunc.c: Likewise.
62980         * string/test-memccpy-ifunc.c: Likewise.
62981         * string/test-memchr-ifunc.c: Likewise.
62982         * string/test-memcmp-ifunc.c: Likewise.
62983         * string/test-memcpy-ifunc.c: Likewise.
62984         * string/test-memmem-ifunc.c: Likewise.
62985         * string/test-memmove-ifunc.c: Likewise.
62986         * string/test-mempcpy-ifunc.c: Likewise.
62987         * string/test-memset-ifunc.c: Likewise.
62988         * string/test-rawmemchr-ifunc.c: Likewise.
62989         * string/test-stpcpy-ifunc.c: Likewise.
62990         * string/test-stpncpy-ifunc.c: Likewise.
62991         * string/test-strcasecmp-ifunc.c: Likewise.
62992         * string/test-strcasestr-ifunc.c: Likewise.
62993         * string/test-strcat-ifunc.c: Likewise.
62994         * string/test-strchr-ifunc.c: Likewise.
62995         * string/test-strchrnul-ifunc.c: Likewise.
62996         * string/test-strcmp-ifunc.c: Likewise.
62997         * string/test-strcpy-ifunc.c: Likewise.
62998         * string/test-strcspn-ifunc.c: Likewise.
62999         * string/test-strlen-ifunc.c: Likewise.
63000         * string/test-strncasecmp-ifunc.c: Likewise.
63001         * string/test-strncat-ifunc.c: Likewise.
63002         * string/test-strncmp-ifunc.c: Likewise.
63003         * string/test-strncpy-ifunc.c: Likewise.
63004         * string/test-strnlen-ifunc.c: Likewise.
63005         * string/test-strpbrk-ifunc.c: Likewise.
63006         * string/test-strrchr-ifunc.c: Likewise.
63007         * string/test-strspn-ifunc.c: Likewise.
63008         * string/test-strstr-ifunc.c: Likewise.
63009
63010         * debug/Makefile (tests-ifunc): New variable.
63011         (tests): Add $(tests-ifunc).
63012         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
63013         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
63014         * debug/test-stpcpy_chk-ifunc.c: New file.
63015         * debug/test-strcpy_chk-ifunc.c: Likewise.
63016
63017 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
63018
63019         [BZ #13601]
63020         * elf/dl-load.c (open_verify): Retry read if the entire ELF
63021         header is not read in.
63022
63023 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
63024
63025         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
63026         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
63027         directly.  Pass built executable to script as
63028         $(built-program-cmd).
63029         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
63030         $testprogram without using LD_LIBRARY_PATH and $ldso.
63031
63032         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
63033         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
63034         $(rtld-installed-name).
63035         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
63036         (rtld_installed_name): Likewise.
63037         (library_path): Likewise.
63038         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
63039         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
63040         $(run-program-prefix) to tst-tables.sh.
63041         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
63042         it to run tst-table-from and tst-table-to.
63043         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
63044         Pass it to tst-table.sh.
63045         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
63046         $(run-program-prefix) to tst-gettext.sh.
63047         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
63048         tst-translit.sh.
63049         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
63050         tst-gettext2.sh.
63051         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
63052         to run tst-gettext.
63053         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
63054         to run tst-gettext2.
63055         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
63056         to run tst-translit.
63057         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
63058         $(run-program-prefix) to tst-mtrace.sh.
63059         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
63060         to run tst-mtrace.
63061         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
63062         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
63063         $(rtld-installed-name).
63064         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
63065         (rtld_installed_name): Likewise.
63066         (run_program_prefix): New variable.  Use it to run wordexp-test.
63067
63068         * Makeconfig (ARCH): Remove all definitions.
63069         (machine): Likewise.
63070         [ARCH]: Remove conditional code.
63071         [!objdir]: Give error.
63072         [!objdir] (objpfx): Remove.
63073         [!objdir] (common-objpfx): Likewise.
63074         [!objdir] (common-objdir): Likewise.
63075         * configure.in (config_makefile): Remove.  Hardcode Makefile in
63076         AC_CONFIG_FILES call.
63077         * configure: Regenerated.
63078
63079         [BZ #13888]
63080         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
63081         or TMPDIR.
63082         (testout): Likewise.
63083
63084         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
63085         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
63086         $(rtld-installed-name).
63087         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
63088         (rtld_installed_name): Likwise.
63089         (runit): Remove function.
63090         (run_getconf): New variable,  Use it for running getconf binary.
63091
63092 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
63093
63094         [BZ #14716]
63095         * string/test-memmem.c (check_result): New function.
63096         (do_one_test): Use it.
63097         (check1): New function.
63098         (test_main): Use it.
63099
63100 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
63101
63102         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
63103
63104 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
63105
63106         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
63107         (_G_LSEEK64): Likewise.
63108         (_G_MMAP64): Likewise.
63109         (_G_FSTAT64): Likewise.
63110         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
63111         (_G_LSEEK64): Likewise.
63112         (_G_MMAP64): Likewise.
63113         (_G_FSTAT64): Likewise.
63114         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
63115         unconditional.  Call __mmap64 directly.
63116         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
63117         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
63118         __lseek64 directly.
63119         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
63120         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
63121         __mmap64 directly.
63122         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
63123         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63124         __lseek64 directly.
63125         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
63126         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63127         __lseek64 directly.
63128         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
63129         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
63130         __lseek64 directly.
63131         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
63132         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
63133         __fxstat64 directly.
63134         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
63135         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
63136         unconditional.
63137         (freopen64) [!_G_OPEN64]: Remove conditional code.
63138         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
63139         unconditional.
63140         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
63141         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
63142         unconditional.
63143         (ftello64) [!_G_LSEEK64]: Remove conditional code.
63144         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
63145         unconditional.
63146         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63147         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
63148         unconditional.
63149         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
63150         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
63151         unconditional.
63152         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63153         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
63154         unconditional.
63155         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63156         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
63157         unconditional.
63158         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63159
63160 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
63161
63162         [BZ #12140]
63163         * manual/memory.texi (Malloc Tunable Parameters): Add note
63164         about free list pointers overwriting some perturb bytes.
63165         Wording suggested by Roland McGrath.
63166
63167 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
63168
63169         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
63170         (lgamma_test): Likewise.
63171         (tgamma_test): Likewise.
63172
63173 2012-10-16  Florian Weimer  <fweimer@redhat.com>
63174
63175         [BZ #14700]
63176         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
63177         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
63178
63179 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
63180
63181         * NEWS: Mention BZ #14716.
63182         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
63183         when removing AVAILABLE1_USES_J macro.
63184
63185 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
63186
63187         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
63188         (__bswap_64): __uint64_t for unsigned 64-bit int.
63189
63190 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
63191
63192         * include/string.h (memmem): Declare libc hidden alias.
63193         * string/memmem.c (memmem): Define libc hidden alias.
63194         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
63195         __read, __close instead of open, read, close.
63196
63197 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
63198
63199         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
63200         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
63201         global and hidden.
63202         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
63203         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
63204         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
63205         Likewise.
63206         (__rawmemchr_sse2): Likewise.
63207         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
63208         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
63209         (__strchr_sse2): Likewise.
63210         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
63211         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
63212         (__strcasecmp_sse2): Likewise.
63213         (__strncasecmp_sse2): Likewise.
63214         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
63215         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
63216         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
63217         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
63218         (__strrchr_sse2): Likewise.
63219         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
63220         ifunc-impl-list.c.
63221         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
63222         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
63223         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
63224         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
63225         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
63226         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
63227         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63228         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63229         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
63230         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
63231         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
63232         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
63233         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
63234         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
63235         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
63236         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
63237         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
63238         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
63239         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
63240         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
63241         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
63242         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
63243         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
63244         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63245         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
63246         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
63247         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
63248         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
63249         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
63250         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
63251
63252         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
63253         global and hidden.
63254         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
63255         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
63256         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
63257         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
63258         Likewise.
63259         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
63260         Likewise.
63261         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
63262         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
63263         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
63264         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
63265         ifunc-impl-list.c.
63266         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
63267         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
63268         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
63269         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
63270         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
63271         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
63272         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
63273         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
63274         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
63275         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
63276         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
63277         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
63278         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
63279         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
63280         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
63281         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
63282         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
63283         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
63284         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
63285         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
63286         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
63287         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
63288         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
63289         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
63290         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
63291         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
63292         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
63293         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
63294         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
63295         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
63296         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
63297         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
63298         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
63299         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
63300         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
63301         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
63302         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
63303         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
63304         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
63305         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
63306         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
63307
63308         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
63309         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
63310         * include/ifunc-impl-list.h: New file.
63311         * misc/ifunc-impl-list.c: Likewise.
63312         * misc/Makefile (routines): Add ifunc-impl-list.
63313         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
63314         * string/test-string.h: Include <ifunc-impl-list.h>.
63315         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
63316         TEST_NAME]: New variables.
63317         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
63318         are defined.
63319         (test_init): Call __libc_ifunc_impl_list to initialize
63320         func_list if TEST_IFUNC and TEST_NAME are defined.
63321
63322         * string/Makefile (strop-tests): Add bcopy and bzero.
63323         * string/test-bcopy.c: New file.
63324         * string/test-bzero.c: Likewise.
63325         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
63326         defined.
63327         * string/test-memset.c: Support bzero test if TEST_BZERO is
63328         defined.
63329         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
63330         __libc_memmove.
63331         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
63332         __libc_memset.
63333         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
63334         of memset.
63335
63336 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
63337
63338         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
63339         * configure: Regenerated.
63340
63341         * Makeconfig (+link-static-before-libc): Don't include
63342         $(link-static-libc).
63343
63344         * libio/libio.h (_IO_pos_t): Remove.
63345
63346 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63347
63348         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
63349         McGrath.
63350
63351 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63352
63353         * crypt/crypt-entry.c: Include fips-private.h.
63354         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
63355         * crypt/md5c-test.c (main): Tolerate disabled MD5.
63356         * sysdeps/unix/sysv/linux/fips-private.h: New file.
63357         * sysdeps/generic/fips-private.h: New file, dummy fallback.
63358
63359 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63360
63361         * crypt/crypt-private.h: Include stdbool.h.
63362         (_ufc_setup_salt_r): Return bool.
63363         * crypt/crypt-entry.c: Include errno.h.
63364         (__crypt_r): Return NULL with EINVAL for bad salt.
63365         * crypt/crypt_util.c (bad_for_salt): New.
63366         (_ufc_setup_salt_r): Check that salt is long enough and within
63367         the specified alphabet.
63368         * crypt/badsalttest.c: New file.
63369         * crypt/Makefile (tests): Add it.
63370         ($(objpfx)badsalttest): New.
63371
63372 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
63373
63374         * NEWS: Add entry for BZ #14602.
63375
63376 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63377
63378         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
63379         type-generic.
63380         * math/libm-test.inc: Update comment listing what functions and
63381         macros are tested.
63382         (isgreater_test): New function.
63383         (isgreaterequal_test): Likewise.
63384         (isless_test): Likewise.
63385         (islessequal_test): Likewise.
63386         (islessgreater_test): Likewise.
63387         (isunordered_test): Likewise.
63388         (main): Call the new functions.
63389
63390 2012-10-09  Roland McGrath  <roland@hack.frob.com>
63391
63392         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
63393         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
63394         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
63395         * sysdeps/i386/configure: Regenerated.
63396         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
63397         * sysdeps/mach/configure: Regenerated.
63398         * sysdeps/mach/hurd/configure: Regenerated.
63399         * sysdeps/powerpc/configure: Regenerated.
63400         * sysdeps/powerpc/powerpc32/configure: Regenerated.
63401         * sysdeps/powerpc/powerpc64/configure: Regenerated.
63402         * sysdeps/s390/s390-32/configure: Regenerated.
63403         * sysdeps/s390/s390-64/configure: Regenerated.
63404         * sysdeps/sh/configure: Regenerated.
63405         * sysdeps/sparc/configure: Regenerated.
63406         * sysdeps/unix/sysv/linux/configure: Regenerated.
63407         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
63408         * sysdeps/x86_64/configure: Regenerated.
63409
63410         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
63411         defined.  Don't check if MAP is NULL.
63412
63413 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63414
63415         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
63416         (_G_stat64): Likewise.
63417         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
63418         (_G_stat64): Likewise.
63419         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
63420         instead of struct _G_stat64.
63421         * libio/fileops.c (mmap_remap_check): Likewise.
63422         (decide_maybe_mmap): Likewise.
63423         (_IO_new_file_seekoff): Likewise.
63424         (_IO_file_stat): Likewise.
63425         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
63426         _G_off64_t.
63427         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
63428         instead of struct _G_stat64.
63429         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63430
63431 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
63432
63433         [BZ #14602]
63434         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63435         Replace with ...
63436         (CHECK_EOL): New macro.
63437         (two_way_short_needle): Check beginning of haystack for EOL.  Use
63438         CHECK_EOL.
63439         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63440         Replace with CHECK_EOL.
63441         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63442         Replace with CHECK_EOL.
63443
63444 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
63445
63446         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
63447         type-generic.
63448         * math/libm-test.inc: Update comment listing what functions and
63449         macros are tested.
63450         (finite_test): New function.
63451         (isinf_test): Likewise.
63452         (isnan_test): Likewise.
63453         (fpclassify_test): Test subnormal input.
63454         (isfinite_test): Likewise.
63455         (isnormal_test): Likewise.
63456         (main): Call the new functions.
63457
63458 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
63459
63460         [BZ #14660]
63461         * Makerules (%.dynsym): Force C locale when running
63462         $(OBJDUMP) --dynamic-syms.
63463
63464 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
63465
63466         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
63467         <stdint.h>.
63468
63469 2012-10-06  David S. Miller  <davem@davemloft.net>
63470
63471         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
63472         upper 32-bits of the length value in %o2 since we use branch-on-register
63473         tests which consider the entire 64-bit register.
63474
63475 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
63476
63477         * string/test-strstr.c (check2): Add a test for page boundary.
63478
63479 2012-10-05  David S. Miller  <davem@davemloft.net>
63480
63481         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
63482         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
63483         file.
63484         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63485         sysdep_routines.
63486         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63487         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
63488         and bzero when HWCAP_SPARC_CRYPTO is present.
63489
63490 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
63491
63492         [BZ #14602]
63493         * string/test-strstr.c (check2): New function.
63494         (test_main): Call check2.
63495
63496         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
63497         and bug-strchr1.
63498         * string/bug-strcasestr1.c (do_test): Moved to ...
63499         * string/test-strcasestr.c (check1): Here.  New function.
63500         (do_one_test): Break out result checking code into ...
63501         (check_result): This.  New function.
63502         (do_one_test): Call check_result.
63503         (test_main): Call check1.
63504         * string/bug-strchr1.c (do_test): Moved to ...
63505         * string/test-strchr.c (check1): Here.  New function.
63506         (do_one_test): Break out result checking code into ...
63507         (check_result): This.  New function.
63508         (do_one_test): Call check_result.
63509         (test_main): Call check1.
63510         * string/bug-strstr1.c (main): Moved to ...
63511         * string/test-strstr.c (check1): Here.  New function.
63512         (do_one_test): Break out result checking code into ...
63513         (check_result): This.  New function.
63514         (do_one_test): Call check_result.
63515         (test_main): Call check1.
63516         * string/bug-strcasestr1.c: Removed.
63517         * string/bug-strchr1.c: Likewise.
63518         * string/bug-strstr1.c: Likewise.
63519
63520         * elf/Makefile (dl-routines): Add hwcaps.
63521         * elf/dl-support.c (_dl_important_hwcaps): Removed.
63522         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
63523         (_dl_important_hwcaps): Moved to ...
63524         * elf/dl-hwcaps.c: Here.  New file.
63525         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
63526
63527         [BZ #14557]
63528         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
63529         if IS_IN_rtld isn't defined.
63530
63531         * elf/dl-support.c (_dl_sysinfo_map): New.
63532         Include "get-dynamic-info.h" and "setup-vdso.h".
63533         (_dl_non_dynamic_init): Call setup_vdso.
63534         * elf/dynamic-link.h: Don't include <assert.h>.
63535         (elf_get_dynamic_info): Moved to ...
63536         * elf/get-dynamic-info.h: Here.  New file.
63537         * elf/dynamic-link.h: Include "get-dynamic-info.h".
63538         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
63539         * elf/setup-vdso.h: Here.  New file.
63540         * elf/rtld.c: Include "setup-vdso.h".
63541         (dl_main): Call setup_vdso.
63542
63543 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
63544
63545         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
63546         creal in comment listing functions tested.  List finite, isinf,
63547         isnan, isless, islessequal, isgreater, isgreaterequal,
63548         islessgreater, isunordered, lgamma_r and pow10 as functions and
63549         macros not tested.  Mention which functions not tested are aliases
63550         for other functions.  Fix typo.  Note that signs of NaNs are not
63551         tested.
63552
63553         * scripts/config.guess: Update from config.git.
63554         * scripts/config.sub: Likewise.
63555
63556 2012-10-04  Roland McGrath  <roland@hack.frob.com>
63557
63558         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
63559         * misc/madvise.c (madvise): Renamed to __madvise.
63560         Make madvise a weak alias.
63561         * include/sys/mman.h: Declare __madvise.
63562         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
63563         * sysdeps/unix/syscalls.list
63564         (madvise): Make __madvise the strong name, and madvise a weak alias.
63565         * sysdeps/unix/sysv/linux/syscalls.list
63566         (madvise, mmap): Remove redundant entries.
63567         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
63568         * malloc/malloc.c (mtrim): Likewise.
63569         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
63570
63571 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63572
63573         * sysdeps/mach/hurd/dl-cache.c: File removed.
63574         * config.h.in (USE_LDCONFIG): New #undef.
63575         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
63576         * configure: Regenerated.
63577         * elf/Makefile (dl-routines): Add dl-cache only under
63578         [$(use-ldconfig) = yes].
63579         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
63580         cache on [USE_LDCONFIG].
63581         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
63582         [USE_LDCONFIG].
63583         * elf/rtld.c (dl_main): Likewise.
63584
63585 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
63586
63587         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
63588         _SC_LEVEL4_CACHE_LINESIZE.
63589
63590 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63591
63592         * sysdeps/unix/bsd/confstr.h: File removed.
63593
63594 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
63595
63596         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
63597         sys/sdt-config.h.
63598
63599 2012-10-02  Roland McGrath  <roland@hack.frob.com>
63600
63601         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
63602         Make 'mapoff' field ElfW(Off) rather than off_t.
63603
63604 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63605
63606         * nscd/Makefile: Remove nscd-cflags and all its users.
63607         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
63608         (CFLAGS-nonlib): Add compiler flags for nscd modules.
63609
63610         [BZ #10631]
63611         * malloc.c (malloc_printerr): Clarify error message.
63612
63613 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
63614
63615         [BZ #14648]
63616         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63617         Set bit_FMA_Usable if FMA is supported.
63618         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
63619         macro.
63620         (bit_FMA4_Usable): Updated.
63621         (index_FMA_Usable): New macro.
63622         (CPUID_FMA): Likewise.
63623         (HAS_FMA): Defined with bit_FMA_Usable.
63624
63625 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63626
63627         * bits/types.h (__swblk_t): Type removed.
63628         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
63629         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
63630         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63631         (__SWBLK_T_TYPE): Likewise.
63632         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
63633         (__SWBLK_T_TYPE): Likewise.
63634         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63635         (__SWBLK_T_TYPE): Likewise.
63636         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63637         (__SWBLK_T_TYPE): Likewise.
63638
63639 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
63640             Honza Horak <hhorak@redhat.com>
63641
63642         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
63643         (xdr_mapname): Use YPMAXMAP as maxsize.
63644         (xdr_peername): Use YPMAXPEER as maxsize.
63645         (xdr_keydat): Use YPAXRECORD as maxsize.
63646         (xdr_valdat): Use YPMAXRECORD as maxsize.
63647
63648 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63649
63650         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
63651
63652         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
63653         * csu/init-first.c: ... here.
63654         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
63655         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
63656         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63657         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
63658         * sysdeps/i386/init-first.c: File removed.
63659         * sysdeps/sh/init-first.c: File removed.
63660
63661 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
63662
63663         [BZ #14645]
63664         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
63665         if x * y might underflow to zero and z is zero.
63666         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63667         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63668         * math/libm-test.inc (min_subnorm_value): New variable.
63669         (fma_test): Add more tests.
63670         (fma_test_towardzero): Likewise.
63671         (fma_test_downward): Likewise.
63672         (fma_test_upward): Likewise.
63673         (initialize): Set min_subnorm_value.
63674
63675 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
63676
63677         [BZ #14638]
63678         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
63679         0 + 0.
63680         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
63681         mode for addition resulting in exact zero.
63682         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
63683         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
63684         exact 0 + 0.
63685         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63686         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63687         * math/libm-test.inc (fma_test): Add more tests.
63688         (fma_test_towardzero): New function.
63689         (fma_test_downward): Likewise.
63690         (fma_test_upward): Likewise.
63691         (main): Call the new functions.
63692
63693 2012-09-28  David S. Miller  <davem@davemloft.net>
63694
63695         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
63696
63697 2012-09-28  Roland McGrath  <roland@hack.frob.com>
63698
63699         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
63700         instead of SIGALRM.
63701
63702         * sysdeps/gnu/_G_config.h: Moved to ...
63703         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
63704         * sysdeps/mach/hurd/_G_config.h: Moved to ...
63705         * sysdeps/generic/_G_config.h: ... here.
63706
63707         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
63708
63709         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
63710
63711         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
63712         Conditionalize target on [libnss_test1.so-version].
63713
63714         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
63715
63716         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
63717         (elfobjdir): Move out of conditionals.
63718
63719         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
63720         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
63721         (__nss_lookup_function): Conditionalize label remove_from_tree on
63722         [!DO_STATIC_NSS || SHARED], matching its only use.
63723
63724 2012-09-28  David S. Miller  <davem@davemloft.net>
63725
63726         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
63727         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
63728         file.
63729         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63730         sysdep_routines.
63731         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63732         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
63733         when HWCAP_SPARC_CRYPTO is present.
63734
63735 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63736
63737         * io/tst-mknodat.c: Create a FIFO instead of a socket.
63738
63739 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
63740
63741         [BZ #6530]
63742         * stdio-common/vfprintf.c (process_string_arg): Revert
63743         2000-07-22 change.
63744
63745 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
63746
63747         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
63748         for testcase.
63749         * stdio-common/tst-sprintf.c: Include <locale.h>
63750         (main): Test sprintf's handling of incomplete multibyte
63751         characters.
63752
63753 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
63754
63755         * elf/dl-runtime.c (VERSYMIDX): Removed.
63756         * elf/dl-version.c (VERSYMIDX): Likewise.
63757         * elf/do-rel.h (VERSYMIDX): Likewise.
63758         (VALIDX): Likewise.
63759         * elf/dynamic-link.h (VERSYMIDX): Likewise.
63760         * elf/rtld.c (VALIDX): Likewise.
63761         (ADDRIDX): Likewise.
63762         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
63763         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
63764         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
63765         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
63766         (VALIDX): Likewise.
63767         (ADDRIDX): Likewise.
63768
63769 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63770
63771         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
63772
63773 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
63774
63775         [BZ #11438]
63776         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
63777         to global scope.
63778         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63779         addresses are in the same scope as 192.0.2/24.
63780         * posix/gai.conf: Document new scope table defaults.
63781
63782 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63783
63784         [BZ #5298]
63785         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
63786         for ftell.  Compute offsets from write pointers instead.
63787         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63788
63789 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63790
63791         [BZ #14543]
63792         * libio/Makefile (tests): New test case tst-fseek.
63793         * libio/tst-fseek.c: New test case to verify that fseek/ftell
63794         combination works in wide mode.
63795         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
63796         state when the external buffer state changes.
63797
63798 2012-09-27  David S. Miller  <davem@davemloft.net>
63799
63800         [BZ #14376]
63801         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
63802         pass reloc->r_addend in as the 'high' argument to
63803         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
63804
63805         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63806
63807 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63808
63809         * rt/tst-aio2.c: Include <pthread.h>.
63810         * rt/tst-aio3.c: Likewise.
63811
63812 2012-09-27  Steve Ellcey  <sellcey@mips.com>
63813
63814         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
63815
63816 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
63817
63818         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
63819         contents on [SHARED].
63820
63821 2012-09-26  Marek Polacek  <polacek@redhat.com>
63822
63823         [BZ #14530]
63824         [BZ #13741]
63825         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
63826         for C++ and GCC <4.3 as well as for non GCC compilers.
63827
63828 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
63829
63830         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63831
63832 2012-09-25  Roland McGrath  <roland@hack.frob.com>
63833
63834         * Makefile.in (all, install): Declare with .PHONY.
63835         Reported by Michael Hope <michael.hope@linaro.org>.
63836
63837 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63838
63839         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
63840         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
63841         system header.
63842         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
63843         Likewise.
63844         (sydep_routines): Add the new and the internal functions.
63845         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
63846         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
63847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
63848         (GLIBC_2.17): Add the new function.
63849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
63850         (GLIBC_2.17): Likewise.
63851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
63852         (GLIBC_2.17): Likewise.
63853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
63854         (GLIBC_2.17): Likewise.
63855         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
63856
63857 2012-09-25  Alan Modra  <amodra@gmail.com>
63858
63859         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
63860         Add release barrier before setting once_control to say
63861         initialisation is done.  Add hints on lwarx.  Use macro in
63862         place of isync.
63863         (clear_once_control): Add release barrier.
63864
63865 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63866
63867         [BZ #13629]
63868         * math/s_clog.c (__clog): Handle more values close to |z| = 1
63869         specially.
63870         * math/s_clog10.c (__clog10): Likewise.
63871         * math/s_clog10f.c (__clog10f): Likewise.
63872         * math/s_clog10l.c (__clog10l): Likewise.
63873         * math/s_clogf.c (__clogf): Likewise.
63874         * math/s_clogl.c (__clogl): Likewise.
63875         * math/Makefile (libm-calls): Add x2y2m1.
63876         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
63877         (__x2y2m1): Likewise.
63878         (__x2y2m1l): Likewise.
63879         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
63880         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
63881         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
63882         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
63883         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
63884         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
63885         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
63886         * sysdeps/i386/fpu/libm-test-ulps: Update.
63887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63888
63889         [BZ #14621]
63890         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
63891         int as type of variable DEPTH.
63892         (glob): Use size_t instead of int as type of variables NEWCOUNT
63893         and OLD_PATHC.
63894
63895 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63896
63897         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
63898         Add s_sincosf-sse2.
63899         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
63900         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
63901         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
63902         macros for using routine as __sincosf_ia32.
63903         Use macro for function declaration and weak_alias.
63904         * sysdeps/i386/fpu/libm-test-ulps: Update.
63905
63906         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
63907         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63908
63909         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
63910         subnormal argument.
63911         * math/s_cexpf.c (__cexpf): Likewise.
63912         * math/s_csinf.c (__csinf): Likewise.
63913         * math/s_csinhf.c (__csinhf): Likewise.
63914         * math/s_ctanf.c (__ctanf): Likewise.
63915         * math/s_ctanhf.c (__ctanhf): Likewise.
63916         * math/s_ccosh.c (__ccoshf): Likewise.
63917         * math/s_cexp.c (__cexpl): Likewise.
63918         * math/s_csin.c (__csin): Likewise.
63919         * math/s_csinh.c (__csinh): Likewise.
63920         * math/s_ctan.c (__ctan): Likewise.
63921         * math/s_ctanh.c (ctanh): Likewise.
63922         * math/s_ccoshl.c (__ccoshl): Likewise.
63923         * math/s_cexpl.c (__cexpl): Likewise.
63924         * math/s_csinl.c (__csinl): Likewise.
63925         * math/s_csinhl.c (__csinhl): Likewise.
63926         * math/s_ctanl.c (__ctanl): Likewise.
63927         * math/s_ctanhl.c (__ctanhl): Likewise.
63928
63929 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63930
63931         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
63932         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
63933         (_IO_off_t): Define to __off_t, not _G_off_t.
63934         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
63935         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
63936         (_IO_wint_t): Define to wint_t, not _G_wint_t.
63937         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
63938         type of __dummy and __dummy2 fields.
63939         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
63940         (_G_ssize_t): Likewise.
63941         (_G_off_t): Likewise.
63942         (_G_pid_t): Likewise.
63943         (_G_uid_t): Likewise.
63944         (_G_wchar_t): Likewise.
63945         (_G_wint_t): Likewise.
63946         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
63947         (_G_ssize_t): Likewise.
63948         (_G_off_t): Likewise.
63949         (_G_pid_t): Likewise.
63950         (_G_uid_t): Likewise.
63951         (_G_wchar_t): Likewise.
63952         (_G_wint_t): Likewise.
63953         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
63954         (_G_ssize_t): Likewise.
63955         (_G_off_t): Likewise.
63956         (_G_pid_t): Likewise.
63957         (_G_uid_t): Likewise.
63958         (_G_wchar_t): Likewise.
63959         (_G_wint_t): Likewise.
63960
63961 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63962
63963         * malloc/arena.c: Include malloc-sysdep.h.
63964         (shrink_heap): Use check_may_shrink_heap to decide if madvise
63965         is sufficient to shrink the heap or an unmap is needed.
63966         * sysdeps/generic/malloc-sysdep.h: New file.  Define
63967         new function check_may_shrink_heap.
63968         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
63969         new function check_may_shrink_heap.
63970
63971 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63972
63973         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
63974         comments.
63975
63976 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
63977
63978         * catgets/test-gencat.sh: Add "set -e".
63979         * elf/tst-pathopt.sh: Likewise.
63980         * grp/tst_fgetgrent.sh: Likewise.
63981         * iconvdata/run-iconv-test.sh: Likewise.
63982         * intl/tst-gettext.sh: Likewise.
63983         * intl/tst-gettext2.sh: Likewise.
63984         * intl/tst-gettext4.sh: Likewise.
63985         * intl/tst-gettext6.sh: Likewise.
63986         * intl/tst-translit.sh: Likewise.
63987         * io/ftwtest-sh: Likewise.
63988         * libio/test-freopen.sh: Likewise.
63989         * malloc/tst-mtrace.sh: Likewise.
63990         * posix/globtest.sh: Likewise.
63991         * posix/tst-getconf.sh: Likewise.
63992         * posix/wordexp-tst.sh: Likewise.
63993         * stdio-common/tst-printf.sh: Likewise.
63994         * stdio-common/tst-unbputc.sh: Likewise.
63995         * stdlib/tst-fmtmsg.sh: Likewise.
63996         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63997         * catgets/Makefile: Do not specify -e option when running
63998         testsuite shell scripts.
63999         * elf/Makefile: Likewise.
64000         * grp/Makefile: Likewise.
64001         * iconvdata/Makefile: Likewise.
64002         * intl/Makefile: Likewise.
64003         * io/Makefile: Likewise.
64004         * libio/Makefile: Likewise.
64005         * malloc/Makefile: Likewise.
64006         * posix/Makefile: Likewise.
64007         * stdio-common/Makefile: Likewise.
64008         * stdlib/Makefile: Likewise.
64009         * sysdeps/x86_64/Makefile: Likewise.
64010
64011         * io/ftwtest-sh: Add copyright header.
64012         * posix/globtest.sh: Likewise.
64013         * posix/tst-getconf.sh: Likewise.
64014         * posix/wordexp-tst.sh: Likewise.
64015         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
64016
64017 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
64018
64019         [BZ #13679]
64020         * Makeconfig (+link): Defined as $(+link-static) if
64021         $(build-shared) isn't yes.
64022         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
64023         isn't yes.
64024         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
64025
64026         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
64027
64028         [BZ #14562]
64029         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
64030         new chunk size with MALLOC_ALIGN_MASK.
64031
64032 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
64033
64034         [BZ #5044]
64035         * stdio-common/printf_fphex.c: Include <stdbool.h> and
64036         <rounding-mode.h>.
64037         (__printf_fphex): Determine rounding using get_rounding_mode and
64038         round_away.
64039         * stdio-common/tst-printf-round.c (struct hex_test): New
64040         structure.
64041         (hex_tests): New variable.
64042         (test_hex_in_one_mode): New function.
64043         (do_test): Also run tests for hex float output.
64044
64045 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
64046
64047         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64048         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64049         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
64050         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64051         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64052         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
64053         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64054         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64055
64056 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
64057
64058         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
64059         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
64060         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
64061         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
64062
64063 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
64064
64065         [BZ #14579]
64066         * elf/rtld.c (dl_main): Limit the check for self loading to normal
64067         mode only.
64068         * elf/tst-rtld-load-self.sh: New test.
64069         * elf/Makefile: Run it.
64070
64071 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
64072
64073         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
64074         (tst-writev-ENV): Remove.
64075         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
64076
64077 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
64078
64079         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
64080
64081 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
64082
64083         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
64084         unconditional.
64085         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
64086         Likewise.
64087         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
64088         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
64089         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
64090         Likewise.
64091
64092 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
64093
64094         [BZ #14587]
64095         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
64096         * config.make.in (have-cpp-asm-debuginfo): Removed.
64097         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
64098         * configure: Regenerated.
64099
64100 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
64101
64102         [BZ #5044]
64103         * stdio-common/printf_fp.c: Include <stdbool.h> and
64104         <rounding-mode.h>.
64105         (___printf_fp): Determine rounding using get_rounding_mode and
64106         round_away.
64107         * stdio-common/tst-printf-round.c: New file.
64108         * stdio-common/Makefile (tests): Add tst-printf-round.
64109         (link-libm): New variable.
64110         ($(objpfx)tst-printf-round): Depend in $(link-libm).
64111
64112 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
64113
64114         [BZ #14576]
64115         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
64116         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
64117         Likewise.
64118         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
64119         Likewise.
64120
64121 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
64122
64123         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
64124         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64125         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64126         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64127
64128 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
64129
64130         [BZ #14518]
64131         * include/rounding-mode.h: New file.
64132         * sysdeps/generic/get-rounding-mode.h: Likewise.
64133         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
64134         * stdlib/strtod_l.c: Include <rounding-mode.h>.
64135         (MAX_VALUE): New macro.
64136         (MIN_VALUE): Likewise.
64137         (overflow_value): New function.
64138         (underflow_value): Likewise.
64139         (round_and_return): Use overflow_value and underflow_value to
64140         determine return values in overflow and underflow cases.  Use
64141         round_away to determine rounding depending on rounding mode.
64142         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
64143         determine return values in overflow and underflow cases.
64144         * stdlib/tst-strtod-round.c: Include <fenv.h>.
64145         (struct test_results): New structure.
64146         (struct test): Use struct test_results to store expected results
64147         for all rounding modes.
64148         (TEST): Include expected results for all rounding modes.
64149         (test_in_one_mode): New function.
64150         (do_test): Use test_in_one_mode to compute and check results.
64151         Check results for all rounding modes.
64152         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
64153         $(link-libm).
64154
64155 2012-12-09  Allan McRae  <allan@archlinux.org>
64156
64157         * sysdeps/i386/fpu/libm-test-ulps: Update
64158
64159 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
64160
64161         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
64162         (_G_int32_t): Likewise.
64163         (_G_uint16_t): Likewise.
64164         (_G_uint32_t): Likewise.
64165         (_G_HAVE_BOOL): Likewise.
64166         (_G_HAVE_ATEXIT): Likewise.
64167         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64168         (_G_HAVE_IO_FILE_OPEN): Likewise.
64169         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
64170         (_G_int32_t): Likewise.
64171         (_G_uint16_t): Likewise.
64172         (_G_uint32_t): Likewise.
64173         (_G_HAVE_BOOL): Likewise.
64174         (_G_HAVE_ATEXIT): Likewise.
64175         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64176         (_G_HAVE_IO_FILE_OPEN): Likewise.
64177         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
64178         (_G_int32_t): Likewise.
64179         (_G_uint16_t): Likewise.
64180         (_G_uint32_t): Likewise.
64181         (_G_HAVE_BOOL): Likewise.
64182         (_G_HAVE_ATEXIT): Likewise.
64183         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64184         (_G_HAVE_IO_FILE_OPEN): Likewise.
64185
64186 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
64187
64188         * csu/libc-tls.c: Update copyright years.
64189
64190 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
64191
64192         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
64193         [!_G_USING_THUNKS]: Remove conditional code.
64194         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
64195         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
64196
64197         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
64198         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
64199         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64200         (_G_VTABLE_LABEL_PREFIX): Likewise.
64201         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64202         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64203         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64204         (_G_VTABLE_LABEL_PREFIX): Likewise.
64205         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64206         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64207         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64208         (_G_VTABLE_LABEL_PREFIX): Likewise.
64209         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64210
64211 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
64212
64213         * libio/Makefile: Include ../Makeconfig before tests.
64214         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
64215         only if $(build-shared) is yes.
64216
64217         * iconv/gconv_db.c: Update copyright years.
64218
64219 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64220
64221         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
64222         unwind info if defined PIC. Fix special cases description.
64223         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
64224
64225         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
64226         DP_HI_MASK entry.
64227         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
64228
64229 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
64230
64231         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
64232
64233         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
64234         is NULL.
64235
64236         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
64237         (LDLIBS-tst-chk4): This.
64238         (LDFLAGS-tst-chk5): Renamed to ...
64239         (LDLIBS-tst-chk5): This.
64240         (LDFLAGS-tst-chk6): Renamed to ...
64241         (LDLIBS-tst-chk6): This.
64242         (LDFLAGS-tst-lfschk4): Renamed to ...
64243         (LDLIBS-tst-lfschk4): This.
64244         (LDFLAGS-tst-lfschk5): Renamed to ...
64245         (LDLIBS-tst-lfschk5): This.
64246         (LDFLAGS-tst-lfschk6): Renamed to ...
64247         (LDLIBS-tst-lfschk6): This.
64248
64249         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
64250         on $(common-objpfx)soversions.mk.
64251
64252 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
64253
64254         [BZ #10014]
64255         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
64256         example host name.
64257
64258 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64259
64260         * malloc/arena.c (arena_get_retry): New function that gets
64261         another arena for the caller to try its request on.
64262         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
64263         current arena cannot fulfill the request.
64264         (__libc_memalign): Likewise.
64265         (__libc_memalign): Likewise.
64266         (__libc_pvalloc): Likewise.
64267         (__libc_calloc): Likewise.
64268
64269 2012-09-05  John Tobey  <john.tobey@gmail.com>
64270
64271         [BZ #13542]
64272         * manual/arith.texi (Operations on Complex): Fix description
64273         of carg branch cut.
64274
64275 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64276
64277         [BZ #10014]
64278         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
64279         host name.
64280
64281         [BZ #10038]
64282         * manual/memory.texi (Memory): Make order of menu items match
64283         order of sections.
64284
64285 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64286
64287         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
64288         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
64289         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
64290
64291 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64292
64293         * csu/libc-tls.c (static_dtv): Renamed to ...
64294         (_dl_static_dtv): This.  Make it global.
64295         (_dl_initial_dtv): Removed.
64296         (__libc_setup_tls): Updated.
64297         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
64298         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
64299         DL_INITIAL_DTV.
64300
64301 2012-09-06  Petr Machata  <pmachata@redhat.com>
64302
64303         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
64304         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
64305         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
64306         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
64307
64308 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64309
64310         [BZ #14545]
64311         * csu/libc-tls.c (_dl_initial_dtv): New variable.
64312         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
64313         freeing dtv[-1].
64314
64315 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64316
64317         [BZ #14544]
64318         * Makeconfig (link-static-before-libc): Replace $(+prector)
64319         with $(+prectorT).
64320         (link-static-after-libc): Replace $(+postctor) with
64321         $(+postctorT).
64322         (link-bounded): Replace $(+prector)/$(+postctor) with
64323         $(+prectorT)/$(+postctorT).
64324         (+prectorT): New macro.
64325         (+postctorT): Likewise.
64326
64327 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64328
64329         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
64330         (round_str): Handle values above the maximum for IBM long double
64331         as inexact.
64332         * stdlib/tst-strtod-round.c (tests): Regenerated.
64333
64334 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64335
64336         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
64337         assembler flag.
64338         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
64339         zarch_nohighgprs around the zarch optimized routines.
64340         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
64341         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
64342         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
64343         for zarch.
64344
64345 2012-09-05  David S. Miller  <davem@davemloft.net>
64346
64347         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64348
64349         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
64350         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
64351         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
64352         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
64353         entries.
64354
64355 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64356
64357         * malloc/arena.c: Fold copyright years.
64358         * malloc/mcheck.c, malloc/memusage.c: Likewise.
64359
64360 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64361
64362         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
64363
64364 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64365
64366         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
64367
64368 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64369
64370         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
64371         change internal state upon failure.
64372
64373 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64374
64375         * malloc/mcheck.c (mcheck_check_all): Fix typo.
64376         * malloc/memusage.c (mmap): Likewise.
64377         (mmap64, mremap): Likewise.  Adjust name in comment.
64378
64379 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64380
64381         * libio/fileops.c: Fix typos in comments.
64382         * libio/oldfileops.c: Likewise.
64383         * libio/wfileops.c: Likewise.
64384
64385 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64386
64387         [BZ #1349]
64388         * malloc/Makefile (tests): Add tst-malloc-usable test case.
64389         (tst-malloc-usable-ENV): Set environment for test case.
64390         * malloc/hooks.c (malloc_check_get_size): New function to get
64391         requested size.
64392         * malloc/malloc.c (musable): Use malloc_check_get_size.
64393         * malloc/tst-malloc-usable.c: New test case.
64394
64395 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64396
64397         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
64398
64399 2012-09-05  Allan McRae  <allan@archlinux.org>
64400
64401         [BZ #13966]
64402         * configure.in (CXX_SYSINCLUDES): Use compiler output to
64403         determine header location.
64404         * configure: Regenerated.
64405
64406 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64407
64408         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
64409         float format.
64410         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
64411         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
64412         format.
64413         (test): Regenerate.
64414
64415 2012-09-04  David S. Miller  <davem@davemloft.net>
64416
64417         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
64418         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
64419         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
64420
64421 2012-09-04  Florian Weimer  <fweimer@redhat.com>
64422
64423         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
64424         failures.
64425
64426         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
64427
64428 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
64429
64430         [BZ #9914]
64431         * libio/iogetdelim.c: Include <limits.h>.
64432         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
64433         + len + 1 would overflow.
64434
64435 2012-09-03  Andreas Jaeger  <aj@suse.de>
64436
64437         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64438         * sysdeps/i386/fpu/libm-test-ulps: Update.
64439
64440 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64441
64442         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64443         Add s_sinf-sse2, s_conf-sse2.
64444
64445         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
64446         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
64447         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
64448         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
64449
64450         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
64451         for using routine as __sinf_ia32.
64452         Use macro for function declaration and weak_alias.
64453         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
64454         for using routine as __cosf_ia32.
64455         Use macro for function declaration and weak_alias.
64456
64457         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
64458         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
64459
64460         * sysdeps/x86_64/fpu/s_sinf.S: New file.
64461         * sysdeps/x86_64/fpu/s_cosf.S: New file.
64462         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64463
64464         * math/libm-test.inc (cos_test): Add more test cases.
64465         (sin_test): Likewise.
64466         (sincos_test): Likewise.
64467
64468 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64469
64470         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
64471         (IFUNC_RESOLVE): Make pointers to the specialized implementations
64472         hidden.
64473         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64474
64475 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
64476
64477         [BZ #14538]
64478         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
64479         first element of the GOT.
64480         (elf_machine_load_address): Return the difference between
64481         the runtime address of _DYNAMIC and elf_machine_dynamic ().
64482
64483 2012-09-01  Allan McRae  <allan@archlinux.org>
64484
64485         [BZ #13412]
64486         * configure.in (AWK): Require gawk version 3.0 or later.
64487         * configure: Regenerated.
64488
64489 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
64490
64491         * sysdeps/unix/sysv/linux/kernel-features.h
64492         (__ASSUME_POSIX_CPU_TIMERS): Remove.
64493         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64494         [__NR_clock_getres]: Make code unconditional.
64495         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
64496         (clock_getcpuclockid): Remove code left unreachable by removal of
64497         conditionals.
64498         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
64499         code unconditional.
64500         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64501         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64502         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
64503         Make code unconditional.
64504         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64505         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64506         * sysdeps/unix/sysv/linux/clock_settime.c
64507         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
64508         conditional code.
64509         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
64510         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64511
64512 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
64513
64514         [BZ #14476]
64515         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
64516         scripts/test-installation.pl.
64517
64518         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
64519         and $ld_so_version if it is set.
64520
64521 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
64522
64523         [BZ #14516]
64524         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
64525         failure if reading from procfs failed.
64526         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
64527
64528 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64529
64530         * sysdeps/unix/sysv/linux/kernel-features.h
64531         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
64532         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64533         Remove conditional code.
64534         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64535         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
64536         Remove conditional code.
64537         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64538         * sysdeps/unix/sysv/linux/i386/fxstat.c
64539         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64540         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64541         * sysdeps/unix/sysv/linux/i386/fxstatat.c
64542         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64543         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64544         * sysdeps/unix/sysv/linux/i386/lxstat.c
64545         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64546         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64547         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
64548         Remove conditional code.
64549         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64550         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64551         Remove conditional code.
64552         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64553         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
64554         <kernel-features.h>.
64555         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
64556         Remove.
64557         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
64558         Remove conditional code.
64559         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64560         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
64561         Remove conditional.
64562
64563 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
64564
64565         [BZ #5400]
64566         * NEWS: Add fixed bug number.
64567
64568 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64569
64570         [BZ #14519]
64571         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
64572         underflowing exponent in case of negative sign.
64573         * stdlib/tst-strtod-round-data: Add more tests.
64574         * stdlib/tst-strtod-round.c (tests): Regenerated.
64575
64576         [BZ #3479]
64577         * stdlib/strtod_l.c (NDIG): Remove.
64578         (HEXNDIG): Likewise.
64579         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
64580         smallest representable value.
64581         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
64582         lie within an exact representation of 1/2 ulp of the result.
64583         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
64584         unconditionally.
64585         (TENS_P9_IDX): Define unconditionally.
64586         (TENS_P9_SIZE): Likewise.
64587         (TENS_P10_IDX): Likewise.
64588         (TENS_P10_SIZE): Likewise.
64589         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
64590         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
64591         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
64592         entries for 10^2^13 and 10^2^14.
64593         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
64594         (TENS_P13_IDX): Define.
64595         (TENS_P13_SIZE): Likewise.
64596         (TENS_P14_IDX): Likewise.
64597         (TENS_P14_SIZE): Likewise.
64598         (_fpioconst_pow10): Change array size to
64599         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
64600         unconditional.
64601         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
64602         1024]: Add entries for 10^2^13 and 10^2^14.
64603         [LAST_POW10 > _LAST_POW10]: Remove #error.
64604         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
64605         (_fpioconst_pow10): Change array size to
64606         FPIOCONST_POW10_ARRAY_SIZE.
64607         * stdlib/gen-fpioconst.c: New file.
64608         * stdlib/gen-tst-strtod-round.c: Likewise.
64609         * stdlib/tst-strtod-round-data: Likewise.
64610         * stdlib/tst-strtod-round.c: Likewise.
64611         * stdlib/Makefile (tests): Add tst-strtod-round.
64612
64613         [BZ #14459]
64614         * stdlib/strtod_l.c: Include <stdint.h>.
64615         (NDEBUG): Do not define.
64616         (round_and_return): Change EXPONENT parameter to type intmax_t.
64617         Rearrange calculations to avoid internal overflow possibilities.
64618         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
64619         Rearrange calculations to avoid internal overflow possibilities.
64620         Assert that number fits inside MPNSIZE limbs.
64621         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
64622         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
64623         calculations and add assertions to avoid internal overflow
64624         possibilities.  Add casts to avoid signed/unsigned operations.
64625         * stdlib/tst-strtod-overflow.c: New file.
64626         * stdlib/Makefile (tests): Add tst-strtod-overflow.
64627
64628 2012-08-25  Marek Polacek  <polacek@redhat.com>
64629
64630         * time/time.h: Fix some typos in comments.
64631
64632 2012-08-23  Roland McGrath  <roland@hack.frob.com>
64633
64634         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
64635         * posix/tst-rfc3484-2.c: Likewise.
64636         * posix/tst-rfc3484-3.c: Likewise.
64637
64638 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
64639
64640         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
64641         (EF_ARM_ABI_FLOAT_HARD): Likewise.
64642
64643 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
64644
64645         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
64646         #include of fxstatat64.c.
64647
64648 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64649
64650         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
64651         * shadow/getspent_r.c: Likewise.
64652         * shadow/getspnam.c: Likewise.
64653         * shadow/getspnam_r.c: Likewise.
64654         * gshadow/getsgent.c: Likewise.
64655         * gshadow/getsgent_r.c: Likewise.
64656         * gshadow/getsgnam.c: Likewise.
64657         * gshadow/getsgnam_r.c: Likewise.
64658         * inet/getnetbyad.c: Likewise.
64659         * inet/getnetbyad_r.c: Likewise.
64660         * inet/getnetbynm.c: Likewise.
64661         * inet/getnetbynm_r.c: Likewise.
64662         * inet/getnetent.c: Likewise.
64663         * inet/getnetent_r.c: Likewise.
64664         * inet/getproto.c: Likewise.
64665         * inet/getproto_r.c: Likewise.
64666         * inet/getprtent.c: Likewise.
64667         * inet/getprtent_r.c: Likewise.
64668         * inet/getprtname.c: Likewise.
64669         * inet/getprtname_r.c: Likewise.
64670         * inet/getrpcbyname.c: Likewise.
64671         * inet/getrpcbyname_r.c: Likewise.
64672         * inet/getrpcbynumber.c: Likewise.
64673         * inet/getrpcbynumber_r.c: Likewise.
64674         * inet/getrpcent.c: Likewise.
64675         * inet/getrpcent_r.c: Likewise.
64676         * inet/getaliasent.c: Likewise.
64677         * inet/getaliasent_r.c: Likewise.
64678         * inet/getaliasname.c: Likewise.
64679         * inet/getaliasname_r.c: Likewise.
64680         * nscd/getgrgid_r.c: Likewise.
64681         * nscd/getgrnam_r.c: Likewise.
64682         * nscd/gethstbyad_r.c: Likewise.
64683         * nscd/gethstbynm3_r.c: Likewise.
64684         * nscd/getpwnam_r.c: Likewise.
64685         * nscd/getpwuid_r.c: Likewise.
64686         * nscd/getsrvbynm_r.c: Likewise.
64687         * nscd/getsrvbypt_r.c: Likewise.
64688         * nscd/gai.c: Likewise.
64689
64690         * configure.in (build_nscd): New substituted variable, set
64691         by --disable-build-nscd and defaults to $use_nscd.
64692         * configure: Regenerated.
64693         * config.make.in (build-nscd): New substituted variable.
64694         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
64695         Change conditional to require [$(build-nscd) = yes] as well.
64696         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
64697
64698         [BZ# 13696]
64699         * configure.in (use_nscd): New substituted variable, set by
64700         --disable-nscd.  If enabled, define USE_NSCD.
64701         * configure: Regenerated.
64702         * config.h.in: Add USE_NSCD.
64703         * config.make.in (use-nscd): New substituted variable.
64704         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
64705         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
64706         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
64707         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
64708         (CFLAGS-getgrnam_r.c): Likewise.
64709         (CFLAGS-initgroups.c): Likewise.
64710         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
64711         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
64712         Variables removed.
64713         * inet/getnetgrent_r.c
64714         (nscd_setnetgrent): New function, broken out of ...
64715         (setnetgrent): ... here.  Call it.
64716         (innetgr): Conditionalize nscd bits on [USE_NSCD].
64717         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
64718         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
64719         * nscd/Makefile (routines, aux): Move definitions after include of
64720         Makeconfig.  Conditionalize on [$(use-nscd) != no].
64721         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
64722         Conditionalize on [USE_NSCD].
64723         (is_nscd, nscd_init_cb): Likewise.
64724         (nss_load_library): Conditionalize init callback on [USE_NSCD].
64725         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
64726         * nss/nss_db/db-init.c: Likewise.
64727         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
64728         [USE_NSCD].
64729         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
64730         (make_request): Use it.
64731         (cache_valid_p): New function.
64732         (__check_pf): Use it.
64733         * NEWS: Add item for --disable-nscd.
64734
64735 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
64736
64737         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
64738         to support sed >= 4.2.1-20-ga9bf076.
64739         * configure: Regenerated.
64740
64741 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64742
64743         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
64744         Conditionalize whole body on [IREL].
64745
64746 2012-08-22  Jeff Law <law@redhat.com>
64747
64748         [BZ #14505]
64749         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
64750         if the family is PF_UNSPEC.
64751
64752 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
64753
64754         * Makerules (lib-version): Rename from V.
64755         (install-lib-nosubdir): Change V to lib-version.
64756
64757 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
64758
64759         [BZ #14252]
64760         * powerpc32/power6/wcschr.c: New file.
64761         * powerpc32/power6/wcscpy.c: New file.
64762         * powerpc32/power6/wcsrchr.c: New file.
64763         * powerpc64/power6/wcschr.c: New file.
64764         * powerpc64/power6/wcscpy.c: New file.
64765         * powerpc64/power6/wcsrchr.c: New file.
64766
64767 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64768
64769         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
64770         (two_way_short_needle): Use it.
64771         * string/strstr.c (AVAILABLE1_USES_J): Define.
64772         * string/strcasestr.c: Likewise.
64773
64774         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
64775         array references.
64776         * string/strcasestr.c (TOLOWER): Make side-effect safe.
64777
64778         [BZ #11607]
64779         * NEWS: Add an entry.
64780         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
64781         define their defaults.
64782         (two_way_short_needle): Detect end-of-string on-the-fly.
64783         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
64784         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
64785         * string/bug-strcasestr1.c: New test.
64786         * string/Makefile: Run it.
64787
64788 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64789
64790         [BZ #11607]
64791         * string/str-two-way.h (two_way_short_needle): Optimize matching of
64792         the first character.
64793
64794 2012-08-21  Roland McGrath  <roland@hack.frob.com>
64795
64796         * csu/elf-init.c (__libc_csu_irel): Function removed.
64797         * csu/libc-start.c (apply_irel): New function.
64798         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
64799
64800 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
64801
64802         * sysdeps/unix/sysv/linux/kernel-features.h
64803         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
64804         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64805         <kernel-features.h>.
64806         [__NR_fadvise64_64]: Make code unconditional.
64807         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
64808         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64809         !__NR_fadvise64_64)]: Likewise.
64810         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64811         !__NR_fadvise64_64))]: Likewise.
64812         [__NR_fadvise64]: Make code unconditional.
64813         [!__NR_fadvise64]: Remove conditional code.
64814         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
64815         <kernel-features.h>.
64816         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64817         unconditional.
64818         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64819         conditional code.
64820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
64821         not include <kernel-features.h>.
64822         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64823         unconditional.
64824         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64825         conditional code.
64826         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
64827         include <kernel-features.h>.
64828         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64829         unconditional.
64830         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64831         conditional code.
64832
64833 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
64834
64835         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
64836         slight instruction rearrangements per scrollpipe analysis.
64837         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
64838
64839 2012-08-20  Roland McGrath  <roland@hack.frob.com>
64840
64841         * manual/syslog.texi (syslog; vsyslog, closelog):
64842         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
64843         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
64844
64845         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
64846         DSOCAPS to match condition on defining it.
64847
64848 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
64849
64850         * sysdeps/unix/sysv/linux/kernel-features.h
64851         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
64852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
64853         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64854         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
64856         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64857         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
64859         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64860         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64861
64862         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
64863         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
64864
64865         * sysdeps/unix/sysv/linux/kernel-features.h
64866         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
64867         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
64868         unconditional.
64869         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64870         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
64871         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64872         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64873         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
64874         Make code unconditional.
64875         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64876         (__mmap64) [!__NR_mmap2]: Likewise.
64877         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
64878         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64879         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64880         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
64881         [__NR_mmap2]: Make code unconditional.
64882         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64883         (__mmap64) [!__NR_mmap2]: Likewise.
64884
64885 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64886
64887         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
64888
64889 2012-08-18  Andreas Jaeger  <aj@suse.de>
64890
64891         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
64892
64893 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64894
64895         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
64896         * include/unistd.h (__have_sock_cloexec): Likewise.
64897         (__have_pipe2): Likewise.
64898         (__have_dup3): Likewise.
64899
64900 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64901
64902         [BZ #9685]
64903         * include/unistd.h (__have_pipe2): Change define into an extern int.
64904         (__have_dup3): Likewise.
64905         * socket/have_sock_cloexec.c: Include fcntl.h.
64906         (__have_pipe2): New variable.
64907         (__have_dup3): Likewise.
64908
64909 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
64910
64911         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
64912
64913 2012-08-17  Marek Polacek  <polacek@redhat.com>
64914
64915         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
64916         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
64917
64918 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64919
64920         * configure.in: Add AC_SUBST for sysheaders.
64921         * configure: Regenerated.
64922         * config.make.in (sysheaders): New substituted variable.
64923
64924         * sysdeps/unix/mkfifo.c: Moved ...
64925         * sysdeps/posix/mkfifo.c: ... here.
64926         * sysdeps/unix/mkfifoat.c: Moved ...
64927         * sysdeps/posix/mkfifoat.c: ... here.
64928
64929         * sysdeps/unix/utime.c: Moved ...
64930         * sysdeps/posix/utime.c: ... here.
64931
64932         * sysdeps/unix/time.c: Moved ...
64933         * sysdeps/posix/time.c: ... here.
64934         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
64935         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
64936
64937         * sysdeps/unix/nice.c: Moved ...
64938         * sysdeps/posix/nice.c: ... here.
64939
64940         * sysdeps/unix/alarm.c: Moved ...
64941         * sysdeps/posix/alarm.c: ... here.
64942
64943         * intl/Makefile ($(codeset_mo)): Depend on the input file.
64944
64945 2012-08-17  Jeff Law <law@redhat.com>
64946
64947         * intl/Makefile (codeset_mo): New variable.
64948         ($(codeset_mo)): New target.
64949         (tst-codeset.out): Depend on that.  Remove explicit rule.
64950         (tst-gettext3.out, tst-gettext5.out): Likewise.
64951         (LOCPATH-ENV, tst-codeset-ENV): New variables.
64952         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
64953         * intl/tst-codeset.sh: Remove.
64954         * intl/tst-gettext3.sh: Likewise.
64955         * intl/tst-gettext5.sh: Likewise.
64956
64957 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64958
64959         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
64960         * sysdeps/unix/syscalls.list: ... here.
64961
64962         * sysdeps/posix/getaddrinfo.c
64963         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
64964         (gaiconf_init, gaiconf_reload): Use them.
64965         [!_STATBUF_ST_NSEC]
64966         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
64967         Define using time_t rather than struct timespec.
64968
64969         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
64970         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
64971         Macros removed.
64972         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
64973         [!NO_THREADS].
64974         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
64975         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
64976         Likewise.
64977
64978         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
64979         __libc_cleanup_push argument.
64980
64981         * bits/param.h: New file.
64982         * misc/sys/param.h: New file.
64983         * include/sys/param.h: New file.
64984         * misc/Makefile (headers): Add bits/param.h.
64985         * sysdeps/generic/sys/param.h: File removed.
64986         * sysdeps/unix/sysv/linux/bits/param.h: New file.
64987         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
64988         * sysdeps/mach/hurd/bits/param.h: New file.
64989         * sysdeps/mach/hurd/sys/param.h: File removed.
64990
64991         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
64992         last change.
64993
64994         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
64995         [_IO_MTSAFE_IO].
64996         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
64997         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
64998         New macros.
64999
65000         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
65001         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
65002         rather than -D_IO_MTSAFE_IO conditionally.
65003         * stdio-common/Makefile (CPPFLAGS): Likewise.
65004         * wcsmbs/Makefile (CPPFLAGS): Likewise.
65005         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
65006         Use $(libio-mtsafe).
65007         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
65008         of -D_IO_MTSAFE_IO.
65009         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
65010         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
65011         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
65012         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
65013         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
65014         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
65015         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
65016         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
65017         (CFLAGS-fread_u_chk.c): Likewise.
65018         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
65019         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
65020         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
65021         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
65022         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
65023         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
65024         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
65025         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
65026         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
65027
65028         * libio/Makefile: Test [$(libc-reentrant) = yes]
65029         instead of [$(filter %REENTRANT, $(defines)) nonempty].
65030
65031         * Makeconfig
65032         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
65033         * sysdeps/pthread/configure: File removed.
65034         * sysdeps/pthread/Makeconfig: New file.
65035         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
65036         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
65037
65038 2012-08-16  Gary Benson  <gbenson@redhat.com>
65039
65040         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
65041         unmapping the first object in a namespace.
65042
65043 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65044
65045         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
65046         (__internal_setnetgrent): ... this.  Add internal_function to
65047         definition.  Add libc_hidden_def.
65048         (setnetgrent): Update caller.
65049         (internal_endnetgrent): Renamed to ...
65050         (__internal_endnetgrent): ... this.  Add internal_function to
65051         definition.  Add libc_hidden_def.
65052         (endnetgrent): Update caller.
65053         (internal_getnetgrent_r): Renamed to ...
65054         (__internal_getnetgrent_r): ... this.  Add internal_function to
65055         definition.  Add libc_hidden_def.
65056         (__getnetgrent_r): Update caller.
65057         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
65058
65059 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65060
65061         * stdlib/longlong.h: Update from GCC.
65062
65063 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65064
65065         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
65066         on _QL, which is set by umul_ppmm but never used.
65067         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
65068         variables, which are set by GMP macros but never used.
65069         * stdio-common/_itowa.c (_itowa): Likewise.
65070         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
65071         * stdlib/mod_1.c (mpn_mod_1): Likewise.
65072
65073 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
65074
65075         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
65076         struct La_sh_regs is not constant.
65077         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
65078         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
65079         and struct La_sparc64_regs are not constant.
65080
65081 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65082
65083         * sysdeps/unix/sysv/linux/kernel-features.h
65084         (__ASSUME_POSIX_TIMERS): Remove.
65085         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
65086         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65087         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
65088         Make code unconditional.
65089         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65090         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
65091         Make code unconditional.
65092         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65093         * sysdeps/unix/sysv/linux/clock_nanosleep.c
65094         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
65095         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65096         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
65097         Make code unconditional.
65098         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65099         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
65100         (__libc_missing_posix_timers): Remove.
65101
65102 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65103
65104         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
65105         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
65106
65107         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
65108
65109         * elf/dl-sym.c: Include <stdlib.h>.
65110
65111         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
65112         constants, which avoids warnings in 32-bit builds.
65113
65114         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
65115         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
65116
65117         * misc/lseek.c: File moved to ...
65118         * io/lseek.c: ... here.
65119
65120         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
65121
65122         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
65123         shifting LEN more than 31 bits at once.
65124
65125 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65126
65127         [BZ #14195]
65128         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
65129         segmentation fault for a case of two empty input strings.
65130         * string/test-strncasecmp.c (check1): Renamed to...
65131         (bz12205): ...this.
65132         (bz14195): Add new testcase for two empty input strings and N > 0.
65133         (test_main): Call new testcase, adapt for renamed function.
65134
65135 2012-08-15  Andreas Jaeger  <aj@suse.de>
65136
65137         [BZ #14090]
65138         * crypt/md5test2.c: New test, based on test supplied by Serge
65139         Belyshev <belyshev@depni.sinp.msu.ru>.
65140         * crypt/Makefile (xtests): Add md5test-giant..
65141         * crypt/Makefile ($(objpfx)md5test-giant): Add.
65142
65143 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         [BZ #14090]
65146         * crypt/md5.c (md5_process_block): Don't assume the buffer
65147         length is less than 2**32.
65148         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
65149         length is less than 2**64.
65150
65151 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65152
65153         * string/str-two-way.h: Include <sys/param.h>.
65154         (MAX): Macro removed.
65155
65156         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
65157         Move #define and #undef of memmove to just before and after
65158         including <string.h>.
65159
65160         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
65161         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
65162         and after including <string.h>.  Move declarations of
65163         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
65164         to before #include "string/memmove.c".
65165
65166         * include/dirent.h: Declare __getdirentries.
65167
65168         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
65169         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
65170
65171 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
65172
65173         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
65174         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
65175         * sysdeps/i386/configure: Regenerated.
65176         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
65177         STABS_CURRENT_FILE, and STABS_FUN.
65178         (END): Remove call to STABS_FUN_END.
65179         (STABS_CURRENT_FILE1): Delete.
65180         (STABS_CURRENT_FILE): Likewise.
65181         (STABS_FUN): Likewise.
65182         (STABS_FUN_END): Likewise.
65183         (STABS_FUN2): Likewise.
65184         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
65185         * sysdeps/x86_64/configure: Regenerated.
65186
65187 2012-08-14  Roland McGrath  <roland@hack.frob.com>
65188
65189         * elf/dl-open.c: Include <atomic.h>.
65190         * elf/dl-lookup.c: Likewise.
65191
65192 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
65193
65194         * sysdeps/unix/sysv/linux/kernel-features.h
65195         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
65196         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
65197         unconditionally.
65198         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
65199         unconditionally.
65200         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
65201         condition on __ASSUME_CLONE_THREAD_FLAGS.
65202
65203 2012-08-14  Andreas Jaeger  <aj@suse.de>
65204
65205         * sysdeps/i386/fpu/libm-test-ulps: Update.
65206
65207 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
65208
65209         * include/atomic.h (atomic_exchange_and_add): Split into ...
65210         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
65211         New atomic macros.
65212
65213 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
65214
65215         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65216
65217 2012-08-13  Jeff Law <law@redhat.com>
65218
65219         * manual/stdio.texi (snprintf): Clarify handling of the trailing
65220         null byte in the output string.
65221
65222 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
65223
65224         * sysdeps/unix/sysv/linux/kernel-features.h
65225         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
65226         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
65227         (__ASSUME_ARG_MAX_STACK_BASED): Define.
65228         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
65229         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
65230         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
65231         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
65232
65233 2012-08-09  Jeff Law <law@redhat.com>
65234
65235         [BZ #13939]
65236         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
65237         When avoid_arena is set, don't retry in the that arena.  Pick the
65238         next one, whatever it might be.
65239         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
65240         (arena_lock): Pass in new parameter to arena_get2.
65241         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
65242         arena_get2.
65243         (__libc_malloc): Unify retrying after main arena failure with
65244         __libc_memalign version.
65245         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
65246
65247 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
65248
65249         [BZ #14166]
65250         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
65251         to __redirect_strstr.
65252         (__strstr_sse42): Use typeof __redirect_strstr.
65253         (__strstr_ia32): Likewise.
65254         (__libc_strstr): New prototype.
65255         (strstr): Renamed to ...
65256         (__libc_strstr): This.
65257         (strstr): New strong alias of __libc_strstr.
65258         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
65259         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
65260         __redirect_time.
65261         Include <time.h>.
65262         (__libc_time): New prototype.
65263         (time_ifunc): Replace time with __libc_time.
65264         (time): New strong alias and hidden definition of __libc_time.
65265         (__GI_time): Remove strong alias.
65266         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
65267         Include <stddef.h>.
65268         (memmove): Redefined to __redirect_memmove.
65269         (__memmove_sse2): Use typeof __redirect_memmove.
65270         (__memmove_ssse3): Likewise.
65271         (__memmove_ssse3_back): Likewise.
65272         (__libc_memmove): New prototype.
65273         (memmove): Renamed to ...
65274         (__libc_memmove): This.
65275         (memmove): New strong alias of __libc_memmove.
65276
65277 2012-08-08  Mark Salter  <msalter@redhat.com>
65278
65279         * elf/elf.h
65280         (R_MN10300_TLS_GD): Define.
65281         (R_MN10300_TLS_LD): Likewise.
65282         (R_MN10300_TLS_LDO): Likewise.
65283         (R_MN10300_TLS_GOTIE): Likewise.
65284         (R_MN10300_TLS_IE): Likewise.
65285         (R_MN10300_TLS_LE): Likewise.
65286         (R_MN10300_TLS_DTPMOD): Likewise.
65287         (R_MN10300_TLS_DTPOFF): Likewise.
65288         (R_MN10300_TLS_TPOFF): Likewise.
65289         (R_MN10300_SYM_DIFF): Likewise.
65290         (R_MN10300_ALIGN): Likewise.
65291         (R_MN10300_NUM): Update.
65292
65293 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
65294
65295         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
65296         Remove.
65297
65298 2012-08-08  Roland McGrath  <roland@hack.frob.com>
65299
65300         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
65301
65302         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
65303         sysdeps/unix -> sysdeps/posix move.
65304         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
65305
65306 2012-08-07      Allan McRae     <allan@archlinux.org>
65307
65308         [BZ #14303]
65309         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
65310         (SUNOS_CPP): Likewise.
65311         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
65312         not found.
65313         (open_input): Call CPP using execvp.
65314
65315 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65316
65317         * sysdeps/unix/sysv/linux/kernel-features.h
65318         (__ASSUME_PROT_GROWSUPDOWN): Remove.
65319         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65320         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65321         (__ASSUME_WAITID_SYSCALL): Likewise.
65322         * sysdeps/unix/sysv/linux/dl-execstack.c
65323         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
65324         code unconditional.
65325         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
65326         conditional code.
65327         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
65328         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
65329         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
65330         code.
65331         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
65332         unconditional.
65333         [__ASSUME_WAITID_SYSCALL]: Likewise.
65334         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
65335
65336 2012-08-07  Roland McGrath  <roland@hack.frob.com>
65337
65338         * sysdeps/unix/closedir.c: Renamed to ...
65339         * sysdeps/posix/closedir.c: ... here.
65340         * sysdeps/unix/dirfd.c: Renamed to ...
65341         * sysdeps/posix/dirfd.c: ... here.
65342         * sysdeps/unix/dirstream.h: Renamed to ...
65343         * sysdeps/posix/dirstream.h: ... here.
65344         * sysdeps/unix/fdopendir.c: Renamed to ...
65345         * sysdeps/posix/fdopendir.c: ... here.
65346         * sysdeps/unix/opendir.c: Renamed to ...
65347         * sysdeps/posix/opendir.c: ... here.
65348         * sysdeps/unix/readdir.c: Renamed to ...
65349         * sysdeps/posix/readdir.c: ... here.
65350         * sysdeps/unix/readdir_r.c: Renamed to ...
65351         * sysdeps/posix/readdir_r.c: ... here.
65352         * sysdeps/unix/rewinddir.c: Renamed to ...
65353         * sysdeps/posix/rewinddir.c: ... here.
65354         * sysdeps/unix/seekdir.c: Renamed to ...
65355         * sysdeps/posix/seekdir.c: ... here.
65356         * sysdeps/unix/telldir.c: Renamed to ...
65357         * sysdeps/posix/telldir.c: ... here.
65358         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
65359         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
65360         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
65361         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
65362
65363         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
65364         * bits/fcntl.h: ... here.
65365
65366         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
65367         not 0.
65368         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
65369         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
65370         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
65371         (struct flock): Move l_start, l_len to the beginning.
65372         Use __pid_t for l_pid.
65373         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
65374         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
65375         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
65376         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
65377         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
65378         [__USE_LARGEFILE64] (struct flock64): New type.
65379         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
65380
65381         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
65382         * bits/dirent.h: ... here.
65383
65384         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
65385         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
65386
65387 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65388
65389         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65390         Change from 2.6.0 to 2.6.16.
65391         * sysdeps/unix/sysv/linux/configure: Regenerated.
65392         * sysdeps/unix/sysv/linux/kernel-features.h
65393         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
65394         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
65395         version.
65396         (__ASSUME_UTIMES): Likewise.
65397         (__ASSUME_CLONE_STOPPED): Remove.
65398         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
65399         architectures, not kernel version.
65400         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
65401         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65402         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65403         (__ASSUME_WAITID_SYSCALL): Likewise.
65404         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
65405         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
65406         * README: State 2.6.16 as minimum Linux kernel version.  Do not
65407         refer to older versions.
65408
65409 2012-08-06  Roland McGrath  <roland@hack.frob.com>
65410
65411         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
65412         Define alphasort64 as an alias.
65413         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
65414         Define versionsort64 as an alias.
65415         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
65416         Define scandir64 as an alias.
65417         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
65418         Define scandirat64 as an alias.
65419         * dirent/alphasort64.c (alphasort64):
65420         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
65421         * dirent/versionsort64.c: Likewise.
65422         * dirent/scandir64.c: Likewise.
65423         * dirent/scandirat64.c: Likewise.
65424         * sysdeps/wordsize-64/alphasort.c: File removed.
65425         * sysdeps/wordsize-64/alphasort64.c: File removed.
65426         * sysdeps/wordsize-64/scandir.c: File removed.
65427         * sysdeps/wordsize-64/scandir64.c: File removed.
65428         * sysdeps/wordsize-64/scandirat.c: File removed.
65429         * sysdeps/wordsize-64/scandirat64.c: File removed.
65430         * sysdeps/wordsize-64/versionsort.c: File removed.
65431         * sysdeps/wordsize-64/versionsort64.c: File removed.
65432         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
65433         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
65434         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
65435         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
65436         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
65437         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
65438         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
65439         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
65440
65441         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
65442         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65443         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
65444         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65445         [defined __arch64__ || defined __sparcv9]
65446         (__INO_T_MATCHES_INO64_T): New macro.
65447         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65448         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
65449         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
65450         * sysdeps/unix/sysv/linux/bits/dirent.h
65451         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
65452         (_DIRENT_MATCHES_DIRENT64): New macro.
65453
65454         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
65455         Define lockf64 as an alias.
65456         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
65457         Define fseeko64 as an alias.
65458         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
65459         Define ftello64 as an alias.
65460         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
65461         Define _IO_fgetpos64 and fgetpos64 as aliases.
65462         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
65463         Define _IO_fsetpos64 and fsetpos64 as aliases.
65464         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
65465         Conditionalize body on this.
65466         * libio/fseeko64.c: Likewise.
65467         * libio/ftello64.c: Likewise.
65468         * libio/iofgetpos64.c: Likewise.
65469         * libio/iofsetpos64.c: Likewise.
65470         * sysdeps/wordsize-64/lockf.c: File removed.
65471         * sysdeps/wordsize-64/lockf64.c: File removed.
65472         * sysdeps/wordsize-64/fseeko.c: File removed.
65473         * sysdeps/wordsize-64/fseeko64.c: File removed.
65474         * sysdeps/wordsize-64/ftello.c: File removed.
65475         * sysdeps/wordsize-64/ftello64.c: File removed.
65476         * sysdeps/wordsize-64/iofgetpos.c: File removed.
65477         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
65478         * sysdeps/wordsize-64/iofsetpos.c: File removed.
65479         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
65480         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
65481         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
65482         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
65483         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
65484         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
65485         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
65486         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
65487         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
65488         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
65489         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
65490
65491         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65492         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65493         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
65494         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65495         [defined __arch64__ || defined __sparcv9]
65496         (__OFF_T_MATCHES_OFF64_T): New macro.
65497         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65498         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65499         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65500         (__OFF_T_MATCHES_OFF64_T): New macro.
65501
65502 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65503
65504         * stdlib/secure-getenv.c (__secure_getenv): Replace
65505         GLIBC_2_16 with GLIBC_2_17.
65506
65507 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65508
65509         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
65510         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65511
65512 2012-08-03  David S. Miller  <davem@davemloft.net>
65513
65514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65515
65516 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65517
65518         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
65519         Remove.
65520         (__ASSUME_CORRECT_SI_PID): Likewise.
65521         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
65522         (__ASSUME_TMPFS_NAME): Likewise.
65523         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
65524         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
65525         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
65526         (HAVE_AUX_SECURE): Make definition unconditional.
65527         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
65528         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
65529
65530 2012-08-03  Roland McGrath  <roland@hack.frob.com>
65531
65532         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
65533         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
65534         * sysdeps/mach/hurd/eloop-threshold.h: New file.
65535         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
65536         __eloop_threshold instead of SYMLOOP_MAX.
65537
65538         * sysdeps/generic/eloop-threshold.h: New file.
65539         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
65540         of MAXSYMLINKS.
65541         * elf/chroot_canon.c (chroot_canon): Likewise.
65542
65543 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65544
65545         [BZ #13717]
65546         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65547         Change to 2.6.0 everywhere.
65548         * sysdeps/unix/sysv/linux/configure: Regenerated.
65549         * sysdeps/unix/sysv/linux/kernel-features.h
65550         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
65551         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
65552         kernel versions.
65553         (__ASSUME_POSIX_TIMERS): Define unconditionally.
65554         (__ASSUME_FUTEX_REQUEUE): Remove.
65555         (__ASSUME_STATFS64): Define unconditionally.
65556         (__ASSUME_AT_SECURE): Likewise.
65557         (__ASSUME_CORRECT_SI_PID): Likewise.
65558         (__ASSUME_TGKILL): Define without depending on kernel version for
65559         i386.
65560         (__ASSUME_UTIMES): Likewise.
65561         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
65562         kernel version.
65563         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
65564         (__ASSUME_TMPFS_NAME): Likewise.
65565         * README: Update reference to Linux kernel versions.
65566
65567 2012-08-02  Marek Polacek  <polacek@redhat.com>
65568
65569         [BZ# 14150]
65570         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
65571         libc_cv_asm_type_prefix with %.
65572         * configure: Regenerated.
65573         * include/libc-symbols.h: Remove comment about
65574         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65575         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
65576         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
65577         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
65578         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
65579         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65580         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
65581         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
65582         * elf/tst-unique2mod1.c: Likewise.
65583         * elf/tst-unique1mod2.c: Likewise.
65584         * elf/tst-unique1mod1.c: Likewise.
65585         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
65586         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
65587         Replace ASM_TYPE_DIRECTIVE with .type.
65588         * sysdeps/s390/s390-64/sysdep.h: Likewise.
65589         * sysdeps/i386/sysdep.h: Likewise.
65590         * sysdeps/x86_64/sysdep.h: Likewise.
65591         * sysdeps/sh/sysdep.h: Likewise.
65592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
65593         Do not define ASM_TYPE_DIRECTIVE.
65594         * sysdeps/powerpc/sysdep.h: Likewise.
65595         * sysdeps/powerpc/powerpc32/sysdep.h:
65596         Replace ASM_TYPE_DIRECTIVE with .type.
65597         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
65598         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
65599         * sysdeps/i386/fpu/e_powf.S: Likewise.
65600         * sysdeps/i386/fpu/e_expl.S: Likewise.
65601         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
65602         * sysdeps/i386/fpu/e_acosh.S: Likewise.
65603         * sysdeps/i386/fpu/e_pow.S: Likewise.
65604         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
65605         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
65606         * sysdeps/i386/fpu/s_expm1.S: Likewise.
65607         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
65608         * sysdeps/i386/fpu/e_log2.S: Likewise.
65609         * sysdeps/i386/fpu/e_log2l.S: Likewise.
65610         * sysdeps/i386/fpu/e_scalb.S: Likewise.
65611         * sysdeps/i386/fpu/e_powl.S: Likewise.
65612         * sysdeps/i386/fpu/e_log10f.S: Likewise.
65613         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
65614         * sysdeps/i386/fpu/e_logl.S: Likewise.
65615         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
65616         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
65617         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
65618         * sysdeps/i386/fpu/e_log2f.S: Likewise.
65619         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
65620         * sysdeps/i386/fpu/e_log.S: Likewise.
65621         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
65622         * sysdeps/i386/fpu/e_logf.S: Likewise.
65623         * sysdeps/i386/fpu/e_log10l.S: Likewise.
65624         * sysdeps/i386/fpu/e_atanh.S: Likewise.
65625         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
65626         * sysdeps/i386/fpu/e_log10.S: Likewise.
65627         * sysdeps/i386/fpu/s_frexp.S: Likewise.
65628         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
65629         * sysdeps/i386/fpu/s_asinh.S: Likewise.
65630         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65631         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
65632         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
65633         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
65634         * sysdeps/i386/i686/strtok.S: Likewise.
65635         * sysdeps/i386/i386-mcount.S: Likewise.
65636         * sysdeps/i386/strtok.S: Likewise.
65637         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
65638         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
65639         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65640         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
65641         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
65642         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
65643         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
65644         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
65645         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
65646         * sysdeps/x86_64/_mcount.S: Likewise.
65647         * sysdeps/x86_64/strtok.S: Likewise.
65648         * sysdeps/sh/_mcount.S: Likewise.
65649
65650 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65651
65652         * libio/iofopen.c: Include <fcntl.h>.
65653         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
65654         (_IO_fopen64, fopen64): Define as aliases.
65655         * libio/iofopen64.c: Include <fcntl.h>.
65656         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
65657         Conditionalize body on this.
65658         * sysdeps/wordsize-64/iofopen.c: File removed.
65659         * sysdeps/wordsize-64/iofopen64.c: File removed.
65660
65661 2012-08-01  Marek Polacek  <polacek@redhat.com>
65662
65663         * libc/Makeconfig: Use elf in place of binfmt-subdir.
65664         Use dlfcn directly instead of a variable.
65665         (binfmt-subdir): Do not define.
65666         (dlfcn): Likewise.
65667
65668 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
65669
65670         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
65671         Remove all definitions.
65672         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
65673         <kernel-features.h>.
65674         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65675         (miss_F_GETOWN_EX): Remove all definitions.
65676         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
65677         macro definition.
65678         [!__ASSUME_FCNTL64]: Remove conditional code.
65679         [__ASSUME_FCNTL64]: Make code unconditional.
65680         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
65681         <kernel-features.h>.
65682         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65683         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
65684         (lockf64) [__NR_fcntl64]: Make code unconditional.
65685         (lockf64) [__ASSUME_FCNTL64]: Likewise.
65686
65687         * sysdeps/unix/sysv/linux/kernel-features.h
65688         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
65689         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
65690         Make code unconditional.
65691         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65692         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
65694         [__NR_vfork]: Make code unconditional.
65695         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65696         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
65698         [__NR_vfork]: Make code unconditional.
65699         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65700         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65701
65702 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65703
65704         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
65705         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
65706
65707         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65708         Define mkstemp64 as an alias.
65709         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65710         Define mkstemps64 as an alias.
65711         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65712         Define mkostemp64 as an alias.
65713         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65714         Define mkostemps64 as an alias.
65715         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
65716         Conditionalize body on this.
65717         * misc/mkostemp64.c: Likewise.
65718         * misc/mkostemps64.c: Likewise.
65719         * misc/mkstemps64.c: Likewise.
65720         * sysdeps/wordsize-64/mkstemp64.c: File removed.
65721         * sysdeps/wordsize-64/mkostemp64.c: File removed.
65722         * sysdeps/wordsize-64/mkostemp.c: File removed.
65723         * sysdeps/wordsize-64/mkstemp.c: File removed.
65724         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
65725         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
65726         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
65727         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
65728
65729         [BZ #14138]
65730         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
65731         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
65732         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
65733         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
65734
65735         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
65736         compat_symbol macros from <shlib-compat.h> rather than the underlying
65737         default_symbol_version and symbol_version macros, so that DEFAULT
65738         lines in shlib-versions are respected.
65739         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
65740
65741 2012-08-01  Florian Weimer  <fweimer@redhat.com>
65742
65743         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
65744         Declare with warn_unused_result.
65745         (setgid, setregid, setegid, setresgid): Likewise.
65746         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
65747         Likewise.
65748         * WUR-REPORT: Remove set*id functions.
65749
65750 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
65751
65752         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
65753
65754 2012-07-31  Roland McGrath  <roland@hack.frob.com>
65755
65756         [BZ #10191]
65757         * include/sys/socket.h (__libc_accept, __libc_accept4):
65758         Add attribute_hidden.
65759         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
65760
65761         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
65762         use of PTR_MANGLE.
65763         * inet/getnetgrent_r.c (setup): Likewise.
65764
65765         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
65766
65767 2012-07-31  David S. Miller  <davem@davemloft.net>
65768
65769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65770
65771 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
65772
65773         [BZ #13629]
65774         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
65775         value between 1.0 and 2.0 and smaller part has absolute value less
65776         than 1.0.
65777         * math/s_clog10.c (__clog10): Likewise.
65778         * math/s_clog10f.c (__clog10f): Likewise.
65779         * math/s_clog10l.c (__clog10l): Likewise.
65780         * math/s_clogf.c (__clogf): Likewise.
65781         * math/s_clogl.c (__clogl): Likewise.
65782         * math/libm-test.inc (clog_test): Add more tests.
65783         (clog10_test): Likewise.
65784         * sysdeps/i386/fpu/libm-test-ulps: Update.
65785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65786
65787 2012-07-31  Florian Weimer  <fweimer@redhat.com>
65788
65789         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
65790         Exit with zero in case no suitable GID is found, and write a
65791         message to standard error.
65792
65793 2012-07-30  Roland McGrath  <roland@hack.frob.com>
65794
65795         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
65796         rather than to 1.
65797         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
65798         (MAXPATHLEN): Removed.
65799         (NOGROUP, NODEV): New macros.
65800         (setbit, clrbit, isset, isclr): New macros.
65801         (howmany, roundup, powerof2): New macros.
65802         (DEV_BSIZE): New macro.
65803
65804         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
65805         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
65806
65807         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
65808         definition on [!__NO_LONG_DOUBLE_MATH].
65809
65810         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
65811         PTR_MANGLE and PTR_DEMANGLE.
65812
65813         * socket/accept4.c (accept4): Rename to __libc_accept4.
65814         Define accept4 as a weak alias.
65815
65816         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
65817         on [_DIRENT_HAVE_D_TYPE].
65818         * io/ftw.c (ftw_dir): Likewise.
65819
65820         * io/xmknod.c (__xmknod): Don't check PATH for being null.
65821
65822         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
65823
65824         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
65825         Use the BSD numbers rather than the arbitrary ones we had.
65826         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
65827         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
65828         (SIGXCPU, SIGXFSZ): New macros.
65829         (_NSIG): Now 32.
65830
65831         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
65832         initializer on [_LIBC_REENTRANT].
65833
65834         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
65835         definitions inside [_POSIX_MAPPED_FILES].
65836
65837         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
65838
65839         * dirent/opendir.c: Include <fcntl.h>.
65840
65841         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
65842         (__libc_getspecific): Likewise.
65843         (__libc_key_create): Likewise.
65844
65845         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
65846         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
65847         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
65848         (tmpfile64): Define as alias.
65849         * sysdeps/wordsize-64/tmpfile.c: File removed.
65850         * sysdeps/wordsize-64/tmpfile64.c: File removed.
65851         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
65852         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
65853
65854         * stdio-common/vfscanf.c: Include <stdbool.h>.
65855         * nss/makedb.c: Likewise.
65856         * stdio-common/_i18n_number.h: Likewise.
65857         * argp/argp-help.c: Likewise.
65858         * posix/wordexp.c: Likewise.
65859         * sysdeps/posix/spawni.c: Likewise.
65860         * nss/nss_files/files-initgroups.c: Likewise.
65861         * stdio-common/reg-modifier.c: Include <stdlib.h>.
65862         * nss/nss_files/files-initgroups.c: Likewise.
65863         * nss/nss_db/db-netgrp.c: Likewise.
65864         * nss/nss_db/db-initgroups.c: Likewise.
65865         * io/fchmodat.c: Include <sys/stat.h>.
65866
65867         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
65868         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
65869
65870         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
65871         [HAVE_MMAP].
65872
65873         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
65874         Add multiple inclusion protection.
65875
65876 2012-07-27  David S. Miller  <davem@davemloft.net>
65877
65878         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65879
65880 2012-07-27  Gary Benson  <gbenson@redhat.com>
65881
65882         [BZ #14298]
65883         * elf/rtld.c: Include <stap-probe.h>.
65884         (dl_main): Added static probes "init_start" and "init_complete".
65885         * elf/dl-load.c: Include <stap-probe.h>.
65886         (lose): Take new parameter "nsid".
65887         Added static probe "map_failed".
65888         (_dl_map_object_from_fd): Pass namespace id to lose.
65889         Added static probe "map_start".
65890         (open_verify): Pass namespace id to lose.
65891         * elf/dl-open.c: Include <stap-probe.h>.
65892         (dl_open_worker) Added static probes "map_complete", "reloc_start"
65893         and "reloc_complete".
65894         * elf/dl-close.c: Include <stap-probe.h>.
65895         (_dl_close_worker): Added static probes "unmap_start" and
65896         "unmap_complete".
65897         * elf/rtld-debugger-interface.txt: New file documenting the above.
65898
65899 2012-07-26  Roland McGrath  <roland@hack.frob.com>
65900
65901         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
65902         rather than a string variable.
65903         * sunrpc/rpc_main.c (h_output): Likewise.
65904         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
65905
65906 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
65907
65908         * inet/check_native.c: New file.
65909
65910 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
65911
65912         [BZ #13629]
65913         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
65914         if larger part has absolute value 1.0.
65915         * math/s_clog10.c (__clog10): Likewise.
65916         * math/s_clog10f.c (__clog10f): Likewise.
65917         * math/s_clog10l.c (__clog10l): Likewise.
65918         * math/s_clogf.c (__clogf): Likewise.
65919         * math/s_clogl.c (__clogl): Likewise.
65920         * math/libm-test.inc (clog_test): Add more tests.
65921         (clog10_test): Likewise.
65922         * sysdeps/i386/fpu/libm-test-ulps: Update.
65923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65924
65925         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
65926         (pltexit): Likewise.
65927         (La_regs): Likewise.
65928         (La_retval): Likewise.
65929         (int_retval): Likewise.
65930         Update #error for removed macros to refer only to definitions in
65931         tst-audit.h.
65932         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
65933         macro.
65934         (pltexit): Likewise.
65935         (La_regs): Likewise.
65936         (La_retval): Likewise.
65937         (int_retval): Likewise.
65938         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
65939         macro.
65940         (pltexit): Likewise.
65941         (La_regs): Likewise.
65942         (La_retval): Likewise.
65943         (int_retval): Likewise.
65944         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
65945         macro.
65946         (pltexit): Likewise.
65947         (La_regs): Likewise.
65948         (La_retval): Likewise.
65949         (int_retval): Likewise.
65950         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
65951         macro.
65952         (pltexit): Likewise.
65953         (La_regs): Likewise.
65954         (La_retval): Likewise.
65955         (int_retval): Likewise.
65956         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
65957         macro.
65958         (pltexit): Likewise.
65959         (La_regs): Likewise.
65960         (La_retval): Likewise.
65961         (int_retval): Likewise.
65962         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
65963         macro.
65964         (pltexit): Likewise.
65965         (La_regs): Likewise.
65966         (La_retval): Likewise.
65967         (int_retval): Likewise.
65968         * sysdeps/generic/tst-audit.h: Update comment to refer only to
65969         macro definitions in tst-audit.h.
65970         * sysdeps/i386/tst-audit.h: New file.
65971         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
65972         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
65973         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
65974         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
65975         * sysdeps/sh/tst-audit.h: Likewise.
65976         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
65977         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
65978         * sysdeps/x86_64/tst-audit.h: Likewise.
65979
65980 2012-07-26  Andreas Jaeger  <aj@suse.de>
65981
65982         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
65983         ptrace.
65984
65985         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
65986         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
65987         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
65988         PTRACE_O_MASK.
65989         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
65990         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
65991         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
65992
65993         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
65994         value.
65995
65996         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
65997         _sigsys.
65998         (si_call_addr, si_syscall, si_arch): Define new macro.
65999         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
66000         _sigsys.
66001         (si_call_addr, si_syscall, si_arch): Define new marcro.
66002         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
66003         _sigsys.
66004         (si_call_addr, si_syscall, si_arch): Define new macro.
66005         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
66006         _sigsys.
66007         (si_call_addr, si_syscall, si_arch): Define new macro.
66008
66009 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66010
66011         [BZ #13717]
66012         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66013         Change to 2.4.21 where previously 2.4.1.
66014         * sysdeps/unix/sysv/linux/configure: Regenerated.
66015         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
66016         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
66017         Linux kernel version.
66018         (__ASSUME_STD_AUXV): Remove.
66019         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
66020         kernel version.
66021         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
66022         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
66023         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
66024         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
66025         (__ASSUME_NETLINK_SUPPORT): Likewise.
66026         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
66027         (__no_netlink_support): Remove conditional definition.
66028         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
66029         Remove.
66030         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
66031         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
66032         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
66033         (if_nameindex_ioctl): Remove.
66034         (if_nameindex_netlink): Do not handle __no_netlink_support.
66035         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
66036         code.
66037         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
66038         Remove conditional code.
66039         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
66040         code.
66041         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
66042         unconditional.
66043         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
66044         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
66045         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
66046         Remove.
66047         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
66048         [!__ASSUME_STD_AUXV]: Remove conditional code.
66049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
66050         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
66051         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
66052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
66053         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
66054         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66055         code.
66056         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
66058         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
66059         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66060         conditional code.
66061         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
66063         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66064         code.
66065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
66066         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66067         conditional code.
66068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
66069         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66070         code unconditional.
66071         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66072         conditional code.
66073         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66074         unconditional.
66075         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66076         conditional code.
66077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
66078         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66079         unconditional.
66080         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66081         conditional code.
66082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
66083         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66084         code unconditional.
66085         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66086         conditional code.
66087         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66088         unconditional.
66089         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66090         conditional code.
66091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
66092         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66093         code unconditional.
66094         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66095         conditional code.
66096         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66097         unconditional.
66098         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66099         conditional code.
66100
66101 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
66102
66103         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
66104         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
66105         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
66106         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
66107         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
66108         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
66109         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
66110         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
66111         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
66112         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
66113         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
66114         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
66115         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
66116         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
66117         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
66118         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
66119         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
66120         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
66121         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
66122         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
66123         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
66124         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
66125         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66126
66127 2012-07-25  Florian Weimer  <fweimer@redhat.com>
66128
66129         * Versions.def: Add GLIBC_2.17.
66130         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
66131         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
66132         Introduce __libc_secure_getenv.
66133         * stdlib/Versions (2.17): Add secure_getenv
66134         (GLIBC_PRIVATE): Add __libc_secure_getenv.
66135         * stdlib/secure-getenv.c: Rename __secure_getenv to
66136         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
66137         symbol __secure_getenv for GLIBC_2.0.
66138         * stdlib/tst-secure-getenv.c: New.
66139         * stdlib/Makefile (tests): Add testcase.
66140         * manual/startup.texi (Environment Access): Document
66141         secure_getenv.
66142         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
66143         __libc_secure_getenv.
66144         * inet/ruserpass.c (ruserpass): Likewise.
66145         * malloc/mtrace.c (mtrace): Likewise.
66146         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
66147         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
66148         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
66149         * sysdeps/posix/tempname.c: Likewise.  Evaluate
66150         HAVE_SECURE_GETENV.
66151         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
66152         __secure_getenv to __libc_secure_getenv.
66153         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
66154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
66155         Likewise.
66156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
66157         Likewise.
66158         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
66159         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
66160         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
66161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
66162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
66163         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
66164         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
66165
66166 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66167
66168         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
66169         (struct La_i86_retval): Likewise.
66170         (struct La_x86_64_regs): Likewise.
66171         (struct La_x86_64_retval): Likewise.
66172         (struct La_x32_regs): Likewise.
66173         (struct La_x32_retval): Likewise.
66174         (struct La_ppc32_regs): Likewise.
66175         (struct La_ppc32_retval): Likewise.
66176         (struct La_ppc64_regs): Likewise.
66177         (struct La_ppc64_retval): Likewise.
66178         (struct La_sh_regs): Likewise.
66179         (struct La_sh_retval): Likewise.
66180         (struct La_s390_32_regs): Likewise.
66181         (struct La_s390_32_retval): Likewise.
66182         (struct La_s390_64_regs): Likewise.
66183         (struct La_s390_64_retval): Likewise.
66184         (struct La_sparc32_regs): Likewise.
66185         (struct La_sparc32_retval): Likewise.
66186         (struct La_sparc64_regs): Likewise.
66187         (struct La_sparc64_retval): Likewise.
66188         (struct audit_ifaces): Remove architecture-specific pltenter and
66189         pltexit members.
66190         * sysdeps/i386/ldsodefs.h: New file.
66191         * sysdeps/powerpc/ldsodefs.h: Likewise.
66192         * sysdeps/s390/ldsodefs.h: Likewise.
66193         * sysdeps/sh/ldsodefs.h: Likewise.
66194         * sysdeps/sparc/ldsodefs.h: Likewise.
66195         * sysdeps/x86_64/ldsodefs.h: Likewise.
66196
66197 2012-07-25  Marek Polacek  <polacek@redhat.com>
66198
66199         [BZ #6808]
66200         * math/libm-test.inc (yn_test): Add another test.
66201         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
66202         to ERANGE when the result is +-Inf.
66203         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
66204         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
66205         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
66206         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
66207
66208 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
66209
66210         * conform/data/time.h-data (NULL): Use macro-constant.  Require
66211         equal to 0.
66212         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
66213         clock_t.
66214         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
66215
66216 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
66217
66218         * configure.in <sysdeps resolving>: Correct printing
66219         Implies_before.
66220         * configure: Regenerate.
66221
66222 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
66223
66224         * math/w_ilogb.c: Include <limits.h>.
66225         * math/w_ilogbl.c: Likewise.
66226
66227 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66228
66229         * manual/lang.texi (__va_copy): Document primarily as ISO C99
66230         va_copy.  Document allowing for unavailable va_copy only as
66231         pre-C99 compatibility.
66232         * manual/string.texi (Copying and Concatenation): Use va_copy
66233         instead of __va_copy in concat example.
66234
66235 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
66236
66237         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
66238         (__sendto): Use create_address_port.  Initialize APORT and deallocate
66239         it if not null.
66240
66241         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
66242         with O_NOLINK passed to __file_name_lookup.
66243
66244         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
66245         with O_NOLINK passed to __file_name_lookup.
66246
66247         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
66248         negative N or less than NGIDS.
66249
66250         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
66251         type to string_t.  Set ERANGE as errno and return it if NAME is not big
66252         enough.  Use memcpy instead of strncpy.
66253
66254 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66255
66256         * elf/Makefile (check-data): Remove.
66257         (localplt.data): New vpath directive.
66258         ($(objpfx)check-localplt.out): Use localplt.data from vpath
66259         instead of $(check-data).
66260         * scripts/data/localplt-generic.data: Move to ...
66261         * sysdeps/generic/localplt.data: ... here.
66262         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
66263         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
66264         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
66265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
66266         ... here.
66267         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
66268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
66269         ... here.
66270         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
66271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
66272         ... here.
66273         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
66274         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
66275         ... here.
66276         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
66277         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
66278         ... here.
66279         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
66280         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
66281         ... here.
66282
66283 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66284
66285         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
66286         PPC32 and PPC64 files.
66287         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
66288         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
66289
66290 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66291
66292         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
66293         __makecontext_ret to ...
66294         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
66295         ... here and call exit if uc_link is NULL.  New file.
66296         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
66297         __makecontext_ret.S.
66298         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
66299         __makecontext_ret to ...
66300         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
66301         ... here and call exit if uc_link is NULL.  New file.
66302         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
66303         __makecontext_ret.S.
66304
66305 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66306
66307         * elf/elf.h (R_390_IRELATIVE): New definition.
66308         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
66309         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
66310         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
66311         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
66312         (elf_machine_lazy_rel): Likewise.
66313         * sysdeps/s390/dl-irel.h: New file.
66314         * sysdeps/s390/s390-64/memcpy.S: New asm code.
66315         * sysdeps/s390/s390-64/memset.S: New asm code.
66316         * sysdeps/s390/s390-64/memcmp.S: New asm code.
66317         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
66318         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
66319         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
66320         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
66321         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
66322         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
66323         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
66324         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
66325         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
66326         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
66327         * sysdeps/s390/s390-32/memcpy.S: New asm code.
66328         * sysdeps/s390/s390-32/memset.S: New asm code.
66329         * sysdeps/s390/s390-32/memcmp.S: New asm code.
66330
66331 2012-07-17  Marek Polacek  <polacek@redhat.com>
66332
66333         [BZ #14349]
66334         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
66335         * sysdeps/s390/s390-64/configure.in: Likewise.
66336         * sysdeps/sparc/configure.in: Likewise.
66337         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
66338         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
66339         * sysdeps/i386/configure.in: Likewise.
66340         * sysdeps/x86_64/configure.in: Likewise.
66341         * sysdeps/sh/configure.in: Likewise.
66342         * sysdeps/s390/s390-32/configure: Regenerated.
66343         * sysdeps/s390/s390-64/configure: Likewise.
66344         * sysdeps/x86_64/configure: Likewise.
66345         * sysdeps/sh/configure: Likewise.
66346         * sysdeps/powerpc/powerpc64/configure: Likewise.
66347         * sysdeps/powerpc/powerpc32/configure: Likewise.
66348         * sysdeps/sparc/configure: Likwise.
66349         * sysdeps/i386/configure: Likewise.
66350
66351         * elf/dl-open.c: Comment fixes.
66352
66353 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
66354
66355         * Makefile [CXX] (check-data): Remove.
66356         [CXX] (c++-types.data): New vpath directive.
66357         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
66358         vpath.  Do not allow for C++ type data being missing.
66359         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
66360         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
66361         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
66362         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
66363         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
66364         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
66365         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
66366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
66367         ... here.
66368         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
66369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
66370         ... here.
66371         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
66372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
66373         ... here.
66374         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
66375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
66376         ... here.
66377         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
66378         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
66379         ... here.
66380         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
66381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
66382         ... here.
66383         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
66384         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
66385         ... here.
66386         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
66387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
66388
66389         * elf/tls-macros.h (TLS_LE): Move architecture-specific
66390         definitions to architecture-specific files.
66391         (TLS_IE): Likewise.
66392         (TLS_LD): Likewise.
66393         (TLS_GD): Likewise.
66394         * sysdeps/i386/tls-macros.h: New file.
66395         * sysdeps/powerpc/tls-macros.h: Likewise.
66396         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
66397         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
66398         * sysdeps/sh/tls-macros.h: Likewise.
66399         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
66400         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
66401         * sysdeps/x86_64/tls-macros.h: Likewise.
66402
66403 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66404
66405         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
66406         zero value for regular exit case.
66407
66408         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
66409         (__start_context): Preserve zero value for regular exit case.
66410
66411 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66412             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66413
66414         * manual/setjmp.texi (setcontext): Clarify normal process
66415         termination when uc_link is the null pointer.
66416         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
66417         exit call.
66418
66419 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
66420
66421         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
66422         preprocessor.  Test for each exception mask separately.
66423
66424 2012-07-16  Andreas Jaeger  <aj@suse.de>
66425
66426         * po/ru.po: Update from translation team.
66427
66428 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
66429
66430         * conform/data/string.h-data (NULL): Use macro-constant.  Require
66431         equal to 0.
66432         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
66433         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
66434         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
66435         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
66436         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66437
66438 2012-07-13  Andreas Jaeger  <aj@suse.de>
66439
66440         * po/fr.po: Update from translation team.
66441
66442 2012-07-12  Marek Polacek  <polacek@redhat.com>
66443
66444         [BZ #14173]
66445         * math/libm-test.inc (yn_test): Add test for BZ #14173.
66446         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
66447         loop condition.
66448
66449 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
66450
66451         [BZ #13717]
66452         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66453         Change to 2.4.1 where previously 2.4.0.
66454         * sysdeps/unix/sysv/linux/configure: Regenerated.
66455         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
66456         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
66457         version.
66458         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
66459         (__ASSUME_AT_CLKTCK): Remove.
66460         (__ASSUME_AT_PAGESIZE): Likewise.
66461         (__ASSUME_AT_XID): Likewise.
66462         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
66463         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
66464         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
66465         unconditionally.
66466         (HAVE_AUX_PAGESIZE): Likewise.
66467         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
66468         [__ASSUME_AT_CLKTCK]: Make code unconditional.
66469         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
66470
66471 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
66472
66473         [BZ #14307]
66474         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
66475         the temporary buffer used to invoke __gethostbyname2_r,
66476         __gethostbyaddr_r and gethostbyname4_r to make room for struct
66477         host_data / struct gaih_addrtuple.
66478         * resolv/nss_dns/dns-host.c (global scope): Move definition of
66479         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
66480         header file nss/nsswitch.h.
66481         * nss/nsswitch.h (global scope): Add definition of implementation
66482         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
66483         resolv/nss_dns/dns-host.c).
66484
66485 2012-07-11  Andreas Jaeger  <aj@suse.de>
66486
66487         * po/fr.po: Update from translation team.
66488
66489         * po/sv.po: Update from translation team
66490         * po/fr.po: Another update from translation team.
66491
66492 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66493
66494         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
66495         for subnormals or multiply small sinh result by itself.
66496         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
66497         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66498
66499 2012-07-11  David S. Miller  <davem@davemloft.net>
66500
66501         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66502
66503 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
66504
66505         [BZ #14347]
66506         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66507         (INTERNAL_MARK): Shift it here.
66508
66509 2012-07-10  Marek Polacek  <polacek@redhat.com>
66510
66511         [BZ #14151]
66512         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
66513         libc_cv_asm_global_directive with .globl.
66514         * configure: Regenerated.
66515         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
66516         with .globl.
66517         * sysdeps/i386/configure: Regenerated.
66518         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
66519         with .globl.
66520         * sysdeps/x86_64/configure: Regenerated.
66521         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
66522         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
66523         * elf/tst-unique2mod2.c: Likewise.
66524         * elf/tst-unique2mod1.c: Likewise.
66525         * elf/tst-unique1mod2.c: Likewise.
66526         * elf/tst-unique1mod1.c: Likewise.
66527         * sysdeps/s390/s390-32/sysdep.h: Likewise.
66528         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66529         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66530         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66531         * sysdeps/mach/sysdep.h: Likewise.
66532         * sysdeps/i386/sysdep.h: Likewise.
66533         * sysdeps/i386/i386-mcount.S: Likewise.
66534         * sysdeps/x86_64/_mcount.S: Likewise.
66535         * sysdeps/x86_64/sysdep.h: Likewise.
66536         * sysdeps/sh/_mcount.S: Likewise.
66537         * sysdeps/sh/sysdep.h: Likewise.
66538         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
66539         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
66540         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
66541         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66542         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
66543         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
66544         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
66545         * locale/localeinfo.h: Likewise.
66546         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
66547         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
66548
66549 2012-07-09  Roland McGrath  <roland@hack.frob.com>
66550
66551         [BZ #14336]
66552         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
66553         system".
66554         * manual/message.texi (The Uniforum approach): Likewise.
66555         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
66556         (glibc iconv Implementation): Likewise.
66557
66558 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
66559
66560         [BZ #14337]
66561         * math/s_clog.c (__clog): Avoid scaling a value down where that
66562         could result in underflow.
66563         * math/s_clog10.c (__clog10): Likewise.
66564         * math/s_clog10f.c (__clog10f): Likewise.
66565         * math/s_clog10l.c (__clog10l): Likewise.
66566         * math/s_clogf.c (__clogf): Likewise.
66567         * math/s_clogl.c (__clogl): Likewise.
66568         * math/libm-test.inc (clog_test): Add more tests.
66569         (clog10_test): Likewise.
66570         * sysdeps/i386/fpu/libm-test-ulps: Update.
66571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66572
66573 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
66574
66575         [BZ #14283]
66576         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
66577         by 7 not 8 to examine high bit of fractional part.
66578
66579         [BZ #14042]
66580         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
66581         for call to __mcount_internal.
66582         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
66583         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
66584         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
66585
66586 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
66587
66588         [BZ #14154]
66589         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
66590         approximation for values within 0x1p-13f of an odd multiple of
66591         pi/4.
66592         * math/libm-test.inc (tan_test): Do not allow spurious underflow
66593         exception.  Add more tests.
66594         * sysdeps/i386/fpu/libm-test-ulps: Update.
66595
66596         [BZ #6778]
66597         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
66598         inputs and return -1 for them.  Do not check for +Inf in case not
66599         reachable for +Inf.
66600         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
66601         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
66602         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66603         and return -1 for them.  Do not check for +Inf in case not
66604         reachable for +Inf.
66605         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
66606         define.
66607         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66608         and return -1 for them.  Do not check for +Inf in case not
66609         reachable for +Inf.
66610         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
66611         spurious underflow.
66612         * sysdeps/i386/fpu/libm-test-ulps: Update.
66613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66614
66615 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
66616
66617         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
66618
66619 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
66620
66621         [BZ #14157]
66622         [BZ #14331]
66623         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
66624         could result in spurious underflow.  Scale down values above
66625         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
66626         * math/s_csqrtf.c (__csqrtf): Likewise.
66627         * math/s_csqrtl.c (__csqrtl): Likewise.
66628         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
66629         spurious underflow.
66630         * sysdeps/i386/fpu/libm-test-ulps: Update.
66631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66632
66633 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
66634
66635         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
66636         xopen-msg.sed.
66637         * catgets/xopen-msg.awk: New file.
66638         * catgets/xopen-msg.sed: Removed.
66639
66640         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
66641         po2text.sed.
66642         * intl/po2test.awk: New file.
66643         * intl/po2test.sed: Removed.
66644
66645 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
66646
66647         [BZ #14328]
66648         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
66649         or multiply small sinh result by itself.
66650         * math/s_ctanf.c (__ctanf): Likewise.
66651         * math/s_ctanh.c (__ctanh): Likewise.
66652         * math/s_ctanhf.c (__ctanhf): Likewise.
66653         * math/s_ctanhl.c (__ctanhl): Likewise.
66654         * math/s_ctanl.c (__ctanl): Likewise.
66655         * math/libm-test.inc (ctan_test_tonearest): New function.
66656         (ctan_test_towardzero): Likewise.
66657         (ctan_test_downward): Likewise.
66658         (ctan_test_upward): Likewise.
66659         (ctanh_test_tonearest): Likewise.
66660         (ctanh_test_towardzero): Likewise.
66661         (ctanh_test_downward): Likewise.
66662         (ctanh_test_upward): Likewise.
66663         (main): Call these new functions.
66664         * sysdeps/i386/fpu/libm-test-ulps: Update.
66665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66666
66667 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
66668
66669         * .gitignore: Delete /ports entry.
66670
66671 2012-07-03  Andreas Jaeger  <aj@suse.de>
66672
66673         * po/bg.po: Update from translation team.
66674         * po/cs.po: Likewise.
66675         * po/de.po: Likewise.
66676         * po/hr.po: Likewise.
66677         * po/nl.pl: Likewise.
66678         * po/pl.po: Likewise.
66679         * po/vi.po: Likewise.
66680
66681 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
66682
66683         * Makeconfig [!+link] (+link-before-libc): New variable.
66684         [!+link] (+link-after-libc): Likewise.
66685         [!+link] (+link-tests): Likewise.
66686         [!+link] (+link): Define in terms of $(+link-before-libc) and
66687         $(+link-after-libc).
66688         [!+link-static] (+link-static-before-libc): New variable.
66689         [!+link-static] (+link-static-after-libc): Likewise.
66690         [!+link-static] (+link-static-tests): Likewise.
66691         [!+link-static] (+link-static): Define in terms of
66692         $(+link-static-before-libc) and $(+link-static-after-libc).
66693         [build-shared] (link-libc-before-gnulib): New variable.
66694         [build-shared] (link-libc-tests): Likewise.
66695         [build-shared] (link-libc): Define in terms of
66696         $(link-libc-before-gnulib).
66697         [!build-shared] (link-libc-tests): New variable.
66698         (link-libc-static-tests): New variable.
66699         [!gnulib] (gnulib-arch): New variable.
66700         [!gnulib] (gnulib-tests): Likewise.
66701         [!gnulib] (static-gnulib-arch): Likewise.
66702         [!gnulib] (static-gnulib-tests): Likewise.
66703         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
66704         Define with "=" instead of ":=".
66705         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
66706         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
66707         * Rules (binaries-all-notests): New variable.
66708         (binaries-all-tests): Likewise.
66709         (binaries-static-notests): Likewise.
66710         (binaries-static-tests): Likewise.
66711         (binaries-all): Define using $(binaries-all-notests) and
66712         $(binaries-all-tests).
66713         (binaries-static): Define using $(binaries-static-notests) and
66714         $(binaries-static-tests).
66715         (binaries-shared-tests): New variable.
66716         (binaries-shared-notests): Likewise.
66717         (binaries-shared): Remove variable.
66718         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
66719         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
66720         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
66721         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
66722         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
66723         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
66724         * elf/Makefile (sln-modules): New variable.
66725         (extra-objs): Add $(sln-modules:=.o).
66726         (ldconfig-modules): Add static-stubs.
66727         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
66728         * elf/static-stubs.c: New file.
66729
66730         [BZ #14283]
66731         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
66732         by 7 not 8 to examine high bit of fractional part.  Use volatile
66733         variables when splitting into final array of floats if
66734         __FLT_EVAL_METHOD__ != 0.
66735         * math/libm-test.inc (cos_test): Add another test.
66736         (sin_test): Likewise.
66737         * sysdeps/i386/fpu/libm-test-ulps: Update.
66738
66739         [BZ #14273]
66740         * math/libm-test.inc (cosh_test): Add more tests.
66741
66742         * version.h (RELEASE): Set to "development".
66743         (VERSION): Set to "2.16.90".
66744
66745 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
66746
66747         * NEWS: Update copyright. Remove last-updated date.
66748         Mention math library bug fixes and timezone data changes.
66749         * README: Mention GNU/Hurd, x32, and HPPA support status.
66750
66751 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
66752
66753         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
66754
66755 2012-06-27  Andreas Jaeger  <aj@suse.de>
66756
66757         * manual/contrib.texi (Contributors): Add Samuel Thibault.
66758
66759 2012-06-25  Andreas Jaeger  <aj@suse.de>
66760
66761         * sysdeps/s390/fpu/libm-test-ulps: Update.
66762
66763 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
66764             Thomas Schwinge  <thomas@codesourcery.com>
66765
66766         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
66767         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
66768         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
66769         fanotify_mark.
66770
66771 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
66772
66773         * sysdeps/mach/start.c: Remove file.
66774         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
66775         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
66776         * sysdeps/sh/init-first.c: Likewise.
66777
66778         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
66779         registers for frame unwinding purposes, add CFI directives.
66780         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66781         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
66782         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
66783         Likewise.
66784
66785         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
66786         __fortify_fail returning.
66787         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66788
66789         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
66790         sysdeps/sh/____longjmp_chk.S.
66791         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
66792         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
66793         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
66794         (gen-as-const-headers): Append sigaltstack-offsets.sym.
66795
66796         * sysdeps/sh/abort-instr.h: New file.
66797         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
66798         process in case exit returns.
66799
66800         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
66801         initialize the GOT register before use.
66802
66803         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
66804         calculation of ARGC > 4.
66805
66806         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
66807         meaningful names to some local labels.
66808
66809 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66810             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66811
66812         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
66813         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
66814         (__arch_compare_and_exchange_val_16_acq): Likewise.
66815         (__arch_compare_and_exchange_val_32_acq): Likewise.
66816         (atomic_exchange_and_add): Fix gUSA sequence.
66817         (atomic_add): Likewise.
66818         (atomic_add_negative): Likewise.
66819         (atomic_add_zero): Likewise.
66820         (atomic_bit_test_set): Likewise.
66821
66822 2012-06-22  Andreas Schwab  <schwab@redhat.com>
66823
66824         [BZ #13579]
66825         * include/link.h (struct link_map): Add l_free_initfini.
66826         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
66827         l_initfini.
66828         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
66829         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
66830         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
66831         set.
66832
66833 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
66834
66835         * configure.in: Use AC_LANG_SOURCE.
66836         * configure: Regenerate.
66837
66838 2012-06-22  Roland McGrath  <roland@hack.frob.com>
66839
66840         * configure.in (libc_cv_localstatedir): New substituted variable.
66841         * configure: Regenerated.
66842         * config.make.in (localstatedir): New variable, substituted from
66843         libc_cv_localstatedir.
66844         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
66845         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
66846         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
66847         * sysdeps/gnu/configure: Regenerated.
66848
66849 2012-06-21  Jeff Law  <law@redhat.com>
66850
66851         [BZ #14277]
66852         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
66853         free.  Simplify list management for _LIBC case.
66854
66855 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
66856
66857         [BZ #14273]
66858         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
66859         Clear sign bit of 64-bit integer value before comparing against
66860         overflow value.
66861
66862         * sysdeps/mach/configure: Regenerated.
66863
66864 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
66865
66866         [BZ #14278]
66867         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
66868
66869 2012-06-21  Jeff Law  <law@redhat.com>
66870
66871         [BZ #13882]
66872         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
66873         uint16_t for elements in the "seen" array to avoid char overflows.
66874         * elf/dl-fini.c (_dl_sort_fini): Likewise.
66875         * elf/dl-open.c (dl_open_worker): Likewise.
66876
66877 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
66878
66879         * scripts/list-sources.sh: Scan PORTS for translations.
66880         * po/libc.pot: Regenerated.
66881
66882 2012-06-21  Andreas Jaeger  <aj@suse.de>
66883
66884         [BZ #12194]
66885         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
66886         warning.
66887         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
66888         * bits/byteswap-16.h (__bswap_16): Likewise.
66889         * bits/byteswap.h (__bswap_constant_16): Likewise.
66890
66891 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
66892
66893         [BZ #14117]
66894         * sysdeps/i386/fpu_control.h: Removed.
66895         * sysdeps/x86_64/fpu_control.h: Moved to ...
66896         * sysdeps/x86/fpu_control.h: Here.
66897
66898         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
66899         (_FPU_SETCW): Likewise.
66900
66901 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
66902
66903         [BZ #14117]
66904         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
66905         * sysdeps/x86/fpu/bits/mathinline.h: This.
66906         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
66907
66908         [BZ #14050]
66909         [BZ #14117]
66910         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
66911         functions if __x86_64__ is defined.
66912
66913 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
66914
66915         * string/endian.h: Add !__ASSEMBLER__ condition for including
66916         conversion interfaces.
66917
66918 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
66919
66920         [BZ #14241]
66921         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
66922         of ABS(x) in calculating zero to negative powers other than odd
66923         integers.
66924         * math/libm-test.inc (pow_test): Add more tests.
66925
66926 2012-06-15  Andreas Jaeger  <aj@suse.de>
66927
66928         * manual/contrib.texi (Contributors): Update entry of Liubov
66929         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
66930         Machado Filho.
66931
66932 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
66933
66934         * string/string.h: Add __wur to GNU version of strerror_r.
66935
66936 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
66937
66938         [BZ #14229]
66939         * string/Makefile (tests): Add tst-strtok_r.
66940         * string/tst-strtok_r.c: New file.
66941         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
66942         RAX_LP/RDX_LP on SAVE_PTR.
66943
66944 2012-06-14  Roland McGrath  <roland@hack.frob.com>
66945
66946         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
66947
66948 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
66949
66950         * libm_test.inc (csqrt_test): Allow more spurious underflow
66951         exceptions.
66952         (j0_test): Likewise.
66953         (j1_test): Likewise.
66954         (y0_test): Likewise.
66955         (y1_test): Likewise.
66956
66957 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
66958
66959         * po/Makefile (libc.pot): Use UTF-8 charset.
66960
66961 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
66962
66963         [BZ #14210]
66964         Suppress sign-conversion warning from FD_SET.
66965         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
66966         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
66967         not unsigned long int.
66968         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
66969
66970 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
66971
66972         [BZ #14050]
66973         [BZ #14117]
66974         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
66975         __extern_always_inline instead of __extern_inline.
66976         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
66977         (__signbit): Likewise.
66978         (__signbitl): Support C++ namespace.
66979         (lrintf): New inline function.
66980         (lrint): Likewise.
66981         (llrintf): Likewise.
66982         (llrint): Likewise.
66983         (fmaxf): Likewise.
66984         (fmax): Likewise.
66985         (fminf): Likewise.
66986         (fmin): Likewise.
66987         (rint): Likewise.
66988         (rintf): Likewise.
66989         (ceil): Likewise.
66990         (ceilf): Likewise.
66991         (floor): Likewise.
66992         (floorf): Likewise.
66993         (nearbyint): Likewise.
66994         (nearbyintf): Likewise.
66995
66996 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
66997
66998         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
66999         non-default versions.
67000
67001 2012-06-11  Roland McGrath  <roland@hack.frob.com>
67002
67003         [BZ #14218]
67004         * manual/argp.texi (Argp): Reword argp_parse description slightly.
67005
67006 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
67007
67008         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
67009         (FE_UPWARD, FE_DOWNWARD): Don't define.
67010         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
67011         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67012
67013         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
67014         reading it.
67015         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67016         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67017
67018 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67019
67020         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
67021         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
67022         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
67023         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
67024
67025 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
67026
67027         [BZ #14117]
67028         * sysdeps/i386/fpu/bits/fenv.h: Removed.
67029         * sysdeps/i386/fpu/Implies: New file.
67030         * sysdeps/x86_64/fpu/Implies: Likewise.
67031         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
67032         * sysdeps/x86/fpu/bits/fenv.h: This.
67033
67034         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
67035         __SSE_MATH__.
67036
67037 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67038
67039         [BZ #14134]
67040         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
67041         character 0xffff that matches the last element of the
67042         conversion table.
67043
67044 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67045
67046         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
67047         fmodl commit.
67048
67049 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67050
67051         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
67052         values higher than 25.6283.
67053
67054 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67055
67056         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
67057         subnormal exponent extraction and add some __builtin_expect.
67058         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
67059         Fix for subnormal mantissa calculation.
67060
67061 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
67062
67063         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
67064         cpu2 is -1 and errno is not ENOSYS.
67065
67066 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
67067
67068         [BZ #14117]
67069         * sysdeps/i386/i486/bits/string.h: Renamed to ...
67070         * sysdeps/x86/bits/string.h: This.
67071         * sysdeps/x86_64/bits/string.h: Removed.
67072
67073         * sysdeps/i386/i486/bits/string.h: Define inline functions only
67074         if not compiling for x86-64, but compiling for >= i486.
67075
67076         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
67077         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
67078
67079         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
67080         New macro from Linux kernel 3.4.0.
67081         (FP_XSTATE_MAGIC2): Likewise.
67082         (FP_XSTATE_MAGIC2_SIZE): Likewise.
67083         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
67084         (struct _fpx_sw_bytes): New struct.
67085         (struct _xsave_hdr): Likewise.
67086         (struct _ymmh_state): Likewise.
67087         (struct _xstate): Likewise.
67088
67089         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
67090         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
67091         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
67092         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
67093         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
67094         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
67095
67096         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
67097         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
67098         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
67099         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
67100         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
67101         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
67102
67103 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67104
67105         [BZ #13743]
67106         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
67107         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
67108         (sysdep_headers): Include sys/platform/ppc.h.
67109         * sysdeps/powerpc/test-gettimebase.c: Test for
67110         __ppc_get_timebase() to catch future ISA opcode/insn changes.
67111         * manual/Makefile (appendices): Include platform.texi.
67112         * manual/contrib.texi (Contributors): Update @node pointers.
67113         * manual/maint.texi (Maintenance): Likewise.
67114         (Platform): New node.
67115         * manual/platform.texi: New file.  Document the new features.
67116
67117 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67118             Jakub Jelinek  <jakub@redhat.com>
67119
67120         [BZ #14188]
67121         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
67122         where __builtin_expect is unavailable.
67123
67124 2012-06-03  David S. Miller  <davem@davemloft.net>
67125
67126         * stdlib/longlong.h: Updated from GCC.
67127
67128 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
67129
67130         [BZ #14042]
67131         * sysdeps/powerpc/powerpc32/mcount.c: New file.
67132         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
67133         __mcount_internal.
67134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
67135         (GLIBC_2.16): Likewise.
67136
67137 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67138
67139         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
67140
67141 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67142
67143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
67144         (default-abi): New variable.
67145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
67146         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
67147         variable.
67148         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
67149         Likewise.
67150         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
67151         Likewise.
67152         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
67153         Likewise.
67154
67155         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
67156         definition.  Document in comment.
67157
67158 2012-06-01  David S. Miller  <davem@davemloft.net>
67159
67160         * stdlib/longlong.h: Updated from GCC.
67161
67162 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67163
67164         [BZ #14117]
67165         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
67166         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
67167         sys/debugreg.h sys/io.h here.
67168         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
67169         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
67170         sys/io.h.
67171         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
67172         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
67173         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
67174         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
67175         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
67176         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
67177
67178         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
67179         Define only if __x86_64__ is defined.
67180
67181 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67182
67183         [BZ #14048]
67184         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
67185         Use int64_t for variable i.
67186         * math/libm-test.inc (fmod_test): Add more tests.
67187
67188         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
67189         z computation is not scheduled after fetestexcept.
67190         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
67191         Use math_force_eval instead of asm to ensure calculation scheduled
67192         before exception test.
67193         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
67194         Ensure a1 + u.d computation is not scheduled after fetestexcept.
67195
67196 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
67197
67198         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
67199         computation is not scheduled after fetestexcept.
67200
67201 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67202
67203         [BZ #14117]
67204         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
67205         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
67206
67207 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67208
67209         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
67210         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67211
67212 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67213
67214         [BZ #14117]
67215         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
67216         <bits/wordsize.h>.
67217         (__WCHAR_MIN): Support __WORDSIZE == 64.
67218         (__WCHAR_MAX): Likewise.
67219
67220         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
67221         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
67222
67223         [BZ #14183]
67224         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
67225         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
67226
67227         [BZ #14117]
67228         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
67229         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
67230
67231         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
67232         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
67233
67234         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
67235         Defined to 1 if __x86_64__ isn't defined.
67236         (_STAT_VER_LINUX_OLD): New.
67237         (st_atime): Remove duplicate.
67238         (st_mtime): Likewise.
67239         (st_ctime): Likewise.
67240
67241 2012-05-31  David S. Miller  <davem@davemloft.net>
67242
67243         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
67244         entries.
67245
67246 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
67247
67248         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
67249         gen-libm-test.pl.
67250
67251         [BZ #14132]
67252         * elf/dl-reloc.c: Include <_itoa.h>.
67253         (_dl_reloc_bad_type): Remove use of INTUSE.
67254         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
67255         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
67256         * stdio-common/psiginfo.c (psiginfo): Likewise.
67257         * stdio-common/psignal.c (psignal): Likewise.
67258         * string/strsignal.c (strsignal): Likewise.
67259         * include/signal.h (_sys_siglist): Declare hidden proto.
67260         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
67261         INTVARDEF with libc_hidden_data_def.
67262         * stdio-common/itoa-udigits.c: Likewise.
67263         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
67264         (_itoa_lower_digits_internal): Remove declaration.
67265         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
67266         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
67267         (_sys_sigabbrev_internal): Remove aliases.
67268         (_sys_siglist): Define hidden alias.
67269
67270 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
67271
67272         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67273         bits/sysctl.h.
67274
67275 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67276
67277         [BZ #14117]
67278         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
67279         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
67280
67281         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
67282         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
67283         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
67284         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
67285         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
67286         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
67287
67288         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
67289         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
67290         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
67291
67292         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
67293         with __addr.
67294         (insw): Likewise.
67295         (insl): Likewise.
67296         (outsb): Likewise.
67297         (outsw): Likewise.
67298         (outsl): Likewise.
67299
67300         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
67301         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
67302         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
67303
67304         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
67305         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
67306         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
67307         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
67308         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
67309         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
67310
67311         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
67312         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
67313
67314         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
67315         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
67316
67317         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
67318         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
67319         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
67320
67321         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
67322         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
67323         to ...
67324         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
67325
67326         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
67327         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
67328         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
67329
67330         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
67331         for x86-64.
67332         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
67333
67334 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
67335
67336         * math/math.h (M_El): Use two more decimal places.
67337         (M_LOG2El): Likewise.
67338         (M_LOG10El): Likewise.
67339         (M_LN2l): Likewise.
67340         (M_LN10l): Likewise.
67341         (M_PIl): Likewise.
67342         (M_PI_2l): Likewise.
67343         (M_PI_4l): Likewise.
67344         (M_1_PIl): Likewise.
67345         (M_2_PIl): Likewise.
67346         (M_2_SQRTPIl): Likewise.
67347         (M_SQRT2l): Likewise.
67348         (M_SQRT1_2l): Likewise.
67349
67350 2012-05-31  David S. Miller  <davem@davemloft.net>
67351
67352         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
67353         values between float registers.
67354         * sysdeps/sparc/sparc64/memset.S: Likewise.
67355         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
67356
67357 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
67358
67359         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
67360         -D_FORTIFY_SOURCE=1.
67361         (CPPFLAGS-tst-longjmp_chk.c): Define.
67362         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67363         (CPPFLAGS-tst-longjmp_chk2.c): Define.
67364         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
67365         CFLAGS-tst-wchar-h.c.
67366
67367 2012-05-31  Marek Polacek  <polacek@redhat.com>
67368
67369         [BZ #14132]
67370         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
67371         __endmntent_internal): Remove declaration.
67372         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
67373         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
67374         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
67375
67376 2012-05-30  David S. Miller  <davem@davemloft.net>
67377
67378         * sysdeps/sparc/sparc32/soft-fp/q_util.c
67379         (___Q_simulate_exceptions): Use real FP ops rather than writing
67380         into the %fsr.
67381         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
67382         Likewise.
67383
67384 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67385
67386         [BZ #14117]
67387         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
67388         * sysdeps/x86/bits/xtitypes.h: This.
67389
67390         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
67391         * sysdeps/x86/bits/wordsize.h: This.
67392
67393         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
67394         * sysdeps/x86/bits/huge_vall.h: This.
67395
67396         * sysdeps/i386/bits/select.h: Removed.
67397         * sysdeps/x86_64/bits/select.h: Renamed to ...
67398         * sysdeps/x86/bits/select.h: This.
67399
67400         * sysdeps/i386/bits/setjmp.h: Removed.
67401         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
67402         * sysdeps/x86/bits/setjmp.h: This.
67403
67404         * sysdeps/i386/bits/mathdef.h: Removed.
67405         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
67406         * sysdeps/x86/bits/mathdef.h: This.
67407
67408 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
67409
67410         [BZ #14132]
67411         * include/sys/socket.h (__connect_internal)
67412         (__libc_sa_len_internal): Remove declaration.
67413         (__connect, __libc_sa_len): Declare hidden_proto.
67414         (SA_LEN): Remove use of INTUSE.
67415         * socket/connect.c: Add libc_hidden_def.
67416         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
67417         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
67418         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
67419         alias.
67420         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
67421         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
67422         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
67423         of adding _internal alias.
67424
67425 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67426
67427         [BZ #14117]
67428         * sysdeps/i386/bits/link.h: Removed.
67429         * sysdeps/i386/bits/linkmap.h: Likewise.
67430         * sysdeps/x86_64/bits/link.h: Renamed to ...
67431         * sysdeps/x86/bits/link.h: This.
67432         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
67433         * sysdeps/x86/bits/linkmap.h: This.
67434
67435         * sysdeps/i386/bits/endian.h: Removed.
67436         * sysdeps/x86_64/bits/endian.h: Renamed to ...
67437         * sysdeps/x86/bits/endian.h: This.
67438
67439         * sysdeps/i386/bits/byteswap.h: Removed.
67440         * sysdeps/i386/bits/byteswap-16.h: Likewise.
67441         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
67442         * sysdeps/x86/bits/byteswap.h: This.
67443         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
67444         * sysdeps/x86/bits/byteswap-16.h: This.
67445         * sysdeps/i386/Implies: Add x86.
67446         * sysdeps/x86_64/Implies: Likewise.
67447
67448 2012-05-30  David S. Miller  <davem@davemloft.net>
67449
67450         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
67451         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
67452         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
67453         (FP_TRAPPING_EXCEPTIONS): Define.
67454         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
67455         (FP_TRAPPING_EXCEPTIONS): Define.
67456         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
67457         subnormals only when inexact has been signalled or underflow
67458         exceptions are enabled.
67459         (_FP_PACK_CANONICAL): Likewise.
67460
67461 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67462
67463         [BZ #14183]
67464         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
67465         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
67466
67467 2012-05-30  Richard Henderson  <rth@twiddle.net>
67468
67469         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
67470         with #ifndef NOT_IN_libc.
67471
67472         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
67473         marked to avoid plt entry.
67474
67475 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67476
67477         [BZ #14112]
67478         * Makeconfig (default-abi): New macro.
67479         (abi-includes): Likewise.
67480         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
67481         $(abi-$(default-abi)-lib-soname) for soname if defined.
67482         ($(common-objpfx)gnu/lib-names.stmp): Generate from
67483         abi-variants.
67484         * Makefile (installed-stubs): Likewise.
67485         * include/stubs-biarch.h: Removed.
67486         * scripts/lib-names.awk: Only handle one library at a time.
67487         * scripts/soversions.awk: Remove WORDSIZE support.
67488         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
67489         entries.
67490         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
67491         Removed.
67492         (syscall-list-default-condition): Likewise.
67493         (syscall-list-default-condition): Likewise.
67494         (syscall-list-includes): Likewise.
67495         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
67496         syscall-list-* with abi-*.  Handle undefined abi-variants.
67497         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
67498         * sysdeps/unix/sysv/linux/i386/Implies: New file.
67499         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
67500         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
67501         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
67502         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
67503         Removed.
67504         (syscall-list-32-options): Likewise.
67505         (syscall-list-32-condition): Likewise.
67506         (syscall-list-64-options): Likewise.
67507         (syscall-list-64-condition): Likewise.
67508         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
67509         macro.
67510         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
67511         Renamed to ...
67512         (abi-*): This.
67513         (abi-64-ld-soname): New macro.
67514         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
67515         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
67516         Renamed to ...
67517         (abi-*): This.
67518         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
67519         * sysdeps/x86_64/x32/shlib-versions: Likewise.
67520
67521 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
67522
67523         * sysdeps/unix/sysv/linux/kernel-features.h
67524         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
67525         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
67526         include <kernel-features.h>.
67527         [!__NR_ftruncate64]: Remove conditional code.
67528         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67529         [__NR_ftruncate64]: Make code unconditional.
67530         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67531         * sysdeps/unix/sysv/linux/truncate64.c: Do not
67532         include <kernel-features.h>.
67533         [!__NR_ftruncate64]: Remove conditional code.
67534         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67535         [__NR_ftruncate64]: Make code unconditional.
67536         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
67538         include <kernel-features.h>.
67539         [!__NR_ftruncate64]: Remove conditional code.
67540         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67541         [__NR_ftruncate64]: Make code unconditional.
67542         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
67544         include <kernel-features.h>.
67545         [!__NR_ftruncate64]: Remove conditional code.
67546         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67547         [__NR_ftruncate64]: Make code unconditional.
67548         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67549
67550         * configure.in (libc_cv_fpie): Weaken to a compile test using
67551         LIBC_TRY_CC_OPTION.
67552         * configure: Regenerated.
67553
67554 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67555
67556         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
67557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
67558         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
67559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
67560         Refreshed.
67561         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
67562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
67563         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
67564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
67565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
67566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
67567         Refreshed.
67568
67569 2012-05-27  David S. Miller  <davem@davemloft.net>
67570
67571         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
67572         (___Q_zero): New.
67573         (__Q_simulate_exceptions): Return void.  Change to simulate
67574         exceptions by writing into the %fsr.
67575         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
67576         (__Qp_handle_exceptions): Likewise.
67577         (numbers): Delete.
67578         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
67579         __Qp_handle_exceptions.
67580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
67581         __Qp_handle_exceptions.
67582         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67583         as unused and give dummy FP_RND_NEAREST initializer.
67584         (FP_INHIBIT_RESULTS): Define.
67585         (___Q_simulate_exceptions): Update declaration.
67586         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
67587         formatting.
67588         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67589         as unused and give dummy FP_RND_NEAREST initializer.
67590         (__Qp_handle_exceptions): Update declaration.
67591         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
67592         formatting.
67593
67594 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
67595
67596         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
67597         the temporary FPU control word.
67598         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
67599         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
67600         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
67601         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67602         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
67603         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
67604         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
67605         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67606         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
67607         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
67608         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67609
67610 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67611
67612         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
67613         fields.
67614
67615 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
67616
67617         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
67618         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
67619         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
67620         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
67621         Likewise.
67622         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
67623         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
67624         Likewise.
67625
67626 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
67627
67628         * po/h.po: Update from translation team.
67629
67630 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
67631
67632         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
67633
67634         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
67635         handling of denormals.
67636         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67637         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
67638         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67639         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67640         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67641         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
67642         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
67643         Likewise.
67644
67645 2012-05-26  Marek Polacek  <polacek@redhat.com>
67646
67647         [BZ #14152]
67648         * math/libm-test.inc (fma_test): Don't always expect underflow
67649         exception.
67650
67651 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
67652
67653         [BZ #12416]
67654         * elf/tst-execstack.c: Include stackinfo.h.
67655         (do_test): Adjust test case to ensure that pthread_getattr_np
67656         behaviour remains the same after marking stack executable.
67657
67658 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67659
67660         * sysdeps/unix/sysv/linux/kernel-features.h
67661         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
67662         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
67663         kernel-features.h.
67664         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67665         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67666         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
67667         kernel-features.h.
67668         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67669         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67670
67671 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
67672
67673         * configure.in: Define the default includes to being none.
67674         * configure: Regenerated.
67675
67676 2012-05-25  Roland McGrath  <roland@hack.frob.com>
67677
67678         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
67679         * sysdeps/x86_64/setjmp.S: Likewise.
67680         * sysdeps/i386/bsd-setjmp.S: Likewise.
67681         * sysdeps/i386/bsd-_setjmp.S: Likewise.
67682         * sysdeps/i386/setjmp.S: Likewise.
67683         * sysdeps/i386/__longjmp.S: Likewise.
67684         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
67685         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
67686
67687         * include/stap-probe.h: New file.
67688         * configure.in: Handle --enable-systemtap.
67689         * configure: Regenerated.
67690         * config.h.in (USE_STAP_PROBE): New #undef.
67691         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
67692         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
67693         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
67694
67695 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67696
67697         [BZ #13717]
67698         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
67699         to 2.4.0 where earlier.
67700         * sysdeps/unix/sysv/linux/configure: Regenerated.
67701         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
67702         <kernel-features.h>.
67703         [__ASSUME_32BITUIDS]: Make code unconditional.
67704         [!__ASSUME_32BITUIDS]: Remove conditional code.
67705         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
67706         <kernel-features.h>.
67707         [__ASSUME_32BITUIDS]: Make code unconditional.
67708         [!__ASSUME_32BITUIDS]: Remove conditional code.
67709         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
67710         [__ASSUME_32BITUIDS]: Make code unconditional.
67711         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
67712         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
67713         <kernel-features.h>.
67714         [__ASSUME_32BITUIDS]: Make code unconditional.
67715         [!__ASSUME_32BITUIDS]: Remove conditional code.
67716         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
67717         <kernel-features.h>.
67718         [__ASSUME_32BITUIDS]: Make code unconditional.
67719         [!__ASSUME_32BITUIDS]: Remove conditional code.
67720         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
67721         <kernel-features.h>.
67722         [__ASSUME_32BITUIDS]: Make code unconditional.
67723         [!__ASSUME_32BITUIDS]: Remove conditional code.
67724         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
67725         <kernel-features.h>.
67726         [__ASSUME_32BITUIDS]: Make code unconditional.
67727         [!__ASSUME_32BITUIDS]: Remove conditional code.
67728         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
67729         <kernel-features.h>.
67730         [__ASSUME_32BITUIDS]: Make code unconditional.
67731         [!__ASSUME_32BITUIDS]: Remove conditional code.
67732         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
67733         <kernel-features.h>.
67734         [__ASSUME_32BITUIDS]: Make code unconditional.
67735         [!__ASSUME_32BITUIDS]: Remove conditional code.
67736         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
67737         <kernel-features.h>.
67738         [__ASSUME_32BITUIDS]: Make code unconditional.
67739         [!__ASSUME_32BITUIDS]: Remove conditional code.
67740         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
67741         <kernel-features.h>.
67742         [__ASSUME_32BITUIDS]: Make code unconditional.
67743         [!__ASSUME_32BITUIDS]: Remove conditional code.
67744         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
67745         <kernel-features.h>.
67746         [__ASSUME_32BITUIDS]: Make code unconditional.
67747         [!__ASSUME_32BITUIDS]: Remove conditional code.
67748         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
67749         <kernel-features.h>.
67750         [__ASSUME_32BITUIDS]: Make code unconditional.
67751         [!__ASSUME_32BITUIDS]: Remove conditional code.
67752         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
67753         <kernel-features.h>.
67754         [__NR_setresgid] (__setresgid): Do not declare.
67755         [__ASSUME_32BITUIDS]: Make code unconditional.
67756         [!__ASSUME_32BITUIDS]: Remove conditional code.
67757         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
67758         <kernel-features.h>.
67759         [__NR_setresuid] (__setresuid): Do not declare.
67760         [__ASSUME_32BITUIDS]: Make code unconditional.
67761         [!__ASSUME_32BITUIDS]: Remove conditional code.
67762         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
67763         <kernel-features.h>.
67764         [__ASSUME_32BITUIDS]: Make code unconditional.
67765         [!__ASSUME_32BITUIDS]: Remove conditional code.
67766         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
67767         <kernel-features.h>.
67768         [__ASSUME_32BITUIDS]: Make code unconditional.
67769         [!__ASSUME_32BITUIDS]: Remove conditional code.
67770         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
67771         <kernel-features.h>.
67772         [__ASSUME_32BITUIDS]: Make code unconditional.
67773         [!__ASSUME_32BITUIDS]: Remove conditional code.
67774         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
67775         <kernel-features.h>.
67776         [__ASSUME_32BITUIDS]: Make code unconditional.
67777         [!__ASSUME_32BITUIDS]: Remove conditional code.
67778         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
67779         <kernel-features.h>.
67780         [__ASSUME_32BITUIDS]: Make code unconditional.
67781         [!__ASSUME_32BITUIDS]: Remove conditional code.
67782         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
67783         <kernel-features.h>.
67784         [__ASSUME_32BITUIDS]: Make code unconditional.
67785         [!__ASSUME_32BITUIDS]: Remove conditional code.
67786         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
67787         <kernel-features.h>.
67788         [__ASSUME_32BITUIDS]: Make code unconditional.
67789         [!__ASSUME_32BITUIDS]: Remove conditional code.
67790         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
67791         <kernel-features.h>.
67792         [__ASSUME_32BITUIDS]: Make code unconditional.
67793         [!__ASSUME_32BITUIDS]: Remove conditional code.
67794         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
67795         <kernel-features.h>.
67796         [__ASSUME_32BITUIDS]: Make code unconditional.
67797         [!__ASSUME_32BITUIDS]: Remove conditional code.
67798         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
67799         <kernel-features.h>.
67800         [__ASSUME_32BITUIDS]: Make code unconditional.
67801         [!__ASSUME_32BITUIDS]: Remove conditional code.
67802         * sysdeps/unix/sysv/linux/kernel-features.h
67803         (__ASSUME_SETRESUID_SYSCALL): Remove.
67804         (__ASSUME_SETRESGID_SYSCALL): Likewise.
67805         (__ASSUME_32BITUIDS): Likewise.
67806         (__ASSUME_LDT_WORKS): Likewise.
67807         (__ASSUME_O_DIRECTORY): Likewise.
67808         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
67809         architecture but not kernel version.
67810         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
67811         (__ASSUME_MMAP2_SYSCALL): Likewise.
67812         (__ASSUME_STAT64_SYSCALL): Likewise.
67813         (__ASSUME_IPC64): Likewise.
67814         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
67815         <kernel-features.h>.
67816         [__ASSUME_32BITUIDS]: Make code unconditional.
67817         [!__ASSUME_32BITUIDS]: Remove conditional code.
67818         * sysdeps/unix/sysv/linux/opendir.c: Do not include
67819         <kernel-features.h>.
67820         [__ASSUME_O_DIRECTORY]: Make code unconditional.
67821         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
67822         132096]: Remove conditional code.
67823         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
67824         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
67825         <kernel-features.h>.
67826         [__ASSUME_32BITUIDS]: Make code unconditional.
67827         [!__ASSUME_32BITUIDS]: Remove conditional code.
67828         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
67829         <kernel-features.h>.
67830         [__ASSUME_32BITUIDS]: Make code unconditional.
67831         [!__ASSUME_32BITUIDS]: Remove conditional code.
67832         * sysdeps/unix/sysv/linux/setegid.c: Do not include
67833         <kernel-features.h>.
67834         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
67835         unconditional.
67836         (__setresgid): Do not declare.
67837         [__ASSUME_32BITUIDS]: Make code unconditional.
67838         [!__ASSUME_32BITUIDS]: Remove conditional code.
67839         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
67840         <kernel-features.h>.
67841         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
67842         unconditional.
67843         (__setresuid): Do not declare.
67844         [__ASSUME_32BITUIDS]: Make code unconditional.
67845         [!__ASSUME_32BITUIDS]: Remove conditional code.
67846         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
67847         <kernel-features.h>.
67848         [__ASSUME_32BITUIDS]: Make code unconditional.
67849         [!__ASSUME_32BITUIDS]: Remove conditional code.
67850         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
67851         <kernel-features.h>.
67852         [__ASSUME_32BITUIDS]: Make code unconditional.
67853         [!__ASSUME_32BITUIDS]: Remove conditional code.
67854
67855 2012-05-25  Richard Henderson  <rth@twiddle.net>
67856
67857         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
67858         dl_hwcap to ifunc resolver.
67859         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
67860         elf_ifunc_invoke.
67861         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
67862         dl_hwcap to ifunc resolver.
67863         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
67864
67865 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67866
67867         [BZ #14153]
67868         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
67869         for |x| <= 2**-26, not 2**-57.
67870         * math/libm-test.inc (acos_test): Do not allow spurious underflow
67871         exception.
67872
67873 2012-05-24  Jeff Law  <law@redhat.com>
67874
67875         * stdio-common/Makefile (tests): Add bug25.
67876         * stdio-common/bug25.c: New test.
67877
67878 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67879
67880         [BZ #13576]
67881         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
67882         multiple of MALLOC_ALIGNMENT in size.
67883         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
67884
67885 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67886
67887         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
67888         Require >= 256.
67889         (FILENAME_MAX): Use macro-int-constant.
67890         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
67891         (_IOFBF): Use macro-int-constant.
67892         (_IOLBF): Likewise.
67893         (_IONBF): Likewise.
67894         (SEEK_CUR): Likewise.
67895         (SEEK_END): Likewise.
67896         (SEEK_SET): Likewise.
67897         (TMP_MAX): Likewise.
67898         (EOF): Use macro-int-constant.  Require < 0.
67899         (NULL): Use macro-constant.  Require == 0.
67900         (stdin): Require type to be FILE *.
67901         (stdout): Likewise.
67902         (stderr): Likewise.
67903         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
67904         macro-int-constant.
67905         (EXIT_SUCCESS): Likewise.
67906         (NULL): Use macro-constant.  Require == 0.
67907         (RAND_MAX): Use macro-int-constant.
67908         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
67909         [C99-based standards] (strtof): Require function.
67910         [C99-based standards] (strtold): Likewise.
67911         [C99-based standards] (strtoll): Likewise.
67912         [C99-based standards] (strtoull): Likewise.
67913         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
67914         [ISO || ISO99 || ISO11] (limits.h): Likewise.
67915         [ISO || ISO99 || ISO11] (math.h): Likewise.
67916         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
67917         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
67918         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67919
67920 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
67921
67922         [BZ #14132]
67923         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
67924         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
67925         * intl/dgettext.c (DCGETTEXT): Likewise.
67926         * intl/gettext.c (DCGETTEXT): Likewise.
67927         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
67928         * posix/regex_internal.h (gettext): Likewise.
67929         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
67930         Remove declaration.
67931         * include/argz.h (__argz_count_internal)
67932         (__argz_stringify_internal): Remove declaration.
67933         (__argz_count, __argz_stringify): Declare hidden proto.
67934         * intl/dcgettext.c: Remove use of INTDEF.
67935         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
67936         * string/argz-stringify.c: Likewise.
67937         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67938         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67939         Declare hidden proto.
67940         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67941         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67942         Declare hidden proto.
67943         * include/stdio.h (__asprintf_internal): Don't declare.
67944         (__asprintf): Don't define as macro.  Declare hidden proto.
67945         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
67946         (__fsetlocking): Declare hidden proto.
67947         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
67948         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
67949         hidden proto.
67950         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
67951         (_IO_setlinebuf): Remove use of INTUSE.
67952         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
67953         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
67954         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
67955         Remove declaration.
67956         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
67957         (_IO_do_flush): Remove use of INTUSE.
67958         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
67959         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
67960         (_IO_adjust_column, _IO_least_wmarker)
67961         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
67962         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
67963         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
67964         (_IO_default_doallocate, _IO_wdefault_doallocate)
67965         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
67966         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
67967         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
67968         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
67969         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
67970         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
67971         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
67972         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
67973         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
67974         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
67975         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
67976         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
67977         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
67978         proto.
67979         (_IO_flush_all_internal, _IO_adjust_column_internal)
67980         (_IO_default_uflow_internal, _IO_default_finish_internal)
67981         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
67982         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
67983         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
67984         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
67985         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
67986         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
67987         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
67988         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
67989         (_IO_file_close_internal, _IO_file_close_it_internal)
67990         (_IO_file_underflow_internal, _IO_file_overflow_internal)
67991         (_IO_file_init_internal, _IO_file_attach_internal)
67992         (_IO_file_fopen_internal, _IO_file_read_internal)
67993         (_IO_file_sync_internal, _IO_file_seek_internal)
67994         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
67995         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
67996         (_IO_str_underflow_internal, _IO_str_overflow_internal)
67997         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
67998         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
67999         (_IO_list_all_internal, _IO_link_in_internal)
68000         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
68001         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
68002         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
68003         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
68004         (_IO_do_write_internal, _IO_padn_internal)
68005         (_IO_getline_info_internal, _IO_getline_internal)
68006         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
68007         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
68008         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
68009         (_IO_vfscanf_internal, _IO_vfprintf_internal)
68010         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
68011         (_IO_init_internal, _IO_un_link_internal): Don't declare.
68012         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
68013         with libc_hidden_ver, remove use of INTUSE.
68014         * libio/genops.c: Likewise.
68015         * libio/freopen.c: Likewise.
68016         * libio/freopen64.c: Likewise.
68017         * libio/iofclose.c: Likewise.
68018         * libio/iofdopen.c: Likewise.
68019         * libio/iofflush.c: Likewise.
68020         * libio/iofflush_u.c: Likewise.
68021         * libio/iofgets.c: Likewise.
68022         * libio/iofgets_u.c: Likewise.
68023         * libio/iofopen.c: Likewise.
68024         * libio/iofopncook.c: Likewise.
68025         * libio/iofread.c: Likewise.
68026         * libio/iofread_u.c: Likewise.
68027         * libio/ioftell.c: Likewise.
68028         * libio/iofwrite.c: Likewise.
68029         * libio/iogetline.c: Likewise.
68030         * libio/iogets.c: Likewise.
68031         * libio/iogetwline.c: Likewise.
68032         * libio/iopadn.c: Likewise.
68033         * libio/iopopen.c: Likewise.
68034         * libio/ioseekoff.c: Likewise.
68035         * libio/ioseekpos.c: Likewise.
68036         * libio/iosetbuffer.c: Likewise.
68037         * libio/iosetvbuf.c: Likewise.
68038         * libio/ioungetc.c: Likewise.
68039         * libio/ioungetwc.c: Likewise.
68040         * libio/iovdprintf.c: Likewise.
68041         * libio/iovsprintf.c: Likewise.
68042         * libio/iovsscanf.c: Likewise.
68043         * libio/memstream.c: Likewise.
68044         * libio/obprintf.c: Likewise.
68045         * libio/oldfileops.c: Likewise.
68046         * libio/oldiofclose.c: Likewise.
68047         * libio/oldiofdopen.c: Likewise.
68048         * libio/oldiofopen.c: Likewise.
68049         * libio/oldiopopen.c: Likewise.
68050         * libio/oldstdfiles.c: Likewise.
68051         * libio/putc.c: Likewise.
68052         * libio/setbuf.c: Likewise.
68053         * libio/setlinebuf.c: Likewise.
68054         * libio/stdfiles.c: Likewise.
68055         * libio/strops.c: Likewise.
68056         * libio/vasprintf.c: Likewise.
68057         * libio/vscanf.c: Likewise.
68058         * libio/vsnprintf.c: Likewise.
68059         * libio/vswprintf.c: Likewise.
68060         * libio/wfiledoalloc.c: Likewise.
68061         * libio/wfileops.c: Likewise.
68062         * libio/wgenops.c: Likewise.
68063         * libio/wmemstream.c: Likewise.
68064         * libio/wstrops.c: Likewise.
68065         * libio/__fpurge.c: Likewise.
68066         * libio/__fsetlocking.c: Likewise.
68067         * assert/assert.c: Likewise.
68068         * debug/fgets_chk.c: Likewise.
68069         * debug/fgets_u_chk.c: Likewise.
68070         * debug/fread_chk.c: Likewise.
68071         * debug/fread_u_chk.c: Likewise.
68072         * debug/gets_chk.c: Likewise.
68073         * debug/obprintf_chk.c: Likewise.
68074         * debug/vasprintf_chk.c: Likewise.
68075         * debug/vdprintf_chk.c: Likewise.
68076         * debug/vsnprintf_chk.c: Likewise.
68077         * debug/vsprintf_chk.c: Likewise.
68078         * malloc/mtrace.c: Likewise.
68079         * misc/error.c: Likewise.
68080         * misc/syslog.c: Likewise.
68081         * stdio-common/asprintf.c: Likewise.
68082         * stdio-common/fxprintf.c: Likewise.
68083         * stdio-common/getw.c: Likewise.
68084         * stdio-common/isoc99_fscanf.c: Likewise.
68085         * stdio-common/isoc99_scanf.c: Likewise.
68086         * stdio-common/isoc99_vfscanf.c: Likewise.
68087         * stdio-common/isoc99_vscanf.c: Likewise.
68088         * stdio-common/isoc99_vsscanf.c: Likewise.
68089         * stdio-common/printf-prs.c: Likewise.
68090         * stdio-common/printf_fp.c: Likewise.
68091         * stdio-common/printf_fphex.c: Likewise.
68092         * stdio-common/printf_size.c: Likewise.
68093         * stdio-common/putw.c: Likewise.
68094         * stdio-common/scanf.c: Likewise.
68095         * stdio-common/sprintf.c: Likewise.
68096         * stdio-common/tmpfile.c: Likewise.
68097         * stdio-common/vfprintf.c: Likewise.
68098         * stdio-common/vfscanf.c: Likewise.
68099         * stdlib/strfmon_l.c: Likewise.
68100         * sunrpc/openchild.c: Likewise.
68101         * sunrpc/xdr_stdio.c: Likewise.
68102         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
68103         * sysdeps/mach/hurd/tmpfile.c: Likewise.
68104
68105 2012-05-24  Roland McGrath  <roland@hack.frob.com>
68106
68107         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68108
68109         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
68110         in the third column, to generate for the shared library an IFUNC
68111         that uses _dl_vdso_vsym.
68112         * Makerules (COMPILE.c, compile-stdin.c): New variables.
68113         * Makeconfig (object-suffixes-noshared): New variable.
68114
68115         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
68116         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
68117         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
68118         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
68119
68120         [BZ #14132]
68121         * include/sys/time.h (__gettimeofday): Remove macro.
68122         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
68123         * time/gettimeofday.c (__gettimeofday): Remove #undef.
68124         Remove INTDEF.
68125         (__gettimeofday): Add libc_hidden_def.
68126         (gettimeofday): Add libc_hidden_weak.
68127         * sysdeps/mach/gettimeofday.c: Likewise.
68128         * sysdeps/posix/gettimeofday.c: Likewise.
68129         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
68130         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
68131         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
68132         (__gettimeofday_internal): Remove strong_alias.
68133         (__gettimeofday): Add libc_hidden_def.
68134         (gettimeofday): Add libc_hidden_weak.
68135         * sysdeps/unix/syscalls.list (gettimeofday):
68136         Remove __gettimeofday_internal alias.
68137
68138 2012-05-24  Daniel Jacobowitz  <drow@false.org>
68139             H.J. Lu  <hongjiu.lu@intel.com>
68140
68141         [BZ #12495]
68142         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
68143         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
68144         (largebin_index_32_big): New.
68145         (largebin_index): Use it for 16-byte alignment.
68146         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
68147         correction with front_misalign.
68148
68149 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68150
68151         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
68152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
68153         Likewise.
68154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
68155         Likewise.
68156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
68157         Likewise.
68158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
68159         Likewise.
68160         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
68161         Likewise.
68162         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
68163         Likewise.
68164         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
68165         Likewise.
68166         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
68167         Likewise.
68168         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
68169         Likewise.
68170         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
68171         Likewise.
68172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
68173         Likewise.
68174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
68175         Likewise.
68176
68177         * scripts/data/c++-types-x32-linux-gnu.data: New file.
68178         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
68179
68180 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68181
68182         [BZ #10846]
68183         [BZ #14036]
68184         * math/libm-test.inc (exp_test): Add test from bug 14036.
68185         (pow_test): Add test from bug 10846.
68186
68187         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
68188         and other flags.
68189         (special_function): Do not include flags in test name.
68190         (parse_args): Likewise.
68191         * sysdeps/i386/fpu/libm-test-ulps: Update.
68192         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68193         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
68194         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
68195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68196
68197         * math/gen-libm-test.pl (%beautify): Add entries for underflow
68198         exceptions.
68199         * math/libm-test.inc ("Philosophy"): Update comment about
68200         exception testing.
68201         (UNDERFLOW_EXCEPTION): New macro.
68202         (UNDERFLOW_EXCEPTION_OK): Likewise.
68203         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
68204         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
68205         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
68206         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
68207         (INVALID_EXCEPTION_OK): Update value.
68208         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
68209         (OVERFLOW_EXCEPTION_OK): Likewise.
68210         (IGNORE_ZERO_INF_SIGN): Likewise.
68211         (test_exceptions): Handle underflow exceptions.
68212         (acos_test): Update for underflow exception expectations.
68213         (cexp_test): Likewise.
68214         (clog_test): Likewise.
68215         (clog10_test): Likewise.
68216         (csqrt_test): Likewise.
68217         (ctan_test): Likewise.
68218         (ctanh_test): Likewise.
68219         (exp_test): Likewise.
68220         (exp10_test): Likewise.
68221         (exp2_test): Likewise.
68222         (expm1_test): Likewise.
68223         (fma_test): Likewise.
68224         (j0_test): Likewise.
68225         (jn_test): Likewise.
68226         (nexttoward_test): Likewise.
68227         (pow_test): Likewise.
68228         (scalbn_test): Likewise.
68229         (scalbln_test): Likewise.
68230         (tan_test): Likewise.
68231         (y1_test): Likewise.
68232         * sysdeps/i386/fpu/libm-test-ulps: Update.
68233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68234
68235 2012-05-23  David S. Miller  <davem@davemloft.net>
68236
68237         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
68238         (__libc_sigaction): Remove unused local variables.
68239
68240 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68241
68242         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
68243
68244 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
68245
68246         mktime: avoid signed integer overflow
68247         * time/mktime.c (__mktime_internal): Do not mishandle the case
68248         where diff == INT_MIN.
68249
68250         mktime: simplify computation of average
68251         * time/mktime.c (ranged_convert): Use new time_t_avg function
68252         instead of rolling our own (probably-slower) code.
68253
68254         mktime: do not assume signed right shift propagates sign bit
68255         * time/mktime.c (isdst_differ): New static function.
68256         (__mktime_internal): No need to normalize tm_isdst now.
68257         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
68258         tm_isdst values.
68259
68260         mktime: merge another wrapv change from gnulib
68261         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
68262         from some compilers.
68263
68264         mktime: remove incorrect attempt at unusual arithmetics
68265         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
68266         The code didn't really work on such machines anyway.
68267         (TYPE_MINIMUM): Assume two's complement.
68268         (twos_complement_arithmetic): Verify that long_int and time_t
68269         are two's complement (or unsigned, in the latter case).
68270
68271         mktime: check signed shifts on long_int and time_t, too
68272         * time/mktime.c (SHR): Check that shifts work as desired
68273         on the types long_int and time_t too, as SHR is used on
68274         such types.
68275
68276         mktime: do not assume 'long' is wide enough
68277         * time/mktime.c (verify): Move decl up.
68278         (long_int): New type.
68279         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
68280         to remove assumption in the code that 'long' is wide enough to
68281         store year values.  This assumption is not true on x32 and on
68282         some non-glibc platforms.
68283
68284         mktime: merge wrapv change from gnulib
68285         * time/mktime.c (WRAPV): New macro.
68286         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
68287         (guess_time_tm, __mktime_internal): Do not assume that signed
68288         integer overflow wraps around; modern compilers generate code
68289         where this assumption is no longer valid.
68290
68291 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68292
68293         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68294         Replace "jmp L(pseudo_end)" with "ret".
68295         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
68296         Likewise.
68297
68298 2012-05-23  Andreas Jaeger  <aj@suse.de>
68299
68300         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
68301         * sysdeps/unix/sysv/linux/poll.c: Remove file.
68302
68303 2012-05-23  Andreas Jaeger  <aj@suse.de>
68304             Maximilian Attems  <max@stro.at>
68305
68306         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
68307         New macros.
68308
68309 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68310
68311         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
68312         code so that pseudo_end is just ret and the stack pointer is
68313         correct also for static library in error case.
68314
68315 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
68316
68317         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
68318         move to syscalls.list.
68319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
68320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
68321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
68322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
68323
68324         * manual/install.texi (Running make install): Do not mention Linux
68325         kernel version for which pt_chown is not needed.
68326         (Linux): Do not mention problems with nscd with 2.0 kernels.
68327         * INSTALL: Regenerated.
68328
68329 2012-05-23  Andreas Jaeger  <aj@suse.de>
68330
68331         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
68332         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
68333         macro.
68334         * sysdeps/unix/sysv/linux/s390/bits/mman.h
68335         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68336         * sysdeps/unix/sysv/linux/sh/bits/mman.h
68337         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68338         * sysdeps/unix/sysv/linux/i386/bits/mman.h
68339         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68340         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
68341         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68342         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
68343         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68344         * sysdeps/unix/sysv/linux/bits/in.h
68345         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
68346
68347 2012-05-22  Roland McGrath  <roland@hack.frob.com>
68348
68349         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
68350         (PREPARE_VERSION): Just use assert instead, it will be elided
68351         under [NDEBUG] anyway.
68352
68353 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68354
68355         * sysdeps/unix/sysv/linux/Makefile: Include
68356         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
68357         (sysdep_routines): Remove sysctl.
68358         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
68359         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
68360         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
68361         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
68362         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
68363
68364 2012-05-22  Andreas Jaeger  <aj@suse.de>
68365
68366         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
68367         that pseudo_end is just ret and the stack pointer is correct also
68368         for static library in error case.
68369
68370 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
68371
68372         [BZ #14122]
68373         * nss/nsswitch.c (defconfig_entries): New variable.
68374         (__nss_database_lookup): Don't leak defconfig entries.
68375         (nss_parse_service_list): Don't leak on error paths.
68376         (free_database_entries): New function.
68377         (free_defconfig): New function.
68378         (free_mem): Move common code to free_database_entries.
68379
68380 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68381
68382         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
68383         Add arch_prctl.
68384         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
68385
68386         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
68387         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
68388         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
68389         New macro.
68390         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
68391         (INTERNAL_SYSCALL_TYPES): Likewise.
68392         (LOAD_ARGS_TYPES_[1-6]): Likewise.
68393         (LOAD_REGS_TYPES_[1-6]): Likewise.
68394         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
68395         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
68396
68397 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68398
68399         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
68400         copysignl for GLIBC_2_0.
68401         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
68402         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
68403         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
68404         logbl for GLIBC_2_0.
68405         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
68406         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
68407
68408 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68409
68410         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
68411         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68412
68413         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68414         Use "neg %eax".
68415
68416         * time/mktime.c: Update copyright years.
68417
68418 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68419
68420         mktime: merge comment-quoting-style change from gnulib
68421         * time/mktime.c: Quote 'like this' in comments.
68422         The GNU coding standards suggest that we no longer quote `like this',
68423         as "`" and "'" are typically rendered asymmetrically nowadays.
68424         The typical gnulib style is to quote 'like this' when quoting
68425         code, and "like this" when quoting English.
68426
68427         * time/mktime.c (compile-command): Add "-I.".
68428
68429         mktime: merge mktime-internal.h change from gnulib
68430         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
68431
68432         mktime: merge time_r change from gnulib
68433         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
68434
68435         mktime: merge DEBUG change from gnulib
68436         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
68437         case system <time.h> has a #define.
68438
68439         mktime: merge <sys/types.h> change from gnulib
68440         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
68441         since <time.t> is now guaranteed to define time_t.
68442
68443         mktime: merge HAVE_CONFIG_H change from gnulib
68444         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
68445
68446 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68447
68448         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68449         Use "neg %eax".
68450
68451         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
68452         __rlim_t cast.
68453         (struct rusage): Use anonymous union to pad each field to
68454         __syscall_slong_t.
68455
68456 2012-05-21  David S. Miller  <davem@davemloft.net>
68457
68458         * Makefules (o-iterator): Remove .s cases.
68459         (compile-command.s): Delete.
68460         (COMPILE.s): Delete.
68461         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
68462
68463 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
68464
68465         * configure.in (libc_cv_predef_stack_protector): Only consider
68466         "foobar" and "__stack_chk_fail" lines in libc_undefs.
68467         * configure: Regenerated.
68468
68469 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68470
68471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68472         New macro.  Use R*LP on int and pointer.
68473         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
68474         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68475         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
68476         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
68477
68478         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
68479         [__WORDSIZE_TIME64_COMPAT32] instead of
68480         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
68481         (struct utmp): Likewise.
68482         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
68483         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
68484         Renamed to ...
68485         (__WORDSIZE_TIME64_COMPAT32): This.
68486         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
68487         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
68488         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
68489         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
68490         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
68491         (__WORDSIZE_TIME64_COMPAT32): New macro.
68492
68493 2012-05-21  Andreas Jaeger  <aj@suse.de>
68494
68495         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
68496         only if [SHARED]. Add prototype for __wcschr_ia32.
68497
68498 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68499
68500         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
68501         of %rbp unmolested in the jmp_buf while mangling the low bits.
68502         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
68503         unmolested high bits of %rbp while demangling the low bits.
68504         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68505
68506 2012-05-21  Andreas Jaeger  <aj@suse.de>
68507
68508         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
68509         * sunrpc/svc_simple.c: Use it for registerrpc.
68510         * sunrpc/xcrypt.c: Use it for passwd2des.
68511
68512         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
68513
68514 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68515
68516         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
68517         Don't define if [__SYSCALL_WORDSIZE != 32].
68518         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
68519         New macro.
68520
68521 2012-05-21  Bruno Haible  <bruno@clisp.org>
68522             Andreas Jaeger  <aj@suse.de>
68523
68524         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
68525         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
68526         inptr and inend for must_buffer_ch.
68527         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
68528         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
68529         * stdio-common/Makefile (tests): Remove bug15.
68530         (bug15-ENV): Remove macro.
68531         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
68532         anymore.
68533
68534 2012-05-19  Andreas Jaeger  <aj@suse.de>
68535             Roland McGrath  <roland@hack.frob.com>
68536
68537         * manual/contrib.texi: Completely rewritten. It contains now an
68538         alphabetical list of contributors and their contributions.
68539
68540 2012-05-21  Richard Henderson  <rth@twiddle.net>
68541
68542         * misc/getauxval.c (__getauxval): Use unsigned long int.
68543         * misc/sys/auxv.h: Include <sys/cdefs.h>.
68544         (getauxval): Use unsigned long int.
68545
68546 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68547
68548         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68549
68550 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68551
68552         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
68553         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
68554         __alignof__ (long double).
68555
68556 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68557
68558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68559
68560 2012-05-20  Richard Henderson  <rth@twiddle.net>
68561
68562         * misc/getauxval.c: New file.
68563         * misc/sys/auxv.h: New file.
68564         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
68565         (routines): Add getauxval.
68566         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
68567         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
68568         * elf/dl-sysdep.c (_dl_auxv): Remove.
68569         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
68570         * elf/dl-support.c (_dl_auxv): New variable.
68571         (_dl_aux_init): Initialize it.
68572         * manual/startup.texi (Auxiliary Vector): New node.
68573         * sysdeps/generic/bits/hwcap.h: New file.
68574         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
68575         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
68576         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
68577         * sysdeps/sparc/sysdep.h: ... here.  Include it.
68578         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
68579         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
68580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68581         Update.
68582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
68583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
68584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
68585         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
68586         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
68589         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
68590
68591 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68592
68593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68594
68595 2012-05-19  David S. Miller  <davem@davemloft.net>
68596
68597         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68598
68599 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68600
68601         [BZ #14123]
68602         * math/s_ccosh.c: Include <float.h>
68603         (__ccosh): Avoid internal overflow calculating sinh and cosh
68604         values before multiplying by sin and cos values.
68605         * math/s_ccoshf.c: Likewise.
68606         * math/s_ccoshl.c: Likewise.
68607         * math/s_csin.c: Likewise.
68608         * math/s_csinf.c: Likewise.
68609         * math/s_csinl.c: Likewise.
68610         * math/s_csinh.c: Likewise.
68611         * math/s_csinhf.c: Likewise.
68612         * math/s_csinhl.c: Likewise.
68613         * math/libm-test.inc (ccos_test): Add more tests.
68614         (ccosh_test): Likewise.
68615         (csin_test): Likewise.
68616         (csinh_test): Likewise.
68617         * sysdeps/i386/fpu/libm-test-ulps: Update.
68618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68619
68620 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
68621
68622         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
68623         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
68624
68625         * sysdeps/x86_64/x32/_itoa.h: Add comment.
68626
68627 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68628
68629         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
68630         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
68631         * sysdeps/powerpc/soft-fp/Versions: Likewise.
68632         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
68633         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
68634         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
68635         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
68636         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
68637         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
68638         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
68639         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
68640         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
68641         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
68642         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
68643         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
68644         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
68645         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
68646         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
68647         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
68648         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
68649         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
68650         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
68651         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
68652         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
68653         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
68654         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
68655         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
68656         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
68657         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
68658         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
68659         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
68660
68661 2012-05-18  Andreas Jaeger  <aj@suse.de>
68662
68663         * csu/.gitignore: Delete.
68664
68665 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68666
68667         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
68668         (timex): Use __syscall_slong_t.
68669
68670 2012-05-18  Andreas Jaeger  <aj@suse.de>
68671             Carlos O'Donell  <carlos_odonell@mentor.com>
68672
68673         * manual/install.texi (Configuring and compiling): Update
68674         description about files modified in the source directory.
68675         * INSTALL: Regenerated.
68676
68677 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68678
68679         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
68680         value.  Use "or" to set return value to -1.
68681         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
68682         negate return value.
68683
68684 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68685
68686         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
68687         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
68688         failure if the compiler has Graphite support disabled.
68689         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
68690         Likewise.
68691         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
68692         (CFLAGS-memmove.c): Likewise.
68693         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
68694         Likewise.
68695
68696 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68697
68698         * sysdeps/x86_64/x32/_itoa.h: New file.
68699
68700         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
68701         getdents system call only if kernel and user dirents have the
68702         same d_ino and d_off.
68703
68704         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
68705         LLONG_MAX != LONG_MAX.
68706         (_itoa_word): Use _ITOA_WORD_TYPE on value.
68707         (_fitoa_word): Likewise.
68708
68709         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
68710         years.
68711         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
68712         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
68713         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
68714
68715         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
68716         include <bits/wordsize.h>.  Check __x86_64__ instead of
68717         __WORDSIZE.
68718         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
68719         if __x86_64__ is defined.  Use anonymous union on fpstate.
68720
68721         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
68722         anonymous union.
68723
68724 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
68725
68726         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
68727         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
68728         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
68729         Refer to _rtld_local_ro instead of _rtld_global_ro.
68730         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
68731         Likewise.
68732         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
68733         Likewise.
68734         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
68735         Likewise.
68736         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
68737         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
68738         of _rtld_global, and rtld_progname instead of _dl_argv[0].
68739
68740         [BZ #10882]
68741         * sysdeps/powerpc/powerpc32/dl-machine.c
68742         (__elf_machine_runtime_setup) [PROF]: Don't reference
68743         _dl_prof_resolve.
68744
68745 2012-05-18  Andreas Jaeger  <aj@suse.de>
68746
68747         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
68748         function only available for GCCs before 3.4 since GCC 3.4
68749         introduced a builtin.
68750         (lrint): Likewise.
68751         (llrintf): Likewise.
68752         (llrint): Likewise.
68753         (fmaxf): Likewise.
68754         (fmax): Likewise.
68755         (fminf): Likewise.
68756         (fmin): Likewise.
68757         (rint): Likewise.
68758         (rintf): Likewise.
68759         (nearbyint): Likewise.
68760         (nearbyintf): Likewise.
68761         (ceil): Likewise.
68762         (ceilf): Likewise.
68763         (floor): Likewise.
68764         (floorf): Likewise.
68765
68766 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68767
68768         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
68769         on both fields and cast pointer to __syscall_ulong_t.
68770
68771         * bits/types.h (__fsword_t): New type.
68772         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
68773         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
68774         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68775         (__FSWORD_T_TYPE): Likewise.
68776         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68777         (__FSWORD_T_TYPE): Likewise.
68778         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68779         (__FSWORD_T_TYPE): Likewise.
68780         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
68781         (__FSWORD_T_TYPE): Likewise.
68782         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
68783         __SWORD_TYPE with __fsword_t.
68784         (statfs64): Likewise.
68785
68786 2012-05-17  David S. Miller  <davem@davemloft.net>
68787
68788         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
68789
68790 2012-05-17  Andreas Jaeger  <aj@suse.de>
68791
68792         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
68793         warning.
68794
68795 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68796
68797         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
68798
68799 2012-05-17  Andreas Jaeger  <aj@suse.de>
68800
68801         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
68802         when it is used.
68803
68804 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68805
68806         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
68807
68808 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68809
68810         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
68811         * sysdeps/x86_64/tst-mallocalign1.c: New file.
68812
68813 2012-05-17  Andreas Jaeger  <aj@suse.de>
68814             Carlos O'Donell  <carlos_odonell@mentor.com>
68815
68816         [BZ #14059]
68817         * sysdeps/x86_64/multiarch/init-arch.h
68818         (bit_YMM_Usable): Rename to...
68819         (bit_AVX_Usable): ... this.
68820         (bit_FMA4_Usable): New macro.
68821         (bit_XMM_state): New macro.
68822         (bit_YMM_state): New macro.
68823         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
68824         [__ASSEMBLER__] (index_AVX_Usable): ... this.
68825         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
68826         (CPUID_OSXSAVE): New macro.
68827         (CPUID_AVX): New macro.
68828         (CPUID_FMA4): New macro.
68829         (index_YMM_Usable): Rename to...
68830         (index_AVX_Usable): ... this.
68831         (HAS_AVX): Use HAS_ARCH_FEATURE.
68832         (HAS_FMA4): Likewise.
68833         (HAS_YMM_USABLE): Remove.
68834         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
68835         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
68836         are present.
68837         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
68838         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
68839         * sysdeps/x86_64/multiarch/Makefile: Likewise.
68840         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
68841         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
68842
68843 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68844
68845         * math/libm-test.c: Support platforms without multiple rounding modes.
68846         * math/bug-nextafter.c: Support platforms without FP exceptions.
68847         * math/bug-nexttoward.c: Likewise.
68848         * math/test-fenv.c: Likewise.
68849         * math/test-misc.c: Likewise.
68850         * stdlib/bug-getcontext.c: Likewise.
68851
68852 2012-05-17  Andreas Jaeger  <aj@suse.de>
68853
68854         * manual/examples/search.c (critter_cmp): Change signature to
68855         avoid warnings.
68856         * manual/string.texi (Collation Functions): Likewise.
68857
68858 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68859
68860         * bits/types.h: Fold copyright years.
68861         * bits/typesizes.h: Likewise.
68862         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
68863         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
68864         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
68865         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
68866         * time/time.h: Likewise.
68867
68868 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
68869
68870         [BZ #208]
68871         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
68872         in instead of returning them.  Return void.
68873         (__libc_mallinfo): Accumulate over all arenas.
68874         (__malloc_stats): Adjust for change in int_mallinfo interface.
68875
68876 2012-05-16  Roland McGrath  <roland@hack.frob.com>
68877
68878         [BZ #10375]
68879         * configure.in (NM): Add AC_CHECK_TOOL for it.
68880         (libc_extra_cflags): New substituted variable.
68881         Check for -fstack-protector being used implicitly.
68882         * configure: Regenerated.
68883         * config.make.in (config-extra-cflags): New variable,
68884         gets @libc_extra_cflags@.
68885         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
68886
68887         [BZ #10375]
68888         * configure.in: Check for _FORTIFY_SOURCE being predefined.
68889         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
68890         * configure: Regenerated.
68891         * config.make.in (CPPUNDEFS): New substituted variable.
68892         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
68893         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
68894         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
68895
68896 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68897
68898         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
68899         (mq_attr): Use __syscall_slong_t.
68900
68901 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68902
68903         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
68904         Check __x86_64__ instead of __WORDSIZE.
68905         (_STAT_VER_LINUX): Likewise.
68906         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
68907         __syscall_ulong_t and __syscall_slong_t.
68908         (stat64): Likewise.
68909
68910 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68911
68912         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
68913
68914 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68915
68916         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
68917
68918 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68919
68920         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
68921         __syscall_ulong_t.
68922
68923         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
68924         include <bits/wordsize.h>.  Check __x86_64__ instead of
68925         __WORDSIZE.
68926         (greg_t): Use "__extension__ long long int" if __x86_64__ is
68927         defined.
68928         (mcontext_t): Replace "unsigned long" with "unsigned long long".
68929
68930         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
68931         include <bits/wordsize.h>.  Check __x86_64__ instead of
68932         __WORDSIZE.
68933         (user_regs_struct): Use "__extension__ unsigned long long"
68934         instead of "unsigned long" if __x86_64__ is defined.
68935         (user): Likewise.  Pad after pointer field if __ILP32__ is
68936         defined.
68937
68938 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
68939
68940         * configure.in (makeinfo): Require version 4.5 or later.  Allow
68941         versions 5 to 9.
68942         * configure: Regenerated.
68943         * manual/install.texi (texinfo): Increase version requirement to
68944         4.5 or later.
68945         * INSTALL: Regenerated.
68946
68947         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
68948
68949 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68950
68951         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
68952
68953         * sysdeps/x86_64/x32/ffs.c: New file.
68954
68955         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
68956         __syscall_ulong_t.
68957         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
68958         defined.  Use __syscall_ulong_t.
68959         (shminfo): Use __syscall_ulong_t.
68960         (shm_info): Likewise.
68961
68962         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
68963         __syscall_ulong_t.
68964
68965         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
68966         <bits/wordsize.h>.
68967         (msgqnum_t): Use __syscall_ulong_t.
68968         (msglen_t): Likewise.
68969         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
68970         __syscall_ulong_t.
68971
68972         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
68973         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68974
68975         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
68976
68977         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
68978         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
68979
68980         * sysvipc/sys/msg.h (msgbuf): Replace long int with
68981         __syscall_slong_t.
68982
68983         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
68984         include <bits/wordsize.h>.  Check __x86_64__ instead of
68985         __WORDSIZE.
68986
68987         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
68988         "unsigned long long int" if __x86_64__ is defined.
68989         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
68990
68991         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
68992         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68993         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
68994
68995         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
68996         <stdint.h>.
68997         (GET_PC): Cast to uintptr_t first.
68998         (GET_FRAME): Likewise.
68999         (GET_STACK): Likewise.
69000
69001         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
69002         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
69003         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
69004         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
69005         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
69006         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
69007         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
69008         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
69009         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
69010         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
69011         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
69012         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
69013         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
69014         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
69015         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
69016         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
69017         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
69018         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
69019         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
69020         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
69021         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
69022         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
69023         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
69024         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
69025         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
69026         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
69027         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
69028         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
69029         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
69030
69031 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
69032
69033         * Makerules (+depfiles): Also collect depfiles from .oS in
69034         $(extra-objs).
69035         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
69036         .oS, $(libnldbl-routines)).
69037
69038         * Makerules (native-compile-mkdep-flags): Define.
69039         * sunrpc/Makefile (extra-objs): Add $(addprefix
69040         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
69041         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
69042         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
69043         calling $(make-target-directory).
69044
69045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69046
69047         * bits/types.h (__snseconds_t): Removed.
69048         * time/time.h (struct timespec): Replace __snseconds_t with
69049         __syscall_slong_t.
69050         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
69051         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
69052         Likewise.
69053         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69054         (__SNSECONDS_T_TYPE): Likewise.
69055         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69056         (__SNSECONDS_T_TYPE): Likewise.
69057         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69058         (__SNSECONDS_T_TYPE): Likewise.
69059
69060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69061
69062         * sysdeps/mach/hurd/bits/typesizes.h
69063         (__SYSCALL_SLONG_TYPE): New macro.
69064         (__SYSCALL_ULONG_TYPE): Likewise.
69065
69066 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69067
69068         * bits/types.h (__syscall_slong_t): New type.
69069         (__syscall_ulong_t): Likewise.
69070
69071         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
69072         (__SYSCALL_ULONG_TYPE): Likewise.
69073         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69074         (__SYSCALL_SLONG_TYPE): Likewise.
69075         (__SYSCALL_ULONG_TYPE): Likewise.
69076         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69077         (__SYSCALL_SLONG_TYPE): Likewise.
69078         (__SYSCALL_ULONG_TYPE): Likewise.
69079         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69080         (__SYSCALL_SLONG_TYPE): Likewise.
69081         (__SYSCALL_ULONG_TYPE): Likewise.
69082
69083 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69084
69085         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
69086         Add sigaltstack-offsets.sym.
69087         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
69088         <sigaltstack-offsets.h>.
69089         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
69090         longjmp_msg pointer.
69091         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
69092         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
69093         signal stack.
69094         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
69095
69096 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69097
69098         * elf/stackguard-macros.h: Remove file.
69099         * sysdeps/generic/stackguard-macros.h: New file.
69100         * sysdeps/i386/stackguard-macros.h: Likewise.
69101         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
69102         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
69103         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
69104         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
69105         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
69106         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
69107         * sysdeps/x86_64/stackguard-macros.h: Likewise.
69108         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
69109         <elf/stackguard-macros.h>.
69110
69111         [BZ #14109]
69112         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
69113         __aligned__ in attribute.
69114         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
69115         (gregset_t): Likewise.
69116
69117 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69118
69119         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
69120         * sysdeps/x86_64/64/Implies-after: Here.  New file.
69121         * sysdeps/x86_64/x32/Implies-after: New file.
69122
69123 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69124
69125         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
69126         and access return value for _dl_profile_fixup.  Use R10_LP to
69127         load frame size.
69128
69129 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69130
69131         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
69132
69133 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69134
69135         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
69136         * sysdeps/x86_64/x32/sysdep.h: New file.
69137
69138 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69139
69140         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
69141         * sysdeps/x86_64/setjmp.S: Likewise.
69142
69143 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69144
69145         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
69146         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
69147         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
69148         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
69149         remove unused global constant.
69150
69151 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
69152
69153         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
69154         include of <not-cancel.h>.
69155
69156 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69157
69158         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
69159
69160 2012-05-15  Jeff Law  <law@redhat.com>
69161             Andreas Jaeger  <aj@suse.de>
69162
69163         [BZ #13594]
69164         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
69165         out from...
69166         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
69167         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
69168         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
69169         code changing __hst_map_handle.map.
69170
69171 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69172
69173         * configure.in (sysnames): Look for Implies-before and Implies-after
69174         files.
69175         * configure: Regenerated.
69176
69177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69178
69179         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
69180         8-byte data alignment with LP_SIZE alignment.
69181
69182 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69183
69184         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
69185         into R10_LP.
69186
69187 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69188
69189         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
69190
69191 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69192
69193         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
69194         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
69195         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
69196         Likewise.
69197         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
69198
69199 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69200
69201         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
69202         (stackinfo_sub_sp): Likewise.
69203
69204 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69205
69206         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
69207         RAX_LP.
69208
69209 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69210
69211         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
69212         into R*_LP.
69213
69214 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69215
69216         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
69217         sizes into R*_LP.
69218
69219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69220
69221         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
69222
69223 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69224
69225         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
69226         into R11_LP and load __x86_64_shared_cache_size_half into
69227         R8_LP.
69228
69229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69230
69231         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
69232         R8_LP.
69233
69234 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69235
69236         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
69237         logb for POWER7.
69238         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
69239         logbf for POWER7.
69240         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
69241         logbl for POWER7.
69242         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
69243         powerpc32/power7/fpu/s_logb.c via #include.
69244         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
69245         powerpc32/power7/fpu/s_logbf.c via #include.
69246         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
69247         powerpc32/power7/fpu/s_logbl.c via #include.
69248
69249 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69250
69251         * README.libm: Remove file.
69252
69253 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69254
69255         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
69256         count for x32.  Use R*_LP and omit operand-size suffix.
69257
69258 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69259
69260         * shlib-versions: Move x86_64-.*-linux.* entries to ...
69261         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
69262         * sysdeps/x86_64/x32/shlib-versions: New file.
69263
69264 2012-05-14  Roland McGrath  <roland@hack.frob.com>
69265
69266         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
69267         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
69268         Use _dl_fatal_printf instead.
69269
69270 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69271
69272         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
69273         set if not set by the user.  Do not allow for being unset.
69274         * sysdeps/unix/sysv/linux/configure: Regenerated.
69275
69276 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69277
69278         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
69279         the `q' suffix from lea and replace .quad with ASM_ADDR.
69280
69281 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69282
69283         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
69284         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
69285         instead of $17.
69286         (PTR_DEMANGLE): Likewise.
69287
69288 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69289
69290         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
69291         (LP_OP): Likewise.
69292         (ASM_ADDR): Likewise.
69293         (RAX_LP): Likewise.
69294         (RBP_LP): Likewise.
69295         (RBX_LP): Likewise.
69296         (RCX_LP): Likewise.
69297         (RDI_LP): Likewise.
69298         (RSI_LP): Likewise.
69299         (RSP_LP): Likewise.
69300         (R8_LP): Likewise.
69301         (R9_LP): Likewise.
69302         (R10_LP): Likewise.
69303         (R10_LP): Likewise.
69304         (R11_LP): Likewise.
69305         (R12_LP): Likewise.
69306         (R13_LP): Likewise.
69307         (R14_LP): Likewise.
69308         (R15_LP): Likewise.
69309
69310 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69311
69312         * sysdeps/x86_64/x32/dl-machine.h: New file.
69313
69314 2012-05-14  Andreas Jaeger  <aj@suse.de>
69315
69316         * manual/Makefile (subdir): Remove export of subdir.
69317         (all): Remove target.
69318         (.PHONY): Remove all from list.
69319         (mkinstalldirs): Remove.
69320         (.PHONY): Remove installdirs from list.
69321         ($(inst_infodir)/libc.info): Use make-target-directory.
69322         (installdirs): Remove.
69323         (subdir_%): Remove.
69324         (glibc-targets): Remove.
69325         (lib): Remove.
69326         (stubs): Remove.
69327         ($(objpfx)stubs ../po/manual.pot): Remove.
69328         ($(objpfx)stamp%): Remove.
69329         (make-target-directory): Remove.
69330         (subdir_install): Remove.
69331         (routines): Remove.
69332         (aux): Remove.
69333         (sources): Remove.
69334         (objects): Remove.
69335         (headers): Remove.
69336
69337         [BZ #13750]
69338         * manual/.gitignore: Remove, it's not needed anymore.
69339         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
69340         all files in it.
69341         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
69342         directory.
69343         (texis): Renamed to $(objpfx)texis.
69344         (texis-path): New, contains path to generated files.
69345         (chapters.%): Use texis-path for complete path, add extra argument
69346         libc-texinfo.sh.
69347         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
69348         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
69349         (summary,texi, stamp-summary): Use complete path of
69350         files. Generate files in build dir.
69351         (dir-add.texi): Build in build dir.
69352         (libm-err.texi,stamp-libm-err): Likewise.
69353         (version.texi, stamp-version): Likewise.
69354         (.%c.texi): Likewise.
69355         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
69356         (mostlyclean): Remove target.
69357         (realclean): Remove target.
69358         (generated): Add new variable with contents from mostlyclean and
69359         realclean, remove entries duplicated in common-mostlyclean, add
69360         stamp-libm-err and stamp-version.
69361         (generated-dirs): Add libc directory.
69362         ($(inst_infodir)/libc.info): Install files from build dir.
69363
69364         * manual/install.texi (Configuring and compiling): Adjust since
69365         the info files are not part of the tar ball anymore.
69366
69367 2012-05-14  Andreas Jaeger  <aj@suse.de>
69368
69369         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
69370         variable.
69371
69372 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69373
69374         [BZ #13717]
69375         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
69376         to 2.2.0 where earlier.
69377         * sysdeps/unix/sysv/linux/configure: Regenerated.
69378         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
69379         Remove conditional code.
69380         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
69381         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
69382         Remove conditional code.
69383         [!__NR_lchown]: Likewise.
69384         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69385         [__NR_lchown]: Likewise.
69386         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
69387         comment referencing __ASSUME_LCHOWN_SYSCALL.
69388         * sysdeps/unix/sysv/linux/i386/sigaction.c
69389         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69390         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69391         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
69392         Remove conditional code.
69393         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
69394         (__protocol_available): Remove #if 0 code.
69395         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
69396         conditional code.
69397         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
69398         * sysdeps/unix/sysv/linux/kernel-features.h
69399         (__ASSUME_GETCWD_SYSCALL): Don't define.
69400         (__ASSUME_REALTIME_SIGNALS): Likewise.
69401         (__ASSUME_PREAD_SYSCALL): Likewise.
69402         (__ASSUME_PWRITE_SYSCALL): Likewise.
69403         (__ASSUME_POLL_SYSCALL): Likewise.
69404         (__ASSUME_LCHOWN_SYSCALL): Likewise.
69405         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
69406         non-SPARC.
69407         (__ASSUME_SIOCGIFNAME): Don't define.
69408         (__ASSUME_MSG_NOSIGNAL): Likewise.
69409         (__ASSUME_SENDFILE): Define unconditionally.
69410         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
69411         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
69412         conditional code.
69413         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
69414         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
69415         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69416         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69417         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
69418         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69419         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
69421         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69422         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
69424         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69425         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
69427         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69428         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
69430         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69431         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
69433         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69434         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
69436         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69437         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
69439         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69440         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
69442         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69443         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69444         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
69445         Remove conditional code.
69446         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69447         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69448         Remove conditional code.
69449         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69450         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
69451         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
69452         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69453         Remove conditional code.
69454         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69455         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
69456         Remove conditional code.
69457         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69458         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
69459         Remove conditional code.
69460         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69461         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69462         Remove conditional code.
69463         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69464         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69465         Remove conditional code.
69466         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69467         * sysdeps/unix/sysv/linux/sh/pwrite64.c
69468         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69469         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69470         * sysdeps/unix/sysv/linux/sigaction.c
69471         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69472         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69473         * sysdeps/unix/sysv/linux/sigpending.c
69474         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69475         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69476         * sysdeps/unix/sysv/linux/sigprocmask.c
69477         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69478         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69479         * sysdeps/unix/sysv/linux/sigsuspend.c
69480         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69481         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69482         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69483         (__libc_missing_rt_sigs): Remove.
69484         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
69485         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
69486         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
69487         Remove conditional code.
69488         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
69489         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
69490         return 1.
69491         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
69492         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
69493         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
69494         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
69495
69496 2012-05-14  Andreas Jaeger  <aj@suse.de>
69497
69498         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
69499         it's not used in glibc.
69500         (__coshm1): Likewise.
69501         (__acosh1p): Likewise.
69502         (__sgn): Likewise.
69503
69504         * manual/string.texi (Copying and Concatenation): Add missing
69505         variable in concat example.
69506         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
69507
69508 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69509
69510         [BZ #14103]
69511         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
69512         __builtin_clzl with __builtin_clzll.
69513
69514 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69515
69516         [BZ #14104]
69517         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
69518         libc_freeres_ptr.
69519
69520 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69521
69522         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
69523         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
69524         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
69525         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
69526
69527 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
69528
69529         * NEWS: Update ia64 info.
69530
69531 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
69532
69533         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
69534         used as bcopy.
69535
69536 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
69537
69538         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
69539         * sysdeps/unix/syscalls.list (dup3): Likewise.
69540         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
69541         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
69542
69543 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69544
69545         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
69546         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
69547
69548 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69549
69550         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
69551         thread pointer.
69552         (TLS_IE): Use mov/add instead of movq/addq to load thread
69553         pointer.
69554         (TLS_GD_PREFIX): New.
69555         (TLS_GD): Use it.
69556
69557 2012-05-11  David S. Miller  <davem@davemloft.net>
69558
69559         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
69560         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
69561         (_FPU_SETCW): Likewise.
69562
69563 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69564
69565         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
69566         is 32-byte aligned.
69567
69568 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
69569
69570         [BZ #11837]
69571         * iconvdata/gb18030.c: Update tables.
69572         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
69573         characters specially.
69574         (BODY for TO_LOOP): Add encoding of missing ranges.
69575
69576 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
69577
69578         [BZ #13673]
69579         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
69580         * sysdeps/mach/hurd/dup3.c: Likewise.
69581         * sysdeps/mach/hurd/readlinkat.c: Likewise.
69582         * sysdeps/powerpc/memmove.c:: Likewise.
69583
69584 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69585
69586         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
69587         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
69588
69589 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69590
69591         * elf/elf.h (R_X86_64_RELATIVE64): New.
69592         (R_X86_64_NUM): Updated.
69593         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69594         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
69595         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
69596         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
69597         tst-quad1pie tst-quad2pie
69598         (modules-names): Add tst-quadmod1 tst-quadmod2.
69599         ($(objpfx)tst-quad1): New dependency.
69600         ($(objpfx)tst-quad2): Likewise.
69601         ($(objpfx)tst-quad1pie): Likewise.
69602         ($(objpfx)tst-quad2pie): Likewise.
69603         * sysdeps/x86_64/tst-quad1.c: New file.
69604         * sysdeps/x86_64/tst-quad1pie.c: New file.
69605         * sysdeps/x86_64/tst-quad2.c: Likewise.
69606         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
69607         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
69608         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
69609         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
69610         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
69611
69612 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69613
69614         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
69615         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
69616         * streams/stropts.h (t_scalar_t): Define type.
69617
69618         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
69619         (_PATH_PRESERVE): Set to "/var/lib".
69620         (_PATH_RWHODIR): Set to "/var/spool/rwho".
69621
69622         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
69623         instead of int.
69624
69625         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
69626         if __dir_mkfile succeeded.
69627
69628         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
69629         checking for _hurd_dtablesize.  Unlock it right after having
69630         finished _hurd_dtable allocation.
69631
69632 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69633
69634         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
69635         * sysdeps/mach/hurd/configure: Regenerated.
69636         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
69637         special-casing to...
69638         * sysdeps/gnu/configure.in: ... this new file.
69639         * sysdeps/unix/sysv/linux/configure: Regenerated.
69640         * sysdeps/gnu/configure: New generated file.
69641
69642         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
69643         for Linux: use nsec instead of usec, as well as:
69644         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
69645         members of type struct timespec.
69646         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
69647         New macros.
69648         (struct stat64): Likewise.
69649         (_STATBUF_ST_NSEC): New macro.
69650         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
69651
69652         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
69653         __strtoul_internal rather than strtoul.
69654
69655 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69656
69657         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
69658         and reject them.
69659
69660 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69661
69662         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
69663         which preserves existing values.
69664         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
69665
69666 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69667
69668         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
69669         TIMEOUT values.  Return EINVAL for NFDS values either negative or
69670         greater than FD_SETSIZE.
69671
69672 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69673
69674         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
69675         allocated, call __vm_protect to finish enabling the existing space, and
69676         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
69677         allocate the remainder.
69678
69679 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69680
69681         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
69682         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
69683
69684 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69685
69686         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
69687         sysdeps/mach/hurd/readlink.c.
69688
69689         * posix/tst-sysconf.c (posix_options): Only use
69690         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
69691         _POSIX_SYNCHRONIZED_IO when they are defined
69692         * sysdeps/mach/hurd/bits/posix_opt.h:
69693         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
69694         (_XOPEN_REALTIME): Undefine macro.
69695         (_XOPEN_REALTIME_THREADS): Undefine macro.
69696         (_XOPEN_SHM): Undefine macro.
69697         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
69698         macro to -1.
69699         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
69700         macro to -1.
69701         (_POSIX_ASYNC_IO): Undefine macro.
69702         (_POSIX_PRIORITIZED_IO): Undefine macro.
69703         (_POSIX_SPIN_LOCKS): Define macro to -1.
69704
69705         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
69706         SA_NODEFER, SA_RESETHAND.
69707         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
69708         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
69709         F_DUPFD_CLOEXEC.
69710
69711 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69712
69713         * elf/Makefile (pldd-modules): Define unconditionally.
69714
69715 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69716
69717         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
69718
69719 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69720
69721         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
69722         Return ENOENT when name is empty.
69723         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
69724
69725 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69726
69727         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
69728
69729         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
69730
69731 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69732
69733         Fix mlock in all cases except non-readable pages.
69734         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
69735         instead of VM_PROT_ALL as parameter to __vm_wire function.
69736
69737         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
69738         (__mkdir): When path is `/', just fail with EEXIST.
69739         * sysdeps/mach/hurd/mkdirat.c: Likewise.
69740
69741 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69742
69743         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
69744         <sys/uio.h> (for writev).
69745         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
69746         and <sys/param.h> (for MIN).
69747
69748 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69749
69750         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
69751         REQUESTED_TIME.  Properly set the remaining time and return EINTR
69752         if interrupted.
69753
69754 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69755
69756         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
69757         Depend on against $(link-rpcuserlibs).
69758
69759 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69760
69761         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
69762         (__libc_stack_end): Do not use attribute_relro.
69763         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
69764         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
69765         to libthread-provided value.
69766         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
69767         attribute_relro.
69768
69769 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69770
69771         [BZ #3748]
69772         * bits/libc-lock.h (__libc_once_get): New macro.
69773         * sysdeps/mach/bits/libc-lock.h: Likewise.
69774         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
69775         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
69776         instead of using implementation details.
69777
69778         * libio/fileops.c: Unconditionally include <kernel-features.h>.
69779         * libio/freopen.c: Likewise.
69780         * libio/freopen64.c: Likewise.
69781         * misc/syslog.c: Likewise.
69782         * nscd/connections.c: Likewise.
69783         * nscd/netgroupcache.c: Likewise.
69784         * sysdeps/posix/getcwd.c: Likewise.
69785
69786 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69787
69788         * math/w_ilogbf.c: Add #include <limits.h>.
69789
69790 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69791
69792         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
69793         path instead of returning without unlocking.
69794
69795         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
69796         immediate-write ioctls.
69797         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
69798
69799 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69800
69801         * sysdeps/mach/hurd/i386/init-first.c (init): Use
69802         __builtin_frame_address instead of making assumptions about the
69803         location of the return address relative to DATA.  Force early load of
69804         the return address.
69805         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
69806         __builtin_frame_address.
69807
69808         dup3 for GNU Hurd.
69809         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
69810         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
69811         implement dup3 and do some further code clean-ups.
69812         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
69813         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
69814
69815 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69816
69817         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
69818
69819         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
69820         HURD_CRITICAL_END around holding _hurd_dtable_lock.
69821         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
69822         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
69823         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
69824         d->port.lock.
69825
69826         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
69827         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
69828         when handler == SIG_ERR, not when handler != SIG_ERR.
69829
69830 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69831
69832         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
69833         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
69834         definitions.
69835
69836         accept4 for GNU Hurd.
69837         * include/sys/socket.h (__libc_accept4): New prototype.
69838         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
69839         to implement __libc_accept4.
69840         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
69841         __libc_accept4.
69842         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
69843
69844         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
69845         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
69846         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
69847         signal-defines.sym.
69848
69849 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69850
69851         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
69852
69853 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69854
69855         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
69856         assertion on O_CLOEXEC flag.
69857         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
69858         * hurd/intern-fd.c: Likewise.
69859         * hurd/port2fd.c: Likewise.
69860
69861 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69862
69863         [BZ #3906]
69864         * bits/in.h (IPV6_PKTINFO): Define new macro.
69865         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
69866
69867 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69868
69869         [BZ #13954]
69870         [BZ #13955]
69871         [BZ #13956]
69872         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
69873         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
69874         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
69875         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
69876         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
69877         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
69878         * math/libm-test.inc (logb_test) : Additional logb tests.
69879
69880 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
69881             Andreas Jaeger  <aj@suse.de>
69882
69883         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
69884         * configure: Regenerated.
69885         * config.h.in (LINK_OBSOLETE_RPC): New macro.
69886         * config.make.in (link-obsolete-rpc): New substituted variable.
69887         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
69888         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
69889         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69890         (shared-only-routines): Don't set it under [link-obsolete-rpc],
69891         so that libc.a contains the symbols.
69892         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69893         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
69894         * sunrpc/auth_none.c: Likewise.
69895         * sunrpc/auth_unix.c: Likewise.
69896         * sunrpc/authdes_prot.c: Likewise.
69897         * sunrpc/authuxprot.c: Likewise.
69898         * sunrpc/clnt_gen.c: Likewise.
69899         * sunrpc/clnt_perr.c: Likewise.
69900         * sunrpc/clnt_raw.c: Likewise.
69901         * sunrpc/clnt_simp.c: Likewise.
69902         * sunrpc/clnt_tcp.c: Likewise.
69903         * sunrpc/clnt_udp.c: Likewise.
69904         * sunrpc/clnt_unix.c: Likewise.
69905         * sunrpc/des_crypt.c: Likewise.
69906         * sunrpc/des_soft.c: Likewise.
69907         * sunrpc/get_myaddr.c: Likewise.
69908         * sunrpc/key_call.c: Likewise.
69909         * sunrpc/key_prot.c: Likewise.
69910         * sunrpc/netname.c: Likewise.
69911         * sunrpc/pm_getmaps.c: Likewise.
69912         * sunrpc/pm_getport.c: Likewise.
69913         * sunrpc/pmap_clnt.c: Likewise.
69914         * sunrpc/pmap_prot.c: Likewise.
69915         * sunrpc/pmap_prot2.c: Likewise.
69916         * sunrpc/pmap_rmt.c: Likewise.
69917         * sunrpc/publickey.c: Likewise.
69918         * sunrpc/rpc_cmsg.c: Likewise.
69919         * sunrpc/rpc_common.c: Likewise.
69920         * sunrpc/rpc_dtable.c: Likewise.
69921         * sunrpc/rpc_prot.c: Likewise.
69922         * sunrpc/rpc_thread.c: Likewise.
69923         * sunrpc/rtime.c: Likewise.
69924         * sunrpc/svc.c: Likewise.
69925         * sunrpc/svc_auth.c: Likewise.
69926         * sunrpc/svc_raw.c: Likewise.
69927         * sunrpc/svc_run.c: Likewise.
69928         * sunrpc/svc_tcp.c: Likewise.
69929         * sunrpc/svc_udp.c: Likewise.
69930         * sunrpc/svc_unix.c: Likewise.
69931         * sunrpc/svcauth_des.c: Likewise.
69932         * sunrpc/xcrypt.c: Likewise.
69933         * sunrpc/xdr.c: Likewise.
69934         * sunrpc/xdr_array.c: Likewise.
69935         * sunrpc/xdr_float.c: Likewise.
69936         * sunrpc/xdr_intXX_t.c: Likewise.
69937         * sunrpc/xdr_mem.c: Likewise.
69938         * sunrpc/xdr_rec.c: Likewise.
69939         * sunrpc/xdr_ref.c: Likewise.
69940         * sunrpc/xdr_sizeof.c: Likewise.
69941         * sunrpc/xdr_stdio.c: Likewise.
69942
69943 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69944
69945         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
69946         change.  Update copyright years.
69947
69948 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69949
69950         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
69951
69952 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
69953             Joseph Myers  <joseph@codesourcery.com>
69954             Paul Pluzhnikov  <ppluzhnikov@google.com>
69955
69956         [BZ #14012]
69957         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
69958         requiring rpcgen.
69959         [cross-compiling] (extra-libs): Likewise.
69960         [cross-compiling] (extra-libs-others): Likewise.
69961         [cross-compiling] (librpcsvc-routines): Likewise.
69962         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
69963         [cross-compiling] (omit-deps): Likewise.
69964         (sunrpc-CPPFLAGS): New variable.
69965         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
69966         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
69967         (cross-rpcgen-objs): New variable.
69968         (extra-objs): Append $(cross-rpcgen-objs).
69969         ($(cross-rpcgen-objs)): New rule.
69970         ($(objpfx)cross-rpcgen): Likewise.
69971         (rpcgen-cmd): Define to use $(built-program-file).  Expand
69972         comment.
69973         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
69974         ($(objpfx)x%.stmp): Likewise.
69975         * sunrpc/proto.h [IS_IN_build] (_): Define.
69976         [IS_IN_build] (_libc_intl_domainname): Likewise.
69977
69978 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69979
69980         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
69981         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
69982         and R_X86_64_TPOFF64.
69983
69984 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69985
69986         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
69987         sysdeps/unix/sysv/syscalls.list.
69988         (stime): Likewise.
69989         (utime): Likewise.
69990         * sysdeps/unix/sysv/syscalls.list: Remove file.
69991
69992 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69993
69994         [BZ #3440]
69995         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
69996         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
69997         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
69998         (__LC_IDENTIFICATION): Make these macros useful in #if
69999         expressions, as required by C99.
70000
70001 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
70002
70003         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
70004         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
70005         after this.
70006
70007 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
70008
70009         * stdlib/longlong.h: Updated from GCC.
70010
70011 2012-05-09  Andreas Jaeger  <aj@suse.de>
70012
70013         * nscd/nscd.c (run_modes): Make named enum, reorder so that
70014         default is first entry.
70015         (run_mode): Set type.
70016         (main): Remove informal message about syslog.
70017         (options): Fix typo.
70018
70019         [BZ #14053]
70020         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
70021         to asm.
70022         (lrint): Likewise.
70023         (llrintf): Likewise.
70024         (llrint): Likewise.
70025         (rint): Likewise.
70026         (rintf): Likewise.
70027         (nearbyint): Likewise.
70028         (nearbyintf): Likewise.
70029
70030 2012-05-09  Andreas Jaeger  <aj@suse.de>
70031             Pedro Alves  <palves@redhat.com>
70032
70033         * nscd/nscd.c (run_mode): Use enum.
70034         (main): Cleanup coding style issue.
70035
70036 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
70037             Andreas Jaeger  <aj@suse.de>
70038
70039         * nscd/nscd.c (go_background): Replaced with...
70040         (run_mode): ... this.
70041         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
70042         (options): Add -F --foreground.
70043         (main): Implement it.
70044         (parse_opt): Parse it.
70045
70046 2012-05-09  Andreas Jaeger  <aj@suse.de>
70047
70048         [BZ #14083]
70049         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
70050         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
70051         -Wconversion warning.
70052         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
70053         Likewise.
70054
70055 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
70056
70057         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
70058         == 0.
70059         (LC_ALL): Use macro-int-constant.
70060         (LC_COLLATE): Likewise.
70061         (LC_CTYPE): Likewise.
70062         (LC_MESSAGES): Likewise.
70063         (LC_MONETARY): Likewise.
70064         (LC_NUMERIC): Likewise.
70065         (LC_TIME): Likewise.
70066         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
70067         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70068         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70069         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
70070         Specify type.
70071         [C99-based standards] (float_t): Expect type.
70072         [C99-based standards] (double_t): Expect type.
70073         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
70074         type.
70075         [C99-based standards] (HUGE_VALL): Likewise.
70076         [C99-based standards] (INFINITY): Likewise.
70077         [C99-based standards] (NAN): Likewise.
70078         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
70079         [C99-based standards] (FP_NAN): Likewise.
70080         [C99-based standards] (FP_NORMAL): Likewise.
70081         [C99-based standards] (FP_SUBNORMAL): Likewise.
70082         [C99-based standards] (FP_ZERO): Likewise.
70083         [C99-based standards] (FP_FAST_FMA): Use
70084         optional-macro-int-constant.  Specify type.  Require == 1.
70085         [C99-based standards] (FP_FAST_FMAF): Likewise.
70086         [C99-based standards] (FP_FAST_FMAL): Likewise.
70087         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
70088         [C99-based standards] (FP_ILOGBNAN): Likewise.
70089         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
70090         Specify type.
70091         [C99-based standards] (MATH_ERREXCEPT): Likewise.
70092         [C99-based standards] (math_errhandling): Specify type.
70093         [ISO99 || ISO11] (signgam): Do not allow.
70094         [non-C99-based standards] (copysignf): Do not allow.
70095         [non-C99-based standards] (exp2f): Likewise.
70096         [non-C99-based standards] (log2f): Likewise.
70097         [non-C99-based standards] (modff): Allow.
70098         [non-C99-based standards] (erff): Do not allow.
70099         [non-C99-based standards] (erfcf): Likewise.
70100         [non-C99-based standards] (gammaf): Likewise.
70101         [non-C99-based standards] (hypotf): Likewise.
70102         [non-C99-based standards] (j0f): Likewise.
70103         [non-C99-based standards] (j1f): Likewise.
70104         [non-C99-based standards] (jnf): Likewise.
70105         [non-C99-based standards] (lgammaf): Likewise.
70106         [non-C99-based standards] (tgammaf): Likewise.
70107         [non-C99-based standards] (y0f): Likewise.
70108         [non-C99-based standards] (y1f): Likewise.
70109         [non-C99-based standards] (ynf): Likewise.
70110         [non-C99-based standards] (isnanf): Likewise.
70111         [non-C99-based standards] (acoshf): Likewise.
70112         [non-C99-based standards] (asinhf): Likewise.
70113         [non-C99-based standards] (atanhf): Likewise.
70114         [non-C99-based standards] (cbrtf): Likewise.
70115         [non-C99-based standards] (expm1f): Likewise.
70116         [non-C99-based standards] (ilogbf): Likewise.
70117         [non-C99-based standards] (log1pf): Likewise.
70118         [non-C99-based standards] (logbf): Likewise.
70119         [non-C99-based standards] (nextafterf): Likewise.
70120         [non-C99-based standards] (remainderf): Likewise.
70121         [non-C99-based standards] (rintf): Likewise.
70122         [non-C99-based standards] (scalbf): Likewise.
70123         [non-C99-based standards] (copysignl): Likewise.
70124         [non-C99-based standards] (exp2l): Likewise.
70125         [non-C99-based standards] (log2l): Likewise.
70126         [non-C99-based standards] (modfl): Allow.
70127         [non-C99-based standards] (erfl): Do not allow.
70128         [non-C99-based standards] (erfcl): Likewise.
70129         [non-C99-based standards] (gammal): Likewise.
70130         [non-C99-based standards] (hypotl): Likewise.
70131         [non-C99-based standards] (j0l): Likewise.
70132         [non-C99-based standards] (j1l): Likewise.
70133         [non-C99-based standards] (jnl): Likewise.
70134         [non-C99-based standards] (lgammal): Likewise.
70135         [non-C99-based standards] (tgammal): Likewise.
70136         [non-C99-based standards] (y0l): Likewise.
70137         [non-C99-based standards] (y1l): Likewise.
70138         [non-C99-based standards] (ynl): Likewise.
70139         [non-C99-based standards] (isnanl): Likewise.
70140         [non-C99-based standards] (acoshl): Likewise.
70141         [non-C99-based standards] (asinhl): Likewise.
70142         [non-C99-based standards] (atanhl): Likewise.
70143         [non-C99-based standards] (cbrtl): Likewise.
70144         [non-C99-based standards] (expm1l): Likewise.
70145         [non-C99-based standards] (ilogbl): Likewise.
70146         [non-C99-based standards] (log1pl): Likewise.
70147         [non-C99-based standards] (logbl): Likewise.
70148         [non-C99-based standards] (nextafterl): Likewise.
70149         [non-C99-based standards] (remainderl): Likewise.
70150         [non-C99-based standards] (rintl): Likewise.
70151         [non-C99-based standards] (scalbl): Likewise.
70152         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70153         [non-C99-based standards] (FP_*): Do not allow.
70154         [C99-based standards] (FP_*): Change to
70155         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70156         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70157         allow.
70158         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
70159         (SIG_ERR): Likewise.
70160         [X/Open-based standards] (SIG_HOLD): Likewise.
70161         (SIG_IGN): Likewise.
70162         (SIGABRT): Use macro-int-constant.  Specify type.  Require
70163         positive value.
70164         (SIGFPE): Likewise.
70165         (SIGILL): Likewise.
70166         (SIGINT): Likewise.
70167         (SIGSEGV): Likewise.
70168         (SIGTER): Likewise.
70169         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
70170         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
70171         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
70172         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
70173         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
70174         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
70175         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
70176         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
70177         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
70178         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
70179         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
70180         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
70181         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
70182         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
70183         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
70184         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
70185         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
70186         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
70187         [X/Open-based standards] (SIGTRAP): Likewise.
70188         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
70189         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
70190         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
70191         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
70192         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70193         allow.
70194
70195 2012-05-08  Ian Wienand  <ianw@vmware.com>
70196
70197         [BZ #14080]
70198         * time/tzset.c (__tzset_parse_tz): Update default rules for
70199         daylight time changes in the Energy Policy Act of 2005.
70200
70201 2012-05-09  Andreas Jaeger  <aj@suse.de>
70202
70203         [BZ #13983]
70204         * elf/ldconfig.c (parse_conf): Change string to make clear that
70205         ldconfig only issued a warning if ld.so.conf does not exist.
70206
70207 2012-05-08  David S. Miller  <davem@davemloft.net>
70208
70209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
70210         movxtod instead of popping the value on the stack.
70211
70212         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70213
70214 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
70215
70216         * config.h.in: Add HAVE_ARM_PCS_VFP.
70217
70218 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
70219
70220         [BZ #13979]
70221         * include/features.h: Warn if user requests __FORTIFY_SOURCE
70222         checking but the checks are disabled for any reason.
70223
70224 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
70225
70226         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
70227         and ELF64_R_TYPE with ELFW(R_TYPE).
70228
70229 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
70230
70231         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
70232         (ulimit): Likewise.
70233
70234         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
70235         (settimeofday): Likewise.
70236
70237 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
70238
70239         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
70240         a struct th_u2 inside the union, and move tu_block/tu_code into
70241         a new th_u3 union of tu_block/tu_code inside of that.  Move
70242         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
70243         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
70244         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
70245         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
70246         (th_stuff): Change to th_u1.tu_stuff.
70247         (th_data): Define.
70248         (th_msg): Change to th_u1.th_u2.tu_data.
70249
70250 2012-05-07  David S. Miller  <davem@davemloft.net>
70251
70252         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70253
70254         [BZ #14074]
70255         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
70256         (SETUP_PIC_REG): Use it.
70257         (SETUP_PIC_REG_LEAF): Use it.
70258
70259 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
70260
70261         [BZ #13885]
70262         [BZ #13923]
70263         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70264         USE_AS_EXPM1L.
70265         (EXPL_FINITE): Likewise.
70266         (FLDLOG): Likewise.
70267         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70268         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70269         e_expl.S.
70270         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70271         USE_AS_EXPM1L.
70272         (EXPL_FINITE): Likewise.
70273         (FLDLOG): Likewise.
70274         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70275         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70276         e_expl.S.
70277         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
70278         test of -max_value argument for long double.
70279         * sysdeps/i386/fpu/libm-test-ulps: Update.
70280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70281
70282 2012-05-06  David S. Miller  <davem@davemloft.net>
70283
70284         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
70285         quad soft-float symbols whose references which are compiler
70286         generated.
70287         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
70288
70289 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
70290
70291         [BZ #13884]
70292         [BZ #13914]
70293         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70294         USE_AS_EXP10L.
70295         (EXPL_FINITE): Likewise.
70296         (FLDLOG): Likewise.
70297         (c0): Likewise.
70298         (c1): Likewise.
70299         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70300         Adjust comments for base varying.
70301         (__expl_finite): Change alias to EXPL_FINITE.
70302         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
70303         e_expl.S.
70304         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
70305         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
70306         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
70307         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
70308         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70309         USE_AS_EXP10L.
70310         (EXPL_FINITE): Likewise.
70311         (FLDLOG): Likewise.
70312         (c0): Likewise.
70313         (c1): Likewise.
70314         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70315         Adjust comments for base varying.
70316         (__expl_finite): Change alias to EXPL_FINITE.
70317         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
70318         tests for bugs.
70319         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70320
70321         [BZ #14064]
70322         * math/libm-test.inc (check_float_internal): Correct ulp
70323         calculation for subnormal expected results.
70324
70325 2012-05-06  Andreas Jaeger  <aj@suse.de>
70326
70327         * Makeconfig (+math-flags): New, set to -frounding-math.
70328         (+cflags): Add +math-flags so that all of glibc gets compiled with
70329         it.
70330
70331         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
70332
70333 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
70334
70335         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
70336         Disable one test.
70337
70338         [BZ #13787]
70339         [BZ #13922]
70340         [BZ #14036]
70341         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
70342         (__ieee754_expl): Allow for and saturate large arguments.
70343         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
70344         (u_threshold): Likewise.
70345         (__exp): Call __ieee754_exp before checking for overflow and
70346         underflow.
70347         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
70348         (u_threshold): Likewise.
70349         (__expf): Call __ieee754_expf before checking for overflow and
70350         underflow.
70351         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
70352         (u_threshold): Likewise.
70353         (__expl): Call __ieee754_expl before checking for overflow and
70354         underflow.
70355         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
70356         (__ieee754_expl): Allow for and saturate large arguments.
70357         * math/libm-test.inc (exp_test): Add another test.  Do not allow
70358         missing overflow exception on overflow.
70359         (expm1_test): Do not allow missing overflow exception on overflow.
70360
70361         * sysdeps/i386/fpu/e_expl.c: Move to ...
70362         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
70363         rather than using inline asm.
70364         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
70365         * sysdeps/x86_64/fpu/e_expl.S: Copy from
70366         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
70367
70368         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
70369         (nice): Likewise.
70370         (poll): Likewise.
70371         (signal): Likewise.
70372         (time): Likewise.
70373         (times): Likewise.
70374
70375 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70376
70377         * sysdeps/unix/syscalls.list (adjtime): Add entry from
70378         sysdeps/unix/common/syscalls.list.
70379         (fchmod): Likewise.
70380         (fchown): Likewise.
70381         (ftruncate): Likewise.
70382         (getrusage): Likewise.
70383         (gettimeofday): Likewise.
70384         (setpgid): Likewise.
70385         (setregid): Likewise.
70386         (setreuid): Likewise.
70387         (sigaction): Likewise.
70388         (truncate): Likewise.
70389         (vhangup): Likewise.
70390         * sysdeps/unix/common/syscalls.list: Remove file.
70391         * sysdeps/unix/bsd/Implies: Don't include unix/common.
70392         * sysdeps/unix/sysv/linux/Implies: Likewise.
70393
70394 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
70395
70396         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
70397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
70398         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
70399         Moved to ...
70400         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
70401         Here.
70402         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
70403         to ...
70404         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
70405         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
70406         to ...
70407         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
70408         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
70409         to ...
70410         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
70411         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
70412         to ...
70413         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
70414         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
70415         to ...
70416         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
70417         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
70418         to ...
70419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
70420         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
70421         to ...
70422         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
70423         Here.
70424         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
70425         to ...
70426         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
70427         Here.
70428         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
70429         to ...
70430         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
70431         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
70432         Moved to ...
70433         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
70434         Here.
70435         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
70436         to ...
70437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
70438
70439 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70440
70441         * sysdeps/unix/common/bits/dirent.h: Remove file.
70442         * sysdeps/unix/common/bits/fcntl.h: Likewise.
70443
70444         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
70445         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
70446         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
70447         * sysdeps/unix/bsd/isatty.c: Likewise.
70448         * sysdeps/unix/bsd/tcdrain.c: Likewise.
70449         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
70450         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
70451
70452 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70453
70454         [BZ #13563]
70455         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
70456         long double comparison inaccuracies.
70457         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
70458         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70459
70460 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
70461
70462         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
70463         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
70464
70465 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70466
70467         [BZ #14049]
70468         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
70469         nonzero digits before rounding a hex value.
70470         * stdlib/tst-strtod.c (tests): Add another test.
70471
70472 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70473
70474         * sysdeps/s390/fpu/libm-test-ulps: Update.
70475
70476 2012-05-03  Andreas Jaeger  <aj@suse.de>
70477
70478         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
70479         does not get optimized out.
70480         (malloc_opt_barrier): New.
70481
70482 2012-05-03  Andreas Jaeger  <aj@suse.de>
70483             Roland McGrath  <roland@hack.frob.com>
70484
70485         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
70486         intermediate file deletion.
70487         (generated): Add .symlist files.
70488
70489 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
70490
70491         [BZ #13775]
70492         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70493         Redirect under this condition.
70494         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70495         [__USE_GNU] (__dprintf_chk): Not under this condition.
70496         [__USE_GNU] (__vdprintf_chk): Likewise.
70497         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
70498         under this condition.
70499         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70500         [__USE_XOPEN2K8] (dprintf): Define under this condition.
70501         [__USE_XOPEN2K8] (vdprintf): Likewise.
70502         [__USE_GNU] (__dprintf_chk): Not under this condition.
70503         [__USE_GNU] (__vdprintf_chk): Likewise.
70504         [__USE_GNU] (dprintf): Likewise.
70505         [__USE_GNU] (vdprintf): Likewise.
70506
70507 2012-05-03  Roland McGrath  <roland@hack.frob.com>
70508
70509         * elf/Makefile (common-generated): Set this instead of generated for
70510         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
70511         $(all-built-dso)-derived lists.
70512
70513 2012-05-03  Andreas Jaeger  <aj@suse.de>
70514
70515         * sysdeps/i386/fpu/libm-test-ulps: Update.
70516
70517         * FAQ: Removed.
70518         * FAQ.in: Likewise.
70519         * scripts/gen-FAQ.pl: Likewise.
70520         * manual/install.texi (Installation): Point to online location of
70521         FAQ.
70522         * Makefile (files-for-dist): Remove FAQ.
70523         (FAQ): Remove.
70524
70525 2012-05-02  Allan McRae  <allan@archlinux.org>
70526
70527         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
70528         (LDFLAGS-reldepmod5.so): Likewise.
70529         (LDFLAGS-reldep6mod1.so): Likewise.
70530         (LDFLAGS-reldep6mod4.so): Likewise.
70531         (LDFLAGS-reldep8mod3.so): Likewise.
70532         (LDFLAGS-unload4mod1.so): Likewise.
70533         (LDFLAGS-unload4mod2.so): Likewise.
70534         (LDFLAGS-tst-initorder): Likewise.
70535         (LDFLAGS-tst-initordera2.so): Likewise.
70536         (LDFLAGS-tst-initordera3.so): Likewise.
70537         (LDFLAGS-tst-initordera4.so): Likewise.
70538         (LDFLAGS-tst-initorderb2.so): Likewise.
70539         (LDFLAGS-noload): Likewise.
70540         (LDFLAGS-next): Likewise.
70541         (LDFLAGS-order2mod1.so): Likewise.
70542         (LDFLAGS-order2mod2.so): Likewise.
70543         (LDFLAGS-tst-initorder2): Likewise.
70544         (LDFLAGS-tst-initorder2a.so): Likewise.
70545         (LDFLAGS-tst-initorder2b.so): Likewise.
70546         (LDFLAGS-tst-initorder2c.so): Likewise.
70547         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
70548
70549 2012-05-02  David S. Miller  <davem@davemloft.net>
70550
70551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70552
70553 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
70554
70555         [BZ #14055]
70556         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
70557
70558 2012-05-02  Andreas Jaeger  <aj@suse.de>
70559
70560         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
70561         since we manipulate rounding mode.
70562         (CPPFLAGS-test-idouble.c): Likewise.
70563         (CPPFLAGS-test-ifloat.c): Likewise.
70564         (CFLAGS-test-ldouble.c): Likewise.
70565         (CFLAGS-test-double.c): Likewise.
70566         (CFLAGS-test-float.c): Likewise.
70567         (CFLAGS-test-misc.c): Likewise.
70568         (CFLAGS-test-test-fenv.c): Likewise.
70569
70570 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70571
70572         [BZ #2550]
70573         [BZ #2570]
70574         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
70575         comparisons to determine direction to adjust input.
70576
70577 2012-05-01  Roland McGrath  <roland@hack.frob.com>
70578
70579         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
70580         output to the target.
70581
70582         * scripts/localplt.awk: New file.
70583         * elf/Makefile ($(objpfx)check-localplt): Target removed.
70584         (check-localplt-CFLAGS): Variable removed.
70585         ($(all-built-dso:=.jmprel)): New static pattern rule.
70586         (generated): Add those targets.
70587         (localplt-built-dso): New variable.
70588         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
70589
70590         * elf/check-localplt.c: File removed.
70591
70592         * scripts/check-execstack.awk: New file.
70593         * elf/Makefile ($(objpfx)check-execstack): Target removed.
70594         (check-execstack-CFLAGS): Variable removed.
70595         ($(objpfx)check-execstack.h): Target removed.
70596         ($(objpfx)execstack-default): New target.
70597         (generated): Add that instead of check-execstack.h.
70598         ($(all-built-dso:=.phdr)): New static pattern rule.
70599         (generated): Add those targets.
70600         * elf/check-execstack.c: File removed.
70601
70602         * scripts/check-textrel.awk: New file.
70603         * elf/Makefile ($(objpfx)check-textrel): Target removed.
70604         (check-textrel-CFLAGS): Variable removed.
70605         (all-built-dso): Use := to define.o
70606         ($(all-built-dso:=.dyn)): New static pattern rule.
70607         (generated): Add those targets.
70608         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
70609         * config.make.in (READELF): New substituted variable.
70610         * elf/check-textrel.c: File removed.
70611
70612 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70613
70614         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70615         allow.
70616         * conform/data/ctype.h-data [C99-based standards] (isblank):
70617         Expect function.
70618         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
70619         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
70620         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70621         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
70622         Specify type.  Require positive value.
70623         (EILSEQ): Likewise.
70624         (ERANGE): Likewise.
70625         [ISO || POSIX] (EILSEQ): Do not expect.
70626         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
70627         Specify type.  Require positive value.
70628         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
70629         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
70630         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
70631         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
70632         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
70633         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
70634         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
70635         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
70636         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
70637         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
70638         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
70639         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
70640         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
70641         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
70642         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
70643         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
70644         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
70645         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
70646         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
70647         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
70648         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
70649         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
70650         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
70651         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
70652         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
70653         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
70654         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
70655         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
70656         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
70657         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
70658         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
70659         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
70660         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
70661         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
70662         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
70663         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
70664         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
70665         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
70666         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
70667         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
70668         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
70669         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
70670         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
70671         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
70672         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
70673         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
70674         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
70675         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
70676         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
70677         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
70678         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
70679         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
70680         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
70681         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
70682         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
70683         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
70684         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
70685         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
70686         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
70687         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
70688         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
70689         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
70690         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
70691         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
70692         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
70693         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
70694         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
70695         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
70696         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
70697         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
70698         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
70699         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
70700         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
70701         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
70702         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
70703         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
70704         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
70705         Require >= 2.
70706         (FLT_ROUNDS): Expect as macro, not constant.
70707         (FLT_MANT_DIG): Use macro-int-constant.
70708         (DBL_MANT_DIG): Likewise.
70709         (LDBL_MANT_DIG): Likewise.
70710         (FLT_DIG): Likewise.
70711         (DBL_DIG): Likewise.
70712         (LDBL_DIG): Likewise.
70713         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
70714         (DBL_MIN_EXP): Likewise.
70715         (LDBL_MIN_EXP): Likewise.
70716         (FLT_MAX_EXP): Use macro-int-constant.
70717         (DBL_MAX_EXP): Likewise.
70718         (LDBL_MAX_EXP): Likewise.
70719         (FLT_MAX_10_EXP): Likewise.
70720         (DBL_MAX_10_EXP): Likewise.
70721         (LDBL_MAX_10_EXP): Likewise.
70722         (FLT_MAX): Use macro-constant.
70723         (DBL_MAX): Likewise.
70724         (LDBL_MAX): Likewise.
70725         (FLT_EPSILON): Use macro-constant.  Give upper bound.
70726         (DBL_EPSILON): Likewise.
70727         (LDBL_EPSILON): Likewise.
70728         (FLT_MIN): Likewise.
70729         (DBL_MIN): Likewise.
70730         (LDBL_MIN): Likewise.
70731         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
70732         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
70733         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
70734         [ISO11] (FLT_HAS_SUBNORM): Likewise.
70735         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
70736         [ISO11] (DBL_DECIMAL_DIG): Likewise.
70737         [ISO11] (FLT_DECIMAL_DIG): Likewise.
70738         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
70739         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
70740         [ISO11] (FLT_TRUE_MIN): Likewise.
70741         [ISO11] (LDBL_TRUE_MIN): Likewise.
70742         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70743         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
70744         (SCHAR_MIN): Use macro-int-constant.  Specify type.
70745         (SCHAR_MAX): Likewise.
70746         (UCHAR_MAX): Likewise.
70747         (CHAR_MIN): Likewise.
70748         (CHAR_MAX): Likewise.
70749         (MB_LEN_MAX): Use macro-int-constant.
70750         (SHRT_MIN): Use macro-int-constant.  Specify type.
70751         (SHRT_MAX): Likewise.
70752         (USHRT_MAX): Likewise.
70753         (INT_MAX): Likewise.
70754         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
70755         bound negative.
70756         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70757         bound with "U".
70758         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70759         bound with "L".
70760         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
70761         bound negative.  Suffix upper bound with "L".
70762         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70763         bound with "UL".
70764         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
70765         Specify type.
70766         [C99-based standards] (LLONG_MAX): Likewise.
70767         [C99-based standards] (ULLONG_MAX): Likewise.
70768         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
70769         == 0.
70770         [ISO11] (max_align_t): Require type.
70771         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70772
70773         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
70774         from $CFLAGS, without defining away __attribute__ calls.
70775         (checknamespace): Use $CFLAGS_namespace.
70776
70777         * conform/conformtest.pl (@keywords): Only include C99 keywords
70778         for standards based on C99 or C11.
70779
70780         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
70781         Disable tests.
70782         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
70783         UNIX98]: Likewise.
70784
70785         * conform/conformtest.pl: Handle "macro-int-constant" and test for
70786         usability of symbols in #if.
70787
70788         * conform/conformtest.pl: If macro or constant types start
70789         "promoted:", expect the symbol to be of the following type
70790         promoted by the integer promotions.
70791
70792         * conform/conformtest.pl: Parse all "constant" and "macro" lines
70793         in one place.  Also handle "macro-constant".
70794
70795         * conform/conformtest.pl: Only accept expected macro values with
70796         "==".  Parse all "macro" lines in one place.
70797         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
70798
70799         * conform/conformtest.pl: Handle braced types on "constant" lines
70800         instead of handling "typed-constant".
70801         * conform/data/signal.h-data: Use "constant" instead of
70802         "typed-constant".
70803
70804         * conform/conformtest.pl: Handle "optional-" at start of lines in
70805         one place rather than duplicating several cases.  Handle each
70806         format of "macro" line with initial "optional-".
70807
70808         * conform/conformtest.pl: Only accept expected constant or
70809         optional-constant values with "==".  Parse all "constant" lines in
70810         one place.  Parse all "optional-constant" lines in one place.
70811         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
70812         * conform/data/fmtmsg.h-data: Likewise.
70813         * conform/data/netinet/in.h-data: Likewise.
70814         * conform/data/tar.h-data: Likewise.
70815         * conform/data/limits.h-data: Use "==" form on "constant" and
70816         "optional-constant" lines.
70817
70818         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
70819         Use -std=c99 for XOPEN2K.
70820         (@knownproblems): Remove.
70821         (newtoken): Don't check %isknown.
70822
70823         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
70824         Do not expect macro.
70825         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
70826         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
70827         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
70828         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
70829         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
70830         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
70831         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
70832         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
70833         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
70834         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
70835         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
70836         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
70837         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
70838         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
70839         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
70840         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
70841         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
70842         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
70843         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
70844         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
70845         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
70846         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
70847         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
70848         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
70849         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
70850         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
70851         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
70852         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
70853         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
70854         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
70855         [XPG3] (acosh): Likewise.
70856         [XPG3] (asinh): Likewise.
70857         [XPG3] (atanh): Likewise.
70858         [XPG3] (cbrt): Likewise.
70859         [XPG3] (expm1): Likewise.
70860         [XPG3] (ilogb): Likewise.
70861         [XPG3] (log1p): Likewise.
70862         [XPG3] (logb): Likewise.
70863         [XPG3] (nextafter): Likewise.
70864         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
70865         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
70866         [XPG3] (remainder): Likewise.
70867         [XPG3] (rint): Likewise.
70868         [XPG3 || XPG4 || UNIX98] (round): Likewise.
70869         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
70870         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
70871         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
70872         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
70873         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
70874         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
70875         [UNIX98 || XOPEN2K] (scalb): Expect.
70876         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
70877         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
70878         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
70879         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
70880         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
70881         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
70882         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
70883         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
70884         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
70885         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
70886         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
70887         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
70888         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
70889         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
70890         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
70891         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
70892         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
70893         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
70894         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
70895         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
70896         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
70897         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
70898         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
70899         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
70900         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
70901         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
70902         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
70903         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
70904         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
70905         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
70906         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
70907         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
70908         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
70909         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
70910         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
70911         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
70912         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
70913         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
70914         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
70915         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
70916         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
70917         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
70918         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
70919         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
70920         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
70921         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
70922         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
70923         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
70924         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
70925         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
70926         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
70927         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
70928         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
70929         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
70930         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
70931         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
70932         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
70933         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
70934         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
70935         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
70936         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
70937         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
70938         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
70939         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
70940         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
70941         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
70942         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
70943         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
70944         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
70945         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
70946         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
70947         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
70948         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
70949         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
70950         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
70951         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
70952         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
70953         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
70954         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
70955         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
70956         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
70957         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
70958         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
70959         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
70960         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
70961         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
70962         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
70963         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
70964         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
70965         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
70966         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
70967         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
70968         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
70969         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
70970         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
70971         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
70972         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
70973         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
70974         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
70975         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
70976         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
70977         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
70978         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
70979         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
70980         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
70981         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
70982         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
70983         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
70984         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
70985         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
70986         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
70987         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
70988         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
70989         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
70990         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
70991         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
70992         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
70993         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
70994         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
70995         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
70996         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
70997         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
70998         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
70999         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
71000         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
71001         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
71002         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
71003         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
71004         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
71005         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
71006         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
71007         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
71008         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
71009         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
71010         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
71011         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
71012         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
71013
71014         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
71015         _XOPEN_SOURCE_EXTENDED for XPG4.
71016
71017         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
71018
71019         * Makeconfig (localtime): Remove variable.
71020         (inst_localtime-file): Likewise.
71021
71022 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71023
71024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
71025         Update.
71026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
71027         Update.
71028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
71029         Update.
71030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
71031         Update.
71032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
71033         Update.
71034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
71035         Update.
71036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
71037         Update.
71038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
71039         Update.
71040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71041         Update.
71042
71043 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
71044
71045         [BZ #2550]
71046         [BZ #2570]
71047         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
71048         comparisons to determine direction to adjust input.
71049         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
71050         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
71051         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
71052         Likewise.
71053         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
71054         Likewise.
71055         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
71056         Likewise.
71057         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
71058         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
71059         Likewise.
71060         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
71061         Likewise.
71062         * math/libm-test.inc (nexttoward_test): Add more tests.
71063
71064 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71065
71066         [BZ #14040]
71067         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
71068         in version GLIBC_2.1, not GLIBC_2.0.
71069         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
71070         Likewise.
71071
71072 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
71073
71074         [BZ #13942]
71075         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
71076         (1 - x) * (1 + x).
71077         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71078         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
71079         * math/libm-test.inc (acos_test): Add more tests.
71080         (asin_test): Likewise.
71081         * sysdeps/i386/fpu/libm-test-ulps: Update.
71082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71083
71084         [BZ #14034]
71085         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
71086         of square root.
71087         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
71088         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71089         * math/libm-test.inc (acos_test_tonearest): New function.
71090         (acos_test_towardzero): Likewise.
71091         (acos_test_downward): Likewise.
71092         (acos_test_upward): Likewise.
71093         (asin_test_tonearest): Likewise.
71094         (asin_test_towardzero): Likewise.
71095         (asin_test_downward): Likewise.
71096         (asin_test_upward): Likewise.
71097         (main): Call the new functions.
71098         * sysdeps/i386/fpu/libm-test-ulps: Update.
71099         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71100
71101         [BZ #13884]
71102         [BZ #13924]
71103         * math/e_exp10.c: Include <float.h>.
71104         (__ieee754_exp10): Handle underflow here rather than multiplying
71105         large negative argument by M_LN10.
71106         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
71107         of __ieee754_expf.
71108         * math/e_exp10l.c: Include <float.h>.
71109         (__ieee754_exp10l): Handle underflow here rather than multiplying
71110         large negative argument by M_LN10l.
71111         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
71112         spurious overflow exception on underflow.
71113
71114 2012-04-29  Marek Polacek  <polacek@redhat.com>
71115
71116         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
71117         (__fortify_function): New macro.
71118         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
71119         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
71120         __extern_always_inline.
71121         * libio/bits/stdio2.h: Likewise.
71122         * libio/bits/stdio.h: Likewise.
71123         * string/string.h: Likewise.
71124         * string/bits/string3.h: Likewise.
71125         * include/stdio.h: Likewise.
71126         * stdlib/bits/stdlib.h: Likewise.
71127         * stdlib/stdlib.h: Likewise.
71128         * rt/bits/mqueue2.h: Likewise.
71129         * rt/mqueue.h: Likewise.
71130         * posix/bits/unistd.h: Likewise.
71131         * posix/unistd.h: Likewise.
71132         * io/bits/poll2.h: Likewise.
71133         * io/bits/fcntl2.h: Likewise.
71134         * io/fcntl.h: Likewise.
71135         * io/sys/poll.h: Likewise.
71136         * misc/bits/syslog.h: Likewise.
71137         * misc/bits/syslog-ldbl.h: Likewise.
71138         * misc/sys/syslog.h: Likewise.
71139         * socket/bits/socket2.h: Likewise.
71140         * socket/sys/socket.h: Likewise.
71141         * debug/tst-chk1.c: Likewise.
71142         * wcsmbs/bits/wchar2.h: Likewise.
71143         * wcsmbs/bits/wchar-ldbl.h: Likewise.
71144         * wcsmbs/wchar.h: Likewise.
71145
71146 2012-04-29  Andreas Jaeger  <aj@suse.de>
71147
71148         * Makerules (tests): Remove enable-check-abi protection.
71149         (check-abi-warn): Remove.
71150         (check-abi-%): Remove check-abi-warn usage.
71151
71152         * configure.in: Remove check-abi configure option.
71153         * configure: Regenerated.
71154         * config.make.in (enable-check-abi): Remove.
71155
71156 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
71157
71158         [BZ #14033]
71159         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
71160         double functions to double *_finite functions.
71161
71162         [BZ #13941]
71163         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
71164         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
71165         LDBL_MIN_EXP.
71166         * stdio-common/Makefile (tests): Add tst-sprintf3.
71167         * stdio-common/tst-sprintf3.c: New file.
71168
71169         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
71170         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
71171
71172 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71173
71174         * conform/conformtest.pl: Remove duplicate typed-constant
71175         handling.
71176
71177 2012-04-28  David S. Miller  <davem@davemloft.net>
71178
71179         * Makerules (%.abilist): Add vpath on sysdep_dirs.
71180         (check-abi-%): Remove AWK script prerequisite and explicit
71181         abilist directory.
71182         (check-abi): Rewrite to just diff the symlist with the abilist.
71183         (config-tls, config-abi-config): Delete, no longer used.
71184         (update-abi-%): Remove AWK script and explicit abilist directory.
71185         (update-abi): Rewrite to simply compare and conditionally copy the
71186         symlist and the sysdep abilist file.  Remove update-abi-config
71187         checks.
71188         * abilist/ld.abilist: Remove.
71189         * abilist/libBrokenLocale.abilist: Remove.
71190         * abilist/libanl.abilist: Remove.
71191         * abilist/libcrypt.abilist: Remove.
71192         * abilist/libdl.abilist: Remove.
71193         * abilist/librt.abilist: Remove.
71194         * abilist/libthread_db.abilist: Remove.
71195         * abilist/libutil.abilist: Remove.
71196         * scripts/extract-abilist.awk: Remove.
71197         * scripts/merge-abilist.awk: Remove.
71198         * sysdeps/generic/libcidn.abilist: New file.
71199         * sysdeps/generic/libnss_compat.abilist: New file.
71200         * sysdeps/generic/libnss_db.abilist: New file.
71201         * sysdeps/generic/libnss_dns.abilist: New file.
71202         * sysdeps/generic/libnss_files.abilist: New file.
71203         * sysdeps/generic/libnss_hesiod.abilist: New file.
71204         * sysdeps/generic/libnss_nis.abilist: New file.
71205         * sysdeps/generic/libnss_nisplus.abilist: New file.
71206         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
71207         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
71208         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
71209         file.
71210         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
71211         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
71212         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
71213         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
71214         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
71215         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
71216         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
71217         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
71218         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
71219         file.
71220         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
71221         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
71222         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
71223         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
71224         file.
71225         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
71226         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
71227         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
71228         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
71229         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
71230         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
71231         file.
71232         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
71233         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
71234         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
71235         file.
71236         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
71237         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
71238         New file.
71239         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
71240         New file.
71241         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
71242         New file.
71243         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
71244         New file.
71245         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
71246         New file.
71247         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
71248         New file.
71249         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
71250         New file.
71251         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
71252         New file.
71253         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
71254         New file.
71255         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
71256         New file.
71257         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
71258         New file.
71259         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
71260         New file.
71261         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
71262         New file.
71263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
71264         file.
71265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
71266         New file.
71267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
71268         New file.
71269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
71270         file.
71271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
71272         New file.
71273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
71274         New file.
71275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
71276         file.
71277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
71278         New file.
71279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71280         New file.
71281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
71282         New file.
71283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
71284         New file.
71285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
71286         New file.
71287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
71288         New file.
71289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
71290         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
71291         file.
71292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
71293         New file.
71294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
71295         file.
71296         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
71297         file.
71298         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
71299         file.
71300         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
71301         file.
71302         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
71303         file.
71304         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
71305         New file.
71306         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
71307         file.
71308         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
71309         file.
71310         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
71311         New file.
71312         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
71313         file.
71314         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
71315         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
71316         file.
71317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
71318         New file.
71319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
71320         file.
71321         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
71322         file.
71323         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
71324         file.
71325         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
71326         file.
71327         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
71328         file.
71329         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
71330         New file.
71331         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
71332         file.
71333         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
71334         file.
71335         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
71336         New file.
71337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
71338         file.
71339         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
71340         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
71341         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
71342         file.
71343         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
71344         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
71345         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
71346         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
71347         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
71348         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
71349         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
71350         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
71351         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
71352         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
71353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
71354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
71355         file.
71356         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
71357         New file.
71358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
71359         file.
71360         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
71361         file.
71362         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
71363         file.
71364         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
71365         file.
71366         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
71367         file.
71368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
71369         New file.
71370         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
71371         New file.
71372         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
71373         file.
71374         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
71375         New file.
71376         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
71377         file.
71378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
71379         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
71380         file.
71381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
71382         New file.
71383         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
71384         file.
71385         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
71386         file.
71387         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
71388         file.
71389         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
71390         file.
71391         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
71392         file.
71393         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
71394         New file.
71395         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
71396         New file.
71397         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
71398         file.
71399         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
71400         New file.
71401         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
71402         file.
71403
71404 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71405
71406         * conform/conformtest.pl: Fix typo in handling typed-constant from
71407         allow-header.
71408
71409 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71410
71411         * README: Cut down references to pre-2.6 Linux kernels and
71412         Linuxthreads.  Update lists of configurations in libc and ports
71413         and sort alphabetically.  Say "or newer" with Linux kernel version
71414         requirements.
71415
71416         * config.h.in [IS_IN_build]: Allow compiling without optimization.
71417
71418 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
71419
71420         [BZ #887]
71421         * math/libm-test.inc (logb_test_downward): New test to expose
71422         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
71423         rounding mode.
71424
71425 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71426
71427         [BZ #14027]
71428         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
71429         to be done.
71430         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
71431         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
71432
71433 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
71434
71435         * sysdeps/unix/i386/brk.S: Remove file.
71436         * sysdeps/unix/i386/dl-brk.S: Likewise.
71437         * sysdeps/unix/i386/pipe.S: Likewise.
71438         * sysdeps/unix/i386/sigreturn.S: Likewise.
71439         * sysdeps/unix/i386/syscall.S: Likewise.
71440         * sysdeps/unix/i386/vfork.S: Likewise.
71441         * sysdeps/unix/i386/wait.S: Likewise.
71442
71443         * sysdeps/unix/common/tcsendbrk.c: Move to ...
71444         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
71445
71446         * configure.in (arm*-none*): Do not allow without
71447         --enable-hacker-mode.
71448         (netbsd*): Remove case setting base_os.
71449         (386bsd*): Likewise.
71450         (freebsd*): Likewise.
71451         (bsdi*): Likewise.
71452         (osf*): Likewise.
71453         (sunos*): Likewise.
71454         (ultrix*): Likewise.
71455         (newsos*): Likewise.
71456         (dynix*): Likewise.
71457         (*bsd*): Likewise.
71458         (sysv*): Likewise.
71459         (isc*): Likewise.
71460         (esix*): Likewise.
71461         (sco*): Likewise.
71462         (minix*): Likewise.
71463         (irix4*): Likewise.
71464         (irix6*): Likewise.
71465         (solaris[2-9]*): Likewise.
71466         (none): Likewise.
71467         * configure: Regenerated.
71468
71469 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71470
71471         [BZ #11521]
71472         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
71473         overflow or cancellation in calculating denominator.
71474         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
71475         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
71476         down expression to avoid unexpected rounding in newer GCCs.
71477         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
71478
71479 2012-04-26  David S. Miller  <davem@davemloft.net>
71480
71481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
71482         long-double compat symbols.
71483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
71485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
71486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
71487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
71489         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
71490         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
71491         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
71492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
71493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
71494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
71495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71496
71497 2012-04-25  David S. Miller  <davem@davemloft.net>
71498
71499         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
71500         HWCAP_* values only after the memory barriers have been defined.
71501         (atomic_full_barrier): Define.
71502         (atomic_read_barrier): Define.
71503         (atomic_write_barrier): Define.
71504
71505 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
71506
71507         * shlib-versions: Add libgcc_s version information.
71508         * sysdeps/generic/libgcc_s.h: Remove.
71509         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
71510         libgcc_s.h.
71511         * sysdeps/gnu/unwind-resume.c: Likewise.
71512         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
71513
71514 2012-04-25  David S. Miller  <davem@davemloft.net>
71515
71516         * sysdeps/unix/sparc/brk.S: Delete.
71517         * sysdeps/unix/sparc/dl-brk.S: Delete.
71518         * sysdeps/unix/sparc/pipe.S: Delete.
71519         * sysdeps/unix/sparc/sysdep.S: Delete.
71520         * sysdeps/unix/sparc/sysdep.h: Delete.
71521         * sysdeps/unix/sparc/vfork.S: Delete.
71522         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
71523         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
71524         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
71525         (ret_ERRVAL, r0, r1, MOVE): Define.
71526         (JUMPTARGET): Remove.
71527         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
71528         sysdeps/unix/sparc/sysdep.h
71529         (ENTRY, END): Remove.
71530         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71531
71532 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
71533
71534         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
71535         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
71536         -DIS_IN_build.
71537
71538         * timezone/README: Update upstream location and email address for
71539         tzcode and tzdata.
71540         * timezone/zdump.c: Update from tzcode 2012b.
71541         * timezone/zic.c: Likewise.
71542
71543         * configure.in (libc_cv_as_needed): Remove test.
71544         * configure: Regenerated.
71545         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
71546         conditional definition.
71547         [$(have-as-needed) != yes] (no-as-needed): Likewise.
71548         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
71549         * config.make.in (have-as-needed): Remove variable.
71550
71551 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71552             Paul Pluzhnikov  <ppluzhnikov@google.com>
71553
71554         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
71555         strings correctly.
71556
71557 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
71558
71559         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
71560         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
71561         * sysdeps/sh/strlen.S: Likewise.
71562
71563 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71564
71565         * sysdeps/unix/fork.S: Remove file.
71566         * sysdeps/unix/i386/fork.S: Likewise.
71567         * sysdeps/unix/sparc/fork.S: Likewise.
71568
71569         * sysdeps/unix/system.c: Remove file.
71570         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
71571
71572         * sysdeps/unix/getegid.S: Remove file.
71573         * sysdeps/unix/geteuid.S: Likewise.
71574
71575 2012-04-24  Roland McGrath  <roland@hack.frob.com>
71576
71577         * scripts/check-localplt.awk: New file.
71578         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
71579         of diff.
71580         * scripts/data/localplt-generic.data: Add a comment.
71581
71582         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
71583         NODE when __dir_mkfile failed.
71584         * sysdeps/mach/hurd/symlinkat.c: Likewise.
71585         Reported by Ludovic Courtès <ludo@gnu.org>.
71586
71587 2012-04-24  Andreas Jaeger  <aj@suse.de>
71588
71589         * Makerules (common-clean): Also remove gen-as-const-headers
71590         files.
71591
71592 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71593
71594         * Makerules (native-compile): Do not change working directory for
71595         build.  Use $(OUTPUT_OPTION) in command.
71596         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
71597
71598 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71599
71600         [BZ #13886]
71601         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
71602         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
71603         * math/libm-test.inc (floor_test): Add more tests.
71604         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
71605
71606 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71607
71608         * sysdeps/unix/getdents.c: Remove file.
71609         * sysdeps/unix/sysv/getdents.c: Likewise.
71610         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
71611
71612         * sysdeps/unix/syscalls.list (madvise): Add syscall from
71613         sysdeps/unix/mman/syscalls.list.
71614         (mmap): Likewise.
71615         (mprotect): Likewise.
71616         (msync): Likewise.
71617         (munmap): Likewise.
71618         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
71619         * sysdeps/unix/mman/syscalls.list: Remove.
71620         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
71621
71622         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
71623         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
71624         * configure: Regenerated.
71625         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
71626         $(libgcc_s_suffix).
71627         * config.make.in (libgcc_s_suffix): Remove variable.
71628
71629 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
71630
71631         * sysdeps/unix/sysv/gethostname.c: Move to ...
71632         * sysdeps/posix/gethostname.c: ... here.
71633
71634         * sysdeps/unix/execve.S: Remove file.
71635
71636         * sysdeps/unix/_exit.S: Remove file.
71637
71638 2012-04-23  Andreas Jaeger  <aj@suse.de>
71639
71640         [BZ #13739]
71641         * manual/Makefile: Remove make dist support, there's no
71642         need for a stand-alone documentation tar ball.
71643         (TEXI2DVI): Define always, it's not in Makeconfig.
71644         (dist): Removed.
71645         (tar-it): Removed.
71646         (edition): Removed.
71647         (glibc-doc-$(edition).tar): Removed
71648         (%.Z): Removed.
71649         (%.gz): Removed.
71650         (%.uu): Removed.
71651         (ETAGS): Remove, it's in Makeconfig.
71652         (move-if-change): Remove, it's in Makeconfig.
71653
71654 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         [BZ #13970]
71657         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
71658         (strtod, strtof, strtold, strtol, strtoul, strtoq)
71659         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
71660         (strtod_l, strtof_l, strtold_l): Remove __wur.
71661         It is not necessarily an error to ignore strtol's return value.
71662         One can reliably look at the stored endptr to decide whether
71663         the number had valid syntax.
71664
71665 2012-04-21  Andreas Jaeger  <aj@suse.de>
71666
71667         [BZ #13739]
71668         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
71669
71670 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
71671
71672         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
71673         * sysdeps/unix/sysv/Versions: Remove file.
71674
71675 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
71676
71677         [BZ #13927]
71678         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71679
71680 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
71681
71682         [BZ #7064]
71683         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
71684         version from __vm86.
71685
71686 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
71687
71688         * sysdeps/unix/common/lxstat.c: Remove file.
71689         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
71690
71691         * sysdeps/unix/sysv/Makefile: Remove file.
71692
71693         * sysdeps/unix/sysv/direct.h: Remove file.
71694
71695         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
71696         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
71697         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
71698         * sysdeps/unix/sysv/bits/signum.h: Likewise.
71699         * sysdeps/unix/sysv/bits/stat.h: Likewise.
71700         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
71701         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
71702
71703         * sysdeps/unix/sysv/setrlimit.c: Remove file.
71704
71705         * sysdeps/unix/xmknod.c: Remove file.
71706         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
71707
71708         * sysdeps/unix/sysv/settimeofday.c: Remove file.
71709
71710         * sysdeps/unix/sysv/i386/time.S: Remove file.
71711
71712         * sysdeps/unix/fxstat.c: Remove file.
71713         * sysdeps/unix/xstat.c: Likewise.
71714         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
71715
71716         * sysdeps/unix/sysv/sigaction.c: Remove file.
71717
71718         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
71719         (sysdep_headers): Remove variable.
71720         [termio.h not in sysdep_headers] (generated): Likewise.
71721         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
71722         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
71723         * sysdeps/unix/sysv/tcdrain.c: Likewise.
71724         * sysdeps/unix/sysv/tcflow.c: Likewise.
71725         * sysdeps/unix/sysv/tcflush.c: Likewise.
71726         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
71727         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
71728         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
71729         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
71730         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
71731
71732         * sysdeps/unix/siglist.c: Remove file.
71733
71734         * sysdeps/unix/getppid.S: Remove file.
71735
71736         * sysdeps/unix/mkdir.c: Remove file.
71737         * sysdeps/unix/rmdir.c: Likewise.
71738
71739 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
71740
71741         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
71742         ERR_MAX value.
71743         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
71744         errlist-compat value.
71745
71746 2012-04-18  David S. Miller  <davem@davemloft.net>
71747
71748         * sysdeps/generic/memcopy.h (reg_char): Delete.
71749         * debug/strcat_chk.c: Use char, not reg_char.
71750         * debug/strcpy_chk.c: Likewise.
71751         * debug/strncat_chk.c: Likewise.
71752         * debug/strncpy_chk.c: Likewise.
71753         * string/memchr.c: Likewise.
71754         * string/memrchr.c: Likewise.
71755         * string/rawmemchr.c: Likewise.
71756         * string/strcat.c: Likewise.
71757         * string/strchr.c: Likewise.
71758         * string/strchrnul.c: Likewise.
71759         * string/strcmp.c: Likewise.
71760         * string/strcpy.c: Likewise.
71761         * string/strncat.c: Likewise.
71762         * string/strncmp.c: Likewise.
71763         * string/strncpy.c: Likewise.
71764
71765 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71766
71767         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
71768         __builtin_memcopy is called when src and dest ranges are known to not
71769         overlap.
71770
71771 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71772
71773         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
71774         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
71775         fwd_align_merge macro call.
71776         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
71777         bwd_align_merge macro call.
71778         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71779
71780 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71781
71782         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
71783         bwd_align_merge macros.
71784         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
71785         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71786         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71787
71788 2012-04-18  David S. Miller  <davem@davemloft.net>
71789
71790         * sysdeps/sparc/sparc64/memcopy.h: Delete.
71791
71792 2012-04-18  Andreas Jaeger  <aj@suse.de>
71793
71794         [BZ# 6794]
71795         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
71796         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
71797         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71798
71799         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
71800         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
71801         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71802
71803         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
71804         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
71805         Adjust for changed ldbl-128 files.
71806
71807         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
71808         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
71809         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71810
71811 2012-04-17  David S. Miller  <davem@davemloft.net>
71812
71813         * sysdeps/sparc/sparc32/memcopy.h: Delete.
71814
71815 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
71816
71817         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
71818         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
71819         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
71820         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
71821         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
71822         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
71823
71824 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71825
71826         [BZ #6794]
71827         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
71828         * math/libm-test.inc: Add ilogb errno and exception tests.
71829         * math/w_ilogb.c: New file: ilogb wrapper.
71830         * math/w_ilogbf.c: New file: ilogbf wrapper.
71831         * math/w_ilogbl.c: New file: ilogbl wrapper.
71832         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
71833         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
71834         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
71835         exception being thrown with 0.0 as argument.
71836         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
71837         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
71838         exception being thrown with 0.0 as argument.
71839         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
71840         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71841         exception being thrown with 0.0 as argument.
71842         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
71843         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71844         exception being thrown with 0.0 as argument.
71845         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
71846         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
71847         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
71848         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
71849         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
71850         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
71851         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
71852         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
71853         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
71854
71855 2012-04-17  Petr Baudis  <pasky@ucw.cz>
71856
71857         * include/sys/uio.h: Change __vector to __iovec to avoid clash
71858         with altivec.
71859
71860 2012-04-16  Marek Polacek  <polacek@redhat.com>
71861
71862         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
71863
71864 2012-04-16  Marek Polacek  <polacek@redhat.com>
71865
71866         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
71867         operands of fdivp instruction.
71868
71869 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71870
71871         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
71872         * elf/tst-auditmod3b.c: Likewise.
71873         * elf/tst-auditmod4b.c: Likewise.
71874         * elf/tst-auditmod5b.c: Likewise.
71875         * elf/tst-auditmod6b.c: Likewise.
71876         * elf/tst-auditmod6c.c: Likewise.
71877         * elf/tst-auditmod7b.c: Likewise.
71878         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
71879         * sysdeps/x86_64/preconfigure.in: Likewise.
71880         * sysdeps/x86_64/preconfigure: Regenerated.
71881
71882 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71883
71884         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
71885         __ILP32__.
71886
71887 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
71888
71889         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71890         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
71891
71892 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
71893
71894         [BZ #13973]
71895         * locale/iso-639.def: Fix gl language name. Spotted by
71896         Yaron Shahrabani.
71897
71898 2012-04-12  Roland McGrath  <roland@hack.frob.com>
71899
71900         [BZ #2074]
71901         * libio/libio.h (__io_write_fn): Update comment.
71902
71903 2012-04-12  Petr Baudis  <pasky@ucw.cz>
71904
71905         [BZ #2074]
71906         * stdio.texi (Hook Functions): The user provided writer function
71907         is not allowed to return -1.
71908
71909 2012-04-11  David S. Miller  <davem@davemloft.net>
71910
71911         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71912
71913 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
71914
71915         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
71916         Add a leading slash to rtkaio.
71917
71918 2012-04-11  Jim Meyering  <meyering@redhat.com>
71919
71920         [BZ #11959]
71921         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
71922         It is not necessarily an error to ignore fwrite's return
71923         value.  One can reliably use ferror to test for errors after
71924         the fact.
71925
71926 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71927
71928         * bits/types.h (__snseconds_t): New type.
71929         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
71930
71931         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
71932         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71933         (__SNSECONDS_T_TYPE): Likewise.
71934         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71935         (__SNSECONDS_T_TYPE): Likewise.
71936         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71937         (__SNSECONDS_T_TYPE): Likewise.
71938
71939 2012-04-10  Andreas Jaeger  <aj@suse.de>
71940
71941         [BZ #2636]
71942         * manual/time.texi (Processor Time): Return type of times is
71943         elapsed real time since an arbitrary point in the past.
71944         (CPU Time): Move CLK_TCK from here...
71945         (Processor Time): ...to here.  Correct description.
71946         * manual/conf.texi (Constants for Sysconf): Correct description of
71947         _SC_CLK_TCK.
71948
71949 2012-04-10  David S. Miller  <davem@davemloft.net>
71950
71951         [BZ #13967]
71952         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
71953         where the is a gap between DT_REL(A) and DT_JMPREL.
71954
71955 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71956
71957         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
71958         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71959         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71960
71961 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
71962
71963         * elf/dl-support.c (_dl_inhibit_cache): New variable.
71964         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
71965         (dl_main): Handle --inhibit-cache.
71966         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
71967         _dl_inhibit_cache.
71968         * elf/dl-load.c (_dl_map_object): Use it.
71969         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
71970
71971 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71972
71973         [BZ #13872]
71974         * sysdeps/i386/fpu/e_powl.S (p78): New object.
71975         (__ieee754_powl): Saturate large exponents rather than testing for
71976         overflow of y*log2(x).
71977         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71978         * math/libm-test.inc (pow_test): Do not permit spurious overflow
71979         exceptions.
71980
71981         [BZ #11521]
71982         * math/s_ctan.c: Include <float.h>.
71983         (__ctan): Avoid internal overflow or cancellation in calculating
71984         denominator.
71985         * math/s_ctanf.c: Likewise.
71986         * math/s_ctanl.c: Likewise.
71987         * math/s_ctanh.c: Likewise.
71988         * math/s_ctanhf.c: Likewise.
71989         * math/s_ctanhl.c: Likewise.
71990         * math/libm-test.inc (ctan_test): Add more tests.
71991         (ctanh_test): Likewise.
71992         * sysdeps/i386/fpu/libm-test-ulps: Update.
71993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71994
71995 2012-04-09  Andreas Jaeger  <aj@suse.de>
71996
71997         [BZ #6894]
71998         * manual/filesys.texi (Directory Entries): Mention that d_namlen
71999         is an optional BSD extension.
72000
72001         [BZ #10254]
72002         * manual/stdio.texi (Opening Streams): Document additional fopen
72003         parameters.
72004
72005 2012-04-09  Roland McGrath  <roland@hack.frob.com>
72006
72007         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
72008         %eax without telling the compiler.
72009
72010 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
72011
72012         [BZ # 13963]
72013         * manual/install.texi: Use sourceware.org.
72014
72015 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
72016
72017         [BZ #13873]
72018         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
72019         (__ieee754_pow): Generate overflow and underflow using huge*huge
72020         and tiny*tiny rather than just returning constant infinity or zero
72021         for large exponents.
72022         * math/libm-test.inc (pow_test): Require overflow exceptions for
72023         applicable cases of large exponents.
72024
72025         [BZ #706]
72026         * sysdeps/i386/fpu/e_pow.S (p10): New object.
72027         (__ieee754_pow): Use iterative multiplication algorithm only for
72028         integer exponents with absolute value below 1024.  Check for odd
72029         integer exponents when using algorithm for real exponents.
72030         * math/libm-test.inc (pow_test): Add more tests.
72031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72032
72033 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
72034
72035         [BZ #13705]
72036         * math/libm-test.inc (exp_test): Do not allow overflow exception
72037         on underflow test.
72038
72039 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
72040
72041         [BZ #13705]
72042         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
72043         instead of __kernel_standard_f.
72044
72045 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
72046
72047         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
72048         * sysdeps/x86_64/memset_chk.S: Likewise.
72049
72050 2012-04-08  Andreas Jaeger  <aj@suse.de>
72051
72052         [BZ #10153]
72053         * manual/startup.texi (Environment Access): Describe return value
72054         for putenv and setenv.
72055
72056         [BZ #6895]
72057         * manual/filesys.texi (Directory Entries): Add description for
72058         DT_LNK.
72059
72060         [BZ #6890]
72061         * manual/filesys.texi (Directory Entries): Clarify that it's file
72062         system not operating system in the description of DT_UNKNOWN.
72063
72064         [BZ #6578]
72065         * manual/syslog.texi (closelog): Fix reference, it's openlog.
72066
72067 2012-04-08  Stephen Compall  <s11@member.fsf.org>
72068
72069         [BZ #6649]
72070         * manual/llio.texi (Opening and Closing Files): Add cross
72071         reference to explain mode argument.
72072
72073 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
72074
72075         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
72076         * sysdeps/x86_64/memset_chk.S: Likewise.
72077
72078 2012-04-07  David S. Miller  <davem@davemloft.net>
72079
72080         * elf/elf.h (R_SPARC_WDISP10): Define.
72081         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
72082         R_SPARC_SIZE32.
72083         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
72084         R_SPARC_SIZE64 and R_SPARC_H34.
72085
72086 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
72087
72088         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
72089         conditions and remove no longer applicable assertion.
72090
72091 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72092
72093         * bits/byteswap.h: Include <features.h>.
72094         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72095         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72096
72097 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72098
72099         * bits/byteswap.h (__bswap_16): Removed.
72100         Include <bits/byteswap-16.h> to get __bswap_16.
72101         * sysdeps/i386/bits/byteswap.h: Likewise.
72102         * sysdeps/s390/bits/byteswap.h: Likewise.
72103         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72104         * bits/byteswap-16.h: New file.
72105         * sysdeps/i386/bits/byteswap-16.h: Likewise.
72106         * sysdeps/s390/bits/byteswap-16.h: Likewise.
72107         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
72108         * string/Makefile (headers): Add bits/byteswap-16.h.
72109
72110 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
72111
72112         [BZ #13895]
72113         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
72114         extra indirection.
72115         * nss/Makefile (tests-static, tests): Add tst-nss-static.
72116         * nss/tst-nss-static.c: New.
72117
72118 2012-04-06  Robert Millan  <rmh@gnu.org>
72119
72120         [BZ #6486]
72121         * manual/llio.texi (File Position Primitive): lseek
72122         refers to WHENCE when it really means OFFSET.
72123
72124 2012-04-06  Andreas Jaeger  <aj@suse.de>
72125
72126         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
72127         strncmp declarations.
72128
72129         * abilist/libc.abilist: Add __poll and __ppoll.
72130
72131 2012-04-05  David S. Miller  <davem@davemloft.net>
72132
72133         * scripts/check-local-headers.sh: Accept a host triplet in the
72134         path matched by the exclude regexp.
72135
72136         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
72137         definition.
72138         * sysdeps/powerpc/powerpc32/dl-machine.h
72139         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
72140         * sysdeps/s390/s390-32/dl-machine.h
72141         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72142         * sysdeps/sparc/sparc32/dl-machine.h
72143         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72144         * sysdeps/sparc/sparc64/dl-machine.h
72145         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72146
72147         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
72148         lazy binding.
72149         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
72150         undefined symbol errors.
72151
72152         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
72153         DT_NEEDED entries.
72154
72155 2012-04-05  Michael Matz  <matz@suse.de>
72156
72157         [BZ #13592]
72158         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
72159
72160 2012-04-05  Andreas Jaeger  <aj@suse.de>
72161
72162         [BZ #13908]
72163         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
72164         comment.
72165
72166 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72167
72168         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
72169         which ROUND is no valid rounding mode.
72170
72171 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72172
72173         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
72174         read again.
72175         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
72176
72177 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72178
72179         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
72180         an exception using FPU order intentionally.
72181
72182 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72183
72184         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
72185         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
72186         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
72187         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
72188
72189 2012-04-05  Simon Josefsson  <simon@josefsson.org>
72190
72191         [BZ #12340]
72192         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
72193         EINVAL when BUFLEN is too smal.
72194
72195 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
72196
72197         [BZ #13553]
72198         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
72199         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
72200
72201 2012-04-03  Andreas Jaeger  <aj@suse.de>
72202
72203         [BZ #13938]
72204         * manual/setjmp.texi (System V contexts): Fix sentence.
72205
72206         [BZ #13926]
72207         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
72208         New macro for this case.
72209         [!__GNUC__] (__bswap_64): New inline function for this case.
72210         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72211         * bits/byteswap.h: Likewise.
72212         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
72213         ull, guard with __GLIBC_HAVE_LONG_LONG.
72214
72215         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
72216         __GLIBC_HAVE_LONG_LONG.
72217
72218         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
72219         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
72220
72221 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
72222
72223         [BZ #13691]
72224         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
72225         inptr and inend, rather than using last_ch.
72226
72227 2012-04-02  David S. Miller  <davem@davemloft.net>
72228
72229         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
72230         * stdio-common/printf-parse.h (read_int): Change return type to
72231         'int', return -1 on INT_MAX overflow.
72232         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
72233         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
72234         overflows INT_MAX.  Check for overflow of in-format-string precision
72235         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
72236         SIZE_MAX not INT_MAX for integer overflow test.
72237         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
72238         skip the construct in the format string but do not record anything.
72239         * stdio-common/bug22.c: Adjust to test both width/prevision
72240         INT_MAX overflow as well as total length INT_MAX overflow.  Check
72241         explicitly for proper errno values.
72242
72243 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
72244
72245         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
72246         CHAR_MAX.
72247         * string/test-strcmp.c [! WIDE]: Likewise.
72248         * time/tst-mktime2.c: Likewise for INT_MAX.
72249         * string/test-string.h: #include <sys/param.h> for MIN.
72250
72251         * csu/init-first.c (__libc_init_first): Call __ctype_init.
72252         * sysdeps/i386/init-first.c (init): Likewise.
72253         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
72254         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
72255         * sysdeps/sh/init-first.c (init): Likewise.
72256
72257 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
72258
72259         * po/ru.po: Update from translation team.
72260         * po/vi.po: Likewise.
72261
72262 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
72263
72264         * resolv/nss_dns/dns-host.c: Merge copyright years.
72265
72266 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72267
72268         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
72269         Optimize memcpy with prefetch if
72270         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
72271         src, dst pointers have unequal 16 byte alignments.
72272
72273 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
72274
72275         [BZ #13928]
72276         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
72277         from a CNAME entry and return the minimum ttl for the query.
72278         (gaih_getanswer_slice): Likewise.
72279
72280 2012-03-30  Jeff Law  <law@redhat.com>
72281
72282         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
72283         due to long keys.
72284         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
72285         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
72286
72287         * resolv/nss_dns/dns-host.c: Update copyright year.
72288
72289 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
72290
72291         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
72292         requests to save a system call.  Fix check that all bytes are sent.
72293
72294         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
72295         comments for sendmmsg.
72296
72297 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
72298
72299         [BZ #13691]
72300         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
72301         with only 1 character between 0x0041 and 0x01b0.
72302         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
72303         * wcsmbs/tst-mbsnrtowcs.c: New file.
72304
72305 2012-03-29  David S. Miller  <davem@davemloft.net>
72306
72307         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
72308         small copies by hand.
72309
72310 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
72311
72312         [BZ #13761]
72313         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
72314         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
72315         group memberships.
72316
72317 2012-03-28  David S. Miller  <davem@davemloft.net>
72318
72319         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
72320         that branches into memcpy.
72321         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
72322         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
72323         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
72324         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
72325         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
72326         bits.
72327         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
72328         implementation too.
72329         * sysdeps/sparc/mempcpy.S: New file.
72330
72331         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
72332         the IFUNC routine in the libc case.
72333         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72334
72335         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
72336         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
72337         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
72338         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
72339         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
72340         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
72341         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
72342         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
72343
72344         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
72345         loop to 256 bytes instead of 64 bytes and fix test signedness.
72346
72347         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
72348         * sysdeps/sparc/sparc32/Makefile: rather than here...
72349         * sysdeps/sparc/sparc64/Makefile: and here.
72350
72351 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
72352
72353         * malloc/mallocbug.c: Avoid warnings about unused variables.
72354
72355 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
72356
72357         [BZ #13760]
72358         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
72359         in the right place. Discard and retry query if response is
72360         larger than input buffer size.
72361
72362 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
72363
72364         [BZ #369]
72365         [BZ #2678]
72366         [BZ #3866]
72367         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72368         x for large integer exponent.
72369         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
72370         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
72371         sign of result as needed afterwards.
72372         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
72373         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
72374         result for underflowing pow the same as for overflow.
72375         (__kernel_standard_l): Handle powl overflow and underflow here
72376         rather than calling __kernel_standard.
72377         * math/libm-test.inc (pow_test): Add more tests.
72378
72379         [BZ #3868]
72380         [BZ #13879]
72381         [BZ #13910]
72382         [BZ #13911]
72383         [BZ #13912]
72384         [BZ #13913]
72385         [BZ #13915]
72386         [BZ #13916]
72387         [BZ #13917]
72388         [BZ #13918]
72389         [BZ #13919]
72390         [BZ #13920]
72391         [BZ #13921]
72392         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
72393         * sysdeps/ieee754/k_standard.c: Include <float.h>.
72394         (__kernel_standard_l): New function.
72395         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
72396         __kernel_standard.
72397         * math/w_acosl.c (__acosl): Likewise.
72398         * math/w_asinl.c (__asinl): Likewise.
72399         * math/w_atan2l.c (__atan2l): Likewise.
72400         * math/w_atanhl.c (__atanhl): Likewise.
72401         * math/w_coshl.c (__coshl): Likewise.
72402         * math/w_exp10l.c (__exp10l): Likewise.
72403         * math/w_exp2l.c (__exp2l): Likewise.
72404         * math/w_fmodl.c (__fmodl): Likewise.
72405         * math/w_hypotl.c (__hypotl): Likewise.
72406         * math/w_j0l.c (__j0l, __y0l): Likewise.
72407         * math/w_j1l.c (__j1l, __y1l): Likewise.
72408         * math/w_jnl.c (__jnl, __ynl): Likewise.
72409         * math/w_lgammal.c (__lgammal): Likewise.
72410         * math/w_log10l.c (__log10l): Likewise.
72411         * math/w_log2l.c (__log2l): Likewise.
72412         * math/w_logl.c (__logl): Likewise.
72413         * math/w_powl.c (__powl): Likewise.
72414         * math/w_remainderl.c (__remainderl): Likewise.
72415         * math/w_scalbl.c (sysv_scalbl): Likewise.
72416         * math/w_sinhl.c (__sinhl): Likewise.
72417         * math/w_sqrtl.c (__sqrtl): Likewise.
72418         * math/w_tgammal.c (__tgammal): Likewise.
72419         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
72420         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
72421         * math/libm-test.inc (acos_test): Add more tests.
72422         (acosh_test): Likewise.
72423         (asin_test): Likewise.
72424         (atanh_test): Likewise.
72425         (exp_test): Likewise.
72426         (exp10_test): Likewise.
72427         (exp2_test): Likewise.
72428         (expm1_test): Likewise.
72429         (lgamma_test): Likewise.
72430         (log_test): Likewise.
72431         (log10_test): Likewise.
72432         (log1p_test): Likewise.
72433         (log2_test): Likewise.
72434         (pow_test): Do not allow some spurious overflow exceptions.
72435         (sqrt_test): Add more tests.
72436         (tgamma_test): Likewise.
72437         (y0_test): Likewise.
72438         (y1_test): Likewise.
72439         (yn_test): Likewise.
72440
72441 2012-03-27  Anton Blanchard  <anton@samba.org>
72442
72443         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
72444         MAP_HUGETLB.
72445         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
72446         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
72447         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
72448
72449 2012-03-27  David S. Miller  <davem@davemloft.net>
72450
72451         * conform/Makefile: Run run-conformtest.sh using $(BASH).
72452
72453         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
72454         have-as-vis3 check.
72455
72456 2012-03-27  Andreas Jaeger  <aj@suse.de>
72457
72458         * sysdeps/x86_64/elf/configure.in: Moved to ...
72459         * sysdeps/x86_64/configure.in: ... here.
72460         * sysdeps/x86_64/elf/start.S: Moved to ...
72461         * sysdeps/x86_64/start.S: ... here.
72462         * sysdeps/x86_64/elf/configure: Delete.
72463
72464         * sysdeps/x86_64/configure.in: Merge contents from
72465         sysdeps/i386/configure.in (without i686 check).
72466
72467         * sysdeps/i386/elf/Versions: Merge into ...
72468         * sysdeps/i386/Versions: ... this.
72469         * sysdeps/i386/elf/Versions: Delete file.
72470         * sysdeps/i386/elf/start.S: Moved to ...
72471         * sysdeps/i386/start.S: ...here.
72472         * sysdeps/i386/elf/configure.in: Merge into...
72473         * sysdeps/i386/configure.in: ...here.
72474         * sysdeps/i386/elf/configure.in: Delete file.
72475         * sysdeps/i386/elf/configure: Delete file.
72476
72477         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
72478         * debug/backtracesyms.c: ... here.
72479         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
72480         * debug/backtracesymsfd.c: ... here.
72481         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
72482         * sysdeps/generic/ifunc-sel.h: ... here.
72483
72484         * sysdeps/unix/i386/start.c: Delete file.
72485         * sysdeps/unix/sparc/start.c: Delete file.
72486         * sysdeps/unix/start.c: Delete file.
72487
72488         * sysdeps/sh/elf/configure.in: Moved to ...
72489         * sysdeps/sh/configure.in: ... here.
72490         * sysdeps/sh/elf/start.S: Moved to ...
72491         * sysdeps/sh/start.S: ... here.
72492         * sysdeps/sh/elf/configure: Delete file.
72493
72494         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
72495         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
72496         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
72497         * sysdeps/powerpc/powerpc64/entry.h: ... here.
72498         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
72499         * sysdeps/powerpc/powerpc64/start.S: here.
72500         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
72501         * sysdeps/powerpc/powerpc64/Makefile: ... this.
72502         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
72503         * sysdeps/powerpc/powerpc64/configure.in: ... this.
72504         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
72505
72506         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
72507         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
72508         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
72509         * sysdeps/powerpc/powerpc32/start.S: ... here.
72510         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
72511         * sysdeps/powerpc/powerpc32/configure.in: ... this.
72512         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
72513
72514         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
72515         * sysdeps/powerpc/ifunc-sel.h: ... here.
72516         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
72517         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
72518
72519         * sysdeps/sparc/elf/configure.in: Moved to ...
72520         * sysdeps/sparc/configure.in: ... here.
72521         * sysdeps/sparc/elf/configure: Delete file.
72522         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
72523         * sysdeps/sparc/sparc32/start.S: ... here.
72524         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
72525         * sysdeps/sparc/sparc64/start.S: ... here.
72526         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
72527         * sysdeps/sparc/sparc32/Makefile: ... this.
72528         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
72529         * sysdeps/sparc/sparc64/Makefile: ... this.
72530
72531         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
72532         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
72533         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
72534         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
72535         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
72536         * sysdeps/s390/s390-32/setjmp.S: ... here.
72537         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
72538         * sysdeps/s390/s390-32/configure.in: ... here.
72539         * sysdeps/s390/s390-32/elf/configure: Delete file.
72540         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
72541         * sysdeps/s390/s390-32/start.S: ... here.
72542
72543         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
72544         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
72545         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
72546         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
72547         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
72548         * sysdeps/s390/s390-64/setjmp.S: ... here.
72549         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
72550         * sysdeps/s390/s390-64/configure.in: ... here
72551         * sysdeps/s390/s390-64/elf/configure: Delete file.
72552         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
72553         * sysdeps/s390/s390-64/start.S: ... here.
72554         * sysdeps/s390/s390-64/elf/configure: Delete.
72555
72556         * configure.in: Remove support for elf directories in sysdeps.
72557
72558         * configure: Regenerated.
72559         * sysdeps/i386/configure: Regenerated.
72560         * sysdeps/powerpc/powerpc32/configure: Regenerated.
72561         * sysdeps/powerpc/powerpc64/configure: Regenerated.
72562         * sysdeps/s390/s390-32/configure: Regenerated.
72563         * sysdeps/s390/s390-64/configure: Regenerated.
72564         * sysdeps/sh/configure: Regenerated.
72565         * sysdeps/sparc/configure: Regenerated.
72566         * sysdeps/x86_64/configure: Regenerated.
72567
72568 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
72569
72570         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72571
72572         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
72573         denormal result into account.
72574
72575 2012-03-25  Roland McGrath  <roland@hack.frob.com>
72576
72577         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
72578         Reported by Allan McRae <allan@archlinux.org>.
72579
72580 2012-03-23  Jeff Law  <law@redhat.com>
72581
72582         * nss/getnssent.c (__nss_getent): Fix typo.
72583
72584 2012-03-23  David S. Miller  <davem@davemloft.net>
72585
72586         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72587
72588 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
72589
72590         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
72591         to pad to uint64_t for each field.
72592         (dl_tls_index): Replace unsigned long with uint64_t.
72593
72594 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
72595         Paul Pluzhnikov  <ppluzhnikov@google.com>
72596
72597         [BZ #6528]
72598         * grp/Makefile (otherlibs): Don't set it.
72599         * inet/Makefile (otherlibs): Likewise.
72600         * login/Makefile (otherlibs): Likewise.
72601         * nscd/Makefile (otherlibs): Likewise.
72602         * posix/Makefile (otherlibs): Likewise.
72603         * pwd/Makefile (otherlibs): Likewise.
72604         * rt/Makefile (otherlibs): Likewise.
72605         * sunrpc/Makefile (otherlibs): Likewise.
72606         * nss/Makefile (otherlibs): Likewise.
72607         Add libnss_files to routines and static-only-routines.
72608         ($(objpfx)getent): Remove rule.
72609         * resolv/Makefile: Add libnss_dns and libresolv to routines and
72610         static-only-routines.
72611
72612 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72613
72614         [BZ #13892]
72615         * math/s_cexp.c: Include <float.h>.
72616         (__cexp): Handle exp result overflowing not necessarily
72617         overflowing both real and imaginary parts of result.
72618         * math/s_cexpf.c: Likewise.
72619         * math/s_cexpl.c: Likewise.
72620         * math/libm-test.inc (cexp_test): Add more tests.
72621         * sysdeps/i386/fpu/libm-test-ulps: Update.
72622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72623
72624 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72625
72626         * include/link.h (ELFW): New macro.
72627         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
72628         Replace ELF64_R_TYPE with ELFW(R_TYPE).
72629
72630 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72631
72632         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
72633         with uint64_t.
72634
72635 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72636
72637         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
72638         declaration.
72639         (struct La_x32_retval): Likewise.
72640
72641 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72642
72643         * sysdeps/x86_64/preconfigure.in: New file.
72644         * sysdeps/x86_64/preconfigure: New generated file.
72645
72646 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72647
72648         [BZ #13824]
72649         * math/e_exp2l.c: Include <float.h>.
72650         (__ieee754_exp2l): Handle overflow and underflow cases
72651         separately.  Only pass fractional part of argument to
72652         __ieee754_expl.
72653         * math/libm-test.inc (exp2_test): Add more tests.
72654
72655         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
72656         negating x to take absolute value.
72657         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
72658         Likewise.
72659         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
72660         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
72661         Likewise.
72662         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
72663         computing low part if x was negated.
72664         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
72665
72666 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72667
72668         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
72669         la_x32_gnu_pltexit.
72670         (pltexit): Cast int_retval to ptrdiff_t.
72671         * elf/tst-auditmod3b.c: Likewise.
72672         * elf/tst-auditmod4b.c: Likewise.
72673         * elf/tst-auditmod5b.c: Likewise.
72674         * elf/tst-auditmod6b.c: Likewise.
72675         * elf/tst-auditmod6c.c: Likewise.
72676         * elf/tst-auditmod7b.c: Likewise.
72677
72678         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
72679         and x32_gnu_pltexit.
72680
72681         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
72682         __ELF_NATIVE_CLASS.
72683         (La_x32_regs): New macro.
72684         (La_x32_retval): Likewise.
72685         (la_x32_gnu_pltenter): New function prototype.
72686         (la_x32_gnu_pltexit): Likewise.
72687
72688 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
72689
72690         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
72691         exponent.
72692
72693         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72694
72695         * configure.in (libc_cv_cc_nofma): Check for option to disable
72696         generation of FMA instructions.
72697         * configure: Regenerate.
72698         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
72699         * sysdeps/ieee754/dbl-64/Makefile: New file.
72700         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
72701         Remove brandred-fma4.
72702         (CFLAGS-brandred-fma4.c): Remove.
72703         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
72704         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
72705         define.
72706         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
72707         define.
72708
72709 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72710
72711         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
72712         LLONG_MAX != LONG_MAX.
72713         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72714         (_fitoa_word): Likewise.
72715         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
72716         LLONG_MAX != LONG_MAX.
72717         * stdio-common/_itowa.h: Include <_itoa.h>.
72718         (_itowa_word): Use _ITOA_WORD_TYPE on value.
72719         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
72720         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
72721         only if not defined.
72722         (_ITOA_WORD_TYPE): Likewise.
72723         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72724         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
72725
72726 2012-03-21  David S. Miller  <davem@davemloft.net>
72727
72728         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72729
72730 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72731
72732         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
72733         of x86_64 when setting libc_cv_slibdir, libdir and
72734         libc_cv_localedir.
72735         * sysdeps/unix/sysv/linux/configure: Regenerated.
72736
72737 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72738
72739         * manual/lang.texi (Old Varargs): Remove section.
72740         (How Variadic): Update menu.
72741         (va_start): Do not mention varargs.h.
72742
72743 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72744             Joseph Myers  <joseph@codesourcery.com>
72745
72746         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
72747         link test.
72748         * configure: Regenerated.
72749
72750 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72751
72752         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
72753         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
72754         conformtest.pl
72755
72756 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72757
72758         * NOTES: Remove.
72759         * Makefile (files-for-dist): Remove NOTES.
72760         (NOTES): Remove rule.
72761         * README: Don't refer to NOTES.
72762         * manual/creature.texi: Don't include macros.texi.
72763         * manual/intro.texi (creature.texi): Remove comment referring to
72764         NOTES.
72765
72766         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
72767         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
72768         * configure: Regenerated.
72769         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
72770         LIBC_TRY_CC_OPTION.
72771         (libc_cv_as_i686): Likewise.
72772         (libc_cv_cc_avx): Likewise.
72773         (libc_cv_cc_sse2avx): Likewise.
72774         (libc_cv_cc_fma4): Likewise.
72775         (libc_cv_cc_novzeroupper): Likewise.
72776         * sysdeps/i386/configure: Regenerated.
72777
72778         [BZ #13883]
72779         * sysdeps/i386/fpu/s_cexp.S: Remove.
72780         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72781         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72782         * math/libm-test.inc (cexp_test): Add more tests.
72783         * sysdeps/i386/fpu/libm-test-ulps: Update.
72784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72785
72786 2012-03-21  Allan McRae  <allan@archlinux.org>
72787
72788         * timezone/Makefile: Do not install iso3166.tab and zone.tab
72789
72790 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72791
72792         [BZ #13871]
72793         * math/w_exp2.c: Do not include <float.h>.
72794         (o_threshold, u_threshold): Remove.
72795         (__exp2): Calculate result before checking finiteness and calling
72796         __kernel_standard.
72797         * math/w_exp2f.c: Likewise.
72798         * math/w_exp2l.c: Likewise.
72799         * math/libm-test.inc (exp2_test): Require overflow exception for
72800         1e6 input.
72801
72802         [BZ #3866]
72803         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
72804         range of signed 64-bit integers before using fistpll.  Remove
72805         checks for whether integers fit in mantissa bits.
72806         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
72807         the range of signed 32-bit integers before using fistpl.  Remove
72808         checks for whether integers fit in mantissa bits.
72809         * sysdeps/i386/fpu/e_powl.S (p64): New object.
72810         (__ieee754_powl): Test for y outside the range of signed 64-bit
72811         integers before using fistpll.  Reduce 64-bit values to 63-bit
72812         ones as needed.
72813         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
72814         divide-by-zero is raised for zero to large negative powers.
72815         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
72816         (__ieee754_powl): Test for y outside the range of signed 64-bit
72817         integers before using fistpll.  Reduce 64-bit values to 63-bit
72818         ones as needed.
72819         * math/libm-test.inc (pow_test): Add more tests.
72820
72821 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72822
72823         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
72824         <stdio-common/_itoa.h>.
72825         * debug/segfault.c: Likewise.
72826         * elf/dl-cache.c: Likewise.
72827         * elf/dl-minimal.c: Likewise.
72828         * elf/dl-misc.c: Likewise.
72829         * elf/dl-sysdep.c: Likewise.
72830         * elf/dl-version.c: Likewise.
72831         * elf/rtld.c: Likewise.
72832         * hurd/hurdsock.c: Likewise.
72833         * hurd/lookup-retry.c: Likewise.
72834         * malloc/malloc.c: Likewise.
72835         * malloc/mtrace.c: Likewise.
72836         * nscd/nscd_getgr_r.c: Likewise.
72837         * nscd/nscd_getpw_r.c: Likewise.
72838         * nscd/nscd_getserv_r.c: Likewise.
72839         * posix/getopt_init.c: Likewise.
72840         * posix/wordexp.c: Likewise.
72841         * stdio-common/_itoa.c: Likewise.
72842         * stdio-common/printf_fphex.c: Likewise.
72843         * stdio-common/vfprintf.c: Likewise.
72844         * string/_strerror.c: Likewise.
72845         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
72846         * sysdeps/i386/i686/hp-timing.h: Likewise.
72847         * sysdeps/mach/_strerror.c: Likewise.
72848         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
72849         * sysdeps/mach/hurd/sethostid.c: Likewise.
72850         * sysdeps/mach/hurd/xmknodat.c: Likewise.
72851         * sysdeps/mach/xpg-strerror.c: Likewise.
72852         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
72853         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
72854         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
72855         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
72856         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
72857         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
72858         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
72859         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
72860         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
72861         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
72862         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
72863         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
72864         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
72865         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
72866         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
72867         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
72868         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
72869         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
72870         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
72871         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
72872         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
72873
72874         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
72875
72876         * stdio-common/_itoa.h: Moved to ...
72877         * sysdeps/generic/_itoa.h: Here.
72878
72879         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
72880
72881         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
72882         instead of "_itoa.h" and "_itowa.h".
72883         * stdio-common/vfprintf.: Likewise.
72884
72885 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72886
72887         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
72888         <bits/wordsize.h>.
72889         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
72890         (__signbit): Likwise.
72891         (llrintf): Likwise.
72892         (llrint): Likwise.
72893
72894 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72895
72896         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
72897         __WORDSIZE != 64.
72898
72899 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
72900
72901         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
72902         OVERFLOW_EXCEPTION_OK.
72903         * math/libm-test.inc ("Philosophy"): Update comment about
72904         exception testing.
72905         (OVERFLOW_EXCEPTION): Define.
72906         (OVERFLOW_EXCEPTION_OK): Likewise.
72907         (INVALID_EXCEPTION_OK): Renumber.
72908         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
72909         (IGNORE_ZERO_INF_SIGN): Likewise.
72910         (test_exceptions): Handle FE_OVERFLOW.
72911         (exp10_test): Expect overflow exceptions.
72912         (exp2_test): Likewise.
72913         (expm1_test): Likewise.
72914         (nextafter_test): Likewise.
72915         (pow_test): Likewise.
72916         (scalbn_test): Likewise.
72917         (scalbln_test): Likewise.
72918
72919 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72920
72921         * sysdeps/x86_64/bits/atomic.h
72922         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
72923         64bit integer.
72924         (atomic_exchange_acq): Likewise.
72925         (__arch_exchange_and_add_body): Likewise.
72926         (__arch_add_body): Likewise.
72927         (atomic_add_negative): Likewise.
72928         (atomic_add_zero): Likewise.
72929
72930 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72931
72932         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
72933         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
72934
72935 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72936
72937         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
72938         Check __x86_64__ instead of __WORDSIZE.
72939
72940 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72941
72942         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
72943
72944 2012-03-19  David S. Miller  <davem@davemloft.net>
72945
72946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72947
72948         * sysdeps/sparc/fpu/fenv_private.h: New file.
72949         * sysdeps/sparc/fpu/math_private.h: Use it.
72950         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
72951         Remove.
72952         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
72953         (libc_feholdexcept_setroundl): Remove.
72954         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
72955         Remove.
72956         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
72957         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
72958
72959 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72960
72961         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
72962         int64_t instead of long int.
72963         (INSERT_WORDS64): Likwise.
72964
72965 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72966
72967         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
72968         _Unwind_GetCFA return to _Unwind_Ptr first.
72969
72970 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
72971
72972         [BZ #13629]
72973         * math/s_clog.c: Include <float.h>.
72974         (__clog): Scale large or subnormal inputs.
72975         * math/s_clogf.c: Likewise.
72976         * math/s_clogl.c: Likewise.
72977         * math/s_clog10.c: Include <float.h>.
72978         (M_LOG10_2): Define.
72979         (__clog10): Scale large or subnormal inputs.
72980         * math/s_clog10f.c: Likewise.
72981         * math/s_clog10l.c: Likewise.
72982         * math/libm-test.inc (clog_test): Add more tests.
72983         (clog10_test): Likewise.
72984         * sysdeps/i386/fpu/libm-test-ulps: Update.
72985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72986
72987         [BZ #11451]
72988         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
72989         x and y.
72990         * math/libm-test.inc (atan2_test): Add another test.
72991
72992         * Makerules (common-objdir-compile): Remove.
72993         * sysdeps/unix/Makefile (config-generated): Do not add
72994         $(unix-generated) to variable.
72995         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
72996         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
72997         Remove rule.
72998         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
72999         Likewise.
73000         [generic bits/local_lim.h] (before-compile): Do not append to
73001         variable.
73002         [generic bits/local_lim.h] (common-generated): Likewise.
73003         [generic sys/param.h] (before-compile): Do not append to variable.
73004         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
73005         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
73006         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
73007         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
73008         include.
73009         [generic sys/param.h] (sys/param.h-includes): Remove variable.
73010         [generic sys/param.h] (sys/param.h-includes): Remove rule.
73011         [generic sys/param.h] ($(addprefix
73012         $(common-objpfx),$(sys/param.h-includes))): Likewise.
73013         [generic sys/param.h] (common-generated): Do not append to
73014         variable.
73015         [generic sys/param.h] (sysdep_headers): Likewise.
73016         [generic bits/errno.h] (before-compile): Do not append to
73017         variable.
73018         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
73019         rule.
73020         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
73021         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
73022         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
73023         [generic bits/errno.h] (common-generated): Do not append to
73024         variable.
73025         [generic bits/ioctls.h] (before-compile): Do not append to
73026         variable.
73027         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
73028         rule.
73029         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
73030         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
73031         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
73032         rule.
73033         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
73034         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
73035         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
73036         [generic bits/ioctls.h] (common-generated): Do not append to
73037         variable.
73038         [generic sys/syscall.h] (syscall.h): Remove variable.
73039         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
73040         rule.
73041         [generic sys/syscall.h] (before-compile): Do not append to
73042         variable.
73043         [generic sys/syscall.h] (common-generated): Likewise.
73044         * sysdeps/unix/errnos-tmpl.c: Remove file.
73045         * sysdeps/unix/errnos.awk: Likewise.
73046         * sysdeps/unix/ioctls-tmpl.c: Likewise.
73047         * sysdeps/unix/ioctls.awk: Likewise.
73048         * sysdeps/unix/mk-local_lim.c: Likewise.
73049         * sysdeps/unix/snarf-ioctls: Likewise.
73050
73051 2012-03-19  Richard Henderson  <rth@twiddle.net>
73052
73053         * sysdeps/i386/fpu/fenv_private.h: New file.
73054         * sysdeps/i386/fpu/math_private.h: Use it.
73055         (math_opt_barrier, math_force_eval): Remove.
73056         (libc_feholdexcept_setround_53bit): Remove.
73057         (libc_feupdateenv_53bit): Remove.
73058         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73059         (math_opt_barrier, math_force_eval): Remove.
73060         (libc_feholdexcept): Remove.
73061         (libc_feholdexcept_setround): Remove.
73062         (libc_fetestexcept, libc_fesetenv): Remove.
73063         (libc_feupdateenv_test): Remove.
73064         (libc_feupdateenv, libc_feholdsetround): Remove.
73065         (libc_feresetround): Remove.
73066
73067         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
73068         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
73069
73070         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
73071         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
73072         (libc_feupdateenv_testl): New.
73073         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
73074         (libc_feupdateenv_testf): New.
73075         (libc_feupdateenv): Use libc_feupdateenv_test.
73076         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
73077         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
73078
73079         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
73080         (libc_feholdsetroundf, libc_feholdsetroundl): New.
73081         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
73082         (libc_feresetround_noex): New.
73083         (libc_feresetround_noexf): New.
73084         (libc_feresetround_noexl): New.
73085         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
73086         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
73087         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
73088         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
73089         SET_RESTORE_ROUND.
73090         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
73091         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
73092         (__cos): Likewise.
73093         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
73094         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
73095         SET_RESTORE_ROUND_NOEX.
73096         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
73097         SET_RESTORE_ROUND_NOEXF.
73098         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
73099         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
73100         (libc_feholdsetroundf): New.
73101         (libc_feresetround, libc_feresetroundf): New.
73102
73103         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
73104         (libc_feholdexcept_setround_53bit): Convert from macro to function.
73105         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
73106
73107         * sysdeps/generic/math_private.h: Include <fenv.h>.
73108         (default_libc_feholdexcept): New.
73109         (default_libc_feholdexcept_setround): New.
73110         (default_libc_fesetenv, default_libc_feupdateenv): New.
73111         (libc_feholdexcept): Only define if undefined.
73112         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
73113         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
73114         (libc_feholdexcept_setroundl): Likewise.
73115         (libc_feholdexcept_setround_53bit): Likewise.
73116         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
73117         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
73118         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
73119         (libc_feupdateenv_53bit): Likewise.
73120         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
73121         (libc_feholdexcept): Convert from macro to inline function.
73122         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
73123         (libc_fesetenv, libc_feupdateenv): Likewise.
73124
73125         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
73126         not previously defined.
73127         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
73128         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
73129         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
73130         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
73131         * sysdeps/ieee754/flt-32/math_private.h: New file.
73132         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
73133         math_private.h below SET_FLOAT_WORD.
73134         (__isnan, __isinf_ns, __finite): Remove.
73135         (__isnanf, __isinf_nsf, __finitef): Remove.
73136
73137 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
73138
73139         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73140
73141 2012-03-17  David S. Miller  <davem@davemloft.net>
73142
73143         [BZ #6471]
73144         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
73145         for 2.16.
73146
73147 2012-03-16  David S. Miller  <davem@davemloft.net>
73148
73149         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
73150         warnings.
73151
73152         [BZ #6471]
73153         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
73154         properly.
73155         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
73156         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
73157         sysdep_routines when subdir is sysvipc.
73158         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
73159         __getshmlba helper.
73160
73161         * sysdeps/sparc/fpu/libm-test/ulps: Update.
73162
73163 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73164
73165         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
73166         [__LP64__].
73167
73168 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73169
73170         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
73171         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
73172         (__lround): Renamed to ...
73173         (__llround): This.  Replace long int with long long int.
73174         Define lround functions as aliases of llround functions.
73175         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
73176
73177 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73178
73179         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
73180         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
73181         adresses to uintptr_t.  Replace "long int" and "unsigned long
73182         int" with "greg_t" on va_arg.
73183
73184 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73185
73186         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
73187         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
73188
73189         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
73190         Move e_machine check before EI_CLASS check.  Handle x32
73191         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
73192         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
73193         SKIP_EM_IA_64 and include
73194         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
73195
73196         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
73197         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
73198         (add_system_dir): New macro.
73199
73200         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
73201         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
73202
73203 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73204
73205         [BZ #2551]
73206         [BZ #2552]
73207         [BZ #2553]
73208         [BZ #2554]
73209         [BZ #2562]
73210         [BZ #2563]
73211         [BZ #2565]
73212         [BZ #2566]
73213         [BZ #2576]
73214         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
73215         (y0): Likewise.
73216         * math/w_j0f.c (j0f): Likewise.
73217         (y0f): Likewise.
73218         * math/w_j0l.c (__j0l): Likewise.
73219         (__y0l): Likewise.
73220         * math/w_j1.c (j1): Likewise.
73221         (y1): Likewise.
73222         * math/w_j1f.c (j1f): Likewise.
73223         (y1f): Likewise.
73224         * math/w_j1l.c (__j1l): Likewise.
73225         (__y1l): Likewise.
73226         * math/w_jn.c (jn): Likewise.
73227         (yn): Likewise.
73228         * math/w_jnf.c (jnf): Likewise.
73229         (ynf): Likewise.
73230         * math/w_jnl.c (__jnl): Likewise.
73231         (__ynl): Likewise.
73232         * math/libm-test.inc (j0_test): Add more tests.
73233         (j1_test): Likewise.
73234         (jn_test): Likewise.  Add trailing semicolon to existing test.
73235         (y0_test): Likewise.
73236         (y1_test): Likewise.
73237         * sysdeps/i386/fpu/libm-test-ulps: Update.
73238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73239
73240         [BZ #13851]
73241         [BZ #13854]
73242         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
73243         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
73244         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
73245         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
73246         (__tanl): Set errno for infinite argument.
73247         * sysdeps/i386/fpu/mptan.c: Remove.
73248         * sysdeps/i386/fpu/s_tan.S: Likewise.
73249         * sysdeps/i386/fpu/s_tanl.S: Likewise.
73250         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
73251         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
73252         * math/libm-test.inc (tan_test): Add more tests and enable more
73253         tests for double and long double.
73254         * sysdeps/i386/fpu/libm-test-ulps: Update.
73255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73256
73257 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
73258
73259         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
73260         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
73261
73262 2012-03-16  Roland McGrath  <roland@hack.frob.com>
73263
73264         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
73265         * configure.in: Use it for both main tree and add-ons.
73266         * configure: Regenerated.
73267
73268 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73269
73270         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
73271
73272 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73273
73274         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
73275         in comment.
73276
73277         [BZ #13851]
73278         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
73279         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
73280         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
73281         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
73282         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
73283         infinite argument.
73284         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
73285         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
73286         != 0 for prec == 2.
73287         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
73288         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
73289         * sysdeps/i386/fpu/s_cosl.S: Likewise.
73290         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
73291         * sysdeps/i386/fpu/s_sinl.S: Likewise.
73292         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
73293         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
73294         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
73295         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
73296         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
73297         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
73298         * math/libm-test.inc (cos_test): Add more tests and enable more
73299         tests for long double.
73300         (sin_test): Likewise.
73301         (sincos_test): Likewise.
73302         * sysdeps/i386/fpu/libm-test-ulps: Update.
73303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73304
73305 2012-03-16  David S. Miller  <davem@davemloft.net>
73306
73307         * sysdeps/sparc/fpu/math_private.h: New file.
73308
73309 2012-03-15  David S. Miller  <davem@davemloft.net>
73310
73311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
73312         file.
73313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
73314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
73315         file.
73316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
73317         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
73318         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
73319         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
73320         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
73321         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
73322         sysdep routines.
73323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73324
73325         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
73326         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
73327
73328         * sysdeps/sparc/sparc-ifunc.h: New file.
73329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
73330         sparc-ifunc.h
73331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
73332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
73333         Likewise.
73334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
73335         Likewise.
73336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
73337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
73338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
73339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
73340         Likewise.
73341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
73342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
73343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
73344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
73345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
73346         Likewise.
73347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
73348         Likewise.
73349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
73350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
73351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
73352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
73353         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
73354         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
73355         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
73356         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
73357         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
73358         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
73359         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
73360         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
73361         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
73362         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
73363         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
73364         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
73365         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
73366         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
73367         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
73368         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
73369         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
73370         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
73371         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
73372         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
73373
73374 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73375
73376         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
73377         scaling.
73378         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73379
73380 2012-03-15  Andreas Jaeger  <aj@suse.de>
73381
73382         [BZ #13852]
73383         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
73384         ieee754/flt-32 implementation for sin, cos and sincos.
73385         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
73386         * sysdeps/i386/fpu/s_cosf.S: Likewise.
73387         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
73388         * sysdeps/i386/fpu/s_sinf.S: Likewise.
73389         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
73390         ieee754/flt-32 implementation for tan.
73391
73392         * math/libm-test.inc (cos_test): Enable some large input tests for
73393         float as well
73394         (sin_test): Likewise.
73395         (sincos_test): Likewise.
73396         (tan_test): Add tests for large input.
73397
73398         * sysdeps/i386/fpu/libm-test-ulps: Update.
73399
73400 2012-03-15  Andreas Jaeger  <aj@suse.de>
73401
73402         [BZ #13658]
73403         * math/libm-test.inc (cos_test): Add more test cases.
73404         (sin_test): Likewise.
73405         (sincos_test): Likewise.
73406
73407 2012-03-15  Andreas Jaeger  <aj@suse.de>
73408
73409         [BZ #13837]
73410         * math/libm-test.inc (cos_test): Add a test case for large input
73411         value.
73412         (sin_test): Likewise.
73413         (sincos_test): Likewise.
73414
73415 2012-03-15  Andreas Jaeger  <aj@suse.de>
73416             Joseph Myers  <joseph@codesourcery.com>
73417
73418         [BZ #13658]
73419         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
73420         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
73421         * sysdeps/i386/fpu/branred.c: Likewise.
73422         * sysdeps/i386/fpu/dosincos.c: Likewise.
73423         * sysdeps/i386/fpu/mpa.c: Likewise.
73424         * sysdeps/i386/fpu/s_cos.S: Likewise.
73425         * sysdeps/i386/fpu/s_sin.S: Likewise.
73426         * sysdeps/i386/fpu/s_sincos.S: Likewise.
73427         * sysdeps/i386/fpu/sincos32.c: Likewise.
73428
73429         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
73430         Define.
73431         (libc_feupdateenv_53bit): Define.
73432         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
73433         Define.
73434         (libc_feupdateenv_53bit): Define.
73435
73436         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
73437         53 bit (without extend i386 double precision).
73438
73439         * math/libm-test.inc (sincos_test): Add tests for large input.
73440         (sin): Likewise.
73441         (cos): Likewise.
73442
73443         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
73444
73445 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73446
73447         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73448
73449 2012-03-15  David S. Miller  <davem@davemloft.net>
73450
73451         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
73452         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
73453         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
73454         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
73455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
73456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
73457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
73458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
73459         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
73460         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
73461         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
73462         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
73463         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
73464         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
73465         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
73466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
73467         file.
73468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
73469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
73470         file.
73471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
73472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
73473         file.
73474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
73475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
73476         file.
73477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
73478         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
73479         fmin/fmax sysdep routines.
73480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73481
73482 2012-03-14  David S. Miller  <davem@davemloft.net>
73483
73484         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
73485         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
73486         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
73487         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
73488         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
73489         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
73490         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
73491         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
73492         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
73493         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
73494         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
73495         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
73496         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
73497         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
73498         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
73499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
73500         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
73501         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
73502         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
73503         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
73504         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
73505         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
73506         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
73507         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
73508         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
73509         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
73510         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
73511         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
73512         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
73513         routines.
73514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
73515         file.
73516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
73517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
73518         file.
73519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
73520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
73521         file.
73522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
73523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
73524         file.
73525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
73526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
73527         file.
73528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
73529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
73530         file.
73531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
73532         file.
73533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
73534         file.
73535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
73536         file.
73537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
73538         New file.
73539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
73540         file.
73541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
73542         file.
73543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
73544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
73545         file.
73546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
73547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
73548         file.
73549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
73550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
73551         file.
73552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
73553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
73554         VIS3 routines.
73555
73556         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
73557         New file.
73558
73559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73560
73561         * sysdeps/sparc/configure.in: New file.
73562         * sysdeps/sparc/configure: Generate.
73563         * configure.in (libc_cv_sparc_as_vis3): Substitute.
73564         * configure: Regenerate.
73565         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
73566         * config.make.in (have-as-vis3): New.
73567         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
73568         available use -Av9d instead of -Av9a.
73569         * sysdeps/sparc/sparc64/Makefile: Likewise.
73570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
73571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
73572         New file.
73573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
73574         file.
73575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
73576         New file.
73577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
73578         file.
73579         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
73580         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
73581         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
73582         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
73583         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
73584
73585         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
73586         fzeros/fnegs to load 0x80000000 into a float register instead of
73587         using the stack.
73588         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
73589
73590 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73591
73592         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73593         bits/syscall.h.
73594         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
73595         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
73596         ($(inst_includedir)/bits/syscall.h): Remove rule.
73597         ($(objpfx)bits/syscall.d): Include instead of
73598         $(objpfx)syscall-list.d.
73599         (generated): Change syscall-list.h and syscall-list.d to
73600         bits/syscall.h and bits/syscall.d.
73601
73602 2012-03-14  Roland McGrath  <roland@hack.frob.com>
73603
73604         [BZ #13846]
73605         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
73606
73607 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73608
73609         [BZ #13841]
73610         * math/s_csqrt.c: Include <float.h>.
73611         (__csqrt): Scale large or subnormal inputs.
73612         * math/s_csqrtf.c: Likewise.
73613         * math/s_csqrtl.c: Likewise.
73614         * math/libm-test.inc (csqrt_test): Add more tests.
73615         * sysdeps/i386/fpu/libm-test-ulps: Update.
73616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73617
73618         [BZ #13840]
73619         * math/libm-test.inc (hypot_test): Add more tests.
73620
73621 2012-03-13  David S. Miller  <davem@davemloft.net>
73622
73623         [BZ #13840]
73624         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
73625         double-precision for the calculation instead of scaling.
73626
73627 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
73628
73629         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
73630         manipulate bits before adding and subtracting TWO52[sx].
73631         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
73632         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
73633         Likewise.
73634         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
73635
73636 2012-03-13  David S. Miller  <davem@davemloft.net>
73637
73638         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
73639         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
73640         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
73641         rtld-global-offsets.h
73642         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73643
73644         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
73645         large parameters.
73646
73647         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
73648
73649         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
73650         'err' in the ifdef scope in which it is actually used.
73651
73652         * nss/nss_db/db-init.c: Include string.h
73653
73654 2012-03-12  David S. Miller  <davem@davemloft.net>
73655
73656         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73657         masking out of the most significant byte of random value used.
73658         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73659         Fix coding style in previous change.
73660
73661         * sysdeps/unix/sysv/linux/kernel-features.h
73662         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
73663         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
73664         expression.
73665         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
73666         later.
73667
73668 2012-03-11  David S. Miller  <davem@davemloft.net>
73669
73670         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
73671         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
73672         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
73673         for 'resultvar' otherwise things get truncated on 64-bit.
73674
73675         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73676         Fix masking out of the most significant byte of random value used.
73677
73678         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73679
73680 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
73681
73682         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73683
73684 2012-03-09  David S. Miller  <davem@davemloft.net>
73685
73686         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
73687         variables with appropriate CPP guards.
73688         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
73689         from the frame pointer, not the stack pointer.  Correct layout
73690         comments.  Fix test on resulting framesize and the management of
73691         the outregs buffer for pltexit.  Preserve floating point return
73692         values across _dl_call_pltexit call.
73693         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
73694         framesize and the management of the outregs buffer for pltexit.
73695         Preserve floating point return values across _dl_call_pltexit
73696         call.
73697         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
73698         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
73699         (la_sparc64_gnu_pltexit): New functions.
73700         (print_exit): Fix format string for return register value.
73701
73702 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
73703
73704         * sunrpc/Makefile (others): Add rpcgen.
73705         ($(objpfx)rpcgen): Remove special build rule and dependency on
73706         libc.
73707         * sunrpc/rpcgen.c: New file.
73708
73709 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         [BZ #13673]
73712         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
73713         * stdio-common/bug-vfprintf-nargs.c: Likewise.
73714         * sysdeps/i386/crti.S: Likewise.
73715         * sysdeps/i386/crtn.S: Likewise.
73716         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
73717         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
73718         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
73719         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
73720         * sysdeps/sh/crti.S: Likewise.
73721         * sysdeps/sh/crtn.S: Likewise.
73722         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73723
73724         [BZ #13673]
73725         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
73726         with URL.
73727         * locale/programs/locfile-kw.gperf: Likewise.
73728         * locale/programs/charmap-kw.h: Regenerated.
73729         * locale/programs/locfile-kw.h: Likewise.
73730
73731         [BZ #13673]
73732         * intl/plural.y: Replace FSF snail mail address with URL.
73733         * intl/plural.c: Regenerated.
73734
73735 2012-03-09  Richard Henderson  <rth@twiddle.net>
73736
73737         * include/math_private.h: Remove file.
73738         * math/math_private.h: Move file ...
73739         * sysdeps/generic/math_private.h: ... here.
73740
73741         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
73742         * sysdeps/powerpc/fpu/math_private.h: Likewise.
73743         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73744
73745         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
73746         and <math_private.h>.
73747         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73748         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73749         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73750         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73751         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73752         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
73753         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
73754         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
73755         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
73756         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
73757         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
73758         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
73759         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
73760         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
73761         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
73762         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
73763         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
73764         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
73765         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
73766         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
73767         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
73768         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
73769         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
73770         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
73771         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
73772         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
73773         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
73774         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
73775         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
73776         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73777         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
73778         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
73779         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
73780         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
73781         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73782         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73783         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
73784         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73785         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73786         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73787         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
73788         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73789         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73790         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73791         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
73792         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73793         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
73794         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
73795         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
73796         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73797         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
73798         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
73799         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
73800         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
73801         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
73802         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
73803         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
73804         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
73805         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
73806         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
73807         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
73808         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
73809         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
73810         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
73811         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
73812         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
73813         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
73814         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
73815         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
73816         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
73817         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
73818         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
73819         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
73820         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
73821         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
73822         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
73823         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
73824         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
73825         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
73826         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
73827         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
73828         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
73829         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
73830         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
73831         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
73832         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
73833         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
73834         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
73835         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
73836         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
73837         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
73838         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
73839         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
73840         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
73841         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
73842         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
73843         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
73844         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
73845         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73846         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
73847         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
73848         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
73849         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
73850         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
73851         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
73852         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
73853         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
73854         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
73855         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
73856         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
73857         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
73858         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
73859         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
73860         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
73861         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
73862         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
73863         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
73864         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
73865         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
73866         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
73867         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
73868         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
73869         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
73870         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
73871         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
73872         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
73873         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
73874         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
73875         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
73876         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
73877         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
73878         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
73879         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
73880         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
73881         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
73882         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73883         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
73884         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
73885         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
73886         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
73887         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
73888         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73889         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73890         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
73891         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
73892         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
73893         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
73894         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
73895         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
73896         * sysdeps/ieee754/k_standard.c: Likewise.
73897         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
73898         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
73899         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
73900         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
73901         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
73902         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
73903         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
73904         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
73905         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
73906         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
73907         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73908         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
73909         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
73910         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
73911         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
73912         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
73913         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
73914         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
73915         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
73916         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
73917         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
73918         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
73919         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
73920         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
73921         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
73922         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
73923         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
73924         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
73925         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
73926         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
73927         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
73928         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
73929         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
73930         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
73931         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
73932         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
73933         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
73934         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
73935         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
73936         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
73937         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
73938         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
73939         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
73940         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
73941         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
73942         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
73943         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
73944         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
73945         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
73946         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
73947         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
73948         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
73949         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
73950         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
73951         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
73952         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
73953         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
73954         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
73955         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
73956         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
73957         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
73958         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
73959         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
73960         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
73961         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
73962         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
73963         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
73964         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
73965         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
73966         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
73967         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
73968         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73969         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
73970         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
73971         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
73972         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
73973         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
73974         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
73975         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
73976         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
73977         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
73978         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
73979         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
73980         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
73981         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
73982         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
73983         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
73984         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
73985         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73986         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
73987         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
73988         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
73989         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
73990         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
73991         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
73992         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
73993         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
73994         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
73995         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
73996         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
73997         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
73998         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
73999         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
74000         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
74001         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
74002         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
74003         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
74004         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
74005         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
74006         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
74007         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
74008         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
74009         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
74010         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
74011         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
74012         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
74013         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
74014         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
74015         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
74016         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
74017         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
74018         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
74019         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
74020         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
74021         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
74022         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
74023         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
74024         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
74025         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
74026         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
74027         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
74028         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
74029         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
74030         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
74031         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
74032         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
74033         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
74034         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
74035         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
74036         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
74037         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
74038         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
74039         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
74040         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
74041         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
74042         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
74043         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
74044         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
74045         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
74046         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
74047         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
74048         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
74049         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
74050         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
74051         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
74052         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
74053         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
74054         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
74055         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
74056         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
74057         * sysdeps/ieee754/s_lib_version.c: Likewise.
74058         * sysdeps/ieee754/s_matherr.c: Likewise.
74059         * sysdeps/ieee754/s_signgam.c: Likewise.
74060         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
74061         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
74062         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
74063         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
74064         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
74065         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74066         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
74067         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
74068         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
74069         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
74070         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
74071         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
74072         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
74073         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
74074         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
74075         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
74076         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
74077         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
74078         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
74079         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
74080         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
74081
74082 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74083
74084         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
74085         * sunrpc/rpc_main.c: Likewise.
74086         * sunrpc/rpc_svcout.c: Likewise.
74087
74088 2012-03-09  David S. Miller  <davem@davemloft.net>
74089
74090         * include/math_private.h: New file.
74091
74092 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74093
74094         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
74095         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
74096         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
74097         from <bits/socket_type.h>.
74098         (enum __socket_type): Don't define here.
74099         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
74100         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74101         bits/socket_type.h.
74102
74103         [BZ #13566]
74104         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
74105         checking __USE_GNU.
74106
74107         * Makerules ($(inst_includedir)/%.h): New rule.
74108         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
74109         (install-others): Remove variable setting.
74110         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
74111
74112 2012-03-08  Richard Henderson  <rth@twiddle.net>
74113
74114         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
74115         from macro to inline function; merge with the
74116         !__LIBC_INTERNAL_MATH_INLINES version.
74117         (__ieee754_sqrtf): Likewise.
74118
74119         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
74120         to inline function.
74121         (__rintf, __floor, __floorf): Likewise.
74122
74123         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
74124         macro to inline function.
74125         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
74126
74127         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
74128         not <math/math_private.h>.
74129
74130 2012-03-08  David S. Miller  <davem@davemloft.net>
74131
74132         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
74133         copyright year.
74134         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
74135
74136 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
74137
74138         * resolv/gai_misc.c (handle_requests): Fix struct timespec
74139         normalization.
74140         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
74141         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
74142
74143 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
74144
74145         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
74146         be defined individually, they must be defined as a block.  Define
74147         S for printing a string instead of hidint the different by using a
74148         macro for adding the 'l'.
74149         * stdio-common/tst-fphex-wide.c: Adjust.
74150
74151 2012-03-07  Marek Polacek  <polacek@redhat.com>
74152
74153         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
74154
74155 2012-03-08  Marek Polacek  <polacek@redhat.com>
74156
74157         [BZ #13806]
74158         * stdio-common/Makefile (tests): Add tst-fphex-wide.
74159         * stdio-common/tst-fphex.c: Define a few macros to make the
74160         test reusable.  Use them.
74161         * stdio-common/tst-fphex-wide.c: New file.
74162
74163 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
74164
74165         [BZ #6911]
74166         * manual/macros.texi (gnusystems): New macro.
74167         (nongnusystems): Likewise.
74168         (gnulinuxhurdsystems): Likewise.
74169         (gnuhurdsystems): Likewise..
74170         (gnulinuxsystems): Likewise.
74171         * manual/charset.texi: Use new macros or @theglibc{} to refer to
74172         variants of the GNU system, not "GNU system".
74173         * manual/conf.texi: Likewise.
74174         * manual/errno.texi: Likewise.  Update example of errno macro
74175         expansion.
74176         * manual/filesys.texi: Likewise.
74177         (getumask): Document as specific to GNU/Hurd.
74178         * manual/install.texi: Likewise.  Reword some references to
74179         GNU/Linux.
74180         * manual/intro.texi: Likewise.
74181         * manual/io.texi: Likewise.
74182         (File Name Portability): Detail which constraints are inapplicable
74183         to all GNU systems and which are only inapplicable to GNU/Hurd.
74184         * manual/job.texi: Likewise.
74185         * manual/llio.texi: Likewise.
74186         (O_NOCTTY): Document as present on GNU/Linux.
74187         * manual/maint.texi: Likewise.
74188         * manual/memory.texi: Likewise.
74189         * manual/pattern.texi: Likewise.
74190         * manual/pipe.texi: Likewise.
74191         * manual/process.texi: Likewise.
74192         * manual/resource.texi: Likewise.
74193         (RUSAGE_CHILDREN): Remove statement about specifying a particular
74194         child on GNU/Hurd.
74195         * manual/setjmp.texi: Likewise.
74196         * manual/signal.texi: Likewise.
74197         * manual/startup.texi: Likewise.
74198         * manual/stdio.texi: Likewise.
74199         * manual/terminal.texi: Likewise.
74200         (ONLCR): Document as POSIX.
74201         (OXTABS): Document availability on GNU/Linux as XTABS.
74202         (ONOEOT): Document availability separately from other bits.
74203         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
74204         * manual/time.texi: Likewise.
74205         * manual/users.texi: Likewise.
74206         * INSTALL: Regenerated.
74207         * sysdeps/gnu/errlist.c: Regenerated.
74208
74209         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
74210         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
74211         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
74212         puts.
74213         * configure: Regenerated.
74214
74215 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
74216
74217         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
74218         default includes instead of AC_HEADER_CHECK.
74219         * sysdeps/i386/configure: Regenerated.
74220
74221         [BZ #10716]
74222         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
74223         * math/s_cacoshf.c (__cacoshf): Likewise.
74224         * math/s_cacoshl.c (__cacoshl): Likewise.
74225         * math/s_casinh.c (__casinh): Set signs of result from argument.
74226         * math/s_casinhf.c (__casinhf): Likewise.
74227         * math/s_casinhl.c (__casinhl): Likewise.
74228         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
74229         (casinh_test): Add more tests.
74230         * sysdeps/i386/fpu/libm-test-ulps: Update.
74231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74232
74233 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
74234
74235         * po/zh_TW.po: Update from translation team.
74236
74237         * login/Makefile (distribute): Remove variable.
74238         * catgets/Makefile: Likewise.
74239         * mach/Makefile: Likewise.
74240         * malloc/Makefile: Likewise.
74241         * misc/Makefile: Likewise.
74242         * iconv/Makefile: Likewise.
74243         * nscd/Makefile: Likewise.
74244         * hurd/Makefile: Likewise.
74245         * manual/Makefile: Likewise.
74246         * locale/Makefile: Likewise.
74247         * intl/Makefile: Likewise.
74248         * conform/Makefile: Likewise.
74249         * nss/Makefile: Likewise.
74250         * time/Makefile: Likewise.
74251         * soft-fp/Makefile: Likewise.
74252         * dirent/Makefile: Likewise.
74253         * gmon/Makefile: Likewise.
74254         * po/Makefile: Likewise.
74255         * rt/Makefile: Likewise.
74256         * socket/Makefile: Likewise.
74257         * math/Makefile: Likewise.
74258         * signal/Makefile: Likewise.
74259         * debug/Makefile: Likewise.
74260         * elf/Makefile: Likewise.
74261         * timezone/Makefile: Likewise.
74262         * stdlib/Makefile: Likewise.
74263         * iconvdata/Makefile: Likewise.
74264         * sunrpc/Makefile: Likewise.
74265         * io/Makefile: Likewise.
74266         * argp/Makefile: Likewise.
74267         * inet/Makefile: Likewise.
74268         * hesiod/Makefile: Likewise.
74269         * grp/Makefile: Likewise.
74270         * csu/Makefile: Likewise.
74271         * wctype/Makefile: Likewise.
74272         * crypt/Makefile: Likewise.
74273         * libio/Makefile: Likewise.
74274         * string/Makefile: Likewise.
74275         * nis/Makefile: Likewise.
74276         * resolv/Makefile: Likewise.
74277         * stdio-common/Makefile: Likewise.
74278         * wcsmbs/Makefile: Likewise.
74279         * dlfcn/Makefile: Likewise.
74280         * posix/Makefile: Likewise.
74281
74282         [BZ #6959]
74283         * timezone/Makefile: Don't install timezone files, just the programs
74284         and scripts.
74285
74286 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
74287
74288         * nss/databases.def: Add missing gshadow entry.
74289
74290         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
74291
74292 2012-03-06  Marek Polacek  <polacek@redhat.com>
74293
74294         [BZ #13726]
74295         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
74296         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
74297         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
74298         * stdio-common/tst-long-dbl-fphex.c: New file.
74299
74300 2012-03-06  David S. Miller  <davem@davemloft.net>
74301
74302         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
74303         (set_obp_int): New function.
74304         (get_obp_int): New function.
74305         (__get_clockfreq_via_dev_openprom): Likewise.
74306         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
74307         Avoid unused variable warnings on 'val' and use builtin_expect.
74308         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
74309         __builtin_expect.
74310         (INLINE_CLONE_SYSCALL): Likewise.
74311
74312 2012-03-05  David S. Miller  <davem@davemloft.net>
74313
74314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74315
74316 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
74317
74318         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74319
74320         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
74321         only for |x| >= 40.
74322         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74323
74324 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
74325
74326         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
74327         Replace gettimeofday with __vdso_gettimeofday.
74328
74329         * sysdeps/unix/sysv/linux/x86_64/init-first.c
74330         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
74331         __vdso_clock_gettime and __vdso_getcpu.
74332
74333         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
74334         time with __vdso_time.
74335
74336 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74337
74338         * manual/lang.texi (size_t): Note types to which size_t may be
74339         equivalent with the GNU C Library, but do not describe when
74340         differences between them are significant.
74341
74342 2012-03-05  Andreas Jaeger  <aj@suse.de>
74343
74344         * sysdeps/i386/fpu/libm-test-ulps: Update.
74345
74346 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74347
74348         [BZ #3976]
74349         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
74350         (__ieee754_pow): Save and restore rounding mode and use
74351         round-to-nearest for main computations.
74352         * math/libm-test.inc (pow_test_tonearest): New function.
74353         (pow_test_towardzero): Likewise.
74354         (pow_test_downward): Likewise.
74355         (pow_test_upward): Likewise.
74356         (main): Call the new functions.
74357         * sysdeps/i386/fpu/libm-test-ulps: Update.
74358         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74359
74360         [BZ #3976]
74361         * math/libm-test.inc (cosh_test_tonearest): New function.
74362         (cosh_test_towardzero): Likewise.
74363         (cosh_test_downward): Likewise.
74364         (cosh_test_upward): Likewise.
74365         (sinh_test_tonearest): Likewise.
74366         (sinh_test_towardzero): Likewise.
74367         (sinh_test_downward): Likewise.
74368         (sinh_test_upward): Likewise.
74369         (main): Call the new functions.
74370         * sysdeps/i386/fpu/libm-test-ulps: Update.
74371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74372
74373 2012-03-05  Tom de Vries  <tom@codesourcery.com>
74374
74375         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
74376         default stack guard is set in last bytes.
74377         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
74378
74379 2012-03-05  Kees Cook  <keescook@chromium.org>
74380
74381         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
74382
74383         [BZ #13656]
74384         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
74385         possibly allocate from heap instead of stack.
74386         * stdio-common/bug-vfprintf-nargs.c: New file.
74387         * stdio-common/Makefile (tests): Add nargs overflow test.
74388
74389 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
74390
74391         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74392
74393 2012-03-03  Marek Polacek  <polacek@redhat.com>
74394
74395         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
74396         * math/math_private.h: Likewise.
74397         * stdlib/tst-strtod.c: Likewise.
74398         * sysdeps/i386/i486/bits/atomic.h: Likewise.
74399         * sysdeps/x86_64/bits/atomic.h: Likewise.
74400
74401 2012-03-02  David S. Miller  <davem@davemloft.net>
74402
74403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
74404         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
74405         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
74406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
74407         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
74408         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
74409         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
74410         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
74411
74412 2012-03-02  Roland McGrath  <roland@hack.frob.com>
74413
74414         [BZ #13792]
74415         * manual/examples/README: New file, says the example source files
74416         can be used under GPL>=2.
74417         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
74418         line containing just "*/".
74419         * manual/examples/add.c: Add copyright header (GPL>=2).
74420         * manual/examples/argp-ex1.c: Likewise.
74421         * manual/examples/argp-ex2.c: Likewise.
74422         * manual/examples/argp-ex3.c: Likewise.
74423         * manual/examples/argp-ex4.c: Likewise.
74424         * manual/examples/atexit.c: Likewise.
74425         * manual/examples/db.c: Likewise.
74426         * manual/examples/dir.c: Likewise.
74427         * manual/examples/dir2.c: Likewise.
74428         * manual/examples/execinfo.c: Likewise.
74429         * manual/examples/filecli.c: Likewise.
74430         * manual/examples/filesrv.c: Likewise.
74431         * manual/examples/fmtmsgexpl.c: Likewise.
74432         * manual/examples/genpass.c: Likewise.
74433         * manual/examples/inetcli.c: Likewise.
74434         * manual/examples/inetsrv.c: Likewise.
74435         * manual/examples/isockad.c: Likewise.
74436         * manual/examples/longopt.c: Likewise.
74437         * manual/examples/memopen.c: Likewise.
74438         * manual/examples/memstrm.c: Likewise.
74439         * manual/examples/mkfsock.c: Likewise.
74440         * manual/examples/mkisock.c: Likewise.
74441         * manual/examples/mygetpass.c: Likewise.
74442         * manual/examples/pipe.c: Likewise.
74443         * manual/examples/popen.c: Likewise.
74444         * manual/examples/rprintf.c: Likewise.
74445         * manual/examples/search.c: Likewise.
74446         * manual/examples/select.c: Likewise.
74447         * manual/examples/setjmp.c: Likewise.
74448         * manual/examples/sigh1.c: Likewise.
74449         * manual/examples/sigusr.c: Likewise.
74450         * manual/examples/stpcpy.c: Likewise.
74451         * manual/examples/strdupa.c: Likewise.
74452         * manual/examples/strftim.c: Likewise.
74453         * manual/examples/strncat.c: Likewise.
74454         * manual/examples/subopt.c: Likewise.
74455         * manual/examples/swapcontext.c: Likewise.
74456         * manual/examples/termios.c: Likewise.
74457         * manual/examples/testopt.c: Likewise.
74458         * manual/examples/testpass.c: Likewise.
74459         * manual/examples/timeval_subtract.c: Likewise.
74460
74461         [BZ #13792]
74462         * manual/time.texi (Elapsed Time): Move timeval_subtract example
74463         function to ...
74464         * manual/timeval_subtract.c.texi: ... here, new file.
74465
74466 2012-03-02  David S. Miller  <davem@davemloft.net>
74467
74468         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
74469
74470 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
74471
74472         [BZ #3976]
74473         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
74474         (__sin): Save and restore rounding mode and use round-to-nearest
74475         for all computations.
74476         (__cos): Save and restore rounding mode and use round-to-nearest
74477         for all computations.
74478         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
74479         <fenv.h>.
74480         (tan): Save and restore rounding mode and use round-to-nearest for
74481         all computations.
74482         * math/libm-test.inc (cos_test_tonearest): New function.
74483         (cos_test_towardzero): Likewise.
74484         (cos_test_downward): Likewise.
74485         (cos_test_upward): Likewise.
74486         (sin_test_tonearest): Likewise.
74487         (sin_test_towardzero): Likewise.
74488         (sin_test_downward): Likewise.
74489         (sin_test_upward): Likewise.
74490         (tan_test_tonearest): Likewise.
74491         (tan_test_towardzero): Likewise.
74492         (tan_test_downward): Likewise.
74493         (tan_test_upward): Likewise.
74494         (main): Call the new functions.
74495         * sysdeps/i386/fpu/libm-test-ulps: Update.
74496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74497
74498         [BZ #10135]
74499         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
74500         small n, then large n, before computing and testing k+n.
74501         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
74502         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
74503         Likewise.
74504         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
74505         Likewise.
74506         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
74507         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
74508         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
74509         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
74510         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
74511         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
74512         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
74513         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
74514         * math/libm-test.inc (scalbn_test): Add more tests.
74515         (scalbln_test): Likewise.
74516
74517         * manual/filesys.texi (mode_t): Describe constraints on size and
74518         signedness, not exact equivalence to a particular type.
74519         (ino_t): Likewise.
74520         (ino64_t): Likewise.
74521         (dev_t): Likewise.
74522         (nlink_t): Likewise.
74523         (blkcnt_t): Likewise.
74524         (blkcnt64_t): Likewise.
74525         * manual/llio.texi (off_t): Likewise.
74526
74527         [BZ #3976]
74528         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
74529         (__ieee754_exp): Save and restore rounding mode and use
74530         round-to-nearest for all computations.
74531         * math/libm-test.inc (exp_test_tonearest): New function.
74532         (exp_test_towardzero): Likewise.
74533         (exp_test_downward): Likewise.
74534         (exp_test_upward): Likewise.
74535         (main): Call the new functions.
74536         * sysdeps/i386/fpu/libm-test-ulps: Update.
74537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74538
74539 2012-03-01  Chris Demetriou  <cgd@google.com>
74540
74541         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
74542         have predictable order.
74543
74544 2012-03-01  David S. Miller  <davem@davemloft.net>
74545
74546         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
74547
74548         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
74549         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
74550         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
74551         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
74552
74553         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
74554         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
74555         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
74556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
74557         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
74558         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
74559         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
74560         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
74561         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
74562
74563         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74564
74565         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
74566         * sysdeps/sparc/fpu/libm-test-ulps: to here.
74567         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
74568
74569         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
74570         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
74571         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74572         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
74573         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
74574         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
74575         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
74576         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
74577         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74578         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
74579         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
74580         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74581         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
74582         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74583         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74584         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74585         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
74586         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
74587         * sysdeps/sparc/elf/configure: Regenerated.
74588
74589 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
74590
74591         * configure.in (AS, LD): Require binutils 2.20 or later.
74592         * configure: Regenerated.
74593         * manual/install.texi (Tools for Compilation): Give binutils 2.20
74594         as required minimum version.
74595         * INSTALL: Regenerated.
74596
74597         [BZ #2541]
74598         [BZ #4108]
74599         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
74600         before squaring exponent.
74601         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
74602         bottom long double and 27 bits of top long double before squaring
74603         exponent.
74604         * math/libm-test.inc (erfc_test): Add more tests.
74605         * sysdeps/i386/fpu/libm-test-ulps: Update.
74606         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74608
74609 2012-03-01  Kai Tietz  <ktietz@redhat.com>
74610
74611         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
74612         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
74613         containing bit-fields.
74614         * soft-fp/extended.h (_FP_UNION_E): Likewise.
74615         * soft-fp/single.h (_FP_UNION_S): Likewise.
74616         * soft-fp/double.h (_FP_UNION_D): Likewise.
74617
74618 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74619
74620         [BZ #13786]
74621         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
74622         not include ../strcmp.S.
74623         [USE_AS_STRNCASECMP_L]: Likewise.
74624         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
74625         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
74626         * sysdeps/i386/i686/multiarch/strncase_l-c.c
74627         (__strncasecmp_l_ia32): Define as alias to
74628         __strncasecmp_l_nonascii.
74629
74630         [BZ #5794]
74631         * math/libm-test.inc (expm1_test): Add test for bug 5794.
74632         * sysdeps/i386/fpu/libm-test-ulps: Update.
74633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74634
74635         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
74636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74637
74638 2012-02-29  Jeff Law  <law@redhat.com>
74639
74640         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
74641         out of bounds read.
74642
74643 2012-02-29  Marek Polacek  <polacek@redhat.com>
74644
74645         [BZ #13706]
74646         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
74647         * elf/Makefile: Add rules to run tst-unused-dep.out.
74648
74649 2012-02-28  David S. Miller  <davem@davemloft.net>
74650
74651         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
74652         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
74653         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
74654         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
74655         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
74656         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
74657
74658 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74659
74660         * math/libm-test.inc (llround_test): Move one test from
74661         lround_test.  Use TEST_f_L in moved test.
74662         (lround_test): Move misplaced test to llround_test.  Add testcase
74663         from bug 2561.
74664
74665 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
74666
74667         * sysdeps/x86_64/fpu/e_expf.S: New file.
74668         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
74669
74670 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
74671
74672         [BZ #13637]
74673         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
74674         of remain_len that may cause incomplete multi-byte character and
74675         false match.
74676         * posix/bug-regex33.c: New file.
74677         * posix/Makefile (tests): Add bug-regex33.
74678
74679 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
74680
74681         * manual/macros.texi: New file.
74682         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
74683         * manual/libc.texinfo: Include macros.texi.
74684         * manual/creatute.texi: Likewise.
74685         * manual/install.texi: Likewise.
74686         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
74687         @glibcadj{} in references to the GNU C Library.
74688         * manual/charset.texi: Likewise.
74689         * manual/conf.texi: Likewise.
74690         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
74691         when not using those macros.
74692         * manual/creature.texi: Likewise.
74693         * manual/crypt.texi: Likewise.
74694         * manual/errno.texi: Likewise.
74695         * manual/filesys.texi: Likewise.
74696         * manual/header.texi: Likewise.
74697         * manual/install.texi: Likewise.
74698         * manual/intro.texi: Likewise.
74699         * manual/io.texi: Likewise.
74700         * manual/job.texi: Likewise.
74701         * manual/lang.texi: Likewise.
74702         * manual/libc.texiinfo: Likewise.
74703         * manual/llio.texi: Likewise.
74704         * manual/locale.texi: Likewise.
74705         * manual/maint.texi: Likewise.
74706         * manual/math.texi: Likewise.
74707         * manual/memory.texi: Likewise.
74708         * manual/message.texi: Likewise.
74709         * manual/nss.texi: Likewise.
74710         * manual/pattern.texi: Likewise.
74711         * manual/process.texi: Likewise.
74712         * manual/resource.texi: Likewise.
74713         * manual/search.texi: Likewise.
74714         * manual/setjmp.texi: Likewise.
74715         * manual/signal.texi: Likewise.
74716         * manual/socket.texi: Likewise.
74717         * manual/startup.texi: Likewise.
74718         * manual/stdio.texi: Likewise.
74719         * manual/string.texi: Likewise.
74720         * manual/sysinfo.texi: Likewise.
74721         * manual/syslog.texi: Likewise.
74722         * manual/terminal.texi: Likewise.
74723         * manual/time.texi: Likewise.
74724         * manual/users.texi: Likewise.
74725         * INSTALL: Regenerated.
74726         * NOTES: Regenerated.
74727         * sysdeps/gnu/errlist.c: Regenerated.
74728
74729 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
74730
74731         * include/dirent.h: Include <dirstream.h> before
74732         <dirent/dirent.h>.
74733
74734 2012-02-28  David S. Miller  <davem@davemloft.net>
74735
74736         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
74737         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
74738         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
74739         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
74740
74741 2012-02-27  David S. Miller  <davem@davemloft.net>
74742
74743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
74744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
74745         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
74746         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
74747
74748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
74749         frame pointer instead of stack pointer relative arg slot.
74750         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74751         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74752         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74753
74754 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
74755
74756         [BZ #3992]
74757         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
74758
74759 2012-02-27  David S. Miller  <davem@davemloft.net>
74760
74761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
74762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
74764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
74765         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74766         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74767         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
74768         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
74769
74770 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74771
74772         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
74773         later.  Allow versions 5-9.
74774         * configure: Regenerated.
74775         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
74776         required minimum version and 4.6 as recommended version.  Do not
74777         mention bugs in GCC 2.7 and 2.8.
74778         * INSTALL: Regenerated.
74779
74780 2012-02-27  David S. Miller  <davem@davemloft.net>
74781
74782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
74783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
74784         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
74785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
74786         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
74787         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
74788         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
74789         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
74790
74791         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
74792         manipulate bits before adding and subtracting TWO112[sx].
74793         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
74794
74795 2012-02-27  Roland McGrath  <roland@hack.frob.com>
74796
74797         [BZ #13775]
74798         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
74799         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
74800         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
74801         being in POSIX, because they are in 1003.1-2008.
74802
74803         * rt/tst-aio.c: Include <fcntl.h>.
74804         * rt/tst-aio7.c: Likewise.
74805         * rt/tst-aio64.c: Likewise.
74806
74807         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
74808
74809 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74810
74811         * manual/install.texi (--with-headers): Describe headers as
74812         interface headers, not private headers.
74813         (Specific advice for GNU/Linux systems): Describe use of headers
74814         from "make headers_install", not private headers from older
74815         kernels.
74816         * INSTALL: Regenerated.
74817         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
74818         Change to 2.6.19.
74819         * sysdeps/unix/sysv/linux/configure: Regenerated.
74820
74821         * manual/llio.texi (fclean): Remove documentation.
74822
74823         * manual/Makefile (libc-texi-generated): New variable.  Include
74824         version.texi.
74825         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
74826         $(libc-texi-generated), not duplicated list of files.
74827         (version.texi, stamp-version): New rules.
74828         (realclean): Remove $(libc-texi-generated), not individual files
74829         from that list.  Do not remove dir-add.texinfo.
74830         * manual/libc.texinfo: Comment out uses of edition numbers and
74831         references to printed manual.  Remove last-updated dates.
74832         (EDITION): Comment out.
74833         (ISBN): Likewise.
74834         (VERSION, UPDATED): Remove.
74835         (version.texi): Include.
74836
74837 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
74838
74839         * sysdeps/posix/spawni.c: Include <signal.h>.
74840         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
74841         * sysdeps/pthread/aio_fsync.c: Likewise.
74842
74843 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
74844
74845         * conform/Makefile (tests): Run only when not cross-compiling and
74846         when fast-check is not defined.
74847
74848         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
74849         * conform/data/limits.h-data: Fixes for POSIX2008.
74850         * conform/run-conformtest.sh: Run all tests.
74851         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
74852         headers.
74853         * include/bits/dlfcn.h: Likewise.
74854         * include/langinfo.h: Likewise.
74855         * include/monetary.h: Likewise.
74856         * include/sys/poll.h: Likewise.
74857
74858         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
74859         for __USE_GNU.
74860         * posix/spawn.h: Define __need_sigset_t.
74861         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
74862         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
74863         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
74864         to get sigevent_t only.
74865         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
74866         only for __USE_GNU.
74867         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
74868         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74869         process_vm_writev only for __USE_GNU.
74870         * termios/termios.h: Declare tcgetsid also for POSIX2008.
74871
74872         * conform/Makefile: For now ignore errors from run-conformtest.
74873         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
74874         POSIX to avoid namespace pollution.  Don't prepend headers.
74875         * conform/data/aio.h-data: Fixes for POSIX testing.
74876         * conform/data/fcntl.h-data: Likewise.
74877         * conform/data/glob.h-data: Likewise.
74878         * conform/data/grp.h-data: Likewise.
74879         * conform/data/pthread.h-data: Likewise.
74880         * conform/data/pwd.h-data: Likewise.
74881         * conform/data/signal.h-data: Likewise.
74882         * conform/data/spawn.h-data: Likewise.
74883         * conform/data/stdio.h-data: Likewise.
74884         * conform/data/stdlib.h-data: Likewise.
74885         * conform/data/stropts.h-data: Likewise.
74886         * conform/data/sys/mman.h-data: Likewise.
74887         * conform/data/sys/stat.h-data: Likewise.
74888         * conform/data/sys/types.h-data: Likewise.
74889         * conform/data/sys/wait.h-data: Likewise.
74890         * conform/data/time.h-data: Likewise.
74891         * conform/data/unistd.h-data: Likewise.
74892         * conform/data/utime.h-data: Likewise.
74893
74894         * io/sys/stat.h: fchmod was always in POSIX.
74895         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
74896         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
74897         * rt/aio.h: Define __need_timespec before including <time.h>.
74898         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
74899         struct.  Add forward declaration of pthread_attr_t and use it in
74900         sigevent.
74901         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74902         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74903         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
74904         always remove CLK_TCK definition.
74905
74906 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
74907
74908         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
74909
74910 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
74911
74912         * conform/run-conformtest.sh: New file.
74913         * conform/Makefile: Run run-conformtest for tests.
74914         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
74915         support.
74916
74917         * conform/data/uchar.h-data: New file.
74918         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
74919         * conform/data/arpa/inet.h-data: Likewise.
74920         * conform/data/assert.h-data: Likewise.
74921         * conform/data/complex.h-data: Likewise.
74922         * conform/data/cpio.h-data: Likewise.
74923         * conform/data/ctype.h-data: Likewise.
74924         * conform/data/dirent.h-data: Likewise.
74925         * conform/data/dlfcn.h-data: Likewise.
74926         * conform/data/errno.h-data: Likewise.
74927         * conform/data/fcntl.h-data: Likewise.
74928         * conform/data/float.h-data: Likewise.
74929         * conform/data/fmtmsg.h-data: Likewise.
74930         * conform/data/fnmatch.h-data: Likewise.
74931         * conform/data/ftw.h-data: Likewise.
74932         * conform/data/glob.h-data: Likewise.
74933         * conform/data/grp.h-data: Likewise.
74934         * conform/data/iconv.h-data: Likewise.
74935         * conform/data/inttypes.h-data: Likewise.
74936         * conform/data/langinfo.h-data: Likewise.
74937         * conform/data/libgen.h-data: Likewise.
74938         * conform/data/limits.h-data: Likewise.
74939         * conform/data/locale.h-data: Likewise.
74940         * conform/data/math.h-data: Likewise.
74941         * conform/data/monetary.h-data: Likewise.
74942         * conform/data/mqueue.h-data: Likewise.
74943         * conform/data/ndbm.h-data: Likewise.
74944         * conform/data/net/if.h-data: Likewise.
74945         * conform/data/netdb.h-data: Likewise.
74946         * conform/data/netinet/in.h-data: Likewise.
74947         * conform/data/nl_types.h-data: Likewise.
74948         * conform/data/poll.h-data: Likewise.
74949         * conform/data/pthread.h-data: Likewise.
74950         * conform/data/pwd.h-data: Likewise.
74951         * conform/data/regex.h-data: Likewise.
74952         * conform/data/sched.h-data: Likewise.
74953         * conform/data/search.h-data: Likewise.
74954         * conform/data/semaphore.h-data: Likewise.
74955         * conform/data/setjmp.h-data: Likewise.
74956         * conform/data/signal.h-data: Likewise.
74957         * conform/data/spawn.h-data: Likewise.
74958         * conform/data/stdarg.h-data: Likewise.
74959         * conform/data/stdio.h-data: Likewise.
74960         * conform/data/stdlib.h-data: Likewise.
74961         * conform/data/string.h-data: Likewise.
74962         * conform/data/strings.h-data: Likewise.
74963         * conform/data/stropts.h-data: Likewise.
74964         * conform/data/sys/ipc.h-data: Likewise.
74965         * conform/data/sys/mman.h-data: Likewise.
74966         * conform/data/sys/msg.h-data: Likewise.
74967         * conform/data/sys/resource.h-data: Likewise.
74968         * conform/data/sys/select.h-data: Likewise.
74969         * conform/data/sys/sem.h-data: Likewise.
74970         * conform/data/sys/shm.h-data: Likewise.
74971         * conform/data/sys/socket.h-data: Likewise.
74972         * conform/data/sys/stat.h-data: Likewise.
74973         * conform/data/sys/statvfs.h-data: Likewise.
74974         * conform/data/sys/time.h-data: Likewise.
74975         * conform/data/sys/timeb.h-data: Likewise.
74976         * conform/data/sys/times.h-data: Likewise.
74977         * conform/data/sys/types.h-data: Likewise.
74978         * conform/data/sys/uio.h-data: Likewise.
74979         * conform/data/sys/un.h-data: Likewise.
74980         * conform/data/sys/utsname.h-data: Likewise.
74981         * conform/data/sys/wait.h-data: Likewise.
74982         * conform/data/syslog.h-data: Likewise.
74983         * conform/data/tar.h-data: Likewise.
74984         * conform/data/termios.h-data: Likewise.
74985         * conform/data/utime.h-data: Likewise.
74986         * conform/data/utmpx.h-data: Likewise.
74987         * conform/data/varargs.h-data: Likewise.
74988         * conform/data/wchar.h-data: Likewise.
74989         * conform/data/wctype.h-data: Likewise.
74990         * conform/data/wordexp.h-data: Likewise.
74991
74992         * include/stropts.h: New file.
74993         * include/uchar.h: New file.
74994         * include/aio.h: Changes to allow conformtest.pl to use the headers.
74995         * include/assert.h: Likewise.
74996         * include/ctype.h: Likewise.
74997         * include/dirent.h: Likewise.
74998         * include/dlfcn.h: Likewise.
74999         * include/fcntl.h: Likewise.
75000         * include/fnmatch.h: Likewise.
75001         * include/glob.h: Likewise.
75002         * include/grp.h: Likewise.
75003         * include/libio.h: Likewise.
75004         * include/locale.h: Likewise.
75005         * include/math.h: Likewise.
75006         * include/net/if.h: Likewise.
75007         * include/netdb.h: Likewise.
75008         * include/netinet/in.h: Likewise.
75009         * include/pthread.h: Likewise.
75010         * include/pwd.h: Likewise.
75011         * include/regex.h: Likewise.
75012         * include/sched.h: Likewise.
75013         * include/search.h: Likewise.
75014         * include/setjmp.h: Likewise.
75015         * include/signal.h: Likewise.
75016         * include/stdio.h: Likewise.
75017         * include/stdlib.h: Likewise.
75018         * include/string.h: Likewise.
75019         * include/sys/cdefs.h: Likewise.
75020         * include/sys/mman.h: Likewise.
75021         * include/sys/msg.h: Likewise.
75022         * include/sys/resource.h: Likewise.
75023         * include/sys/select.h: Likewise.
75024         * include/sys/socket.h: Likewise.
75025         * include/sys/stat.h: Likewise.
75026         * include/sys/statvfs.h: Likewise.
75027         * include/sys/time.h: Likewise.
75028         * include/sys/times.h: Likewise.
75029         * include/sys/uio.h: Likewise.
75030         * include/sys/utsname.h: Likewise.
75031         * include/sys/wait.h: Likewise.
75032         * include/termios.h: Likewise.
75033         * include/time.h: Likewise.
75034         * include/ulimit.h: Likewise.
75035         * include/unistd.h: Likewise.
75036         * include/utime.h: Likewise.
75037         * include/wchar.h: Likewise.
75038         * include/wctype.h: Likewise.
75039         * include/wordexp.h: Likewise.
75040
75041         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
75042
75043         * time/time.h: TIME_UTC must be a macro.
75044         Make timespec_get available for ISO C11 only as well.
75045
75046 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
75047
75048         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
75049         Reported by Peng Haitao <penght@cn.fujitsu.com>.
75050
75051 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75052
75053         * configure.in: Use -o not -a in test for unsupported multi-arch.
75054
75055 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75056
75057         * manual/texinfo.tex: Update to version 2012-01-19.16.
75058
75059 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75060
75061         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
75062
75063 2012-02-24  Roland McGrath  <roland@hack.frob.com>
75064
75065         [BZ #13738]
75066         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
75067         * manual/fdl-1.3.texi: New file.
75068         * manual/fdl-1.1.texi: File removed.
75069
75070         [BZ #13738]
75071         * manual/libc.texinfo (FDL_VERSION): New @set.
75072         Use it for mention of FDL in cover text.
75073         (Documentation License): Use it in @include file name.
75074
75075 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75076             Roland McGrath  <roland@hack.frob.com>
75077
75078         [BZ #5461]
75079         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
75080         (not LONG_LONG_MAX and LONG_LONG_MIN.
75081         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
75082         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
75083         name.
75084         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
75085
75086 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75087
75088         [BZ #2547]
75089         [BZ #11365]
75090         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
75091         manipulate bits before adding and subtracting TWO23[sx].
75092         * math/libm-test.inc (nearbyint_test): Add more tests.
75093
75094 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75095
75096         [BZ #2548]
75097         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
75098         bits before adding and subtracting TWO23[sx].
75099         * math/libm-test.inc (rint_test): Add more tests.
75100         (rint_test_tonearest): Likewise.
75101         (rint_test_towardzero): Likewise.
75102         (rint_test_downward): Likewise.
75103         (rint_test_upward: Likewise.
75104
75105 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75106
75107         [BZ #10110]
75108         * include/stdc-predef.h: New file.  Extracted from features.h.
75109         * include/features.h: Include stdc-predef.h.
75110         * Makefile (headers): Add stdc-predef.h.
75111         * CONFORMANCE (Compiler limitations): Update.
75112
75113 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75114
75115         * manual/libc.texinfo (VERSION, UPDATED): Revert.
75116
75117 2012-02-21  David S. Miller  <davem@davemloft.net>
75118
75119         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
75120         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75121
75122 2012-02-20  David S. Miller  <davem@davemloft.net>
75123
75124         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
75125         using a normal save/restore sequence, rather than allocating a
75126         dummy stack frame just to store a frame pointer and restore.
75127         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75128
75129 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75130
75131         * manual/install.texi: Fix stray word in line-wrapped comment.
75132
75133 2012-02-20  David S. Miller  <davem@davemloft.net>
75134
75135         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
75136         both binutils and gcc support GOTDATA.
75137
75138         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
75139         "rd %pc" in the PIC register setup sequences.
75140
75141         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
75142         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
75143         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
75144         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
75145         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
75146         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
75147         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
75148         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75149         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
75150         (SYSCALL_ERROR_HANDLER): Likewise.
75151         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
75152         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
75153         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
75154         (SYSCALL_ERROR_HANDLER): Likewise.
75155
75156         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
75157         (HAVE_GCC_GOTDATA): New.
75158         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
75159         relocation support in both binutils and gcc.
75160         * sysdeps/sparc/elf/configure: Regenerate.
75161
75162         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
75163         * sysdeps/sparc/sparc32/elf/configure: Delete.
75164         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
75165         * sysdeps/sparc/sparc64/elf/configure: Delete.
75166         * sysdeps/sparc/elf/configure.in: New file.
75167         * sysdeps/sparc/elf/configure: Generate.
75168
75169         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
75170         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
75171         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
75172         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
75173         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
75174
75175 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75176
75177         * manual/install.texi: Do not mention specific glibc version
75178         numbers.
75179         * manual/libc.texinfo (VERSION, UPDATED): Update.
75180         (@copying): Use @copyright{} and range of years.
75181
75182 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75183
75184         [BZ #13695]
75185         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
75186         [crti.S not in sysdirs] (generated): Do not append.
75187         [crti.S not in sysdirs] (omit-deps): Likewise.
75188         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
75189         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
75190         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
75191         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
75192         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
75193         Likewise.
75194         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
75195         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
75196         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
75197         * csu/defs.awk: Remove file.
75198         * sysdeps/generic/initfini.c: Likewise.
75199         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
75200         variable.
75201         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
75202         Likewise.
75203
75204 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75205
75206         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
75207         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
75208         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
75209         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
75210         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
75211         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
75212         <bits/epoll.h>.
75213         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
75214         (__EPOLL_PACKED): Define to empty if not defined by
75215         <bits/epoll.h>.
75216         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
75217         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75218         bits/epoll.h.
75219
75220 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75221
75222         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
75223         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
75224         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
75225         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
75226         <bits/timerfd.h>.
75227         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
75228         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75229         bits/timerfd.h.
75230
75231 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75232
75233         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
75234         in C locale.
75235         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75236         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
75237         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
75238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75239
75240 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
75241
75242         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75243         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75244
75245 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
75246
75247         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
75248         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
75249         defined.
75250         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
75251         Likewise.
75252         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
75253         entry for 2.16.
75254
75255 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
75256
75257         * math/w_acos.c: Use non-signaling floating-point comparisons.
75258         * math/w_acosf.c: Likewise.
75259         * math/w_acosh.c: Likewise.
75260         * math/w_acoshf.c: Likewise.
75261         * math/w_acoshl.c: Likewise.
75262         * math/w_acosl.c: Likewise.
75263         * math/w_asin.c: Likewise.
75264         * math/w_asinf.c: Likewise.
75265         * math/w_asinl.c: Likewise.
75266         * math/w_atanh.c: Likewise.
75267         * math/w_atanhf.c: Likewise.
75268         * math/w_atanhl.c: Likewise.
75269         * math/w_exp2.c: Likewise.
75270         * math/w_exp2f.c: Likewise.
75271         * math/w_exp2l.c: Likewise.
75272         * math/w_j0.c: Likewise.
75273         * math/w_j0f.c: Likewise.
75274         * math/w_j0l.c: Likewise.
75275         * math/w_j1.c: Likewise.
75276         * math/w_j1f.c: Likewise.
75277         * math/w_j1l.c: Likewise.
75278         * math/w_jn.c: Likewise.
75279         * math/w_jnf.c: Likewise.
75280         * math/w_log.c: Likewise.
75281         * math/w_log10.c: Likewise.
75282         * math/w_log10f.c: Likewise.
75283         * math/w_log10l.c: Likewise.
75284         * math/w_log2.c: Likewise.
75285         * math/w_log2f.c: Likewise.
75286         * math/w_log2l.c: Likewise.
75287         * math/w_logf.c: Likewise.
75288         * math/w_logl.c: Likewise.
75289         * math/w_sqrt.c: Likewise.
75290         * math/w_sqrtf.c: Likewise.
75291         * math/w_sqrtl.c: Likewise.
75292         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75293         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
75294         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75295         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
75296         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
75297
75298 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75299
75300         [BZ #9739]
75301         * manual/string.texi (strnlen): Use correct parameter name in
75302         equivalent expression.
75303
75304 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75305
75306         [BZ #11174]
75307         * manual/users.texi (seteuid): Consistently use neweuid for
75308         argument name.
75309
75310 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75311
75312         [BZ #13704]
75313         * manual/nss.texi (Services in the NSS configuration): Correct
75314         list of services in example configuration file.
75315
75316 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
75317
75318         [BZ #11322]
75319         * manual/arith.texi: Remove statements about negative zero
75320         behaving identically to zero.
75321
75322 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75323
75324         [BZ #5993]
75325         * manual/install.texi: Do not document upgrading from libc5.
75326
75327 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75328
75329         [BZ #4596]
75330         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
75331
75332 2012-02-18  David S. Miller  <davem@davemloft.net>
75333
75334         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
75335         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
75336         %o7 across the call.
75337         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
75338         instead.
75339         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
75340         SETUP_PIC_REG_LEAF.
75341         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75342         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
75343         * sysdeps/sparc/crtn.S: Likewise.
75344
75345 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
75346
75347         * aout/Makefile: Remove.
75348
75349 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
75350
75351         [BZ #13058]
75352         * manual/examples/argp-ex1.c (main): Format definition in GNU
75353         style.
75354         * manual/examples/argp-ex2.c (main): Likewise.
75355         * manual/examples/argp-ex3.c (main): Likewise.
75356         * manual/examples/argp-ex4.c (main): Likewise.
75357         * manual/examples/longopt.c (main): Use new-style prototype
75358         definition.
75359         * manual/examples/strncat.c (main): Specify return type and use
75360         (void) for arguments.
75361         * manual/examples/subopt.c (main): Use char **argv argument.
75362
75363 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75364
75365         [BZ #5077]
75366         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
75367         rounding modes.
75368
75369 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
75370
75371         [BZ #6907]
75372         * manual/string.texi (strchr): Change when strchrnul is
75373         recommended.
75374
75375 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
75376
75377         [BZ #174]
75378         * manual/locale.texi (setlocale): Document LOCPATH.
75379
75380 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75381
75382         [BZ #10210]
75383         * manual/process.texi (execle): Move @dots{} before last argument.
75384
75385 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
75386
75387         [BZ #12047]
75388         * manual/charset.texi (Generic Charset Conversion): Fix typo
75389         (LC_TYPE -> LC_CTYPE).
75390
75391 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
75392
75393         [BZ #5805]
75394         * manual/arith.texi (scalbn): Use @var{} on parameter names.
75395         (scalbnf): Likewise.
75396         (scalbnl): Likewise.
75397         (scalbln): Likewise.
75398         (scalblnf): Likewise.
75399         (scalblnl): Likewise.
75400         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
75401         (vwarnx): Likewise.
75402         (verr): Likewise.
75403         (verrx): Likewise.
75404         * manual/filesys.texi (telldir): Use braces around return type.
75405         * manual/llio.texi (mmap): Add space after comma.
75406         (mmap64): Likewise.
75407         * manual/math.texi (jn): Use @var{} on parameter names.
75408         (jnf): Likewise.
75409         (jnl): Likewise.
75410         (yn): Likewise.
75411         (ynf): Likewise.
75412         (ynl): Likewise.
75413         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
75414         line.
75415         * manual/resource.texi (ulimit): Use @dots{} instead of literal
75416         "...".
75417         (sched_get_priority_min): Remove semicolon on @deftypefun line.
75418         (sched_get_priority_max): Likewise.
75419         * manual/signal.texi (sigvec): Add space after comma.
75420         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
75421         names.
75422         (if_indextoname): Likewise.
75423         (if_freenameindex): Likewise.
75424         (sendto): Use ',' instead of '.' in prototype.
75425         * manual/startup.texi (syscall): Use @dots{} instead of literal
75426         "...".
75427         * manual/stdio.texi (__fpending): Separate initial words of
75428         paragraph from @deftypefun line.
75429         * manual/syslog.texi (syslog): Use @dots{} instead of literal
75430         "...".
75431         (vsyslog): Use @var{} on parameter names.
75432         * manual/terminal.texi (stty): Use @var{} on parameter names.
75433         * manual/users.texi (getutmp): Use @var{} on parameter names.
75434         (getutmpx): Likewise.
75435
75436 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75437
75438         [BZ #6884]
75439         * manual/stdio.texi (fopen): Fix typos in description of
75440         ",ccs=STRING".
75441
75442 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
75443
75444         [BZ #4026]
75445         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
75446         get clock_id definition.
75447
75448 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
75449
75450         [BZ #4822]
75451         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
75452         (madvise): Cast every argument to void on its own.
75453
75454 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75455
75456         [BZ #9902]
75457         * manual/startup.texi (Exit Status): Fix typo.
75458
75459 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75460
75461         [BZ #10140]
75462         * manual/examples/argp-ex1.c: Include <stdlib.h>.
75463         * manual/examples/argp-ex2.c: Likewise.
75464         * manual/examples/argp-ex3.c: Likewise.
75465
75466 2012-02-16  Richard Henderson  <rth@redhat.com>
75467
75468         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
75469         * sysdeps/s390/s390-32/initfini.c: Remove.
75470         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
75471         * sysdeps/s390/s390-64/initfini.c: Remove.
75472
75473 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75474
75475         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
75476         compiler output for sysdeps/generic/initfini.c.
75477         * sysdeps/sh/elf/initfini.c: Remove file.
75478
75479 2012-02-16  David S. Miller  <davem@davemloft.net>
75480
75481         [BZ #11494]
75482         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
75483
75484         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
75485         * sysdeps/sparc/crti.S: New file.
75486         * sysdeps/sparc/crtn.S: New file.
75487         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
75488         * sysdeps/sparc/sparc64/Makefile: Likewise.
75489
75490 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
75491
75492         [BZ #3335]
75493         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
75494
75495 2012-02-15  Roland McGrath  <roland@hack.frob.com>
75496
75497         [BZ #4822]
75498         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
75499
75500         * mach/devstream.c (cookie_io_functions_t): Macro removed.
75501         (write, read, close): Likewise.
75502         Patch by Aurelien Jarno <aurelien@aurel32.net>.
75503
75504 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
75505
75506         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
75507         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
75508         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
75509         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
75510         <bits/signalfd.h>.
75511         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
75512         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75513         bits/signalfd.h.
75514
75515 2012-02-14  Marek Polacek  <polacek@redhat.com>
75516
75517         * sysdeps/x86_64/crti.S: New file.
75518         * sysdeps/x86_64/crtn.S: New file.
75519         * sysdeps/x86_64/elf/initfini.c: Remove file.
75520
75521 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75522
75523         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
75524         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
75525         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
75526         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
75527         <bits/inotify.h>.
75528         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
75529         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75530         bits/inotify.h.
75531
75532 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75533
75534         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
75535         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
75536         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
75537         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
75538         <bits/eventfd.h>.
75539         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
75540         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75541         bits/eventfd.h.
75542
75543 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
75544
75545         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
75546         __feraiseexcept instead of feraiseexcept.
75547
75548         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
75549         nanosleep invocations.
75550         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
75551         strings, and add error checking for a nanosleep invocations.
75552
75553 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         Replace FSF snail mail address with URLs, as per GNU coding standards.
75556         Most of the snail mail addresses were wrong anyway, and omitting
75557         them makes the source code easier to maintain.  Almost all of the
75558         changes are to license notices and to locale LC_IDENTIFICATION
75559         addresses, except for this one:
75560         * manual/libc.texinfo: In "Published by", give the FSF's URL,
75561         not its snail mail address.
75562
75563 2012-02-09  Richard Henderson  <rth@twiddle.net>
75564
75565         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
75566         of kernel-features.h.
75567
75568         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
75569
75570 2012-02-08  Marek Polacek  <polacek@redhat.com>
75571
75572         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
75573         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
75574         * sysdeps/gnu/_G_config.h: Likewise.
75575         * sysdeps/generic/_G_config.h: Likewise.
75576
75577 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
75578
75579         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
75580         tests.
75581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75582
75583         * sysdeps/powerpc/powerpc32/crti.S: New file.
75584         * sysdeps/powerpc/powerpc32/crtn.S: New file.
75585         * sysdeps/powerpc/powerpc64/crti.S: New file.
75586         * sysdeps/powerpc/powerpc64/crtn.S: New file.
75587
75588         * Makeconfig (have-initfini): Don't set.
75589         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
75590         * configure.in (nopic_initfini): Don't substitute.
75591         * config.h.in (HAVE_INITFINI): Don't #undef.
75592         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
75593         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
75594
75595 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
75596
75597         Support crti.S and crtn.S provided directly by architectures.
75598         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
75599         [crti.S in sysdirs] (omit-deps): Likewise.
75600         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
75601         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
75602         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
75603         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
75604         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
75605         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
75606         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
75607         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
75608         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
75609         compiler output for sysdeps/generic/initfini.c.
75610         * sysdeps/i386/elf/Makefile: Remove file.
75611         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
75612
75613 2012-02-07  Marek Polacek  <polacek@redhat.com>
75614
75615         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
75616         * sysdeps/gnu/_G_config.h: Likewise.
75617         * sysdeps/mach/hurd/_G_config.h: Likewise.
75618
75619 2012-02-07  Marek Polacek  <polacek@redhat.com>
75620
75621         * math/Makefile (tests): Add tst-CMPLX2.
75622         * math/tst-CMPLX2.c: New file.
75623
75624 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
75625
75626         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75627
75628         * math/libm-test.inc (jn_test): Add missing L suffix.
75629
75630 2012-02-06  Marek Polacek  <polacek@redhat.com>
75631
75632         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
75633         * sysdeps/i386/fpu/e_powf.S: Likewise.
75634         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75635         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
75636         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75637         * sysdeps/i386/fpu/e_pow.S: Likewise.
75638         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
75639         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75640         * sysdeps/i386/fpu/s_expm1.S: Likewise.
75641         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
75642         * sysdeps/i386/fpu/e_log2.S: Likewise.
75643         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75644         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75645         * sysdeps/i386/fpu/e_powl.S: Likewise.
75646         * sysdeps/i386/fpu/s_log1p.S: Likewise.
75647         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75648         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
75649         * sysdeps/i386/fpu/e_logl.S: Likewise.
75650         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
75651         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
75652         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
75653         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
75654         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75655         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75656         * sysdeps/i386/fpu/e_log.S: Likewise.
75657         * sysdeps/i386/fpu/s_cexp.S: Likewise.
75658         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75659         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
75660         * sysdeps/i386/fpu/e_logf.S: Likewise.
75661         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75662         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75663         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
75664         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
75665         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
75666         * sysdeps/i386/fpu/e_log10.S: Likewise.
75667         * sysdeps/i386/fpu/s_frexp.S: Likewise.
75668         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75669         * sysdeps/i386/fpu/s_asinh.S: Likewise.
75670         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
75671         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75672         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
75673         * sysdeps/i386/asm-syntax.h: Likewise.
75674         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75675         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75676         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75677         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75678         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
75679         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75680         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
75681         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
75682         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75683         * sysdeps/powerpc/sysdep.h: Likewise.
75684         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
75685         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
75686
75687 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75688
75689         [BZ #411]
75690         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
75691
75692 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75693
75694         * sysdeps/i386/sysdep.h: Include <features.h>.
75695         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
75696         version.
75697
75698 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
75699
75700         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
75701         Define.
75702         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
75703         LOAD_PIC_REG_STR.
75704
75705 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75706
75707         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
75708         (SETUP_PIC_REG): Use GET_PC_THUNK.
75709         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
75710         macro.
75711
75712 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75713
75714         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
75715         for non-PIC compilation.
75716         (SETUP_PIC_REG): Add .p2align directive.
75717         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
75718         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
75719         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
75720         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
75721         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
75722         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
75723         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
75724         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75725         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
75726         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
75727         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
75728         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
75729         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
75730         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
75731         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
75732         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
75733         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
75734         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
75735         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
75736         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
75737         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
75738         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
75739         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
75740         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
75741         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
75742         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
75743         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
75744         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
75745         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
75746         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
75747         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
75748         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
75749         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
75750         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
75751         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
75752         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
75753         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
75754         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
75755         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
75756         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
75757         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
75758
75759 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75760
75761         * math/tst-CMPLX.c: Include <stdio.h>.
75762
75763 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
75764
75765         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
75766         float.
75767         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75768         * sysdeps/sparc/bits/mathdef.h: Likewise.
75769
75770 2012-01-31  Marek Polacek  <polacek@redhat.com>
75771
75772         * libio/libio.h: Don't define _PARAMS.
75773         * locale/programs/config.h: Don't define PARAMS.
75774         * stdlib/strtol_l.c: Likewise.
75775         (__strtol_l): Remove PARAMS from the prototype.
75776
75777 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
75778
75779         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
75780         names.  Just use the correct names.  Remove unnecessary wrapper
75781         functions.
75782         * malloc/arena.c: Likewise.
75783         * malloc/hooks.c: Likewise.
75784
75785         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
75786         ARENA_TEST says not to.  Simplify test for creation of a new arena.
75787         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
75788
75789 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
75790
75791         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
75792         into tail calls.
75793         (update_get_addr): New function.
75794         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
75795         GET_ADDR_MODULE parameter.
75796
75797 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75798
75799         * crypt/cert.c: Remove __STDC__ conditionals.
75800         * crypt/crypt-entry.c: Likewise.
75801         * crypt/crypt_util.c: Likewise.
75802         * libio/filedoalloc.c: Likewise.
75803         * libio/fileops.c: Likewise.
75804         * libio/genops.c: Likewise.
75805         * libio/iofclose.c: Likewise.
75806         * libio/iofdopen.c: Likewise.
75807         * libio/iofopen.c: Likewise.
75808         * libio/iofopen64.c: Likewise.
75809         * libio/iogetdelim.c: Likewise.
75810         * libio/iopopen.c: Likewise.
75811         * libio/obprintf.c: Likewise.
75812         * libio/oldfileops.c: Likewise.
75813         * libio/oldiofclose.c: Likewise.
75814         * libio/oldiofdopen.c: Likewise.
75815         * libio/oldiofopen.c: Likewise.
75816         * libio/oldiopopen.c: Likewise.
75817         * libio/wfiledoalloc.c: Likewise.
75818         * libio/wgenops.c: Likewise.
75819         * locale/programs/xmalloc.c: Likewise.
75820         * misc/syslog.c: Likewise.
75821         * stdio-common/xbug.c: Likewise.
75822         * string/memchr.c: Likewise.
75823         * string/memcmp.c: Likewise.
75824         * string/memrchr.c: Likewise.
75825         * string/rawmemchr.c: Likewise.
75826         * sysdeps/posix/getcwd.c: Likewise.
75827         * time/strftime_l.c: Likewise.
75828
75829 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75830
75831         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
75832         * config.make.in (config-cflags-sse2avx): Define.
75833         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
75834         Fix typo.
75835
75836 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
75837
75838         * scripts/config.guess: Update from upstream config git repository.
75839         * scripts/config.sub: Likewise.
75840
75841 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
75842
75843         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
75844         (EM_NUM): Update.
75845         (R_TILEPRO_*, R_TILEGX_*): New macros.
75846
75847         * scripts/firstversions.awk: Fix bug in version range handling.
75848
75849         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
75850
75851         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
75852
75853         * include/sys/epoll.h: New file.
75854         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
75855         libc_hidden_def.
75856
75857 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
75858
75859         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
75860         Avoid unnecessary __WORDSIZE == 64 test.
75861         (fmaxf): Use VEX format if possible.
75862         (fmax): Likewise.
75863         (fminf): Likewise.
75864         (fmin): Likewise.
75865
75866         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
75867         * math/math_private.h: Remove libc_fegetround* and
75868         libc_fesetround*.
75869         * sysdeps/i386/configure.in: Check for -msse2avx.
75870         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
75871         also if SSE2AVX is defined.
75872         Remove libc_fegetround* and libc_fesetround*.
75873         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
75874         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
75875         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
75876         of HAS_YMM_USABLE.
75877         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75878         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75879         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75880         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75881         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75882
75883         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
75884
75885 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75886
75887         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
75888         size is not set.
75889         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75890
75891 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
75892
75893         [BZ #13618]
75894         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
75895         relocation.
75896         * Makeconfig (libm): Define.
75897         * elf/Makefile: Add rules to build and run tst-relsort1.
75898         * elf/tst-relsort1.c: New file.
75899         * elf/tst-relsort1mod1.c: New file.
75900         * elf/tst-relsort1mod2.c: New file.
75901
75902 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
75903
75904         * math/s_ldexp.c: Remove __STDC__ conditionals.
75905         * math/s_ldexpf.c: Likewise.
75906         * math/s_ldexpl.c: Likewise.
75907         * math/s_nextafter.c: Likewise.
75908         * math/s_nexttowardf.c: Likewise.
75909         * math/s_significand.c: Likewise.
75910         * math/s_significandf.c: Likewise.
75911         * math/s_significandl.c: Likewise.
75912         * math/w_jnl.c: Likewise.
75913         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
75914         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
75915         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
75916         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
75917         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
75918         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
75919         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
75920         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
75921         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
75922         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
75923         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
75924         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
75925         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
75926         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
75927         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
75928         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
75929         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
75930         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
75931         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
75932         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75933         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75934         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
75935         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
75936         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
75937         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
75938         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
75939         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
75940         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
75941         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
75942         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
75943         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
75944         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
75945         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
75946         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
75947         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
75948         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
75949         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
75950         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
75951         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
75952         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
75953         * sysdeps/ieee754/k_standard.c: Likewise.
75954         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75955         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
75956         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
75957         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
75958         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
75959         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
75960         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
75961         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
75962         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
75963         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
75964         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
75965         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
75966         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
75967         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
75968         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
75969         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
75970         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
75971         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
75972         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
75973         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
75974         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
75975         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
75976         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
75977         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
75978         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
75979         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
75980         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75981         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75982         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
75983         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
75984         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
75985         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
75986         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
75987         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
75988         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
75989         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
75990         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
75991         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
75992         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
75993         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
75994         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
75995         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
75996         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
75997         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
75998         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
75999         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
76000         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
76001         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
76002         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
76003         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
76004         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
76005         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
76006         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
76007         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
76008         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
76009         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
76010         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
76011         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
76012         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
76013         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
76014         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
76015         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
76016         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
76017         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
76018         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
76019         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
76020         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
76021         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
76022         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
76023         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
76024         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
76025         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
76026         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
76027         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
76028         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
76029         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
76030         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
76031         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
76032         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
76033         * sysdeps/ieee754/s_matherr.c: Likewise.
76034         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
76035         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
76036         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
76037         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
76038
76039 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76040
76041         * crypt/md5.h: Remove __STDC__ conditionals.
76042         * libio/libioP.h: Likewise.
76043         * locale/programs/config.h: Likewise.
76044         * sysdeps/generic/sysdep.h: Likewise.
76045         * sysdeps/i386/asm-syntax.h: Likewise.
76046         * sysdeps/s390/asm-syntax.h: Likewise.
76047         * sysdeps/unix/sysdep.h: Likewise.
76048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
76049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
76050
76051 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76052
76053         * libio/libio.h: Remove __STDC__ conditionals.
76054         * malloc/obstack.h: Likewise.
76055         * math/complex.h: Likewise.
76056         * math/math.h: Likewise.
76057         * sysdeps/generic/_G_config.h: Likewise.
76058         * sysdeps/gnu/_G_config.h: Likewise.
76059         * sysdeps/mach/hurd/_G_config.h: Likewise.
76060         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76061         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
76062         * sysdeps/sparc/bits/mathdef.h: Likewise.
76063
76064 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
76065
76066         [BZ #13583]
76067         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
76068         Clean up HAS_* macros.
76069         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
76070         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
76071         possible.
76072         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
76073         HAS_AVX.
76074         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76075         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76076         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76077         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76078         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76079
76080 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
76081
76082         * elf/tst-unique3.cc (gets): Remove declaration.
76083         * elf/tst-unique3lib.cc (gets): Likewise.
76084         * elf/tst-unique3lib2.cc (gets): Likewise.
76085         * elf/tst-unique4.cc (gets): Likewise.
76086
76087 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
76088
76089         * include/stdio.h: Add C++ protection.  Add gets declarations and
76090         definitions.
76091         * debug/tst-chk1.c: Don't declare gets here.
76092         * stdio-common/tst-gets.c: Likewise.
76093
76094 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76095
76096         * posix/glob: Remove directory.
76097
76098 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76099
76100         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
76101
76102 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
76103
76104         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
76105         of the non-standard EPFNOSUPPORT.
76106
76107 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76108
76109         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
76110         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
76111         ANYWHERE set to 1 only on KERN_NO_SPACE error.
76112
76113 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
76114
76115         * wcsmbs/uchar.h: Test __STDC_VERSION__.
76116
76117 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
76118
76119         * nscd/aicache.c (addhstaiX): Do not cache negative results of
76120         transient errors.
76121         * nscd/grpcache.c (cache_addgr): Likewise.
76122         * nscd/hstcache.c (cache_addhst): Likewise.
76123         * nscd/initgrcache.c (addinitgroupsX): Likewise.
76124         * nscd/pwdcache.c (cache_addpw): Likewise.
76125         * nscd/servicescache.c (cache_addserv): Likewise.
76126
76127 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
76128
76129         * malloc/malloc.c: Various cleanups.
76130         * malloc/hooks.c: Likewise.
76131
76132         * stdlib/Makefile (tests): Add bug-fmtmsg1.
76133         * stdlib/bug-fmtmsg1.c: New file.
76134
76135         * stdlib/fmtmsg.c (init): Add missing unlock.
76136         Patch by Peng Haitao <penght@cn.fujitsu.com>.
76137
76138 2012-01-12  Marek Polacek  <polacek@redhat.com>
76139
76140         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
76141         and _GNU_SOURCE.
76142
76143 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76144
76145         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
76146         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
76147         macro to ensure uniqueness of label name.
76148         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76149         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76150
76151 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
76152
76153         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
76154
76155         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
76156         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
76157         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
76158         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
76159
76160 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
76161
76162         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
76163
76164         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
76165         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
76166         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
76167
76168         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
76169
76170         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
76171         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
76172         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
76173         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
76174
76175         * math/bits/math-finite.h: Add ldexp support.
76176
76177 2012-01-10  Marek Polacek  <polacek@redhat.com>
76178
76179         * locale/programs/localedef.h (show_archive_content): Add noreturn
76180         attribute.
76181
76182 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
76183
76184         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
76185
76186 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76187
76188         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
76189
76190         * io/Makefile (headers): Add bits/poll2.h.
76191
76192 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
76193
76194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
76195         typo #include statement.
76196
76197 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76198
76199         * include/sys/cdefs.h: Define __attribute_alloc_size.
76200         * catgets/gencat.c: Add alloc_size attribute and apply consistently
76201         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
76202         * elf/pldd.c: Likewise.
76203         * iconv/iconv_charmap.c: Likewise.
76204         * iconv/iconvconfig.c: Likewise.
76205         * iconv/strtab.c: Likewise.
76206         * locale/programs/locale.c: Likewise.
76207         * locale/programs/localedef.h: Likewise.
76208         * locale/programs/simple-hash.c: Likewise.
76209         * nscd/nscd.h: Likewise.
76210         * nss/makedb.c: Likewise.
76211         * sysdeps/generic/ldconfig.h: Likewise.
76212         * locale/programs/localedef.c: Remove xmalloc prototype.
76213         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
76214
76215 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
76216
76217         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
76218         appropriate.
76219
76220 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76221
76222         * math/Makefile (tests): Add tst-CMPLX.
76223         * math/tst-CMPLX.c: New file.
76224
76225         * math/complex.h (CMPLXL): Fix typo.
76226
76227         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
76228         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
76229         GLIBC_2.16.
76230         * debug/tst-chk1.c: Add poll and ppoll tests.
76231         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
76232         * include/sys/poll.h: Add hidden proto for ppoll.
76233         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
76234         * sysdeps/mach/hurd/ppoll.c: Likewise.
76235         * io/ppoll.c: Likewise.
76236         * debug/poll_chk.c: New file.
76237         * debug/ppoll_chk.c: New file.
76238         * include/bits/poll2.h: New file.
76239         * io/bits/poll2.h: New file.
76240
76241         [BZ #1350]
76242         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
76243
76244         * configure.in: static is always set to yes.  Remove.
76245         * config.make.in: Don't set build-static.
76246         * Makeconfig: Remove use of build-static.
76247         * dlfcn/Makefile: Likewise.
76248         * elf/Makefile: Likewise.
76249         * math/Makefile: Likewise.
76250         * misc/Makefile: Likewise.
76251         * nptl/Makefile: Likewise.
76252         * sysdeps/mach/hurd/Makefile: Likewise.
76253
76254         * configure.in: PWD_P is not used anymore.
76255         * config.make.in: Remove PWD_P entry.
76256
76257         * configure.in: Remove last remnants of RANLIB.
76258         No need to check for signed size_t anymore.
76259         Don't set libc_commonpagesize and libc_relro_required here for Alpha
76260         and IA-64.
76261         Remove __builtin_expect test because we require at least gcc 3.4.
76262         * aclocal.m4: Likewise.
76263
76264         * wcsmbs/mbrtoc16.c: Implement using towc function.
76265         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
76266         * wcsmbs/wcsmbsload.c: Likewise.
76267         * iconv/gconv_simple.c: Likewise.
76268         * iconv/gconv_int.h: Likewise.
76269         * iconv/gconv_builtin.h: Likewise.
76270         * iconv/iconv_prog.c: Remove CHAR16 handling.
76271
76272         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
76273
76274         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
76275
76276         * configure.in: Remove --with-elf and --enable-bounded options.
76277         Dont set base_machine for ia64.  More non-ELF conditions removed.
76278         Remove testing and setting of leading underscore information.
76279         * config.make.in (build-bounded): Set to no.
76280         * config.h.in: Remove NO_UNDERSCORES entry.
76281         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
76282         them.
76283         * csu/start.c: Remove !NO_UNDERSCORE code.
76284         * locale/localeinfo.h: Likewise.
76285         * sysdeps/generic/machine-gmon.h: Likewise.
76286         * sysdeps/generic/sysdep.h: Likewise.
76287         * sysdeps/i386/sysdep.h: Likewise.
76288         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76289         * sysdeps/mach/sysdep.h: Likewise.
76290         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76291         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76292         * sysdeps/sh/sysdep.h: Likewise.
76293         * sysdeps/sparc/sparc32/alloca.S: Likewise.
76294         * sysdeps/unix/i386/sysdep.S: Likewise.
76295         * sysdeps/unix/sparc/start.c: Likewise.
76296         * sysdeps/unix/sparc/sysdep.S: Likewise.
76297         * sysdeps/unix/sparc/sysdep.h: Likewise.
76298         * sysdeps/unix/start.c: Likewise.
76299         * sysdeps/unix/x86_64/sysdep.S: Likewise.
76300         * sysdeps/x86_64/sysdep.h: Likewise.
76301
76302 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
76303
76304         [BZ #13553]
76305         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
76306         for non-gcc.
76307         * argp/argp-fmtstream.h: Use const instead __const.
76308         * argp/argp.h: Likewise.
76309         * assert/assert.h: Likewise.
76310         * bits/fenv.h: Likewise.
76311         * bits/sched.h: Likewise.
76312         * bits/sigset.h: Likewise.
76313         * bits/sigthread.h: Likewise.
76314         * catgets/nl_types.h: Likewise.
76315         * conform/data/pthread.h-data: Likewise.
76316         * crypt/crypt-private.h: Likewise.
76317         * crypt/crypt.h: Likewise.
76318         * crypt/crypt_util.c: Likewise.
76319         * ctype/ctype.h: Likewise.
76320         * debug/execinfo.h: Likewise.
76321         * debug/mbsnrtowcs_chk.c: Likewise.
76322         * debug/mbsrtowcs_chk.c: Likewise.
76323         * debug/wcsnrtombs_chk.c: Likewise.
76324         * debug/wcsrtombs_chk.c: Likewise.
76325         * debug/wcstombs_chk.c: Likewise.
76326         * dirent/dirent.h: Likewise.
76327         * dlfcn/dlfcn.h: Likewise.
76328         * elf/neededtest4.c: Likewise.
76329         * grp/grp.h: Likewise.
76330         * gshadow/gshadow.h: Likewise.
76331         * iconv/gconv.h: Likewise.
76332         * iconv/gconv_int.h: Likewise.
76333         * iconv/gconv_simple.c: Likewise.
76334         * iconv/iconv.h: Likewise.
76335         * iconv/loop.c: Likewise.
76336         * iconv/skeleton.c: Likewise.
76337         * include/aio.h: Likewise.
76338         * include/aliases.h: Likewise.
76339         * include/argz.h: Likewise.
76340         * include/arpa/inet.h: Likewise.
76341         * include/assert.h: Likewise.
76342         * include/dirent.h: Likewise.
76343         * include/dlfcn.h: Likewise.
76344         * include/execinfo.h: Likewise.
76345         * include/fcntl.h: Likewise.
76346         * include/fenv.h: Likewise.
76347         * include/glob.h: Likewise.
76348         * include/grp.h: Likewise.
76349         * include/libintl.h: Likewise.
76350         * include/mntent.h: Likewise.
76351         * include/netdb.h: Likewise.
76352         * include/pwd.h: Likewise.
76353         * include/rpc/netdb.h: Likewise.
76354         * include/sched.h: Likewise.
76355         * include/search.h: Likewise.
76356         * include/shadow.h: Likewise.
76357         * include/signal.h: Likewise.
76358         * include/stdio.h: Likewise.
76359         * include/stdlib.h: Likewise.
76360         * include/string.h: Likewise.
76361         * include/sys/socket.h: Likewise.
76362         * include/sys/stat.h: Likewise.
76363         * include/sys/statfs.h: Likewise.
76364         * include/sys/statvfs.h: Likewise.
76365         * include/sys/syslog.h: Likewise.
76366         * include/sys/time.h: Likewise.
76367         * include/sys/uio.h: Likewise.
76368         * include/time.h: Likewise.
76369         * include/unistd.h: Likewise.
76370         * include/utmp.h: Likewise.
76371         * include/wchar.h: Likewise.
76372         * include/wctype.h: Likewise.
76373         * inet/aliases.h: Likewise.
76374         * inet/arpa/inet.h: Likewise.
76375         * inet/netinet/ether.h: Likewise.
76376         * inet/netinet/in.h: Likewise.
76377         * intl/libintl.h: Likewise.
76378         * io/bits/fcntl2.h: Likewise.
76379         * io/fcntl.h: Likewise.
76380         * io/ftw.h: Likewise.
76381         * io/sys/poll.h: Likewise.
76382         * io/sys/stat.h: Likewise.
76383         * io/sys/statfs.h: Likewise.
76384         * io/sys/statvfs.h: Likewise.
76385         * io/utime.h: Likewise.
76386         * libio/bits/stdio.h: Likewise.
76387         * libio/bits/stdio2.h: Likewise.
76388         * libio/libio.h: Likewise.
76389         * libio/libioP.h: Likewise.
76390         * libio/stdio.h: Likewise.
76391         * locale/lc-ctype.c: Likewise.
76392         * locale/locale.h: Likewise.
76393         * login/utmp.h: Likewise.
76394         * malloc/arena.c: Likewise.
76395         * malloc/malloc.c: Likewise.
76396         * malloc/malloc.h: Likewise.
76397         * malloc/mcheck.c: Likewise.
76398         * malloc/mtrace.c: Likewise.
76399         * math/bits/mathcalls.h: Likewise.
76400         * math/fenv.h: Likewise.
76401         * math/math_private.h: Likewise.
76402         * misc/bits/error.h: Likewise.
76403         * misc/bits/syslog.h: Likewise.
76404         * misc/err.h: Likewise.
76405         * misc/error.h: Likewise.
76406         * misc/fstab.h: Likewise.
76407         * misc/mntent.h: Likewise.
76408         * misc/regexp.h: Likewise.
76409         * misc/search.h: Likewise.
76410         * misc/sgtty.h: Likewise.
76411         * misc/sys/mman.h: Likewise.
76412         * misc/sys/syslog.h: Likewise.
76413         * misc/sys/uio.h: Likewise.
76414         * misc/sys/xattr.h: Likewise.
76415         * misc/ttyent.h: Likewise.
76416         * nis/rpcsvc/ypclnt.h: Likewise.
76417         * nss/nss.h: Likewise.
76418         * posix/bits/unistd.h: Likewise.
76419         * posix/fnmatch.h: Likewise.
76420         * posix/glob.h: Likewise.
76421         * posix/sched.h: Likewise.
76422         * posix/spawn.h: Likewise.
76423         * posix/sys/wait.h: Likewise.
76424         * posix/unistd.h: Likewise.
76425         * posix/wordexp.h: Likewise.
76426         * pwd/pwd.h: Likewise.
76427         * resolv/netdb.h: Likewise.
76428         * resource/sys/resource.h: Likewise.
76429         * rt/aio.h: Likewise.
76430         * rt/bits/mqueue2.h: Likewise.
76431         * rt/mqueue.h: Likewise.
76432         * shadow/shadow.h: Likewise.
76433         * signal/signal.h: Likewise.
76434         * socket/send.c: Likewise.
76435         * socket/sendto.c: Likewise.
76436         * socket/sys/socket.h: Likewise.
76437         * stdio-common/printf.h: Likewise.
76438         * stdlib/bits/stdlib.h: Likewise.
76439         * stdlib/fmtmsg.h: Likewise.
76440         * stdlib/monetary.h: Likewise.
76441         * stdlib/stdlib.h: Likewise.
76442         * stdlib/ucontext.h: Likewise.
76443         * streams/stropts.h: Likewise.
76444         * string/argz.h: Likewise.
76445         * string/bits/string2.h: Likewise.
76446         * string/string.h: Likewise.
76447         * string/strings.h: Likewise.
76448         * sunrpc/rpc/auth.h: Likewise.
76449         * sunrpc/rpc/auth_des.h: Likewise.
76450         * sunrpc/rpc/clnt.h: Likewise.
76451         * sunrpc/rpc/netdb.h: Likewise.
76452         * sunrpc/rpc/pmap_clnt.h: Likewise.
76453         * sunrpc/rpc/xdr.h: Likewise.
76454         * sysdeps/generic/inttypes.h: Likewise.
76455         * sysdeps/generic/net/if.h: Likewise.
76456         * sysdeps/generic/sys/swap.h: Likewise.
76457         * sysdeps/gnu/net/if.h: Likewise.
76458         * sysdeps/gnu/utmpx.h: Likewise.
76459         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
76460         * sysdeps/i386/i486/bits/string.h: Likewise.
76461         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
76462         * sysdeps/s390/bits/string.h: Likewise.
76463         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
76464         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
76465         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
76466         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
76467         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
76468         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
76469         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
76470         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
76471         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
76472         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
76473         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
76474         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
76475         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
76476         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
76477         * sysdeps/unix/sysv/linux/readv.c: Likewise.
76478         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
76479         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
76480         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76481         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
76482         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
76483         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76484         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
76485         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
76486         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
76487         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
76488         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
76489         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
76490         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76491         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
76492         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
76493         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
76494         * sysvipc/sys/ipc.h: Likewise.
76495         * sysvipc/sys/msg.h: Likewise.
76496         * sysvipc/sys/sem.h: Likewise.
76497         * sysvipc/sys/shm.h: Likewise.
76498         * termios/termios.h: Likewise.
76499         * time/sys/time.h: Likewise.
76500         * time/time.h: Likewise.
76501         * wcsmbs/bits/wchar2.h: Likewise.
76502         * wcsmbs/uchar.h: Likewise.
76503         * wcsmbs/wchar.h: Likewise.
76504         * wctype/wctype.h: Likewise.
76505
76506         [BZ #13551]
76507         * Makeconfig: Remove all but ELF support including AIX support.
76508         * Makerules: Likewise.
76509         * config.h.in: Likewise.
76510         * config.make.in: Likewise.
76511         * configure: Likewise.
76512         * configure.in: Likewise.
76513         * csu/Makefile: Likewise.
76514         * csu/version.c: Likewise.
76515         * debug/Makefile: Likewise.
76516         * dlfcn/Makefile: Likewise.
76517         * elf/Makefile: Likewise.
76518         * extra-lib.mk: Likewise.
76519         * iconv/Makefile: Likewise.
76520         * include/libc-symbols.h: Likewise.
76521         * include/shlib-compat.h: Likewise.
76522         * resolv/Makefile: Likewise.
76523         * resolv/res_libc.c: Likewise.
76524         * rt/Makefile: Likewise.
76525         * sysdeps/i386/asm-syntax.h: Likewise.
76526         * sysdeps/i386/sysdep.h: Likewise.
76527         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76528         * sysdeps/mach/sysdep.h: Likewise.
76529         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
76530         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
76531         * sysdeps/s390/asm-syntax.h: Likewise.
76532         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76533         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76534         * sysdeps/sh/sysdep.h: Likewise.
76535         * sysdeps/unix/sparc/sysdep.h: Likewise.
76536         * sysdeps/wordsize-32/divdi3.c: Likewise.
76537         * sysdeps/x86_64/sysdep.h: Likewise.
76538
76539         * argp/Versions: Remove _argp_unlock_xxx.
76540
76541         [BZ #13559]
76542         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
76543         * abilist/libBrokenLocale.abilist: Likewise.
76544         * abilist/libanl.abilist: Likewise.
76545         * abilist/libc.abilist: Likewise.
76546         * abilist/libcrypt.abilist: Likewise.
76547         * abilist/libdl.abilist: Likewise.
76548         * abilist/libm.abilist: Likewise.
76549         * abilist/libnsl.abilist: Likewise.
76550         * abilist/libpthread.abilist: Likewise.
76551         * abilist/libresolv.abilist: Likewise.
76552         * abilist/librt.abilist: Likewise.
76553         * abilist/libthread_db.abilist: Likewise.
76554         * abilist/libutil.abilist: Likewise.
76555         * abilist/libnss_db.abilist: New file.
76556
76557         * scripts/abilist.awk: Add support for indirect functions.
76558
76559         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
76560
76561         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
76562
76563         * shlib-versions: Remove entries for ports architectures.
76564
76565         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
76566         files in ports.
76567         * elf/stackguard-macros.h: Remove support for IA-64.
76568         * elf/tst-auditmod1.c: Likewise.
76569         * sysdeps/generic/ldsodefs.h: Likewise.
76570
76571         * sysdeps/unix/sysv/linux/configure.in: Ports should define
76572         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
76573         configure files.
76574
76575         [BZ #13552]
76576         * configure.in: Remove --enable-omitfp support.
76577         * FAQ.in: Adjust.
76578         * config.make.in: Likewise.
76579         * Makeconfig: Likewise.
76580         * manual/install.texi: Likewise.
76581
76582         In case anyone cares, the IA-64 architecture could move to ports.
76583         * sysdeps/ia64/*: Removed.
76584         * sysdeps/unix/sysv/linux/ia64/*: Removed.
76585         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
76586
76587         [BZ #13555]
76588         * configure.in: Remove entries for unsupported architectures.
76589
76590         [BZ #13533]
76591         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
76592         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
76593         routines.
76594         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
76595         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
76596         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
76597         fall back to using wcrtomb.
76598         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
76599         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
76600         renaming.
76601         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
76602         * wcsmbs/tst-c16c32-1.c: New file.
76603
76604         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
76605         local variable.
76606
76607         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
76608
76609         * elf/tst-unique3.cc: Add explicit declaration of gets.
76610         * elf/tst-unique3lib.cc: Likewise.
76611         * elf/tst-unique3lib2.cc: Likewise.
76612         * elf/tst-unique4.cc: Likewise.
76613
76614         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
76615
76616 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
76617
76618         [BZ #13566]
76619         * assert/assert.h (static_assert): Don't define for C++.
76620         * libio/stdio.h (gets): Do declare for C++ <= C++11.
76621         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
76622
76623 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
76624
76625         * iconv/loop.c (single loop): Fix assertion in storing of
76626         remaining bytes.
76627
76628         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
76629
76630 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
76631
76632         * posix/getconf.c: Update copyright year.
76633         * nss/getent.c: Likewise.
76634         * nss/makedb.c: Likewise.
76635         * iconv/iconvconfig.c: Likewise.
76636         * iconv/iconv_prog.c: Likewise.
76637         * elf/ldconfig.c: Likewise.
76638         * elf/pldd.c: Likewise.
76639         * elf/sotruss.ksh: Likewise.
76640         * catgets/gencat.c: Likewise.
76641         * csu/version.c: Likewise.
76642         * elf/ldd.bash.in: Likewise.
76643         * elf/sprof.c (print_version): Likewise.
76644         * locale/programs/locale.c: Likewise.
76645         * locale/programs/localedef.c: Likewise.
76646         * login/programs/pt_chown.c: Likewise.
76647         * nscd/nscd.c (print_version): Likewise.
76648         * debug/xtrace.sh: Likewise.
76649         * malloc/memusage.sh: Likewise.
76650         * malloc/mtrace.pl: Likewise.
76651         * debug/catchsegv.sh: Likewise.
76652
76653 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
76654
76655         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
76656         pure attribute.
76657
76658 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
76659
76660         [BZ #13533]
76661         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
76662         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
76663         transformations.
76664         * iconv/gconv_int.h: Likewise.
76665         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
76666         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
76667         from libc for GLIBC_2.16.
76668         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
76669         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
76670         * wcsmbs/uchar.h: Really define mbstate_t.
76671         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
76672         * wcsmbs/c16rtomb.c: New file.
76673         * wcsmbs/mbrtoc16.c: New file.
76674         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
76675         for C/POSIX locale.
76676         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
76677         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
76678
76679         * wcsmbs/wchar.h: Add missing __restrict.
76680
76681 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76682
76683         [BZ #13532]
76684         * time/Makefile (routines): Add timespec_get.
76685         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
76686         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
76687         timespec for ISO C11.
76688         * time/timespec_get.c: New file.
76689         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
76690         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
76691
76692         [BZ #13531]
76693         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
76694         * stdlib/stdlib.h: Declare aligned_alloc.
76695         * Versions.def: Add GLIBC_2.16 for libc.
76696         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
76697
76698         [BZ 13527]
76699         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
76700         ISO C11.
76701
76702         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
76703         code.
76704
76705         [BZ #13528]
76706         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
76707
76708         [BZ #13529]
76709         * assert/assert.h (static_assert): Define.
76710
76711         * version.h: Update for 2.16 development version.
76712
76713         [BZ #13526]
76714         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
76715         _ISOC11_SOURCE.
76716
76717         * version.h (RELEASE): Bump for 2.15 release.
76718         * include/features.h (__GLIBC_MINOR__): Bump to 15.
76719
76720         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
76721         Patch by Marek Polacek <mpolacek@redhat.com>.
76722
76723         * bits/byteswap.h: Protect long long constants with __extension__.
76724         * sysdeps/i386/bits/byteswap.h: Likewise.
76725         * sysdeps/ia64/bits/byteswap.h: Likewise.
76726         * sysdeps/s390/bits/byteswap.h: Likewise.
76727         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76728
76729 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76730
76731         [BZ #13540]
76732         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
76733         destination buffer.
76734         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
76735
76736 2011-12-23  Marek Polacek  <polacek@redhat.com>
76737
76738         * elf/dl-addr.c (determine_info): Add inline keyword.
76739         * elf/tst-auditmod4b.c (check_avx): Likewise.
76740         * elf/tst-auditmod6b.c (check_avx): Likewise.
76741         * elf/tst-auditmod6c.c (check_avx): Likewise.
76742         * elf/tst-auditmod7b.c (check_avx): Likewise.
76743
76744 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76745
76746         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
76747         !__SSE_MATH__.
76748
76749 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76750
76751         [BZ #13540]
76752         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
76753         processing for last bytes.
76754
76755 2011-08-06  Bruno Haible  <bruno@clisp.org>
76756
76757         [BZ #13061]
76758         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
76759         U+0385, not to U+1FEE.
76760
76761         [BZ #13062]
76762         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
76763         entry for U+00A5 U+0301.
76764
76765 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76766
76767         [BZ #13166]
76768         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
76769         buffer for the output is too small.
76770
76771         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
76772         optimization.
76773
76774         [BZ #13185]
76775         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
76776         SSE flags if possible.
76777
76778 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76779
76780         [BZ #13540]
76781         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
76782         processing for last bytes.
76783
76784 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
76785
76786         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
76787         (syscall-list-default-options, syscall-list-default-condition)
76788         (syscall-list-includes): Define.
76789         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
76790         list of ABIs and options and #if conditions for each ABI.  Do not
76791         handle common syscalls between ABIs specially.
76792         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
76793         Remove.
76794         (syscall-list-variants, syscall-list-32bit-options)
76795         (syscall-list-32bit-condition, syscall-list-64bit-options)
76796         (syscall-list-64bit-condition): Define.
76797         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
76798         (syscall-list-variants, syscall-list-32bit-options)
76799         (syscall-list-32bit-condition, syscall-list-64bit-options)
76800         (syscall-list-64bit-condition): Define.
76801         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
76802         Remove.
76803         (syscall-list-variants, syscall-list-32bit-options)
76804         (syscall-list-32bit-condition, syscall-list-64bit-options)
76805         (syscall-list-64bit-condition): Define.
76806         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
76807         Remove.
76808         (syscall-list-variants, syscall-list-32bit-options)
76809         (syscall-list-32bit-condition, syscall-list-64bit-options)
76810         (syscall-list-64bit-condition): Define.
76811
76812 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76813
76814         * locale/iso-639.def: Add brx entry.
76815
76816         [BZ #13328]
76817         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
76818         Proposed by Mariusz_Cukr <marcukr@op.pl>.
76819
76820         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
76821         __feraiseexcept_renamed.
76822
76823 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76824
76825         [BZ #13538]
76826         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
76827         EPOLLET with unsigned values.
76828         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76829         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76830
76831         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
76832         to large cancellation.
76833         * math/s_cacoshf.c: Likewise.
76834         * math/s_cacoshl.c: Likewise.
76835
76836 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
76837
76838         [BZ #13305]
76839         [BZ #12786]
76840         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
76841         * math/s_cacoshf.c: Likewise.
76842         * math/s_cacoshl.c: Likewise.
76843
76844 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76845
76846         [BZ #13439]
76847         * iconv/gconv.h: Define __GCONV_SWAP.
76848         * iconvdata/unicode.c: The swap bit must be stored in __flags.
76849         * iconvdata/utf-16.c: Likewise.
76850         * iconvdata/utf-32.c: Likewise.
76851
76852 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
76853
76854         [BZ #13524]
76855         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
76856         numerator after shifting it by one limb.
76857
76858 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
76859
76860         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
76861         under [__USE_EXTERN_INLINES].
76862
76863 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76864
76865         [BZ #13446]
76866         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
76867
76868 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76869
76870         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
76871         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
76872         optimized code.
76873         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
76874         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
76875         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
76876         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
76877         for strncasecmp/strncasecmp_l compilation.
76878         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
76879         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
76880
76881 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
76882
76883         [BZ #13484]
76884         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
76885         of __asm__.
76886
76887 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76888
76889         [BZ #13506]
76890         * time/tzfile.c (__tzfile_read): Check values from file header.
76891
76892 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
76893
76894         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
76895         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
76896         * powerpc/powerpc32/dl-start.S: Likewise.
76897         * powerpc/powerpc32/elf/start.S: Likewise.
76898         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
76899         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
76900         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
76901         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
76902         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
76903         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
76904         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
76905         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
76906         * powerpc/powerpc32/fpu/s_round.S: Likewise.
76907         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
76908         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
76909         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
76910         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
76911         * powerpc/powerpc32/memset.S: Likewise.
76912         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
76913         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
76914         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
76915         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
76916         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
76917         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
76918         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
76919         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
76920         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
76921         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
76922         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
76923         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76924         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76925
76926 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76927
76928         * math/libm-test.inc: Added more nearbyint tests.
76929         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
76930         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
76931         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
76932         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
76933
76934 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
76935
76936         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
76937         FD_CLOEXEC.
76938
76939 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76940
76941         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
76942         Add wcscpy-ssse3 wcscpy-c.
76943         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
76944         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
76945         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
76946         * sysdeps/x86_64/wcschr.S: New file.
76947         * sysdeps/x86_64/wcsrchr.S: New file.
76948         * string/test-strcmp.c: Remove checking of wcscmp function for
76949         wrong alignments.
76950         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
76951         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
76952         wcsrchr-sse2 wcsrchr-c.
76953         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
76954         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
76955         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
76956         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
76957         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
76958         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
76959         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
76960         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
76961         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
76962         * wcsmbc/wcschr.c (WCSCHR): New macro.
76963
76964 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76965
76966         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
76967         * wcsmbs/test-wcsrchr.c: New file.
76968         * string/test-strrchr.c: Add wcsrchr support.
76969         (WIDE): New macro.
76970         * wcsmbs/test-wcscpy.c: New file.
76971         * string/test-strcpy.c: Add wcscpy support.
76972         (WIDE): New macro.
76973
76974 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
76975
76976         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
76977         the inner loop.
76978
76979 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
76980
76981         [BZ #13472]
76982         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
76983
76984 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
76985
76986         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
76987         Minor optimizations.
76988
76989         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
76990         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
76991         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
76992
76993 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
76994
76995         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
76996         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
76997         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
76998         for gcc to avoid warnings.
76999         * inet/Makefile (tests): Add tst-checks.
77000         * inet/tst-checks.c: New file.
77001
77002         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
77003         warning.
77004
77005         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
77006         __wmemcmp_sse2.
77007
77008         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
77009         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
77010
77011         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
77012
77013 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
77014
77015         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
77016         problem.
77017
77018         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
77019
77020 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
77021
77022         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
77023         conditional on GCC version.
77024         (__arch_compare_and_exchange_val_8_acq)
77025         (__arch_compare_and_exchange_val_16_acq)
77026         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
77027         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
77028         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
77029
77030 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
77031
77032         * sysdeps/sh/backtrace.c: New file.
77033
77034 2011-12-02  Andreas Schwab  <schwab@redhat.com>
77035
77036         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
77037         parenthesis.
77038
77039 2011-12-01  Andreas Schwab  <schwab@redhat.com>
77040
77041         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
77042         falling back to utime.
77043
77044 2011-11-30  Andreas Schwab  <schwab@redhat.com>
77045
77046         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
77047         expectations for float.
77048
77049 2011-11-29  Andreas Schwab  <schwab@redhat.com>
77050
77051         * locale/weight.h (findidx): Add parameter len.
77052         * locale/weightwc.h (findidx): Likewise.
77053         * posix/fnmatch_loop.c (FCT): Adjust caller.
77054         * posix/regcomp.c (build_equiv_class): Likewise.
77055         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
77056         * posix/regexec.c (check_node_accept_bytes): Likewise.
77057         * string/strcoll_l.c (STRCOLL): Likewise.
77058         * string/strxfrm_l.c (STRXFRM): Likewise.
77059
77060 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
77061
77062         * Makefile.in: Remove CVSOPT handling.
77063         * configure.in: Remove use of AC_REVISION.
77064         * iconvdata/Makefile (distribute): No need to filter out CVS.
77065         * scripts/list-sources.sh: Remove CVS, subversion and monotone
77066         handling.
77067
77068 2011-11-16  Andreas Schwab  <schwab@redhat.com>
77069
77070         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
77071         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
77072         [USE_AS_STRNCASECMP_L]: Likewise.
77073         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
77074         NO_TLS_DIRECT_SEG_REFS.
77075         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
77076         Fix argument offsets for non-PIC.
77077         [USE_AS_STRNCASECMP_L]: Likewise.
77078         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
77079         NO_TLS_DIRECT_SEG_REFS.
77080
77081 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77082
77083         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
77084         O_CLOEXEC.
77085         * locale/loadlocale.c (_nl_load_locale): Likewise.
77086
77087 2011-11-15  Andreas Schwab  <schwab@redhat.com>
77088
77089         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
77090         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
77091         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
77092         (SYSCALL_GETTIME): Set errno on error.
77093
77094         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
77095         count references to noai6ai_cached.
77096
77097 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77098
77099         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
77100
77101         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
77102         FD_CLOEXEC for /proc/self/maps.
77103
77104         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
77105         FD_CLOEXEC for /proc/meminfo.
77106
77107         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
77108         gai.conf.
77109
77110         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
77111         FD_CLOEXEC for given file.
77112
77113         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
77114
77115         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
77116         FD_CLOEXEC for /etc/hosts.
77117         (_gethtent): Likewise.
77118
77119         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
77120
77121         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
77122         cancellation and set FD_CLOEXEC for /etc/netgroup.
77123
77124         * nss/nss_files/files-key.c (search): Don't allow cancellation when
77125         reading /etc/publickey.
77126
77127         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
77128         allow cancellation when reading /etc/group.
77129
77130         * nss/nss_files/files-alias.c (internal_setent): Don't allow
77131         cancellation.
77132         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
77133
77134         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
77135         when using data file.
77136
77137         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
77138
77139         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
77140         (write_nis_obj): Use "c" and "e" in fopen.
77141
77142         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
77143
77144         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
77145
77146         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
77147
77148         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
77149
77150         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
77151         locale.alias.
77152
77153         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
77154
77155         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
77156
77157         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
77158
77159         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
77160         file parsing and set FD_CLOEXEC.
77161
77162 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77163
77164         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
77165
77166 2011-11-14  Andreas Schwab  <schwab@redhat.com>
77167
77168         * malloc/arena.c (arena_get2): Don't call reused_arena when
77169         _int_new_arena failed.
77170
77171 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77172
77173         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
77174         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
77175         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
77176         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
77177         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
77178         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
77179         to compile strcasecmp and strncasecmp.
77180         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
77181         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
77182
77183         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
77184
77185 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
77186
77187         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
77188         locale-defines.sym to gen-as-const-headers.
77189         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
77190         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
77191         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
77192         to compile strcasecmp and strncasecmp.
77193         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
77194         strcasecmp_l and strncasecmp_l.
77195         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
77196         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
77197         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
77198         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
77199         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
77200         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
77201         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
77202         * sysdeps/i386/i686/multiarch/strncase.S: New file.
77203         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
77204         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
77205         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
77206
77207 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
77208
77209         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
77210         result of SYSDEP_GETTIME_CPU to retval.
77211         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
77212         parameter list to macro.  Remove trailing semicolon.  Adjust users.
77213
77214         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
77215         variable.
77216
77217         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
77218         mantissa words.
77219         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
77220
77221         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
77222         from unused variable.
77223
77224         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
77225         DWARF definitions.
77226         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
77227         for assembling.
77228
77229         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
77230         over namespaces.
77231
77232         * sunrpc/rpc_prot.c (rejected): Fix case value.
77233
77234         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
77235         unsigned long long int to avoid warnings in shift.
77236
77237         * posix/regex_internal.c (re_string_reconstruct): Actually use result
77238         of use of trans.
77239         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
77240         variable tmp.
77241
77242         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
77243         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
77244         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
77245
77246         * nis/nis_table.c (nis_list): Use variable of correct type for
77247         result of __follow_path call.
77248
77249 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77250
77251         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
77252         of math functions ceil, trunc, floor, round, and sqrt, when
77253         avaliable on the platform.
77254         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
77255         name clash.
77256         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
77257         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
77258         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
77259
77260 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
77261
77262         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
77263         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
77264
77265 2011-11-11  Roland McGrath  <roland@hack.frob.com>
77266
77267         * include/unistd.h: Fix __readlink return type.
77268         Reported by Chris Metcalf <cmetcalf@tilera.com>.
77269
77270 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
77271
77272         * stdlib/ucontext.h: Undo last change for makecontext.
77273
77274 2011-11-11  Andreas Schwab  <schwab@redhat.com>
77275
77276         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
77277
77278         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
77279         * setjmp/setjmp.h: Mark functions as non-leaf.
77280         * setjmp/bits/setjmp2.h: Likewise.
77281         * stdlib/ucontext.h: Likewise.
77282
77283 2011-11-10  Andreas Schwab  <schwab@redhat.com>
77284
77285         * malloc/arena.c (_int_new_arena): Don't increment narenas.
77286         (reused_arena): Don't check arena limit.
77287         (arena_get2): Atomically check arena limit.
77288
77289 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
77290
77291         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
77292         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
77293
77294         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
77295         instructions.
77296
77297 2011-11-07  Andreas Schwab  <schwab@redhat.com>
77298
77299         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
77300         handler when locking.
77301
77302         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
77303         Fix size of allocated buffer.
77304
77305 2011-11-04  Andreas Schwab  <schwab@redhat.com>
77306
77307         [BZ #10103]
77308         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
77309         declarations for long double functions.
77310         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
77311
77312         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
77313
77314 2011-11-03  Andreas Schwab  <schwab@redhat.com>
77315
77316         * nscd/nscd.c (main): Don't start AVC thread until credentials are
77317         installed.
77318
77319         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
77320         is disabled.
77321
77322 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77323
77324         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
77325
77326 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
77327
77328         * include/alloca.h (stackinfo_alloca_round): Define.
77329         (extend_alloca): Use it.
77330         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
77331         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
77332         here.
77333
77334         * scripts/check-local-headers.sh: Ignore libaudit.h.
77335
77336         * nscd/Makefile (extra-objs): Make recursively expanded.
77337
77338 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
77339
77340         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
77341         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
77342
77343         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
77344         * posix/tst-rfc3484-2.c: Likewise.
77345         * posix/tst-rfc3484-3.c: Likewise.
77346
77347         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
77348         process_vm_writev.
77349         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
77350         process_vm_writev.
77351         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
77352         process_vm_writev from libc using GLIBC_2.15 version.
77353
77354         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
77355
77356 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
77357
77358         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
77359         stack usage.
77360
77361 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
77362
77363         [BZ #13367]
77364         * nss/getent.c (initgroups_keys): Show error message in case no group
77365         names are given.
77366
77367         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
77368         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
77369         __bump_nl_timestamp.
77370         * nscd/connections (nscd_init): When host database is served open
77371         netlink socket and request notification about configuration changes.
77372         (main_loop_poll): Track netlink file descriptor and bump timestamp
77373         in case data becomes available.
77374         (main_loop_epoll): Likewise.
77375         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
77376         (database_pers_head): Add extra_data fileds.
77377         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
77378         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
77379         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
77380         Adjust caller.
77381         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
77382         in6ai data, call __free_in6ai.
77383         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
77384         Add -DHAVE_NETLINK.
77385         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
77386         interface information.  Reuse previous data if netlink timestamp
77387         is not changed.
77388         (__bump_nl_timestamp): New function.
77389         (__free_in6ai): New function.
77390
77391 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
77392
77393         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
77394         close_not_cancel_no_status here.
77395         (__check_pf): Reorganize code a bit to not call close twice if OOM.
77396
77397 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77398
77399         [BZ #13276]
77400         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
77401         return value.
77402
77403         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
77404         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
77405         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
77406
77407 2011-07-03  Andreas Jaeger  <aj@suse.de>
77408
77409         [BZ #10709]
77410         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
77411         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
77412         * math/libm-test.inc (sin_test): Add test case.
77413
77414 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77415
77416         [BZ #13337]
77417         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
77418         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77419
77420         * elf/chroot_canon.c (chroot_canon): Cleanups.
77421
77422         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
77423
77424         [BZ #13335]
77425         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
77426         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77427
77428         * string/test-strchr.c: Make usable for strchrnul testing.
77429         * string/test-strchrnul.c: New file.
77430         * string/Makefile (strop-tests): Add strchrnul.
77431
77432         * po/it.po: Update from translation team.
77433         * po/es.po: Likewise.
77434
77435 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
77436
77437         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
77438         the three constants needed as parameters.  Drop the others.
77439         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
77440         __m128i_strloadu_tolower.
77441         Create and initialize variable zero and use it in all the places
77442         where _mm_setzero_si128 was used.
77443
77444         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
77445         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
77446         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
77447         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
77448         anymore.
77449         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
77450         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
77451         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
77452         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
77453         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
77454         __mpranred, __mptan.
77455         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
77456         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
77457         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
77458         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
77459         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
77460         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
77461         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
77462         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
77463         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
77464
77465 2011-10-28  Andreas Schwab  <schwab@redhat.com>
77466
77467         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
77468         redefine if SHARED.
77469         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
77470
77471         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
77472         wide char related routines to wcsmbs subdir.
77473
77474 2011-10-27  Andreas Schwab  <schwab@redhat.com>
77475
77476         [BZ #13344]
77477         * misc/sys/cdefs.h (__THROWNL): Define.
77478         * posix/unistd.h: Use __THREADNL instead of __THREAD
77479         for memory synchronization functions.
77480
77481 2011-10-26  Roland McGrath  <roland@hack.frob.com>
77482
77483         [BZ #13349]
77484         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
77485         doesn't exist.
77486         * manual/stdio.texi (Obstack Streams): Node removed.
77487
77488 2011-10-26  Andreas Schwab  <schwab@redhat.com>
77489
77490         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
77491         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77492         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77493
77494         * math/math_private.h (math_force_eval): Allow non-addressable
77495         arguments.
77496         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
77497
77498 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77499
77500         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
77501         file is not needed.
77502
77503         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
77504         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
77505         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
77506         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
77507         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
77508         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
77509         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
77510         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
77511         Add AVX variants.
77512         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
77513         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
77514         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
77515         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
77516         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
77517         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
77518         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
77519         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
77520         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
77521         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
77522         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
77523         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
77524         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
77525         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
77526         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
77527         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
77528         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
77529         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
77530         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
77531
77532         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
77533         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
77534
77535         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
77536         place.  Use VEX encoding when compiling for AVX.
77537
77538 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77539
77540         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
77541         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
77542
77543         * string/test-strchr.c (do_test): Don't generate NUL bytes.
77544
77545 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77546
77547         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
77548         useless if() expression.
77549         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77550         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
77551         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
77552         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77553         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
77554         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77555         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77556         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77557         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
77558         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77559         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
77560         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77561         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
77562         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77563         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
77564         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77565         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
77566         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
77567         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
77568
77569         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
77570
77571 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77572
77573         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
77574         condition.
77575         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77576
77577 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77578
77579         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
77580         .text section.  Avoid duplicate constants.
77581         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
77582         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77583         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77584         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77585         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77586         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77587         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77588         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77589         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
77590         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
77591         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
77592         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
77593         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
77594         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
77595         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
77596         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
77597         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
77598         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
77599         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
77600         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77601         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
77602         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
77603         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
77604         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
77605         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
77606         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
77607         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
77608         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
77609         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
77610         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
77611         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
77612         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
77613         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
77614         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
77615         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
77616         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
77617         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
77618         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
77619         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
77620         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
77621         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
77622         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
77623         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
77624         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
77625         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
77626
77627 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
77628
77629         * sysdeps/x86_64/dla.h: Move to ...
77630         * sysdeps/x86_64/fpu/dla.h: ...here.
77631         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
77632         situations.  Use __builtin_fma only for gcc 4.6 and up.
77633
77634         * config.make.in: Add have-mfma4 entry.
77635         * configure.in: Substitute libc_cv_cc_fma4.
77636         * math/Makefile (dbl-only-routines): Add sincostab.
77637         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
77638         Use __sincostab not sincos.
77639         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
77640         name is a macro.
77641         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77642         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77643         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77644         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
77645         using __copysign.
77646         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
77647         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
77648         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
77649         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
77650         and __inv.
77651         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
77652         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
77653         __copysign.
77654         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
77655         define aliases when function name is a macro.
77656         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
77657         sysdeps/ieee754/dbl-64/sincos.tbl.
77658         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
77659         fma4-enabled routines.
77660         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
77661         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
77662         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
77663         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
77664         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
77665         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
77666         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
77667         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
77668         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
77669         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
77670         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
77671         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
77672         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
77673         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
77674         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
77675         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
77676         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
77677         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
77678         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
77679         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
77680         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
77681         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
77682         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
77683         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
77684         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
77685         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
77686         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
77687         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
77688         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
77689         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
77690
77691         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
77692         rename.
77693         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77694         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77695         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77696         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77697         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77698         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77699         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77700         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77701
77702 2011-10-24  Andreas Schwab  <schwab@redhat.com>
77703
77704         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
77705
77706 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77707
77708         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
77709
77710         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
77711         prediction.
77712         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
77713
77714         * string/strnlen.c: Don't define STRNLEN, reverse logic.
77715         Remove unused variable magic_bits.
77716         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
77717
77718         * string/strnlen.c: Define and use STRNLEN macro.
77719         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
77720         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
77721         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
77722         * wcsmbs/wcslen.c: Define and use WCSLEN.
77723         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
77724         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
77725         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
77726         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
77727         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
77728         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
77729         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
77730
77731 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77732
77733         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77734         strnlen-sse2-no-bsf.
77735         Rename strlen-no-bsf to strlen-sse2-no-bsf.
77736         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
77737         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
77738         Add strnlen support.
77739         (USE_AS_STRNLEN): New macro.
77740         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
77741         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
77742         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
77743         * sysdeps/x86_64/wcslen.S: New file.
77744
77745 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
77746
77747         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
77748         XMM-moves are used for copying on small sizes.
77749
77750 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77751
77752         * wcsmbs/Makefile (strop-tests): Add wcschr.
77753         * wcsmbs/test-wcschr.c: New file.
77754         * string/test-strchr.c: Update.
77755         Add wcschr support.
77756         (WIDE): New macro.
77757
77758 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77759
77760         * wcsmbs/Makefile (strop-tests): Add wcslen.
77761         * wcsmbs/test-wcslen.c: New file.
77762         * string/test-strlen.c: Update.
77763         Add wcslen support.
77764         (WIDE): New macro.
77765
77766 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77767
77768         * po/it.po: Update from translation team.
77769
77770 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77771
77772         * sysdeps/x86_64/wcscmp.S: Update.
77773         Fix wrong comparison semantics.
77774         wcscmp shall use signed comparison not unsigned.
77775         Don't use substraction to avoid overflow bug.
77776         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
77777         * wcsmbc/wcscmp.c: Likewise.
77778         * string/test-strcmp.c: Likewise.
77779         Add new tests to check cases with negative values.
77780
77781 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77782
77783         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
77784         * sysdeps/x86_64/dla.h: ...here.  New file.
77785         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
77786         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77787         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77788         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77789         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77790         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
77791         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77792         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77793         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77794
77795 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
77796
77797         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
77798         __ynl_finite aliases.
77799
77800 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77801
77802         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77803
77804         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
77805         define DLA_FMA.
77806         [DLA_FMA] (EMULV): Use DLA_FMA.
77807         [DLA_FMA] (MUL12): Use EMULV.
77808         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
77809         that are not needed.
77810         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77811         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77812         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77813         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77814         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77815         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77816         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77817
77818 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
77819
77820         * math/s_nan.c: Undef __nan.
77821         * math/s_nanf.c: Undef __nanf.
77822         * math/s_nanl.c: Undef __nanl.
77823         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
77824         "math_private.h".
77825
77826 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77827
77828         * math/s_catan.c: Add branch predictions.
77829         * math/s_catanf.c: Likewise.
77830         * math/s_catanh.c: Likewise.
77831         * math/s_catanhf.c: Likewise.
77832         * math/s_catanhl.c: Likewise.
77833         * math/s_catanl.c: Likewise.
77834         * math/s_cexp.c: Likewise.
77835         * math/s_cexpf.c: Likewise.
77836         * math/s_cexpl.c: Likewise.
77837         * math/s_clog.c: Likewise.
77838         * math/s_clog10.c: Likewise.
77839         * math/s_clog10f.c: Likewise.
77840         * math/s_clog10l.c: Likewise.
77841         * math/s_clogf.c: Likewise.
77842         * math/s_clogl.c: Likewise.
77843         * math/s_csqrt.c: Likewise.
77844         * math/s_csqrtf.c: Likewise.
77845         * math/s_csqrtl.c: Likewise.
77846         * math/s_ctanf.c: Likewise.
77847         * math/s_ctanh.c: Likewise.
77848         * math/s_ctanhf.c: Likewise.
77849         * math/s_ctanhl.c: Likewise.
77850         * math/s_ctanl.c: Likewise.
77851
77852         * math/math_private.h: Define __nan, __nanf, __nanl.
77853         * math/s_cacosh.c: Include <math_private.h>.
77854         * math/s_cacoshl.c: Likewise.
77855         * math/s_casinh.c: Likewise.
77856         * math/s_casinhf.c: Likewise.
77857         * math/s_casinhl.c: Likewise.
77858         * math/s_ccos.c: Rely entire on ccosh.
77859         * math/s_ccosf.c: Rely entire on ccoshf.
77860         * math/s_ccosl.c: Rely entirely on ccoshl.
77861         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
77862         Remove tests for FE_INVALID.
77863         * math/s_ccoshf.c: Likewise.
77864         * math/s_ccoshl.c: Likewise.
77865         * math/s_csin.c: Likewise.
77866         * math/s_csinf.c: Likewise.
77867         * math/s_csinh.c Likewise.
77868         * math/s_csinhf.c: Likewise.
77869         * math/s_csinhl.c: Likewise.
77870         * math/s_csinl.c: Likewise.
77871         * math/s_ctan.c: Likewise.
77872         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
77873         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
77874         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
77875
77876 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
77877
77878         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
77879         compilation problems.
77880
77881         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
77882         __builtin_expect.
77883
77884 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
77885
77886         * sysdeps/i386/configure.in: Test for -mfma4 option.
77887         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
77888         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
77889         COMMON_CPUID_INDEX_80000001.
77890         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
77891         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
77892         use it if FMA3 is not supported.
77893         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
77894
77895         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
77896         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
77897
77898 2011-10-20  Andreas Schwab  <schwab@redhat.com>
77899
77900         [BZ #12892]
77901         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
77902         it would create a cycle with a link time dependency.
77903
77904 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
77905
77906         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
77907         instruction.
77908         * string/Makefile (strop-tests): Add rawmemchr.
77909         * string/test-rawmemchr.c: New file.
77910
77911         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
77912         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
77913         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
77914         when compiling str{,n}casecmp and when AVX is available.  Hook up
77915         new optimized code in initializers.
77916
77917 2011-10-19  Andreas Schwab  <schwab@redhat.com>
77918
77919         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
77920         __feraiseexcept instead of feraiseexcept.
77921
77922 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
77923
77924         * math/math_private.h: Define defaults for libc_fetestexcept and
77925         libc_feupdateenv.
77926         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
77927         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
77928         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
77929         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77930         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
77931         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77932         libc_fetestexcept and libc_feupdateenv.
77933
77934         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
77935         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
77936         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
77937         * sysdeps/x86_64/fpu/math_private.h: Define special version of
77938         libc_feholdexcept_setround.
77939
77940         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
77941         Add s_nearbyint-c and s_nearbyintf-c.
77942         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
77943         nearbyintf inlines.
77944         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
77945         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
77946         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
77947         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
77948
77949         * math/math_private.h: Define defaults for libc_fegetround,
77950         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
77951         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
77952         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
77953         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
77954         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
77955         standard functions.
77956         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
77957         Remove comments and hacks for old compiler versions.
77958         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77959         libc_fegetround, libc_fesetround, libc_feholdexcept, and
77960         libc_feholdexceptl.
77961
77962 2011-10-18  Andreas Schwab  <schwab@redhat.com>
77963
77964         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
77965         (__feraiseexcept_renamed): Add __NTH.
77966         (feraiseexcept): Add __NTH.  Rename local variables to fix
77967         namespace violations.
77968
77969 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
77970
77971         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
77972
77973         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
77974
77975         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
77976         recently added interfaces.
77977         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
77978
77979         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
77980         about macro parameter expansion.
77981
77982         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
77983         __NO_MATH_INLINES is defined.  Cleanups.
77984
77985         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
77986         and __floorf is target has SSE4.1.
77987         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
77988         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
77989         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
77990         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
77991
77992         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
77993         name.
77994         (floorf): Likewise.
77995
77996         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
77997
77998 2011-10-17  Andreas Schwab  <schwab@redhat.com>
77999
78000         * misc/sys/cdefs.h: Fix last change.
78001
78002         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
78003         database lookup.
78004
78005 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
78006
78007         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
78008
78009         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
78010         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
78011         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
78012         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
78013         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
78014         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
78015         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
78016         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
78017         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
78018         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
78019         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
78020         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
78021         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
78022         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
78023         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
78024         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
78025         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
78026         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
78027         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
78028         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
78029         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
78030         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
78031
78032         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
78033         ceil, ceilf, floor, floorf.
78034
78035         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
78036         Perform IRELATIVE relocations last.
78037
78038         * elf/do-rel.h: Add another parameter nrelative, replacing the
78039         local variable with the same name.  Change name of the function
78040         to end in Rel or Rela (uppercase).
78041         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
78042         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
78043         elf_dynamic_do_##reloc function.
78044
78045 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78046
78047         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
78048         is sufficient, at least on modern CPUs.
78049
78050         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
78051
78052         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
78053         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
78054
78055         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
78056         __expl_finite.
78057         * math/bits/math-finite.h: Add entries for exp.
78058         * math/e_expl.c: Add __*_finite alias.
78059         * sysdeps/i386/fpu/e_exp.S: Likewise.
78060         * sysdeps/i386/fpu/e_expf.S: Likewise.
78061         * sysdeps/i386/fpu/e_expl.c: Likewise.
78062         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78063         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78064         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
78065         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
78066         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
78067         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
78068         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
78069
78070         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
78071         is sufficient, at least on modern CPUs.
78072
78073         * ctype/ctype-info.c (__ctype_init): Define.
78074         * include/ctype.h (__ctype_init): Declare.
78075         (__ctype_b_loc): The variable is always initialized.
78076         (__ctype_toupper_loc): Likewise.
78077         (__ctype_tolower_loc): Likewise.
78078         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
78079         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
78080
78081 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
78082
78083         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
78084
78085         * configure.in: Also look in $cxxmachine/include for C++ system
78086         headers.
78087
78088 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78089
78090         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
78091         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
78092         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
78093         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
78094         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
78095         (USE_AS_WMEMCMP): New macro.
78096         Fixing indents.
78097         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
78098         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
78099         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
78100         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
78101         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78102         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
78103         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
78104         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
78105         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
78106         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
78107         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
78108         (USE_AS_WMEMCMP): New macro.
78109         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
78110         * sysdeps/string/test-memcmp.c: Update.
78111         Fix simple_wmemcmp.
78112         Add new tests.
78113         * wcsmbs/wmemcmp.c: Update.
78114         (WMEMCMP): New macro.
78115         Fix overflow bug.
78116
78117 2011-10-12  Andreas Jaeger  <aj@suse.de>
78118
78119         [BZ #13268]
78120         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
78121
78122 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78123
78124         * libio/iofwide.c (do_length): Avoid warning.
78125
78126         * ctype/ctype.h (__isctype_f): Add missing __THROW.
78127
78128 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
78129
78130         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
78131
78132         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
78133         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
78134         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
78135         * sysdeps/i386/i686/fpu/e_log.S: New file.
78136         * sysdeps/i386/i686/fpu/e_logf.S: New file.
78137         * sysdeps/i386/i686/fpu/e_logl.S: New file.
78138
78139         * ctype/ctype.h: Add support for inlined isXXX functions when
78140         compiling C++ code.
78141
78142 2011-10-14  Andreas Schwab  <schwab@redhat.com>
78143
78144         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78145
78146         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
78147
78148 2011-10-13  Roland McGrath  <roland@hack.frob.com>
78149
78150         [BZ #13291]
78151         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
78152
78153 2011-10-13  Andreas Schwab  <schwab@redhat.com>
78154
78155         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
78156         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
78157         feraiseexcept.
78158
78159         * sysdeps/x86_64/memrchr.S: Check for zero size.
78160
78161         * string/stratcliff.c: Add memrchr tests.
78162
78163 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78164
78165         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78166         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
78167         rawmemchr-sse2 rawmemchr-sse2-bsf.
78168         * sysdeps/i386/i686/multiarch/memchr.S: New file.
78169         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
78170         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
78171         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
78172         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
78173         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
78174         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
78175         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
78176         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
78177         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
78178         * string/memrchr.c (MEMRCHR): New macro.
78179
78180 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
78181
78182         Add integration with gcc's -ffinite-math-only and optimize wrapper
78183         functions in libm.
78184         * Versions.def: Define GLIBC_2.15 version for libm.
78185         * math/Makefile (headers): Add bits/math-finite.h.
78186         * math/bits/math-finite.h: New file.
78187         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
78188         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
78189         * math/e_acoshl.c: Add __*_finite alias.
78190         * math/e_acosl.c: Likewise.
78191         * math/e_asinl.c: Likewise.
78192         * math/e_atan2l.c: Likewise.
78193         * math/e_atanhl.c: Likewise.
78194         * math/e_coshl.c: Likewise.
78195         * math/e_exp10.c: Likewise.
78196         * math/e_exp10f.c: Likewise.
78197         * math/e_exp10l.c: Likewise.
78198         * math/e_exp2l.c: Likewise.
78199         * math/e_fmodl.c: Likewise.
78200         * math/e_gammal_r.c: Likewise.
78201         * math/e_hypotl.c: Likewise.
78202         * math/e_j0l.c: Likewise.
78203         * math/e_j1l.c: Likewise.
78204         * math/e_jnl.c: Likewise.
78205         * math/e_lgammal_r.c: Likewise.
78206         * math/e_log10l.c: Likewise.
78207         * math/e_log2l.c: Likewise.
78208         * math/e_logl.c: Likewise.
78209         * math/e_powl.c: Likewise.
78210         * math/e_sinhl.c: Likewise.
78211         * math/e_sqrtl.c: Likewise.
78212         * math/e_scalb.c: Completely rewritten and optimized.
78213         * math/e_scalbf.c: Likewise.
78214         * math/e_scalbl.c: Likewise.
78215         * math/w_acos.c: Likewise.
78216         * math/w_acosf.c: Likewise.
78217         * math/w_acosl.c: Likewise.
78218         * math/w_acosh.c: Likewise.
78219         * math/w_acoshf.c: Likewise.
78220         * math/w_acoshl.c: Likewise.
78221         * math/w_asin.c: Likewise.
78222         * math/w_asinf.c: Likewise.
78223         * math/w_asinl.c: Likewise.
78224         * math/w_atan2.c: Likewise.
78225         * math/w_atan2f.c: Likewise.
78226         * math/w_atan2l.c: Likewise.
78227         * math/w_atanh.c: Likewise.
78228         * math/w_atanhf.c: Likewise.
78229         * math/w_atanhl.c: Likewise.
78230         * math/w_exp10.c: Likewise.
78231         * math/w_exp10f.c: Likewise.
78232         * math/w_exp10l.c: Likewise.
78233         * math/w_fmod.c: Likewise.
78234         * math/w_fmodf.c: Likewise.
78235         * math/w_fmodl.c: Likewise.
78236         * math/w_j0.c: Likewise.
78237         * math/w_j0f.c: Likewise.
78238         * math/w_j0l.c: Likewise.
78239         * math/w_j1.c: Likewise.
78240         * math/w_j1f.c: Likewise.
78241         * math/w_j1l.c: Likewise.
78242         * math/w_jn.c: Likewise.
78243         * math/w_jnf.c: Likewise.
78244         * math/w_log.c: Likewise.
78245         * math/w_logf.c: Likewise.
78246         * math/w_logl.c: Likewise.
78247         * math/w_log10.c: Likewise.
78248         * math/w_log10f.c: Likewise.
78249         * math/w_log10l.c: Likewise.
78250         * math/w_log2.c: Likewise.
78251         * math/w_log2f.c: Likewise.
78252         * math/w_log2l.c: Likewise.
78253         * math/w_pow.c: Likewise.
78254         * math/w_powf.c: Likewise.
78255         * math/w_powl.c: Likewise.
78256         * math/w_remainder.c: Likewise.
78257         * math/w_remainderf.c: Likewise.
78258         * math/w_remainderl.c: Likewise.
78259         * math/w_scalb.c: Likewise.
78260         * math/w_scalbf.c: Likewise.
78261         * math/w_scalbl.c: Likewise.
78262         * math/w_sqrt.c: Likewise.
78263         * math/w_sqrtf.c: Likewise.
78264         * math/w_sqrtl.c: Likewise.
78265         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
78266         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
78267         used.
78268         * math/math_private.h: Declare __kernel_standard_f.
78269         * math/w_cosh.c: Remove cruft and optimize a bit.
78270         * math/w_coshf.c: Likewise.
78271         * math/w_coshl.c: Likewise.
78272         * math/w_exp2.c: Likewise.
78273         * math/w_exp2f.c: Likewise.
78274         * math/w_exp2l.c: Likewise.
78275         * math/w_hypot.c: Likewise.
78276         * math/w_hypotf.c: Likewise.
78277         * math/w_hypotl.c: Likewise.
78278         * math/w_lgamma.c: Likewise.
78279         * math/w_lgamma_r.c: Likewise.
78280         * math/w_lgammaf.c: Likewise.
78281         * math/w_lgammaf_r.c: Likewise.
78282         * math/w_lgammal.c: Likewise.
78283         * math/w_lgammal_r.c: Likewise.
78284         * math/w_sinh.c: Likewise.
78285         * math/w_sinhf.c: Likewise.
78286         * math/w_sinhl.c: Likewise.
78287         * math/w_tgamma.c: Likewise.
78288         * math/w_tgammaf.c: Likewise.
78289         * math/w_tgammal.c: Likewise.
78290         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
78291         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
78292         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
78293         Minor optimizations.  Pretty printing.  Remove cruft.
78294         * sysdeps/i386/fpu/e_acosf.S: Likewise.
78295         * sysdeps/i386/fpu/e_acosh.S: Likewise.
78296         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
78297         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
78298         * sysdeps/i386/fpu/e_acosl.c: Likewise.
78299         * sysdeps/i386/fpu/e_asin.S: Likewise.
78300         * sysdeps/i386/fpu/e_asinf.S: Likewise.
78301         * sysdeps/i386/fpu/e_atan2.S: Likewise.
78302         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
78303         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
78304         * sysdeps/i386/fpu/e_atanh.S: Likewise.
78305         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
78306         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
78307         * sysdeps/i386/fpu/e_exp10.S: Likewise.
78308         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
78309         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
78310         * sysdeps/i386/fpu/e_exp2.S: Likewise.
78311         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
78312         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
78313         * sysdeps/i386/fpu/e_fmod.S: Likewise.
78314         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
78315         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
78316         * sysdeps/i386/fpu/e_hypot.S: Likewise.
78317         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
78318         * sysdeps/i386/fpu/e_log.S: Likewise.
78319         * sysdeps/i386/fpu/e_log10.S: Likewise.
78320         * sysdeps/i386/fpu/e_log10f.S: Likewise.
78321         * sysdeps/i386/fpu/e_log10l.S: Likewise.
78322         * sysdeps/i386/fpu/e_log2.S: Likewise.
78323         * sysdeps/i386/fpu/e_log2f.S: Likewise.
78324         * sysdeps/i386/fpu/e_log2l.S: Likewise.
78325         * sysdeps/i386/fpu/e_logf.S: Likewise.
78326         * sysdeps/i386/fpu/e_logl.S: Likewise.
78327         * sysdeps/i386/fpu/e_pow.S: Likewise.
78328         * sysdeps/i386/fpu/e_powf.S: Likewise.
78329         * sysdeps/i386/fpu/e_powl.S: Likewise.
78330         * sysdeps/i386/fpu/e_remainder.S: Likewise.
78331         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
78332         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
78333         * sysdeps/i386/fpu/e_scalb.S: Likewise.
78334         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
78335         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
78336         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
78337         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
78338         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
78339         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
78340         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
78341         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78342         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
78343         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78344         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
78345         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
78346         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
78347         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
78348         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
78349         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
78350         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
78351         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78352         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
78353         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
78354         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78355         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
78356         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
78357         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78358         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78359         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
78360         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
78361         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
78362         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
78363         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
78364         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
78365         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78366         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
78367         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
78368         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
78369         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78370         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
78371         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78372         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
78373         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
78374         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
78375         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
78376         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
78377         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
78378         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
78379         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
78380         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
78381         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
78382         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
78383         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
78384         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
78385         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
78386         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
78387         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
78388         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
78389         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
78390         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
78391         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
78392         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78393         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
78394         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
78395         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
78396         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
78397         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
78398         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
78399         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
78400         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
78401         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
78402         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
78403         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
78404         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
78405         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
78406         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
78407         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
78408         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
78409         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
78410         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
78411         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
78412         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
78413         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
78414         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
78415         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
78416         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
78417         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
78418         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
78419         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78420         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
78421         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
78422         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
78423         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78424         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
78425         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78426         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
78427         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
78428         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
78429         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
78430         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
78431         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
78432         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
78433         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78434         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78435         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78436         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
78437         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
78438         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
78439         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
78440         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
78441         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
78442         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
78443         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
78444         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
78445         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
78446         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78447         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
78448         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
78449         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
78450         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
78451         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
78452         (__isnanf): Likewise.
78453         (__isinf_ns): Likewise.
78454         (__isinf_nsf): Likewise.
78455         (__finite): Likewise.
78456         (__finitef): Likewise.
78457         (__ieee754_sqrt): Define as macro.
78458         (__ieee754_sqrtf): Define as macro.
78459         (__ieee754_sqrtl): Define as macro.
78460         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
78461         inlined copy.
78462         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
78463         __FINITE_MATH_ONLY__ consistent.
78464         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
78465
78466 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
78467
78468         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
78469         of rawmemchr.
78470
78471         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
78472
78473 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
78474
78475         * po/ja.po: Update from translation team.
78476
78477 2011-10-08  Roland McGrath  <roland@hack.frob.com>
78478
78479         * locale/programs/locarchive.c (prepare_address_space): New function.
78480         (create_archive, enlarge_archive, open_archive): Use it.
78481
78482         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
78483         inside [SHARED], where it is used.
78484
78485         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
78486
78487         * nss/getent.c (netgroup_keys): Remove unused variable.
78488         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
78489
78490 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
78491
78492         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
78493         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
78494         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
78495         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
78496         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
78497         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
78498         * math/Makefile (libm-calls): Add s_isinf_ns.
78499         * math/divtc3.c: Use __isinf_nsl instead of isinf.
78500         * math/multc3.c: Likewise.
78501         * math/s_casin.c: Likewise.
78502         * math/s_casinf.c: Likewise.
78503         * math/s_casinl.c: Likewise.
78504         * math/s_ccos.c: Likewise.
78505         * math/s_ccosf.c: Likewise.
78506         * math/s_ccosl.c: Likewise.
78507         * math/s_ctan.c: Likewise.
78508         * math/s_ctanf.c: Likewise.
78509         * math/s_ctanh.c: Likewise.
78510         * math/s_ctanhf.c: Likewise.
78511         * math/s_ctanhl.c: Likewise.
78512         * math/s_ctanl.c: Likewise.
78513         * math/w_fmod.c: Likewise.
78514         * math/w_fmodf.c: Likewise.
78515         * math/w_fmodl.c: Likewise.
78516         * math/w_remainder.c: Likewise.
78517         * math/w_remainderf.c: Likewise.
78518         * math/w_remainderl.c: Likewise.
78519         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
78520         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
78521         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
78522         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
78523         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
78524         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
78525         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
78526         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
78527
78528         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
78529         of the number.
78530         * stdio-common/printf_fphex.c: Likewise.
78531         * stdio-common/printf_size.c: Likewise.
78532
78533         * math/e_exp10.c: Include math_private.h using <...> not "...".
78534         * math/e_exp10f.c: Likewise.
78535         * math/e_exp10l.c: Likewise.
78536         * math/e_exp2l.c: Likewise.
78537         * math/e_j0l.c: Likewise.
78538         * math/e_j1l.c: Likewise.
78539         * math/e_jnl.c: Likewise.
78540         * math/e_lgammal_r.c: Likewise.
78541         * math/e_rem_pio2l.c: Likewise.
78542         * math/e_scalb.c: Likewise.
78543         * math/e_scalbf.c: Likewise.
78544         * math/e_scalbl.c: Likewise.
78545         * math/k_cosl.c: Likewise.
78546         * math/k_sinl.c: Likewise.
78547         * math/k_tanl.c: Likewise.
78548         * math/s_cacoshf.c: Likewise.
78549         * math/s_catan.c: Likewise.
78550         * math/s_catanf.c: Likewise.
78551         * math/s_catanh.c: Likewise.
78552         * math/s_catanhf.c: Likewise.
78553         * math/s_catanhl.c: Likewise.
78554         * math/s_catanl.c: Likewise.
78555         * math/s_ccosh.c: Likewise.
78556         * math/s_ccoshf.c: Likewise.
78557         * math/s_ccoshl.c: Likewise.
78558         * math/s_cexp.c: Likewise.
78559         * math/s_cexpf.c: Likewise.
78560         * math/s_cexpl.c: Likewise.
78561         * math/s_clog.c: Likewise.
78562         * math/s_clog10.c: Likewise.
78563         * math/s_clog10f.c: Likewise.
78564         * math/s_clog10l.c: Likewise.
78565         * math/s_clogf.c: Likewise.
78566         * math/s_clogl.c: Likewise.
78567         * math/s_csin.c: Likewise.
78568         * math/s_csinf.c: Likewise.
78569         * math/s_csinh.c: Likewise.
78570         * math/s_csinhf.c: Likewise.
78571         * math/s_csinhl.c: Likewise.
78572         * math/s_csinl.c: Likewise.
78573         * math/s_csqrt.c: Likewise.
78574         * math/s_csqrtf.c: Likewise.
78575         * math/s_csqrtl.c: Likewise.
78576         * math/s_ctan.c: Likewise.
78577         * math/s_ctanf.c: Likewise.
78578         * math/s_ctanh.c: Likewise.
78579         * math/s_ctanhf.c: Likewise.
78580         * math/s_ctanhl.c: Likewise.
78581         * math/s_ctanl.c: Likewise.
78582         * math/s_ldexp.c: Likewise.
78583         * math/s_ldexpf.c: Likewise.
78584         * math/s_ldexpl.c: Likewise.
78585         * math/s_significand.c: Likewise.
78586         * math/s_significandf.c: Likewise.
78587         * math/s_significandl.c: Likewise.
78588         * math/w_acos.c: Likewise.
78589         * math/w_acosf.c: Likewise.
78590         * math/w_acosh.c: Likewise.
78591         * math/w_acoshf.c: Likewise.
78592         * math/w_acoshl.c: Likewise.
78593         * math/w_acosl.c: Likewise.
78594         * math/w_asin.c: Likewise.
78595         * math/w_asinf.c: Likewise.
78596         * math/w_asinl.c: Likewise.
78597         * math/w_atan2.c: Likewise.
78598         * math/w_atan2f.c: Likewise.
78599         * math/w_atan2l.c: Likewise.
78600         * math/w_atanh.c: Likewise.
78601         * math/w_atanhf.c: Likewise.
78602         * math/w_atanhl.c: Likewise.
78603         * math/w_cosh.c: Likewise.
78604         * math/w_coshf.c: Likewise.
78605         * math/w_coshl.c: Likewise.
78606         * math/w_dremf.c: Likewise.
78607         * math/w_exp10.c: Likewise.
78608         * math/w_exp10f.c: Likewise.
78609         * math/w_exp10l.c: Likewise.
78610         * math/w_exp2.c: Likewise.
78611         * math/w_exp2f.c: Likewise.
78612         * math/w_fmod.c: Likewise.
78613         * math/w_fmodf.c: Likewise.
78614         * math/w_fmodl.c: Likewise.
78615         * math/w_hypot.c: Likewise.
78616         * math/w_hypotf.c: Likewise.
78617         * math/w_hypotl.c: Likewise.
78618         * math/w_j0.c: Likewise.
78619         * math/w_j0f.c: Likewise.
78620         * math/w_j0l.c: Likewise.
78621         * math/w_j1.c: Likewise.
78622         * math/w_j1f.c: Likewise.
78623         * math/w_j1l.c: Likewise.
78624         * math/w_jn.c: Likewise.
78625         * math/w_jnf.c: Likewise.
78626         * math/w_jnl.c: Likewise.
78627         * math/w_lgamma.c: Likewise.
78628         * math/w_lgamma_r.c: Likewise.
78629         * math/w_lgammaf.c: Likewise.
78630         * math/w_lgammaf_r.c: Likewise.
78631         * math/w_lgammal.c: Likewise.
78632         * math/w_lgammal_r.c: Likewise.
78633         * math/w_log.c: Likewise.
78634         * math/w_log10.c: Likewise.
78635         * math/w_log10f.c: Likewise.
78636         * math/w_log10l.c: Likewise.
78637         * math/w_log2.c: Likewise.
78638         * math/w_log2f.c: Likewise.
78639         * math/w_log2l.c: Likewise.
78640         * math/w_logf.c: Likewise.
78641         * math/w_logl.c: Likewise.
78642         * math/w_pow.c: Likewise.
78643         * math/w_powf.c: Likewise.
78644         * math/w_powl.c: Likewise.
78645         * math/w_remainder.c: Likewise.
78646         * math/w_remainderf.c: Likewise.
78647         * math/w_remainderl.c: Likewise.
78648         * math/w_scalb.c: Likewise.
78649         * math/w_scalbf.c: Likewise.
78650         * math/w_scalbl.c: Likewise.
78651         * math/w_sinh.c: Likewise.
78652         * math/w_sinhf.c: Likewise.
78653         * math/w_sinhl.c: Likewise.
78654         * math/w_sqrt.c: Likewise.
78655         * math/w_sqrtf.c: Likewise.
78656         * math/w_sqrtl.c: Likewise.
78657         * math/w_tgamma.c: Likewise.
78658         * math/w_tgammaf.c: Likewise.
78659         * math/w_tgammal.c: Likewise.
78660
78661         * po/ja.po: Update from translation team.
78662
78663 2011-09-29  Andreas Jaeger  <aj@suse.de>
78664
78665         [BZ #13179]
78666         * sunrpc/netname.c (netname2host): Fix logic.
78667
78668         [BZ #6779]
78669         [BZ #6783]
78670         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
78671         correctly.
78672         * math/w_remainder.c (__remainder): Likewise.
78673         * math/w_remainderf.c (__remainderf): Likewise.
78674         * math/libm-test.inc (remainder_test): Add test cases.
78675
78676 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78677
78678         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
78679         sdiv_qrnnd.
78680
78681 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78682
78683         * string/test-memcmp.c: Avoid unncessary #defines.
78684         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78685
78686 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78687
78688         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
78689         Use new sse2 version for core i3 - i7 as it's faster
78690         than sse42 version.
78691         (bit_Prefer_PMINUB_for_stringop): New.
78692         * sysdeps/x86_64/rawmemchr.S: Update.
78693         Replace with faster SSE2 version.
78694         * sysdeps/x86_64/memrchr.S: New file.
78695         * sysdeps/x86_64/memchr.S: Update.
78696         Replace with faster SSE2 version.
78697
78698 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
78699
78700         * elf/dl-load.c (lose): Add cast to avoid warning.
78701
78702 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78703
78704         * po/ca.po: Update from translation team.
78705
78706         * inet/getnetgrent_r.c: Hook up nscd.
78707         * nscd/Makefile (routines): Add nscd_netgroup.
78708         (nscd-modules): Add netgroupcache.
78709         (CFLAGS-netgroupcache.c): Define.
78710         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
78711         (cache_search): Add const to second parameter.
78712         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
78713         INNETGR.
78714         (dbs): Add netgrdb entry.
78715         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
78716         (verify_persistent_db): Handle netgrdb.
78717         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
78718         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
78719         GETFDNETGR.
78720         (netgroup_response_header): Define.
78721         (innetgroup_response_header): Define.
78722         (datahead): Add netgroup_response_header and innetgroup_response_header
78723         elements.
78724         * nscd/nscd.conf: Add entries for netgroup cache.
78725         * nscd/nscd.h (dbtype): Add netgrdb.
78726         (_PATH_NSCD_NETGROUP_DB): Define.
78727         (netgroup_iov_disabled): Declare.
78728         (xmalloc, xcalloc, xrealloc): Move declarations here.
78729         (cache_search): Adjust prototype.
78730         Add netgroup-related prototypes.
78731         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
78732         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
78733         (__nscd_innetgr): Declare.
78734         * nscd/selinux.c (perms): Use access_vector_t as element type and
78735         add netgroup-related initializers.
78736         * nscd/netgroupcache.c: New file.
78737         * nscd/nscd_netgroup.c: New file.
78738         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
78739         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
78740         For four parameters use innetgr.
78741         * nss/nss_files/files-init.c: Add definition and callback for netgr.
78742         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
78743         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
78744         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
78745
78746         * nscd/connections.c (register_traced_file): Don't register file
78747         for disabled databases.
78748
78749 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
78750
78751         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
78752
78753         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
78754         from tree and freeing node.
78755
78756 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
78757
78758         * nss/nsswitch.c (__nss_database_lookup): Handle
78759         nss_parse_service_list out of memory case.
78760
78761 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
78762
78763         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
78764         out of memory case.
78765
78766 2011-10-04  Andreas Schwab  <schwab@redhat.com>
78767
78768         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
78769         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
78770         pass it down.
78771         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
78772         elf_machine_rela, elf_machine_lazy_rel.
78773         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
78774         (ELF_DYNAMIC_DO_REL): Likewise.
78775         (ELF_DYNAMIC_DO_RELA): Likewise.
78776         (ELF_DYNAMIC_RELOCATE): Likewise.
78777         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
78778         to ELF_DYNAMIC_DO_REL.
78779         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
78780         (dl_main): In trace mode always set __RTLD_NOIFUNC.
78781         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
78782         elf_machine_rela.
78783         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
78784         skip_ifunc, don't call ifunc function if non-zero.
78785         (elf_machine_rela): Likewise.
78786         (elf_machine_lazy_rel): Likewise.
78787         (elf_machine_lazy_rela): Likewise.
78788         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
78789         (elf_machine_lazy_rel): Likewise.
78790         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
78791         Likewise.
78792         (elf_machine_lazy_rel): Likewise.
78793         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78794         Likewise.
78795         (elf_machine_lazy_rel): Likewise.
78796         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
78797         (elf_machine_lazy_rel): Likewise.
78798         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
78799         (elf_machine_lazy_rel): Likewise.
78800         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
78801         (elf_machine_lazy_rel): Likewise.
78802         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
78803         (elf_machine_lazy_rel): Likewise.
78804         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
78805         (elf_machine_lazy_rel): Likewise.
78806         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
78807         (elf_machine_lazy_rel): Likewise.
78808
78809 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
78810
78811         * nss/nss_files/files-init.c (_nss_files_init): Use static
78812         initialization for all the *_traced_file variables.
78813
78814 2011-09-28  Andreas Schwab  <schwab@redhat.com>
78815
78816         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78817
78818 2011-09-27  Roland McGrath  <roland@hack.frob.com>
78819
78820         [BZ #13226]
78821         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
78822
78823 2011-09-27  Andreas Schwab  <schwab@redhat.com>
78824
78825         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
78826         Reread the line before reparsing it.
78827
78828 2011-09-26  Andreas Schwab  <schwab@redhat.com>
78829
78830         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
78831
78832 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
78833             Maxim Kuvyrkov  <maxim@codesourcery.com>
78834             Joseph Myers  <joseph@codesourcery.com>
78835
78836         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
78837         if needed for __stack_chk_guard.
78838
78839 2011-09-19  Roland McGrath  <roland@hack.frob.com>
78840
78841         * sysdeps/posix/spawni.c (script_execute): Always define it.
78842         It will be optimized away if unused.
78843         (maybe_script_execute): New function.
78844         (__spawni): Call it.
78845
78846         * Makerules: Don't include tls.make.
78847         (config-tls): Always set to thread.
78848         * tls.make.c: File removed.
78849
78850 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
78851
78852         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
78853         * config.make.in (CPPFLAGS-config): New substituted variable.
78854
78855 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78856
78857         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
78858
78859         [BZ #13192]
78860         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
78861         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
78862
78863 2011-09-15  Roland McGrath  <roland@hack.frob.com>
78864
78865         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
78866         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
78867         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
78868         (CALL_FAIL): Likewise.
78869         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
78870         (CALL_FAIL): Macro removed.
78871         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
78872
78873 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78874
78875         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
78876         for __FINITE_MATH_ONLY__ == 1.
78877
78878 2011-09-15  Andreas Schwab  <schwab@redhat.com>
78879
78880         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
78881         __ieee754_sqrt instead of sqrt.
78882         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
78883         __ieee754_sqrtf instead of sqrtf.
78884         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
78885         __floorf instead of floorf.
78886         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
78887         __floorf, __truncf instead of floorf, truncf.
78888
78889 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
78890
78891         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
78892
78893         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
78894         __extern_always_inline.
78895         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
78896         32-bit.
78897
78898 2011-09-14  Andreas Schwab  <schwab@redhat.com>
78899
78900         * elf/rtld.c (dl_main): Also relocate in dependency order when
78901         doing symbol dependency testing.
78902
78903 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
78904
78905         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78906         Always define `refsym'.
78907
78908 2011-09-13  Andreas Schwab  <schwab@redhat.com>
78909
78910         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
78911         (__FD_ELT): Renamed from __FDELT.
78912         * misc/bits/select2.h (__FD_ELT): Likewise.
78913         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
78914         __FD_MASK instead of __FDELT, __FDMASK.
78915         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78916         Likewise.
78917         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78918         Likewise.
78919
78920         * elf/Makefile (gen-ldd): Fix pattern.
78921
78922         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
78923         (init_tls): Likewise.
78924
78925 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
78926
78927         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
78928
78929 2011-09-12  Andreas Schwab  <schwab@redhat.com>
78930
78931         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
78932         `struct cmsghdr *' instead of `void *'.
78933         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
78934         Likewise.
78935
78936 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
78937
78938         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
78939         if non-absolute.
78940         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
78941         ldd_rewrite_script.
78942
78943 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
78944
78945         * configure.in: Remove --with-tls option.
78946         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
78947         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
78948         out in case it is missing.
78949         * sysdeps/ia64/elf/configure.in: Likewise.
78950         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
78951         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
78952         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
78953         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
78954         * sysdeps/sh/elf/configure.in: Likewise.
78955         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
78956         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
78957         * sysdeps/x86_64/elf/configure.in: Likewise.
78958         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
78959         * sysdeps/mach/hurd/tls.h: Likewise.
78960
78961         [BZ #13067]
78962         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
78963
78964         [BZ #13090]
78965         * configure.in: Fix use of AC_INIT.
78966
78967         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
78968
78969 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
78970
78971         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
78972         __set_errno.
78973         * malloc/hooks.c: Likewise.
78974
78975         [BZ #11929]
78976         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
78977         variables statically.
78978         (narenas): Initialize.
78979         (list_lock): Initialize.
78980         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
78981         initializtion of main_arena and list_lock.  Small cleanups.
78982         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
78983         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
78984         Add initializers to main_arena and mp_.
78985         (malloc_state): Remove pagesize member.  Change all users to use
78986         GLRO(dl_pagesize).
78987
78988         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
78989         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
78990         is always initialized.
78991
78992         * malloc/malloc.c: Removed unused configurations and dead code.
78993         * malloc/arena.c: Likewise.
78994         * malloc/hooks.c: Likewise.
78995         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
78996
78997         * include/tls.h: Removed.  USE___THREAD must always be defined.
78998         * bits/libc-tsd.h: Don't handle !USE___THREAD.
78999         * elf/dl-libc.c: Likewise.
79000         * elf/dl-tsd.c: Likewise.
79001         * include/errno.h: Likewise.
79002         * include/netdb.h: Likewise.
79003         * include/resolv.h: Likewise.
79004         * inet/herrno-loc.c: Likewise.
79005         * inet/herrno.c: Likewise.
79006         * malloc/arena.c: Likewise.
79007         * malloc/hooks.c: Likewise.
79008         * malloc/malloc.c: Likewise.
79009         * resolv/res-state.c: Likewise.
79010         * resolv/res_libc.c: Likewise.
79011         * sysdeps/i386/dl-machine.h: Likewise.
79012         * sysdeps/ia64/dl-machine.h: Likewise.
79013         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
79014         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
79015         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
79016         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
79017         * sysdeps/sh/dl-machine.h: Likewise.
79018         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
79019         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
79020         * sysdeps/unix/i386/sysdep.S: Likewise.
79021         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
79022         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
79023         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
79024         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
79025         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
79026         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
79027         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
79028         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
79029         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
79030         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
79031         * sysdeps/unix/x86_64/sysdep.S: Likewise.
79032         * sysdeps/x86_64/dl-machine.h: Likewise.
79033         * tls.make.c: Likewise.
79034
79035         * configure.in: Remove --with-__thread option.  Make tests for
79036         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
79037         tls_model attribute fail if no support is available.  Remove
79038         USE_IN_LIBIO.
79039         * Makeconfig: Adjust for dropped configure option.  All features are
79040         now mandatory.
79041         * Makerules: Likewise.
79042         * Versions.def: Likewise.
79043         * argp/argp-fmtstream.c: Likewise.
79044         * argp/argp-fmtstream.h: Likewise.
79045         * argp/argp-help.c: Likewise.
79046         * assert/assert.c: Likewise.
79047         * config.h.in: Likewise.
79048         * config.make.in: Likewise.
79049         * configure: Likewise.
79050         * configure.in: Likewise.
79051         * csu/Versions: Likewise.
79052         * csu/init.c: Likewise.
79053         * elf/tst-audit2.c: Likewise.
79054         * elf/tst-tls10.c: Likewise.
79055         * elf/tst-tls10.h: Likewise.
79056         * elf/tst-tls11.c: Likewise.
79057         * elf/tst-tls12.c: Likewise.
79058         * elf/tst-tls14.c: Likewise.
79059         * elf/tst-tlsmod11.c: Likewise.
79060         * elf/tst-tlsmod12.c: Likewise.
79061         * elf/tst-tlsmod13.c: Likewise.
79062         * elf/tst-tlsmod13a.c: Likewise.
79063         * elf/tst-tlsmod14a.c: Likewise.
79064         * elf/tst-tlsmod15b.c: Likewise.
79065         * elf/tst-tlsmod16a.c: Likewise.
79066         * elf/tst-tlsmod16b.c: Likewise.
79067         * elf/tst-tlsmod7.c: Likewise.
79068         * elf/tst-tlsmod8.c: Likewise.
79069         * elf/tst-tlsmod9.c: Likewise.
79070         * gmon/gmon.c: Likewise.
79071         * grp/fgetgrent_r.c: Likewise.
79072         * grp/putgrent.c: Likewise.
79073         * hurd/fopenport.c: Likewise.
79074         * include/libc-symbols.h: Likewise.
79075         * include/tls.h: Likewise.
79076         * intl/gettextP.h: Likewise.
79077         * intl/loadinfo.h: Likewise.
79078         * locale/global-locale.c: Likewise.
79079         * locale/localeinfo.h: Likewise.
79080         * mach/devstream.c: Likewise.
79081         * malloc/arena.c: Likewise.
79082         * malloc/set-freeres.c: Likewise.
79083         * misc/err.c: Likewise.
79084         * misc/getttyent.c: Likewise.
79085         * misc/mntent_r.c: Likewise.
79086         * posix/getopt.c: Likewise.
79087         * posix/wordexp.c: Likewise.
79088         * pwd/fgetpwent_r.c: Likewise.
79089         * resolv/Versions: Likewise.
79090         * resolv/res_hconf.c: Likewise.
79091         * shadow/fgetspent_r.c: Likewise.
79092         * shadow/putspent.c: Likewise.
79093         * stdio-common/printf_fphex.c: Likewise.
79094         * stdio-common/tmpfile.c: Likewise.
79095         * stdlib/abort.c: Likewise.
79096         * stdlib/fmtmsg.c: Likewise.
79097         * sunrpc/auth_unix.c: Likewise.
79098         * sunrpc/clnt_perr.c: Likewise.
79099         * sunrpc/clnt_tcp.c: Likewise.
79100         * sunrpc/clnt_udp.c: Likewise.
79101         * sunrpc/clnt_unix.c: Likewise.
79102         * sunrpc/openchild.c: Likewise.
79103         * sunrpc/svc_simple.c: Likewise.
79104         * sunrpc/svc_tcp.c: Likewise.
79105         * sunrpc/svc_udp.c: Likewise.
79106         * sunrpc/svc_unix.c: Likewise.
79107         * sunrpc/xdr.c: Likewise.
79108         * sunrpc/xdr_array.c: Likewise.
79109         * sunrpc/xdr_rec.c: Likewise.
79110         * sunrpc/xdr_ref.c: Likewise.
79111         * sunrpc/xdr_stdio.c: Likewise.
79112
79113 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79114
79115         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79116
79117 2011-07-03  Andreas Jaeger  <aj@suse.de>
79118
79119         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
79120         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
79121         regenerate with gen-libm-tests.pl.
79122
79123 2010-05-12  Petr Baudis  <pasky@suse.cz>
79124
79125         [BZ #11589]
79126         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
79127         around j0() zero points by switching to j1().
79128         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
79129         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
79130         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
79131         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
79132
79133 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79134
79135         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
79136         instead of 0.
79137         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
79138         instead of 0.
79139         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
79140         Patch in part by Pavel Roskin <proski@gnu.org>.
79141
79142         [BZ #13138]
79143         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
79144         realloc.
79145         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
79146         Free memory block if necessary.
79147
79148         [BZ #12847]
79149         * libio/genops.c (INTDEF): For string streams the _lock pointer can
79150         be NULL.  Don't lock in this case.
79151
79152 2011-09-09  Roland McGrath  <roland@hack.frob.com>
79153
79154         * elf/elf.h (ELFOSABI_GNU): New macro.
79155         (ELFOSABI_LINUX): Define to that.
79156
79157 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
79158
79159         * string/strncat.c (strncat): Undef the symbol in case it has been
79160         defined in bits/string.h.
79161
79162 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79163
79164         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
79165
79166         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
79167         link map.
79168
79169 2011-08-17  Andreas Jaeger  <aj@suse.de>
79170
79171         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
79172
79173 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
79174             Ian Lance Taylor  <iant@google.com>
79175
79176         * math/libm-test.inc (lround_test): New testcase.
79177         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
79178
79179 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
79180
79181         * Makefile: Remove support for automatic cvs check-ins.
79182         * Makerules: Likewise.
79183         * config.make.in: Likewise.
79184         * configure.in: Likewise.
79185         * intl/Makefile: Likewise.
79186         * locale/Makefile: Likewise.
79187         * po/Makefile: Likewise.
79188         * posix/Makefile: Likewise.
79189         * sysdeps/gnu/Makefile: Likewise.
79190         * sysdeps/mach/hurd/Makefile: Likewise.
79191         * sysdeps/sparc/sparc32/Makefile: Likewise.
79192
79193         [BZ #13118]
79194         * posix/Makefile (bug-regex32-ENV): Define.
79195         Patch by John Stanley <jpsinthemix@verizon.net>.
79196
79197         * misc/Makefile (headers): Add bits/select2.h.
79198         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
79199         * misc/bits/select2.h: New file.
79200         * include/bits/select2.h: New file.
79201         * debug/Makefile (routines): Add fdelt_chk.
79202         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
79203         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
79204         FD_ISSET.
79205         * debug/fdelt_chk.c: New file.
79206
79207         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
79208         * wcsmbs/test-wmemcmp.c: Likewise.
79209         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
79210         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
79211
79212 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79213
79214         * string/Makefile (strop-tests): Add memcmp.
79215         * string/test-wmemcmp.c: New file.
79216         * string/test-memcmp.c: Add wmemcmp support.
79217
79218 2011-09-08  Roland McGrath  <roland@hack.frob.com>
79219
79220         [BZ #13153]
79221         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
79222         2011-07-19 change.
79223
79224         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
79225         garbage value in a __mach_port_mod_refs call in the cases of the
79226         task-self and thread-self ports.
79227
79228 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79229
79230         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
79231
79232 2011-09-08  Andreas Schwab  <schwab@redhat.com>
79233
79234         * elf/dl-load.c (lose): Check for non-null L.
79235
79236 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79237
79238         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
79239
79240         * elf/dl-libc.c (dlerror_run): Pass back error code from
79241         dl_catch_error.
79242
79243         [BZ #13123]
79244         * elf/dl-load.c (lose): Free l_origin if it is valid.
79245
79246         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
79247         names.
79248         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
79249         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79250         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79251         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79252         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
79253         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
79254
79255 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79256
79257         * sysdeps/powerpc/fpu/e_hypot.c: New file.
79258         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
79259         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
79260         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
79261         * sysdeps/powerpc/fpu/k_cosf.c: New file.
79262         * sysdeps/powerpc/fpu/k_sinf.c: New file.
79263         * sysdeps/powerpc/fpu/s_cosf.c: New file.
79264         * sysdeps/powerpc/fpu/s_sinf.c: New file.
79265         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
79266         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
79267
79268 2011-08-15  Alan Modra  <amodra@gmail.com>
79269
79270         [BZ #13092]
79271         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
79272         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
79273         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
79274         ppc_mcount to static-only-routines.
79275         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
79276         __mcount_internal.
79277         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
79278         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
79279
79280 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
79281
79282         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
79283         for finite and infinity parameters.
79284
79285 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
79286
79287         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
79288         and add nop instructions for throughput optimization.
79289         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
79290
79291 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
79292
79293         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
79294         aligned copy for power7 with vector-scalar instructions.
79295         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
79296
79297 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
79298
79299         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
79300         AVX check.
79301
79302 2011-09-07  Andreas Schwab  <schwab@redhat.com>
79303
79304         [BZ #13144]
79305         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
79306         last change.
79307
79308 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79309
79310         * sysdeps/unix/sysv/linux/x86_64/init-first.c
79311         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
79312         syscall wrapper around clock_gettime in __vdso_clock_gettime.
79313         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
79314         clock_gettime.
79315
79316 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79317
79318         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
79319         Forgot to demangle the pointer.
79320
79321         * sysdeps/i386/sysdep.h: Define atom_text_section.
79322         * sysdeps/x86_64/sysdep.h: Likewise.
79323         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
79324         section with atom_text_section.
79325         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79326         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79327         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
79328         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79329         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
79330
79331         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
79332         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
79333         already be defined.  Change to take two parameters and don't assign
79334         result to variable.  Adjust all users.
79335         Define INTERNAL_GETTIME if not already defined.
79336         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
79337         call.
79338         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
79339         HAVE_CLOCK_GETTIME_VSYSCALL.
79340         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
79341
79342         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
79343         gettimeofday vsyscall, just use time.
79344
79345 2011-09-06  Andreas Schwab  <schwab@redhat.com>
79346
79347         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
79348         <errno.h>.
79349
79350 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79351
79352         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
79353         syscall on x86-64.
79354         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
79355         syscall.
79356         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
79357         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
79358         syscall if possible.
79359
79360 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79361
79362         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
79363         e_ident.  Don't pass to find_mapsXX.
79364         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
79365
79366 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79367
79368         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79369         strchr-sse2-no-bsf strrchr-sse2-no-bsf
79370         * sysdeps/x86_64/multiarch/strchr.S: Update.
79371         Check bit_slow_BSF bit.
79372         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
79373         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
79374         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
79375
79376 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79377
79378         [BZ #13134]
79379         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
79380         before glibc 2.15.
79381         (tryshell): Define.
79382         (__spawni): Change last parameter to be flag.  Test
79383         SPAWN_XFLAGS_USE_PATH flag to use path or not.
79384         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
79385         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
79386         * posix/spawni.c: Likewise.
79387         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
79388         * posix/spawnp.c: Likewise.  Change normal version to use
79389         SPAWN_XFLAGS_USE_PATH.
79390         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
79391         SPAWN_XFLAGS_TRY_SHELL.
79392
79393         [BZ #13150]
79394         * posix/glob.h: Remove gcc 1.x support.
79395
79396         [BZ #13068]
79397         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
79398
79399 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79400
79401         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79402         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
79403         strrchr-sse2-bsf
79404         * sysdeps/i386/i686/multiarch/strchr.S: New file.
79405         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
79406         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
79407         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
79408         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
79409         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
79410
79411 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79412
79413         * sysdeps/x86_64/wcscmp.S: New file.
79414
79415         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
79416         wcscmp-c wcscmp-sse2
79417         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
79418         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
79419         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
79420         * wcsmbs/wcscmp.c: Allow renaming.
79421
79422 2011-09-05  David S. Miller  <davem@davemloft.net>
79423
79424         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
79425         stack slot, rather than the struct return pointer slot.
79426         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
79427         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
79428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
79429         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
79430
79431 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79432
79433         * po/ja.po: Update from translation team.
79434
79435         [BZ #13144]
79436         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
79437         kernel in 64-bit binaries.
79438
79439 2011-09-01  David S. Miller  <davem@davemloft.net>
79440
79441         * elf/elf.h (HWCAP_SPARC_*): Move to..
79442         * sysdeps/sparc/sysdep.h: this new file and add new values.
79443         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
79444         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
79445         _DL_HWCAP_COUNT to 24.
79446         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
79447         entries.
79448         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
79449         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
79450         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
79451         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
79452         instead of magic constants.
79453         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
79454
79455 2011-08-31  David S. Miller  <davem@davemloft.net>
79456
79457         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
79458         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
79459         Reimplement to do errno handling inline.
79460         (SYSCALL_ERROR_HANDLER): New macro.
79461         (__SYSCALL_STRING): Do not do errno handling in asm.
79462         (__CLONE_SYSCALL_STRING): Delete.
79463         (__INTERNAL_SYSCALL_STRING): Delete.
79464         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
79465         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
79466         (PSEUDO): Reimplement to do errno handling inline.
79467         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
79468         (SYSCALL_ERROR_HANDLER): New macro.
79469         (__SYSCALL_STRING): Do not do errno handling in asm.
79470         (__CLONE_SYSCALL_STRING): Delete.
79471         (__INTERNAL_SYSCALL_STRING): Delete.
79472         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
79473         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
79474         i386.
79475         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
79476         (inline_syscall*): Add 'err' argument.
79477         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
79478         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
79479         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
79480         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
79481
79482         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
79483         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
79484
79485 2011-08-30  Andreas Schwab  <schwab@redhat.com>
79486
79487         * elf/rtld.c (dl_main): Relocate objects in dependency order.
79488
79489 2011-08-29  Jiri Olsa <jolsa@redhat.com>
79490
79491         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
79492         directive.
79493
79494 2011-08-24  David S. Miller  <davem@davemloft.net>
79495
79496         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
79497
79498 2011-08-24  Andreas Schwab  <schwab@redhat.com>
79499
79500         * elf/Makefile: Add rules to build and run unload8 test.
79501         * elf/unload8.c: New file.
79502         * elf/unload8mod1.c: New file.
79503         * elf/unload8mod1x.c: New file.
79504         * elf/unload8mod2.c: New file.
79505         * elf/unload8mod3.c: New file.
79506
79507         * elf/dl-close.c (_dl_close_worker): Reset private search list if
79508         it wasn't used.
79509
79510 2011-08-23  David S. Miller  <davem@davemloft.net>
79511
79512         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
79513         subtract stack bias.
79514         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
79515         %sp not %fp in calculations.
79516         (_JMPBUF_UNWINDS_ADJ): Likewise.
79517
79518         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
79519         (aio_suspend): Call it to force an exception region around the
79520         AIO_MISC_WAIT() invocation.
79521
79522 2011-08-23  Andreas Schwab  <schwab@redhat.com>
79523
79524         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
79525         backslash.
79526
79527 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
79528
79529         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
79530         protection macro.
79531         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
79532         and <dl-machine.h>.
79533         (Elf64_FuncDesc): Remove.
79534
79535 2011-08-22  David S. Miller  <davem@davemloft.net>
79536
79537         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
79538         sigaltstack check, add missing cfi directives.
79539         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
79540         missing cfi directives, and sigaltstack handling.
79541
79542 2011-08-16  Andreas Schwab  <schwab@redhat.com>
79543
79544         [BZ #11724]
79545         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
79546         object is seen twice.
79547         * elf/dl-fini.c (_dl_sort_fini): Likewise.
79548
79549         * elf/Makefile (distribute): Add tst-initorder2.c.
79550         (tests): Add tst-initorder2.
79551         (modules-names): Add tst-initorder2a tst-initorder2b
79552         tst-initorder2c tst-initorder2d.  Add rules to build them.
79553         ($(objpfx)tst-initorder2.out): New rule.
79554         * elf/tst-initorder2.c: New file.
79555         * elf/tst-initorder2.exp: New file.
79556
79557 2011-08-22  Andreas Schwab  <schwab@redhat.com>
79558
79559         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
79560
79561         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
79562         dependencies back to end of function.
79563
79564         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79565         $(elfobjdir)/ld.so.
79566
79567 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
79568
79569         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
79570         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
79571         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
79572         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
79573         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
79574         of __vdso_gettimeofday.
79575         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
79576         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
79577         attribute_hidden.
79578         (_libc_vdso_platform_setup): Remove initialization of
79579         __vdso_gettimeofday and __vdso_time.
79580
79581 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79582
79583         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
79584         and fgetc_unlocked.
79585         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
79586         getc_unlocked.
79587
79588         * elf/dl-open.c (add_to_global): Report additions to the global scope
79589         for LD_DEBUG=scopes.
79590         (dl_open_worker): Also print scope of newly loaded dependencies.
79591         (_dl_show_scope): Indicate if there is no scope.
79592
79593         [BZ #13114]
79594         * stdio-common/Makefile (tests): Add bug24.
79595         * stdio-common/bug24.c: New file.
79596
79597 2011-08-19  Andreas Jaeger  <aj@suse.de>
79598
79599         [BZ #13114]
79600         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
79601         non-existant file when using close-on-exec mode.
79602
79603 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79604
79605         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
79606         the very first instruction.
79607
79608         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
79609         the CFI state in the end.
79610         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
79611         inclusion of dl-trampoline.h.
79612         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
79613
79614 2011-08-19  Andreas Schwab  <schwab@redhat.com>
79615
79616         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
79617         expectations for long double.
79618
79619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
79620         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
79621
79622 2011-08-14  David S. Miller  <davem@davemloft.net>
79623
79624         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
79625         artificual limit depends upon the system page size.
79626
79627 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79628
79629         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
79630         * resolv/Makefile: Define CFLAGS-libresolv.
79631
79632 2011-08-17  Andreas Schwab  <schwab@redhat.com>
79633
79634         * nss/makedb.c (compute_tables): Make variables used in nested
79635         function static.
79636
79637 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79638
79639         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
79640         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
79641         if buffer was too small.
79642
79643         * elf/pldd.c (main): Attach to all threads in the process.
79644         Rewrite /proc handling to use *at functions.
79645
79646 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
79647
79648         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
79649         specifies first scope to show.
79650         (dl_open_worker): Update callers.  Move printing scope of new
79651         object to before the relocation.
79652         * elf/rtld.c (dl_main): Update _dl_show_scope call.
79653         * sysdeps/generic/ldsodefs.h: Update declaration.
79654
79655         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
79656         string for the scope number.
79657
79658 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
79659
79660         * nscd/servicescache.c (cache_addserv): Make sure written is always
79661         initialized.
79662
79663 2011-08-14  Roland McGrath  <roland@hack.frob.com>
79664
79665         * sysdeps/i386/i486/bits/atomic.h
79666         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
79667         statement expression, so as to suppress "set but not used" warning.
79668         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
79669
79670         * string/strncat.c (STRNCAT): Use prototype definition.
79671
79672         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
79673         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
79674         -Iprograms here.
79675         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
79676         (localedef-modules): Add localedef.
79677         (locale-modules): Add locale.
79678
79679         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
79680         * elf/rtld.c (dl_main): Invert order of assignment in last change,
79681         to avoid a warning.
79682
79683 2011-08-14  David S. Miller  <davem@davemloft.net>
79684
79685         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
79686         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
79687
79688 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
79689
79690         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
79691         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
79692         * elf/rtld.c (dl_main): Set l_name of vDSO.
79693         Call _dl_show_scope when DL_DEBUG_SCOPES.
79694         (process_dl_debug): Recognize scopes flag and also set it for all.
79695         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
79696         Declare _dl_show_scope.
79697
79698         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
79699         (do_dlopen): Pass caller_dlopen to dl_open.
79700         (__libc_dlopen_mode): Initialize caller_dlopen.
79701
79702         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
79703         of libc.  Make tolower call locale-independent.  Optimize a bit by
79704         using isdigit instead of isalnum.
79705         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
79706
79707 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
79708
79709         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
79710         was a dependency or dynamically loaded.
79711
79712 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
79713
79714         * intl/l10nflist.c: Allow architecture-specific pop function.
79715         * sysdeps/x86_64/l10nflist.c: New file.
79716
79717         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
79718         classification.
79719
79720 2011-08-10  Andreas Schwab  <schwab@redhat.com>
79721
79722         * include/dirent.h: Add libc_hidden_proto for scandirat and
79723         scandirat64.  Don't declare __scandirat64.
79724         * dirent/scandirat.c: Add libc_hidden_def.
79725         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
79726         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
79727
79728 2011-08-10  David S. Miller  <davem@davemloft.net>
79729
79730         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
79731         enum.
79732         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79733         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79734         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79735
79736 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
79737
79738         * Versions.def [libc]: Add GLIBC_2.15.
79739         * dirent/Makefile (routines): Add scandirat and scandirat64.
79740         * dirent/Versions [libc]: Export scandirat and scandirat64 for
79741         GLIBC_2.15.
79742         * dirent/dirent.h: Declare scandirat and scandirat64.
79743         * dirent/scandirat.c: New file.
79744         * dirent/scandirat64.c: New file.
79745         * sysdeps/wordsize-64/scandirat.c: New file.
79746         * sysdeps/wordsize-64/scandirat64.c: New file.
79747         * dirent/opendir.c: Define opendirat.
79748         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
79749         using scandirat.
79750         * dirent/scandir64.c: Adjust for scandir.c change.
79751         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
79752         __scandirat64, and __scandir_cancel_handler.
79753         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
79754         additional parameter and use openat instead of open (outside of ld.so).
79755         Add new __opendir as wrapper around __opendirat.
79756         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
79757         here without requiring old scandirat implementation.
79758
79759 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
79760
79761         * dirent/scandir.c (cancel_handler): Renamed to
79762         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
79763         defined.  Adjust users.
79764         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
79765         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
79766
79767 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
79768
79769         * string/test-string.h (IMPL): Use __STRING to expand name and then
79770         stringify it.
79771
79772         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
79773         of cleanups.
79774
79775 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79776
79777         * string/Makefile: Update.
79778         (strop-tests): Append strncat.
79779         * string/test-wcscmp.c: New file.
79780         New comprehensive test for wcscmp.
79781         * string/test-strcmp.c: Update.
79782         (WIDE): New define.
79783
79784 2011-07-22  Andreas Schwab  <schwab@redhat.com>
79785
79786         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
79787         line.
79788
79789 2011-07-26  Andreas Schwab  <schwab@redhat.com>
79790
79791         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79792         encoding to ACE if AI_IDN.
79793
79794 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
79795
79796         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
79797         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
79798
79799 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79800
79801         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
79802         Fix overflow bug in strncat.
79803         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
79804
79805         * string/test-strncat.c: Update.
79806         Add new tests for checking overflow bugs.
79807
79808 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79809
79810         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79811         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
79812         * sysdeps/i386/i686/multiarch/strcat.S: New file.
79813         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
79814         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
79815         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
79816         * sysdeps/i386/i686/multiarch/strncat.S: New file.
79817         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
79818         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
79819
79820         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
79821         (USE_AS_STRCAT): Define.
79822         Add strcat and strncat support.
79823         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79824
79825 2011-07-25  Andreas Schwab  <schwab@redhat.com>
79826
79827         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
79828         __n bigger than INT_MAX+1.
79829         (__strncmp_g): Likewise.
79830
79831 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
79832
79833         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
79834         * libio/stido.h: Likewise.
79835
79836         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
79837         (AF_NFC): Define.
79838         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
79839         (AF_NFC): Define.
79840
79841         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
79842         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79843         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79844         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
79845         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79846
79847         [BZ #13021]
79848         * scripts/test-installation.pl: Don't expect libnss_test1 to be
79849         installed.
79850
79851         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
79852         typo.
79853         (_dl_x86_64_save_sse): Likewise.
79854
79855 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
79856
79857         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
79858         OSXSAVE.
79859         (_dl_x86_64_save_sse): Likewise.
79860
79861         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
79862
79863         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
79864
79865 2011-07-21  Andreas Schwab  <schwab@redhat.com>
79866
79867         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
79868         change.
79869         (_dl_x86_64_save_sse): Use correct AVX check.
79870
79871 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79872
79873         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
79874         bug in strncpy/strncat.
79875         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
79876
79877 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
79878
79879         * string/tester.c (test_strcat): Add tests for different alignments
79880         of source and destination.
79881         (test_strncat): Likewise.
79882
79883 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79884
79885         [BZ #12852]
79886         * posix/glob.c (glob): Check passed in values before using them in
79887         expressions to avoid some overflows.
79888         (glob_in_dir): Likewise.
79889
79890         [BZ #13007]
79891         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
79892         check for AVX enablement so that we don't crash with old kernels and
79893         new hardware.
79894         * elf/tst-audit4.c: Add same checks here.
79895         * elf/tst-audit6.c: Likewise.
79896
79897         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
79898
79899 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
79900
79901         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
79902
79903 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79904
79905         * po/cs.po: Update from translation team.
79906         * po/bg.po: Likewise.
79907
79908 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
79909
79910         * misc/sys/cdefs.h: Add support for const attribute.
79911         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
79912         to gnu_dev_{major,minor,makedev} functions.
79913
79914 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
79915
79916         * intl/dcigettext.c (get_output_charset): Add missing bracket.
79917
79918 2011-07-20  Andreas Schwab  <schwab@redhat.com>
79919
79920         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
79921         strlen results.
79922
79923 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79924
79925         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
79926         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
79927         register in order to avoid conflicts with the soft frame pointer
79928         being held in r11 when necessary.
79929         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
79930         (INTERNAL_VSYSCALL_NCS): Likewise.
79931
79932 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
79933
79934         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
79935         * elf/dl-fini.c (_dl_fini): Adjust caller.
79936         * elf/dl-close.c (_dl_close_worker): Likewise.
79937         * sysdeps/generic/ldsodefs.h: Adjust declaration.
79938
79939 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79940
79941         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
79942         "aux_cache->nlibs < 0".
79943
79944         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
79945         in the reload-count case.
79946
79947 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79948
79949         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79950         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
79951         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
79952         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
79953         * sysdeps/x86_64/multiarch/strcat.S: New file.
79954         * sysdeps/x86_64/multiarch/strncat.S: New file.
79955         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
79956         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
79957         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
79958         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
79959         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
79960         (USE_AS_STRCAT): Define.
79961         Add strcat and strncat support.
79962         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79963         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
79964         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
79965         * string/strncat.c: Update.
79966         (USE_AS_STRNCAT): Define.
79967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79968         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
79969         and i7.
79970         * sysdeps/x86_64/multiarch/init-arch.h
79971         (bit_Prefer_PMINUB_for_stringop): New.
79972         (index_Prefer_PMINUB_for_stringop): Likewise.
79973         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
79974         bit_Prefer_PMINUB_for_stringop.
79975
79976 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79977
79978         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
79979         buffer64.
79980         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
79981         of casting of buffer.
79982         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
79983         buffer32 and buffer64.
79984         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
79985         writes instead of casting of buffer.
79986         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
79987         buffer32.
79988         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
79989         casting of buffer.
79990
79991 2011-07-19  Andreas Schwab  <schwab@redhat.com>
79992
79993         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
79994
79995 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79996
79997         * nscd/nscd.c (termination_handler): Don't do anything for a database
79998         if it has not yet been initialized.
79999
80000 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
80001
80002         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
80003
80004 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
80005
80006         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
80007
80008 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
80009
80010         * po/nl.po: Update from translation team.
80011         * po/sv.po: Likewise.
80012
80013 2011-07-16  Roland McGrath  <roland@hack.frob.com>
80014
80015         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
80016         now disallowed by GCC.
80017
80018         * configure.in (use-default-link): Default to yes if a test -shared
80019         link meets our qualifications.
80020         * configure: Regenerated.
80021
80022         * config.make.in (output-format): New variable.
80023         * configure.in: Check for ld --print-output-format support.
80024         * configure: Regenerated.
80025         * Makerules ($(common-objpfx)format.lds)
80026         [$(output-format) != unknown]: Just use $(output-format),
80027         instead of the linker-script munging.
80028
80029 2011-07-14  Roland McGrath  <roland@hack.frob.com>
80030
80031         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
80032         of $(common-objpfx)shlib.lds.
80033         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
80034
80035         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
80036         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
80037
80038         * configure.in (-z relro check): Adjust test code to add a large
80039         writable data section after it.
80040         * configure: Regenerated.
80041
80042 2011-07-11  Roland McGrath  <roland@hack.frob.com>
80043
80044         * configure.in (-z relro check): Fix test code to make the variable
80045         truly const.
80046         * configure: Regenerated.
80047
80048 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
80049
80050         * nscd/nscd.h (struct traced_file): Define.
80051         (struct database_dyn): Remove inotify_descr, reset_res, and filename
80052         elements.  Add traced_files.
80053         (inotify_fd): Declare.
80054         (register_traced_file): Declare.
80055         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
80056         (inotify_fd): Export.
80057         (resolv_conf_descr): Remove.
80058         (nscd_init): Move inotify descriptor creation to main.
80059         Don't register files for notification here.
80060         (register_traced_file): New function.
80061         (invalidate_cache): Don't use reset_res to determine whether to call
80062         res_init, go through the list of registered files.
80063         (main_loop_poll): The inotify descriptors are now stored in the
80064         structures for the traced files.
80065         (main_loop_epoll): Likewise.
80066         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
80067         to __nss_disable_nscd.
80068         * nscd/cache.c (prune_cache): There is no single inotify descriptor
80069         for a database anymore.  Check the records for all the registered
80070         files instead.
80071         * nss/Makefile (libnss_files-routines): Add files-init.
80072         (libnss_db-routines): Add db-init.
80073         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
80074         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
80075         * nss/nss_db/db-init.c: New file.
80076         * nss/nss_files/files-init.c: New file.
80077         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
80078         __nss_lookup_function.
80079         (__nss_lookup_function): Call nss_load_library.
80080         (nss_load_all_libraries): New function.
80081         (__nss_disable_nscd): Take parameter with callback function for files
80082         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
80083         used for the cached services.
80084         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
80085         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
80086         options for features to all the files in nscd.
80087
80088         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
80089
80090 2011-07-10  Roland McGrath  <roland@hack.frob.com>
80091
80092         * csu/elf-init.c (__libc_csu_init): Comment typo.
80093
80094 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
80095
80096         * po/pl.po: Update from translation team.
80097         * po/ja.po: Likewise.
80098         * po/ru.po: Likewise.
80099         * po/ko.po: Likewise.
80100         * po/fr.po: Likewise.
80101
80102 2011-07-09  Roland McGrath  <roland@hack.frob.com>
80103
80104         * configure.in (.ctors/.dtors header and trailer check):
80105         Use an empirical test on a built program.
80106         * configure: Regenerated.
80107
80108         * configure.in (-z relro check): Use an empirical test on a built DSO.
80109         Detect, but do not require, on ia64.
80110         * configure: Regenerated.
80111
80112         * configure.in (READELF): Find it with AC_CHECK_TOOL.
80113         Update tests that use readelf to use $READELF instead.
80114         * configure: Regenerated.
80115
80116 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
80117
80118         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
80119         if the result is not used.
80120
80121 2011-07-05  Andreas Jaeger  <aj@suse.de>
80122
80123         [BZ#9696]
80124         * stdlib/tst-strtod.c: Add testcase.
80125
80126 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
80127
80128         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
80129         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
80130         The latter has a higher limit.  Take additional parameter to pass to
80131         the new function.
80132         (__pathconf): Pass file to __statfs_link_max.
80133         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
80134         __statfs_link_max.
80135         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
80136         __statfs_link_max.
80137
80138         [BZ #12868]
80139         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
80140         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
80141         Handle Lustre.
80142         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
80143         (__statfs_filesize_max): Likewise.
80144         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
80145
80146 2011-07-05  Andreas Jaeger  <aj@suse.de>
80147
80148         * resolv/res_comp.c (dn_skipname): Remove unused variable.
80149
80150 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
80151
80152         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
80153         `status' variable.
80154         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
80155         Likewise.
80156
80157 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
80158
80159         * Makefile (strop-tests): Add strncat.
80160         * string/test-strncat.c: New file.
80161
80162 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
80163
80164         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
80165
80166 2011-06-21  Andreas Jaeger  <aj@suse.de>
80167
80168         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
80169         Copy rule from iconvdata/Makefile.
80170
80171 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80172
80173         [BZ #12922]
80174         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
80175         but no long options are defined, just return 'W'.
80176
80177 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
80178
80179         [BZ #9696]
80180         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
80181
80182 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80183
80184         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
80185         netgroups to read.
80186         (innetgr): Likewise.
80187
80188 2011-07-05  Roland McGrath  <roland@hack.frob.com>
80189
80190         * config.make.in (install_root): Default to $(DESTDIR).
80191
80192 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
80193
80194         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
80195
80196 2011-07-02  Roland McGrath  <roland@hack.frob.com>
80197
80198         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
80199
80200         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
80201         containing directory rather than embedding absolute directory names.
80202
80203         * scripts/check-local-headers.sh: Rewritten using awk.
80204         Match by word, not by line.  Print error messages for matches.
80205         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
80206
80207         * Makerules [shlib-lds-flags empty]:
80208         ($(common-objpfx)libc_pic.opts): New target.
80209         ($(common-objpfx)libc_pic.os.clean): New target.
80210         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
80211
80212         * config.make.in (OBJCOPY): New variable.
80213         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
80214         * configure: Regenerated.
80215
80216         * config.make.in (use-default-link): New variable.
80217         * configure.in (use_default_link): Grok --with-default-link to set it.
80218         * configure: Regenerated.
80219         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
80220         (shlib-lds, shlib-lds-flags): Define to empty.
80221
80222         * Makerules (shlib-lds): New variable.
80223         (shlib-lds-flags): New variable.
80224         (build-shlib, build-moduile, build-module-asneeded): Use it.
80225         ($(common-objpfx)libc.so): Use $(shlib-lds).
80226         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
80227         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
80228
80229         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
80230         DT_FLAGS/DT_FLAGS_1 with zero flags.
80231
80232         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
80233         linker script munging.
80234
80235 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
80236
80237         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
80238         as 128-bit value.
80239         * crypt/sha512.c (sha512_process_block): Perform total addition using
80240         128-bit if possible.
80241         (__sha512_finish_ctx): Likewise.
80242         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
80243         as 64-bit value.
80244         * crypt/sha256.c (SWAP64): Define.
80245         (sha256_process_block): Perform total addition using 64-bit if
80246         possible.
80247         (__sha256_finish_ctx): Likewise.
80248
80249 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
80250
80251         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
80252         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80253         * nscd/hstcache.c (cache_addhst): Likewise.
80254         * nscd/grpcache.c (cache_addgr): Likewise.
80255         * nscd/aicache.c (addhstaiX): Likewise.
80256         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
80257
80258 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
80259
80260         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
80261         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80262         * nscd/hstcache.c (cache_addhst): Likewise.
80263         * nscd/grpcache.c (cache_addgr): Likewise.
80264         * nscd/aicache.c (addhstaiX): Likewise.
80265
80266 2011-07-01  Andreas Schwab  <schwab@redhat.com>
80267
80268         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
80269         domain only when needed.
80270
80271 2011-06-30  Andreas Schwab  <schwab@redhat.com>
80272
80273         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
80274         is always restored.
80275
80276 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
80277
80278         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
80279         are re-adding the entry.
80280         * nscd/servicescache.c (cache_addserv): Likewise.
80281
80282 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
80283
80284         * sysdeps/generic/dl-irel.h: fix protection against multiple
80285         inclusions.
80286         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
80287
80288 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
80289
80290         [BZ #12935]
80291         * malloc/memusage.sh: Fix quoting in message.
80292         * debug/xtrace.sh: Likewise.
80293
80294         * configure.in: Remove support for --experimental-malloc option, make
80295         it the default.
80296         * config.make.in: Likewise.
80297         * malloc/Makefile: Likewise.
80298
80299 2011-06-27  Andreas Schwab  <schwab@redhat.com>
80300
80301         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
80302         two-byte characters.
80303
80304 2011-06-27  Roland McGrath  <roland@hack.frob.com>
80305
80306         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
80307         AC_CACHE_CHECK invocation.
80308         * configure: Regenerated.
80309
80310         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
80311
80312 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
80313
80314         [BZ #12350]
80315         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
80316         bit from old_res_options.
80317
80318         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
80319
80320         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
80321         value type for setfct.
80322
80323 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
80324
80325         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80326         __gettimeofday instead of gettimeofday.
80327
80328 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
80329
80330         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
80331
80332 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
80333
80334         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
80335
80336         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
80337         info.
80338
80339 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80340
80341         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80342         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80343         strcpy-sse2-unaligned strncpy-sse2-unaligned
80344         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
80345         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
80346         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
80347         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
80348         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
80349         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
80350         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
80351         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
80352         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
80353         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
80354         (STRCPY): Support SSE2 and SSSE3 versions.
80355
80356 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
80357
80358         [BZ #12874]
80359         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
80360         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
80361         kernels which artificially limit size of requests.
80362
80363 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80364
80365         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80366         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80367         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
80368         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
80369         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
80370         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
80371         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
80372         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
80373         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
80374         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
80375         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
80376         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
80377         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
80378         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
80379         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
80380         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80381         Enable unaligned load optimization for Intel Core i3, i5 and i7
80382         processors.
80383         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
80384         Define.
80385         (index_Fast_Unaligned_Load): Define.
80386         (HAS_FAST_UNALIGNED_LOAD): Define.
80387
80388 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
80389
80390         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
80391
80392 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80393
80394         [BZ #12907]
80395         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
80396         until it is clear that the information is realy needed.
80397         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
80398
80399 2011-06-22  Andreas Schwab  <schwab@redhat.com>
80400
80401         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
80402
80403 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80404
80405         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80406         /sys/devices/system/cpu/online if it is usable.
80407
80408         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
80409         reading the information from the /proc filesystem to once a second.
80410
80411 2011-06-21  Andreas Jaeger  <aj@suse.de>
80412
80413         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
80414         NULL after inclusion of kernel headers.
80415
80416 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
80417
80418         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
80419         calls to internal_setent.
80420
80421         [BZ #12885]
80422         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
80423         addresses using gethostbyname4_r ignore IPv4 addresses.
80424
80425         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
80426         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
80427
80428         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
80429
80430 2011-06-20  David S. Miller  <davem@davemloft.net>
80431
80432         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
80433         inclusions.
80434         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
80435
80436         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
80437         (elf_irel): Use it.
80438         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
80439         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
80440         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
80441         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
80442         * sysdeps/x86_64/dl-irel.h: Likewise.
80443
80444         * elf/dl-runtime.c: Use elf_ifunc_invoke.
80445         * elf/dl-sym.c: Likewise.
80446
80447 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80448
80449         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
80450         need to dereference resplen2.
80451
80452 2011-06-14  Andreas Schwab  <schwab@redhat.com>
80453
80454         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
80455
80456 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80457
80458         * Makeconfig: Define vardbdir and inst_vardbdir.
80459         * nss/Makefile: Add rules to install db-Makefile.
80460
80461         * nss/nss_db/db-XXX.c: Cleanup.
80462
80463         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
80464         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
80465         GLIBC_PRIVATE.
80466         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
80467         * nss/makedb.c: Implement -g option to specify that value strings
80468         are generated and should not be added to table iterated over for
80469         get*ent calls.
80470         * nss/nss_db/db-initgroups.c: New file.
80471
80472         * nss/getent.c: Add support for initgroups lookups through getgrouplist
80473         interface.
80474
80475         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
80476         (internal_getgrouplist): Adjust to name change.
80477         Update use_initgroups_entry if this is not the first call.
80478         * nss/databases.def: Add initgroups entry.
80479
80480         * nss/makedb.c (compute_tables): Check result of multiple hash table
80481         sizes to minimize maximum chain length.
80482
80483 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
80484
80485         * Versions.def: Add entry for libnss_db.
80486         * shlib-versions: Likewise.
80487         * nss/Makefile: Add rules to build libnss_db.
80488         * nss/Versions: Add libnss_db information.  Organize libnss_files
80489         entries better.
80490         * nss/db-Makefile: Add gshadow support.  Change rules for the new
80491         makedb progra.  Some minor improvements to generate smaller files.
80492         * nss/nss_db/nss_db.h: Move NSS database header data structures to
80493         here from...
80494         * nss/makedb.c: ...here.
80495         Improve database format to be smaller and require less memory at
80496         runtime.
80497         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
80498         db anymore.
80499         * nss/nss_db/db-netgrp.c: Likewise.
80500         * nss/nss_db/db-open.c: Likewise.
80501         * nss/nss_files/flies-XXX.x: Adjust comments.
80502         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
80503         * nss/nss_files/files-grp.c: Likewise.
80504         * nss/nss_files/files-hosts.c: Likewise.
80505         * nss/nss_files/files-network.c: Likewise.
80506         * nss/nss_files/files-proto.c: Likewise.
80507         * nss/nss_files/files-pwd.c: Likewise.
80508         * nss/nss_files/files-rpc.c: Likewise.
80509         * nss/nss_files/files-service.c: Likewise.
80510         * nss/nss_files/files-sgrp.c: Likewise.
80511         * nss/nss_files/files-spwd.c: Likewise.
80512         * nss/nss_db/db-alias.c: Removed.
80513         * nss/nss_db/dummy-db.h: Removed.
80514
80515 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
80516
80517         * nss/makedb.c: Rewritten to not use database library.
80518         * nss/Makefile: Update to build new makedb program.
80519
80520 2011-06-14  Andreas Jaeger  <aj@suse.de>
80521
80522         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
80523         memset declaration.
80524
80525 2011-06-10  Andreas Schwab  <schwab@redhat.com>
80526
80527         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
80528         tmpbuf.
80529
80530 2011-06-10  Roland McGrath  <roland@hack.frob.com>
80531
80532         * Makerules (shlib.lds): Fail if the linker script comes out empty.
80533         * elf/Makefile ($(objpfx)ld.so): Likewise.
80534
80535         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
80536         Don't list ld.so twice in dependencies.
80537
80538         * posix/bug-regex31.c: Include <stdlib.h>.
80539
80540         * nscd/hstcache.c (cache_addhst): Remove unused variable.
80541
80542         * nis/nss_compat/compat-spwd.c
80543         (getspent_next_nss_netgr): Remove unused variable.
80544         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
80545
80546         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
80547         nonmembers" output to use the right array.
80548
80549         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
80550
80551         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
80552
80553         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
80554         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
80555         * catgets/gencat.c (read_input_file): Likewise.
80556         * locale/programs/locarchive.c (enlarge_archive): Likewise.
80557
80558         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
80559         variable definition inside #if's controlling its use.
80560
80561         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
80562
80563         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
80564
80565         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
80566
80567         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
80568         unreachable code.
80569
80570         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
80571
80572         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
80573         * configure: Regenerated.
80574
80575         * Makerules: Revert last change.
80576         * elf/Makefile: Likewise.
80577
80578 2011-06-09  Roland McGrath  <roland@hack.frob.com>
80579
80580         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
80581         * elf/Makefile ($(objpfx)librtld.os): Likewise.
80582         (reloc-link): Likewise.
80583
80584 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
80585
80586         * elf/Makefile: Add rules to build pldd.
80587         * elf/pldd.c: New file.
80588         * elf/pldd-xx.c: New file.
80589
80590 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
80591
80592         * version.h: Update for 2.15 development version.
80593
80594 2011-06-07  David S. Miller  <davem@davemloft.net>
80595
80596         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
80597         ifuncs.
80598         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
80599         elf_machine_lazy_rel): Likewise.
80600         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
80601         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
80602         elf_machine_lazy_rel): Likewise.
80603         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
80604         dl_hwcap via passed in argument.
80605         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
80606         Likewise.
80607
80608 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80609
80610         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
80611
80612 2011-06-06  Roland McGrath  <roland@hack.frob.com>
80613
80614         [BZ #12849]
80615         * manual/fdl-1.1.texi: New file, verbatim from:
80616         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
80617         * manual/lgpl-2.1.texi: New file, verbatim from:
80618         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
80619         * manual/Makefile (licenses): New variable, list those new file names.
80620         (texis): Use it.
80621         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
80622
80623         * manual/fdl.texi: File removed.
80624         * manual/lesser.texi: File removed.
80625         * manual/libc.texinfo (Copying, Documentation License):
80626         Use new @include file names, put @appendix directive before @include.
80627
80628 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
80629
80630         [BZ #12841]
80631         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
80632         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
80633         (mq_open): Add __NTH.
80634
80635 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
80636
80637         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80638         Assume Intel Core i3/i5/i7 processor if AVX is available.
80639
80640 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80641
80642         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80643         typo.
80644
80645 2011-05-31  Andreas Schwab  <schwab@redhat.com>
80646
80647         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
80648         memory.  Use alloca_account.  Fix memory leak when retrying.
80649
80650 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80651
80652         * version.h (RELEASE): Bump for 2.14 release.
80653         * include/features.h (__GLIBC_MINOR__): Bump to 14.
80654
80655         * config.make.in (RANLIB): Remove entry.
80656
80657 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
80658
80659         * po/Makefile (po-sed-cmd): Add ksh to extensions.
80660         (libc.pot): Work around missing support for .ksh extension in xgettext.
80661
80662         [BZ #12684]
80663         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
80664         if both request failed.
80665         (send_dg): In case of server errors clear resplen or *resplen2.
80666
80667         [BZ #12454]
80668         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
80669         when there are multiple maps.
80670         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
80671         (_dl_fini): Remove test here.
80672
80673         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
80674
80675 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
80676
80677         [BZ #12350]
80678         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
80679         bit from old_res_options.
80680         (gaih_inet): Likewise.
80681
80682         [BZ #11099]
80683         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
80684         as signed.
80685
80686         * resolv/res_init.c (res_setoptions): Make the code more compact.
80687
80688         [BZ #11558]
80689         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
80690         set RES_USEVC.
80691
80692         [BZ #11634]
80693         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
80694
80695         * malloc/malloc.h: Mark malloc hook variables as deprecated.
80696
80697         [BZ #11781]
80698         * malloc/malloc.h: Declare malloc hook variables as volatile.
80699
80700         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
80701         in last patch.
80702
80703         [BZ #11799]
80704         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
80705         raise in the comment.
80706         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
80707         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
80708         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
80709
80710 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
80711
80712         [BZ #12811]
80713         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
80714         grow the buffers more if it already has to be sufficient.
80715         (build_wcs_upper_buffer): Likewise.
80716         * posix/regexec.c (check_matching): Likewise.
80717         (clean_state_log_if_needed): Likewise.
80718         (extend_buffers): Don't enlarge buffers beyond size of the input
80719         buffer.
80720         Patches mostly by Emil Wojak <emil@wojak.eu>.
80721         * posix/bug-regex32.c: New file.
80722         * posix/Makefile (tests): Add bug-regex32.
80723
80724         * locale/findlocale.c (_nl_find_locale): Return right away if
80725         _nl_explode_name failed.
80726         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
80727
80728         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
80729
80730         * debug/xtrace.sh: Unify messages.
80731         * malloc/memusage.sh: Likewise.
80732
80733         [BZ #12813]
80734         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
80735         time symbol from vDSO.  Substitute with vsyscall if not available.
80736         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
80737         __vdso_time.
80738
80739         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
80740         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
80741         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
80742         Add sendmmsg and internal_sendmmsg.
80743         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
80744         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
80745         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
80746
80747         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
80748         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
80749         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80750
80751 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
80752
80753         [BZ #12813]
80754         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
80755         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
80756         available.
80757         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
80758         __vdso_getcpu.
80759
80760         [BZ #12814]
80761         * iconvdata/Makefile (tests): Add bug-iconv9.
80762         * iconvdata/bug-iconv9.c: New file.
80763
80764 2011-05-27  Andreas Schwab  <schwab@redhat.com>
80765
80766         [BZ #12814]
80767         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
80768
80769 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
80770
80771         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80772         (struct user_regs_struct): Change intcs field back to cs.
80773
80774 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
80775
80776         * po/ja.po: Update from translation team.
80777
80778 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
80779
80780         [BZ #12795]
80781         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
80782         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
80783
80784 2011-05-20  Andreas Schwab  <schwab@redhat.com>
80785
80786         * stdlib/longlong.h: Update from GCC.
80787
80788 2011-05-23  Andreas Schwab  <schwab@redhat.com>
80789
80790         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
80791         parameter name.
80792         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
80793         Add parameter name.
80794         (__sysconf): Pass it down.
80795
80796 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
80797
80798         [BZ #12671]
80799         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
80800         some situations.
80801         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
80802         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
80803         add in in __libc_use_alloca calls.  Adjust callers.
80804         (glob): Use malloc in some situations.
80805
80806         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
80807         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
80808         pltexit.
80809
80810 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
80811
80812         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
80813         and CLOCK_BOOTTIME_ALARM.
80814
80815         [BZ #12782]
80816         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
80817         is returned.
80818
80819         * string/_strerror.c (__strerror_r): Print negative errors as signed
80820         numbers.
80821
80822         [BZ #12777]
80823         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
80824         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
80825         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
80826
80827         * configure.in: Fix typo in redirection and correct removal of test
80828         files in two cases.
80829
80830         [BZ #12788]
80831         * locale/setlocale.c (new_composite_name): Fix test to check for
80832         identical name of all categories.
80833
80834         [BZ #12792]
80835         * libio/filedoalloc.c (local_isatty): New function.
80836         (_IO_file_doallocate): Use local_isatty.
80837         * stdio-common/perror.c (perror): In case a new stream is used
80838         forward the stream error.
80839         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
80840         error flag.
80841
80842 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
80843
80844         [BZ #11884]
80845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
80846         alloca.
80847         * include/alloca.h (extend_alloca_account): Define.
80848
80849         [BZ #11857]
80850         * posix/regex.h: Fix comments with documentation of user-accessible
80851         fields after compilation and describe correct free'ing of pattern
80852         after re_compile_pattern.
80853         Patch by Reuben Thomas <rrt@sc3d.org>.
80854
80855 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
80856
80857         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
80858         and -mno-altivec to prevent the compiler from using Altivec and/or
80859         VSX instructions when the corresponding registers are not available.
80860
80861 2011-05-19  Andreas Schwab  <schwab@redhat.com>
80862
80863         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
80864
80865 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
80866
80867         * libio/freopen.c (freopen): Use __dup2, not dup2.
80868         * libio/freopen64.c (freopen64): Likewise.
80869
80870 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
80871
80872         [BZ #12775]
80873         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
80874         * math/Makefile (tests): Add test-powl.
80875         (CFLAGS-test-powl.c): Define.
80876         * math/test-powl.c: New file.
80877
80878 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
80879
80880         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
80881
80882 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
80883
80884         [BZ #11837]
80885         * iconvdata/gb18030.c: Update to GB18020-2005.
80886
80887 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
80888
80889         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
80890         RE_SYNTAX_POSIX_AWK): Update to match recent development.
80891         Patch by Aharon Robbins <arnold@skeeve.com>.
80892
80893         [BZ #11892]
80894         * stdlib/putenv.c (putenv): Don't always create copy of the variable
80895         on the stack.
80896
80897         [BZ #11895]
80898         * misc/pselect.c (__pselect): Handle timeout value errors hidden
80899         through underflows.
80900
80901         [BZ #12766]
80902         * misc/error.c (error_at_line): Ensure file_name and old_file_name
80903         point to strings before performing equality test for error_one_per_line
80904         mode.
80905
80906         [BZ #11697]
80907         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
80908
80909         [BZ #11820]
80910         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80911         (struct user_fpregs_struct): Avoid __uint*_t types.
80912
80913         [BZ #6420]
80914         * malloc/mtrace.c (tr_where): Add additional parameter to point to
80915         symbol info.  Use it instead of calling _dl_addr locally.
80916         (lock_and_info): New function.
80917         (tr_freehook): Call lock_and_info and pass symbol info as additional
80918         parameter to tr_where.
80919         (tr_mallochook): Likewise.
80920         (tr_reallochook): Likewise.
80921         (tr_memalignhook): Likewise.
80922
80923         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
80924         used and couldn't be at all thread-safe.
80925
80926 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
80927
80928         * libio/freopen.c (freopen): Don't close old file descriptor
80929         before the new one is opened.  Instead dup the new file descriptor
80930         to the old one after the new stream is created.
80931         * libio/freopen64.c (freopen64): Likewise.
80932         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
80933         * libio/fileops.c (_IO_new_file_close_it): Handle new
80934         _IO_FLAGS2_NOCLOSE flag.
80935         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
80936         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
80937         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
80938         _IO_FLAGS2_NOCLOSE flag.
80939         * include/unistd.h: Add hidden_proto for dup3.
80940         Define __have_dup3.
80941         * io/dup3.c: Define hidden symbol.
80942         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
80943
80944         [BZ #7101]
80945         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
80946         when an incomplete long option is used.
80947         * posix/tst-getopt_long1.c: New file.
80948         * posix/Makefile (tests): Add tst-getopt_long1.
80949
80950         [BZ #10138]
80951         * scripts/config.guess: Update from autoconf-2.68.
80952         * scripts/config.sub: Likewise.
80953
80954         [BZ #10157]
80955         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
80956         tests into ...
80957         (has_cpuclock): ...this.  New function.
80958         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
80959         macro here based on has_cpuclock code.
80960
80961         [BZ #10149]
80962         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80963         First byte (not low byte) is now always NUL.
80964         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
80965
80966         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80967         Use non-cancelable interfaces.
80968
80969         [BZ #9809]
80970         * locale/iso-639.def: Add entry for Sorani.
80971
80972         [BZ #11901]
80973         * include/stdlib.h: Move include protection to the right place.
80974         Define abort_msg_s.  Declare __abort_msg with it.
80975         * stdlib/abort.c (__abort_msg): Adjust type.
80976         * assert/assert.c (__assert_fail_base): New function.  Majority
80977         of code from __assert_fail.  Allocate memory for __abort_msg with
80978         mmap.
80979         (__assert_fail): Now call __assert_fail_base.
80980         * assert/assert-perr.c: Remove bulk of implementation.  Use
80981         __assert_fail_base.
80982         * include/assert.hL Declare __assert_fail_base.
80983         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
80984         mmap.
80985         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
80986
80987 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
80988
80989         [BZ #11952]
80990         [BZ #12453]
80991         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
80992         until all modules are registered in the DTV.
80993         * elf/Makefile: Add rules to build and run tst-tls19.
80994         * elf/tst-tls19.c: New file.
80995         * elf/tst-tls19mod1.c: New file.
80996         * elf/tst-tls19mod2.c: New file.
80997         * elf/tst-tls19mod3.c: New file.
80998         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
80999
81000         [BZ #12083]
81001         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
81002         correctly.
81003
81004         [BZ #12601]
81005         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
81006         two-byte sequence errors.
81007         * iconvdata/Makefile (tests): Add bug-iconv8.
81008         * iconvdata/bug-iconv8.c: New file.
81009
81010         [BZ #12626]
81011         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
81012         buf2 definition.
81013
81014         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
81015
81016         [BZ #12432]
81017         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
81018         (dummy_getcfa): New function.
81019         (init): Get _Unwind_GetCFA address, use dummy if not found.
81020         (backtrace_helper): In recursion check, also check whether CFA changes.
81021         (__backtrace): Completely initialize arg.
81022
81023         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
81024         storing incomplete byte sequence in state object.  Avoid testing for
81025         guaranteed too small input if we know there is enough data available.
81026
81027 2011-05-11  Andreas Schwab  <schwab@redhat.com>
81028
81029         * Makeconfig (+link-pie): Indent.
81030         * Rules (binaries-pie): Define if $(have-fpie) and
81031         $(build-shared).
81032         (binaries-shared): Also filter out $(binaries-pie).
81033         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
81034         * nscd/Makefile (others-pie): Add nscd.
81035         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
81036         ($(objpfx)nscd): Remove command override.
81037         * login/Makefile (others-pie): Add pt_chown.
81038         ($(objpfx)pt_chown): Remove command override.
81039         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
81040         remove command overrides.
81041
81042 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
81043
81044         * libio/tst_putwc.c: Fix error messages.
81045
81046         [BZ #12724]
81047         * libio/fileops.c (_IO_new_file_close_it): Always flush when
81048         currently writing and seek to current position when not.
81049         * libio/Makefile (tests): Add bug-fclose1.
81050         * libio/bug-fclose1.c: New file.
81051
81052 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
81053
81054         [BZ #12511]
81055         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
81056         don't set DF_1_NODELETE here.
81057         (do_lookup_x): When entering new entry test for copy relocation
81058         and if necessary set DF_1_NODELETE flag.
81059         * elf/tst-unique4.cc: New file.
81060         * elf/tst-unique4.h: New file.
81061         * elf/tst-unique4lib.cc: New file.
81062         * elf/Makefile: Add rules to build and run tst-unique4.
81063         Patch by Piotr Bury <pbury@goahead.com>.
81064
81065 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
81066
81067         [BZ #12052]
81068         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
81069
81070         [BZ #12625]
81071         * misc/mntent_r.c (addmntent): Flush the stream after the output
81072
81073         [BZ #12393]
81074         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
81075         (is_trusted_path_normalize): Skip initial colon.  Append slash
81076         to empty buffer.  Duplicate is_trusted_path code but allow
81077         constructed patch to be prefix.
81078         (is_dst): Allow $ORIGIN followed by /.
81079         (_dl_dst_substitute): Correct clearing of check_for_trusted.
81080         Correct testing of result of is_trusted_path_normalize
81081         (decompose_rpath): Fix warning.
81082
81083 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
81084
81085         [BZ #11257]
81086         * grp/initgroups.c (internal_getgrouplist): When we found the service
81087         list through the initgroups entry in nsswitch.conf do not always
81088         continue on a successful lookup.  Don't always use the
81089         __nss_group_database value if it is set.
81090         * nss/nsswitch.conf (initgroups): Change action for successful db
81091         lookup to continue for compatibility.
81092
81093 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
81094
81095         [BZ #11532]
81096         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
81097         and CP774 modules.
81098         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
81099         and CP774 modules.
81100         * iconvdata/tst-tables.sh: Likewise.
81101         * iconvdata/cp770.c: New file.
81102         * iconvdata/cp771.c: New file.
81103         * iconvdata/cp772.c: New file.
81104         * iconvdata/cp773.c: New file.
81105         * iconvdata/cp774.c: New file.
81106         * iconvdata/testdata/CP770: New file.
81107         * iconvdata/testdata/CP770..UTF8: New file.
81108         * iconvdata/testdata/CP771: New file.
81109         * iconvdata/testdata/CP771..UTF8: New file.
81110         * iconvdata/testdata/CP772: New file.
81111         * iconvdata/testdata/CP772..UTF8: New file.
81112         * iconvdata/testdata/CP773: New file.
81113         * iconvdata/testdata/CP773..UTF8: New file.
81114         * iconvdata/testdata/CP774: New file.
81115         * iconvdata/testdata/CP774..UTF8: New file.
81116
81117         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
81118         END CHARMAP line.
81119         * iconvdata/gen-8bit-gap.sh: Likewise.
81120         * iconvdata/gen-8bit.sh: Likewise.
81121
81122         * locale/iso-639.def: Add ary entry.
81123
81124         [BZ #11258]
81125         * locale/C-translit.h.in: Add U20A1 transliteration.
81126
81127         [BZ #12178]
81128         * locale/iso-639.def: Add wae entry.
81129         Patch by Kevin Bortis <bortis@translate-wae.ch>.
81130
81131         [BZ #12545]
81132         * locale/programs/localedef.c (construct_output_path): Use ssize_t
81133         for n.
81134
81135         [BZ #12711]
81136         * locale/C-translit.h.in: Add entry for U20B9.
81137         Patch by pravin.d.s@gmail.com.
81138
81139 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
81140
81141         [BZ #12713]
81142         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
81143         ENAMETOOLONG use generic getcwd.
81144         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
81145         in rtld.  Use *stat64.
81146         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
81147         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
81148         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
81149         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
81150         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
81151         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
81152         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
81153         __fstatat64 macros.
81154         * include/dirent.h: Add libc_hidden_proto for rewinddir.
81155         * dirent/rewinddir.c: Add libc_hidden_def.
81156         * sysdeps/mach/hurd/rewinddir.c: Likewise.
81157         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
81158
81159         * include/dirent.h (__alloc_dir): Add flags parameter.
81160         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
81161         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
81162         __alloc_dir.
81163         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
81164         from fdopendir if O_CLOEXEC is already set.
81165
81166 2011-03-15  Alan Modra  <amodra@gmail.com>
81167
81168         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
81169         l_tls_firstbyte_offset non-zero.  Save padding offset in
81170         l_tls_firstbyte_offset for later use.
81171         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
81172         freeing static tls block.
81173
81174 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
81175
81176         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
81177         where #ifdef was intended.  The intent is to prevent ARG_MAX from
81178         being defined by the kernel headers.
81179
81180 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
81181
81182         [BZ #12734]
81183         * resolv/resolv.h: Define RES_NOTLDQUERY.
81184         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
81185         no-tld-query and set RES_NOTLDQUERY.
81186         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
81187         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
81188         modern BIND to search name as TLD unless forbidden.
81189
81190 2011-05-07  Petr Baudis  <pasky@suse.cz>
81191             Ulrich Drepper  <drepper@gmail.com>
81192
81193         [BZ #12393]
81194         * elf/dl-load.c (fillin_rpath): Move trusted path check...
81195         (is_trusted_path): ...to here.
81196         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
81197         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
81198         using is_trusted_path_normalize() in setuid scripts.
81199
81200 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
81201
81202         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
81203         __BEGIN/__END_DECLS.
81204
81205 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
81206
81207         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
81208         NSS_STATUS_NOTFOUND if no record was found.
81209
81210 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81211
81212         * sunrpc/Makefile (headers): Add rpc/netdb.h.
81213         (headers-not-in-tirpc): Remove rpc/netdb.h
81214         * resolv/netdb.h: Revert last change.
81215
81216 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
81217
81218         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
81219         circular dependency between libgcc.a and libc.a.
81220
81221 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81222
81223         * resolv/netdb.h: Don't include <rpc/netdb.h>.
81224         * nis/Makefile: Don't install rpcsvc/*.
81225         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
81226         instead of <rpc/types.h>.
81227         (MAXHOSTNAMELEN): Define.
81228
81229 2011-05-03  Andreas Schwab  <schwab@redhat.com>
81230
81231         * elf/ldconfig.c (add_dir): Don't crash on empty path.
81232
81233 2011-04-28  Maciej Babinski  <mbabinski@google.com>
81234
81235         [BZ #12714]
81236         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
81237         gethostbyname4_r when IPv6 results are possible.
81238
81239 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
81240
81241         [BZ #12723]
81242         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
81243         _PC_PIPE_BUF handling.
81244
81245 2011-04-30  Bruno Haible  <bruno@clisp.org>
81246
81247         [BZ #12717]
81248         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
81249         * resolv/netdb.h (getnameinfo): Change type of flags parameter
81250         to 'int'.
81251         * inet/getnameinfo.c (getnameinfo): Likewise.
81252
81253 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
81254
81255         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
81256         to groups setting in database lookup.
81257         * nss/nsswitch.conf: Add initgroups entry.
81258
81259 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
81260
81261         [BZ #12685]
81262         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
81263         mode string.
81264         Patch by Eric Blake <eblake@redhat.com>.
81265
81266 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
81267
81268         * sunrpc/Makefile (need-export-routines): Add svc_run.
81269         (routines): Remove svc_run.
81270         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
81271         * sunrpc/clnt_perr.c (clnt_perrno): Export.
81272         * sunrpc/svc_run.c (svc_run): Likewise.
81273         * sunrpc/svc_udp.c (svcudp_create): Likewise.
81274
81275 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
81276
81277         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
81278         problem in reallocation in last patch.
81279
81280 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
81281
81282         * sunrpc/Makefile: Move inclusion of Rules.
81283
81284 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81285
81286         * nss/nss_files/files-initgroups.c: New file.
81287         * nss/Makefile (libnss_files-routines): Add files-initgroups.
81288         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
81289         _nss_files_initgroups_dyn.
81290
81291 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
81292
81293         * elf/elf.h (R_ARM_IRELATIVE): Define.
81294
81295 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81296
81297         * po/ru.po: Update from translation team.
81298
81299 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81300
81301         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
81302         dependencies.
81303
81304 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
81305
81306         [BZ #12653]
81307         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
81308         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
81309         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
81310         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
81311         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
81312
81313 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
81314
81315         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
81316         differing bytes.
81317         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
81318         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
81319         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
81320
81321 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81322
81323         [BZ #12420]
81324         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
81325         storing it.
81326         * stdlib/bug-getcontext.c: New file.
81327         * stdlib/Makefile: Add rules to build and run bug-getcontext.
81328
81329 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81330
81331         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
81332         instructions into .machine "z9-109".
81333         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
81334         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
81335
81336 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81337
81338         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
81339         between environment variables and auxiliary vector.
81340
81341 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
81342
81343         * Makefile: Add rules to build linkobj/libc.so.
81344         * include/libc-symbols.h: Define libc_hidden_nolink.
81345         * include/rpc/auth.h: Mark functions which are to be hidden.
81346         * include/rpc/auth_des.h: Likewise.
81347         * include/rpc/auth_unix.h: Likewise.
81348         * include/rpc/clnt.h: Likewise.
81349         * include/rpc/des_crypt.h: Likewise.
81350         * include/rpc/key_prot.h: Likewise.
81351         * include/rpc/pmap_clnt.h: Likewise.
81352         * include/rpc/pmap_prot.h: Likewise.
81353         * include/rpc/pmap_rmt.h: Likewise.
81354         * include/rpc/rpc_msg.h: Likewise.
81355         * include/rpc/svc.h: Likewise.
81356         * include/rpc/svc_auth.h: Likewise.
81357         * include/rpc/xdr.h: Likewise.
81358         * nis/Makefile: Link all DSOs against linkobj/libc.so.
81359         * nss/Makefile: Likewise.
81360         * sunrpc/Makefile: Don't install headers.  Build library with normal
81361         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
81362         * sunrpc/auth_des.c: Hide exported symbols by default, export some
81363         for the compat linking library.  Remove use of INTDEF/INTUSE.
81364         * sunrpc/auth_none.c: Likewise.
81365         * sunrpc/auth_unix.c: Likewise.
81366         * sunrpc/authdes_prot.c: Likewise.
81367         * sunrpc/authuxprot.c: Likewise.
81368         * sunrpc/clnt_gen.c: Likewise.
81369         * sunrpc/clnt_perr.c: Likewise.
81370         * sunrpc/clnt_raw.c: Likewise.
81371         * sunrpc/clnt_simp.c: Likewise.
81372         * sunrpc/clnt_tcp.c: Likewise.
81373         * sunrpc/clnt_udp.c: Likewise.
81374         * sunrpc/clnt_unix.c: Likewise.
81375         * sunrpc/des_crypt.c: Likewise.
81376         * sunrpc/des_soft.c: Likewise.
81377         * sunrpc/get_myaddr.c: Likewise.
81378         * sunrpc/key_call.c: Likewise.
81379         * sunrpc/key_prot.c: Likewise.
81380         * sunrpc/netname.c: Likewise.
81381         * sunrpc/pm_getmaps.c: Likewise.
81382         * sunrpc/pm_getport.c: Likewise.
81383         * sunrpc/pmap_clnt.c: Likewise.
81384         * sunrpc/pmap_prot.c: Likewise.
81385         * sunrpc/pmap_prot2.c: Likewise.
81386         * sunrpc/pmap_rmt.c: Likewise.
81387         * sunrpc/publickey.c: Likewise.
81388         * sunrpc/rpc_cmsg.c: Likewise.
81389         * sunrpc/rpc_common.c: Likewise.
81390         * sunrpc/rpc_dtable.c: Likewise.
81391         * sunrpc/rpc_prot.c: Likewise.
81392         * sunrpc/rpc_thread.c: Likewise.
81393         * sunrpc/rtime.c: Likewise.
81394         * sunrpc/svc.c: Likewise.
81395         * sunrpc/svc_auth.c: Likewise.
81396         * sunrpc/svc_authux.c: Likewise.
81397         * sunrpc/svc_raw.c: Likewise.
81398         * sunrpc/svc_run.c: Likewise.
81399         * sunrpc/svc_simple.c: Likewise.
81400         * sunrpc/svc_tcp.c: Likewise.
81401         * sunrpc/svc_udp.c: Likewise.
81402         * sunrpc/svc_unix.c: Likewise.
81403         * sunrpc/svcauth_des.c: Likewise.
81404         * sunrpc/xcrypt.c: Likewise.
81405         * sunrpc/xdr.c: Likewise.
81406         * sunrpc/xdr_array.c: Likewise.
81407         * sunrpc/xdr_float.c: Likewise.
81408         * sunrpc/xdr_intXX_t.c: Likewise.
81409         * sunrpc/xdr_mem.c: Likewise.
81410         * sunrpc/xdr_rec.c: Likewise.
81411         * sunrpc/xdr_ref.c: Likewise.
81412         * sunrpc/xdr_sizeof.c: Likewise.
81413         * sunrpc/xdr_stdio.c: Likewise.
81414
81415 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
81416
81417         [BZ #12650]
81418         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
81419         * sysdeps/ia64/dl-tls.h: Likewise.
81420         * sysdeps/powerpc/dl-tls.h: Likewise.
81421         * sysdeps/s390/dl-tls.h: Likewise.
81422         * sysdeps/sh/dl-tls.h: Likewise.
81423         * sysdeps/sparc/dl-tls.h: Likewise.
81424         * sysdeps/x86_64/dl-tls.h: Likewise.
81425         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
81426
81427 2011-03-14  Andreas Schwab  <schwab@redhat.com>
81428
81429         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
81430         rpath element also skip the following colon.
81431         (expand_dynamic_string_token): Add is_path parameter and pass
81432         down to DL_DST_REQUIRED and _dl_dst_substitute.
81433         (decompose_rpath): Call expand_dynamic_string_token with
81434         non-zero is_path.  Ignore empty rpaths.
81435         (_dl_map_object_from_fd): Call expand_dynamic_string_token
81436         with zero is_path.
81437
81438 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
81439
81440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
81441         Make cancelable.
81442
81443 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
81444
81445         [BZ #12655]
81446         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
81447         Patch by Filipe David Manana <fdmanana@apache.org>.
81448
81449 2011-04-07  Andreas Schwab  <schwab@redhat.com>
81450
81451         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
81452         Maintain aligned stack.
81453         (CHECK_RSP): Remove unused macro.
81454
81455 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
81456
81457         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
81458         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
81459
81460 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
81461
81462         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
81463
81464         * include/features.h: Mention __USE_XOPEN2K8 in comment.
81465
81466 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
81467
81468         [BZ #12518]
81469         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
81470         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
81471         * sysdeps/x86_64/memmove.c: New file.
81472         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
81473         (memcpy): Renamed to ...
81474         (__new_memcpy): This.
81475         (memcpy): Provide GLIBC_2_14 memcpy.
81476         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
81477         (memcpy): Provide GLIBC_2_2_5 memcpy.
81478
81479 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81480
81481         [BZ #12631]
81482         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
81483
81484 2011-03-30  Andreas Schwab  <schwab@redhat.com>
81485
81486         * misc/syncfs.c: New file.
81487         * misc/Makefile (routines): Add syncfs.
81488         * posix/unistd.h: Declare syncfs.
81489         * sysdeps/unix/syscalls.list: Add syncfs.
81490
81491 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81492
81493         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
81494         open_by_handle_at.
81495         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
81496         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81497         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81498         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81499         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81500         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
81501         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81502
81503 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81504
81505         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
81506         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81507         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
81508         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81509         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81510         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81511         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81512
81513         * io/Makefile: Compile fallocate.c, fallocate64.c, and
81514         sync_file_range.c with -fexceptions.
81515         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
81516         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
81517         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
81518         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
81519         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
81520         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
81521         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
81522         sync_file_range as cancellation point
81523         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
81524         now a wrapper around __call_sync_file_range with cancellation handling.
81525         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
81526         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
81527         function name to __call_sync_file_range.
81528         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
81529         Add call_sync_file_range.
81530
81531 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81532
81533         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81534         bits/timex.h.
81535
81536 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81537
81538         * iconv/iconv.h: Fix typo in comment.
81539         * io/fcntl.h: Likewise.
81540         * libio/stdio.h: Likewise.
81541         * posix/spawn.h: Likewise.
81542         * posix/unistd.h: Likewise.
81543         * stdlib/stdlib.h: Likewise.
81544         * time/time.h: Likewise.
81545         * wcsmbs/wchar.h: Likewise.
81546
81547         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
81548         open_by_handle): Add.
81549         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
81550         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
81551         Augment a few comments.
81552         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81553         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81554         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81555         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81556         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81557         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
81558         open_by_handle.
81559
81560         * io/fcntl.h (AT_EMPTY_PATH): Define.
81561
81562 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
81563
81564         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
81565         * sysdeps/unix/sysv/linux/bits/time.h: New file.
81566         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
81567         to...
81568         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
81569         * Versions.def: Add GLIBC_2.14.
81570         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
81571         Export.
81572
81573 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
81574
81575         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
81576         round counter.
81577         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81578
81579 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
81580
81581         [BZ #12597]
81582         * string/test-strncmp.c (do_page_test): New function.
81583         (check2): Likewise.
81584         (test_main): Call check2.
81585         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
81586
81587 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
81588
81589         [BZ #12587]
81590         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
81591         Handle cache information in CPU leaf 4.
81592         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81593
81594 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
81595
81596         [BZ #12583]
81597         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
81598         character representation.
81599         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
81600
81601 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
81602
81603         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
81604         END(__isnan) to END(__isnanf) to match function entry point/label
81605         EALIGN(__isnanf,...).
81606
81607 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
81608
81609         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
81610
81611 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
81612
81613         [BZ #12510]
81614         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
81615         copy from the symbol referenced in the relocation to initialize the
81616         used variable.
81617         Patch by Piotr Bury <pbury@goahead.com>.
81618         * elf/Makefile: Add rules to build and tst-unique3.
81619         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
81620         * elf/tst-unique3.cc: New file.
81621         * elf/tst-unique3.h: New file.
81622         * elf/tst-unique3lib.cc: New file.
81623         * elf/tst-unique3lib2.cc: New file.
81624
81625         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
81626
81627 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
81628
81629         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
81630         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
81631         to _start.
81632
81633 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
81634
81635         * elf/dl-load.c (_dl_map_object): If we are looking for the first
81636         to-be-loaded object along a path to loader is ld.so.
81637
81638 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81639             Ulrich Drepper  <drepper@gmail.com>
81640
81641         * sysdeps/x86_64/memset.S: After aligning destination, code
81642         branches to different locations depending on the value of
81643         misalignment, when multiarch is enabled. Fix this.
81644
81645 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81646
81647         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
81648         Set _x86_64_preferred_memory_instruction for AMD processsors.
81649         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81650         Set bit_Prefer_SSE_for_memop for AMD processors.
81651
81652 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
81653
81654         * libio/fmemopen.c (fmemopen): Optimize a bit.
81655
81656 2011-03-03  Andreas Schwab  <schwab@redhat.com>
81657
81658         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
81659
81660 2011-03-03  Roland McGrath  <roland@redhat.com>
81661
81662         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
81663
81664 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
81665
81666         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
81667         __bzero_ultra1 instead of __memset_ultra1.
81668
81669 2011-02-23  Andreas Schwab  <schwab@redhat.com>
81670             Ulrich Drepper  <drepper@gmail.com>
81671
81672         [BZ #12509]
81673         * include/link.h (struct link_map): Add l_orig_initfini.
81674         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
81675         returning unsuccessfully.
81676         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
81677         close of a file loaded at startup, restore the original l_initfini
81678         list.
81679         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
81680         list, store the pointer.
81681         * elf/Makefile ($(objpfx)noload-mem): New rule.
81682         (noload-ENV): Define.
81683         (tests): Add $(objpfx)noload-mem.
81684         * elf/noload.c: Include <memcheck.h>.
81685         (main): Call mtrace.  Close all opened handles.
81686
81687 2011-02-17  Andreas Schwab  <schwab@redhat.com>
81688
81689         [BZ #12454]
81690         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
81691         dependencies are missing.
81692
81693 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81694
81695         Fix __if_freereq crash: Unlike the generic version which uses free,
81696         Hurd needs munmap.
81697         * sysdeps/mach/hurd/ifreq.h: New file.
81698
81699 2011-01-27  Petr Baudis  <pasky@suse.cz>
81700             Ulrich Drepper  <drepper@gmail.com>
81701
81702         [BZ 12445]#
81703         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
81704         to extend_alloca().
81705         * stdio-common/bug23.c: New file.
81706         * stdio-common/Makefile (tests): Add bug23.
81707
81708 2010-09-28  Andreas Schwab  <schwab@redhat.com>
81709             Ulrich Drepper  <drepper@gmail.com>
81710
81711         [BZ #12489]
81712         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
81713         before performing relro protection.  At old place add assertion
81714         to make sure nothing changed.
81715
81716 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
81717             Glauber de Oliveira Costa  <glommer@gmail.com>
81718
81719         * elf/elf.h: Add new ARM TLS relocs.
81720
81721 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
81722
81723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
81724         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
81725         cast from r3.
81726         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
81727         'tests' variable.
81728         * sysdeps/wordsize-64/tst-writev.c: New file.
81729
81730 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
81731
81732         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
81733         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
81734         insns in _dl_start to prevent a TOC reference before relocs are
81735         resolved.
81736
81737 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
81738
81739         [BZ #12469]
81740         * Makeconfig: Remove RANLIB definition.
81741         * Makerules: Don't use RANLIB.
81742         * aclocal.m4: Remove ranlib test.
81743         * configure.in: No need to check for ranlib.
81744         * elf/rtld-Rules: Don't use RANLIB.
81745
81746 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81747
81748         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
81749         protection macro.
81750         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
81751         inclusion protection macro.
81752
81753         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
81754         SIGRTMIN and SIGRTMAX and print information in that case only when
81755         SIGRTMIN is defined.
81756
81757 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
81758
81759         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
81760         arginfo fn returning -1.
81761
81762         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
81763         and thousands string is zero terminated.
81764
81765 2011-02-03  Andreas Schwab  <schwab@redhat.com>
81766
81767         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
81768         sysdeps/unix/sysv/linux/bits/socket.h.
81769
81770 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81771
81772         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
81773         (__CPU_COUNT): Remove old macros.
81774         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
81775         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
81776         (__CPU_ALLOC, __CPU_FREE): Add macros.
81777         (__sched_cpualloc, __sched_cpufree): Add declarations.
81778
81779 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
81780
81781         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
81782         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
81783         * nscd/aicache.c (addhstaiX): Return timeout of added value.
81784         (readdhstai): Return value of addhstaiX call.
81785         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
81786         (addgrbyX): Return value returned by cache_addgr.
81787         (readdgrbyname): Return value returned by addgrbyX.
81788         (readdgrbygid): Likewise.
81789         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
81790         (addpwbyX): Return value returned by cache_addpw.
81791         (readdpwbyname): Return value returned by addhstbyX.
81792         (readdpwbyuid): Likewise.
81793         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
81794         (addservbyX): Return value returned by cache_addserv.
81795         (readdservbyname): Return value returned by addservbyX:
81796         (readdservbyport): Likewise.
81797         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
81798         (addhstbyX): Return value returned by cache_addhst.
81799         (readdhstbyname): Return value returned by addhstbyX.
81800         (readdhstbyaddr): Likewise.
81801         (readdhstbynamev6): Likewise.
81802         (readdhstbyaddrv6): Likewise.
81803         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
81804         (readdinitgroups): Return value returned by addinitgroupsX.
81805         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
81806         (prune_cache): Keep track of timeout value of re-added entries.
81807         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
81808         * nscd/nscd.h: Adjust prototypes of readd* functions.
81809
81810 2011-02-04  Roland McGrath  <roland@redhat.com>
81811
81812         * nis/nis_server.c (nis_servstate): Use the right name for 0.
81813         (nis_stats): Likewise.
81814         * nis/nis_modify.c (nis_modify): Likewise.
81815         * nis/nis_remove.c (nis_remove): Likewise.
81816         * nis/nis_add.c (nis_add): Likewise.
81817
81818         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
81819
81820         * posix/fnmatch_loop.c: Add some consts.
81821
81822         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
81823
81824 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
81825
81826         [BZ #12460]
81827         * config.make.in (config-cflags-novzeroupper): Define.
81828         * configure.in: Substitute libc_cv_cc_novzeroupper.
81829         * elf/Makefile (AVX-CFLAGS): Define.
81830         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
81831         (CFLAGS-tst-auditmod4a.c): Likewise.
81832         (CFLAGS-tst-auditmod4b.c): Likewise.
81833         (CFLAGS-tst-auditmod6b.c): Likewise.
81834         (CFLAGS-tst-auditmod6c.c): Likewise.
81835         (CFLAGS-tst-auditmod7b.c): Likewise.
81836         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
81837
81838 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
81839
81840         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
81841         function to the callback.
81842         Patch partly by Jiri Olsa <jolsa@redhat.com>.
81843
81844 2011-02-02  Andreas Schwab  <schwab@redhat.com>
81845
81846         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
81847         of errno.
81848
81849 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
81850
81851         [BZ #11724]
81852         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
81853         of constructors.
81854         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
81855         of destructors.
81856         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
81857
81858         [BZ #11724]
81859         * elf/Makefile: Add rules to build and run new test.
81860         * elf/tst-initorder.c: New file.
81861         * elf/tst-initorder.exp: New file.
81862         * elf/tst-initordera1.c: New file.
81863         * elf/tst-initordera2.c: New file.
81864         * elf/tst-initordera3.c: New file.
81865         * elf/tst-initordera4.c: New file.
81866         * elf/tst-initorderb1.c: New file.
81867         * elf/tst-initorderb2.c: New file.
81868         * elf/tst-order-a1.c: New file.
81869         * elf/tst-order-a2.c: New file.
81870         * elf/tst-order-a3.c: New file.
81871         * elf/tst-order-a4.c: New file.
81872         * elf/tst-order-b1.c: New file.
81873         * elf/tst-order-b2.c: New file.
81874         * elf/tst-order-main.c: New file.
81875         New test case by George Gensure <werkt0@gmail.com>.
81876
81877 2010-10-01  Andreas Schwab  <schwab@redhat.com>
81878
81879         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
81880         decoding ACE if AI_CANONIDN.
81881
81882 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
81883
81884         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
81885
81886 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
81887
81888         * version.h (RELEASE): Bump for 2.13 release.
81889         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
81890
81891         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
81892
81893         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
81894         MADV_NOHUGEPAGE.
81895         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
81896         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
81897         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
81898         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
81899         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
81900         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81901
81902         * posix/getconf.c: Update copyright year.
81903         * catgets/gencat.c: Likewise.
81904         * csu/version.c: Likewise.
81905         * debug/catchsegv.sh: Likewise.
81906         * debug/xtrace.sh: Likewise.
81907         * elf/ldconfig.c: Likewise.
81908         * elf/ldd.bash.in: Likewise.
81909         * elf/sprof.c (print_version): Likewise.
81910         * iconv/iconv_prog.c: Likewise.
81911         * iconv/iconvconfig.c: Likewise.
81912         * locale/programs/locale.c: Likewise.
81913         * locale/programs/localedef.c: Likewise.
81914         * malloc/memusage.sh: Likewise.
81915         * malloc/mtrace.pl: Likewise.
81916         * nscd/nscd.c (print_version): Likewise.
81917         * nss/getent.c: Likewise.
81918
81919         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
81920         PF_CAIF, and PF_ALG.
81921         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81922
81923 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
81924
81925         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
81926         (modules-names): Use them.
81927         (ifunc-test-modules, ifunc-pie-tests): Define.
81928         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
81929         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
81930         (test-extras): Likewise.
81931         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
81932         $(compile-command.c).
81933         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
81934         (all-built-dso): Define.
81935         (check-textrel.out, check-execstack.out): Depend on it.
81936
81937         * configure.in: Don't override --enable-multi-arch.
81938
81939 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
81940
81941         [BZ #6812]
81942         * nscd/hstcache.c (tryagain): Define.
81943         (cache_addhst): Return tryagain not notfound for temporary errors.
81944         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
81945         failed.
81946
81947 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
81948
81949         [BZ #10563]
81950         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
81951         to make the syscall.
81952         * sysdeps/unix/sysv/linux/setgroups.c: New file.
81953
81954         [BZ #12378]
81955         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
81956         and fall back to matching as normal character if the string ends before
81957         the matching ']' is found.  This is what POSIX requires.
81958         * posix/testfnm.c: Adjust test result.
81959         * posix/globtest.sh: Adjust test result.  Add new test.
81960         * posix/tst-fnmatch.input: Likewise.
81961         * posix/tst-fnmatch2.c: Add new test.
81962
81963 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
81964
81965         * elf/Makefile (check-execstack): Revert last change.  Depend on
81966         check-execstack.h.
81967         (check-execstack.h): New target.
81968         (generated): Add check-execstack.h.
81969         * elf/check-execstack.c: Include "check-execstack.h".
81970         (main): Revert last change.
81971         (handle_file): Return zero if GNU_STACK is absent and
81972         DEFAULT_STACK_PERMS doesn't include PF_X.
81973
81974 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
81975
81976         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
81977         in child fails because the descriptor is already closed.
81978         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
81979         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
81980         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
81981
81982         [BZ #12397]
81983         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
81984         syscall.
81985
81986         [BZ #10484]
81987         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
81988         temporary buffer used to handle multi lookups locally.
81989         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
81990
81991 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81992
81993         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
81994         loader is ld.so.
81995
81996 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
81997
81998         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
81999         alignment for SSE2.
82000
82001 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
82002
82003         [BZ #12394]
82004         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
82005         characters.  When rounding increased number of integer digits recompute
82006         number of groups.
82007         * stdio-common/tst-grouping.c: New file.
82008         * stdio-common/Makefile: Add rules to build and run tst-grouping.
82009
82010 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
82011
82012         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
82013         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
82014
82015         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
82016         void.
82017         * bits/select.h: Likewise.
82018
82019 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
82020
82021         * po/ja.po: Update from translation team.
82022
82023 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
82024
82025         [BZ #11155]
82026         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
82027         implementation just like for lxstat, fxstatat, et al.
82028
82029 2010-12-27  Jim Meyering  <meyering@redhat.com>
82030
82031         [BZ #12348]
82032         * posix/regexec.c (build_trtable): Return failure indication upon
82033         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
82034
82035 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
82036
82037         [BZ #12201]
82038         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
82039         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
82040         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
82041         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
82042
82043         [BZ #12207]
82044         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
82045
82046         [BZ #12204]
82047         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
82048         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
82049
82050 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
82051
82052         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
82053         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
82054         script has SORT_BY_INIT_PRIORITY.
82055         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
82056         NO_CTORS_DTORS_SECTIONS is defined.
82057         * elf/soinit.c: Likewise.
82058         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
82059         NO_CTORS_DTORS_SECTIONS is defined.
82060         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
82061         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
82062         * sysdeps/sh/init-first.c: Likewise.
82063         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
82064
82065 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
82066
82067         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
82068         always use the slow path.
82069
82070 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
82071
82072         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
82073         similar rule which adds the sysdep directories to the header search in
82074         order to pick up the correct platform stackinfo.h.
82075         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
82076         perform test if it is, otherwise return successfully without testing.
82077         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
82078         DEFAULT_STACK_PERMS define in stackinfo.h.
82079         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
82080         defined in stackinfo.h.
82081         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
82082         DEFAULT_STACK_PERMS defined in stackinfo.h.
82083         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
82084         * sysdeps/ia64/stackinfo.h: Likewise.
82085         * sysdeps/s390/stackinfo.h: Likewise.
82086         * sysdeps/sh/stackinfo.h: Likewise.
82087         * sysdeps/sparc/stackinfo.h: Likewise.
82088         * sysdeps/x86_64/stackinfo.h: Likewise.
82089         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
82090         PF_X for powerpc64.  Retain PF_X for powerpc32.
82091
82092 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
82093
82094         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
82095         accurately.
82096         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
82097         GETDENTS_64BIT_ALIGNED.
82098
82099 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
82100
82101         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
82102
82103 2010-12-10  Andreas Schwab  <schwab@redhat.com>
82104
82105         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
82106         _GNU_SOURCE.
82107
82108         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
82109         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
82110         Remove __restrict.
82111         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
82112         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
82113
82114 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
82115
82116         [BZ #11655]
82117         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
82118         are initialized.
82119
82120 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
82121
82122         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
82123
82124 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
82125
82126         * po/it.po: Update from translation team.
82127
82128 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
82129
82130         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
82131         unused codes.
82132
82133 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
82134
82135         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
82136
82137 2010-11-24  Andreas Schwab  <schwab@redhat.com>
82138
82139         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
82140         specially.
82141         (gaih_getanswer_slice): Likewise.
82142
82143 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
82144
82145         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
82146
82147 2010-05-31  Petr Baudis  <pasky@suse.cz>
82148
82149         [BZ #11149]
82150         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
82151         silently even in the chroot mode.
82152
82153 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
82154
82155         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
82156         last patch a bit.  Pretty printing
82157
82158 2010-05-31  Petr Baudis <pasky@suse.cz>
82159
82160         [BZ #10085]
82161         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
82162         initialization of skip_initgroups_dyn.
82163
82164 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
82165
82166         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
82167         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82168
82169 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
82170
82171         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
82172
82173 2010-11-11  Andreas Schwab  <schwab@redhat.com>
82174
82175         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
82176         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
82177         (tst-fnmatch-ENV): Set MALLOC_TRACE.
82178         ($(objpfx)tst-fnmatch-mem): New rule.
82179         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
82180         * posix/tst-fnmatch.c (main): Call mtrace.
82181
82182 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
82183
82184         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82185         Support Intel processor model 6 and model 0x2c.
82186
82187 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
82188
82189         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
82190           signed comparison.
82191
82192 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
82193
82194         [BZ #12205]
82195         * string/test-strncasecmp.c (check_result): New function.
82196         (do_one_test): Use it.
82197         (check1): New function.
82198         (test_main): Use it.
82199         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
82200         Support strcasecmp and strncasecmp.
82201
82202 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
82203
82204         [BZ #12194]
82205         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
82206         * sysdeps/x86_64/bits/byteswap.h: Likewise.
82207
82208 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
82209
82210         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
82211         IFUNC support.
82212         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82213         memset-x86-64.
82214         * sysdeps/x86_64/multiarch/bzero.S: New file.
82215         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
82216         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
82217         * sysdeps/x86_64/multiarch/memset.S: New file.
82218         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
82219         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82220         Set bit_Prefer_SSE_for_memop for Intel processors.
82221         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
82222         Define.
82223         (index_Prefer_SSE_for_memop): Define.
82224         (HAS_PREFER_SSE_FOR_MEMOP): Define.
82225
82226 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
82227
82228         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
82229         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
82230
82231 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
82232
82233         [BZ #12191]
82234         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82235         (__x86_64_raw_data_cache_size_half): Likewise.
82236         (__x86_64_raw_shared_cache_size): Likewise.
82237         (__x86_64_raw_shared_cache_size_half): Likewise.
82238
82239         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82240         (__x86_64_raw_data_cache_size_half): Likewise.
82241         (__x86_64_raw_shared_cache_size): Likewise.
82242         (__x86_64_raw_shared_cache_size_half): Likewise.
82243         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
82244         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
82245         and __x86_64_raw_shared_cache_size_half.  Round
82246         __x86_64_data_cache_size_half, __x86_64_data_cache_size
82247         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
82248         to multiple of 256 bytes.
82249
82250 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
82251
82252         [BZ #12167]
82253         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
82254         of inacessible symlinks.  Verify result of symlink before returning it.
82255         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
82256         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
82257
82258 2010-10-28  Erich Ritz  <erichritz@gmail.com>
82259
82260         * math/math.h (isinf): Fix typo in comment.
82261
82262 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
82263
82264         * po/da.po: Update from translation team.
82265
82266 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
82267
82268         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
82269         is added to the list.
82270
82271 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82272             Ulrich Drepper  <drepper@gmail.com>
82273
82274         * elf/dl-object.c (_dl_new_object): Don't append the new object to
82275         the global list here.  Move code to...
82276         (_dl_add_to_namespace_list): ...here.  New function.
82277         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
82278         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
82279         * elf/dl-load.c (lose): Don't remove the element from the list.
82280         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
82281         (_dl_map_object): Likewise.
82282
82283 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
82284
82285         [BZ #12159]
82286         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
82287         into all bytes of SSE register.
82288         Patch by Richard Li <richardpku@gmail.com>.
82289
82290 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
82291
82292         [BZ #12140]
82293         * malloc/malloc.c (_int_free): Fill correct number of bytes when
82294         perturbing.
82295
82296 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
82297
82298         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
82299         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
82300         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
82301         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
82302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
82303         submachine.
82304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
82305
82306 2010-10-22  Andreas Schwab  <schwab@redhat.com>
82307
82308         * include/dlfcn.h (__RTLD_SECURE): Define.
82309         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
82310         mode & __RTLD_SECURE instead.
82311         (open_path): Rename preloaded parameter to secure.
82312         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
82313         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
82314         * elf/dl-deps.c (openaux): Likewise.
82315         * elf/rtld.c (struct map_args): Remove is_preloaded.
82316         (map_doit): Don't use it.
82317         (dl_main): Likewise.
82318         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
82319         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
82320
82321 2010-09-09  Andreas Schwab  <schwab@redhat.com>
82322
82323         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
82324         (sysd-rules-targets): Remove duplicates.
82325         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
82326         rtld-%.$o dependency.
82327
82328 2010-10-18  Andreas Schwab  <schwab@redhat.com>
82329
82330         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
82331         _dl_map_object do it.
82332
82333 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
82334
82335         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
82336         fast fma builtins, define the macros in the C99 standard.
82337         (FP_FAST_FMAF): Likewise.
82338         (FP_FAST_FMAL): Likewise.
82339         * sysdeps/x86_64/bits/mathdef.h: Likewise.
82340
82341         * bits/mathdef.h: Update copyright year.
82342         * sysdeps/powerpc/bits/mathdef.h: Likewise.
82343
82344 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
82345
82346         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
82347         builtins, define the macros in the C99 standard.
82348         (FP_FAST_FMAF): Likewise.
82349         (FP_FAST_FMAL): Likewise.
82350         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
82351         multiply/add.
82352         (FP_FAST_FMAF): Likewise.
82353
82354 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
82355
82356         [BZ #3268]
82357         * math/libm-test.inc (fma_test): Some new testcases.
82358         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
82359         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
82360         y and infinite z.  Do multiplication by C already in long double.
82361         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
82362         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
82363         y and infinite z.  Do bitwise or of inexact bit into u.d.
82364         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
82365         * sysdeps/i386/fpu/s_fmaf.S: Removed.
82366         * sysdeps/i386/fpu/s_fma.S: Removed.
82367         * sysdeps/i386/fpu/s_fmal.S: Removed.
82368
82369 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
82370
82371         [BZ #3268]
82372         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
82373         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
82374         computation is not scheduled after fetestexcept.  Fix value
82375         of minimum denormal long double.
82376
82377 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
82378
82379         [BZ #3268]
82380         * math/libm-test.inc (fma_test): Add some more tests.
82381         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
82382         correctly.
82383
82384 2010-10-15  Andreas Schwab  <schwab@redhat.com>
82385
82386         * scripts/data/localplt-s390-linux-gnu.data: New file.
82387         * scripts/data/localplt-s390x-linux-gnu.data: New file.
82388
82389 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
82390
82391         [BZ #3268]
82392         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
82393         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
82394         instead of dbl-64.
82395         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
82396         inlines.
82397         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
82398         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
82399         if one of x and y is very large and the other is subnormal.
82400         * sysdeps/s390/fpu/s_fmaf.c: New file.
82401         * sysdeps/s390/fpu/s_fma.c: New file.
82402         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
82403         * sysdeps/powerpc/fpu/s_fma.S: New file.
82404         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
82405         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
82406         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
82407
82408 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
82409
82410         [BZ #3268]
82411         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
82412         fma tests.
82413         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
82414         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
82415         * sysdeps/i386/i686/multiarch/s_fma.c: Include
82416         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
82417         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
82418         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
82419         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
82420
82421 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
82422
82423         [BZ #12078]
82424         * posix/regcomp.c (parse_branch): One more memory leak plugged.
82425         * posix/bug-regex31.input: Add test case.
82426
82427 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82428
82429         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
82430         * posix/bug-regex31.input: New file.
82431
82432         [BZ #12078]
82433         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
82434         (parse_sub_exp): Fix last change, use postorder.
82435
82436         * posix/bug-regex31.c: New file.
82437         * posix/Makefile: Add rules to build and run bug-regex31.
82438
82439         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
82440
82441         [BZ #12078]
82442         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
82443
82444         [BZ #12108]
82445         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
82446         to have entries in sys_siglist.
82447
82448         [BZ #12093]
82449         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
82450         be NULL.
82451
82452 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
82453
82454         [BZ #3268]
82455         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
82456         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
82457         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
82458         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
82459         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
82460         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
82461         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
82462         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
82463         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
82464         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
82465         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
82466         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
82467         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
82468         * math/ftestexcept.c (fetestexcept): Likewise.
82469         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
82470         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
82471         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
82472         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
82473         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
82474         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
82475         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
82476
82477 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82478
82479         [BZ #12107]
82480         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
82481         newline.
82482
82483 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
82484
82485         * string/bug-strstr1.c: New file.
82486         * string/Makefile: Add rules to build and run bug-strstr1.
82487
82488 2010-10-05  Eric Blake  <eblake@redhat.com>
82489
82490         [BZ #12092]
82491         * string/str-two-way.h (two_way_long_needle): Always clear memory
82492         when skipping input due to the shift table.
82493
82494 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
82495
82496         [BZ #12005]
82497         * malloc/mcheck.c: Handle large requests.
82498
82499         [BZ #12077]
82500         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
82501         for strncmp and strncasecmp.
82502         * string/stratcliff.c: Add tests for strcmp and strncmp.
82503         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
82504
82505 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82506
82507         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
82508         __set_fpscr.
82509
82510 2010-09-30  Andreas Jaeger  <aj@suse.de>
82511
82512         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
82513         (CGROUP_SUPER_MAGIC): Define.
82514         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82515         Handle btrfs and cgroup file systems.
82516         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
82517         Likewise.
82518
82519 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
82520
82521         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
82522         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
82523
82524 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82525
82526         [BZ #12067]
82527         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
82528         trying to locate the ELF header.
82529
82530 2010-09-27  Andreas Schwab  <schwab@redhat.com>
82531
82532         [BZ #11611]
82533         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
82534         Mask out sign-bit copies when constructing f_fsid.
82535
82536 2010-09-24  Petr Baudis <pasky@suse.cz>
82537
82538         * debug/stack_chk_fail_local.c: Add missing licence exception.
82539         * debug/warning-nop.c: Likewise.
82540
82541 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
82542
82543         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
82544         implementing getdents64 using getdents syscall, set d_type if
82545         __ASSUME_GETDENTS32_D_TYPE.
82546
82547 2010-09-16  Andreas Schwab  <schwab@redhat.com>
82548
82549         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
82550         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
82551
82552 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
82553
82554         [BZ #12037]
82555         * posix/unistd.h: Undo change of feature selection for ftruncate from
82556         2010-01-11.
82557
82558 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
82559
82560         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
82561         detection.
82562
82563 2010-09-20  Andreas Schwab  <schwab@redhat.com>
82564
82565         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
82566         fanotify_mark.
82567         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82568
82569 2010-09-14  Andreas Schwab  <schwab@redhat.com>
82570
82571         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
82572         variables after CHECK_SP call.
82573         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
82574
82575 2010-09-13  Andreas Schwab  <schwab@redhat.com>
82576             Ulrich Drepper  <drepper@redhat.com>
82577
82578         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
82579         re-relocationg ld.so.
82580         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
82581         _dl_init_paths call.
82582         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
82583         here anymore.
82584
82585 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
82586
82587         * resolv/res_init.c (__res_vinit): Count the default server we added.
82588
82589 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
82590             Ulrich Drepper  <drepper@redhat.com>
82591
82592         [BZ #11968]
82593         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
82594         (____longjmp_chk): Use %ebx for saving value across system call.
82595         Add unwind info.
82596
82597 2010-09-06  Andreas Schwab  <schwab@redhat.com>
82598
82599         * manual/Makefile: Don't mix pattern rules with normal rules.
82600
82601 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
82602
82603         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
82604         operation.
82605         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
82606         * libio/iofopncook.c (_IO_cookie_init): Likewise.
82607         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
82608         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
82609         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82610         Likewise.
82611
82612 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
82613
82614         [BZ #11979]
82615         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
82616         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
82617
82618 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
82619
82620         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
82621         * sysdeps/x86_64/addmul_1.S: Likewise.
82622         * sysdeps/x86_64/lshift.S: Likewise.
82623         * sysdeps/x86_64/mul_1.S: Likewise.
82624         * sysdeps/x86_64/rshift.S: Likewise.
82625         * sysdeps/x86_64/sub_n.S: Likewise.
82626         * sysdeps/x86_64/submul_1.S: Likewise.
82627
82628 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82629
82630         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
82631         Define __sched_param instead of SCHED_* and sched_param when
82632         <bits/sched.h> is included with __need_schedparam defined.
82633         * bits/sched.h [__need_schedparam]
82634         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
82635         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
82636         (__defined_schedparam): Define to 1.
82637         (__sched_param): New structure, identical to sched_param.
82638         (__need_schedparam): Undefine.
82639
82640 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
82641
82642         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
82643         (epoll_create1): Declare.
82644
82645         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
82646
82647 2010-08-31  Andreas Schwab  <schwab@redhat.com>
82648
82649         [BZ #7066]
82650         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
82651         shifting retval into place.
82652
82653 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
82654
82655         * nis/rpcsvc/nis.h: Update copyright notice.
82656         * nis/rpcsvc/nis.x: Likewise.
82657         * nis/rpcsvc/nis_callback.h: Likewise.
82658         * nis/rpcsvc/nis_callback.x: Likewise.
82659         * nis/rpcsvc/nis_object.x: Likewise.
82660         * nis/rpcsvc/nis_tags.h: Likewise.
82661         * nis/rpcsvc/yp.h: Likewise.
82662         * nis/rpcsvc/yp.x: Likewise.
82663         * nis/rpcsvc/ypupd.h: Likewise.
82664         * nis/yp_xdr.c: Likewise.
82665         * nis/ypupdate_xdr.c: Likewise.
82666
82667         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
82668         mainly the body of pmap_getport.  Add parameters to specify timeouts.
82669         (pmap_getport): Use __libc_rpc_getport.
82670         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
82671         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
82672         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
82673
82674 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
82675
82676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
82677         fanotify_mark.
82678
82679 2010-08-27  Roland McGrath  <roland@redhat.com>
82680
82681         * sysdeps/i386/i686/multiarch/Makefile
82682         (CFLAGS-varshift.c): New variable.
82683
82684 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
82685
82686         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
82687         * sysdeps/i386/i686/multiarch/varshift.c: New file.
82688
82689         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
82690
82691         * sysdeps/x86_64/strlen.S: Minimal code improvement.
82692
82693 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
82694
82695         * sysdeps/x86_64/strlen.S: Unroll the loop.
82696         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82697         strlen-sse2 strlen-sse2-bsf.
82698         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
82699         __strlen_no_bsf if bit_Slow_BSF is set.
82700         (__strlen_sse42): Removed.
82701         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
82702         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
82703
82704 2010-08-25  Roland McGrath  <roland@redhat.com>
82705
82706         * sysdeps/x86_64/multiarch/varshift.S: File removed.
82707         * sysdeps/x86_64/multiarch/varshift.c: New file.
82708         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
82709         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
82710         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
82711         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
82712
82713 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
82714
82715         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82716         strlen-sse2 strlen-sse2-bsf.
82717         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
82718         __strlen_sse2_bsf if bit_Slow_BSF is unset.
82719         (__strlen_sse2): Removed.
82720         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
82721         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
82722         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
82723         bit_Slow_BSF for Atom.
82724         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
82725         (index_Slow_BSF): Define.
82726         (HAS_SLOW_BSF): Define.
82727
82728 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
82729
82730         [BZ #10851]
82731         * resolv/res_init.c (__res_vinit): When no server address at all
82732         is given default to loopback.
82733
82734 2010-08-24  Roland McGrath  <roland@redhat.com>
82735
82736         * configure.in: Remove config-name.h generation.
82737         * configure: Regenerated.
82738         * config-name.in: File removed.
82739         * scripts/config-uname.sh: New file.
82740         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
82741         ($(objdir)config-name.h): New target.
82742
82743         * sunrpc/rpc_parse.h: Avoid nested comment.
82744
82745 2010-08-24  Richard Henderson  <rth@redhat.com>
82746             Ulrich Drepper  <drepper@redhat.com>
82747             H.J. Lu  <hongjiu.lu@intel.com>
82748
82749         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
82750         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
82751         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
82752         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
82753         _mm_alignr_epi8 with _mm_loadu_si128.
82754         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
82755         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
82756         (__m128i_shift_right): Removed.
82757         * sysdeps/i386/i686/multiarch/varshift.h: New file.
82758         * sysdeps/i386/i686/multiarch/varshift.S: New file.
82759         * sysdeps/x86_64/multiarch/varshift.h: New file.
82760         * sysdeps/x86_64/multiarch/varshift.S: New file.
82761
82762 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
82763
82764         * configure.in: Move assembler checks to before sysdep dir checking.
82765
82766 2010-08-20  Petr Baudis  <pasky@suse.cz>
82767
82768         * LICENSES: Sync the sunrpc license.
82769
82770 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
82771
82772         * sunrpc/auth_des.c: Update copyright notice once again.
82773         * sunrpc/auth_none.c: Likewise.
82774         * sunrpc/auth_unix.c: Likewise.
82775         * sunrpc/authdes_prot.c: Likewise.
82776         * sunrpc/authuxprot.c: Likewise.
82777         * sunrpc/bindrsvprt.c: Likewise.
82778         * sunrpc/clnt_gen.c: Likewise.
82779         * sunrpc/clnt_perr.c: Likewise.
82780         * sunrpc/clnt_raw.c: Likewise.
82781         * sunrpc/clnt_simp.c: Likewise.
82782         * sunrpc/clnt_tcp.c: Likewise.
82783         * sunrpc/clnt_udp.c: Likewise.
82784         * sunrpc/clnt_unix.c: Likewise.
82785         * sunrpc/des_crypt.c: Likewise.
82786         * sunrpc/des_soft.c: Likewise.
82787         * sunrpc/get_myaddr.c: Likewise.
82788         * sunrpc/getrpcport.c: Likewise.
82789         * sunrpc/key_call.c: Likewise.
82790         * sunrpc/key_prot.c: Likewise.
82791         * sunrpc/openchild.c: Likewise.
82792         * sunrpc/pm_getmaps.c: Likewise.
82793         * sunrpc/pm_getport.c: Likewise.
82794         * sunrpc/pmap_clnt.c: Likewise.
82795         * sunrpc/pmap_prot.c: Likewise.
82796         * sunrpc/pmap_prot2.c: Likewise.
82797         * sunrpc/pmap_rmt.c: Likewise.
82798         * sunrpc/rpc/auth.h: Likewise.
82799         * sunrpc/rpc/auth_unix.h: Likewise.
82800         * sunrpc/rpc/clnt.h: Likewise.
82801         * sunrpc/rpc/des_crypt.h: Likewise.
82802         * sunrpc/rpc/key_prot.h: Likewise.
82803         * sunrpc/rpc/netdb.h: Likewise.
82804         * sunrpc/rpc/pmap_clnt.h: Likewise.
82805         * sunrpc/rpc/pmap_prot.h: Likewise.
82806         * sunrpc/rpc/pmap_rmt.h: Likewise.
82807         * sunrpc/rpc/rpc.h: Likewise.
82808         * sunrpc/rpc/rpc_des.h: Likewise.
82809         * sunrpc/rpc/rpc_msg.h: Likewise.
82810         * sunrpc/rpc/svc.h: Likewise.
82811         * sunrpc/rpc/svc_auth.h: Likewise.
82812         * sunrpc/rpc/types.h: Likewise.
82813         * sunrpc/rpc/xdr.h: Likewise.
82814         * sunrpc/rpc_clntout.c: Likewise.
82815         * sunrpc/rpc_cmsg.c: Likewise.
82816         * sunrpc/rpc_common.c: Likewise.
82817         * sunrpc/rpc_cout.c: Likewise.
82818         * sunrpc/rpc_dtable.c: Likewise.
82819         * sunrpc/rpc_hout.c: Likewise.
82820         * sunrpc/rpc_main.c: Likewise.
82821         * sunrpc/rpc_parse.c: Likewise.
82822         * sunrpc/rpc_parse.h: Likewise.
82823         * sunrpc/rpc_prot.c: Likewise.
82824         * sunrpc/rpc_sample.c: Likewise.
82825         * sunrpc/rpc_scan.c: Likewise.
82826         * sunrpc/rpc_scan.h: Likewise.
82827         * sunrpc/rpc_svcout.c: Likewise.
82828         * sunrpc/rpc_tblout.c: Likewise.
82829         * sunrpc/rpc_util.c: Likewise.
82830         * sunrpc/rpc_util.h: Likewise.
82831         * sunrpc/rpcinfo.c: Likewise.
82832         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
82833         * sunrpc/rpcsvc/key_prot.x: Likewise.
82834         * sunrpc/rpcsvc/klm_prot.x: Likewise.
82835         * sunrpc/rpcsvc/mount.x: Likewise.
82836         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
82837         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
82838         * sunrpc/rpcsvc/rex.x: Likewise.
82839         * sunrpc/rpcsvc/rstat.x: Likewise.
82840         * sunrpc/rpcsvc/rusers.x: Likewise.
82841         * sunrpc/rpcsvc/sm_inter.x: Likewise.
82842         * sunrpc/rpcsvc/spray.x: Likewise.
82843         * sunrpc/rpcsvc/yppasswd.x: Likewise.
82844         * sunrpc/rtime.c: Likewise.
82845         * sunrpc/svc.c: Likewise.
82846         * sunrpc/svc_auth.c: Likewise.
82847         * sunrpc/svc_authux.c: Likewise.
82848         * sunrpc/svc_raw.c: Likewise.
82849         * sunrpc/svc_run.c: Likewise.
82850         * sunrpc/svc_simple.c: Likewise.
82851         * sunrpc/svc_tcp.c: Likewise.
82852         * sunrpc/svc_udp.c: Likewise.
82853         * sunrpc/svc_unix.c: Likewise.
82854         * sunrpc/svcauth_des.c: Likewise.
82855         * sunrpc/xcrypt.c: Likewise.
82856         * sunrpc/xdr.c: Likewise.
82857         * sunrpc/xdr_array.c: Likewise.
82858         * sunrpc/xdr_float.c: Likewise.
82859         * sunrpc/xdr_mem.c: Likewise.
82860         * sunrpc/xdr_rec.c: Likewise.
82861         * sunrpc/xdr_ref.c: Likewise.
82862         * sunrpc/xdr_sizeof.c: Likewise.
82863         * sunrpc/xdr_stdio.c: Likewise.
82864
82865         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
82866         handling.
82867
82868 2010-08-19  Andreas Schwab  <schwab@redhat.com>
82869
82870         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
82871
82872 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
82873
82874         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
82875         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
82876         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
82877         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
82878         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
82879         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
82880         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
82881         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
82882         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
82883         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
82884         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
82885         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
82886         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
82887         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
82888
82889 2010-07-26  Anton Blanchard  <anton@samba.org>
82890
82891         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
82892         * malloc/arena.c (heap_trim): Likewise.
82893
82894 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
82895
82896         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
82897         here.  Not...
82898         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
82899         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
82900
82901 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
82902
82903         * sysdeps/i386/elf/Makefile: New file.
82904
82905 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82906
82907         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
82908         from fanotify_init.
82909         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
82910         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82911
82912 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
82913
82914         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
82915         of strncasecmp_l.
82916         * sysdeps/multiarch/strcmp.S: Likewise.
82917
82918 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
82919
82920         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82921         strncase_l-nonascii.
82922         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82923         Add strncase_l-ssse3.
82924         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
82925         * sysdeps/x86_64/strcmp.S: Likewise.
82926         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
82927         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
82928         * sysdeps/x86_64/strncase.S: New file.
82929         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
82930         * sysdeps/x86_64/strncase_l.S: New file.
82931         * string/Makefile (strop-tests): Add strncasecmp.
82932         * string/test-strncasecmp.c: New file.
82933
82934         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
82935         warning.
82936
82937         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
82938         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
82939
82940 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82941
82942         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
82943
82944 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
82945
82946         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
82947         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
82948         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
82949
82950 2010-05-01  Alan Modra  <amodra@gmail.com>
82951
82952         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
82953         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
82954         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
82955         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
82956         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
82957         tidying.  Don't tail-call __sigjmp_save for static lib.
82958         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
82959         save location.
82960         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
82961         (CALL_MCOUNT): Add eh info, and nop after bl.
82962         (TAIL_CALL_SYSCALL_ERROR): New macro.
82963         (PSEUDO_RET): Use it.
82964         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
82965         Correct save location of integer regs and cr.
82966         (_dl_profile_resolve): Correct cr save location.  Delete nops
82967         after bl when SHARED.  Reduce cfi size a little by better
82968         placement of cfi directives.
82969         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
82970         make a stack frame.  Instead use parm save area as a temp.
82971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
82972         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
82973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
82974         Don't make a stack frame for parent, use parm save area.
82975         Increase child stack frame to 112 bytes.  Don't save unused reg,
82976         and adjust reg usage.  Set up cfi on error recovery and
82977         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
82978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
82979         (__makecontext): Add dummy nop after jump to exit.
82980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
82981         Use correct parm save area and cr save, reduce stack frame.
82982         Correct cfi for possible PSEUDO_RET frame setup.
82983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
82984         Branch to local label emitted by PSEUDO_RET rather than
82985         __syscall_error.
82986
82987 2010-08-12  Andreas Schwab  <schwab@redhat.com>
82988
82989         [BZ #11904]
82990         * locale/programs/locale.c (print_assignment): New function.
82991         (show_locale_vars): Use it.
82992
82993 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
82994
82995         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
82996         field.
82997         (struct statfs64): Likewise.
82998         (_STATFS_F_FLAGS): Define.
82999         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
83000         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
83001         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
83002         (ST_VALID): Define locally.
83003         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
83004         __statvfs_getflags, use the provided value.
83005         * sysdeps/unix/sysv/linux/kernel-features.h: Define
83006         __ASSUME_STATFS_F_FLAGS.
83007
83008         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
83009
83010         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
83011         Add sys/fanotify.h.
83012         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
83013         fanotify_mask for GLIBC_2.13.
83014         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
83015         fanotify_init and fanotify_mark.
83016         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
83017         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
83018
83019         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
83020         Add prlimit.
83021         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
83022         prlimit64 for GLIBC_2.13.
83023         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
83024         prlimit64.
83025         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
83026         syscall.
83027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
83028         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
83029         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
83030         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
83031         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
83032         add prlimit alias.
83033         * sysdeps/unix/sysv/linux/prlimit.c: New file.
83034
83035         [BZ #11903]
83036         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
83037         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
83038
83039         * nss/Makefile: Add rules to build and run tst-nss-test1.
83040         * shlib-versions: Add entry for libnss_test1.
83041         * nss/nss_test1.c: New file.
83042         * nss/tst-nss-test1.c: New file.
83043
83044         * nss/nsswitch.c (__nss_database_custom): Define new variable.
83045         (__nss_configure_lookup): Set appropriate entry in
83046         __nss_configure_lookup to true.
83047         * nss/nsswitch.h: Define enum with indeces of databases in
83048         databases and __nss_database_custom arrays.  Declare
83049         __nss_database_custom.
83050         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
83051         to avoid using nscd when custom rules are installed.
83052         * nss/getXXbyYY_r.c: Likewise.
83053         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
83054
83055         * nss/nss_files/files-parse.c: Whitespace fixes.
83056
83057 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
83058
83059         [BZ #11883]
83060         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
83061         * posix/fnmatch_loop.c: Likewise.
83062
83063 2010-07-17  Andi Kleen  <ak@linux.intel.com>
83064
83065         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
83066         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
83067         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
83068         * Versions.def [GLIBC_2.13]: Add.
83069
83070 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
83071
83072         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83073         Also fail if tpwd after pwuid call is NULL.
83074
83075 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83076
83077         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
83078         when converting to ms.
83079
83080 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83081
83082         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
83083         EOPNOTSUPP errors with ENOTTY.
83084         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
83085         EOPNOTSUPP errors with ENOTTY.
83086
83087 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
83088
83089         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83090         Add strcasecmp_l-ssse3.
83091         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
83092         strcasecmp.
83093         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
83094         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
83095         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
83096
83097 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
83098
83099         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
83100
83101         * string/Makefile (strop-tests): Add strcasecmp.
83102         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83103         strcasecmp_l-nonascii.
83104         (gen-as-const-headers): Add locale-defines.sym.
83105         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
83106         * sysdeps/x86_64/strcasecmp.S: New file.
83107         * sysdeps/x86_64/strcasecmp_l.S: New file.
83108         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
83109         * sysdeps/x86_64/locale-defines.sym: New file.
83110         * string/test-strcasecmp.c: New file.
83111
83112         * string/test-strcasestr.c: Test both ends of the range of characters.
83113         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
83114
83115 2010-07-29  Roland McGrath  <roland@redhat.com>
83116
83117         [BZ #11856]
83118         * manual/locale.texi (Yes-or-No Questions): Fix example code.
83119
83120 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
83121
83122         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
83123         for ld.so.
83124
83125 2010-07-27  Andreas Schwab  <schwab@redhat.com>
83126
83127         * manual/memory.texi (Malloc Tunable Parameters): Document
83128         M_PERTURB.
83129
83130 2010-07-26  Roland McGrath  <roland@redhat.com>
83131
83132         [BZ #11840]
83133         * configure.in (-fgnu89-inline check): Set and substitute
83134         gnu89_inline, not libc_cv_gnu89_inline.
83135         * configure: Regenerated.
83136         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
83137
83138 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
83139
83140         * string/test-strnlen.c: New file.
83141         * string/Makefile (strop-tests): Add strnlen.
83142         * string/tester.c (test_strnlen): Add a few more test cases.
83143         * string/tst-strlen.c: Better error reporting.
83144
83145         * sysdeps/x86_64/strnlen.S: New file.
83146
83147 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
83148
83149         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
83150         lower-latency instructions.
83151
83152 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
83153
83154         * string/test-strcasestr.c: New file.
83155         * string/test-strstr.c: New file.
83156         * string/Makefile (strop-tests): Add strstr and strcasestr.
83157         * string/str-two-way.h: Don't undefine MAX.
83158         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
83159
83160 2010-07-21  Andreas Schwab  <schwab@redhat.com>
83161
83162         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
83163         strcasestr-nonascii.
83164         (CFLAGS-strcasestr-nonascii.c): Define.
83165         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
83166         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
83167         Remove unused attribute.
83168
83169 2010-07-20  Roland McGrath  <roland@redhat.com>
83170
83171         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
83172         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
83173         ld.so.cache was broken.  With it, there is no way to disable dsocaps
83174         like LD_HWCAP_MASK can disable hwcaps.
83175
83176 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83177
83178         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
83179
83180 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
83181
83182         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
83183         call in strcasestr.
83184         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
83185         __strcasestr_sse42_nonascii.
83186         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
83187         strcasestr-nonascii.c.
83188         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
83189
83190 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
83191
83192         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
83193         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
83194         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
83195         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
83196
83197 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
83198
83199         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
83200         fcntl.
83201
83202 2010-07-06  Andreas Schwab  <schwab@redhat.com>
83203
83204         [BZ #11577]
83205         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
83206         dl_signal_cerror.
83207
83208 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
83209
83210         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
83211         _PC_PIPE_BUF using F_GETPIPE_SZ.
83212
83213 2010-07-05  Roland McGrath  <roland@redhat.com>
83214
83215         * manual/arith.texi (Rounding Functions): Fix rint description
83216         implicit in round description.
83217
83218 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
83219
83220         * elf/Makefile: Fix linking for a few tests to make recent linker
83221         happy.
83222
83223 2010-06-30  Andreas Schwab  <schwab@redhat.com>
83224
83225         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
83226         $(common-objpfx)libc_nonshared.a.
83227
83228 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
83229
83230         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
83231         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
83232         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83233         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83234         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
83235         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
83236         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83237         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
83239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
83240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
83241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
83243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
83245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
83246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
83247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
83248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
83250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
83252         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
83253         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
83254         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
83255         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
83256         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
83257         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
83258         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
83259         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
83260         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
83261         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
83262         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
83263         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
83264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
83265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
83266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
83267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
83268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
83269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
83270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
83271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
83272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
83273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
83274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
83275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
83276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
83277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
83278
83279 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
83280
83281         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
83282         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
83283         * string/memmove.c (memmove): Renamed to ...
83284         (MEMMOVE): ...this.  Default to memmove.
83285         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
83286         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
83287         (END_CHK): Define.
83288         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
83289         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
83290         mempcpy-ssse3-back memmove-ssse3-back.
83291         * sysdeps/x86_64/multiarch/bcopy.S: New file .
83292         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
83293         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
83294         * sysdeps/x86_64/multiarch/memcpy.S: New file.
83295         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
83296         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
83297         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
83298         * sysdeps/x86_64/multiarch/memmove.c: New file.
83299         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
83300         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
83301         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
83302         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
83303         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
83304         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
83305         Define.
83306         (index_Fast_Copy_Backward): Define.
83307         (HAS_ARCH_FEATURE): Define.
83308         (HAS_FAST_REP_STRING): Define.
83309         (HAS_FAST_COPY_BACKWARD): Define.
83310
83311 2010-06-21  Andreas Schwab  <schwab@redhat.com>
83312
83313         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83314         Restore proper fallback handling.
83315
83316 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
83317
83318         [BZ #11701]
83319         * posix/group_member.c (__group_member): Correct checking loop.
83320
83321         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
83322         OOM in getpwuid_r correctly.  Return error number when the caller
83323         should return, otherwise -1.
83324         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
83325         call returning > 0 value.
83326         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
83327
83328 2010-06-07  Andreas Schwab  <schwab@redhat.com>
83329
83330         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
83331         libc_nonshared.a from targets in modules-names.
83332
83333 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
83334
83335         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
83336         requires it.
83337
83338 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
83339
83340         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
83341         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
83342         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
83343         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
83344
83345 2010-06-02  Andreas Schwab  <schwab@redhat.com>
83346
83347         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
83348
83349 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
83350
83351         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
83352         and F_GETPIPE_SZ.
83353         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
83354         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
83355         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
83356         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
83357         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
83358         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83359
83360 2010-06-14  Roland McGrath  <roland@redhat.com>
83361
83362         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
83363
83364 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
83365
83366         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
83367         __REDIRECT followed by __THROW.
83368         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
83369         * posix/getopt.h (getopt): Likewise.
83370
83371 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83372
83373         * hurd/lookup-at.c (__file_name_lookup_at): Accept
83374         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
83375         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
83376         in AT_FLAGS.
83377         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
83378         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
83379
83380 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
83381
83382         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
83383
83384 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
83385
83386         [BZ #11640]
83387         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83388         Properly check family and model.
83389
83390 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
83391
83392         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
83393
83394 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
83395
83396         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
83397
83398 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
83399
83400         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
83401         symbol reference.
83402
83403 2010-05-19  Andreas Schwab  <schwab@redhat.com>
83404
83405         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
83406         symbol reference.
83407
83408 2010-05-21  Andreas Schwab  <schwab@redhat.com>
83409
83410         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
83411         and internal_recvmmsg.
83412         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
83413         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
83414         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
83415         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
83416
83417         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
83418         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
83419         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
83420
83421 2010-05-20  Andreas Schwab  <schwab@redhat.com>
83422
83423         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
83424
83425 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
83426
83427         POWER7 optimizations.
83428         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
83429         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
83430
83431 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
83432
83433         * version.h: Update for 2.13 development version.
83434
83435 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
83436
83437         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
83438         exceptions.  Return 0.
83439
83440 2010-05-07  Roland McGrath  <roland@redhat.com>
83441
83442         * elf/ldconfig.c (main): Add a const.
83443
83444 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
83445
83446         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
83447         (args_options): Add no-idn option.
83448         (ahosts_keys_int): Add idn_flags to ai_flags.
83449         (parse_option): Handle 'i' option to clear idn_flags.
83450
83451         * malloc/malloc.c (_int_free): Possible race in the most recently
83452         added check.  Only act on the data if no current modification
83453         happened.
83454
83455 See ChangeLog.17 for earlier changes.