Expose linking against libsupport as make dependency
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-13  Florian Weimer  <fweimer@redhat.com>
2
3         * Rules (binaries-shared-tests, binaries-pie-tests)
4         (binaries-static-tests): Link with $(link-extra-libs-tests).
5         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
6         Remove $(link-extra-libs-tests).
7
8 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9
10         * sysdeps/powerpc/powerpc64/multiarch/Makefile
11         (sysdep_routines): Add strncmp_power9.
12         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13         (strncmp): Add __strncmp_power9 to list of strncmp functions.
14         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
15         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
16         (strncmp): Add __strncmp_power9 to ifunc list.
17         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
18
19 2016-12-12  Florian Weimer  <fweimer@redhat.com>
20
21         [BZ #17252]
22         Add getentropy, getrandom.
23         * stdlib/sys/random.h: New file.
24         (headers): Add it.
25         * stdlib/Makefile (routines): Add getentropy, getrandom.
26         (tests): Add tst-getrandom.
27         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
28         * stdlib/getentropy.c: New file.
29         * stdlib/getrandom.c: Likewise.
30         * stdlib/tst-getrandom.c: Likewise.
31         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
32         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
33         * manual/crypt.texi (Unpredictable Bytes): New section.
34         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
35         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
36         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
37         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
38         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
39         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
40         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
41         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
42         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
43         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
44         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
45         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
46         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
47         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
48         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
49         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
50         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
51         Likewise.
52         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
53         Likewise.
54         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
55         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
56         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
57         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
58         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
59         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
60         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
61         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
62         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
63         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
64         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
65         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
66
67 2016-12-10  Florian Weimer  <fweimer@redhat.com>
68
69         [BZ #20956]
70         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
71         as additional compiler barriers.
72         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
73         (fn2, do_test): Declare with external linkage.
74         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
75         (do_test): Declare with external linkage.
76         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
77         (do_test): Declare with external linkage.
78         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
79         (do_test): Declare with external linkage.
80
81 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
82
83         * support/support_test_main.c (support_test_main): Use correct
84         timeout.
85
86 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
87             Florian Weimer  <fweimer@redhat.com>
88
89         [BZ #16421]
90         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
91         and __u6_addr32 members.
92         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
93         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
94         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
95         Use __u6_addr32.
96         * inet/tst-checks.c: Use <support/test-driver.c>
97         * inet/tst-checks-posix.c: New file.
98         * inet/Makefile (tests): Add it.
99         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
100
101 2016-12-09  Florian Weimer  <fweimer@redhat.com>
102
103         New subdirectory support for build and test infrastructure.
104         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
105         setting install-lib.
106         * Makeconfig (link-extra-libs-tests): Define.
107         (+link-pie-tests, +link-static-tests, +link-tests): Use
108         link-extra-libs-tests.
109         (rpath-dirs, all-subdirs): Add support.
110         (built-modules): Add libsupport.
111         (libsupport): Define.
112         * support: New directory.
113         * support/Makefile: New file.
114         * support/check.c: Likewise.
115         * support/check.h: Likewise.
116         * support/delayed_exit.c: Likewise.
117         * support/ignore_stderr.c: Likewise.
118         * support/oom_error.c: Likewise.
119         * support/set_fortify_handler.c: Likewise.
120         * support/support.h: Likewise.
121         * support/temp_file-internal.h: Likewise.
122         * support/temp_file.c: Likewise.
123         * support/test-driver.c: Likewise.
124         * support/test-driver.h: Likewise.
125         * support/test_main.c: Likewise.
126         * support/write_message.c: Likewise.
127         * support/xasprintf.c: Likewise.
128         * support/xcalloc.c: Likewise.
129         * support/xmalloc.c: Likewise.
130         * support/xpthread_barrier_destroy.c: Likewise.
131         * support/xpthread_barrier_init.c: Likewise.
132         * support/xpthread_barrier_wait.c: Likewise.
133         * support/xpthread_cancel.c: Likewise.
134         * support/xpthread_check_return.c: Likewise.
135         * support/xpthread_cond_wait.c: Likewise.
136         * support/xpthread_create.c: Likewise.
137         * support/xpthread_detach.c: Likewise.
138         * support/xpthread_join.c: Likewise.
139         * support/xpthread_mutex_lock.c: Likewise.
140         * support/xpthread_mutex_unlock.c: Likewise.
141         * support/xpthread_sigmask.c: Likewise.
142         * support/xpthread_spin_lock.c: Likewise.
143         * support/xpthread_spin_unlock.c: Likewise.
144         * support/xrealloc.c: Likweise.
145         * support/xsignal.h: Likewise.
146         * support/xthread.h: Likewise.
147         * support_tempfile.h: Likewise.
148         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
149         (TEST_DATA_LIMIT): Remove unused macro.
150         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
151         <support/check.h>.
152         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
153         (ignore_stderr, set_fortify_handler): Remove.  Now in
154         <support/support.h>.
155         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
156         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
157         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
158         (xpthread_join): Remove.  Now in <support/xthread.h>.
159         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
160         Introduce legacy wrappers.
161         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
162         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
163         (write_message): Remove.
164         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
165         test-skeleton.c.
166         * io/test-open-tmpfile: Likewise.
167         * io/tst-posix_fallocate-common.c: Likewise.
168         * libio/tst-fseek.c: Likewise.
169         * malloc/tst-malloc-backtrace.c: Likewise.
170         * malloc/tst-malloc-fork-deadlock.c: Likewise.
171         * malloc/tst-malloc-thread-exit.c: Likewise.
172         * nptl/tst-cancel7.c: Likewise.
173         * nptl/tst-cleanup0.c: Likewise.
174         * posix/tst-posix_fadvise-common.c: Likewise.
175         * rt/tst-shm.c: Likewise.
176         * time/bug-getdate1.c: Likewise.
177         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
178         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
179         * elf/Makefile (tst-piemod1.so): Link against libsupport.
180
181 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
182
183         * Rules [$(run-built-tests) != no] (tests-expected): Add
184         $(tests-printers).
185         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
186
187 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
188
189         [BZ #20539]
190         * math/Makefile (install-lib-ldscripts): Add libm.a.
191         (install_subdir): Remove.
192         (install-others): Add.
193         ($(inst_libdir)/libm.a): Add rule for installation as
194         linker script.
195         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
196
197 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
198
199         * INSTALL: Regenerated.
200         * Makeconfig: Add comments and whitespace to make the control flow
201         clearer.
202         (+link-printers-tests, +link-pie-printers-tests,
203         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
204         built-rtld-LDFLAGS, link-libc-rpath,
205         link-libc-tests-after-rpath-link,
206         link-libc-printers-tests): New.
207         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
208         link-libc-tests): Use the new variables as required.
209         * Makerules ($(py-const)): New rule.
210         generated: Add $(py-const).
211         * README.pretty-printers: New file.
212         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
213         (others): Depend on $(py-const).
214         (tests): Depend on $(tests-printers-programs) or
215         $(tests-printers-out),
216         as required.  Pass $(tests-printers) to merge-test-results.sh.
217         * manual/install.texi: Add requirements for testing the pretty
218         printers.
219         * nptl/Makefile (gen-py-const-headers, pretty-printers,
220         tests-printers, CFLAGS-test-mutexattr-printers.c
221         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
222         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
223         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
224         * nptl/nptl-printers.py: New file.
225         * nptl/nptl_lock_constants.pysym: Likewise.
226         * nptl/test-cond-printers.c: Likewise.
227         * nptl/test-cond-printers.py: Likewise.
228         * nptl/test-condattr-printers.c: Likewise.
229         * nptl/test-condattr-printers.py: Likewise.
230         * nptl/test-mutex-printers.c: Likewise.
231         * nptl/test-mutex-printers.py: Likewise.
232         * nptl/test-mutexattr-printers.c: Likewise.
233         * nptl/test-mutexattr-printers.py: Likewise.
234         * nptl/test-rwlock-printers.c: Likewise.
235         * nptl/test-rwlock-printers.py: Likewise.
236         * nptl/test-rwlockattr-printers.c: Likewise.
237         * nptl/test-rwlockattr-printers.py: Likewise.
238         * scripts/gen-py-const.awk: Likewise.
239         * scripts/test_printers_common.py: Likewise.
240         * scripts/test_printers_exceptions.py: Likewise.
241
242 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
243
244         * scripts/build-many-glibcs.py (Context.__init__): Take strip
245         argument.
246         (Glibc.build_glibc): Strip installed shared libraries if
247         requested.
248         (get_parser): Add --strip option.
249         (main): Update Context call.
250
251 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
252             Dominik Vogt  <vogt@linux.vnet.ibm.com>
253
254         [BZ #20847]
255         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
256         array bounds for else branch.
257         (__execvpe): Style fixes.
258         * posix/tst-vfork3.c (run_script): New function.
259         (create_script): Likewise.
260         (do_test): Use run_script internal function.
261         (do_prepare): Use create_script internal function.
262
263 2016-12-07  Andreas Schwab  <schwab@suse.de>
264
265         * sysdeps/unix/sysv/linux/x86/elision-conf.h
266         (__elision_available): Don't declare.
267         * sysdeps/unix/sysv/linux/x86/elision-conf.c
268         (__elision_available): Don't define.
269         (elision_init): Don't set __elision_available.
270
271 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
272
273         [BZ #20940]
274         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
275         return Inf for arguments Inf and sNaN.
276         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
277         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
278         Likewise.
279         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
280         Likewise.
281         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
282         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
283         for arguments Inf and sNaN.  When returning a NaN, compute it by
284         arithmetic on the arguments.
285         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
286         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
287         arguments.
288
289 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
290
291         [BZ #20916]
292         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
293         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
294         to compute result.
295         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
296         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
297
298 2016-12-05  Torvald Riegel  <triegel@redhat.com>
299
300         * include/atomic.h (__atomic_check_size_ls): New.
301         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
302         atomic_store_release): Use it.
303         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
304         (elision_adapt, ELIDE_LOCK): Use atomics.
305         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
306         atomics and improve code comments.
307         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
308         (__lll_trylock_elision): Likewise.
309
310 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
311
312         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
313         programs.
314
315 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
316
317         [BZ #20916]
318         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
319         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
320         arguments to compute result.
321         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
322         1 for arguments (sNaN, 0) or (1, sNaN).
323         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
324         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
325
326         [BZ #20919]
327         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
328         NaN first argument when raised to power 0.
329         * math/w_pow.c (__pow): Do not check for NaN or zero results from
330         raising to power zero.
331         * math/w_powf.c (__powf): Likewise.
332         * math/w_powl.c (__powl): Likewise.
333         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
334         pow (0, 0) or pow (NaN, 0).
335
336 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
337
338         [BZ #20918]
339         * configure.ac: Test for static NSS cryptographic libraries and set
340         libc_cv_static_nss_crypt.
341         * configure: Regenerate.
342         * config.make.in (static-nss-crypt): Define.
343         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
344         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
345         (CFLAGS-tst-linkall-static.c): Define.
346         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
347         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
348         ($(objpfx)tst-linkall-static): Define.
349         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
350         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
351
352 2016-12-02  Florian Weimer  <fweimer@redhat.com>
353
354         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
355         (one-hundred, tst-tls-many-dynamic-modules): Define.
356         (modules-names): Add $(tst-tls-many-dynamic-modules).
357         (tst-tls-manydynamic%mod.os): Build with special preprocessor
358         macros.
359         (tst-tls-manydynamic): Link against libdl, libpthread.
360         (tst-tls-manydynamic.out): The test needs the test modules at run
361         time.
362         * elf/tst-tls-manydynamic.c: New file.
363         * elf/tst-tls-manydynamic.h: Likewise.
364         * elf/tst-tls-manydynamicmod.c: Likewise.
365
366 2016-12-02  Florian Weimer  <fweimer@redhat.com>
367
368         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
369         (TLS_DTV_UNALLOCATED): Add.
370         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
371         offsets.
372
373 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
374
375         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
376
377 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
378
379         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
380         Add -fno-optimize-sibling-calls.
381
382 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
383
384         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
385         New declaration.
386         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
387         macro.
388         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
389         New macro.
390         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
391         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
392         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
393         (llogbf): Likewise.
394         (llogbl): Likewise.
395         * math/Makefile (gen-libm-calls): Add w_llogbF.
396         (tests): Add test-fp-llogb-constants.
397         * math/w_llogb_template.c: New file.  Based on
398         math/w_ilogb_template.c.
399         * math/libm-test.inc (llogb_test_data): New array.
400         (llogb_test): New function.
401         (main): Call llogb_test.
402         * math/test-fp-llogb-constants.c: New file.  Based on
403         math/test-fp-ilogb-constants.c.
404         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
405         (do_test): Call check_return_llogb.
406         * math/test-tgmath.c (NCALLS): Increase to 126.
407         (F(compile_test)): Call llogb.
408         (F(llogb)): New function.
409         * manual/math.texi (Exponents and Logarithms): Document llogb,
410         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
411         * manual/libm-err-tab.pl (@all_functions): Add llogb.
412         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
413         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
414         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
415         (CFLAGS-nldbl-llogb.c): New variable.
416         * sysdeps/nacl/libm.abilist: Update.
417         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
418         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
419         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
420         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
421         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
422         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
423         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
424         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
425         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
426         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
427         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
428         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
430         Likewise.
431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
432         Likewise.
433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
434         Likewise.
435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
436         Likewise.
437         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
438         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
439         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
440         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
441         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
442         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
443         Likewise.
444         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
445         Likewise.
446         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
447         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
448         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
449
450 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
451
452         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
453         _Float128 instead of long double.
454         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
455
456         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
457         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
458         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
459         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
460         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
461         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
462         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
463         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
464         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
465         Likewise.
466
467 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
468
469         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
470         Remove redirection to __strrchr_ppc.
471
472 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
473
474         * sysdeps/powerpc/powerpc64/multiarch/Makefile
475         (sysdep_routines): Add strcmp_power9.
476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
477         (strcmp): Add __strcmp_power9 to list of strcmp functions.
478         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
479         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
480         (strcmp): Add __strcmp_power9 to ifunc list.
481         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
482
483 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
484
485         * bits/fp-logb.h: New file.
486         * sysdeps/ia64/bits/fp-logb.h: Likewise.
487         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
488         * sysdeps/x86/bits/fp-logb.h: Likewise.
489         * math/Makefile (headers): Add bits/fp-logb.h.
490         * math/math.h: Include <bits/fp-logb.h>.
491         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
492         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
493         * bits/mathdef.h (FP_ILOGB0): Remove.
494         (FP_ILOGBNAN): Likewise.
495         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
496         (FP_ILOGBNAN): Likewise.
497         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
498         (FP_ILOGBNAN): Likewise.
499         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
500         (FP_ILOGBNAN): Likewise.
501         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
502         (FP_ILOGBNAN): Likewise.
503         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
504         (FP_ILOGBNAN): Likewise.
505         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
506         (FP_ILOGBNAN): Likewise.
507         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
508         (FP_ILOGBNAN): Likewise.
509         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
510         (FP_ILOGBNAN): Likewise.
511         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
512         (FP_ILOGBNAN): Likewise.
513
514         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
515         time module.
516         (Context.__init__): Initialize self.logsdir_old.
517         (Context.run_builds): Handle bot action.
518         (Context.bot_cycle): Copy logs directory before running builds.
519         (Context.bot_run_self): Take argument for whether to check
520         subprocess result.  Flush stdout before running subprocess.
521         (Context.bot): New function.
522         (get_parser): Allow bot action.
523
524 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
525
526         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
527         Import email.mime.text, email.utils and smtplib modules.
528         (Context.__init__): Initialize self.bot_config_json.
529         (Context.run_builds): Handle bot-cycle action.
530         (Context.load_bot_config_json): New function.
531         (Context.part_build_old): Likewise.
532         (Context.bot_cycle): Likewise.
533         (Context.bot_build_mail): Likewise.
534         (Context.bot_run_self): Likewise.
535         (get_parser): Allow bot-cycle action.
536
537 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
538
539         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
540         Remove redirection to __stpcpy_ppc.
541
542 2016-11-30  Florian Weimer  <fweimer@redhat.com>
543
544         Remove __libc_memalign from ld.so because it is unused.
545         * elf/dl-minimal.c: Update comment on the malloc implementation.
546         (malloc): Renamed from __libc_memalign, replacing the original
547         malloc implementation.  Replace the align parameter with
548         MALLOC_ALIGNMENT.
549         * elf/Versions (ld): Update comment and remove __libc_memalign.
550         * sysdeps/nacl/ld.abilist: Likewise.
551         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
552         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
553         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
554         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
555         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
556         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
557         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
558         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
559         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
560         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
561         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
562         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
563         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
567         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
568         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
569         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
570         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
571         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
573         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
574         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
575         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
576         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
577         * sysdeps/generic/localplt.data (ld.so): Likewise.
578         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
579         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
580         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
581         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
582         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
583         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
584         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
585         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
586         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
588         (ld.so): Likewise.
589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
590         (ld.so): Likewise.
591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
592         Likewise.
593         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
594         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
595         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
596         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
597         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
598
599 2016-11-30  Florian Weimer  <fweimer@redhat.com>
600
601         [BZ #16628]
602         Implement _dl_catch_error, _dl_signal_error in libc.so.
603         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
604         (catch_hook): Define as thread-local or regular variable,
605         depending on DL_ERROR_BOOTSTRAP.
606         (CATCH_HOOK): Remove.
607         (dl_signal_error, _dl_catch_error): Use
608         catch_hook.  Add hidden definition for libc.
609         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
610         for DL_ERROR_BOOTSTRAP only.
611         * elf/dl-error.c: New file.
612         * elf/dl-error-minimal.c: Likewise.
613         * elf/tst-latepthread.c: Likewise.
614         * elf/tst-latepthreadmod.c: Likewise.
615         * elf/Makefile (routines): Add dl-error.
616         (dl-routines): Remove dl-error.
617         (rtld-routines): Add dl-error-minimal.
618         [build-shared] (tests): Add tst-latepthread.
619         (module-names): Add tst-latepthreadmod.
620         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
621         symbol.
622         (tst-latepthreadmod.so): Link against libpthread.
623         (tst-latepthread): Link against libdbl.
624         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
625         _dl_catch_error.
626         [ld] (GLIBC_PRIVATE): Likewise.
627         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
628         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
629         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
630         directly.
631         * elf/dl-tsd.c: Remove file.
632         * elf/rtld.c (_rtld_global_ro): Remove initializers for
633         _dl_catch_error, _dl_signal_error.
634         (_dl_initial_error_catch_tsd): Remove definition.
635         (do_preload): Remove initialization of dl_error_catch_tsd.
636         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
637         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
638         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
639         * dlfcn/dlopen.c (dlopen_doit): Likewise.
640         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
641         set dl_error_catch_tsd.
642         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
643         _dl_error_catch_tsd member.
644         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
645         members.
646         (_dl_initial_error_catch_tsd): Remove declaration.
647         (_dl_dprintf): Provide definition for use outside of ld.so.
648         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
649         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
650         prototype for libc.
651         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
652         _dl_catch_error.
653         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
654         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
655         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
656         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
657         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
658         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
659         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
660         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
661         Likewise.
662         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
664         (ld.so): Likewise.
665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
666         (ld.so): Likewise.
667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
668         Likewise.
669         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
670         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
671         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
672         Likewise.
673         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
674         Likewise.
675         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
676
677 2016-11-30  Florian Weimer  <fweimer@redhat.com>
678
679         [BZ #4099]
680         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
681         _IO_BUFSIZ (8192).
682
683 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
684
685         * PROJECTS: Remove file.
686
687 2016-11-29  Florian Weimer  <fweimer@redhat.com>
688
689         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
690
691 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
692             Steve Ellcey  <sellcey@caviumnetworks.com>
693
694         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
695         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
696         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
697         fxstatat.
698         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
699         lxstat.
700         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
701         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
702         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
703         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
704         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
705         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
706         __xstat.
707
708 2016-11-29  Florian Weimer  <fweimer@redhat.com>
709
710         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
711         Define.
712         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
713         definition.
714
715 2016-11-29  Florian Weimer  <fweimer@redhat.com>
716
717         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
718         version and turn into strong alias.  Remove compat symbol.
719
720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
721         (__longjmp): Remove.
722
723 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
724
725         * bits/fp-fast.h: New file.
726         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
727         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
728         * math/Makefile (headers): Add bits/fp-fast.h.
729         * math/math.h: Include <bits/fp-fast.h>.
730         * bits/mathdef.h (FP_FAST_FMA): Remove.
731         (FP_FAST_FMAF): Likewise.
732         (FP_FAST_FMAL): Likewise.
733         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
734         (FP_FAST_FMAF): Likewise.
735         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
736         (FP_FAST_FMAF): Likewise.
737         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
738         (FP_FAST_FMAF): Likewise.
739         (FP_FAST_FMAL): Likewise.
740         * sysdeps/arm/bits/mathdef.h: Remove file.
741         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
742         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
743         * sysdeps/tile/bits/mathdef.h: Likewise.
744
745 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
746
747         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
748         * math/w_ilogb.c: Remove.
749         * math/w_ilogbf.c: Likewise.
750         * math/w_ilogbl.c: Likewise.
751         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
752         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
753         * math/Makefile (gen-libm-calls): Add w_ilogbF.
754         (libm-calls): Remove w_ilogbF.
755         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
756         (LDOUBLE_ilogbl_libm_version): New macro.
757
758         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
759
760         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
761         [!__STRICT_ANSI__ && !__cplusplus].
762
763 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
764
765         [BZ #20750]
766         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
767         of PIC.
768
769 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
770             Yury Norov  <ynorov@caviumnetworks.com>
771             Steve Ellcey  <sellcey@caviumnetworks.com>
772
773         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
774         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
775         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
776         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
777         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
778         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
779         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
780         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
781         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
782         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
783         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
784         to get correct reg name for ILP32.
785         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
786         (RELA_SIZE): New Macro.
787         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
788         to support ILP32.
789         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
790         cast for ILP32 mode.
791         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
792         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
793         * sysdeps/aarch64/memset.S (__memset): Ditto.
794         * sysdeps/aarch64/strchr.S (strchr): Ditto.
795         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
796         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
797         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
798         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
799         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
800         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
801         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
802         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
803         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
804         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
805         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
806         change PTR_MANGLE call to use register numbers instead of names.
807         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
808         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
809         ILP32 mode, change PTR_MANGLE calls to use register numbers.
810         * sysdeps/aarch64/start.S (_start): Ditto.
811         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
812         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
813         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
814         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
815         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
816         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
817         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
818         Make defined values dependent on __ILP32__.
819         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
820         (sem_t): Change __align type.
821         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
822         PTR_SIZE): New Macros.
823         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
824         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
825         Set when in ILP32 mode.
826         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
827         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
828         Set elf flags for ILP32.
829         (add_system_dir): Set ILP32 library directories.
830         * sysdeps/unix/sysv/linux/aarch64/init-first.c
831         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
832         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
833         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
834         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
835         New Macros.
836         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
837
838 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
839
840         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
841         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
842         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
843
844 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
845
846         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
847         <asm/cachectl.h>.
848
849 2016-11-27  Zack Weinberg  <zackw@panix.com>
850
851         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
852         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
853
854 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
855
856         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
857         error_t to fix usage in C++ programs.
858
859 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
860
861         * scripts/build-many-glibcs.py: Import datetime module.
862         (Context.__init__): Load JSON build state.  Initialize list of
863         status logs.
864         (Context.run_builds): Update saved build state.
865         (Context.add_makefile_cmdlist): Update list of status logs.
866         (Context.load_build_state_json): New function.
867         (Context.store_build_state_json): Likewise.
868         (Context.clear_last_build_state): Likewise.
869         (Context.update_build_state): Likewise.
870         (CommandList.status_logs): Likewise.
871
872 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
873
874         * scripts/build-many-glibcs.py (Context.__init__): Save text of
875         script being executed.
876         (Context.get_script_text): New function.
877         (Context.exec_self): Likewise.
878         (Context.checkout): Re-exec script if changed by checkout process.
879
880 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
881
882         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
883         (setpayloadsig): New declaration.
884         * math/Versions (setpayloadsig): New libm symbol at version
885         GLIBC_2.25.
886         (setpayloadsigf): Likewise.
887         (setpayloadsigl): Likewise.
888         * math/Makefile (libm-calls): Add s_setpayloadsigF.
889         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
890         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
891         (setpayloadsig_test_data): New array.
892         (setpayloadsig_test): New function.
893         (main): Call setpayloadsig_test.
894         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
895         setpayloadsigf and setpayloadsigl.
896         * manual/libm-err-tab.pl: Update comment on interfaces without
897         ulps tabulated.
898         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
899         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
900         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
901         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
902         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
903         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
904         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
905         setpayloadsig.
906         (CFLAGS-nldbl-setpayloadsig.c): New variable.
907         * sysdeps/nacl/libm.abilist: Update.
908         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
909         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
910         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
911         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
912         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
913         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
914         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
915         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
916         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
917         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
918         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
919         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
921         Likewise.
922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
923         Likewise.
924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
925         Likewise.
926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
927         Likewise.
928         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
929         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
930         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
931         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
932         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
933         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
934         Likewise.
935         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
936         Likewise.
937         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
938         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
939         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
940
941         * scripts/build-many-glibcs.py: Import json module.
942         (Context.__init__): Take replace_sources argument.  Load
943         versions.json.
944         (Context.load_versions_json): New function.
945         (Context.store_json): Likewise.
946         (Context.store_versions_json): Likewise.
947         (Context.set_component_version): Likewise.
948         (Context.checkout): Update versions.json.  Check for and handle
949         changes of version.  Prefer previously explicitly specified
950         version to default version.
951         (Context.checkout_vcs): Return a revision identifier.
952         (Context.git_checkout): Likewise.
953         (Context.gcc_checkout): Likewise.
954         (get_parser): Add --replace-sources option.
955         (main): Pass replace_sources argument to Context call.
956
957 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
958
959         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
960         * nptl/allocatestack.c (allocate_stack): Likewise.
961         (__reclaim_stacks): Likewise.
962         (setxid_signal_thread): Obtain pid through syscall.
963         * nptl/nptl-init.c (sigcancel_handler): Likewise.
964         (sighandle_setxid): Likewise.
965         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
966         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
967         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
968         Likewise.
969         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
970         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
971         comment.
972         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
973         * nptl/descr.h (struct pthread): Change comment about pid value.
974         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
975         pid assert.
976         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
977         Do not set pid value.
978         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
979         pid cache check.
980         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
981         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
982         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
983         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
984         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
985         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
986         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
987         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
988         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
989         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
990         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
991         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
992         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
993         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
994         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
995         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
996         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
997         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
998         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
999         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
1000         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1001         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1002         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
1003         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1004         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1007         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
1008         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1009         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
1010         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1011         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1012         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
1013         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1014         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
1015         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
1016         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1017         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1018         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
1019         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
1020         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1021         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1022         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
1023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1025         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
1026         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
1027         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1028         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
1029         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
1030         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
1031         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1032         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1033         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
1034         struct access.
1035         (clone_test): Remove function.
1036         (do_test): Rewrite to take in consideration pid is not cached anymore.
1037
1038 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1039
1040         * bits/flt-eval-method.h: New file.
1041         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
1042         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
1043         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
1044         * math/Makefile (headers): Add bits/flt-eval-method.h.
1045         * math/math.h: Include <bits/flt-eval-method.h>.
1046         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
1047         [__USE_ISOC99] (double_t): Likewise.
1048         * bits/mathdef.h (float_t): Remove.
1049         (double_t): Likewise.
1050         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
1051         (double_t): Likewise.
1052         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
1053         (double_t): Likewise.
1054         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
1055         (double_t): Likewise.
1056         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
1057         (double_t): Likewise.
1058         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
1059         (double_t): Likewise.
1060         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
1061         (double_t): Likewise.
1062         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
1063         (double_t): Likewise.
1064         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
1065         (double_t): Likewise.
1066         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
1067         (double_t): Likewise.
1068         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
1069         (double_t): Likewise.
1070         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
1071         (double_t): Likewise.
1072         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
1073         (double_t): Likewise.
1074         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
1075         (double_t): Likewise.
1076
1077 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
1078
1079         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
1080         instead of PIC.
1081
1082 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1083
1084         [BZ #20859]
1085         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
1086         (-0x7fffffff) instead of 0x80000001.
1087         * math/test-fp-ilogb-constants.c: New file.
1088         * math/Makefile (tests): Add test-fp-ilogb-constants.
1089
1090 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
1091
1092         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
1093         (_init): Use it in place of hardcoded R_MIPS_JALR.
1094         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
1095         (_init): Use it in place of hardcoded R_MIPS_JALR.
1096         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
1097         (_init): Use it in place of hardcoded R_MIPS_JALR.
1098
1099 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1100
1101         [BZ #20787]
1102         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
1103         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
1104         (double_t): Do not define to double if [__x86_64__] when
1105         __FLT_EVAL_METHOD__ is nonzero.
1106         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
1107         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
1108         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1109         test-flt-eval-method-387 and test-flt-eval-method-sse.
1110         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
1111         variable.
1112         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
1113
1114 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
1115
1116         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
1117         use of -fno-isolate-erroneous-paths options for tilepro.
1118
1119 2016-11-23  Florian Weimer  <fweimer@redhat.com>
1120
1121         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
1122         structure initialization is no longer needed.
1123
1124 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1125
1126         [BZ #20855]
1127         * bits/mathdef.h (float_t): Define to float.
1128         * math/test-flt-eval-method.c: New file.
1129         * math/Makefile (tests): Add test-flt-eval-method.
1130         (CFLAGS-test-flt-eval-method.c): New variable.
1131
1132 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
1133
1134         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
1135         and __fstatfs.  Make them aliases of __fstatfs64 if
1136         STATFS_IS_STATFS64 is set to non-zero.
1137         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
1138         and __statfs64.
1139         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
1140         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
1141         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
1142         for __statfs and statfs.
1143         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
1144         to 0.
1145         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
1146         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
1147         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
1148         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1149         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1150         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
1153         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
1154         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1155         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
1156         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
1157
1158 2016-11-22  Andreas Schwab  <schwab@suse.de>
1159
1160         * misc/mkstemp.c: Include <fcntl.h>.
1161         * misc/mkstemps.c: Likewise.
1162         * misc/mkostemp.c: Likewise.
1163         * misc/mkostemps.c: Likewise.
1164
1165 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
1166
1167         [BZ #20847]
1168         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
1169         array bounds.
1170         (__execvpe): Likewise.
1171
1172 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
1173
1174         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
1175         -fno-isolate-erroneous-paths options for tilepro.
1176
1177 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
1178
1179         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
1180         to 0 when in 32 bit mode.
1181         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
1182         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1183         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1184         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1186         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1187         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
1188         XSTAT_IS_XSTAT64 test.
1189         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
1190         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
1191         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
1192         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
1193         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
1194         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
1195         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
1196         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
1197         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
1198         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
1199         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
1200
1201 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
1202
1203         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1204         (setpayload): New declaration.
1205         * math/Versions (setpayload): New libm symbol at version
1206         GLIBC_2.25.
1207         (setpayloadf): Likewise.
1208         (setpayloadl): Likewise.
1209         * math/Makefile (libm-calls): Add s_setpayloadF.
1210         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
1211         test_Ff_b1_data.
1212         (RUN_TEST_Ff_b1): New macro.
1213         (RUN_TEST_LOOP_Ff_b1): Likewise.
1214         (canonicalize_test_data): Update type.
1215         (setpayload_test_data): New array.
1216         (setpayload_test): New function.
1217         (main): Call setpayload_test.
1218         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
1219         setpayloadf and setpayloadl.
1220         * manual/libm-err-tab.pl: Update comment on interfaces without
1221         ulps tabulated.
1222         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
1223         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
1224         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
1225         Likewise.
1226         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
1227         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
1228         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
1229         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
1230         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
1231         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
1232         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
1233         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
1234         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
1235         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1236         setpayload.
1237         (CFLAGS-nldbl-setpayload.c): New variable.
1238         * sysdeps/nacl/libm.abilist: Update.
1239         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1240         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1241         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1242         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1243         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1244         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1245         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1246         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1247         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1248         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1249         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1250         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1252         Likewise.
1253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1254         Likewise.
1255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1256         Likewise.
1257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1258         Likewise.
1259         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1260         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1261         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1262         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1263         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1264         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1265         Likewise.
1266         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1267         Likewise.
1268         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1269         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1270         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1271
1272 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1273
1274         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
1275         * include/unistd.h: Extend comment about __access_noerrno return
1276         semantics.
1277         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
1278         (access_common): Correct typo for EACCES.
1279
1280 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
1281
1282         * sysdeps/tile/math-tests.h: New file.
1283
1284         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
1285         (__old_set_dataplane): Rename from set_dataplane and make a
1286         compatibility symbol.
1287         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
1288         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
1289         sys/dataplane.h.
1290
1291 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
1292
1293         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
1294         script quote words in command output to log suitably for input to
1295         the shell.
1296
1297 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
1298             Maciej W. Rozycki  <macro@imgtec.com>
1299
1300         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
1301         `.Lno_weak_fn' label.
1302         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
1303         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
1304
1305 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1306             Yury Norov  <ynorov@caviumnetworks.com>
1307
1308         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
1309         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
1310         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1311         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
1312         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1313         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
1314         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1315         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1316         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1317         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
1318         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1319         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
1320         (sysdep_routines): Remove oldgetrlimit64.
1321         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
1322         (sysdep_routines): Likewise.
1323         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
1324         (sysdep_routines): Likewise.
1325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1326         [$(subdir) = resource] (sysdep_routines): Likewise.
1327         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1328         [$(subdir) = resource] (sysdep_routines): Likewise.
1329         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
1330         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
1331         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
1332         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
1333         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
1334         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1335         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1336         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
1337         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
1338         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
1339         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
1340         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
1341         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
1342         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
1343         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
1344         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
1345         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
1346         setrlimit and getrlimit.
1347         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1348         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1349         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
1350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1352         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1353         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1354         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1355         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1356         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
1357         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
1358         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
1359         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
1360         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
1361         (__old_getrlimit64): Add compatibility symbol.
1362         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
1363
1364 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
1365
1366         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
1367         newly built gmp, mpfr and mpc.
1368
1369         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
1370
1371 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * conform/Makefile (linknamespace-libs): Rename to
1374         linknamespace-libs-thr.
1375         (linknamespace-libs-posix): New variable.
1376         (linknamespace-libs-xsi): Likewise.
1377         (linknamespace-libs-XPG3): Include libcrypt.a.
1378         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
1379         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
1380         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
1381         (linknamespace-libs-XOPEN2K): Likewise.
1382         (linknamespace-libs-XOPEN2K8): Likewise.
1383         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
1384
1385         [BZ #20829]
1386         * stdio-common/Versions (__snprintf): Add to version
1387         GLIBC_PRIVATE.
1388         * include/stdio.h (__snprintf): Use libc_hidden_proto.
1389         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
1390         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
1391         of snprintf.
1392         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1393
1394 2016-11-16  Zack Weinberg  <zackw@panix.com>
1395
1396         * string/string.h: Remove obsolete comment stating that
1397         strcoll_l and strxfrm_l have not yet been standardized.
1398
1399 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1400
1401         * hurd/hurd.h (__hurd_fail_noerrno): New function.
1402         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
1403         __access_noerrno.
1404         * io/access.c (__access_noerrno): New function.
1405         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
1406         (hurd_fail_seterrno): Likewise.
1407         (access_common): Likewise.
1408         (__access_noerrno): Likewise.
1409         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
1410         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
1411         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
1412         macro.
1413
1414 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1415
1416         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
1417         Only declare fpregs if [__SH_FPU_ANY__].
1418
1419 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
1420
1421         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
1422         Make code unconditional.
1423         [!(__SH4__ || __SH4A__)]: Remove conditional code.
1424
1425 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
1426
1427         * manual/sysinfo.texi (S_APPEND): Delete.
1428         (S_IMMUTABLE): Likewise.
1429
1430 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
1431             Magnus Granberg  <zorry@gentoo.org>
1432             Mike Frysinger  <vapier@gentoo.org>
1433
1434         [BZ #20662]
1435         * configure.ac (libc_cv_predef_stack_protector): Also check for
1436         __stack_chk_fail_local symbols.
1437         * configure: Regenerated.
1438
1439 2016-11-15  Florian Weimer  <fweimer@redhat.com>
1440
1441         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1442         (libc_hidden_def): Remove redefinition.
1443         (__sigsetjmp): Add hidden definition.
1444         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1445         (libc_hidden_def): Remove redefinition.
1446         (__sigsetjmp): Add hidden definition.
1447
1448 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
1449
1450         * scripts/build-many-glibcs.py (os.path): Do not import.
1451         (Context): Inherit explicitly from object.  Remove blank line
1452         between class and docstring.
1453         (Config): Likewise.
1454         (Glibc): Likewise.
1455         (Command): Likewise.
1456         (CommandList): Likewise.
1457         (Context.write_files): Store chmod mode in a variable.
1458
1459         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
1460         LIBC_SLIBDIR_RTLDDIR for tilegx32.
1461         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
1462
1463 2016-11-14  Zack Weinberg  <zackw@panix.com>
1464
1465         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
1466         creating or re-creating it.
1467
1468         * string/bits/string2.h: Fix typo in comment.
1469
1470 2016-11-14  Zack Weinberg  <zackw@panix.com>
1471
1472         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
1473         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
1474         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
1475         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
1476         of redirected function names.
1477
1478         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
1479         as well.  Document that MESSAGE must be a single string literal.
1480
1481 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
1482
1483         * scripts/build-many-glibcs.py: New file.
1484
1485         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
1486         (do_test): Disable -Wmaybe-uninitialized around uses of
1487         except_mask.
1488
1489         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
1490
1491 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
1492
1493         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
1494         (atomic_store_release): Provide tilepro-specific implementations.
1495
1496 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
1497
1498         * math/math.h (__MATH_TG): New macro.
1499         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
1500         [__USE_ISOC99] (signbit): Likewise.
1501         [__USE_ISOC99] (isfinite): Likewise.
1502         [__USE_ISOC99] (isnan): Likewise.
1503         [__USE_ISOC99] (isinf): Likewise.
1504         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
1505         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
1506         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
1507         __MATH_TG and __MATH_EVAL_FMT2.
1508         * sysdeps/generic/math_private.h (fabs_tg): Define using
1509         __MATH_TG.
1510         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
1511         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
1512         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
1513         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
1514         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
1515         macro.
1516         (__iscanonical): Likewise.
1517         (iscanonical): Define using __MATH_TG.
1518
1519 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1520
1521         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
1522         guards.
1523
1524         * sysdeps/unix/sysv/linux/access.c: New file.
1525         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
1526
1527 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
1528
1529         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
1530         and __WORDSIZE32_PTRDIFF_LONG.
1531
1532 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1533
1534         * sysdeps/aarch64/libm-test-ulps: Regenerated.
1535
1536 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1537
1538         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
1539         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
1540         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
1541         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
1542         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
1543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1544         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
1545         * sysdeps/unix/sysv/linux/truncate.c: New file.
1546         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
1547         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1548         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
1549         Remove.
1550         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
1551         Likewise.
1552
1553         * posix/tst-truncate-common.c: New file.
1554         * posix/tst-truncate.c: Use tst-truncate-common.c.
1555         * posix/tst-truncate64.c: Likewise and add LFS tests.
1556         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
1557         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
1558         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
1559         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
1560         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
1561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1562         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
1563         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
1564         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
1565         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1566         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
1567         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
1568         Remove.
1569         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
1570         Likewise.
1571
1572 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
1573
1574         [BZ #20790]
1575         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
1576         to MAXLINESIZE.
1577         * sunrpc/bug20790.x: New file.
1578         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
1579         variable.
1580         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
1581         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
1582
1583         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
1584
1585         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
1586
1587         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
1588         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
1589         calloc, realloc, free, memalign and __libc_memalign rather than
1590         making them optional.
1591
1592         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
1593         for libc.so.
1594
1595 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1596
1597         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
1598         ptw-lseek64.
1599         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
1600         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
1601         Likewise.
1602         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
1603         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
1604         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
1605         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
1606         * sysdeps/unix/sysv/linux/lseek.c: New file.
1607         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
1608         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
1609         __libc_lseek64 from auto-generation.
1610         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1611         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
1612
1613 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1614
1615         * nptl/tst-basic1.c (tf, do_test): Use write_message.
1616         * nptl/tst-cleanup1.c (do_test): Likewise.
1617         * nptl/tst-cleanup3.c (do_test): Likewise.
1618         * nptl/tst-key1.c (do_test): Likewise.
1619         * nptl/tst-key2.c (tf, do_test): Likewise.
1620         * nptl/tst-key3.c (tf, do_test): Likewise.
1621         * nptl/tst-stdio1.c (do_test): Likewise.
1622         * nptl/tst-stdio2.c (do_test): Likewise.
1623
1624         * nptl/tst-kill3.c (handler): Use write_message in place of write.
1625         * nptl/tst-kill6.c (handler): Likewise.
1626         * nptl/tst-tls2.c (CB): Likewise.
1627         * nptl/tst-tls3.c (CB): Likewise.
1628
1629 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
1630
1631         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
1632
1633 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
1634             Steve Ellcey  <sellcey@caviumnetworks.com>
1635
1636         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
1637           __ASSUME_ST_INO_64_BIT as 0
1638         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
1639         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
1640           over the code where __ASSUME_ST_INO_64_BIT is used.
1641         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1642         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1643         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1644
1645 2016-11-07  Florian Weimer  <fweimer@redhat.com>
1646
1647         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1648         Document ABI exposure of the __kind offset.
1649         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1650         Mention reason for the __kind offset exposure in the ABI.
1651         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1652         Likewise.
1653         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1654         Likewise.
1655         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1656         Likewise.
1657         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
1658         (struct __pthread_mutex_s): Likewise.
1659         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1660         Likewise.
1661         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1662         Likewise.
1663         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1664         Likewise.
1665         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1666         Likewise.
1667         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1668         Likewise.
1669         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1670         Likewise.
1671         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1672         (struct __pthread_mutex_s): Likewise.
1673         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1674         (struct __pthread_mutex_s): Likewise.
1675         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
1676         Likewise.
1677
1678 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
1679
1680         * test-skeleton.c: Document do_test usage.
1681
1682 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
1683
1684         * iconv/gconv.h (__gconv_info): Define __data element using a
1685         zero-length array.
1686
1687 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
1688
1689         * math/test-tgmath2.c: Split up test function.
1690
1691 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1692
1693         * Rules (tests-expected): New variable, depending on
1694         $(run-built-tests).
1695         (tests): Pass $(tests-expected) to merge-test-results.sh, not
1696         $(tests).
1697
1698         * Rules [$(run-built-tests) = no] (tests): Do not depend on
1699         $(tests-unsupported).
1700
1701 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1702
1703         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
1704         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
1705
1706 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1707
1708         [BZ #20768]
1709         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
1710         __fegetenv instead of fegetenv.
1711
1712         [BZ #14139]
1713         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
1714         (find_files): Obtain platform name from libm-test-ulps-name and
1715         store in %pplatforms.
1716         (canonicalize_platform): Remove.
1717         (print_platforms): Use $pplatforms directly.
1718         (by_platforms): Do not allow for platforms missing from
1719         %pplatforms.
1720         * sysdeps/aarch64/libm-test-ulps-name: New file.
1721         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
1722         * sysdeps/arm/libm-test-ulps-name: Likewise.
1723         * sysdeps/generic/libm-test-ulps-name: Likewise.
1724         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
1725         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
1726         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
1727         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
1728         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
1729         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
1730         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
1731         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
1732         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
1733         * sysdeps/nios2/libm-test-ulps-name: Likewise.
1734         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
1735         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
1736         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
1737         * sysdeps/sh/libm-test-ulps-name: Likewise.
1738         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
1739         * sysdeps/tile/libm-test-ulps-name: Likewise.
1740         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
1741
1742         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
1743
1744         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
1745         (test-xfail-check-execstack): New variable.
1746
1747         * sysdeps/mips/localplt.data: New file.
1748
1749 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
1750             Steve Ellcey  <sellcey@caviumnetworks.com>
1751
1752         * bits/wordsize.h: Add documentation.
1753         * sysdeps/aarch64/bits/wordsize.h : New file
1754         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
1755         definitions.
1756         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
1757         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
1758         with #if instead of #ifdef.
1759         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
1760         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
1761         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
1762         Add or change defines.
1763         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
1764         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1765         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
1766         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
1767         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1768         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1769         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
1770         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
1771         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
1772         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1773         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
1774         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
1775         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
1776         * sysdeps/x86/bits/wordsize.h: Likewise.
1777
1778 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
1779             Kevin Petit  <kevin.petit@arm.com>
1780
1781         * sysdeps/aarch64/memchr.S (__memchr): New file.
1782
1783 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1784
1785         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
1786
1787 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
1788
1789         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
1790         $(linknamespace-symlists-tests).
1791
1792 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
1793
1794         * time/tst-strptime2.c: Ignore -Wformat-length warning.
1795
1796 2016-11-02  Florian Weimer  <fweimer@redhat.com>
1797             Carlos O'Donell  <carlos@redhat.com>
1798
1799         [Bug #20729]
1800         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
1801         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
1802         for -Os related change.
1803
1804 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
1805
1806         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
1807
1808 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
1809
1810         [BZ #19673]
1811         * manual/math.texi (Exponents and Logarithms): Correct description
1812         of clog10.
1813
1814 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
1815
1816         [Bz #20729]
1817         * locale/weight.h: Include libc-internal.h.
1818         * locale/weightwc.h: Likewise.
1819         * nptl/nptl_dbP.h: Likewise.
1820
1821 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
1822
1823         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
1824         when it is MACH_PORT_NULL.
1825
1826 2016-10-31  Andreas Schwab  <schwab@suse.de>
1827
1828         [BZ #20707]
1829         * posix/glob.c (glob): Initialize pglob before checking for
1830         GLOB_BRACE.  Don't call glob recursively if pattern contains no
1831         valid brace expression despite GLOB_BRACE.
1832         * posix/globtest.sh: Test it.
1833
1834 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1835
1836         [BZ #20729]
1837         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
1838         Define.
1839         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
1840         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
1841         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
1842         for seq2.back_us and seq1.back_us only for -Os compiles.
1843         * locale/weightwc.h (findix): Likewise.
1844         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
1845         DB_GET_FIELD_ADDRESS only for -Os compiles.
1846         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
1847         for slen only for -Os compiles.
1848         * string/strcoll_l.c (get_next_seq): Ignore
1849         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
1850         for -Os compiles.
1851
1852         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
1853         * include/crypt.h: New file.
1854
1855 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1856
1857         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
1858         from test-skeleton.c.
1859         (statclass): Replace calls to write with calls to write_message.
1860
1861 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1862
1863         * math/math.h
1864         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
1865         New macro.
1866         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
1867         Likewise.
1868         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
1869         Likewise.
1870         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
1871         SNANL.
1872         * math/test-double.h (snan_value_MACRO): New macro.
1873         * math/test-float.h (snan_value_MACRO): Likewise.
1874         * math/test-ldouble.h (snan_value_MACRO): Likewise.
1875         * math/libm-test.inc (issignaling_test_data): Add tests of
1876         snan_value_MACRO.
1877
1878 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1879
1880         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
1881         behavior when eliding a lock not held by the current thread.
1882         * sysdeps/powerpc/nptl/elide.h: Likewise.
1883
1884 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1885
1886         [BZ #20728]
1887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
1888         branch to _exit() by a function call.
1889
1890 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1891
1892         * malloc/malloc.c: Update chunk layout comments.
1893         (chunk_main_arena): Update comment.
1894
1895 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1896
1897         * crypt/sha256.c, crypt/sha256-block.c,
1898         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
1899         sha256_process_block to __sha256_process_block.
1900         * crypt/sha512.c, crypt/sha512-block.c,
1901         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
1902         sha512_process_block to __sha512_process_block.
1903
1904 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1905
1906         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
1907
1908         * math/test-nan-overflow.c: Include stdlib.h for malloc.
1909
1910 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
1911
1912         [BZ #20019]
1913         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
1914         definition in unrelocated shared library.
1915         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1916
1917 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1918
1919         [BZ #20729]
1920         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
1921         * sysdeps/unix/sysv/linux/i386/Makefile
1922         (uses-6-syscall-arguments): Define.
1923         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
1924         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
1925         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
1926         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
1927         Likewise.
1928         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
1929         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
1930         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
1931         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
1932         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
1933         (CFLAGS-fallocate64.os): Likewise.
1934         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
1935         (CFLAGS-pthread_rwlock_timedrdlock.os)
1936         (CFLAGS-pthread_rwlock_timedwrlock.o)
1937         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
1938         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
1939         (CFLAGS-sem_timedwait.os): Likewise.
1940
1941 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1942
1943         * elf/tst-linkall-static.c: New file.
1944         * elf/Makefile (tests-static): Add tst-linkall-static.
1945         (tst-linkall-static): Link against static libraries.
1946
1947 2016-10-27  Florian Weimer  <fweimer@redhat.com>
1948
1949         * malloc/malloc.c (sysmalloc): Initialize previous size field of
1950         mmaped chunks.
1951
1952 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1953
1954         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
1955         members to mchunk_prev_size, mchunk_size.
1956         (chunk_main_arena): Reverse sense and rename from
1957         chunk_non_main_arena.
1958         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
1959         mchunk_size instead of size.
1960         (set_non_main_arena): Define.
1961         (chunksize): Use chunksize_nomask instead of direct member access.
1962         (chunksize_nomask): Define.
1963         (next_chunk): Use chunksize instead of direct member access.
1964         (prev_size, set_prev_size): Define.
1965         (prev_chunk): Use prev_size instead of direct member access.
1966         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
1967         (inuse_bit_at_offset, set_inuse_bit_at_offset)
1968         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
1969         (mchunk_prev_size, mchunk_size): Poison tokens.
1970         (unlink): Use chunksize_nomask, prev_size accessors.
1971         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
1972         (do_check_free_chunk): Use prev_size accessor.
1973         (sysmalloc): Use set_prev_size, set_head accessors.
1974         (munmap_chunk, mremap_chunk): Use prev_size accessor.
1975         (__libc_free): Use chunksize_nomask accessor.
1976         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
1977         chunk_main_arena accessors.
1978         (_int_free): Use chunksize_nomask, prev_size accessors.
1979         (malloc_consolidate): Use chunksize, prev_size accessors.
1980         (_int_realloc): Use chunksize_nomask accessor.
1981         (_int_memalign): Use set_prev_size accessor.
1982         (__malloc_info): Use chunksize_nomask accessor.
1983         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
1984         accessors.
1985         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
1986         (heap_trim): Use chunksize_nomask, prev_size accessors.
1987
1988 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1989
1990         [BZ #19380]
1991         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
1992         for inexact results.
1993         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
1994         of inexact result where mpfr_subnormalize is the only inexact
1995         step.
1996         * stdlib/tst-strtod-round-data.h: Regenerated.
1997         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
1998         Define to 0.
1999         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
2000
2001 2016-10-27  David S. Miller  <davem@davemloft.net>
2002
2003         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
2004
2005 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2006
2007         * malloc/malloc.c (do_set_mallopt_check): New function.
2008         (do_set_mmap_threshold): Likewise.
2009         (do_set_mmaps_max): Likewise.
2010         (do_set_top_pad): Likewise.
2011         (do_set_perturb_byte): Likewise.
2012         (do_set_trim_threshold): Likewise.
2013         (do_set_arena_max): Likewise.
2014         (do_set_arena_test): Likewise.
2015         (__libc_mallopt): Use them.
2016
2017 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
2018
2019         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2020         (canonicalize): New declaration.
2021         * math/Versions (canonicalize): New libm symbol at version
2022         GLIBC_2.25.
2023         (canonicalizef): Likewise.
2024         (canonicalizel): Likewise.
2025         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
2026         * math/s_canonicalize_template.c: New file.
2027         * math/libm-test.inc: Update comment on functions tested and
2028         testing of NaN payloads.
2029         (TEST_NAN_PAYLOAD): New macro.
2030         (NO_TEST_INLINE): Update value.
2031         (XFAIL_TEST): Likewise.
2032         (ERRNO_UNCHANGED): Likewise.
2033         (ERRNO_EDOM): Likewise.
2034         (ERRNO_ERANGE): Likewise.
2035         (IGNORE_RESULT): Likewise.
2036         (NON_FINITE): Likewise.
2037         (TEST_SNAN): Likewise.
2038         (NO_TEST_MATHVEC): Likewise.
2039         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
2040         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
2041         (struct test_Ffp_b1_data): New type.
2042         (RUN_TEST_Ffp_b1): New macro.
2043         (RUN_TEST_LOOP_Ffp_b1): Likewise.
2044         (canonicalize_test_data): New array.
2045         (canonicalize_test): New function.
2046         (main): Call canonicalize_test.
2047         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
2048         canonicalizef and canonicalizel.
2049         * manual/libm-err-tab.pl: Update comment on interfaces without
2050         ulps tabulated.
2051         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
2052         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
2053         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2054         canonicalize.
2055         (CFLAGS-nldbl-canonicalize.c): New variable.
2056         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
2057         to ...
2058         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
2059         ... here.
2060         (do_test): Also test canonicalizel.
2061         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
2062         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
2063         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
2064         file.
2065         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
2066         Use libm_hidden_def.
2067         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
2068         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
2069         (do_test): Also test canonicalizel.
2070         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
2071         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
2072         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
2073         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
2074         libm_hidden_def.
2075         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
2076         macro.
2077         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
2078         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
2079         * sysdeps/nacl/libm.abilist: Update.
2080         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2081         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2082         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2083         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2084         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2085         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2086         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2087         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2088         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2089         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2090         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2091         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2093         Likewise.
2094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2095         Likewise.
2096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2097         Likewise.
2098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2099         Likewise.
2100         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2101         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2102         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2103         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2104         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2106         Likewise.
2107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2108         Likewise.
2109         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2110         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2111         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2112
2113         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
2114         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2115         getpayload.
2116         (CFLAGS-nldbl-getpayload.c): New variable.
2117
2118 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2119
2120         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
2121         integer from the format string.
2122
2123 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2124
2125         [BZ #19473]
2126         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
2127         declarations.
2128         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
2129         weak aliases.
2130         * malloc/hooks.c (__malloc_get_state): Remove definition.
2131         (malloc_get_state): New stub implementation as
2132         compatibility symbol.
2133         (malloc_set_state): Rename from __malloc_set_state.  Turn into
2134         compat symbol.
2135         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
2136         malloc_set_state.
2137         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
2138
2139 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2140
2141         * iconvdata/iso646.c (enum variant): Drop illegal_var.
2142         (names): Turn into concatenation of strings.
2143         (gconv_init): Adapt iteration over names.
2144
2145 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2146
2147         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
2148         make const.
2149         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
2150         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
2151         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
2152         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
2153         character in sbconv.
2154         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
2155         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
2156         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
2157
2158 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2159
2160         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
2161
2162         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
2163         (M_TRIM_THRESHOLD): Likewise.
2164
2165         * manual/memory.texi (M_ARENA_TEST): Add documentation.
2166         (M_ARENA_MAX): Likewise.
2167         * malloc/malloc.c: Remove obsolete comment.
2168
2169         * manual/memory.texi: Add environment variable alternatives to
2170         setting mallopt parameters.
2171
2172 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
2173
2174         * include/atomic.h
2175         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
2176         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
2177
2178 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2179
2180         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
2181         * stdlib/tst-strfrom.h: New file.
2182         * stdlib/tst-strfrom.c: New file.
2183         * stdlib/tst-strfrom-locale.c: New file.
2184
2185         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
2186         * stdlib/bug-strtod2.c: Likewise.
2187         * stdlib/tst-strtod-round-skeleton.c: Likewise.
2188         * stdlib/tst-strtod6.c: Likewise.
2189         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
2190
2191 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2192
2193         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
2194         * manual/arith.texi: Document strfromd, strfromf, strfroml.
2195         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
2196         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
2197         * stdlib/stdlib.h (strfromd): New declaration.
2198         (strfromf): Likewise.
2199         (strfroml): Likewise.
2200         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
2201         strfrom.
2202         * stdlib/strfromd.c: New file.
2203         * stdlib/strfromf.c: Likewise.
2204         * stdlib/strfroml.c: Likewise.
2205         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
2206         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
2207         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
2208         * sysdeps/arm/nacl/libc.abilist: Update.
2209         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
2210         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2211         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2212         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2213         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2214         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2215         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2216         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2217         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2218         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2219         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2220         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2221         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2222         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
2224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2227         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2228         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2229         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2230         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2231         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2232         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2233         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2234         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2235         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2236         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2237
2238 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
2239
2240         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
2241         instead of cmpli.
2242         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
2243         instead of cmpli.
2244
2245 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
2246
2247         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
2248         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2249         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2250         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2251         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2252         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2253
2254 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2255
2256         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
2257         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
2258         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
2259         SYSCALL_LL64_PRW.
2260         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
2261         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
2262         __ASSUME_PRW_DUMMY_ARG.
2263         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
2264         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
2265         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
2266         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
2267         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
2268         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
2269
2270 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
2271
2272         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
2273
2274 2016-10-22  Florian Weimer  <fweimer@redhat.com>
2275
2276         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
2277         "C++", to override a potential extern "C" directive around the
2278         header file inclusion.
2279
2280 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
2281
2282         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
2283
2284 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2285
2286         * sysdeps/powerpc/fpu/fenv_private.h:
2287         (_FPU_MASK_ALL): Rename to...
2288         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
2289         XE FPSCR bits.
2290
2291         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
2292
2293         (_FPU_MASK_ROUNDING): Rename to...
2294         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
2295         NI bits.
2296
2297         (_FPU_MASK_EXCEPT_ROUND): Rename to...
2298         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
2299         bits and rounding bits.
2300
2301         (__libc_feholdbits_ppc): New inline function to mask, set,
2302         and pontentially clear FSPCR bits, and change MSR[FE] bits.
2303         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
2304         (libc_feholdexcept_setround_ppc): Likewise.
2305
2306         (__libc_femergeenv_ppc): New function to dynamically mask both
2307         old and new FP environments and merge.
2308         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
2309         (libc_feresetround_ppc): Likewise.
2310         (libc_feupdateenv_test_ppc): Likewise.
2311         (libc_feupdateenv_ppc): Likewise.
2312
2313         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
2314         of ISA RN bits, and update macro names.
2315         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
2316         effectively the same as the previously mentioned function.
2317
2318         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
2319         usage with fe_resetround_ppc.
2320
2321         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
2322         to be used.
2323         (libc_feholdexcept_setround_ctxf): Likewise.
2324         (libc_feholdexcept_setround_ctxl): Likewise.
2325
2326 2016-10-21  Florian Weimer  <fweimer@redhat.com>
2327
2328         [BZ #20715]
2329         * math/math.h [__cplusplus] (iszero): Define as function template.
2330         * math/Makefile [CXX] (tests): Add test-math-iszero.
2331         (CFLAGS-test-math-iszero.cc): Set.
2332         * math/test-math-iszero.cc: New file.
2333
2334 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
2335
2336         [BZ #20660]
2337         * sysdeps/arm/e_sqrt.c: New file.
2338         * sysdeps/arm/e_sqrtf.c: Likewise.
2339
2340 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
2341
2342         [BZ #20718]
2343         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
2344         not use floating-point comparisons to test sign.
2345         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
2346         Likewise.
2347
2348         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2349         (getpayload): New declaration.
2350         * math/Versions (getpayload): New libm symbol at version
2351         GLIBC_2.25.
2352         (getpayloadf): Likewise.
2353         (getpayloadl): Likewise.
2354         * math/Makefile (libm-calls): Add s_getpayloadF.
2355         * math/libm-test.inc: Include <nan-high-order-bit.h>.
2356         (struct test_f_f_data): Add comment.
2357         (RUN_TEST_fp_f): New macro.
2358         (RUN_TEST_LOOP_fp_f): Likewise.
2359         (getpayload_test_data): New array.
2360         (getpayload_test): New function.
2361         (main): Call getpayload_test.
2362         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
2363         descriptor.
2364         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
2365         getpayloadf and getpayloadl.
2366         * manual/libm-err-tab.pl: Update comment on interfaces without
2367         ulps tabulated.
2368         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
2369         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
2370         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
2371         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
2372         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
2373         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
2374         * sysdeps/nacl/libm.abilist: Update.
2375         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2376         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2377         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2378         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2379         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2380         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2381         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2382         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2383         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2384         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2385         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2386         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2388         Likewise.
2389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2390         Likewise.
2391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2392         Likewise.
2393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2394         Likewise.
2395         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2396         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2397         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2398         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2399         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2400         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2401         Likewise.
2402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2403         Likewise.
2404         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2405         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2406         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2407
2408 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2409
2410         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
2411         tst-fallocate{64}.
2412         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
2413         on syscall return.
2414
2415 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
2416
2417         [BZ #20689]
2418         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
2419         usable.
2420
2421 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
2422
2423         * sysdeps/generic/nan-high-order-bit.h: New file.
2424         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
2425         * sysdeps/mips/nan-high-order-bit.h: Likewise.
2426         * sysdeps/hppa/math_private.h: Remove file.
2427         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
2428         not define here.
2429         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
2430         <nan-high-order-bit.h>.
2431         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2432         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2433         <nan-high-order-bit.h>.
2434         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2435         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2436         <nan-high-order-bit.h>.
2437         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2438         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
2439         <nan-high-order-bit.h>.
2440         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2441         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2442         <nan-high-order-bit.h>.
2443         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2444         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2445         <nan-high-order-bit.h>.
2446         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2447         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
2448         <nan-high-order-bit.h>.
2449         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2450         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2451         <nan-high-order-bit.h>.
2452         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2453         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2454         <nan-high-order-bit.h>.
2455         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2456         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
2457         <nan-high-order-bit.h>.
2458         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2459         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2460         <nan-high-order-bit.h>.
2461         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2462         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2463         <nan-high-order-bit.h>.
2464         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2465         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
2466         <nan-high-order-bit.h>.
2467         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2468         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
2469         <nan-high-order-bit.h>.
2470         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2471         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
2472         <nan-high-order-bit.h>.
2473         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2474         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
2475         <nan-high-order-bit.h>.
2476         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2477         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2478         <nan-high-order-bit.h>.
2479         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2480         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2481         <nan-high-order-bit.h>.
2482         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2483
2484 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2485
2486         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
2487
2488 2016-09-22  John David Anglin  <dave.anglin@bell.net>
2489
2490         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
2491         abort-instr.h.
2492         (EFAULT): Remove conditional define.
2493         (ENOSYS): Likewise.
2494         (atomic_compare_and_exchange_val_acq): Use instruction nullification
2495         instead of conditional branch instructions.
2496
2497 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
2498
2499         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2500         (totalordermag): New declaration.
2501         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
2502         New macro.
2503         * math/Versions (totalordermag): New libm symbol at version
2504         GLIBC_2.25.
2505         (totalordermagf): Likewise.
2506         (totalordermagl): Likewise.
2507         * math/Makefile (libm-calls): Add s_totalordermagF.
2508         * math/libm-test.inc (totalordermag_test_data): New array.
2509         (totalordermag_test): New function.
2510         (main): Call totalordermag_test.
2511         * math/test-tgmath.c (NCALLS): Increase to 125.
2512         (F(compile_test)): Call totalordermag.
2513         (F(totalordermag)): New function.
2514         * manual/arith.texi (FP Comparison Functions): Document
2515         totalordermag, totalordermagf and totalordermagl.
2516         * manual/libm-err-tab.pl: Update comment on interfaces without
2517         ulps tabulated.
2518         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
2519         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
2520         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
2521         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
2522         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
2523         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
2524         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
2525         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2526         totalordermag.
2527         (CFLAGS-nldbl-totalordermag.c): New variable.
2528         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
2529         (do_test): Also test totalordermagl.
2530         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
2531         Likewise.
2532         * sysdeps/nacl/libm.abilist: Update.
2533         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2534         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2535         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2536         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2537         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2538         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2539         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2540         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2541         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2542         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2543         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2544         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2546         Likewise.
2547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2548         Likewise.
2549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2550         Likewise.
2551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2552         Likewise.
2553         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2554         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2555         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2556         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2557         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2559         Likewise.
2560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2561         Likewise.
2562         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2563         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2564         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2565
2566 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
2567
2568         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
2569         boolean.
2570
2571 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
2572
2573         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
2574         raising FE_INVALID with feraisexcept in case where part of
2575         argument is infinite, subtract that part of argument from itself.
2576         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
2577         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
2578         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2579
2580 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2581
2582         * math/libm-test.inc (totalorder_test_data): Add more tests.
2583
2584 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
2585
2586         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
2587         Undefine weak_alias and add a comment why mips64 require
2588         versioning.
2589
2590 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2591
2592         [BZ #20647]
2593         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
2594         maximum CPUID level is less than 2.
2595
2596 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2597
2598         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2599         (totalorder): New declaration.
2600         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
2601         New macro.
2602         * math/Versions (totalorder): New libm symbol at version
2603         GLIBC_2.25.
2604         (totalorderf): Likewise.
2605         (totalorderl): Likewise.
2606         * math/Makefile (libm-calls): Add s_totalorderF.
2607         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
2608         string.
2609         * math/libm-test.inc (PAYLOAD_DIG): New macro.
2610         (qnan_value_pl): Likewise.
2611         (snan_value_pl): Likewise.
2612         (qnan_value): Define using qnan_value_pl.
2613         (snan_value): Define using snan_value_pl.
2614         (struct test_ff_i_data): Add comment about which tests use this
2615         structure.
2616         (RUN_TEST_ff_b): New macro.
2617         (RUN_TEST_LOOP_ff_b): Likewise.
2618         (totalorder_test_data): New array.
2619         (totalorder_test): New function.
2620         (main): Call totalorder_test.
2621         * math/test-tgmath.c (NCALLS): Increase to 122.
2622         (F(compile_test)): Call totalorder.
2623         (F(totalorder)): New function.
2624         * manual/arith.texi (FP Comparison Functions): Document
2625         totalorder, totalorderf and totalorderl.
2626         * manual/libm-err-tab.pl: Update comment on interfaces without
2627         ulps tabulated.
2628         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
2629         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
2630         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
2631         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
2632         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
2633         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
2634         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
2635         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2636         totalorder.
2637         (CFLAGS-nldbl-totalorder.c): New variable.
2638         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
2639         file.
2640         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
2641         Add test-totalorderl-ldbl-128ibm.
2642         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
2643         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
2644         test-totalorderl-ldbl-96.
2645         * sysdeps/nacl/libm.abilist: Update.
2646         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2647         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2648         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2649         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2650         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2651         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2652         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2653         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2654         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2655         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2656         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2657         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2659         Likewise.
2660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2661         Likewise.
2662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2663         Likewise.
2664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2665         Likewise.
2666         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2667         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2668         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2669         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2670         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2671         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2672         Likewise.
2673         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2674         Likewise.
2675         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2676         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2677         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2678
2679 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2680
2681         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
2682         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
2683         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
2684         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
2685         remove ENOSYS implementation.
2686         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
2687         Consolidate all Linux implementations.
2688
2689 2016-10-11  Florian Weimer  <fweimer@redhat.com>
2690
2691         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
2692         * resolv/herror.c (herror): Cast away const-ness.
2693         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
2694         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
2695
2696 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
2697
2698         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
2699         instead of M_NAN + M_NAN.
2700         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2701
2702 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2703
2704         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
2705         unused variable 'p'.
2706
2707 2016-10-09  Alan Modra  <amodra@gmail.com>
2708             Andreas Schwab  <schwab@linux-m68k.org>
2709
2710         [BZ #20554]
2711         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
2712         [PIC && !SHARED]: Set up PIC register for PLT call.
2713
2714 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
2715
2716         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
2717         conditional on value of [__FLT_EVAL_METHOD__].
2718         * math/test-iseqsig-excess-precision.c: New file.
2719         * math/Makefile (tests): Add test-iseqsig-excess-precision.
2720
2721 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2722
2723         * math/s_iseqsig_template.c: Include math-private.h.
2724
2725         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
2726         * posix/tst-posix_fadvise.c: New file.
2727         * posix/tst-posix_fadvise64.c: Likewise.
2728         * posix/tst-posix_fadvise-common.c: Likewise.
2729         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2730         (__ASSUME_FADVISE64_64_6ARG): Define.
2731         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2732         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
2733         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2734         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
2735         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
2736         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
2737         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2738         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
2739         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
2740         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
2741         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
2742         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
2743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
2744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
2745         Likewise.
2746         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
2747         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
2748         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
2749         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2750         Alias to __posix_fadvise64_l32.
2751         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
2752         Add compat definition to posix_fadvise64.
2753         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2754         Add versioned definition to posix_fadvise64.
2755         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
2756         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
2757         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
2758         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
2759         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
2760
2761         * io/Makefile (tests): Add tst-posix_fallocate and
2762         tst-posix_fallocate64.
2763         * io/tst-posix_fallocate-common.c: New file.
2764         * io/tst-posix_fallocate.c: Likewise.
2765         * io/tst-posix_fallocate64.c: Likewise.
2766         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
2767         file.
2768         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
2769         Likewise.
2770         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
2771         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
2772         Likewise.
2773         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
2774         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
2775         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
2776         SYSCALL_LL to pass both offset and len arguments.
2777         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
2778         Likewise.
2779         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
2780         __libc_pwrite64 alias used by posix_fallocate64.
2781
2782         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2783         tst-fallocate64.
2784         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2785         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2786         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2787         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2788         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2789         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2790         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2791         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2792         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2793         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2794         macro on offset argument.
2795         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2796         SYSCALL_LL64 on offset argument.
2797
2798         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2799         tst-fallocate64.
2800         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2801         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2802         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2803         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2804         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2805         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2806         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2807         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2808         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2809         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2810         macro on offset argument.
2811         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2812         SYSCALL_LL64 on offset argument.
2813         * test-skeleton.c (FAIL_RET): Add macro.
2814         (FAIL_EXIT): Likewise.
2815         (FAIL_EXIT1): Likewise.
2816         (_FAIL): Likewise.
2817
2818 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2819
2820         [BZ #20629]
2821         resolv: Remove RES_USEBSTRING and its implementation.
2822         * resolv/resolv.h (RES_USEBSTRING): Remove.
2823         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
2824         (digitvalue, encode_bitstring, decode_bitstring): Remove.
2825         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
2826         (labellen): Remove extended label types support.
2827         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
2828         * resolv/res_init.c (res_setoptions): Likewise.
2829         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2830
2831 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2832
2833         resolv: Remove RES_NOIP6DOTINT and its implementation.
2834         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
2835         (RES_NOIP6DOTINT): Remove.
2836         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
2837         handling.
2838         * resolv/res_debug.c (p_option): Likewise.
2839         * resolv/res_init.c (res_setoptions): Likewise.
2840         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2841
2842 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2843
2844         resolv: Deprecate unimplemented flags.
2845         * misc/sys/cdefs.h (__glibc_macro_warning1)
2846         (__glibc_macro_warning): Define.
2847         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
2848         (RES_KEEPTSIG): Mark as deprecated.
2849         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
2850         RES_NOCHECKNAME, RES_KEEPTSIG.
2851         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
2852
2853 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2854
2855         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
2856         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
2857         Use strong_alias to create symbols for glibc verison 2.19.
2858
2859 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2860
2861         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
2862
2863 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2864
2865         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
2866
2867 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2868
2869         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
2870
2871 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2872
2873         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2874         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
2875         in header for using it as type for ifunc function because __GI_* symbols
2876         for ppc32 do not target the ifunc symbols.
2877         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
2878
2879 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2880
2881         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
2882         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
2883         libc_ifunc_hidden_def.
2884         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
2885         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
2886         Redirect ifunced function in header for using it as type of ifunc'ed
2887         function. Redefine libc_hidden_def to use fallback non ifunc'ed
2888         function for __GI_* symbol.
2889         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
2890         * include/libc-symbols.h
2891         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
2892
2893 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2894
2895         [BZ #20478]
2896         * sysdeps/s390/multiarch/ifunc-resolve.h
2897         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
2898         to create ifunc symbols.
2899         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
2900         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
2901         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
2902         for using it as type for ifunc function.
2903         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2904         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
2905         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
2906         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
2907         * sysdeps/s390/multiarch/strcat.c: Likewise.
2908         * sysdeps/s390/multiarch/strchr.c: Likewise.
2909         * sysdeps/s390/multiarch/strcmp.c: Likewise.
2910         * sysdeps/s390/multiarch/strcpy.c: Likewise.
2911         * sysdeps/s390/multiarch/strcspn.c: Likewise.
2912         * sysdeps/s390/multiarch/strlen.c: Likewise.
2913         * sysdeps/s390/multiarch/strncmp.c: Likewise.
2914         * sysdeps/s390/multiarch/strncpy.c: Likewise.
2915         * sysdeps/s390/multiarch/strnlen.c: Likewise.
2916         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
2917         * sysdeps/s390/multiarch/strrchr.c: Likewise.
2918         * sysdeps/s390/multiarch/strspn.c: Likewise.
2919         * sysdeps/s390/multiarch/wcschr.c: Likewise.
2920         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
2921         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
2922         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
2923         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
2924         * sysdeps/s390/multiarch/wmemset.c: Likewise.
2925         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
2926         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
2927         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
2928         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
2929         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
2930         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
2931
2932 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2933
2934         * include/libc-symbols.h (__ifunc_resolver):
2935         New macro is used by __ifunc* macros.
2936         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
2937         depending on HAVE_GCC_IFUNC.
2938         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
2939         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
2940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
2941         Redirect ifunced function in header for using as type for ifunc function.
2942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2946         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
2947         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
2948         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
2949         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
2950         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
2951         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
2952         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
2953         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
2954         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
2955         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
2956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2957         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2959         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2961         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
2962         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
2963         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
2964         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
2965         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
2966         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
2967         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
2968         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
2969         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
2970         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
2971         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
2972         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
2973         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
2974         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
2976         Add libc_hidden_def() and use libc_ifunc_hidden() macro
2977         instead of libc_ifunc() macro.
2978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2979         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
2980
2981 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2982
2983         * config.h.in (HAVE_GCC_IFUNC): New undef.
2984         * configure.ac: Add check if gcc supports attribute ifunc feature.
2985         * configure: Regenerated.
2986         * manual/install.texi: Add recommendation for gcc with
2987         indirect-function support.
2988         * INSTALL: Regenerated.
2989
2990 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
2991
2992         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
2993         macro.
2994         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2995         (__iseqsig): New declaration.
2996         * math/s_iseqsig_template.c: New file.
2997         * math/Versions (__iseqsigf): New libm symbol at version
2998         GLIBC_2.25.
2999         (__iseqsig): Likewise.
3000         (__iseqsigl): Likewise.
3001         * math/libm-test.inc (iseqsig_test_data): New array.
3002         (iseqsig_test): New function.
3003         (main): Call iseqsig_test.
3004         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
3005         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
3006         * manual/libm-err-tab.pl: Update comment on interfaces without
3007         ulps tabulated.
3008         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
3009         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
3010         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
3011         * sysdeps/nacl/libm.abilist: Update.
3012         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3013         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3014         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3015         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3016         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3017         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3018         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3019         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3020         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3021         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3022         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3023         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3025         Likewise.
3026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3027         Likewise.
3028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3029         Likewise.
3030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3031         Likewise.
3032         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3033         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3034         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3035         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3036         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3037         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3038         Likewise.
3039         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3040         Likewise.
3041         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3042         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3043         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3044
3045 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3046
3047         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
3048         do_sincos_2, sloww, sloww1): Update comments.
3049
3050         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
3051         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
3052
3053         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
3054         K boolean and rename it.
3055         (__sin): Adjust.
3056         (__cos): Adjust.
3057
3058 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3059             Siddhesh Poyarekar  <siddhesh@sourceware.org>
3060
3061         * manual/nss.texi: Fix typos in the manual.
3062
3063 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3064
3065         * manual/contrib.texi: Fix typos in the manual.
3066
3067         * manual/maint.texi: Fix typos in the manual.
3068
3069         * manual/install.texi: Fix typos in the manual.
3070         * INSTALL: Regenerated.
3071
3072         * manual/lang.texi: Fix typos in the manual.
3073
3074         * manual/probes.texi: Fix typos in the manual.
3075
3076         * manual/threads.texi: Fix typos in the manual.
3077
3078         * manual/debug.texi: Fix typos in the manual.
3079
3080         * manual/crypt.texi: Fix typos in the manual.
3081
3082         * manual/conf.texi: Fix typos in the manual.
3083
3084         * manual/sysinfo.texi: Fix typos in the manual.
3085
3086         * manual/users.texi: Fix typos in the manual.
3087
3088         * manual/job.texi: Fix typos in the manual.
3089
3090         * manual/process.texi: Fix typos in the manual.
3091
3092         * manual/argp.texi: Fix typos in the manual.
3093         * manual/getopt.texi: Likewise.
3094         * manual/startup.texi: Likewise.
3095
3096         * manual/signal.texi: Fix typos in the manual.
3097
3098         * manual/setjmp.texi: Fix typos in the manual.
3099
3100         * manual/resource.texi: Fix typos in the manual.
3101
3102         * manual/time.texi: Fix typos in the manual.
3103
3104         * manual/arith.texi: Fix typos in the manual.
3105
3106         * manual/math.texi: Fix typos in the manual.
3107
3108         * manual/syslog.texi: Fix typos in the manual.
3109
3110         * manual/terminal.texi: Fix typos in the manual.
3111
3112         * manual/socket.texi: Fix typos in the manual.
3113
3114         * manual/filesys.texi: Fix typos in the manual.
3115
3116         * manual/llio.texi: Fix typos in the manual.
3117
3118         * manual/stdio.text: Fix typos in the manual.
3119
3120 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3121
3122         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
3123         instead of K1.
3124
3125         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
3126         SHIFT_QUADRANT and make it bool.
3127         (do_sincos_2): Likewise.
3128         (sloww): Likewise.
3129         (sloww1): Likewise.
3130         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
3131         (__cos): Likewise.
3132
3133 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3134
3135         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3136
3137 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
3138
3139         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
3140         Define to __WORDSIZE, not conditional on [LONG_MAX ==
3141         0x7fffffffL].
3142         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3143
3144 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3145
3146         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
3147         inline by __inline__.
3148         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
3149         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
3150         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
3151         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
3152         sigset_t from signal.h.
3153         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
3154         which is already required.
3155
3156 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
3157
3158         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3159
3160 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
3161
3162         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
3163         (struct tcp_repair_window): New type.
3164
3165 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3166
3167         * libio/tst-memstream3.c: Include string.h.
3168
3169 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3170
3171         [BZ #18241]
3172         [BZ #20181]
3173         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
3174         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
3175         write position is at the end the buffer.
3176         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
3177         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
3178         (_IO_str_seekoff): Set correct offset from negative displacement and
3179         set EINVAL for invalid ones.
3180         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
3181         buffer length.
3182         (_IO_wstr_switch_to_get_mode): New function.
3183         (_IO_wstr_seekoff): Set correct offset from negative displacement and
3184         set EINVAL for invalid ones.
3185         * libio/tst-memstream3.c: New file.
3186         * libio/tst-wmemstream3.c: Likewise.
3187         * manual/examples/memstrm.c: Remove warning when priting size_t.
3188
3189 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3190
3191         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
3192         macro to use __builtin_fma.
3193         * sysdeps/x86_64/fpu/dla.h: Remove file.
3194
3195         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
3196         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
3197         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
3198
3199 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
3200
3201         [BZ #20292]
3202         * elf/Makefile (routines): Add dl-addr-obj.
3203         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
3204         tst-_dl_addr_inside_object.
3205         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
3206         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3207         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
3208         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3209         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
3210         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
3211         * elf/dl-open.c: Likewise.
3212         * elf/dl-addr-obj.c: New file.
3213         * elf/tst-_dl_addr_inside_object.c: New file.
3214
3215 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
3218         <bits/iscanonical.h>.
3219         * bits/iscanonical.h: New file.
3220         * math/s_iscanonicall.c: Likewise.
3221         * math/Versions (__iscanonicall): New libm symbol at version
3222         GLIBC_2.25.
3223         * math/libm-test.inc (iscanonical_test_data): New array.
3224         (iscanonical_test): New function.
3225         (main): Call iscanonical_test.
3226         * math/Makefile (headers): Add bits/iscanonical.h.
3227         (type-ldouble-routines): Add s_iscanonicall.
3228         * manual/arith.texi (Floating Point Classes): Document
3229         iscanonical.
3230         * manual/libm-err-tab.pl: Update comment on interfaces without
3231         ulps tabulated.
3232         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
3233         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
3234         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
3235         Likewise.
3236         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
3237         test-iscanonical-ldbl-128ibm.
3238         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
3239         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
3240         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
3241         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
3242         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3243         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3244         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3246         Likewise.
3247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3248         Likewise.
3249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3250         Likewise.
3251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3252         Likewise.
3253         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3254         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3255
3256 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3257
3258         * string/bits/string3.h: Remove C++ style comments.
3259
3260 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3261
3262         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
3263         instead of ternary condition.
3264         (do_sincos_2): Likewise.
3265         (__sin): Likewise.
3266         (__cos): Likewise.
3267         (slow): Likewise.
3268         (sloww): Likewise.
3269         (sloww1): Likewise.
3270         (bsloww): Likewise.
3271         (bsloww1): Likewise.
3272
3273         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
3274         instead of ternary condition.
3275         (do_sin_slow): Likewise.
3276         (do_sincos_1): Likewise.
3277         (do_sincos_2): Likewise.
3278         (__cos): Likewise.
3279         (sloww): Likewise.
3280         (sloww1): Likewise.
3281         (sloww2): Likewise.
3282         (bsloww): Likewise.
3283         (bsloww1): Likewise.
3284         (bsloww2): Likewise.
3285
3286         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
3287         check from here...
3288         (slow2): ... and here...
3289         (__sin): ... to here.
3290
3291 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
3292
3293         * math/math.h
3294         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
3295         Cast argument to its own type.
3296         * math/test-iszero-excess-precision.c: New file.
3297         * math/Makefile (tests): Add test-iszero-excess-precision.
3298         (CFLAGS-test-iszero-excess-precision.c): New variable.
3299
3300 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3301
3302         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
3303         field, add err field.
3304         (__spawni_child): Report error through err member instead of pipe.
3305         (__spawnix): Likewise.
3306
3307 2016-09-28  Zack Weinberg  <zackw@panix.com>
3308
3309         * scripts/check-installed-headers.sh: Generalize treatment of
3310         sys/elf.h to all target architectures.
3311
3312         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
3313         deleted typedef ucontext_t.
3314
3315 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3316
3317         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
3318         (__INTERNAL_SYSCALL1): Likewise.
3319         (__INTERNAL_SYSCALL2): Likewise.
3320         (__INTERNAL_SYSCALL3): Likewise.
3321         (__INTERNAL_SYSCALL4): Likewise.
3322         (__INTERNAL_SYSCALL5): Likewise.
3323         (__INTERNAL_SYSCALL6): Likewise.
3324         (__INTERNAL_SYSCALL7): Likewise.
3325         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
3326         (__INTERNAL_SYSCALL_NARGS): Likewise.
3327         (__INTERNAL_SYSCALL_DISP): Likewise.
3328         (INTERNAL_SYSCALL_CALL): Likewise.
3329         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
3330         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
3331         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
3332         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
3333         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
3334         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
3335         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
3336         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
3337         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
3338         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
3339         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
3340         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
3341         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
3342
3343 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
3344
3345         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
3346         macro.
3347         * math/libm-test.inc (iszero_test_data): New array.
3348         (iszero_test): New function.
3349         (main): Call iszero_test.
3350         * manual/arith.texi (Floating Point Classes): Document iszero.
3351         * manual/libm-err-tab.pl: Update comment on interfaces without
3352         ulps tabulated.
3353
3354 2016-09-23  Zack Weinberg  <zackw@panix.com>
3355
3356         * scripts/check-installed-headers.sh: New script.
3357         * Rules: In each directory that defines header files to be installed,
3358         run check-installed-headers.sh on them as a special test.
3359         * Makefile: Likewise for the headers installed at top level.
3360
3361         * include/aliases.h, include/alloca.h, include/argz.h
3362         * include/arpa/nameser.h, include/arpa/nameser_compat.h
3363         * include/elf.h, include/envz.h, include/err.h
3364         * include/execinfo.h, include/fpu_control.h, include/getopt.h
3365         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
3366         * include/link.h, include/malloc.h, include/mcheck.h
3367         * include/mntent.h, include/netinet/ether.h
3368         * include/nss.h, include/obstack.h, include/printf.h
3369         * include/pty.h, include/resolv.h, include/rpc/auth.h
3370         * include/rpc/auth_des.h, include/rpc/auth_unix.h
3371         * include/rpc/clnt.h, include/rpc/des_crypt.h
3372         * include/rpc/key_prot.h, include/rpc/netdb.h
3373         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
3374         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
3375         * include/rpc/rpc_msg.h, include/rpc/svc.h
3376         * include/rpc/svc_auth.h, include/rpc/xdr.h
3377         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
3378         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
3379         * include/rpcsvc/ypupd.h, include/shadow.h
3380         * include/stdio_ext.h, include/sys/epoll.h
3381         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
3382         * include/sys/prctl.h, include/sys/profil.h
3383         * include/sys/statfs.h, include/sys/sysctl.h
3384         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
3385         * sysdeps/arm/nacl/include/bits/setjmp.h
3386         * sysdeps/mips/include/sys/asm.h
3387         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
3388         * sysdeps/unix/sysv/linux/include/sys/timex.h
3389         * sysdeps/x86/fpu/include/bits/fenv.h:
3390         Add #ifndef _ISOMAC guard around internal declarations.
3391         Add multiple-inclusion guard if not already present.
3392
3393 2016-09-23  Zack Weinberg  <zackw@panix.com>
3394
3395         * sysdeps/generic/sys/ucontext.h
3396         * sysdeps/arm/sys/ucontext.h
3397         * sysdeps/i386/sys/ucontext.h
3398         * sysdeps/m68k/sys/ucontext.h
3399         * sysdeps/mips/sys/ucontext.h
3400         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
3401         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
3402         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
3403         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
3404         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
3405         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
3406         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3407         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
3408         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
3409         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
3410         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
3411         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
3412         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
3413         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
3414         Include both bits/sigcontext.h and bits/sigstack.h.
3415         Fix grammar error in comment, if present.
3416
3417         * bits/sigstack.h
3418         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
3419         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
3420         * sysdeps/unix/sysv/linux/bits/sigstack.h
3421         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
3422         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
3423         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
3424         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
3425         * bits/sigcontext.h
3426         * sysdeps/mach/hurd/i386/bits/sigcontext.h
3427         * sysdeps/unix/sysv/linux/bits/sigcontext.h
3428         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
3429         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
3430         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
3431         as well as signal.h, if this was not already allowed.  Request
3432         definition of size_t if necessary.  Minimize semantically-null
3433         differences across files.
3434
3435 2016-09-23  Zack Weinberg  <zackw@panix.com>
3436
3437         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
3438         Remove all logic conditional on __need macros.  Move all the
3439         conditionally defined types to their own headers...
3440         * time/bits/types/clock_t.h: Define clock_t here.
3441         * time/bits/types/clockid_t.h: Define clockid_t here.
3442         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
3443         * time/bits/types/struct_timespec.h: Define struct timespec here.
3444         * time/bits/types/struct_timeval.h: Define struct timeval here.
3445         * time/bits/types/struct_tm.h: Define struct tm here.
3446         * time/bits/types/time_t.h: Define time_t here.
3447         * time/bits/types/timer_t.h: Define timer_t here.
3448         * time/Makefile: Install the new headers.
3449
3450         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
3451         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
3452         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
3453         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
3454         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
3455         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
3456         * sysdeps/unix/sysv/linux/bits/resource.h
3457         * sysdeps/unix/sysv/linux/bits/timex.h
3458         * sysdeps/unix/sysv/linux/mips/bits/resource.h
3459         * sysdeps/unix/sysv/linux/net/ppp_defs.h
3460         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
3461         * sysdeps/unix/sysv/linux/sys/acct.h
3462         * sysdeps/unix/sysv/linux/sys/timerfd.h
3463         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
3464         * time/sys/time.h, time/sys/timeb.h
3465         Use the new bits/types headers.
3466
3467         * include/time.h: Remove __need logic.
3468         * include/bits/time.h
3469         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
3470         * include/bits/types/time_t.h, include/bits/types/timer_t.h
3471         * include/bits/types/struct_itimerspec.h
3472         * include/bits/types/struct_timespec.h
3473         * include/bits/types/struct_timeval.h
3474         * include/bits/types/struct_tm.h:
3475         New wrapper headers.
3476
3477 2016-09-23  Zack Weinberg  <zackw@panix.com>
3478
3479         * sysdeps/mach/hurd/net/if_ppp.h
3480         * sysdeps/unix/sysv/linux/net/if_ppp.h:
3481         Only define struct ifpppstatsreq and struct ifpppcstatsreq
3482         if __USE_MISC is defined, to ensure struct ifreq is declared.
3483
3484         * inet/netinet/ether.h: Condition all function prototypes
3485         on __USE_MISC, to ensure struct ether_addr is declared.
3486
3487         * socket/bits/types/struct_osockaddr.h: New header.
3488         * include/bits/types/struct_osockaddr.h: New wrapper.
3489         * socket/Makefile: Install the new header.
3490         * socket/sys/socket.h, inet/protocols/talkd.h:
3491         Refer to bits/types/struct_osockaddr.h for the definition of
3492         struct osockaddr.
3493
3494 2016-09-23  Zack Weinberg  <zackw@panix.com>
3495
3496         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
3497         * inet/protocols/routed.h, inet/protocols/talkd.h
3498         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
3499         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
3500         * sysdeps/generic/netinet/if_ether.h
3501         * sysdeps/generic/netinet/in_systm.h
3502         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
3503         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3504         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
3505         * sysdeps/mach/hurd/net/if_arp.h
3506         * sysdeps/mach/hurd/net/if_ppp.h
3507         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
3508         * sysdeps/unix/sysv/linux/bits/in.h
3509         * sysdeps/unix/sysv/linux/net/ethernet.h
3510         * sysdeps/unix/sysv/linux/net/if_arp.h
3511         * sysdeps/unix/sysv/linux/net/if_ppp.h
3512         * sysdeps/unix/sysv/linux/net/if_shaper.h
3513         * sysdeps/unix/sysv/linux/net/route.h
3514         * sysdeps/unix/sysv/linux/netinet/if_ether.h
3515         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3516         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3517         * sysdeps/unix/sysv/linux/netipx/ipx.h
3518         * sysdeps/unix/sysv/linux/sys/acct.h
3519         * include/arpa/nameser.h, include/resolv.h:
3520         Change all uses of u_char to unsigned char,
3521         u_short and ushort to unsigned short, u_int and uint to unsigned int,
3522         u_long and ulong to unsigned long, u_int8_t to uint8_t,
3523         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
3524         and u_int64_t and u_quad_t to uint64_t.
3525
3526         * mach/sys/reboot.h: Remove two casts of integer literals
3527         to the types they already have.
3528
3529         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
3530         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3531         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
3532         from referring to 'unsigned char' to 'uint8_t' for consistency with
3533         the macro definition below.
3534
3535         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
3536         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
3537         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
3538         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
3539         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
3540         * sysdeps/unix/sysv/linux/sys/acct.h
3541         * include/arpa/nameser.h, include/resolv.h:
3542         Fix indentation disrupted by mechanical edits.
3543
3544         * inet/protocols/talkd.h, resolv/arpa/nameser.h
3545         * sysdeps/generic/netinet/in_systm.h
3546         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3547         * sysdeps/gnu/netinet/udp.h
3548         * sysdeps/unix/sysv/linux/net/ethernet.h
3549         * sysdeps/unix/sysv/linux/net/if_arp.h
3550         * sysdeps/unix/sysv/linux/net/if_ppp.h
3551         * sysdeps/unix/sysv/linux/net/if_shaper.h
3552         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3553         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3554         * sysdeps/unix/sysv/linux/netipx/ipx.h
3555         * sysdeps/unix/sysv/linux/sys/acct.h
3556         Include stdint.h for uintNN_t definitions.
3557         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
3558
3559 2016-09-23  Zack Weinberg  <zackw@panix.com>
3560
3561         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
3562         * sysdeps/unix/sysv/linux/netrose/rose.h:
3563         Include sys/socket.h and netax25/ax25.h.
3564
3565         * inet/netinet/icmp6.h, inet/netinet/ip6.h
3566         * resolv/arpa/nameser_compat.h:
3567         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
3568
3569         * sysdeps/unix/sysv/linux/sys/quota.h:
3570         Use __caddr_t instead of caddr_t.
3571         * sysdeps/unix/sysv/linux/sys/timerfd.h:
3572         Use __clockid_t instead of clockid_t.
3573
3574         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
3575
3576         * argp/argp.h: Check whether _LIBC is defined before expanding it.
3577         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
3578         expanding it.
3579
3580         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
3581         Define __glibc_c99_flexarr_available to 1 when the compiler
3582         supports C99-compatible flexible array members, 0 otherwise.
3583         * sysdeps/unix/sysv/linux/bits/socket.h
3584         * sysdeps/mach/hurd/bits/socket.h
3585         * bits/socket.h: Use __glibc_c99_flexarr_available in
3586         definitions of struct cmsghdr and CMSG_DATA.
3587
3588 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3589
3590         * manual/nss.texi (NSS Modules Interface): Adjust function return
3591         type to enum nss_status.  Document errnop argument.  Clarify
3592         h_errnop semantics.  Fix cross-reference formatting.
3593         (NSS Module Function Internals): Mention that *errnop needs to be
3594         set on failure, but not to zero.
3595
3596 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3597
3598         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
3599         (get_random_name): New functions.
3600         (check_wrapper_flags_mode): Use linkat to give the new file a name
3601         determined by get_random_name.
3602         (do_test): Add calls to test open64 and openat64.
3603
3604 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3605
3606         * test-skeleton.c: Remove #include <stdarg.h>.
3607
3608 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
3609
3610         [BZ #19826]
3611         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
3612         initialization of static TLS entries.
3613         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
3614         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3615
3616 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3617
3618         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
3619         _hurd_malloc_fork_prepare.
3620         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
3621         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
3622         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
3623         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
3624         (_hurd_fork_child_hook): Drop malloc_fork_child.
3625         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
3626         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
3627         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
3628         after locking locks (notably hurd_dtable_lock). Call
3629         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
3630         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
3631         __malloc_fork_unlock_child.
3632         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
3633
3634 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
3635
3636         * soft-fp/extendhftf2.c: New.
3637         * soft-fp/fixhfti.c: Likewise.
3638         * soft-fp/fixunshfti.c: Likewise.
3639         * soft-fp/floattihf.c: Likewise.
3640         * soft-fp/floatuntihf.c: Likewise.
3641         * soft-fp/half.h: Likewise.
3642         * soft-fp/trunctfhf2.c: Likewise.
3643
3644 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
3645
3646         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
3647         macro.
3648         * math/libm-test.inc (issubnormal_test_data): New array.
3649         (issubnormal_test): New function.
3650         * manual/arith.texi (Floating Point Classes): Document
3651         issubnormal.
3652         * manual/libm-err-tab.pl: Update comment on interfaces without
3653         ulps tabulated.
3654
3655         * sysdeps/generic/stdint.h: Define
3656         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3657         <bits/libc-header-start.h> instead of including <features.h>.
3658         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
3659         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
3660         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
3661         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
3662         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
3663         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
3664         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
3665         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
3666         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
3667         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
3668         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
3669         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
3670         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
3671         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
3672         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
3673         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
3674         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
3675         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
3676         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
3677         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
3678         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
3679         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
3680         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
3681         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
3682         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
3683         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
3684         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
3685         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
3686         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
3687         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
3688         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
3689         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
3690         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
3691         * manual/arith.texi (Integers): Document these macros for types
3692         specified by width properties.
3693         * manual/lang.texi (Width of Type): Document these macros for
3694         other standard typedefs.
3695         * stdlib/tst-width-stdint.c: New file.
3696         * stdlib/Makefile (tests): Add tst-width-stdint.
3697
3698 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3699
3700         [BZ #20016]
3701         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
3702         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
3703         Move ...
3704         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
3705         ... here, as compatibility symbols in a new file.
3706         * resolv/Makefile (libresolv-routines): Add compat-hooks.
3707         * resolv/res_init.c (__res_vinit): Adjust member names.
3708         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
3709         * resolv/resolv.h (res_sendhookact, res_send_qhook)
3710         (res_send_rhook): Remove.
3711         (struct __res_state): Rename qhook, rhook members.
3712
3713 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3714
3715         malloc: Use __libc_lock wrappers.
3716         * malloc/arena.c (list_lock, free_list_lock): Define using
3717         __libc_lock_define_initialized.
3718         (arena_lock): Adjust formatting.
3719         * malloc/malloc.c (struct malloc_state): Define mutex using
3720         __libc_lock_define.
3721         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
3722         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
3723         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
3724         (mutex_unlock, mutex_trylock): Remove.
3725         (__pthread_initialize): Remove unused macro.
3726         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
3727         (mutex_unlock, mutex_trylock): Remove.
3728
3729 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3730
3731         [BZ #20592]
3732         Remove RR type classification macros.
3733         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
3734         (ns_t_udp_p, ns_t_xfr_p): Remove.
3735
3736 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3737
3738         Remove misleading version information.
3739         * resolv/arpa/nameser.h (__NAMESER): Remove.
3740         * resolv/arpa/nameser_compat.h (__BIND): Remove.
3741
3742 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3743
3744         Remove the always-defined BIND_4_COMPAT macro.
3745         * resolv/arpa/nameser.h: Unconditionally include
3746         <arpa/nameser_compat.h>.
3747         (BIND_4_COMPAT): Remove.
3748         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
3749
3750 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3751
3752         [BZ #20591]
3753         Remove obsolete DNSSEC support.
3754         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
3755         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
3756         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
3757         (ns_verify_tcp, ns_verify_tcp_init): Remove.
3758         (ns_cert_types): Add comment.
3759         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
3760         separately.
3761         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
3762         (dst_s_dns_key_id): Remove.
3763         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
3764         variables.
3765
3766 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3767
3768         [BZ #20524]
3769         * manual/string.texi (String/Array Comparison): Clarify the
3770         strverscmp behavior.
3771
3772 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3773
3774         * test-skeleton.c (xasprintf): Add function.
3775         * io/tst-open-tmpfile.c: New test.
3776         * io/Makefile (tests): Add it.
3777
3778 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3779
3780         Avoid running $(CXX) during build to obtain header file paths.
3781         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
3782         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
3783         * Makerules (cstdlib, cmath): Remove variables.  Use
3784         $(c++-cstdlib-header), $(c++-cmath-header) instead.
3785         * configure: Regenerate.
3786
3787 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3788
3789         * Makeconfig (all-object-suffixes): Include .op only if
3790         $(build-profile).
3791
3792 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3793
3794         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
3795         conditionals.  Do not define PATH_MAX.
3796
3797 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3798
3799         * posix/Makefile (tests): Add tst-spawn3.
3800         * posix/tst-spawn3.c: New file.
3801         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
3802         if it is already opened for open action.
3803
3804         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
3805         all signals when executing the clone vfork child.
3806         (SIGALL_SET): Remove macro.
3807
3808         * nptl/Makefile (tests): Add tst-exec5.
3809         * nptl/tst-exec5.c: New file.
3810         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
3811         asynchronous cancellation.
3812
3813 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3814
3815         * hurd/exc2signal.c: #include <hurd/signal.h>
3816         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
3817         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
3818         accordingly.
3819         * mach/mach_error.c (mach_error): Fix old-style function definition.
3820         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
3821
3822 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3823
3824         * math/Makefile (libm-calls): Remove s_nanF.
3825         (gen-libm-calls): Add s_nanF.
3826
3827         * math/s_nan.c: Refactor into ...
3828         * math/s_nan_template.c: New file.
3829
3830         * math/s_nanf.c: Removed.
3831         * math/s_nanl.c: Removed.
3832         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
3833         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
3834
3835         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
3836         (LDOUBLE_nanl_libm_version): New macro.
3837
3838         * sysdeps/generic/math-type-macros-double.h:
3839         (M_STRTO_NAN): New macro.
3840         * sysdeps/generic/math-type-macros-float.h: Likewise.
3841         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3842
3843         * sysdeps/generic/math-type-macros.h: Document
3844         M_STRTO_NAN.
3845
3846 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3847
3848         * math/s_nanf.c: Remove __nanf undef.
3849         * math/s_nan.c: Remove __nan undef.
3850         * math/s_nanl.c: Remove __nanl undef.
3851
3852         * sysdeps/generic/math_private.h (__nan): Remove macro
3853         override.
3854         (__nanf): Likewise.
3855         (__nanl): Likewise.
3856
3857 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3858
3859         * math/Makefile (gen-all-calls): New variable.
3860         (generated): Replace gen-libm-calls with gen-all-calls.
3861         (gen-libm-templates.stmp): Likewise.  Also, ensure
3862         the output directory exists or is created and add
3863         dependency on the Makefile.
3864         (calls): Move s_ldexpF into gen-calls.
3865         (gen-calls): New variable.
3866
3867         * math/s_ldexpf.c: Removed.
3868         * math/s_ldexpl.c: Removed.
3869         * math/s_ldexp.c: Refactored into ...
3870         * math/s_ldexp_template.c: New file.
3871
3872         * sysdeps/generic/math-type-macros-double.h: Remove
3873         redundant fall-through definition of declare_mgen_alias.
3874         (declare_mgen_alias_2): New macro.
3875
3876         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
3877         New macro for function aliased to two exported symbols.
3878
3879         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
3880         new template file.
3881         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
3882
3883 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3884
3885         * Makeconfig (all-object-suffixes): Remove .og.
3886         * Makerules (elide-routines.og): Remove.
3887         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
3888         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
3889         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
3890
3891 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3892
3893         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
3894         .os objects.
3895
3896 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3897
3898         [BZ #20615]
3899         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
3900         fpu directory by non-fpu.
3901         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
3902         on non-fpu directory from a fpu directory.
3903
3904 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3905
3906         * include/limits.h: Define
3907         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3908         <bits/libc-header-start.h> instead of including <features.h>.
3909         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
3910         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
3911         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
3912         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
3913         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
3914         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
3915         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
3916         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
3917         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3918         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
3919         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
3920         * manual/lang.texi (Width of Type): Document these macros.
3921         * stdlib/tst-width.c: New file.
3922         * stdlib/Makefile (tests): Add tst-width.
3923
3924 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3925
3926         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
3927         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
3928
3929 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3930
3931         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
3932         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3933         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3934
3935 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3936
3937         [BZ #18243]
3938         * rt/Makefile (test): Add tst-shm-cancel.
3939         * rt/tst-shm-cancel.c: New file.
3940         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
3941
3942         [BZ #18243]
3943         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
3944         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
3945         definition.
3946         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
3947         uncontended case.
3948         * nptl/sem_wait.c (__new_sem_wait): Likewise.
3949         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
3950         (tf): Fix check for uncontended case.
3951         (do_test): Likewise.
3952         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
3953         (tf): Fix check for uncontended case.
3954         (do_test): Likewise.
3955         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
3956         (tf): Fix check for uncontended case.
3957         (do_test): Likewise.
3958         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
3959         (tf): Fix check for uncontended case.
3960         (do_test): Likewise.
3961
3962         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
3963         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
3964
3965         [BZ #15765]
3966         * nptl/Makefile (tests): Add tst-sem16.
3967         * nptl/tst-sem16.c: New file.
3968         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
3969
3970         * nptl/sem_open.c (sem_open): Init pad value to 0.
3971         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3972         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3973
3974 2016-09-15  Florian Weimer  <fweimer@redhat.com>
3975
3976         [BZ #20611]
3977         * inet/Makefile (routines): Add inet6_scopeid_pton.
3978         (tests): Add tst-inet6_scopeid_pton.
3979         * inet/inet6_scopeid_pton.c: New file.
3980         * inet/net-internal.h: Likewise.
3981         * inet/tst-inet6_scopeid_pton.c: New test.
3982         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
3983         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
3984         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3985
3986 2016-09-14  Florian Weimer  <fweimer@redhat.com>
3987
3988         Remove support for compiling wrappers with PTW.
3989         * sysdeps/nptl/Makeconfig: Drop ptw- support.
3990         * nptl/Makefile (pthread-compat-wrappers): Define.
3991         (libpthread-routines): Use pthread-compat-wrappers.
3992         * sysdeps/unix/sysv/linux/alpha/Makefile
3993         (libpthread-routines, libpthread-shared-only-routines): Remove
3994         ptw- prefix.
3995         * sysdeps/s390/nptl/Makefile
3996         (libpthread-routines, libpthread-shared-only-routines): Likewise.
3997         * sysdeps/ia64/nptl/Makefile
3998         (libpthread-routines, libpthread-shared-only-routines): Likewise.
3999         * sysdeps/nacl/Makefile (libpthread-routines): Use
4000         pthread-compat-wrappers to filter the routines list instead of the
4001         ptw- prefix.
4002
4003 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4004
4005         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
4006         with L() and remove explicit suffix, convert real literals
4007         which can be equivalentally substituted with integers, and
4008         transform -L(x) to L(-x).
4009
4010         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4011         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4012         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4013         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4014         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4015         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4016         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4017         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4018         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4019         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4020         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4021         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4022         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4023         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4024         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4025         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4026         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4027         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4028         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4029         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4030         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4031         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4032         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4033         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4034         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4035         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4036         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4037         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4038         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4039         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4040         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4041         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4042         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4043         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4044         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4045         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4046         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4047         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4048         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4049         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4050         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4051         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4052         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4053         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4054         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4055         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4056         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4057         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4058         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4059         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4060
4061 2016-09-13  Florian Weimer  <fweimer@redhat.com>
4062
4063         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
4064
4065 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4066
4067         * malloc/Makefile (tests): Remove individual static test names
4068         and just add all of tests-static.
4069
4070         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
4071
4072 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
4073
4074         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
4075         file.
4076
4077         * sysdeps/sparc/fpu/fegetmode.c: New file.
4078         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
4079
4080         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
4081         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
4082
4083         * sysdeps/s390/fpu/fegetmode.c: New file.
4084         * sysdeps/s390/fpu/fesetmode.c: Likewise.
4085
4086         * sysdeps/powerpc/fpu/fegetmode.c: New file.
4087         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
4088         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
4089         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
4090         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
4091         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
4092
4093         * sysdeps/mips/fpu/fegetmode.c: New file.
4094         * sysdeps/mips/fpu/fesetmode.c: Likewise.
4095
4096         * sysdeps/m68k/fpu/fegetmode.c: New file.
4097         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
4098
4099         * sysdeps/ia64/fpu/fegetmode.c: New file.
4100         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
4101
4102         * sysdeps/hppa/fpu/fegetmode.c: New file.
4103         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
4104
4105         * sysdeps/arm/fegetmode.c: New file.
4106         * sysdeps/arm/fesetmode.c: Likewise.
4107
4108         * sysdeps/alpha/fpu/fegetmode.c: New file.
4109         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
4110
4111         * sysdeps/aarch64/fpu/fegetmode.c: New file.
4112         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
4113
4114         * math/fegetmode.c: New file.
4115         * math/fesetmode.c: Likewise.
4116         * sysdeps/i386/fpu/fegetmode.c: Likewise.
4117         * sysdeps/i386/fpu/fesetmode.c: Likewise.
4118         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
4119         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
4120         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
4121         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
4122         declaration.
4123         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
4124         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
4125         typedef.
4126         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4127         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4128         (femode_t): New typedef.
4129         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4130         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4131         (femode_t): New typedef.
4132         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4133         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4134         (femode_t): New typedef.
4135         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4136         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4137         (femode_t): New typedef.
4138         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4139         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4140         (femode_t): New typedef.
4141         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4142         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4143         (femode_t): New typedef.
4144         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4145         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4146         (femode_t): New typedef.
4147         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4148         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4149         (femode_t): New typedef.
4150         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4151         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4152         (femode_t): New typedef.
4153         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4154         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4155         (femode_t): New typedef.
4156         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
4157         declaration.
4158         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4159         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4160         (femode_t): New typedef.
4161         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4162         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4163         (femode_t): New typedef.
4164         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4165         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4166         (femode_t): New typedef.
4167         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4168         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4169         (femode_t): New typedef.
4170         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4171         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4172         (femode_t): New typedef.
4173         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4174         * manual/arith.texi (FE_DFL_MODE): Document macro.
4175         (fegetmode): Document function.
4176         (fesetmode): Likewise.
4177         * math/Versions (fegetmode): New libm symbol at version
4178         GLIBC_2.25.
4179         (fesetmode): Likewise.
4180         * math/Makefile (libm-support): Add fegetmode and fesetmode.
4181         (tests): Add test-femode and test-femode-traps.
4182         * math/test-femode-traps.c: New file.
4183         * math/test-femode.c: Likewise.
4184         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
4185         alias for __fe_dfl_env.
4186         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
4187         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
4188         (__fe_dfl_mode): Likewise.
4189         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
4190         version GLIBC_2.25.
4191         * sysdeps/nacl/libm.abilist: Update.
4192         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4193         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4194         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4195         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4196         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4197         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4198         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4199         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4200         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4201         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4202         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4203         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4205         Likewise.
4206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4207         Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4209         Likewise.
4210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4211         Likewise.
4212         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4213         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4214         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4215         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4216         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4217         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4218         Likewise.
4219         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4220         Likewise.
4221         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4222         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4223         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4224
4225 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4226
4227         [BZ #20495]
4228         [BZ #20508]
4229         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
4230         processors, set Use_dl_runtime_resolve_slow and set
4231         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
4232         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
4233         New.
4234         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
4235         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
4236         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
4237         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
4238         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
4239         if Use_dl_runtime_resolve_opt is set.  Use
4240         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
4241         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
4242         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
4243         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
4244         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
4245         New.
4246         (_dl_runtime_resolve_opt): Likewise.
4247         (_dl_runtime_profile): Define only if _dl_runtime_profile is
4248         defined.
4249
4250 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4251
4252         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
4253         __libc_memalign with "+ RELA R_390_GLOB_DAT".
4254
4255 2016-09-06  Florian Weimer  <fweimer@redhat.com>
4256
4257         Convert malloc to __libc_lock.  Automated part, using this Perl
4258         s/// command:
4259           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
4260             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
4261         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
4262         conversion.
4263
4264 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
4265
4266         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
4267         (linknamespace-symlists-tests): Likewise.
4268         (linknamespace-header-tests): Likewise.
4269
4270 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
4271
4272         [BZ #19810]
4273         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
4274         * elf/tst-noload.c: New test case.
4275         * elf/Makefile (tests): Add tst-noload.
4276
4277 2016-09-02  Roland McGrath  <roland@hack.frob.com>
4278
4279         * sysdeps/nacl/dup.c: Add libc_hidden_def.
4280
4281         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
4282         not any more.
4283
4284         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
4285
4286 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4287
4288         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
4289         (do_cos_slow): Likewise.
4290         (do_sin): Likewise.
4291         (do_sin_slow): Likewise.
4292         (slow): Likewise.
4293         (slow1): Likewise.
4294         (slow2): Likewise.
4295         (sloww): Likewise.
4296         (sloww1): Likewise.
4297         (sloww2): Likewise.
4298         (bsloww): Likewise.
4299         (bsloww1): Likewise.
4300         (bsloww2): Likewise.
4301         (cslow2): Likewise.
4302
4303         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
4304
4305         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
4306         arguments.  Consolidate input partitioning from callers here.
4307         (do_cos_slow): Likewise.
4308         (do_sin): Likewise.
4309         (do_sin_slow): Likewise.
4310         (do_sincos_1): Remove the no longer necessary input partitioning.
4311         (do_sincos_2): Likewise.
4312         (__sin): Likewise.
4313         (__cos): Likewise.
4314         (slow1): Likewise.
4315         (slow2): Likewise.
4316         (sloww1): Likewise.
4317         (sloww2): Likewise.
4318         (bsloww1): Likewise.
4319         (bsloww2): Likewise.
4320         (cslow2): Likewise.
4321
4322 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4323
4324         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
4325         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
4326         outside of allocated array.
4327
4328 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4329
4330         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
4331         instead of MB_CUR_MAX to avoid variable-length array.
4332
4333 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4334
4335         * math/Makefile (libm-calls): Remove k_rem_pio2F.
4336         (type-double-routines): Add k_rem_pio2.
4337         (type-float-routines): Add k_rem_pio2f.
4338
4339         * sysdeps/generic/math_private.h:
4340         (__kernel_rem_pio2l): Removed.
4341
4342         * math/k_rem_pio2l.c: Removed.
4343         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
4344         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
4345         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
4346         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
4347
4348 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4349
4350         * math/Makefile (gen-libm-calls): Add s_fmin
4351         (libm-calls): Remove above.
4352
4353         * math/s_fmin.c: Refactor into ...
4354         * math/s_fmin_template.c: New file.
4355
4356         * math/s_fminf.c: Removed.
4357         * math/s_fminl.c: Removed.
4358         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4359         (LDOUBLE_fmin_libm_version): New macro.
4360
4361         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
4362         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
4363
4364 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4365
4366         * math/Makefile: (gen-libm-calls): Add s_fmax.
4367         (libm-calls): Remove above.
4368
4369         * math/s_fmax.c: Refactor into ...
4370         * math/s_fmax_template.c: New file.
4371         * math/s_fmaxf.c: Removed.
4372         * math/s_fmaxl.c: Removed.
4373
4374         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4375         (LDOUBLE_fmaxl_libm_version): New macro.
4376
4377         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
4378         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
4379
4380         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
4381         s_fmin.c to pick the aarch64 version of the file.
4382         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
4383         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
4384
4385 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4386
4387         * math/Makefile: (gen-libm-calls): Add s_nextdown.
4388         (libm-calls): Remove above.
4389
4390         * math/s_nextdown.c: Refactor into ...
4391         * math/s_nextdown_template.c: New file.
4392         * math/s_nextdownf.c: Removed.
4393         * math/s_nextdownl.c: Removed.
4394
4395         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
4396
4397 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4398
4399         * math/Makefile (gen-libm-calls): Add s_fdim.
4400         (libm-calls): Move to above.
4401
4402         * math/s_fdim.c: Renamed and refactored into to ...
4403         * math/s_fdim_template.c: New file.
4404         * math/s_fdiml.c: Removed.
4405         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
4406         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
4407
4408         * sysdeps/generic/math-type-macros-double.h:
4409         (declare_mgen_alias): Don't declare if already declared.
4410         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
4411         Likewise.
4412
4413         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4414         (declare_mgen_alias): Don't declare if already declared.
4415         (M_LIBM_NEED_COMPAT): Likewise.
4416         (declare_mgen_libm_compat): Likewise.
4417         (LDOUBLE_fdiml_libm_version): New macro.
4418
4419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4420         Include math/s_fdim.c now that ldbl-opt version is not needed.
4421         (declare_mgen_alias): New macro to disable aliasing.
4422
4423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
4424         (declare_mgen_alias): Likewise.
4425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
4426         (declare_mgen_alias): Likewise.
4427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
4428         (declare_mgen_alias): Likewise.
4429         (M_LIBM_NEED_COMPAT): Likewise.
4430
4431 2016-09-01  Florian Weimer  <fweimer@redhat.com>
4432
4433         [BZ #20525]
4434         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
4435         Include <linux/quota.h>.
4436         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
4437         and btodb.
4438         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
4439         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
4440         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
4441         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
4442         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
4443         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
4444         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
4445         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
4446         types.
4447         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
4448         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
4449
4450 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4451
4452         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
4453         (gammal_positive): Fix spacing.
4454         (__ieee754_gammal_r): Likewise.
4455
4456 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4457
4458         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
4459         (_Float128): Define as long double, always.
4460         (L): Apply long double type suffix, always.
4461
4462         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
4463         _Float128, excepting comments.
4464
4465         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4466         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4467         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4468         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4469         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4470         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4471         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4472         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4473         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4474         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
4475         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4476         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4477         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4478         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4479         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4480         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4481         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4482         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4483         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4484         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4485         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4486         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4487         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4488         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4489         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4490         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4491         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4492         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4493         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4494         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4495         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4496         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4497         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4498         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4499         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4500         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4501         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4502         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4503         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4504         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4505         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4506         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4507         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4508         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4509         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4510         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4511         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4512         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4513         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4514         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4515         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4516         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4517         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4518         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4519         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4520         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4521         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4522         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4523         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4524         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4525         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4526         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4527         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4528         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4529         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4530         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4531         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4532         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4533
4534         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
4535         _Float128, and include math_private.h.
4536         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4537
4538         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
4539         long double semantics.
4540         (_Float128): Likewise.
4541         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
4542         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4543         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4544         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4545
4546 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4547
4548         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
4549         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
4550         * sysdeps/s390/configure: Regenerated.
4551         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
4552         instruction for raising over-/underflow if z196 zarch is supported
4553         by default.
4554         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
4555
4556 2016-08-30  Svante Signell  <svante.signell@gmail.com>
4557
4558         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
4559         it point to a dumb buffer for RPC to fill it.
4560
4561 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4562
4563         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
4564         instead of if/else.
4565         (do_sin_slow): Likewise.
4566         (do_sincos_1): Use fabs instead of if/else.
4567         (do_sincos_2): Likewise.
4568         (__sin): Likewise.
4569         (__cos): Likewise.
4570         (slow2): Likewise.
4571         (sloww): Likewise.
4572         (sloww1): Likewise.  Drop argument M.
4573         (sloww2): Use fabs instead of if/else.
4574         (bsloww): Likewise.
4575         (bsloww1): Likewise.
4576         (bsloww2): Likewise.
4577
4578         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
4579         fall through comment.
4580         (do_sincos_1): Likewise.
4581
4582         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
4583         Consolidate switch cases 0 and 2.
4584
4585 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4586
4587         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
4588         (libm-calls): Remove the above.
4589
4590         * math/s_cexp_template.c: Update using type-generic macros.
4591         * math/s_clog10_template.c: Likewise.
4592         * math/s_cpow_template.c: Likewise.
4593         * math/s_clog_template.c: Likewise.
4594         * math/s_cproj_template.c: Likewise.
4595         * math/s_csqrt_template.c: Likewise.
4596
4597         * math/s_cexp.c: Removed.
4598         * math/s_cexpf.c: Removed.
4599         * math/s_cexpl.c: Removed.
4600         * math/s_clog10.c: Removed.
4601         * math/s_clog10f.c: Removed.
4602         * math/s_clog10l.c: Removed.
4603         * math/s_cpow.c: Removed.
4604         * math/s_cpowf.c: Removed.
4605         * math/s_cpowl.c: Removed.
4606         * math/s_clog.c: Removed.
4607         * math/s_clogf.c: Removed.
4608         * math/s_clogl.c: Removed.
4609         * math/s_cproj.c: Removed.
4610         * math/s_cprojf.c: Removed.
4611         * math/s_cprojl.c: Removed.
4612         * math/s_csqrt.c: Removed.
4613         * math/s_csqrtf.c: Removed.
4614         * math/s_csqrtl.c: Removed.
4615
4616         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
4617         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
4618         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
4619         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
4620         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
4621         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
4622
4623         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
4624         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
4625         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
4626         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
4627         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
4628         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
4629         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
4630         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
4631         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
4632         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
4633         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
4634
4635         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
4636         version.
4637
4638         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
4639         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
4640         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
4641         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
4642
4643 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4644
4645         * s_cexp_template.c: Copy of s_cexp.c.
4646         * s_clog_template.c: Copy of s_clog.c.
4647         * s_clog10_template.c: Copy of s_clog10.c.
4648         * s_cpow_template.c: Copy of s_cpow.c.
4649         * s_cproj_template.c: Copy of s_cproj.c.
4650         * s_csqrt_template.c: Copy of s_csqrt.c.
4651
4652 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4653
4654         [BZ #20517]
4655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4656         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
4657         exported.
4658
4659 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
4660
4661         * math/fetestexceptflag.c: New file.
4662         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
4663         Stefan Liebler.
4664         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4665         (fetestexceptflag): New function declaration.
4666         * manual/arith.texi (fetestexceptflag): Document function.
4667         * math/Versions (fetestexceptflag): New libm symbol at version
4668         GLIBC_2.25.
4669         * math/Makefile (libm-support): Add fetestexceptflag.
4670         (tests): Add test-fetestexceptflag.
4671         * math/test-fetestexceptflag.c: New file.
4672         * sysdeps/nacl/libm.abilist: Update.
4673         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4674         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4675         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4676         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4677         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4678         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4679         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4680         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4681         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4682         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4683         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4684         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4686         Likewise.
4687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4688         Likewise.
4689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4690         Likewise.
4691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4692         Likewise.
4693         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4694         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4695         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4696         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4697         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4698         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4699         Likewise.
4700         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4701         Likewise.
4702         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4703         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4704         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4705
4706 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4707
4708         [BZ #20432]
4709         Avoid strong references to malloc-internal symbols when linking
4710         statically, to support statically interposed mallocs.
4711         * include/libc-symbols.h (call_function_static_weak): New macro.
4712         * malloc/Makefile (tests): Add tst-interpose-nothread,
4713         tst-interpose-thread, tst-interpose-static-nothread,
4714         tst-interpose-static-thread.
4715         (tests-static): Add tst-interpose-static-nothread,
4716         tst-interpose-static-thread.
4717         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
4718         tst-interpose-aux-thread.o.
4719         (test-extras): Add tst-interpose-aux-nothread,
4720         tst-interpose-aux-thread.
4721         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
4722         tst-interpose-aux-nothread.o.
4723         (tst-interpose-thread, tst-interpose-static-thread): Link with
4724         tst-interpose-aux-thread.o and libthread.
4725         * malloc/tst-interpose-aux-nothread.c: New file.
4726         * malloc/tst-interpose-aux-thread.c: Likewise.
4727         * malloc/tst-interpose-aux.c: Likewise.
4728         * malloc/tst-interpose-aux.h: Likewise.
4729         * malloc/tst-interpose-nothread.c: Likewise.
4730         * malloc/tst-interpose-skeleton.c: Likewise.
4731         * malloc/tst-interpose-static-nothread.c: Likewise.
4732         * malloc/tst-interpose-static-thread.c: Likewise.
4733         * malloc/tst-interpose-thread.c: Likewise.
4734         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
4735         * sysdeps/mach/hurd/fork.c (__fork): Only call
4736         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
4737         __malloc_fork_unlock_child if defined.
4738         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4739
4740 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4741
4742         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
4743         timespec C99 designated initialization.
4744
4745 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4746
4747         [BZ #19946]
4748         Avoid expected SIGALRM signals.
4749         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
4750         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
4751         (xpthread_create, xpthread_detach, xpthread_join)
4752         (delayed_exit_thread, delayed_exit): New functions.
4753         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
4754         (tf): Use xpthread_cond_wait.
4755         (do_test): Likewise.  Replace alarm with delayed_exit.
4756         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4757         (do_test): Call delayed_exit.  Report failure.
4758         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4759         (do_test): Call delayed_exit.
4760         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4761         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
4762         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4763         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
4764         error.
4765         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4766         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
4767         error.
4768         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
4769         (do_test): Call delayed_exit.
4770         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
4771         (do_test): Call delayed_exit.
4772         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
4773         (do_test): Call delayed_exit instead of alarm.  Use
4774         xpthread_mutex_lock.
4775         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
4776         (do_test): Call delayed_exit instead of alarm.  Use
4777         xpthread_mutex_lock.
4778         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
4779         (do_test): Call delayed_exit instead of alarm.
4780         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
4781         (do_test): Call delayed_exit instead of alarm.  Use
4782         xpthread_spin_lock.
4783         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
4784         (do_test): Call delayed_exit instead of alarm.  Use
4785         xpthread_join.
4786
4787 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4788
4789         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
4790         adjust CFA when allocating register save area on re-aligned
4791         stack.
4792
4793 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4794
4795         * string/tst-cmp.c: New test.
4796         * string/Makefile (tests): Add it.
4797
4798 2016-08-25  Mark Wielaard  <mark@klomp.org>
4799
4800         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
4801         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
4802         (check_tree_recurse): Use newly defined accessors.
4803         (check_tree): Likewise.
4804         (maybe_split_for_insert): Likewise.
4805         (__tfind): Likewise.
4806         (__tdelete): Likewise.
4807         (trecurse): Likewise.
4808         (tdestroy_recurse): Likewise.
4809         (__tsearch): Likewise. And add asserts for malloc alignment.
4810         (__twalk): Cast root to node in case CHECK_TREE is defined.
4811
4812 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4813
4814         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
4815
4816 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4817
4818         * math/Makefile (libm-gen-calls): Add
4819         catan, catanh, ctan, ctanh.
4820         (libm-calls): Remove the above.
4821
4822         * math/s_catan_template.c: Update using type-generic macros.
4823         * math/s_catanh_template.c: Likewise.
4824         * math/s_ctan_template.c: Likewise.
4825         * math/s_ctanh_template.c: Likewise.
4826
4827         * math/s_catanf.c: Removed.
4828         * math/s_catan.c: Removed.
4829         * math/s_catanl.c: Removed.
4830         * math/s_catanhf.c: Removed.
4831         * math/s_catanh.c: Removed.
4832         * math/s_catanhl.c: Removed.
4833         * math/s_ctanf.c: Removed.
4834         * math/s_ctan.c: Removed.
4835         * math/s_ctanl.c: Removed.
4836         * math/s_ctanhf.c: Removed.
4837         * math/s_ctanh.c: Removed.
4838         * math/s_ctanhl.c: Removed.
4839
4840         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
4841         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
4842         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
4843         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
4844         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
4845         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
4846
4847         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
4848         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
4849         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
4850         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
4851
4852 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4853
4854         * s_catan_template.c: Copy of s_catan.c.
4855         * s_catanh_template.c: Copy of s_catanh.c.
4856         * s_ctan_template.c: Copy of s_ctan.c.
4857         * s_ctanh_template.c: Copy of s_ctanh.c.
4858
4859 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4860
4861         * math/Makefile (gen-libm-calls): Move
4862         casin, casinh, csin, csinh here.
4863         (libm-calls): Remove the above.
4864
4865         * math/s_casin_template.c: Update using type-generic macros.
4866         * math/s_casinh_template.c: Likewise.
4867         * math/s_csin_template.c: Likewise.
4868         * math/s_csinh_template.c: Likewise.
4869         * math/k_casinh_template.c: Likewise.
4870
4871         * math/s_casinf.c: Removed.
4872         * math/s_casin.c: Removed.
4873         * math/s_casinl.c: Removed.
4874         * math/s_casinh.c: Removed.
4875         * math/s_casinhf.c: Removed.
4876         * math/s_casinhl.c: Removed.
4877         * math/s_csin.c: Removed.
4878         * math/s_csinf.c: Removed.
4879         * math/s_csinl.c: Removed.
4880         * math/s_csinh.c: Removed.
4881         * math/s_csinhf.c: Removed.
4882         * math/s_csinhl.c: Removed.
4883         * math/k_casinh.c: Removed.
4884         * math/k_casinhf.c: Removed.
4885         * math/k_casinhl.c: Removed.
4886
4887         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
4888         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
4889         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
4890         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
4891
4892         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
4893         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
4894         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
4895         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
4896         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
4897         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
4898         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
4899         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
4900
4901         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
4902         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
4903         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
4904         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
4905
4906         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
4907         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
4908         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
4909         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
4910
4911 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4912
4913         * s_casin_template.c: Copy of s_casin.c.
4914         * s_casinh_template.c: Copy of s_casinh.c.
4915         * s_csin_template.c: Copy of s_csin.c.
4916         * s_csinh_template.c: Copy of s_csinh.c.
4917         * k_casinh_template.c: Copy of k_casinh.c.
4918
4919 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4920
4921         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
4922
4923 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4924
4925         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
4926         (mul_split) Remove, rename as mul_splitl, remove
4927         redundant float.h include, and include via mul_splitl.h
4928
4929         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4930         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4931         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4932         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
4933         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
4934
4935         * math/mul_splitl.h: New file.
4936
4937         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
4938         Move into mul_split.h, and remove redundant float.h include.
4939
4940         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
4941         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4942         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4943         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
4944
4945         * math/mul_split.h: New file.
4946
4947 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4948
4949         * math/Makefile (libm-gen-calls): Move
4950         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
4951         (libm-calls): Remove above.
4952
4953         * math/s_cacos_template.c: Update using type-generic macros.
4954         * math/s_cacosh_template.c: Likewise.
4955         * math/s_ccos_template.c: Likewise.
4956         * math/s_ccosh_template.c: Likwise.
4957
4958         * math/s_cacosf.c: Removed.
4959         * math/s_cacos.c: Removed.
4960         * math/s_cacosl.c: Removed.
4961         * math/s_cacoshf.c: Removed.
4962         * math/s_cacosh.c: Removed.
4963         * math/s_cacoshl.c: Removed.
4964         * math/s_ccosf.c: Removed.
4965         * math/s_ccos.c: Removed.
4966         * math/s_ccosl.c: Removed.
4967         * math/s_ccoshf.c: Removed.
4968         * math/s_ccosh.c: Removed.
4969         * math/s_ccoshl.c: Removed.
4970
4971         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
4972         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
4973         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
4974         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
4975         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
4976         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
4977
4978         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
4979         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
4980         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
4981         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
4982
4983         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
4984         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
4985         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
4986         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
4987
4988 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4989
4990         * s_cacos_template.c: Copy of s_cacos.c.
4991         * s_cacosh_template.c: Copy of s_cacosh.c.
4992         * s_ccos_template.c: Copy of s_ccos.c.
4993         * s_ccosh_template.c: Copy of s_ccosh.c.
4994
4995 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4996
4997         * stdlib/tst-strtod-round-skeleton.c:
4998         Refactored from tst-strtod-round.c.
4999
5000         (L_): New macro to apply literal modifier.
5001         (FNPFX): New macro to select str or wcs prefix.
5002         (CHAR): New macro to choose wchar_t or char.
5003         (STRM): New macro to choose printf for tested character type.
5004
5005         (STRTO): New macro to choose appropriate string -> real function.
5006         (FNPFXS): Stringitized version of FNPFX.
5007         (STR): Support for above macro.
5008         (STRX): Likewise.
5009
5010         (TEST): Update with above macros.
5011         (test): Likewise.
5012         (GEN_ONE_TEST): Likewise.
5013         (test_in_one_mode): Likewise.
5014
5015         * stdlib/tst-strtod-round.c: New file.
5016         * wcsmbs/tst-wcstod-round.c: New file.
5017
5018         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
5019         (tst-wcstod-round): Add libm depencency for fesetround.
5020
5021 2016-08-19  Zack Weinberg  <zackw@panix.com>
5022
5023         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
5024
5025 2016-08-18  Torvald Riegel  <triegel@redhat.com>
5026
5027         [BZ #20477]
5028         * resolv/res_hconf.c (do_init): Use atomic access.
5029         * resolv/res_hconf.h: Add comments.
5030         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
5031         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
5032         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5033
5034 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5035
5036         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
5037         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
5038         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5039         Likewise.
5040
5041 2016-08-18  Florian Weimer  <fweimer@redhat.com>
5042
5043         [BZ #16907]
5044         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
5045         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
5046         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
5047         (__attribute__): Remove definition.
5048
5049 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5050
5051         * sysdeps/ieee754/ldbl-128/e_asinl.c:
5052         Remove unused sqrtl declaration.
5053
5054 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5055
5056         * math/Makefile: (gen-libm-templates.stmp): New rule.
5057         (libm-calls): Move carg conj cimag and cabs into ...
5058         (gen-libm-calls): New variable.
5059         (generated): Inform Make objects from gen-libm-calls
5060         may be generated.
5061
5062         * sysdeps/generic/math-type-macros.h: New file.
5063         * sysdeps/generic/math-type-macros-float.h: Likewise.
5064         * sysdeps/generic/math-type-macros-double.h: Likewise.
5065         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
5066         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
5067         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
5068
5069         * math/cabs.c: Refactor into
5070         * math/cabs_template.c: new file.
5071         * math/cabsf.c: Removed.
5072         * math/cabsl.c: Removed.
5073         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
5074         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
5075
5076         * math/carg.c: Refactor into
5077         * math/carg_template.c: new file.
5078         * math/cargf.c: Removed.
5079         * math/cargl.c: Removed.
5080         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
5081         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
5082
5083         * math/conj.c: Refactor into
5084         * math/conj_template.c: new file.
5085         * math/conjf.c: Removed.
5086         * math/conjl.c: Removed.
5087         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
5088         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
5089
5090         * math/cimag.c: Refactor into
5091         * math/cimag_template.c: new file.
5092         * math/cimagf.c: Removed.
5093         * math/cimagl.c: Removed.
5094         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5095         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5096
5097         * math/cimag.c: Refactor into
5098         * math/cimag_template.c: new file.
5099         * math/cimagf.c: Removed.
5100         * math/cimagl.c: Removed.
5101         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5102         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5103
5104 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5105
5106         Reduce time to expected nptl/tst-once5 failure.
5107         * nptl/tst-once5.cc (TIMEOUT): Define.
5108
5109 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5110
5111         [BZ #20452]
5112         Avoid additional copies of objects in libc.a in static libraries.
5113         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
5114         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
5115         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
5116         rt-sysdep.
5117         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
5118         Add nptl-sysdep.
5119         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
5120         Add ptw-sysdep.
5121         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
5122         rt-sysdep.
5123         * sysdeps/unix/sysv/linux/alpha/Makefile
5124         (libpthread-shared-only-routines): Add ptw-sysdep,
5125         ptw-sigprocmask, ptw-rt_sigaction.
5126         * sysdeps/unix/sysv/linux/ia64/Makefile
5127         (librt-shared-only-routines): Add rt-sysdep.
5128         * sysdeps/unix/sysv/linux/i386/Makefile
5129         (libpthread-shared-only-routines): Add libc-do-syscall.
5130         * sysdeps/unix/sysv/linux/microblaze/Makefile
5131         (libpthread-shared-only-routines): Add sysdep.
5132         * sysdeps/unix/sysv/linux/powerpc/Makefile
5133         (librt-shared-only-routines): Add rt-sysdep.
5134         (libpthread-shared-only-routines): Add sysdep.
5135         * sysdeps/unix/sysv/linux/s390/Makefile
5136         (librt-shared-only-routines): Add rt-sysdep.
5137         * sysdeps/unix/sysv/linux/sparc/Makefile
5138         (librt-shared-only-routines): Add rt-sysdep.
5139         (libpthread-shared-only-routines): Add sysdep.
5140         * sysdeps/unix/sysv/linux/tile/Makefile
5141         (libpthread-shared-only-routines): Likewise.
5142
5143 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
5144
5145         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
5146         Mask implicit bit out of unpacked value.
5147         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
5148         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
5149         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
5150
5151         * sysdeps/sparc/fpu/fesetexcept.c: New file.
5152
5153         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
5154
5155         * sysdeps/s390/fpu/fesetexcept.c: New file.
5156
5157         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
5158         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
5159         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
5160
5161         * sysdeps/mips/fpu/fesetexcept.c: New file.
5162
5163         * sysdeps/m68k/fpu/fesetexcept.c: New file.
5164
5165         * sysdeps/ia64/fpu/fesetexcept.c: New file.
5166
5167         * sysdeps/hppa/fpu/fesetexcept.c: New file.
5168
5169         * sysdeps/arm/fesetexcept.c: New file.
5170
5171         * sysdeps/alpha/fpu/fesetexcept.c: New file.
5172
5173         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
5174
5175         * math/fesetexcept.c: New file.
5176         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
5177         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
5178         * math/fenv.h: Define
5179         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5180         <bits/libc-header-start.h> instead of including <features.h>.
5181         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
5182         declaration.
5183         * manual/arith.texi (fesetexcept): Document function.
5184         * math/Versions (fesetexcept): New libm symbol at version
5185         GLIBC_2.25.
5186         * math/Makefile (libm-support): Add fesetexcept.
5187         (tests): Add test-fesetexcept and test-fesetexcept-traps.
5188         * math/test-fesetexcept.c: New file.
5189         * math/test-fesetexcept-traps.c: Likewise.
5190         * sysdeps/nacl/libm.abilist: Update.
5191         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5192         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5193         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5194         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5195         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5196         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5197         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5198         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5199         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5200         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5201         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5202         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5204         Likewise.
5205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5206         Likewise.
5207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5208         Likewise.
5209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5210         Likewise.
5211         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5212         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5213         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5214         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5215         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5216         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5217         Likewise.
5218         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5219         Likewise.
5220         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5221         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5222         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5223
5224 2016-08-16  Florian Weimer  <fweimer@redhat.com>
5225
5226         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
5227         New.
5228         (do_test): Apply default_stack_size_in_mb if not set.
5229         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
5230
5231 2016-08-15  Andreas Schwab  <schwab@suse.de>
5232
5233         [BZ #20435]
5234         CVE-2016-6323
5235         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
5236         as .cantunwind.
5237
5238 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
5239
5240         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
5241         comment from fraiseexcpt.c.
5242
5243         * math/test-fexcept.c (feraiseexcept_exact): New function.
5244         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
5245         (test_except): Likewise.
5246
5247 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
5248
5249         [BZ #20455]
5250         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
5251         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
5252         to be restored.
5253
5254         * math/test-fexcept-traps.c: New file.
5255         * math/test-fexcept.c: Likewise.
5256         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
5257         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
5258         macro.
5259         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
5260         (EXCEPTION_SET_FORCES_TRAP): Likewise.
5261
5262 2016-08-09  Torvald Riegel  <triegel@redhat.com>
5263
5264         * include/atomic.h (atomic_fetch_and_relaxed,
5265         atomic_fetch_and_release, atomic_fetch_or_release,
5266         atomic_fetch_xor_release): New.
5267
5268 2016-08-06  Christian Seiler  <christian@iwakd.de>
5269
5270         [BZ #20444]
5271         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
5272         MACH_PORT_NULL.
5273
5274 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5275
5276         * math/s_fdim.c: Avoid alias renamed.
5277         * math/s_fdimf.c: Likewise.
5278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5279         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5280         Add s_fdimf-vis3, s_fdim-vis3.
5281         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5282         (CFLAGS-s_fdim-vis3.c): Likewise.
5283         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
5284         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
5285
5286 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5287
5288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5289         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5290         Remove s_fdimf-vis3, s_fdim-vis3.
5291         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
5292         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
5293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
5294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
5295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
5296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
5297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
5298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
5299         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
5300         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
5301
5302 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5303
5304         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
5305         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
5306         -Wa,-Av9a -mvis.
5307
5308 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5309
5310         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
5311         LIT() to individual constants in simple expressions
5312         after splitting on spaces.
5313         (_apply_lit): Rename replaced version, and use it to
5314         apply to what appears to be a token.
5315
5316         * math/libm-test.inc: Fix many, many issues with
5317         spacing.
5318
5319 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
5320
5321         * math/math.h: Move comment about <bits/mathdef.h> definitions
5322         above inclusion of <bits/mathdef.h>.  Do not mention
5323         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
5324
5325 2016-08-05  Torvald Riegel  <triegel@redhat.com>
5326
5327         * include/atomic.h (atomic_exchange_relaxed): New.
5328
5329 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
5330
5331         * math/e_scalb.c: Do not include <fenv.h>.
5332         (invalid_fn): Do calculation resulting in NaN instead of raising
5333         FE_INVALID and returning a NaN explicitly.
5334         * math/e_scalbf.c: Do not include <fenv.h>.
5335         (invalid_fn): Do calculation resulting in NaN instead of raising
5336         FE_INVALID and returning a NaN explicitly.
5337         * math/e_scalbl.c: Do not include <fenv.h>.
5338         (invalid_fn): Do calculation resulting in NaN instead of raising
5339         FE_INVALID and returning a NaN explicitly.
5340
5341 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
5342
5343         * po/de.po: Updated from Translation Project.
5344         * po/fi.po: Likewise.
5345         * po/sv.po: Likewise.
5346
5347 2016-08-04  Florian Weimer  <fweimer@redhat.com>
5348
5349         [BZ #20452]
5350         Use sysdep.o from libc.a in static libraries.
5351         * sysdeps/unix/sysv/linux/i386/Makefile
5352         (libpthread-shared-only-routines): Add sysdep.
5353         (librt-shared-only-routines): Likewise.
5354
5355 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5356
5357         * math/tgmath.h (nextdown): Define if
5358         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
5359         (nextup): Likewise.
5360
5361         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
5362         macro.
5363         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5364         Document.
5365         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5366         Document macro.
5367         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
5368         (exp10f): Likewise.
5369         (exp10l): Likewise.
5370         * math/bits/mathcalls.h (exp10): Declare if
5371         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5372
5373         * manual/arith.texi (nextup): Fix typo in last change.
5374
5375 2016-08-03  Zack Weinberg  <zackw@panix.com>
5376
5377         [BZ #19239]
5378         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
5379         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
5380         define major, minor, and makedev to issue deprecation warnings on use.
5381         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
5382         previously-activated deprecation warnings for these macros and prevent
5383         subsequent inclusions of this header from having any effect.
5384         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
5385         including <sys/sysmacros.h>, and undefine it again afterward.
5386
5387 2016-08-03  Zack Weinberg  <zackw@panix.com>
5388
5389         * sysdeps/generic/sys/sysmacros.h: Delete file.
5390         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
5391         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
5392         * bits/sysmacros.h: ... here; this encoding is now the generic
5393         encoding.  Now defines only the following macros:
5394         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
5395         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
5396         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
5397
5398         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
5399         bits/sysmacros.h and the above new macros to generate the
5400         public implementations of major, minor, and makedev.
5401         * misc/tst-makedev.c: New test.
5402         * include/sys/sysmacros.h: New wrapper.
5403
5404         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
5405         (routines): Add makedev.
5406         (tests): Add tst-makedev.
5407         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
5408         gnu_dev_makedev.
5409         * posix/Makefile (headers): Remove sys/sysmacros.h.
5410         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
5411
5412         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
5413         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
5414         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
5415         * sysdeps/unix/sysv/linux/alpha/libc.abilist
5416         * sysdeps/unix/sysv/linux/arm/libc.abilist
5417         * sysdeps/unix/sysv/linux/hppa/libc.abilist
5418         * sysdeps/unix/sysv/linux/i386/libc.abilist
5419         * sysdeps/unix/sysv/linux/ia64/libc.abilist
5420         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
5421         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
5422         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
5423         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5424         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5425         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5426         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5427         * sysdeps/unix/sysv/linux/nios2/libc.abilist
5428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5432         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
5433         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5434         * sysdeps/unix/sysv/linux/sh/libc.abilist
5435         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
5436         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
5437         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
5438         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
5439         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
5440         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
5441         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
5442         Add GLIBC_2.25.
5443
5444         * include/features.h (__glibc_clang_prereq): New macro.
5445         * misc/sys/cdefs.h (__glibc_clang_has_extension)
5446         (__attribute_deprecated_msg__): New macros.
5447
5448 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5449
5450         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
5451         macro.
5452         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
5453         * manual/arith.texi (issignaling): Document as ISO from TS
5454         18661-1:2014.
5455         (nextup): Likewise.
5456         (nextupf): Likewise.
5457         (nextupl): Likewise.
5458         (nextdown): Likewise.
5459         (nextdownf): Likewise.
5460         (nextdownl): Likewise.
5461         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
5462         macro.
5463         * math/math.h: Define
5464         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5465         <bits/libc-header-start.h> instead of including <features.h>.
5466         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
5467         [__USE_GNU].
5468         * math/bits/mathcalls.h (nextdown): Declare if
5469         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
5470         (nextup): Likewise.
5471         (__issignaling): Likewise.
5472
5473 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5474
5475         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
5476         check, and remove __glibc_likely hint
5477         from FP_INFINITE check.
5478         * s_csinhf.c (__csinhf): Likewise.
5479
5480         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
5481         hint from FP_INFINITE check.
5482         * s_csinhl.c (__csinhl): Likewise.
5483
5484 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5485
5486         * math/Makefile (libm-calls): Insert F placeholder into
5487         object names.  Move w_lgamma_compat* routines into
5488         (libm-compat-calls): New variable.
5489         (libm-compat-calls-ldouble-yes): New variable.
5490         (calls): Insert F placeholder.
5491         (generated): Redefine using new type-foreach macro call.
5492         (routines): Likewise.
5493
5494         (types): New variable to hold a list of symbolic names
5495         for each type supported by the target machine.
5496         (libm-routines): Redefine using new types variable.
5497         (type-foreach): macro to replace fooF with the
5498         appropriately suffixed foo for each types.
5499
5500         (type-ldouble-suffix): New variable.
5501         (type-ldouble-routines): Likewise.
5502         (type-ldouble-yes): Likewise.
5503         (type-double-suffix): Likewise.
5504         (type-double-routines): Likewise.
5505         (type-float-suffix): Likewise.
5506         (type-float-routines): Likewise.
5507
5508         (dbl-only-routines): Remove.
5509         (long-c-yes): Likewise.
5510         (long-m-routines): Likewise.
5511         (long-m-support): Likewise.
5512         (long-m-yes): Likewise.
5513         (test-longdouble-yes): Likewise.
5514
5515         (test-float.o): Simplify by increasing the scope of the
5516         recipe which adds libm-test.stmp to the vector types.
5517         (test-ifloat.o): Likewise.
5518         (test-float-finite.o): Likewise.
5519         (test-double.o): Likewise
5520         (test-idouble.o): Likewise.
5521         (test-double-finite.o): Likewise.
5522         (test-ldouble.o): Likewise
5523         (test-ildoubl.o): Likewise.
5524         (test-ldouble-finite.o): Likewise.
5525
5526         (libm-tests): Redefine type tests using foreach and the
5527         list of types in types.
5528
5529         (CPPFLAGS-test-ildoubl.c): Rename to
5530         (CPPFLAGS-test-ildouble.c): New variable
5531
5532         * math/test-ildoubl.c: Rename to
5533         * math/test-ildouble.c: New file.
5534
5535 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5536
5537         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
5538         Use fabsl instead of fabs.
5539         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
5540         Likewise.
5541         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
5542         Add long double suffix to constant to ensure proper
5543         promotion to long double.
5544
5545 2016-08-03  Tom Tromey  <tom@tromey.com>
5546
5547         [BZ #20311]
5548         * nptl_db/Makefile (headers): Add proc_service.h.
5549         * nptl_db/proc_service.h: Add include guard.  Use
5550         __BEGIN/__END_DECLS.
5551         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
5552         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
5553         arguments.
5554
5555
5556 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5557
5558         [BZ #17730]
5559         Avoid using memalign for TCB allocations.
5560         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
5561         (_dl_allocate_tls_storage): Use malloc and manual alignment.
5562         Avoid alignment gap in the TLS_DTV_AT_TP case.
5563         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
5564         determine the pointer to free.
5565         * nptl/tst-tls3-malloc.c: New test.
5566         * nptl/Makefile (tests): Add it.
5567         (tst-tls3-malloc): Link with libdl, libpthread.
5568         (LDFLAGS-tst-tls3-malloc): Set.
5569         (tst-tls3-malloc.out): Depend on DSO used in test.
5570
5571 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5572
5573         [BZ #17730]
5574         Avoid using memalign for TLS allocations.
5575         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
5576         is_static member with to_free member.
5577         (union dtv): Use struct dtv_pointer.
5578         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
5579         dtv_pointer instead of is_static.
5580         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5581         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
5582         instead of val.
5583         (allocate_dtv_entry): New function.
5584         (allocate_and_init): Return struct dtv_pointer.  Call
5585         allocate_dtv_entry instead of __libc_memalign.
5586         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
5587         instead of val.
5588         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
5589         instead of is_static.  Adjust call to allocate_and_init.
5590         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
5591         struct dtv_pointer instead of val.
5592
5593 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5594
5595         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
5596         (MALLOC_ALIGN_MASK): Move ...
5597         * malloc/malloc-internal.h: ... to here.
5598         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
5599
5600 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
5603         (UDP_ENCAP_GTP1U): Likewise.
5604
5605         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
5606         (PF_MAX): Update value.
5607         (AF_QIPCRTR): New macro.
5608
5609 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5610
5611         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
5612         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5613         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5614         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
5615         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5616         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5617         s_truncf-vis3, s_trunc-vis3.
5618         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5619         (CFLAGS-s_ceil-vis3.c): Likewise.
5620         (CFLAGS-s_floorf-vis3.c): Likewise.
5621         (CFLAGS-s_floor-vis3.c): Likewise.
5622         (CFLAGS-s_truncf-vis3.c): Likewise.
5623         (CFLAGS-s_trunc-vis3.c): Likewise.
5624         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
5625         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
5626         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
5627         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
5628         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
5629         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
5630         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
5631         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
5632         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
5633         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5634         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
5635         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5636
5637 2016-08-02  David S. Miller  <davem@davemloft.net>
5638
5639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5640         (__nearbyint_vis3): Don't check for sNaN before float register is
5641         loaded with the incoming argument.
5642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5643         (__nearbyintf_vis3): Likewise.
5644         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
5645         Likewise.
5646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
5647         Likewise.
5648
5649         * string/test-strncmp.c (do_test_limit): Make sure the test data
5650         stream is aligned as required for the type "CHAR".
5651         (do_test): Likewise.
5652
5653 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5654
5655         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
5656         by beq instructions jumping to the end of the function.
5657         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
5658         clobber list. Use "i" constraint instead of "X".
5659         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
5660         of "X".
5661
5662 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
5663
5664         * bits/libc-header-start.h: New file.
5665         * Makefile (headers): Add bits/libc-header-start.h.
5666         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
5667         (__GLIBC_USE): New macro.
5668         * libio/stdio.h: Define
5669         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5670         <bits/libc-header-start.h> instead of including <features.h>.
5671         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
5672         (open_memstream): Likewise.
5673         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
5674         (__asprintf): Likewise.
5675         (asprintf): Likewise.
5676         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
5677         (getdelim): Likewise.
5678         (getline): Likewise.
5679         * string/string.h: Define
5680         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5681         <bits/libc-header-start.h> instead of including <features.h>.
5682         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
5683         (strndup): Likewise.
5684         * wcsmbs/wchar.h: Define
5685         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5686         <bits/libc-header-start.h> instead of including <features.h>.
5687         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
5688         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
5689
5690 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5691
5692         Support linking against compatibility symbols, for use in tests.
5693         * include/libc-symbols.h (symbol_version_reference): New macro.
5694         (symbol_version): Use it.
5695         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
5696         (compat_symbol): Use compat_symbol_reference.
5697         (compat_symbol_1, compat_symbol_2): Remove.
5698         (compat_symbol_reference, compat_symbol_reference_1)
5699         (compat_symbol_reference_2): New macro.  Use
5700         symbol_version_reference.
5701
5702 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5703
5704         [BZ #19469]
5705         * malloc/Makefile (CPPFLAGS): Compile tests with
5706         -DTEST_NO_MALLOPT.
5707         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
5708
5709 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
5710
5711         [BZ #20033]
5712         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
5713         finite version.
5714         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
5715         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
5716         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
5717         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
5718         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
5719         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
5720         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
5721         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
5722         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
5723         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
5724         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
5725         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
5726         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
5727         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
5728         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
5729         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
5730         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
5731         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
5732         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
5733         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
5734         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
5735         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
5736         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
5737         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
5738         in zero power.
5739
5740 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5741
5742         [BZ #20370]
5743         * malloc/arena.c (get_free_list): Update comment.  Assert that
5744         arenas on the free list have no attached threads.
5745         (remove_from_free_list): New function.
5746         (reused_arena): Call it.
5747
5748 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
5749
5750         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
5751         when it is a NaN.
5752         [_IEEE_FP_INEXACT] Remove.
5753         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
5754         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
5755         when it is a NaN.
5756         [_IEEE_FP_INEXACT] Remove.
5757         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
5758         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
5759         when it is a NaN.
5760         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
5761         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
5762         when its absolute value is greater than 0x1.0p52.
5763         [_IEEE_FP_INEXACT] Remove.
5764         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
5765         when its absolute value is greater than 0x1.0p23.
5766         [_IEEE_FP_INEXACT] Remove.
5767
5768 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
5769
5770         * version.h (RELEASE): Set to "development"
5771         (VERSION): Set to 2.24.90.
5772         * NEWS: Add 2.25 section.
5773
5774         * version.h (RELEASE): Set to "stable"
5775         (VERSION): Set to 2.24.
5776         * include/features.h (__GLIBC_MINOR__): Set to 24.
5777
5778         * NEWS: Add 2.24 fixed bugs.
5779         * po/libc.pot: Regenerate.
5780
5781 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
5782
5783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5784         [$(subdir) = math] (libm-sysdep_routines): Remove.
5785         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5786         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5787         s_truncf-vis3, s_trunc-vis3.
5788         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
5790         file.
5791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
5792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
5793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
5797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
5798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
5800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
5801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
5802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
5803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
5804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
5805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
5806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
5810         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
5811         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
5812         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
5813         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5814         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5815         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5816         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5817         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5818         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
5819         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5820         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5821         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
5822         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5823         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5824         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
5825         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
5826         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
5827         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
5828         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5829         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5830         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
5831         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
5832         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
5833         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
5834
5835 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
5836
5837         [BZ #20384]
5838         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
5839         test-double-libmvec-sincos-avx-main.o,
5840         test-double-libmvec-sincos-avx2-main.o,
5841         test-double-libmvec-sincos-main.o,
5842         test-float-libmvec-sincosf-avx-main.o,
5843         test-float-libmvec-sincosf-avx2-main.o and
5844         test-float-libmvec-sincosf-main.o.
5845         test-float-libmvec-sincosf-avx512-main.o.
5846         ($(objpfx)test-double-libmvec-sincos): Also link with
5847         $(objpfx)test-double-libmvec-sincos-main.o.
5848         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
5849         $(objpfx)test-double-libmvec-sincos-avx-main.o.
5850         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
5851         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
5852         ($(objpfx)test-float-libmvec-sincosf): Also link with
5853         $(objpfx)test-float-libmvec-sincosf-main.o.
5854         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
5855         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
5856         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
5857         test-double-libmvec-sincos-avx512-main.o and
5858         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
5859         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
5860         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
5861         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
5862         (CFLAGS-test-double-libmvec-sincos.c): Removed.
5863         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
5864         (CFLAGS-test-double-libmvec-sincos-main.c): New.
5865         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
5866         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
5867         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
5868         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
5869         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
5870         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
5871         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
5872         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
5873         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
5874         -DREQUIRE_AVX2.
5875         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
5876         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
5877         -DREQUIRE_AVX512F.
5878         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
5879         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
5880         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
5881         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
5882         file.
5883         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
5884         Likewise.
5885         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
5886         Likewise.
5887         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
5888         Likewise.
5889         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
5890         Likewise.
5891         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
5892         Likewise.
5893         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
5894         Likewise.
5895         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
5896         Likewise.
5897
5898 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
5899
5900         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
5901
5902 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5903
5904         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
5905         and typo in a comment about AT_HWCAP entry.
5906
5907 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5908
5909         * sysdeps/aarch64/libm-test-ulps: Updated.
5910
5911 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
5912
5913         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
5914         of r13 as it is not restored in mvcle case.
5915
5916 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
5917
5918         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
5919         Rename "ret" to "__ret".
5920         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
5921         inline_syscall5, inline_syscall6): Likewise.
5922
5923 2016-07-19   Will Newton  <will.newton@gmail.com>
5924
5925         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
5926         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
5927         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
5928         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
5929         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
5930
5931 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
5932
5933         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
5934         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
5935         -mfpmath=387 with $(rtld-CFLAGS).
5936         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
5937         $(rtld-CFLAGS).
5938
5939 2016-07-18   Ross Burton  <ross.burton@intel.com>
5940              Khem Raj  <raj.khem@gmail.com>
5941
5942         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
5943         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
5944         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
5945         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
5946         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
5947         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
5948         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
5949         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
5950         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
5951         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
5952         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
5953         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
5954         R_METAG_TLS_DTPOFF): New.
5955
5956 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5957             Matt Clay  <mclay@lycos.com>
5958
5959         [BZ #20357]
5960         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
5961         to call __mpsin/__mpcos and to negate values.
5962         * math/auto-libm-test-in: Add test.
5963         * math/auto-libm-test-out: Regenerate.
5964
5965 2016-07-18  Zack Weinberg  <zackw@panix.com>
5966
5967         * grp/Makefile: Don't install the internal header grp-merge.h.
5968
5969 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5970
5971         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5972
5973 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5974
5975         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
5976
5977 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5978
5979         [BZ #15368]
5980         * sysdeps/unix/sysv/linux/nptl-signals.h
5981         (__nptl_clear_internal_signals): New function.
5982         (__libc_signal_block_all): Likewise.
5983         (__libc_signal_block_app): Likewise.
5984         (__libc_signal_restore_set): Likewise.
5985         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
5986         implementation.
5987         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
5988         the cached pid/tid value in pthread structure.
5989
5990 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5991
5992         [BZ #20347]
5993         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
5994
5995 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5996
5997         [BZ #20348]
5998         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
5999         preadv64, pwrite64 and pwritev64.
6000
6001 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6002
6003         [BZ #20350]
6004         * posix/tst-preadwrite.c: Renamed to ...
6005         * posix/tst-preadwrite-common.c: This.
6006         (PREAD): Removed.
6007         (PWRITE): Likewise.
6008         (STRINGIFY): Likewise.
6009         (STRINGIFY2): Likewise.
6010         (do_prepare): Make it static and remove function arguments.
6011         (do_test): Likewise.
6012         (PREPARE): Updated.
6013         (TEST_FUNCTION): New.
6014         (name): Make it static.
6015         (fd): Likewise.
6016         (do_prepare): Use create_temp_file.
6017         (do_test): Renamed to ...
6018         (do_test_with_offset): This.  Make it static and accept offset.
6019         Properly check return value of PWRITE and PREAD.  Return bytes
6020         read.  Don't close fd nor unlink name.
6021         * posix/tst-preadwrite.c: Rewrite.
6022         * posix/tst-preadwrite64.c: Likewise.
6023
6024 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6025
6026         [BZ #20309]
6027         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
6028         -mtls-dialect=gnu2 works.
6029         * configure: Regenerated.
6030         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
6031         (tests): Add tst-gnu2-tls1.
6032         (modules-names): Add tst-gnu2-tls1mod.
6033         ($(objpfx)tst-gnu2-tls1): New.
6034         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
6035         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
6036         * elf/tst-gnu2-tls1.c: New file.
6037         * elf/tst-gnu2-tls1mod.c: Likewise.
6038         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
6039         bytes for push in the PLT entry to align the stack.
6040
6041 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
6042
6043         [BZ #20349]
6044         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
6045
6046 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6047
6048         [BZ #18707]
6049         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
6050         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
6051
6052 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6053
6054         * sysdeps/unix/sysv/linux/sysdep.h
6055         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
6056         guards.
6057         * misc/tst-preadvwritev-common.c: New file.
6058         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
6059         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
6060         a check for files larger than 2GB.
6061
6062         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6063         (__ASSUME_OFF_DIFF_OFF64): Remove define.
6064         * sysdeps/unix/sysv/linux/pread.c
6065         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
6066         __OFF_T_MATCHES_OFF64_T.
6067         * sysdeps/unix/sysv/linux/pread64.c
6068         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
6069         * sysdeps/unix/sysv/linux/preadv.c
6070         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
6071         * sysdeps/unix/sysv/linux/preadv64.c
6072         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
6073         * sysdeps/unix/sysv/linux/pwrite.c
6074         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
6075         * sysdeps/unix/sysv/linux/pwrite64.c
6076         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
6077         * sysdeps/unix/sysv/linux/pwritev.c
6078         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
6079         * sysdeps/unix/sysv/linux/pwritev64.c
6080         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
6081
6082 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
6083
6084         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6085         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
6086
6087 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6088
6089         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
6090
6091 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6092
6093         [BZ #20240]
6094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6095         (CFLAGS-s_modf-ppc32.c): New variable.
6096         (CFLAGS-s_modff-ppc32.c): Likewise.
6097         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6098         (CFLAGS-s_modf-ppc64.c): Likewise.
6099         (CFLAGS-s_modff-ppc64.c): Likewise.
6100
6101 2016-07-07  Andreas Schwab  <schwab@suse.de>
6102
6103         [BZ #20263]
6104         * nptl/tst-robust10.c: New test.
6105         * nptl/Makefile (tests): Add tst-robust10.
6106
6107 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
6108
6109         [BZ #20263]
6110         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
6111
6112 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
6113
6114         * sysdeps/s390/linkmap.h (struct link_map_machine):
6115         Remove member gotplt and add member jmprel.
6116         * sysdeps/s390/s390-32/dl-machine.h
6117         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
6118         instead of gotplt with &got[3].
6119         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
6120         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6121
6122 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
6123
6124         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
6125
6126 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6127
6128         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
6129         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
6130         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6131         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
6132         * libio/vtables.c (_IO_vtable_check)
6133         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6134         * libio/libioP.h (IO_set_accept_foreign_vtables)
6135         [!PTR_MANGLE]: Do not call PTR_MANGLE.
6136
6137 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6138
6139         [BZ #20314]
6140         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
6141         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
6142         $(common-objpfx)cmath.
6143         ($(common-objpfx)cstdlib): New target.
6144         ($(common-objpfx)cmath): Likewise.
6145
6146 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
6147
6148         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
6149
6150 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6151
6152         [BZ #20327]
6153         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
6154         are not part of the string.
6155
6156 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6157
6158         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
6159         * nptl/tst-cancel4-common.h (fifoname): New variable.
6160         (fifofd): Likewise.
6161         (cl_fifo): New function.
6162         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
6163         SIGINT.
6164         (tf_open): Add early cancel test.
6165
6166 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
6167
6168         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
6169
6170 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
6171
6172         * sysdeps/generic/ldsodefs.h
6173         (dl_symbol_visibility_binds_local_p): New inline function.
6174         * elf/dl-addr.c (determine_info): Treat hidden and internal
6175         symbols as local.
6176         * elf/dl-lookup.c (do_lookup_x): Likewise.
6177         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
6178
6179 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
6180
6181         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
6182         invalid exception for a sNaN input.
6183         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6184         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
6185         (__nearbyint_vis3): Likewise
6186         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
6187         (__nearbyintf_vis3): Likewise
6188         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
6189         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6190         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
6191         Likewise.
6192         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
6193         Likewise.
6194
6195 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         [BZ #20139]
6198         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
6199         (HAVE_AVX512DQ_ASM_SUPPORT): This.
6200         * sysdeps/x86_64/configure.ac: Require assembler from binutils
6201         2.24 or above.
6202         (HAVE_AVX512_ASM_SUPPORT): Removed.
6203         (HAVE_AVX512DQ_ASM_SUPPORT): New.
6204         * sysdeps/x86_64/configure: Regenerated.
6205         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
6206         check unconditional.
6207         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
6208         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6209         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6210         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6211         Likewise.
6212         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
6213         Likewise.
6214         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
6215         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
6216         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6217         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6218         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
6219         Likewise.
6220         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
6221         Likewise.
6222         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6223         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6224         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
6225         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
6226         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
6227         Likewise.
6228         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
6229         Likewise.
6230         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
6231         Likewise.
6232         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
6233         Likewise.
6234         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
6235         Likewise.
6236         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
6237         Likewise.
6238         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
6239         Likewise.
6240         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
6241         Likewise.
6242         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
6243         Likewise.
6244         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
6245         Likewise.
6246         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
6247         Likewise.
6248
6249 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
6250
6251         [BZ #20024]
6252         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
6253         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
6254         of this implementation of vector function.
6255         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
6256         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
6257         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6258         Likewise.
6259         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
6260         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
6261         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
6262         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
6263         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
6264         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
6265         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6266         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
6267         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
6268         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
6269         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
6270         for testing vector sincos with fixed ABI.
6271         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
6272         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
6273         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
6274         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
6275         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
6276         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
6277         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
6278         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
6279         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
6280         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
6281         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
6282         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
6283         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
6284         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
6285         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6286         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6287
6288 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6289
6290         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
6291
6292 2016-06-30  Anton Blanchard  <anton@samba.org>
6293
6294         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6295         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
6296         s_sinf-ppc64.
6297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
6298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
6300         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
6301
6302 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6303
6304         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6305         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6306         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
6307         e_expf-ppc64.
6308         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
6309         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
6310         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
6311         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
6312
6313 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
6314
6315         [BZ #20277]
6316         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
6317         when SHARED is defined.
6318
6319 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6320
6321         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
6322         (index_arch_Prefer_ERMS): Likewise.
6323         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
6324         __memcpy_erms for Prefer_ERMS.
6325         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6326         (__memmove_erms): Enabled for libc.a.
6327         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
6328         __memmove_erms or Prefer_ERMS.
6329         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
6330         __mempcpy_erms for Prefer_ERMS.
6331         * sysdeps/x86_64/multiarch/memset.S (memset): Return
6332         __memset_erms for Prefer_ERMS.
6333
6334 2016-06-30  Andreas Schwab  <schwab@suse.de>
6335
6336         [BZ #20262]
6337         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
6338         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
6339         of memory.
6340
6341 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6342
6343         [BZ #18645]
6344         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
6345         (test-extras): Add tst-cleanupx4aux.
6346         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
6347         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
6348         tst-cleanupx4aux.o.
6349         * nptl/tst-cleanupx4aux.c: New file.
6350
6351 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6352
6353         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6354
6355 2016-06-29  Andreas Schwab  <schwab@suse.de>
6356
6357         [BZ #20260]
6358         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
6359         address before the beginning of the string as an integer to avoid
6360         array-bounds warning.
6361
6362 2016-06-28  Richard Henderson  <rth@redhat.com>
6363
6364         * elf/elf.h (EM_BPF): New.
6365         (EM_NUM): Update.
6366         (R_BPF_NONE, R_BPF_MAP_FD): New.
6367
6368         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
6369         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
6370         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
6371         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
6372         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
6373         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
6374         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
6375         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
6376         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
6377         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
6378         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
6379         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
6380         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
6381         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
6382         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
6383         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
6384         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
6385         (EM_NUM): Update.
6386
6387 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
6388
6389         [BZ #18960]
6390         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
6391         Set _nl_current_LC_CATEGORY_used to two instead of one.
6392
6393 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
6394
6395         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
6396         (do_test): ... this.
6397         (TEST_FUNCTION): New macro.
6398          Include test-skeleton.c.
6399         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
6400         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
6401
6402 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
6403
6404         [BZ #15479]
6405         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
6406         floating-point environment rather than just control word.
6407         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
6408         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
6409         floating-point environment, with "invalid" exceptions merged in,
6410         rather than just control word.
6411         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
6412         * math/libm-test.inc (trunc_test_data): Do not allow spurious
6413         "inexact" exceptions.
6414
6415         [BZ #15479]
6416         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
6417         floating-point environment rather than just control word.
6418         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
6419         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
6420         floating-point environment, with "invalid" exceptions merged in,
6421         rather than just control word.
6422         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
6423         * math/libm-test.inc (floor_test_data): Do not allow spurious
6424         "inexact" exceptions.
6425
6426         [BZ #15479]
6427         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
6428         floating-point environment rather than just control word.
6429         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6430         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
6431         floating-point environment, with "invalid" exceptions merged in,
6432         rather than just control word.
6433         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
6434         * math/libm-test.inc (ceil_test_data): Do not allow spurious
6435         "inexact" exceptions.
6436
6437 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
6438
6439         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
6440         __libc_vfork.
6441         (__vfork) [IS_IN (libc)]: Remove alias.
6442         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
6443         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6444         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6445
6446 2016-06-24  Torvald Riegel  <triegel@redhat.com>
6447
6448         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
6449         of atomic_compare_and_exchange_bool_rel.
6450         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6451         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
6452         catomic_compare_and_exchange_bool_rel): Remove.
6453         * sysdeps/aarch64/atomic-machine.h
6454         (atomic_compare_and_exchange_bool_rel): Likewise.
6455         * sysdeps/alpha/atomic-machine.h
6456         (atomic_compare_and_exchange_bool_rel): Likewise.
6457         * sysdeps/arm/atomic-machine.h
6458         (atomic_compare_and_exchange_bool_rel): Likewise.
6459         * sysdeps/mips/atomic-machine.h
6460         (atomic_compare_and_exchange_bool_rel): Likewise.
6461         * sysdeps/microblaze/atomic-machine.h
6462         ( __arch_compare_and_exchange_bool_8_rel,
6463         __arch_compare_and_exchange_bool_16_rel): Likewise.
6464         * sysdeps/powerpc/atomic-machine.h
6465         ( __arch_compare_and_exchange_bool_8_rel,
6466         __arch_compare_and_exchange_bool_16_rel): Likewise.
6467         * sysdeps/powerpc/powerpc32/atomic-machine.h
6468         ( __arch_compare_and_exchange_bool_32_rel,
6469         __arch_compare_and_exchange_bool_64_rel): Likewise.
6470         * sysdeps/powerpc/powerpc64/atomic-machine.h
6471         ( __arch_compare_and_exchange_bool_32_rel,
6472         __arch_compare_and_exchange_bool_64_rel): Likewise.
6473         * sysdeps/tile/atomic-machine.h
6474         (atomic_compare_and_exchange_bool_rel): Likewise.
6475
6476 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
6477
6478         [BZ #20296]
6479         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
6480         when either argument is a NaN.
6481         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
6482         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
6483
6484         * math/libm-test.inc (snan_value_ld): New macro.
6485         (isgreater_test_data): Add sNaN tests.
6486         (isgreaterequal_test_data): Likewise.
6487         (isless_test_data): Likewise.
6488         (islessequal_test_data): Likewise.
6489         (islessgreater_test_data): Likewise.
6490         (isunordered_test_data): Likewise.
6491         (nextafter_test_data): Likewise.
6492         (nexttoward_test_data): Likewise.
6493         (remainder_test_data): Likewise.
6494         (remquo_test_data): Likewise.
6495         (significand_test_data): Likewise.
6496         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
6497
6498 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6499
6500         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
6501         environment macros are defined.
6502         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
6503
6504 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6505
6506         [BZ #20191]
6507         Implement vtable verification in libio.
6508         * Makerules (shlib.lds): Place __libc_IO_vtables section.
6509         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
6510         * debug/vdprintf_chk.c (__vdprintf_chk): Call
6511         _IO_new_file_init_internal instead of _IO_file_init.
6512         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
6513         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
6514         * libio/Makefile (routines): Add vtables.
6515         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
6516         (_IO_init): Remove, not for internal use.
6517         (_IO_init_internal): Declare, internal replacement for _IO_init.
6518         (_IO_file_init): Remove, not for internal use.
6519         (_IO_new_file_init): Remove, not for internal use.
6520         (_IO_new_file_init_internal): Declare, internal replacement for
6521         _IO_new_file_init.
6522         (_IO_old_file_init): Remove, not for internal use.
6523         (_IO_old_file_init_internal): Declare, internal replacement for
6524         _IO_old_file_init.
6525         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
6526         internal use.
6527         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
6528         Declare.
6529         (libio_vtable): New macro.
6530         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
6531         functions.
6532         * libio/fileops.c (_IO_new_file_init_internal): Rename from
6533         _IO_new_file_init.
6534         (_IO_new_file_init): New externally visible wrapper which disables
6535         vtable verification.
6536         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
6537         Define as vtables.
6538         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
6539         (_IO_init): New externally visible wrapper which disables
6540         vtable verification.
6541         * libio/iofdopen.c (_IO_new_fdopen): Call
6542         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
6543         comment.
6544         * libio/iofopen.c (__fopen_internal): Call
6545         _IO_new_file_init_internal instead of _IO_file_init.
6546         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
6547         Define as vtables.
6548         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
6549         _IO_new_file_init_internal instead of _IO_file_init.
6550         * libio/iopopen.c (_IO_new_popen): Likewise.
6551         (_IO_proc_jumps): Define as vtable.
6552         * libio/iovdprintf.c (_IO_vdprintf): Call
6553         _IO_new_file_init_internal instead of _IO_file_init.
6554         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
6555         (__open_memstream): Call _IO_init_internal instead of _IO_init.
6556         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
6557         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
6558         _IO_old_file_init.
6559         (_IO_old_file_init): New externally visible wrapper which disables
6560         vtable verification.
6561         (_IO_old_file_jumps): Define as vtable.
6562         * libio/oldiofdopen.c (_IO_old_fdopen): Call
6563         _IO_old_file_init_internal instead of _IO_old_file_init.
6564         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6565         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6566         (_IO_old_proc_jumps): Define as vtable.
6567         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
6568         Define as vtables.
6569         * libio/vtables.c: New file.
6570         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
6571         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
6572         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
6573         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6574         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6575         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
6576         instead of _IO_init.
6577
6578 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6579
6580         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
6581
6582 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6583
6584         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
6585         potentially unused.
6586
6587 2016-06-22  Florian Weimer  <fweimer@redhat.com>
6588
6589         * test-skeleton.c (write_message): New function.
6590         * malloc/tst-mallocfork2.c (write_message): Remove.
6591         * debug/tst-longjmp_chk2.c (write_indented): New function.
6592         (write_message): Remove.
6593         (stackoverflow_handler): Call write_indented.
6594
6595 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
6596
6597         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
6598         "inexact" exceptions after fnstenv.
6599         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6600         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6601         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6602
6603 2015-06-22  Zack Weinberg  <zackw@panix.com>
6604
6605         * sysdeps/generic/bits/hwcap.h: Moved to ...
6606         * bits/hwcap.h: Here.
6607
6608 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
6609
6610         * sysdeps/aarch64/memcpy.S (memcpy):
6611         Further tuning for performance.
6612
6613 2016-06-21  Florian Weimer  <fweimer@redhat.com>
6614
6615         [BZ #20284]
6616         * malloc/arena.c (reused_arena): Do not return NULL if we start
6617         out with a non-corrupted arena.
6618
6619 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6620
6621         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
6622         * misc/tst-preadvwritev.c: New file.
6623         * misc/tst-preadvwritev64.c: Likewise.
6624         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
6625         usage.
6626         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
6627         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
6628         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
6629         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
6630
6631 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6632
6633         [BZ #19654]
6634         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6635         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
6636         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
6637         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
6638         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
6639         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
6640         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
6641         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
6642         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
6643         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
6644         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
6645         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
6646         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
6647         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
6648         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
6649         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
6650         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
6651         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
6652         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
6653         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
6654         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
6655         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
6656         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
6657         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
6658         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
6659         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
6660
6661 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6662
6663         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
6664         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
6665
6666 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6667
6668         * sysdeps/aarch64/memcpy.S (memcpy):
6669         Rewrite of optimized memcpy and memmove.
6670         * sysdeps/aarch64/memmove.S (memmove): Remove
6671         memmove code (merged into memcpy.S).
6672
6673 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6674
6675         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
6676         * sysdeps/generic/dl-dtv.h: New file.
6677         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6678         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
6679         (dtv_t): Remove.
6680         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6681         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
6682         (dtv_t): Remove.
6683         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6684         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
6685         (dtv_t): Remove.
6686         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6687         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
6688         (dtv_t): Remove.
6689         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6690         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
6691         (dtv_t): Remove.
6692         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6693         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
6694         (dtv_t): Remove.
6695         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6696         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
6697         (dtv_t): Remove.
6698         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
6699         (dtv_t): Remove.
6700         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6701         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
6702         (dtv_t): Remove.
6703         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6704         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
6705         (dtv_t): Remove.
6706         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6707         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
6708         (dtv_t): Remove.
6709         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6710         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
6711         (dtv_t): Remove.
6712         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6713         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
6714         (dtv_t): Remove.
6715         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6716         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
6717         (dtv_t): Remove.
6718         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6719         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
6720         (dtv_t): Remove.
6721         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6722         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
6723         (dtv_t): Remove.
6724
6725 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6726
6727         Revert symbol poisoning of  __malloc_initialize_hook.
6728         * include/stdc-predef.h (__malloc_initialize_hook): Remove
6729         poisoning.
6730         * malloc/Makefile: Remove un-poisoning.
6731         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
6732         instead of old__malloc_initialize_hook.
6733         * malloc/malloc-hooks.h: Likewise.
6734         * malloc/malloc.c: Likewise.
6735         * malloc/mcheck-init.c: Likewise.
6736
6737 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
6738
6739         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
6740
6741 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
6742
6743         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
6744         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
6745         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6746         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6747
6748 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6749
6750         * NEWS: Mention addition of nextup and nextdown.
6751         * manual/arith.texi: Document nextup and nextdown.
6752         * manual/libm-err-tab.pl: Add nextup and nextdown.
6753         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
6754         * math/Versions (libm): Add GLIBC_2.24.
6755         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
6756         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
6757         Add new test.
6758         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
6759         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
6760         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
6761         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
6762         (nextup_test_data): Likewise.
6763         (nextdown_test_data): Likewise.
6764         * math/s_nextdown.c: New file.
6765         * math/s_nextdownf.c: Likewise.
6766         * math/s_nextdownl.c: Likewise.
6767         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
6768         F(nextup): New function.
6769         F(nextdown): Likewise.
6770         * math/tgmath.h: Add nextup and nextdown.
6771         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
6772         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
6773         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
6774         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
6775         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
6776         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
6777         Add nextup and nextdown.
6778         (CFLAGS-nldbl-nextup.c): New variable.
6779         (CFLAGS-nldbl-nextdown.c): Likewise.
6780         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
6781         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
6782         * sysdeps/nacl/libm.abilist: Update.
6783         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6784         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6785         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6786         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6787         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6788         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6789         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6790         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6791         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6792         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6793         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6794         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6797         Likewise.
6798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6800         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6801         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6802         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6803         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6804         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6805         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
6806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
6807         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6808         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
6810         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6811
6812 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6813
6814         * manual/pattern.texi: Fix typos & grammar errors.
6815
6816 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6817
6818         * manual/search.texi: Fix typos & grammar errors.
6819
6820 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6821
6822         * manual/message.texi: Fix typos & grammar errors.
6823
6824 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
6825
6826         * manual/contrib.texi: Fix spelling typos.
6827         * manual/crypt.texi: Likewise.
6828         * manual/filesys.texi: Likewise.
6829         * manual/locale.texi: Likewise.
6830         * manual/message.texi: Likewise.
6831         * manual/nss.texi: Likewise.
6832         * manual/string.texi: Likewise.
6833
6834 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6835
6836         * manual/locale.texi: Fix typos & grammar errors.
6837
6838 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6839
6840         * manual/charset.texi: Fix typos & grammar errors.
6841
6842 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6843
6844         * manual/string.texi: Fix typos.
6845
6846 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6847
6848         * manual/ctype.texi: Fix typos.
6849
6850 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6851
6852         * manual/memory.texi: Fix various typos & grammar errors.
6853
6854 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
6855
6856         [BZ #20255]
6857         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
6858         * math/libm-test.inc (fdim_test_data): Add another test.
6859
6860         [BZ #6796]
6861         [BZ #20255]
6862         [BZ #20256]
6863         * math/s_fdim.c: Include <math_private.h>.
6864         (__fdim): Use math_narrow_eval on result.
6865         * math/s_fdimf.c: Include <math_private.h>.
6866         (__fdimf): Use math_narrow_eval on result.
6867         * sysdeps/i386/fpu/s_fdim.S: Remove file.
6868         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
6869         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
6870         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
6871         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
6872         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
6873         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
6874         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
6875         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
6876         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
6877         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
6878         * math/libm-test.inc (fdim_test_data): Expect errno setting on
6879         overflow.  Add sNaN tests.
6880
6881         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
6882         fpclassify.
6883         * math/s_fdimf.c (__fdimf): Likewise.
6884         * math/s_fdiml.c (__fdiml): Likewise.
6885
6886 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6887
6888         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6889         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
6890         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6891         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6892         ifunc'ed strcasecmp/strncasecmp.
6893         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
6894         [EALIGN]: Removed.
6895         [END]: Likewise.
6896         [__strcasecmp]: Define instead of the above to control symbol name.
6897         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
6898         for __strcasecmp_power8.
6899         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
6900         for __strncasecmp_power8.
6901         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
6902         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
6903         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
6904         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
6905         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
6906         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
6907
6908 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
6909
6910         [BZ #20252]
6911         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
6912         arguments when second argument is a NaN.
6913         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
6914         qNaN tests.
6915
6916         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
6917         (conj_test_data): Likewise.
6918         (copysign_test_data): Likewise.
6919         (creal_test_data): Likewise.
6920         (fma_test_data): Likewise.
6921         (fmod_test_data): Likewise.
6922
6923         [BZ #20250]
6924         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
6925         itself.
6926         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
6927         zero input to itself.
6928         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
6929         Likewise.
6930         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
6931         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6932         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
6933         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6934         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
6935
6936 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6937
6938         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
6939         * nptl/tst-cancel4-common.c: New file.
6940         * nptl/tst-cancel4-common.h: Likewise.
6941         * nptl/tst-cancel4.c: Move common definitions to
6942         tst-cancel4-common.{c,h} file.
6943         * nptl/tst-cancel4_1.c: New test.
6944         * nptl/tst-cancel4_2.c: New test.
6945
6946 2016-06-13  Florian Weimer  <fweimer@redhat.com>
6947
6948         [BZ #20248]
6949         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
6950         (write_message): New function.
6951         (stackoverflow_handler): Call it instead of printf, to avoid
6952         excessive stack usage by printf.
6953         (do_test): Restore SIGSEGV, SIGBUS default handlers.
6954
6955 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6956
6957         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
6958         (prio_inherit_missing): Remove define.
6959         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6960         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6961         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
6962         Likewise.
6963         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6964         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6965         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6966         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6967         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6968         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6969
6970 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
6971
6972         [BZ #19670]
6973         [BZ #19672]
6974
6975         * io/test-lfs.c (do_prepare): Use xmalloc.
6976         * io/tst-fcntl.c (do_prepare): Likewise.
6977         * libio/tst-fopenloc.c (do_bz17916): Likewise.
6978         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
6979         * login/tst-utmp.c (do_prepare): Likewise.
6980         * posix/tst-exec.c (do_prepare): Likewise.
6981         * posix/tst-pathconf.c (prepare): Likewise.
6982         * posix/tst-spawn.c (do_prepare): Likewise.
6983         * posix/tst-truncate.c (do_prepare): Likewise.
6984         * rt/tst-aio.c (do_prepare): Likewise.
6985         * rt/tst-aio64.c (do_prepare): Likewise.
6986
6987 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6988
6989         [BZ #20237]
6990         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
6991         (get*ent): Set entidx to NULL during initialization.  If entidx is
6992         NULL, start iteration from the beginning.
6993
6994 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6995
6996         * malloc/malloc.c (musable): Return correct size for dumped fake
6997         mmapped chunk.
6998
6999 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7000
7001         [BZ #20222]
7002         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
7003         (_IO_cookie_write): Likewise.
7004         (_IO_cookie_seek): Likewise.
7005         (_IO_cookie_close): Likewise.
7006         (_IO_old_cookie_seek): Likewise.
7007         (set_callbacks): New function.
7008         (_IO_cookie_init): Call set_callbacks to copy callbacks.
7009
7010 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
7011
7012         * locale/programs/localedef.c (oldstyle_tables): Remove.
7013         * locale/programs/localedef.h (oldstyle_tables): Likewise.
7014
7015 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
7016
7017         [BZ #20240]
7018         * math/Makefile (CFLAGS-s_modf.c): New variable.
7019         (CFLAGS-s_modff.c): Likewise.
7020         (CFLAGS-s_modfl.c): Likewise.
7021         * math/libm-test.inc (modf_test_data): Add sNaN tests.
7022
7023 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
7024
7025         [BZ #20215]
7026         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
7027         [!__GNUC_PREREQ (3,2)]: Likewise.
7028
7029 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
7030
7031         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
7032         (msghdr.msg_controllen): Likewise.
7033         (cmsghdr.cmsg_len): Likewise.
7034         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
7035         ptw-oldsendmsg.
7036         (CFLAGS-oldrecvmsg.c): Remove rule.
7037         (CFLAGS-oldsendmsg.c): Likewise.
7038         (CFLAGS-recvmsg.c): Add rule.
7039         (CFLAGS-sendmsg.c): Likewise.
7040         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
7041         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
7042         (CFLAGS-recvmsg.c): Remove rule.
7043         (CFLAGS-sendmsg.c): Likewise.
7044         (CFLAGS-oldrecvmsg.c): Likewise.
7045         (CFLAGS-oldsendmsg.c): Likewise.
7046         (CFLAGS-recvmmsg.c): Likewise.
7047         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
7048         to kernel defined interfaces.
7049         (msghdr.msg_controllen): Likewise.
7050         (cmsghdr.cmsg_len): Likewise.
7051         (msghdr.__glibc_reserved1): Remove member.
7052         (msghdr.__glibc_reserved2): Likewise.
7053         (cmsghdr.__glibc_reserved1): Likewise.
7054         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
7055         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
7056         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7057         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7058         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
7059         version.
7060         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
7061         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
7062         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
7063         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
7064         Remove recvmsg and sendmsg.
7065         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
7066         Likewise.
7067         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7068         Likewise.
7069         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7070         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7071         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7072         Likewise.
7073         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7074         Likewise.
7075         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
7076         [libc] (GLIBC_2.24): Likewise.
7077         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7078         Likewise.
7079         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7080         Likewise.
7081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7082         [libc] (GLIBC_2.24): Likewise.
7083         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7084         Likewise.
7085         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7086         Likewise.
7087         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7088         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7089         Likewise.
7090         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7091         Likewise.
7092         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7093         Likewise.
7094         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
7095         Likewise.
7096         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
7097         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
7098         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
7099         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
7100         version for {recv,send,recm,sendm}msg.
7101         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7102         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7103         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7104         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7105         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7106         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7107         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7108         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7109         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7110         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7111         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7112         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7114         Likewise.
7115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7116         Likewise.
7117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7119         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7120         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7121         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7122         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7123         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7124         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7125         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7126         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7127         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7128         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7129         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7130
7131 2016-06-10  Florian Weimer  <fweimer@redhat.com>
7132
7133         [BZ #19564]
7134         Remove __malloc_initialize_hook from the API.
7135         * malloc/malloc.h (__malloc_initialize_hook): Remove.
7136         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
7137         #pragma GCC poison.
7138         * malloc/malloc-hooks.h: New file.
7139         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
7140         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
7141         (old__malloc_initialize_hook): Rename from
7142         __malloc_initialize_hook to evade poisoning.  Turn into compat
7143         symbol.
7144         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
7145         __malloc_initialize_hook.
7146         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
7147         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
7148         * manual/memory.texi (Hooks for Malloc): Remove
7149         __malloc_initialize_hook.  Adjust hook example.
7150
7151 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
7152
7153         [BZ #20235]
7154         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
7155         itself.
7156         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7157         * math/libm-test.inc (log2_test_data): Add sNaN tests.
7158
7159         [BZ #20234]
7160         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
7161         infinity or NaN input to itself.
7162
7163         [BZ #20233]
7164         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
7165         to itself.
7166
7167         [BZ #20232]
7168         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
7169         itself.
7170
7171 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7172
7173         * sysdeps/x86_64/start.S (_start): Always indirect branch to
7174         __libc_start_main via GOT.
7175
7176 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7177
7178         * sysdeps/x86_64/memcopy.h: New file.
7179         * sysdeps/x86_64/wordcopy.c: Likewise.
7180
7181 2016-06-09  Florian Weimer  <fweimer@redhat.com>
7182
7183         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
7184         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
7185         <cstdlib>.
7186         (optimization_barrier): New.
7187         (do_test): Use it.  Call quick_exit in the global namespace.
7188         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
7189         instead of <cstdlib>, <thread>.
7190         (optimization_barrier): New.
7191         (non_main_thread): Adjust declaration.  Call optimization_barrier.
7192         Call quick_exit in the global namespace.
7193         (do_test): Call optimization_barrier.  Use pthread_create,
7194         pthread_join instead of std::thread.
7195
7196 2016-06-09  Andreas Schwab  <schwab@suse.de>
7197
7198         [BZ #19755]
7199         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
7200         new entries in auto-propagate mode.
7201         * nscd/grpcache.c (cache_addgr): Likewise.
7202
7203 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
7204
7205         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
7206         New functions.
7207         (add_temp_file): Use them.
7208
7209 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
7210
7211         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
7212
7213 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
7214
7215         [BZ #20229]
7216         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
7217         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7218         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
7219
7220         [BZ #20228]
7221         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
7222         itself.
7223         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
7224         * math/libm-test.inc (log10_test_data): Add sNaN tests.
7225
7226         [BZ #20227]
7227         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
7228         itself.
7229         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
7230         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7231         * math/libm-test.inc (log_test_data): Add sNaN tests.
7232
7233         [BZ #20226]
7234         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
7235         itself.
7236         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7237         * math/libm-test.inc (exp_test_data): Add sNaN tests.
7238         (exp10_test_data): Likewise.
7239         (expm1_test_data): Likewise.
7240
7241         [BZ #20225]
7242         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
7243         itself.
7244         * math/s_ldexpf.c (__ldexpf): Likewise.
7245         * math/s_ldexpl.c (__ldexpl): Likewise.
7246         * math/w_scalbln.c (__w_scalbln): Likewise.
7247         * math/w_scalblnf.c (__w_scalblnf): Likewise.
7248         * math/w_scalblnl.c (__w_scalblnl): Likewise.
7249         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
7250         (scalbln_test_data): Likewise.
7251
7252         [BZ #20224]
7253         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
7254         argument to itself.
7255         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
7256
7257 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7258
7259         [BZ #19776]
7260         * sysdeps/x86_64/memcpy.S: Make it dummy.
7261         * sysdeps/x86_64/mempcpy.S: Likewise.
7262         * sysdeps/x86_64/memmove.S: New file.
7263         * sysdeps/x86_64/memmove_chk.S: Likewise.
7264         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
7265         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
7266         * sysdeps/x86_64/memmove.c: Removed.
7267         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
7268         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
7269         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
7270         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7271         Likewise.
7272         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7273         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7274         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7275         memcpy-sse2-unaligned, memmove-avx-unaligned,
7276         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
7277         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7278         (__libc_ifunc_impl_list): Replace
7279         __memmove_chk_avx512_unaligned_2 with
7280         __memmove_chk_avx512_unaligned.  Remove
7281         __memmove_chk_avx_unaligned_2.  Replace
7282         __memmove_chk_sse2_unaligned_2 with
7283         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
7284         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
7285         with __memmove_avx512_unaligned.  Replace
7286         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
7287         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
7288         with __memcpy_chk_avx512_unaligned.  Remove
7289         __memcpy_chk_avx_unaligned_2.  Replace
7290         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
7291         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
7292         Replace __memcpy_avx512_unaligned_2 with
7293         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
7294         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
7295         with __mempcpy_chk_avx512_unaligned.  Remove
7296         __mempcpy_chk_avx_unaligned_2.  Replace
7297         __mempcpy_chk_sse2_unaligned_2 with
7298         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
7299         Replace __mempcpy_avx512_unaligned_2 with
7300         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
7301         Replace __mempcpy_sse2_unaligned_2 with
7302         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
7303         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
7304         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
7305         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
7306         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
7307         (ENTRY): Removed.
7308         (END): Likewise.
7309         (ENTRY_CHK): Likewise.
7310         (libc_hidden_builtin_def): Likewise.
7311         Don't include ../memcpy.S.
7312         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
7313         __memcpy_chk_avx512_unaligned_erms and
7314         __memcpy_chk_avx512_unaligned.  Use
7315         __memcpy_chk_avx_unaligned_erms and
7316         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7317         Default to __memcpy_chk_sse2_unaligned.
7318         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7319         Change function suffix from unaligned_2 to unaligned.
7320         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
7321         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
7322         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
7323         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
7324         (ENTRY): Removed.
7325         (END): Likewise.
7326         (ENTRY_CHK): Likewise.
7327         (libc_hidden_builtin_def): Likewise.
7328         Don't include ../mempcpy.S.
7329         (mempcpy): New.  Add a weak alias.
7330         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
7331         __mempcpy_chk_avx512_unaligned_erms and
7332         __mempcpy_chk_avx512_unaligned.  Use
7333         __mempcpy_chk_avx_unaligned_erms and
7334         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7335         Default to __mempcpy_chk_sse2_unaligned.
7336
7337 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7338
7339         [BZ #19881]
7340         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
7341         into ...
7342         * sysdeps/x86_64/memset.S: This.
7343         (__bzero): Removed.
7344         (__memset_tail): Likewise.
7345         (__memset_chk): Likewise.
7346         (memset): Likewise.
7347         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
7348         defined.
7349         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
7350         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
7351         (__memset_zero_constant_len_parameter): Check SHARED instead of
7352         PIC.
7353         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7354         memset-avx2 and memset-sse2-unaligned-erms.
7355         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7356         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
7357         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
7358         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7359         (__bzero): Enabled.
7360         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
7361         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
7362         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
7363         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
7364         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7365         (memset): Removed.
7366         (__memset_chk): Likewise.
7367         (MEMSET_SYMBOL): New.
7368         (libc_hidden_builtin_def): Replace __memset_sse2 with
7369         __memset_sse2_unaligned.
7370         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
7371         __memset_chk_sse2 and __memset_chk_avx2 with
7372         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
7373         Use __memset_chk_sse2_unaligned_erms or
7374         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
7375         __memset_chk_avx512_unaligned_erms and
7376         __memset_chk_avx512_unaligned.
7377
7378 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7379
7380         * math/gen-auto-libm-test.c (fp_format_desc): remove
7381         suffix member.
7382         (output_generic_value): Remove usage of suffix member,
7383         and the resulting unuse of the fp_format argument.
7384         (output_for_one_input_case): Remove unused fp_format
7385         parameter.
7386
7387         * math/auto-libm-test-out: Regenerate.
7388
7389         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
7390         usage with TEST_COND_ibm128.
7391         (TEST_COND_flt_32): Remove.
7392         (TEST_COND_dbl_64): Remove.
7393         (TEST_COND_ldbl_96_intel): Remove.
7394         (TEST_COND_ldbl_96_m68k): Remove.
7395         (TEST_COND_ldbl_128): Remove.
7396
7397 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7398
7399         * auto-libm-test-in:
7400         Replace flt-32 usage with binary32.
7401         Replace dbl-64 usage with binary64.
7402         Replace ldbl-intel-96 usage with intel96.
7403         Replace ldbl-m68k-96 usage with m68k96.
7404         Replace ldbl-128ibm usage with ibm128.
7405         Replace ldbl-128 usage with binary128.
7406
7407         * auto-libm-test-out: Regenerate.
7408
7409 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7410
7411         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
7412         (parse_ulps): Dynamically generate type name matching
7413         string from all_floats.
7414         (get_ulps): Generate the ulps as an array instead.
7415         (output_ulps): Dynamically compose the type based
7416         on the number of supported formats, and print
7417         the indices as type specific helper macros.
7418
7419         * math/libm-test.inc: Remove comment about CHOOSE.
7420         (ulp_data): Generate the type in libm-test-ulps.h.
7421         (ULP_IDX): New macro.
7422         (find_ulps): Update usage of max_ulp.
7423
7424         * math/test-double-vlen2.h (CHOOSE): Remove.
7425         * math/test-double-vlen4.h (CHOOSE): Likewise.
7426         * math/test-double-vlen8.h (CHOOSE): Likewise.
7427         * math/test-float.c (CHOOSE): Likewise.
7428         * math/test-float-finite.c (CHOOSE): Likewise.
7429         * math/test-double.c (CHOOSE): Likewise.
7430         * math/test-double-finite.c (CHOOSE): Likewise.
7431         * math/test-idouble.c (CHOOSE): Likewise.
7432         * math/test-ifloat.c (CHOOSE): Likewise.
7433         * math/test-ildoubl.c (CHOOSE): Likewise.
7434         * math/test-ldouble-finite.c (CHOOSE): Likewise.
7435         * math/test-ldouble.c (CHOOSE): Likewise.
7436
7437         * math/test-float.h (TEST_FLOAT): Remove.
7438         * math/test-double.h (TEST_DOUBLE): Likewise.
7439         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
7440
7441 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7442
7443         * math/gen-libm-test.pl: (apply_lit): New subroutine.
7444         (parse_args): Strip C suffix from floating point literals
7445         typed with 'f' and wrap them with LIT().
7446
7447         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
7448         (test_ff_f_data_nexttoward): Rename to
7449         (test_fj_f_data): New struct.
7450         (nexttoward_test_data): Relabel tests as
7451         TEST_fj_f instead of TEST_ff_f.
7452
7453 2016-06-08  Florian Weimer  <fweimer@redhat.com>
7454
7455         Emacs bug 23726.
7456         * malloc/malloc.c (dumped_main_arena_start): Update comment.
7457         (__libc_realloc): Correct size computation for dumped fake mmapped
7458         chunks.
7459
7460 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
7461
7462         [BZ #20219]
7463         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
7464         to itself.
7465         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
7466
7467         [BZ #20218]
7468         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
7469         to itself.
7470         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
7471
7472 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7473
7474         [BZ #20195]
7475         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
7476         check to ...
7477         (init_cpu_features): Here.
7478
7479 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
7480
7481         [BZ #20214]
7482         * sysdeps/unix/sysv/linux/bits/in.h
7483         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7484          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
7485         Define to 1.
7486         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7487          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
7488         Define to 0.
7489         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
7490         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
7491
7492 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
7493
7494         [BZ #20198]
7495         * stdlib/Makefile (tests): Add tst-quick_exit, and
7496         tst-thread-quick_exit.
7497         [ifeq ($(have-cxx-thread_local),yes)]
7498         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
7499         (CFLAGS-tst-thread-quick_exit.o): Likewise.
7500         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
7501         (LDLIBS-tst-thread-quick_exit): Likewise.
7502         [ifneq ($(have-cxx-thread_local),yes)]
7503         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
7504         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
7505         If run_dtors is true call __call_tls_dtors.
7506         (exit): Call __run_exit_handlers with run_dtors set to true.
7507         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
7508         definition.
7509         * stdlib/quick_exit.c (quick_exit): Remove function.
7510         (__new_quick_exit): New function.
7511         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
7512         function.
7513         * stdlib/tst-quick_exit.cc: New file.
7514         * stdlib/tst-thread-quick_exit.cc: New file.
7515         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
7516         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
7517         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
7518         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
7519         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
7520         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
7521         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
7522         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
7523         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
7524         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
7525         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
7526         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
7527         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
7528         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
7529         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
7530         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
7532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
7533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
7534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
7535         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
7536         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
7537         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
7538         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
7539         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
7540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
7541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
7542         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
7543         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
7544         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
7545
7546 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7547
7548         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
7549         a typo in comments.
7550
7551 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7552
7553         [BZ #20213]
7554         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
7555         argument to itself.
7556         * math/libm-test.inc (asin_test_data): Add sNaN tests.
7557
7558 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7559
7560         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
7561         required flags.
7562         (CFLAGS-pwritev64.c): Likewise.
7563         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
7564         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
7565         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
7566         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7567         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
7568         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
7569         syscall from auto-generation.
7570         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
7571         [WORDSIZE == 64] (pwritev64): Remove macro.
7572         [!PWRITEV] (PWRITEV): Likewise.
7573         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7574         [!PWRITEV] (PWRITE): Likewise.
7575         [!PWRITEV] (OFF_T): Likewise.
7576         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7577         (LO_HI_LONG): Remove macro.
7578         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
7579         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
7580         (PWRITEV): Remove macro.
7581         (PWRITEV_REPLACEMENTE): Likewise.
7582         (PWRITE): Likewise.
7583         (OFF_T): Likewise.
7584         (pwritev64): New function.
7585         * nptl/tst-cancel4.c (tf_writev): Add test.
7586
7587         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
7588         required flags.
7589         (CFLAGS-preadv64.c): Likewise.
7590         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
7591         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
7592         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
7593         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
7594         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
7595         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
7596         syscall from auto-generation.
7597         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
7598         [WORDSIZE == 64] (preadv64): Remove macro.
7599         [!PREADV] (PREADV): Likewise.
7600         [!PREADV] (PREADV_REPLACEMENT): Likewise.
7601         [!PREADV] (PREAD): Likewise.
7602         [!PREADV] (OFF_T): Likewise.
7603         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
7604         (LO_HI_LONG): Remove macro.
7605         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
7606         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
7607         (PREADV): Remove macro.
7608         (PREADV_REPLACEMENTE): Likewise.
7609         (PREAD): Likewise.
7610         (OFF_T): Likewise.
7611         (preadv64): New function.
7612         * nptl/tst-cancel4.c (tf_preadv): Add test.
7613
7614 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7615
7616         [BZ #20212]
7617         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
7618         argument to itself.
7619         * math/libm-test.inc (acos_test_data): Add sNaN tests.
7620
7621 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7622
7623         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
7624         New symbol defined as libc_hidden_def.
7625         (strcasestr): Became a weak alias to __strcasestr.
7626         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
7627         according to multi-arch support.  Move __stpncpy hidden
7628         definition from here to...
7629         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
7630         symbol stpncpy.
7631         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
7632         libc_hidden_builtin_def.
7633         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
7634         memset symbol to use when multi-arch support is available.
7635
7636 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7637
7638         * dlfcn/tst-rec-dlopen.c: Include string.h.
7639
7640 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7641
7642         * manual/install.texi: Remove mention of --without-tls
7643         * INSTALL: Regenerate.
7644
7645 2016-06-05  Florian Weimer  <fweimer@redhat.com>
7646
7647         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
7648         Remove.
7649         (call_function, interposed_malloc_called): New variables.
7650         (malloc): New function.
7651         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
7652         and clear call_function as needed.
7653
7654 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
7655
7656         * include/wchar.h (__wmemset): Use __typeof.
7657
7658 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
7659
7660         * include/wchar.h (__wmemset): Declare function without typeof.
7661
7662 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7663
7664         [BZ #20205]
7665         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
7666         exponent when incrementing negative subnormal with low mantissa
7667         word zero.
7668         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7669         Add another test.
7670
7671 2016-06-03  Florian Weimer  <fweimer@redhat.com>
7672
7673         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
7674         __wmemset instead of wmemset.
7675
7676 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
7677
7678         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
7679         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
7680         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
7681         __USE_KERNEL_IPV6_DEFS to 0.
7682         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
7683         Update comment.
7684
7685 2016-06-01  Florian Weimer  <fweimer@redhat.com>
7686
7687         [BZ #19861]
7688         Do not use IFUNC resolver with potentially unrelocated symbol.
7689         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
7690         (DEFINE_FORK): Remove macro and inline definition.
7691         (fork_alias): Renamed from fork_ifunc.
7692         (__fork_alias): Renamed from __fork_ifunc.
7693
7694 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
7695
7696         [BZ 19653]
7697         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
7698         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
7699
7700 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7701
7702         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
7703         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
7704         i386-linux-gnu).
7705         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
7706         Set to no.
7707         * sysdeps/mach/hurd/configure: Refresh.
7708
7709 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7710
7711         [BZ #20178]
7712         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
7713         on failure instead of exit.
7714
7715 2016-05-30  Roland McGrath  <roland@hack.frob.com>
7716
7717         [BZ #3629]
7718         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
7719         of POSIX.1-2008.
7720
7721 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7722
7723         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
7724           Use PLT entry for calling _hurd_self_sigstate.
7725
7726 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7727
7728         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
7729         available logical processors with SMT level type sharing L2
7730         cache for Intel processors.
7731
7732 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7733
7734         [BZ #20160]
7735         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
7736         argument to itself before returning the result.
7737         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7738         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7739         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7740         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7741         Likewise.
7742         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7743         Likewise.
7744         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
7745         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
7746         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7747         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7748         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
7749         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
7750
7751         [BZ #20160]
7752         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
7753         argument to itself before returning the result.
7754         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
7755         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
7756         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
7757         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
7758         Likewise.
7759         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7760         Likewise.
7761         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
7762         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
7763         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
7764         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7765         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
7766         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
7767
7768 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7769
7770         * libm-test.inc: Replace usage of M_El with
7771         (lit_e): New macro.
7772
7773 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7774
7775         * libm-test.inc: Replace usage of M_PI_4l with
7776         (lit_pi_4_d): New macro.
7777
7778 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7779
7780         * libm-test.inc: Replace usage of M_PIl with
7781         (lit_pi): New macro.
7782
7783 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7784
7785         * libm-test.inc: Replace usage of M_PI2l with
7786         (lit_pi_2_d): New macro.
7787
7788         * math/test-double.h (LITM): New macro.
7789         * math/test-float.h (LITM): Likewise.
7790         * math/test-ldouble.h (LITM): Likewise.
7791
7792 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7793
7794         * libm-test.inc (M_PI_34l): Rename to
7795         (lit_pi_3_m_4_d): New Macro.
7796         (M_PI_34_LOG10El): Rename to
7797         (lit_pi_3_m_4_ln10_m_d): New Macro.
7798         (M_PI2_LOG10El): Rename to
7799         (lit_pi_2_ln10_m_d):  New Macro.
7800         (M_PI4_LOG10El): Rename to
7801         (lit_pi_4_ln10_m_d):  New Macro.
7802         (M_PI_LOG10El): Rename to
7803         (lit_pi_ln10_d):  New Macro.
7804
7805 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7806
7807         [BZ #20157]
7808         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
7809         determine whether to negate low half if [_ARCH_PPCGR], and integer
7810         comparison otherwise.
7811         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
7812         determine whether to negate low half.
7813
7814         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
7815         (NO_TEST_INLINE_DOUBLE): Likewise.
7816         (TEST_COND_x86_64): Likewise.
7817         (TEST_COND_x86): Likewise.
7818         (M_PI_6l): Likewise.
7819
7820 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7821
7822         * math/libm-test.inc:
7823         (TEST_FLOAT): Change usage to TEST_COND_binary32.
7824         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
7825         (TEST_LDOUBLE): Update usage to evaluate as true if
7826         the guarded tests match the property being tested.
7827         (LDBL_MAX_EXP): Change to MAX_EXP.
7828         (LDBL_MIN_EXP): Change to MIN_EXP.
7829         (LDBL_MANT_DIG): Change to MANT_DIG, except for
7830         nexttoward tests.
7831
7832 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7833
7834         * math/libm-test.inc:
7835         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
7836         (TYPE_MIN): Likewise.
7837         (TYPE_TRUE_MIN): Likewise.
7838         (TYPE_MAX): Likewise.
7839         (MIN_EXP): Likewise.
7840         (MAX_EXP): Likewise.
7841         (MANT_DIG): Likewise.
7842
7843         (FSTR_MAX): New macro.
7844         (__CONCATX): Likewise.
7845         (QTYPE_STR): Likewise.
7846         (TEST_COND_binary32): Likewise.
7847         (TEST_COND_binary64): Likewise.
7848         (TEST_COND_binary128): Likewise.
7849         (TEST_COND_ibm128): Likewise.
7850         (TEST_COND_intel96): Likewise.
7851         (TEST_COND_m68k96): Likewise.
7852
7853         (TEST_COND_flt_32): Redefine as equivalent format test macro.
7854         (TEST_COND_dbl_64): Likewise.
7855         (TEST_COND_ldbl_96_intel): Likewise.
7856         (TEST_COND_ldbl_96_m68k): Likewise.
7857         (TEST_COND_ldbl_128): Likewise.
7858         (TEST_COND_ldbl_128ibm): Likewise.
7859
7860         (plus_zero): Redefine using LIT macro.
7861         (minus_zero): Likewise.
7862         (plus_infty): Redefine as (INF).
7863         (minux_infty): Redefine as (-INF).
7864         (max_value): Redefine as TYPE_MAX.
7865         (min_value): Redefine as TYPE_MIN.
7866         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
7867
7868         (print_float): Refactor to use snprintf to convert FLOAT values
7869         to string. This brings it closer to dropin replacement of strtof
7870         for the TS 18661 defined types.
7871         (update_stats): Likewise.
7872         (print_complex_function_ulps): Likewise.
7873         (print_max_error): Likewise.
7874         (print_complex_max_error): Likewise.
7875         (check_float_internal): Likewise.
7876
7877         * math/test-float.h (PREFIX): New macro.
7878         (LIT): Likewise.
7879         (TYPE_STR): Likewise.
7880         (FTOSTR): Likewise.
7881
7882         * math/test-double.h (PREFIX): New macro.
7883         (LIT): Likewise.
7884         (TYPE_STR): Likewise.
7885         (FTOSTR): Likewise.
7886
7887         * math/test-ldouble.h (PREFIX): New macro.
7888         (LIT): Likewise.
7889         (TYPE_STR): Likewise.
7890         (FTOSTR): Likewise.
7891
7892 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7893
7894         [BZ #20156]
7895         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
7896         to itself when zero or not finite.
7897         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
7898         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
7899         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
7900         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7901
7902 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
7903
7904         [BZ #20153]
7905         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
7906         x * x + x for infinities and NaNs.
7907
7908         [BZ #20151]
7909         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
7910         argument to itself before returning result.
7911         (__ieee754_y0l): Likewise.
7912         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7913         (__ieee754_y1l).
7914
7915         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
7916         (atan_test_data): Likewise.
7917         (ceil_test_data): Likewise.
7918         (cos_test_data): Likewise.
7919         (cosh_test_data): Likewise.
7920         (erf_test_data): Likewise.
7921         (exp2_test_data): Likewise.
7922         (fabs_test_data): Likewise.
7923         (floor_test_data): Likewise.
7924         (ilogb_test_data): Likewise.
7925         (j0_test_data): Likewise.
7926         (j1_test_data): Likewise.
7927         (jn_test_data): Likewise.
7928         (lgamma_test_data): Likewise.
7929         (lrint_test_data): Likewise.
7930         (llrint_test_data): Likewise.
7931         (logb_test_data): Likewise.
7932         (lround_test_data): Likewise.
7933         (llround_test_data): Likewise.
7934         (nearbyint_test_data): Likewise.
7935         (rint_test_data): Likewise.
7936         (round_test_data): Likewise.
7937         (sin_test_data): Likewise.
7938         (sincos_test_data): Likewise.
7939         (sinh_test_data): Likewise.
7940         (sqrt_test_data): Likewise.
7941         (tan_test_data): Likewise.
7942         (tanh_test_data): Likewise.
7943         (tgamma_test_data): Likewise.
7944         (trunc_test_data): Likewise.
7945         (y0_test_data): Likewise.
7946         (y1_test_data): Likewise.
7947         (yn_test_data): Likewise.
7948
7949         * math/libm-test.inc: Update comment about NaN testing.
7950         (TEST_SNAN): New macro.
7951         (snan_value): Likewise.
7952         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
7953         (fpclassify_test_data): Add sNaN tests.
7954         (isfinite_test_data): Likewise.
7955         (isinf_test_data): Likewise.
7956         (isnan_test_data): Likewise.
7957         (isnormal_test_data): Likewise.
7958         (issignaling_test_data): Likewise.
7959         (signbit_test_data): Likewise.
7960         * math/gen-libm-test.pl (%beautify): Add snan_value.
7961         (show_exceptions): Add argument $test_snan.
7962         (parse_args): Handle snan_value as non-finite.  Update call to
7963         show_exceptions.
7964         * math/Makefile (libm-test-no-inline-cflags): Add
7965         -fsignaling-nans.
7966
7967 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7968
7969         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
7970         (CFLAGS-oldsendmsg.c): Add rule.
7971         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7972         Correct recvmsg symbol name.
7973         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
7974         Likewise.
7975
7976 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7977
7978         * sysdeps/unix/sysv/linux/Makefile
7979         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
7980         oldsendmmsg.
7981         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
7982         sendmmsg.
7983         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7984         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7985         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7986         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7988         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7989         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7991         Likewise.
7992         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7993         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
7994         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7995         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
7996         iovlen and controllen fields to adjust to POSIX specification.
7997         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
7998
7999         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
8000         and change to correct expected type.
8001         (msghdr.msg_controllen): Likewise.
8002         (cmsghdr.cmsg_len): Likewise.
8003         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
8004         expected POSIX assumption about the size.
8005         (msghdr.msg_controllen): Likewise.
8006         (msghdr.__glibc_reserved1): Likewise.
8007         (msghdr.__glibc_reserved2): Likewise.
8008         (cmsghdr.cmsg_len): Likewise.
8009         (cmsghdr.__glibc_reserved1): Likewise.
8010         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
8011         Add ptw-oldrecvmsg and ptw-oldsendmsg.
8012         (CFLAGS-sendmsg.c): Remove rule.
8013         (CFLAGS-recvmsg.c): Likewise.
8014         (CFLAGS-oldsendmsg.c): Add rule.
8015         (CFLAGS-oldrecvmsg.c): Likewise.
8016         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
8017         recvmsg and sendmsg.
8018         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
8019         Likewise.
8020         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
8021         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
8022         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
8023         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
8024         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
8025         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
8026         Likewise.
8027         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
8028         Likewise.
8029         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
8030         Likewise.
8031         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
8032         Likewise.
8033         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
8034         Likewise.
8035         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
8036         Likewise.
8037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
8038         (GLIBC_2.24): Likewise.
8039         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
8040         Likewise.
8041         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
8042         Likewise.
8043         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
8044         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
8045         Likewise.
8046         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
8047         Likewise.
8048         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
8049         Likewise.
8050         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
8051         (GLIBC_2.24): Likewise.
8052         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
8053         Likewise.
8054         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
8055         Likewise.
8056         * sysdeps/unix/sysv/linux/Makefile
8057         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
8058         (CFLAGS-sendmsg.c): Add rule.
8059         (CFLAGS-recvmsg.c): Likewise.
8060         (CFLAGS-oldsendmsg.c): Likewise.
8061         (CFLAGS-oldrecvmsg.c): Likewise.
8062         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
8063         initialization.
8064         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
8065         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
8066         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
8067         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
8068         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
8069         iovlen and controllen fields to adjust to POSIX specification.
8070         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
8071         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
8072         added recvmsg and sendmsg.
8073         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8074         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8075         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8076         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8077         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8078         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8079         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8080         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8081         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8082         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8083         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8084         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
8085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8086         Likewise.
8087         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8089         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8090         Likewise.
8091         Likewise.
8092         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8093         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8094         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8095         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8096         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8097         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8099         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8100         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8101         Likewise.
8102         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8103         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8104
8105         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
8106         from auto-generation.
8107         (sendmsg): Likewise.
8108         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
8109         (sendmsg): Likewise.
8110         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
8111         (sendmsg): Likewise.
8112         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
8113         (sendmsg): Likewise.
8114         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
8115         (sendmsg): Likewise.
8116         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
8117         (sendmsg): Likewise.
8118         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
8119         Likewise.
8120         (sendmsg): Likewise.
8121         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
8122         (sendmsg): Likewise.
8123         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8124         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8125         Remove.
8126         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8127         Likewise.
8128         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8129         Undefine.
8130         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8131         Likewise.
8132         * sysdeps/unix/sysv/linux/kernel-features.h
8133         (__ASSUME_SENDMSG_SYSCALL): Define.
8134         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8135         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8136         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8137         Remove.
8138         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8139         Likewise.
8140         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8141         Undefine.
8142         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8143         Likewise.
8144         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8145         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8146         Remove.
8147         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8148         Likewise.
8149         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8150         Undefine.
8151         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8152         Likewise.
8153         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8154         (__ASSUME_SENDMSG_SYSCALL): Undefine.
8155         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8156         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8157         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8158         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8159         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8160         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8161         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8162
8163 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8164
8165         * stdlib/gen-tst-strtod-round.c: Add backslash to
8166         compile command in comment.
8167         (printfp): Remove the literal suffix, and define an infinite
8168         value as INF to avoid expansion clash with INFINITY.
8169         (round_str): Remove the literal suffix.
8170         (round_for_all): Likewise, remove the now duplicate ldbl-64
8171         entry, and remove some magic constants.
8172
8173         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
8174         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
8175         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
8176         (_CONCAT): New macro.
8177         (CONCAT): Likewise.
8178         (CHOOSE_ld): Likewise.
8179         (CHOOSE_f): Likewise.
8180         (CHOOSE_d): Likewise.
8181         (FTYPE_MEMBER): Likewise.
8182         (BOOL_MEMBER): Likewise.
8183         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
8184         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
8185         (_XNTRY): Likewise.
8186         (XNTRY): Likewise.
8187         (_ENTRY): Likewise.
8188         (ENTRY): Likewise.
8189         (test_exactness): Generate members via macro.
8190         (test_results): Likewise.
8191         (test): Update members.
8192         (TEST): Redefine using new macros.
8193         (INF): New macro.
8194         (fetestmodes): New structure.
8195         (do_test): Refactor to be type generic.
8196         (test_in_one_mode): Refactor duplicate code into
8197         (GEN_ONE_TEST): New macro.
8198
8199         * stdlib/tst-strtod-round-data.h: Regenerate.
8200
8201         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
8202         Extend to pass additional arbitrary parameters to
8203         generators.
8204
8205 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
8206
8207         [BZ #15479]
8208         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
8209         floating-point state after first floating-point operation on
8210         input.  Restore full floating-point state instead of just rounding
8211         mode.
8212         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
8213         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
8214         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
8215         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8216         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8217
8218         [BZ #15479]
8219         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
8220         floating-point state after first floating-point operation on
8221         input.  Restore full floating-point state instead of just rounding
8222         mode.
8223         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8224         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8225         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8226         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8227         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8228
8229 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8230
8231         [BZ #19727]
8232         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
8233         valid high surrogate.
8234         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
8235         of an utf16 surrogate.
8236         * iconv/gconv_simple.c (BODY): Likewise.
8237         * iconvdata/bug-iconv12.c: New file.
8238         * iconvdata/Makefile (tests): Add bug-iconv12.
8239
8240 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8241
8242         [BZ #19726]
8243         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
8244         outptrp in case of an illegal input.
8245         * iconv/tst-iconv6.c: New file.
8246         * iconv/Makefile (tests): Add tst-iconv6.
8247
8248 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8249
8250         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
8251         an error in case of a value in range of an utf16 low surrogate.
8252
8253 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8254
8255         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
8256         an error in case of a value in range of an utf16 low surrogate.
8257
8258 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8259
8260         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
8261         Move to ...
8262         * sysdeps/s390/Makefile: ... here.
8263         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
8264         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
8265         (BRANCH_ON_COUNT): New define.
8266         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
8267         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
8268         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
8269         run on s390-32, too.
8270         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
8271         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
8272         run on s390-32, too.
8273         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
8274         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
8275         run on s390-32, too.
8276
8277 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8278
8279         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
8280         etf3eh or new vector loop-variant.
8281
8282 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8283
8284         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
8285         etf3eh or new vector loop-variant.
8286
8287 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8288
8289         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
8290         or new vector loop-variant.
8291
8292 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8293
8294         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
8295         Rename to TR_LOOP and usage of tr instead of troo instruction.
8296
8297 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8298
8299         * sysdeps/s390/multiarch/gconv_simple.c: New File.
8300         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
8301
8302 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8303
8304         * sysdeps/s390/multiarch/8bit-generic.c: New File.
8305         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
8306         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
8307         New override define.
8308         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
8309
8310 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8311
8312         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
8313         * sysdeps/s390/configure.ac: Add test for S390 vector register
8314         support in gcc.
8315         * sysdeps/s390/configure: Regenerated.
8316
8317 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8318
8319         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
8320         Install file from $(objpfx)gconv-modules.
8321         ($(objpfx)gconv-modules): Concatenate architecture specific file
8322         in variable sysdeps-gconv-modules and gconv-modules in src dir.
8323         * sysdeps/s390/gconv-modules: New file.
8324         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
8325         Deleted.
8326         ($(objpfx)gconv-modules-s390): Deleted.
8327         (sysdeps-gconv-modules): New variable.
8328
8329 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8330
8331         [BZ #15479]
8332         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
8333         of immediate operand to rounding instruction.
8334         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
8335         Likewise.
8336         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
8337         Likewise.
8338         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
8339         Likewise.
8340
8341 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8342
8343         * math/libm-test.inc (MIN_EXP): Directly define as
8344         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
8345
8346 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8347
8348         * math/libm-test.inc (MANT_DIG): Directly define as
8349         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
8350
8351 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8352
8353         * stdlib/gen-tst-strtod-round.c (main):
8354           Change usage to more closely match the generated
8355           output.  Add usage and compilation instructions.
8356           (string_to_fp): Add and use FILE* parameter as
8357           output target.
8358           (print_fp): Likewise.
8359           (round_str): Likewise.
8360           (round_for_all): Likewise.
8361         * stdlib/tst-strtod-round.c (tests): Move into
8362         * stdlib/tst-strtod-round-data.h: New file.
8363
8364 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8365
8366         [BZ #15479]
8367         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
8368         (__round): Do not force "inexact" exception.
8369         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
8370         variable.
8371         (__round): Do not force "inexact" exception.
8372         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
8373         (__roundf): Do not force "inexact" exception.
8374         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
8375         (__roundl): Do not force "inexact" exception.
8376         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
8377         (__roundl): Do not force "inexact" exception.
8378         * math/libm-test.inc (round_test_data): Do not allow spurious
8379         "inexact" exceptions.
8380
8381         [BZ #15479]
8382         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
8383         exception in comment.
8384         (huge): Remove variable.
8385         (__floor): Do not force "inexact" exception.
8386         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
8387         "inexact" exception in comment.
8388         (huge): Remove variable.
8389         (__floor): Do not force "inexact" exception.
8390         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
8391         exception in comment.
8392         (huge): Remove variable.
8393         (__floorf): Do not force "inexact" exception.
8394         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
8395         exception in comment.
8396         (huge): Remove variable.
8397         (__floorl): Do not force "inexact" exception.
8398
8399         [BZ #15479]
8400         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
8401         exception in comment.
8402         (huge): Remove variable.
8403         (__ceil): Do not force "inexact" exception.
8404         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
8405         "inexact" exception in comment.
8406         (huge): Remove variable.
8407         (__ceil): Do not force "inexact" exception.
8408         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
8409         (__ceilf): Do not force "inexact" exception.
8410         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
8411         exception in comment.
8412         (huge): Remove variable.
8413         (__ceill): Do not force "inexact" exception.
8414
8415 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8416
8417         * config.h.in (BIND_NOW): New.
8418         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
8419         * configure: Regenerated.
8420         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
8421         indirect branch via the GOT slot.
8422
8423 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8424
8425         [BZ #19765]
8426         * sysdeps/s390/mempcpy.S: New File.
8427         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
8428         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
8429         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8430         Add mempcpy variants.
8431         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
8432         (memcpy): Adjust to be usable from mempcpy entry point.
8433         (__memcpy_mvcle): Likewise.
8434         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8435         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
8436         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
8437         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
8438         (__memcpy_z10): Likewise.
8439         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8440
8441 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8442
8443         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
8444         Remove __GI_ symbol.
8445         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
8446         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
8447         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
8448         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8449         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
8450         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
8451
8452 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8453
8454         * sysdeps/s390/s390-64/memcpy.S (memcpy):
8455         Use cghi instead of chi to compare 64bit value.
8456
8457 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8458
8459         * sysdeps/s390/s390-32/memcpy.S (memcpy):
8460         Jump to 1MB check before executing mvc-loop.
8461
8462 2016-05-24  Florian Weimer  <fweimer@redhat.com>
8463
8464         [BZ #6527]
8465         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
8466         unconditionally.
8467         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
8468
8469 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8470
8471         * stdlib/tst-strtod6.c (do_test): Use new type generic
8472         invocation of the test function.
8473         (test): Refactor into ...
8474         (TEST_STRTOD): New macro base function.
8475
8476 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8477
8478         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
8479         (TEST_STRTOD): New macro.
8480         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
8481
8482 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8483
8484         * stdlib/tst-strtod6.c (do_test): Use new type generic
8485         invocation of the test function.
8486         (test): Refactor into ...
8487         (TEST_STRTOD): New macro base function.
8488
8489 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8490
8491         CVE-2016-4429
8492         [BZ #20112]
8493         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
8494         payload.
8495
8496 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8497
8498         [BZ #20111]
8499         * bits/sockaddr.h (_SS_SIZE): Define.
8500         * bits/socket.h (_SS_SIZE): Remove.
8501         (_SS_PADSIZE): Adjust to account for all padding.
8502         (struct sockaddr_storage): Update comment.  Avoid implicit
8503         padding.
8504         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
8505         (_SS_PADSIZE): Adjust to account for all padding.
8506         (struct sockaddr_storage): Update comment.  Avoid implicit
8507         padding.
8508         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
8509         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
8510         (_SS_PADSIZE): Adjust to account for all padding.
8511         (struct sockaddr_storage): Update comment.  Avoid implicit
8512         padding.
8513         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
8514         __SS_SIZE is 126 in this version.
8515         * inet/tst-sockaddr.c: New file.
8516         * inet/Makefile (tests): Add tst-sockaddr.c
8517         (tst-sockaddr.c): Compile with non-strict aliasing.
8518
8519 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
8520
8521         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
8522         [XPG3 || XPG4].
8523         (NL_ARGMAX): Also expect for [XPG3].
8524         (NL_LANGMAX): Likewise.
8525         (NL_MSGMAX): Likewise.
8526         (NL_NMAX): Likewise.
8527         (NL_SETMAX): Likewise.
8528         (NL_TEXTMAX): Likewise.
8529         (NZERO): Likewise.
8530         (TMP_MAX): Likewise.
8531         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
8532         variable.
8533
8534         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
8535         (PF_MAX): Update value.
8536         (AF_KCM): New macro.
8537         (SOL_NETBEUI): Likewise.
8538         (SOL_LLC): Likewise.
8539         (SOL_DCCP): Likewise.
8540         (SOL_NETLINK): Likewise.
8541         (SOL_TIPC): Likewise.
8542         (SOL_RXRPC): Likewise.
8543         (SOL_PPPOL2TP): Likewise.
8544         (SOL_BLUETOOTH): Likewise.
8545         (SOL_PNPIPE): Likewise.
8546         (SOL_RDS): Likewise.
8547         (SOL_IUCV): Likewise.
8548         (SOL_CAIF): Likewise.
8549         (SOL_ALG): Likewise.
8550         (SOL_NFC): Likewise.
8551         (SOL_KCM): Likewise.
8552         (MSG_BATCH): New enum value and macro.
8553
8554 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8555
8556         [BZ #18185]
8557         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
8558         sharing L2 cache to 2 for Knights Landing.
8559
8560 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
8561
8562         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
8563         (FTW_DP): Do not expect for [XPG3 || XPG4].
8564         (FTW_SL): Do not expect for [XPG3].
8565         (FTW_SLN): Likewise.
8566         (FTW_PHYS): Likewise.
8567         (FTW_MOUNT): Likewise.
8568         (FTW_DEPTH): Likewise.
8569         (FTW_CHDIR): Likewise.
8570         (nftw): Likewise.
8571         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
8572         variable.
8573
8574 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8575
8576         * manual/errno.texi: Fix various typos & grammar errors.
8577
8578 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8579
8580         * manual/intro.texi: Fix duplicated typo.
8581
8582 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8583
8584         [BZ #13304]
8585         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
8586         <float.h>, <math_private.h> and <stdlib.h>.
8587         (add_split): New function.
8588         (mul_split): Likewise.
8589         (ext_val): New typedef.
8590         (store_ext_val): New function.
8591         (mul_ext_val): New function.
8592         (compare): New function.
8593         (add_split_ext): New function.
8594         (__fmal): After checking for Inf, NaN and zero, compute result as
8595         an exact sum of scaled double values in round-to-nearest before
8596         adding those up and adjusting for other rounding modes.
8597         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
8598         tests of fma.
8599         * math/auto-libm-test-out: Regenerated.
8600
8601 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8602
8603         [BZ #20119]
8604         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
8605         processor level type mask for CPUID with EAX == 11.
8606
8607 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8608
8609         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
8610         logical threads if the HTT bit is 0.
8611         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
8612         (index_cpu_HTT): Likewise.
8613         (reg_HTT): Likewise.
8614
8615 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8616
8617         [BZ #20115]
8618         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
8619         Remove alignments on jump targets.
8620
8621 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8622
8623         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
8624         (getpwent): Likewise.
8625         (setpwent): Likewise.
8626         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
8627         variable.
8628
8629         * conform/data/search.h-data (insque): Do not expect for [XPG3].
8630         (remque): Likewise.
8631         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
8632         variable.
8633
8634 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8635
8636         * math/libm-test.inc: Update comment not to refer to signs of NaNs
8637         not being tested.
8638
8639 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8640
8641         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8642         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
8643         call.
8644         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8645         (__condvar_cleanup1): Likewise.
8646
8647 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8648
8649         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
8650         New
8651         (__pthread_unwind): Renamed to ...
8652         (PTHREAD_UNWIND): This.
8653         (__pthread_enable_asynccancel): Replace
8654         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
8655
8656 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8657
8658         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
8659         (CLONE_NEWCGROUP): New macro.
8660
8661         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
8662         (Q_GETNEXTQUOTA): New macro.
8663
8664 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8665
8666         [BZ #19907]
8667         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
8668         buffer updated by the previous run.
8669         * string/test-memcpy.c (do_one_test): Likewise.
8670         * benchtests/bench-memmove.c (do_one_test): Add a comment.
8671         * string/test-memmove.c (do_one_test): Likewise.
8672
8673 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
8674
8675         [BZ #20094]
8676         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
8677         not [__USE_XOPEN].
8678         (unlockpt): Likewise.
8679         (ptsname): Likewise.
8680         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
8681         variable.
8682
8683         [BZ #20076]
8684         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
8685         instead of [__USE_UNIX98].
8686         (S_ISSOCK): Likewise.
8687         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
8688         variable.
8689
8690         [BZ #20074]
8691         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
8692         [__USE_POSIX].
8693         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
8694         variable.
8695
8696         [BZ #20051]
8697         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
8698         (ttyslot): Do not declare.
8699         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
8700         (ttyslot): New prototype.
8701         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
8702         variable.
8703         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
8704
8705 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8706
8707         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
8708
8709 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8710
8711         Fix race condition in tst-mallocfork2, use fewer resources.
8712         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
8713         to current process group.
8714         (signal_sender): Yield in the non-sleeping case.
8715
8716 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
8717
8718         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
8719         (ecvt): Likewise.
8720         (fcvt): Likewise.
8721         (gcvt): Likewise.
8722         (getsubopt): Likewise.
8723         (grantpt): Likewise.
8724         (initstate): Likewise.
8725         (l64a): Likewise.
8726         (mktemp): Likewise.
8727         (mkstemp): Likewise.
8728         (ptsname): Likewise.
8729         (random): Likewise.
8730         (realpath): Likewise.
8731         (setstate): Likewise.
8732         (srandom): Likewise.
8733         (ttyslot): Likewise.
8734         (unlockpt): Likewise.
8735         (valloc): Likewise.
8736
8737         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
8738         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
8739         variable.
8740
8741 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8742
8743         [BZ #20072]
8744         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
8745         init_cpu_features only if SHARED is defined.
8746         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
8747
8748 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8749
8750         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
8751         non-inclusive caches on Intel processors.
8752
8753 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8754
8755         * malloc/malloc.c (dumped_main_arena_start)
8756         (dumped_main_arena_end): New variables.
8757         (DUMPED_MAIN_ARENA_CHUNK): New macro.
8758         (do_check_chunk): Skip dumped fake mmapped chunks.
8759         (munmap_chunk): Likewise.
8760         (__libc_free): Do not adjust statistics for fake mmapped chunks.
8761         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
8762         mmapped chunks.
8763         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
8764         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
8765         and dumped_main_arena_end to cover the dumped heap.
8766
8767 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
8768
8769         * conform/data/time.h-data (getdate_err): Do not expect for
8770         [XPG3].
8771         (getdate): Likewise.
8772         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
8773         variable.
8774
8775         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
8776         (F_ULOCK): Likewise.
8777         (F_TEST): Likewise.
8778         (F_TLOCK): Likewise.
8779         (useconds_t): Likewise.
8780         (intptr_t): Do not expect for [XPG3] or [XPG4].
8781         (brk): Do not expect for [XPG3]
8782         (fchown): Likewise.
8783         (fchdir): Likewise.
8784         (ftruncate): Likewise.
8785         (getdtablesize): Likewise.
8786         (gethostid): Likewise.
8787         (getpagesize): Likewise.
8788         (getpgid): Likewise.
8789         (getsid): Likewise.
8790         (getwd): Likewise.
8791         (lchown): Likewise.
8792         (lockf): Likewise.
8793         (readlink): Likewise.
8794         (sbrk): Likewise.
8795         (setpgrp): Likewise.
8796         (setregid): Likewise.
8797         (setreuid): Likewise.
8798         (symlink): Likewise.
8799         (sync): Likewise.
8800         (truncate): Likewise.
8801         (ualarm): Likewise.
8802         (usleep): Likewise.
8803         (vfork): Likewise.
8804         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
8805         variable.
8806
8807         [BZ #20054]
8808         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
8809         not [__USE_UNIX98].
8810         * conform/data/unistd.h-data (gethostname): Do not expect for
8811         [XPG3].
8812
8813         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
8814         [!POSIX] (S_IFBLK): Likewise.
8815         [!POSIX] (S_IFCHR): Likewise.
8816         [!POSIX] (S_IFIFO): Likewise.
8817         [!POSIX] (S_IFREG): Likewise.
8818         [!POSIX] (S_IFDIR): Likewise.
8819         [!POSIX] (S_IFLNK): Likewise.
8820         [!POSIX] (S_IFSOCK): Likewise.
8821         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
8822         variable.
8823         (test-xfail-XPG4/fcntl.h/conform): Likewise.
8824
8825 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
8826
8827         * sysdeps/aarch64/memset.S (__memset):
8828         Rewrite of optimized memset.
8829
8830 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8831
8832         [BZ #19703]
8833         Partially async-signal-safe fork for single-threaded processes.
8834         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
8835         variable.  Do not acquire and reset/release malloc and libio locks
8836         in single-threaded processes.
8837         * malloc/tst-mallocfork2.c: New file.
8838         * malloc/Makefile (tests): Add it.
8839
8840 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8841
8842         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
8843         argument.  Use scratch buffer instead of extend_alloca.
8844         (gethosts): Use scratch buffer instead of extend_alloca.
8845         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
8846         extend_alloca.
8847         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
8848
8849 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
8850
8851         [BZ #20055]
8852         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
8853         instead of [__USE_UNIX98].
8854         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
8855         [__USE_UNIX98].
8856         * conform/data/termios.h-data (tcgetsid): Do not expect for
8857         [XPG3].
8858         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
8859         variable.
8860         (test-xfail-XPG4/termios.h/conform): Likewise.
8861
8862 2016-05-11  Florian Weimer  <fweimer@redhat.com>
8863
8864         Do not use mcheck in localedef.
8865         * locale/programs/localedef.c (turn_on_mcheck)
8866         (__malloc_initialize_hook): Remove.
8867
8868 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8869
8870         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
8871         * sysdeps/s390/s390-64/Makefile: Likewise.
8872
8873 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8874
8875         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
8876         Remove ifunc-defines.sym.
8877         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
8878         Likewise.
8879         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
8880         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
8881         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
8882         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
8883         rtld-global-offsets.sym.
8884         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
8885         * sysdeps/x86/cpu-features-offsets.sym: This.
8886         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
8887         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
8888
8889 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
8890
8891         [BZ #20073]
8892         * io/sys/stat.h (fchmod): Declare for
8893         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
8894         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
8895         variable.
8896
8897         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
8898         [XPG3] (S_IFSOCK): Likewise.
8899         [XPG3] (S_ISVTX): Likewise.
8900         [XPG3] (S_ISLNK): Likewise.
8901         [XPG3] (S_ISSOCK): Likewise.
8902         [XPG3] (fchmod): Likewise.
8903         [XPG3] (lstat): Likewise.
8904         [XPG3] (mknod): Likewise.
8905
8906         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
8907         [XPG3].  Expect type long and XFAIL for [XPG4].
8908         (st_blocks): Likewise.
8909
8910         [BZ #20044]
8911         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
8912         (pthread_atfork): New prototype.
8913         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
8914         variable.
8915
8916         [BZ #20043]
8917         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
8918         prototype.
8919
8920 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8921
8922         [BZ #20017]
8923         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
8924         gmtime.
8925
8926 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8927
8928         [BZ #19994]
8929         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
8930         flag in _res.options.
8931
8932 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
8933
8934         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
8935         [XPG3 || XPG4].
8936         (blksize_t): Likewise.
8937         (clockid_t): Likewise.
8938         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
8939         variable.
8940         (test-xfail-XPG4/sys/types.h/conform): Likewise.
8941
8942 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
8943
8944         * sysdeps/unix/sysv/linux/s390/init-first.c:
8945         Add VDSO_SYMBOL(getcpu).
8946         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
8947         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
8948         Add VDSO_SYMBOL(getcpu).
8949         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8950         New define HAVE_GETCPU_VSYSCALL.
8951         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8952
8953 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8954
8955         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
8956         instead of <sysdeps/x86_64/cacheinfo.c>.
8957         * sysdeps/x86_64/cacheinfo.c: Moved to ...
8958         * sysdeps/x86/cacheinfo.c: Here.
8959
8960 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8961
8962         * malloc/malloc-internal.h: Adjust header file guard.
8963
8964 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8965
8966         [BZ #19787]
8967         * inet/getnameinfo.c (check_sprintf_result): New function.
8968         (CHECKED_SNPRINTF): New macro.
8969         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
8970         to the host buffer.
8971         (gni_host_local): Use checked_copy to copy the host name.
8972         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
8973         (gni_serv_local): Use checked_copy to copy the service name.
8974         (getnameinfo): Remove unnecessary truncation of result buffers.
8975
8976 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8977
8978         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
8979         in case of inet_ntop failure.
8980
8981 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8982
8983         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
8984         avoid long lines.
8985         (gni_host_inet_numeric): Likewise.  Reduce scope of local
8986         variables.
8987         (gni_host_inet, gni_host_local): Add comment.
8988         (gni_host): Add comment.  Use temporary to avoid long lines.
8989
8990 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8991
8992         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
8993         registers specifiers where general purpose registers specifiers should
8994         have been used.
8995
8996 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8997
8998         [BZ #19779]
8999         CVE-2016-1234
9000         Avoid copying names of directory entries.
9001         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
9002         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
9003         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
9004         (struct readdir_result): New type.
9005         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
9006         (GL_READDIR): New macros.
9007         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
9008         (convert_dirent, convert_dirent64): New functions.
9009         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
9010         convert_dirent64.  Adjust references to the readdir result.
9011         * sysdeps/unix/sysv/linux/i386/glob64.c:
9012         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
9013         * posix/bug-glob2.c (LONG_NAME): Define.
9014         (filesystem): Add LONG_NAME.
9015         (my_DIR): Increase the size of room_for_dirent.
9016
9017 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
9018
9019         [BZ #20041]
9020         * misc/sys/select.h (__need_timespec): Only define if
9021         [__USE_XOPEN2K].
9022         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
9023         variable.
9024         (test-xfail-XPG4/utmpx.h/conform): Likewise.
9025         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
9026         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
9027
9028 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9029             Segher Boessenkool  <segher@gcc.gnu.org>
9030
9031         [BZ #20004]
9032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
9033         (__novec_swapcontext): Add missing load.
9034
9035 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
9036
9037         [BZ #20023]
9038         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
9039         <time.h>.
9040         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
9041         variable.
9042         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
9043
9044 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9045
9046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
9047         flags CLONE_VM compare.
9048
9049 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9050
9051         [BZ #20031]
9052         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
9053         completely empty.
9054
9055 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9056
9057         [BZ #19573]
9058         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
9059         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
9060         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
9061         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
9062         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
9063         (hesiod_free_list): Mark as hidden.
9064         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
9065         res_set, res_get.
9066         * hesiod/hesiod.c: Remove unnecessary forward declarations.
9067         (init, __hesiod_res_get, __hesiod_res_set): Remove.
9068         (hesiod_init): Remove obsolete res_ninit call.
9069         (hesiod_end): Do not free resolver state.  Do not invoke callback.
9070         (hesiod_bind): Do not call init.
9071         (get_txt_records): Use res_mkquery, res_send instead of
9072         res_nmkquery, res_nsend.
9073         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
9074         instead of _nss_hesiod_init.
9075         (_nss_hesiod_initgroups_dyn): Likewise.
9076         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
9077         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
9078         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
9079
9080 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9081
9082         * hesiod/hesiod_p.h (DEF_RHS): Remove.
9083         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
9084
9085 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9086
9087         * hesiod/hesiod.h: Remove RCS keyword.
9088         * hesiod/hesiod_p.h: Likewise.
9089
9090         * hesiod/hesiod.c: Likewise.
9091
9092 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
9093
9094         [BZ #12450]
9095         * locale/iso-639.def: Add Samogitian/sgs.
9096
9097 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
9098
9099         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
9100
9101         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
9102
9103 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
9104             Carlos O'Donell  <carlos@redhat.com>
9105
9106         [BZ #19072]
9107         * grp/Makefile (headers): Add grp-merge.h
9108         (routines): Add grp-merge.
9109         * grp/getgrgid_r.c: Include grp-merge.h.
9110         (DEEPCOPY_FN): Define.
9111         (MERGE_FN): Define.
9112         * grp/getgrname_r.c: Include grp-merge.h.
9113         (DEEPCOPY_FN): Define.
9114         (MERGE_FN): Define.
9115         * grp/grp-merge.c: New file.
9116         * grp/grp-merge.h: New file.
9117         * include/grp-merge.h: New file.
9118         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
9119         __copy_grp@GLIBC_PRIVATE.
9120         * manual/nss.texi (Actions in the NSS configuration): Describe
9121         return, continue, and merge.
9122         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
9123         (DEEPCOPY_FN): Define.
9124         (MERGE_FN): Define.
9125         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
9126         (DEEPCOPY_FN): Define.
9127         (MERGE_FN): Define.
9128         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
9129         [!MERGE_FN]: Define __merge_einval.
9130         (CHECK_MERGE): Define.
9131         (REENTRANT_NAME): Process merge if do_merge is true.
9132         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
9133         (__nss_getent_r): Likewise.
9134         * nss/nsswitch.c (nss_parse_service_list): Likewise.
9135         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
9136
9137 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9138
9139         [BZ #20012]
9140         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
9141         length to calculate the buffer to read.
9142         (fmemopen_write): Set the buffer position based on bytes written.
9143         (fmemopen_seek): Return EINVAL for invalid whence modes.
9144
9145         [BZ #19957]
9146         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
9147         tst-getpid2.
9148         (test): Add tst-clone2.
9149         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
9150         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
9151         pid/tid fields for CLONE_VM.
9152         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
9153         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
9154         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
9155         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
9156         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
9157         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
9158         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
9159         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
9160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
9161         Likewise.
9162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
9163         Likewise.
9164         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
9165         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
9166         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
9167         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
9168         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
9169         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
9170         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
9171         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
9172
9173 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9174
9175         [BZ #19642]
9176         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
9177         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
9178         (gni_serv_local, gni_serv): New functions extracted from
9179         getnameinfo.
9180         (getnameinfo): Call gni_host and gni_serv to perform the
9181         processing.  Always free scratch buffer.
9182
9183 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9184
9185         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
9186         remaining bytes in the dest string, with zeros.
9187
9188 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9189
9190         [BZ #20010]
9191         CVE-2016-3706
9192         * sysdeps/posix/getaddrinfo.c
9193         (convert_hostent_to_gaih_addrtuple): New function.
9194         (gethosts): Call convert_hostent_to_gaih_addrtuple.
9195         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
9196         AF_INET data.
9197
9198 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9199
9200         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
9201         callback function gl_readdir.
9202         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
9203         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
9204         (glob_in_dir): Remove len.  Use strdup instead of malloc and
9205         memcpy to copy the name.
9206         * manual/pattern.texi (Calling Glob): Document requirements for
9207         implementations of the gl_readdir callback function.
9208         * manual/examples/mkdirent.c: New example.
9209         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
9210         per the manual guidance.
9211         * posix/tst-gnuglob.c (my_readdir): Likewise.
9212
9213 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
9214
9215         [BZ #20014]
9216         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
9217         not [__USE_POSIX].
9218         (getchar_unlocked): Likewise.
9219         (putc_unlocked): Likewise.
9220         (putchar_unlocked): Likewise.
9221         (flockfile): Likewise.
9222         (ftrylockfile): Likewise.
9223         (funlockfile): Likewise.
9224         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
9225         variable.
9226         (test-xfail-XPG4/stdio.h/conform): Likewise.
9227
9228         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
9229         Expect constant.
9230         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
9231         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
9232         variable.
9233         (test-xfail-XPG4/langinfo.h/conform): Likewise.
9234         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
9235
9236         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
9237         [__USE_LARGEFILE64] (off64_t): Likewise.
9238         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
9239         variable.
9240
9241 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9242
9243         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
9244
9245 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9246
9247         * resolv/inet_addr.c: Reindent preprocessor conditionals.
9248         * resolv/res_init.c: Likewise.
9249         * resolv/res_mkquery.c: Likewise.
9250
9251 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9252
9253         * resolv/res_init.c (isascii): Do not define.  Use definition in
9254         <ctype.h>.
9255         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
9256         (LOG_AUTH): Remove.
9257         (SPRINTF): Remove, adjust caller.
9258         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
9259
9260 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9261
9262         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
9263         SUNSECURITY conditional.
9264         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
9265
9266 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9267
9268         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
9269         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
9270         Remove BSD-related preprocessor conditionals.
9271         * conf/portability.h: Remove.
9272
9273 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9274
9275         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
9276         * resolv/res_data.c: Likewise.
9277
9278 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9279
9280         * resolv/res_comp.c: Remove code conditional on __ultrix__.
9281         * resolv/res_data.c: Remove code conditional on ultrix.
9282
9283 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9284
9285         * resolv/res_init.c (RFC1535): Do not define.  Remove
9286         RFC1535 preprocessor conditionals.
9287         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
9288         because there configuration options which make the resolver
9289         behavior different.
9290
9291 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9292
9293         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
9294         RESOLVSORT preprocessor conditionals.
9295         * resolv/nss_dns/dns-host.c: Likewise.
9296         * resolv/res_init.c: Likewise.
9297
9298 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9299
9300         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
9301         is never defined.
9302
9303 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9304
9305         * inet/inet_lnaof.c: Remove SCSS keyword.
9306         * inet/inet_mkadr.c: Likewise.
9307         * inet/inet_net.c: Likewise.
9308         * inet/inet_netof.c: Likewise.
9309         * inet/rcmd.c: Likewise.
9310         * inet/rexec.c: Likewise.
9311         * inet/ruserpass.c: Likewise.
9312
9313 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9314
9315         * resolv/inet_addr.c: Remove _LIBC conditionals.
9316         * resolv/res_data.c: Likewise.
9317         * resolv/res_init.c: Likewise.
9318         * resolv/res_mkquery.c: Likewise.
9319         * resolv/res_libc.c: Update comment.
9320         * resolv/README: Update.
9321
9322 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9323
9324         * resolv/gethnamaddr.c: Remove SCSS keyword.
9325         * resolv/herror.c: Likewise.
9326         * resolv/inet_addr.c: Likewise.
9327         * resolv/inet_net_ntop.c: Likewise.
9328         * resolv/inet_net_pton.c: Likewise.
9329         * resolv/inet_neta.c: Likewise.
9330         * resolv/inet_ntop.c: Likewise.
9331         * resolv/inet_pton.c: Likewise.
9332         * resolv/ns_date.c: Remove RCS keyword.
9333         * resolv/ns_name.c: Likewise.
9334         * resolv/ns_netint.c: Likewise.
9335         * resolv/ns_parse.c: Likewise.
9336         * resolv/ns_print.c: Likewise.
9337         * resolv/ns_samedomain.c: Likewise.
9338         * resolv/ns_ttl.c: Likewise.
9339         * resolv/nsap_addr.c: Likewise.
9340         * resolv/res_comp.c: Remove SCSS and RCS keyword.
9341         * resolv/res_data.c: Remove RCS keyword.
9342         * resolv/res_debug.c: Remove SCSS and RCS keyword.
9343         * resolv/res_init.c: Likewise.
9344         * resolv/res_mkquery.c: Likewise.
9345         * resolv/res_query.c: Likewise.
9346         * resolv/res_send.c: Likewise.
9347
9348 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9349
9350         * conform/data/stdio.h-data (fdopen): Expect also for
9351         [XPG3 || XPG4].
9352
9353         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
9354         (fseeko): Likewise.
9355         (ftello): Likewise.
9356         (ftrylockfile): Likewise.
9357         (funlockfile): Likewise.
9358         (getc_unlocked): Likewise.
9359         (getchar_unlocked): Likewise.
9360         (putc_unlocked): Likewise.
9361         (putchar_unlocked): Likewise.
9362
9363 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9364
9365         [BZ #19868]
9366         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
9367         DNS packet syntax checks (which were not needed before).  Skip
9368         over non-PTR records.
9369
9370 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9371
9372         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
9373         definition.  Include <stddef.h> instead.
9374
9375 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9376
9377         [BZ #19831]
9378         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
9379         function.
9380         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
9381         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
9382
9383 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9384
9385         [BZ #19862]
9386         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
9387         (getanswer_r): Do not call syslog.
9388         (gaih_getanswer_slice): Likewise.
9389         * resolv/gethnamaddr.c (AskedForGot): Remove.
9390         (getanswer): Do not call syslog.
9391         (gethostbyaddr): Likewise.
9392
9393 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9394
9395         * conform/data/signal.h-data (union sigval): Expect also if
9396         [XOPEN2K].
9397         (struct sigevent): Likewise.
9398         (SIGEV_NONE): Likewise.
9399         (SIGEV_SIGNAL): Likewise.
9400         (SIGEV_THREAD): Likewise.
9401         (SIGRTMIN): Likewise.
9402         (SIGRTMAX): Likewise.
9403         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
9404         variable.
9405         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
9406
9407 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9408
9409         [BZ #19830]
9410         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
9411         (gaih_getanswer_slice): Likewise.
9412         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
9413         Also check for availability of RR metadata.
9414
9415 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9416
9417         [BZ #19825]
9418         * resolv/res_send.c (send_vc): Remove early *resplen2
9419         initialization.  Set *resplen2 on socket error.  Call
9420         close_and_return_error for other errors.
9421
9422 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
9423
9424         * sysdeps/unix/sysv/linux/netiucv/iucv.h
9425         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
9426         (SCM_IUCV_TRGCLS): New define.
9427
9428 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9429
9430         [BZ #20005]
9431         * libio/fmemopen.c (fmemopen_write): Update internal position after
9432         write.
9433         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
9434         * stdio-common/tst-fmemopen4.c: New file..
9435
9436 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
9437
9438         [BZ #19996]
9439         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
9440         not [__USE_XOPEN2K].
9441         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
9442         variable.
9443
9444         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
9445         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
9446         variable.
9447
9448         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
9449         [__USE_XOPEN2K8].
9450         [__USE_LARGEFILE64] (off64_t): Likewise.
9451         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
9452         variable.
9453
9454 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
9455
9456         [BZ #19989]
9457         * libio/stdio.h (cuserid): Do not declare if
9458         [__USE_XOPEN2K && !__USE_GNU].
9459         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
9460         variable.
9461
9462 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9463
9464         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9465         (sysdep_routines): Add P8 and PPC64 strcspn targets.
9466         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9467         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
9468         ifunc'ed strcspn.
9469         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9470         [EALIGN]: Removed.
9471         [END]: Likewise
9472         [STRSPN]: Define instead of the above to control symbol name.
9473         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
9474         New file.
9475         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
9476         Likewise.
9477         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
9478         Likewise.
9479         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
9480         Likewise.
9481         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9482         [INITIAL_MASK]: New macro.
9483         [STRCSPN]: Likewise.
9484         [UPDATE_MASK]: Likewise.
9485         [USE_AS_STRCSPN]: Lisewise.
9486
9487 2016-04-25  Florian Weimer  <fweimer@redhat.com>
9488
9489         [BZ #19931]
9490         * stdio-common/tst-vfprintf-width-prec.c: New file.
9491         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
9492         (tests-special): Add tst-vfprintf-width-prec-mem.out.
9493         (generated): Add mtrace-related files.
9494         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
9495         (tst-%-mem.out): New pattern rule, replaces
9496         tst-printf-bz18872-mem.out.
9497         * stdio-common/vfprintf.c (vfprintf): When handling a precision
9498         specifier, deallocate any previously allocated work buffer.
9499
9500 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9501
9502         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
9503         Add nop before __startcontext, add explaining comments.
9504
9505 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
9506
9507         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
9508         any more. Notably since IPV6_PKTINFO has been reintroduced with a
9509         completely different API.
9510
9511         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
9512         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
9513         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
9514         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
9515         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
9516         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
9517         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
9518         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
9519         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
9520         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
9521
9522 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9523
9524         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
9525
9526 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
9527
9528         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
9529         when it is the default of 0.
9530
9531 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9532
9533         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
9534         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9535         (sysdep_routines): Add new strcasestr targets.
9536         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9537         (__libc_ifunc_impl_list): Likewise.
9538         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
9539         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
9540         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
9541         * sysdeps/powerpc/powerpc64/power8/Makefile:
9542         New file to add strcasestr-ppc64 to sysdep_routines.
9543         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
9544         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
9545
9546 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
9547
9548         * benchtests/Makefile (wcsmbs-benchset): Include only for
9549         native builds and runs.
9550         (LOCALES): Likewise.
9551         (bench-build): Build timing-type here instead of the bench
9552         target.  Generate locale only for native builds.
9553         * benchtests/README: Add note for cross-building.
9554
9555         * benchtests/Makefile (bench-clean): Clean up extra-objs.
9556
9557         * benchtests/README: Update README to include instructions on
9558         using bench-build.
9559
9560         * Makefile.in (bench-build): New target.
9561         * Rules (PHONY): Add bench-build target.
9562         * benchtests/Makefile (bench): Depend on bench-build.
9563         (bench-build): New target.
9564
9565 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9566
9567         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
9568         profil_reply_port.
9569         (profile_waiter): Do not initialize profil_reply_port.
9570         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
9571         frequency instead of tick length in us.
9572
9573 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
9574
9575         [BZ #18712]
9576         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
9577         (__old_mempcpy_small): Likewise.
9578         (__old_strcpy_small): Likewise.
9579         (__old_stpcpy_small): Likewise.
9580         (__old_strpbrk_c2): Fix compat symbol name.
9581         (__old_strpbrk_c3): Likewise.
9582         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
9583         (__mempcpy_small): Remove.
9584         (__strcpy_small): Remove.
9585         (__stpcpy_small): Remove.
9586
9587 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
9588
9589         [BZ #19400]
9590         * locale/iso-639.def: Add the Talossan/tzl language.
9591
9592 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9593
9594         [BZ #16983]
9595         * locale/programs/ld-address.c (address_finish): Update postal_fmt
9596         comment.  Add "ln" to strchr check on postal_fmt.
9597
9598 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9599
9600         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
9601         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
9602         tel_dom_fmt.
9603
9604 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9605
9606         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9607         (sysdep_routines): Added __strlen_power8.
9608         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
9609         __strlen_power8 entry.
9610         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
9611         Implementation for POWER8.
9612         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
9613         for __strlen_power8.
9614         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
9615         Implementation for POWER8.
9616
9617 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
9618
9619         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
9620
9621 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
9622
9623         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
9624         Goldmont and Airmont processors.
9625
9626 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
9627
9628         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
9629         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
9630         (__STRING2_SMALL_GET32): Remove.
9631         (memset): Remove.
9632         (__memset_1): Remove.
9633         (__memset_gc): Remove.
9634         (__mempcpy): Remove.
9635         (mempcpy): Remove.
9636         (__mempcpy_args): Remove.
9637         (strchr): Remove.
9638         (strcpy): Remove.
9639         (strcpy_args): Remove.
9640         (__stpcpy_args): Remove.
9641         (__strcmp_cc): Remove.
9642         (__strcmp_gc): Remove.
9643         (strstr): Remove.
9644
9645 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
9646
9647         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
9648         * nis/nis_call.c (nis_server_cache_add): Likewise.
9649
9650 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9651
9652         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
9653
9654 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9655
9656         * malloc/arena.c (__malloc_fork_lock_parent)
9657         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
9658         internal_function attribute.
9659
9660 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
9661
9662         * stdio-common/printf_fp.c (__printf_fp_l):
9663         Rename ___printf_fp_l to __printf_fp_l and
9664         remove strong alias. Use libc_hidden_def instead
9665         of ldbl_hidden_def macro.
9666
9667 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9668
9669         Remove malloc hooks from fork handler.  They are no longer needed
9670         because malloc runs right before fork, and no malloc calls from
9671         other fork handlers are not possible anymore.
9672         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
9673         declarations.
9674         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
9675         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
9676         (atfork_recursive_cntr): Remove.
9677         (__malloc_fork_lock_parent): Do not override malloc hooks and
9678         thread_arena.
9679         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
9680         thread_arena.
9681         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
9682         thread_arena instead of save_arena.
9683
9684 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9685
9686         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
9687         (thread_atfork, thread_atfork_static): Remove.
9688         * sysdeps/mach/hurd/malloc-machine.h:
9689         (thread_atfork, thread_atfork_static): Remove.
9690
9691 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9692
9693         [BZ #19431]
9694         Run the malloc fork handler as late as possible to avoid deadlocks.
9695         * malloc/malloc-internal.h: New file.
9696         * malloc/malloc.c: Include it.
9697         * malloc/arena.c (ATFORK_MEM): Remove.
9698         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
9699         Update comment.
9700         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
9701         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
9702         Remove outdated comment.
9703         (ptmalloc_init): Do not call thread_atfork.  Remove
9704         thread_atfork_static.
9705         * malloc/tst-malloc-fork-deadlock.c: New file.
9706         * Makefile (tests): Add tst-malloc-fork-deadlock.
9707         (tst-malloc-fork-deadlock): Link against libpthread.
9708         * manual/memory.texi (Aligned Memory Blocks): Update safety
9709         annotation comments.
9710         * sysdeps/nptl/fork.c (__libc_fork): Call
9711         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
9712         __malloc_fork_unlock_child.
9713         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9714
9715 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9716
9717         [BZ #19613]
9718         Remove union wait.
9719         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
9720         (w_stopsig, w_stopval): Remove.
9721         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
9722         stat_loc argument.
9723         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
9724         (__WAIT_STATUS_DEFN): Remove.
9725         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9726         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
9727         (wait, wait3, wait4): Use int * for the stat_loc argument.
9728         * posix/wait.c (__wait): Likewise.
9729         * posix/wait3.c (__wait3): Likewise.
9730         * posix/wait4.c (__wait4): Likewise.
9731         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
9732         (__WAIT_STATUS_DEFN): Remove.
9733         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9734         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
9735         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
9736         argument.
9737         * sysdeps/posix/wait.c (__libc_wait): Likewise.
9738         * sysdeps/posix/wait3.c (__wait3): Likewise.
9739         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
9740         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9741         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
9742         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
9743         stat_loc argument.
9744         * manual/process.texi (BSD Wait Functions): Remove union wait.
9745
9746 2016-04-13  Andreas Schwab  <schwab@suse.de>
9747
9748         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
9749         (test-extras): Add tst-tlsalign-vars.
9750         * math/Makefile: Wrap long lines.
9751         (libm-vec-test-wrappers): Define.
9752         (test-extras): Add $(libm-vec-test-wrappers).
9753         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
9754         * nss/Makefile (extra-test-objs): Add nss_test1.os.
9755         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
9756         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
9757         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
9758         (extra-test-objs): Add corresponding objects.
9759
9760 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
9761
9762         [BZ #19928]
9763         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
9764         New.
9765         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
9766         times of shared cache size.
9767         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
9768         (VMOVNT): New.
9769         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
9770         (VMOVNT): Likewise.
9771         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9772         (VMOVNT): Likewise.
9773         (VMOVU): Changed to movups for smaller code sizes.
9774         (VMOVA): Changed to movaps for smaller code sizes.
9775         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
9776         comments.
9777         (PREFETCH): New.
9778         (PREFETCH_SIZE): Likewise.
9779         (PREFETCHED_LOAD_SIZE): Likewise.
9780         (PREFETCH_ONE_SET): Likewise.
9781         Rewrite to use forward and backward loops, which move 4 vector
9782         registers at a time, to support overlapping addresses and use
9783         non temporal store if size is above the threshold and there is
9784         no overlap between destination and source.
9785
9786 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
9787
9788         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
9789         Include dl-vdso.
9790         * sysdeps/unix/sysv/linux/mips/Versions: Add
9791         __vdso_clock_gettime.
9792         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
9793         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
9794         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
9795         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
9796         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
9797         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9798         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9799         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9800         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9801
9802 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9803
9804         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
9805         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
9806         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
9807         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
9808         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9809         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
9811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
9812         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
9813         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
9814         syscalls generation.
9815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9816         [__NR_pwrite64] (__NR_write): Remove define.
9817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9818         [__NR_pwrite64] (__NR_write): Remove define.
9819         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
9820         Remove define.
9821         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
9822         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
9823         Remove define.
9824         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
9825         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
9826         Linux implementation as base.
9827         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9828
9829         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
9830         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
9831         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
9832         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
9833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
9834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
9835         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
9836         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
9837         syscall generation.
9838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9839         [__NR_pread64] (__NR_pread): Remove define.
9840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9841         [__NR_pread64] (__NR_pread): Likewise.
9842         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
9843         define.
9844         (__libc_pread): Use SYSCALL_LL macro on offset argument.
9845         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
9846         Remove define.
9847         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
9848         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
9849         Linux implementation as base.
9850         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9851         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
9852         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9853
9854         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
9855         definition.
9856         (__ALIGNMENT_COUNT): Likewise.
9857         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
9858         (__ALIGNMENT_COUNT): Likewise.
9859         (SYSCALL_LL): New define.
9860         (SYSCALL_LL64): Likewise.
9861         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
9862         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
9863         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
9864         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
9865
9866         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9867         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
9868         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9869         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9870         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9871         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9872
9873 2016-04-11  Florian Weimer  <fweimer@redhat.com>
9874
9875         [BZ #19865]
9876         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
9877         original buffer before retry.
9878
9879 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9880
9881         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
9882         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
9883         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
9884         GLRO(dl_auxv) list.
9885         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
9886         including <ldsodefs.h>.
9887         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
9888
9889 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
9890
9891         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
9892         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
9893         $(CPPFLAGS).
9894
9895 2016-04-09  Khem Raj  <raj.khem@gmail.com>
9896
9897         [BZ #17950]
9898         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
9899         Add -mfpmath=387.
9900
9901 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
9902
9903         * sysdeps/i386/configure.ac: Change == to = when calling test.
9904         * sysdeps/x86_64/configure.ac: Likewise.
9905         * sysdeps/i386/configure: Regenerated.
9906         * sysdeps/x86_64/configure: Likewise.
9907
9908 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
9909
9910         [BZ #16137]
9911         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
9912         * benchtests/bench-strcoll.c (input_files): Likewise.
9913         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
9914         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
9915         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
9916
9917 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
9918
9919         [BZ #19929]
9920         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
9921         [__USE_XOPEN2K8 && !__USE_GNU].
9922         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
9923         variable.
9924
9925         [BZ #19925]
9926         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
9927         define if [!__USE_MISC && __USE_XOPEN2K].
9928         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
9929         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
9930         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
9931         Likewise.
9932         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
9933         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
9934         variable.
9935         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
9936
9937 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9938
9939         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9940         (sysdep_routines): Add new strspn targets.
9941         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9942         (__libc_ifunc_impl_list): Add strspn.
9943         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9944         New file.
9945         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
9946         Likewise.
9947         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
9948         Likewise.
9949         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9950         Likewise.
9951
9952 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9953
9954         * misc/hsearch_r.c: Include <limits.h>.
9955
9956 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9957
9958         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
9959
9960 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9961
9962         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
9963         (MEMCPY_SYMBOL): New.
9964         (MEMPCPY_SYMBOL): Likewise.
9965         (MEMMOVE_CHK_SYMBOL): Likewise.
9966         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
9967         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
9968         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
9969         Provide alias for memcpy in libc.a and ld.so.
9970
9971 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9972
9973         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
9974         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
9975         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
9976         Disabled fro now.
9977         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
9978         symbols.  Properly check USE_MULTIARCH on __memset symbols.
9979
9980 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9981
9982         * benchtests/Makefile (string-benchset): Add memcpy-large,
9983         memmove-large and memset-large.
9984         * benchtests/bench-memcpy-large.c: New file.
9985         * benchtests/bench-memmove-large.c: Likewise.
9986         * benchtests/bench-memmove-large.c: Likewise.
9987         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
9988
9989 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9990
9991         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
9992         32-bit displacement to avoid long nop between instructions.
9993
9994 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9995
9996         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
9997         a comment on VMOVU and VMOVA.
9998
9999 2016-04-04  Florian Weimer  <fweimer@redhat.com>
10000
10001         [BZ #19633]
10002         Use specified locale for number formatting in strfmon_l.
10003         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
10004         (__nl_lookup_word): New inline functions.
10005         * include/printf.h (__print_fp_l): Declare.
10006         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
10007         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
10008         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
10009         (___printf_fp): New function.
10010         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
10011         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
10012         * stdlib/tst-strfmon_l.c (do_test): New test.
10013         * stdlib/Makefile (tests): Add kt.
10014         (LOCALES): Build additional locales.
10015         (tst-strfmon_l.out): Require locales.
10016
10017 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10018
10019         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
10020         if not in libc.
10021         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10022         Likewise.
10023         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
10024         Likewise.
10025         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10026         Likewise.
10027
10028 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10029
10030         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10031         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
10032         with unaligned_erms.
10033         (__memmove_erms): Skip if source == destination.
10034         (__memmove_unaligned_erms): Don't check source == destination
10035         first.
10036
10037 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10038
10039         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
10040         bit_arch_Fast_Copy_Backward for Intel Core proessors.
10041
10042 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10043
10044         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
10045         * string/strspn.c (strspn): Likewise.
10046
10047 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10048
10049         * benchtests/bench-memset.c (do_test): Support 64-byte
10050         alignment.
10051         (test_main): Test 64-byte alignment.
10052
10053 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10054
10055         * benchtests/bench-memmove.c (test_main): Test 64-byte
10056         alignment.
10057
10058 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10059
10060         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
10061
10062 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10063
10064         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
10065         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
10066         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
10067
10068         * string/strpbrk.c (strpbrk): Rewrite function.
10069         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
10070         (__strpbrk_c2): Likewise.
10071         (__strpbrk_c3): Likewise.
10072         * string/string-inlines.c
10073         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
10074         Likewise.
10075         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
10076         Likewise.
10077
10078         * string/strspn.c (strcspn): Rewrite function.
10079         * string/bits/string2.h (strspn): Use __builtin_strcspn.
10080         (__strspn_c1): Remove inline function.
10081         (__strspn_c2): Likewise.
10082         (__strspn_c3): Likewise.
10083         * string/string-inlines.c
10084         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
10085         compatibility symbol.
10086         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
10087         Likewise.
10088         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
10089         Likewise.
10090         * string/string-inlines.c: Include generic version.
10091
10092 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
10093             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10094
10095         * string/Version (libc): Add GLIBC_2.24.
10096         * string/strcspn.c (strcspn): Rewrite function.
10097         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
10098         (__strcspn_c1): Remove inline function.
10099         (__strcspn_c2): Likewise.
10100         (__strcspn_c3): Likewise.
10101         * string/string-inline.c
10102         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
10103         compatibility symbol.
10104         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
10105         Likewise.
10106         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
10107         Likewise.
10108         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
10109
10110 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
10111
10112         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10113         Use ahi instead of aghi to adjust stack pointer.
10114
10115 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10116
10117         [BZ #19853]
10118         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
10119         TEST to take significant digits as second parameter.
10120         [TEST]: Redefine in terms of TEST_N taking 30
10121         significant digits.
10122         (do_test): Add test case to demonstrate precision
10123         failure in the ldbl-128ibm printf.
10124         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
10125         (__mpn_extract_long_double): Carry 7 extra intermediate
10126         bits of precision to aide computing difference when
10127         signs differ.
10128
10129 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10130
10131         [BZ #19881]
10132         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10133         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
10134         memset-avx512-unaligned-erms.
10135         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10136         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
10137         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
10138         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
10139         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
10140         __memset_sse2_unaligned_erms, __memset_erms,
10141         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
10142         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
10143         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
10144         file.
10145         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10146         Likewise.
10147         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
10148         Likewise.
10149         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
10150         Likewise.
10151
10152 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10153
10154         [BZ #19776]
10155         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10156         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
10157         memmove-avx512-unaligned-erms.
10158         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10159         (__libc_ifunc_impl_list): Test
10160         __memmove_chk_avx512_unaligned_2,
10161         __memmove_chk_avx512_unaligned_erms,
10162         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
10163         __memmove_chk_sse2_unaligned_2,
10164         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
10165         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
10166         __memmove_avx512_unaligned_erms, __memmove_erms,
10167         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
10168         __memcpy_chk_avx512_unaligned_2,
10169         __memcpy_chk_avx512_unaligned_erms,
10170         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
10171         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
10172         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
10173         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
10174         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
10175         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
10176         __mempcpy_chk_avx512_unaligned_erms,
10177         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
10178         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
10179         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
10180         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
10181         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
10182         __mempcpy_erms.
10183         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
10184         file.
10185         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10186         Likwise.
10187         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
10188         Likwise.
10189         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10190         Likwise.
10191
10192 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10193
10194         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
10195         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
10196         (La_s390_64_regs): Likewise.
10197         (La_s390_32_retval): Append vector register lrv_v24.
10198         (La_s390_64_retval): Likeweise.
10199         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10200         Handle extended structs La_s390_32_regs and La_s390_32_retval.
10201         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10202         Handle extended structs La_s390_64_regs and La_s390_64_retval.
10203
10204 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10205
10206         [BZ #19916]
10207         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
10208         to create a non-vector/vector version for _dl_runtime_resolve and
10209         _dl_runtime_profile. Move implementation to ...
10210         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
10211         (_dl_runtime_resolve) Save and restore fpr/vrs.
10212         (_dl_runtime_profile) Save and restore vrs and fix some issues
10213         if _dl_call_pltexit is called.
10214         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10215         Choose the correct resolver function if running on a machine with vx.
10216         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
10217         to create a non-vector/vector version for _dl_runtime_resolve and
10218         _dl_runtime_profile. Move implementation to ...
10219         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
10220         (_dl_runtime_resolve) Save and restore fpr/vrs.
10221         (_dl_runtime_profile) Save and restore vrs and fix some issues
10222         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
10223         Choose the correct resolver function if running on a machine with vx.
10224
10225 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10226
10227         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
10228
10229 2016-03-31  Florian Weimer  <fweimer@redhat.com>
10230
10231         [BZ #19509]
10232         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
10233         skip_map != NULL.
10234         * elf/tst-dlsym-error.c: New file.
10235         * elf/Makefile (tests): Add tst-dlsym-error.
10236         (tst-dlsym-error): Link against libdl.
10237
10238 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
10239
10240         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10241         (__ASSUME_FUTIMESAT): Remove macro.
10242         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
10243
10244 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10245
10246         [BZ #19879]
10247         CVE-2016-3075
10248         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
10249         copy name.
10250
10251 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10252
10253         [BZ #19837]
10254         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
10255         error if parse_line fails.
10256
10257 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10258
10259         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
10260         (index_cpu_ERMS): Likewise.
10261         (reg_ERMS): Likewise.
10262
10263 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
10264
10265         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
10266         PER_LINUX_FDPIC): Add.
10267
10268 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10269
10270         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10271         memcpy-avx512-no-vzeroupper.
10272         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
10273         to ...
10274         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
10275         (MEMCPY): Don't define.
10276         (MEMCPY_CHK): Likewise.
10277         (MEMPCPY): Likewise.
10278         (MEMPCPY_CHK): Likewise.
10279         (MEMPCPY_CHK): Renamed to ...
10280         (__mempcpy_chk_avx512_no_vzeroupper): This.
10281         (MEMPCPY_CHK): Renamed to ...
10282         (__mempcpy_chk_avx512_no_vzeroupper): This.
10283         (MEMCPY_CHK): Renamed to ...
10284         (__memmove_chk_avx512_no_vzeroupper): This.
10285         (MEMCPY): Renamed to ...
10286         (__memmove_avx512_no_vzeroupper): This.
10287         (__memcpy_avx512_no_vzeroupper): New alias.
10288         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
10289
10290 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10291
10292         [BZ #18858]
10293         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10294         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
10295         and mempcpy-avx512-no-vzeroupper.
10296         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
10297         New.
10298         (MEMPCPY): Likewise.
10299         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
10300         (MEMPCPY_CHK): New.
10301         (MEMPCPY): Likewise.
10302         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
10303         (MEMPCPY): Likewise.
10304         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
10305         (MEMPCPY): Likewise.
10306         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
10307         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
10308         Likewise.
10309         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
10310         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
10311
10312 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10313              Amit Pawar  <Amit.Pawar@amd.com>
10314
10315         [BZ #19583]
10316         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10317         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
10318         processors.  Set Fast_Copy_Backward for AMD Excavator
10319         processors.
10320         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
10321         New.
10322         (index_arch_Fast_Unaligned_Copy): Likewise.
10323         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
10324         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
10325
10326 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10327
10328         [BZ #19791]
10329         * resolv/res_send.c (close_and_return_error): New function.
10330         (send_dg): Initialize *resplen2 after reopen failure.  Call
10331         close_and_return_error for error returns.  On error paths without
10332         __res_iclose, initialze *resplen2 explicitly.  Update comment for
10333         successful return.
10334
10335 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10336
10337         [BZ# 19860]
10338         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
10339         zero if the compiler does not provide the AVX512F bit.
10340
10341 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
10342
10343         [BZ #19848]
10344         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
10345         from 8 to 4.
10346         (__ieee754_powl): Compare integer exponent against 4 not 8.
10347         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
10348         from 8 to 4.
10349         (__ieee754_powl): Compare integer exponent against 4 not 8.
10350         * math/auto-libm-test-in: Add more tests of pow.
10351         * math/auto-libm-test-out: Regenerated.
10352         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10354
10355 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10356
10357         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
10358         Make code unconditional.
10359         [!__NR_utimensat]: Remove conditional code.
10360         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
10361         Make code unconditional.
10362         [!__NR_utimensat]: Remove conditional code.
10363         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
10364         Make code unconditional.
10365         [!__NR_utimensat]: Remove conditional code.
10366
10367 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10368
10369         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
10370         Make code unconditional.
10371
10372 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
10373
10374         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
10375         call-clobbered %eax on retry path.
10376         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10377
10378 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10379
10380         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
10381         Don't set %rcx twice before "rep movsb".
10382
10383 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10384
10385         [BZ #19583]
10386         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
10387         inline.  Check family before setting family, model and
10388         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
10389         bits here.
10390         (init_cpu_features): Replace HAS_CPU_FEATURE and
10391         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
10392         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
10393         for Intel processors with usable AVX2.  Call get_common_indeces
10394         for other processors with family == NULL.
10395         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
10396         (CPU_FEATURES_ARCH_P): Likewise.
10397         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
10398         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
10399
10400 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10401
10402         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
10403         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
10404         $(shared-thread-library) instead of hardcoding the path to libpthread.
10405
10406 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
10407
10408         * sysdeps/unix/sysv/linux/kernel-features.h
10409         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
10410         * sysdeps/unix/sysv/linux/getdents.c
10411         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
10412         [!have_no_getdents64_defined]: Likewise.
10413         (__GETDENTS): Remove __have_no_getdents64 conditional.
10414
10415 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
10416
10417         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
10418         Remove macro.
10419         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
10420         <kernel-features.h>.
10421         (signalfd) [__NR_signalfd4]: Make code unconditional.
10422         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
10423
10424 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10425
10426         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
10427         style.
10428
10429 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10430
10431         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
10432         (__pthread_enable_asynccancel): Use JUMPTARGET to call
10433         __pthread_unwind.
10434         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10435         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
10436         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10437         (__condvar_cleanup1): Likewise.
10438
10439 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
10440
10441         [BZ #19822]
10442         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
10443         move it to the final $@ location.
10444
10445 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10446
10447         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
10448         access where posix_spawn success and pid argument is null.
10449         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
10450         success case.
10451
10452 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
10453
10454         * sysdeps/mach/hurd/i386/c++-types.data: New file.
10455
10456         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
10457
10458         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
10459         and __fcntl.
10460         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
10461         __fcntl only.
10462         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
10463         adding attribute_hidden to __open and __fcntl.
10464
10465         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
10466         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
10467         depend on libc-modules.h,
10468         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
10469
10470 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
10471
10472         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
10473         Remove macro.
10474         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
10475         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
10476         entry.
10477
10478         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
10479         Remove macro.
10480         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
10481         include <kernel-features.h>.
10482         [!__ASSUME_FALLOCATE]: Remove conditional code.
10483         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
10484
10485 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10486
10487         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
10488         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
10489         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
10490         (_ZGVdN4v_cos_avx2): Likewise.
10491         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
10492         (_ZGVdN4v_cos): Likewise.
10493         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
10494         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
10495         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
10496         (_ZGVdN4v_exp_avx2): Likewise.
10497         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
10498         (_ZGVdN4v_exp): Likewise.
10499         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
10500         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
10501         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
10502         (_ZGVdN4v_log_avx2): Likewise.
10503         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
10504         (_ZGVdN4v_log): Likewise.
10505         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
10506         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
10507         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
10508         (_ZGVdN4vv_pow_avx2): Likewise.
10509         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
10510         (_ZGVdN4vv_pow): Likewise.
10511         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
10512         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
10513         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
10514         (_ZGVdN4v_sin_avx2): Likewise.
10515         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
10516         (_ZGVdN4v_sin): Likewise.
10517         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
10518         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
10519         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
10520         (_ZGVdN4vvv_sincos_avx2): Likewise.
10521         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
10522         (_ZGVdN4vvv_sincos): Likewise.
10523         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
10524         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
10525         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
10526         (_ZGVbN4v_cosf_sse4): Likewise.
10527         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
10528         (_ZGVdN8v_cosf_avx2): Likewise.
10529         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
10530         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
10531         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
10532         (_ZGVbN4v_expf_sse4): Likewise.
10533         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
10534         (_ZGVdN8v_expf_avx2): Likewise.
10535         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
10536         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
10537         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
10538         (_ZGVbN4v_logf_sse4): Likewise.
10539         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
10540         (_ZGVdN8v_logf_avx2): Likewise.
10541         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
10542         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
10543         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
10544         (_ZGVbN4vv_powf_sse4): Likewise.
10545         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
10546         (_ZGVdN8vv_powf_avx2): Likewise.
10547         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
10548         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
10549         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
10550         (_ZGVbN4vvv_sincosf_sse4): Likewise.
10551         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
10552         (_ZGVdN8vvv_sincosf_avx2): Likewise.
10553         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
10554         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
10555         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
10556         (_ZGVbN4v_sinf_sse4): Likewise.
10557         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
10558         (_ZGVdN8v_sinf_avx2): Likewise.
10559         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10560         Use JUMPTARGET to call callee.
10561         (WRAPPER_IMPL_SSE2_ff): Likewise.
10562         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10563         (WRAPPER_IMPL_AVX): Likewise.
10564         (WRAPPER_IMPL_AVX_ff): Likewise.
10565         (WRAPPER_IMPL_AVX_fFF): Likewise.
10566         (WRAPPER_IMPL_AVX512): Likewise.
10567         (WRAPPER_IMPL_AVX512_ff): Likewise.
10568         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10569         Likewise.
10570         (WRAPPER_IMPL_SSE2_ff): Likewise.
10571         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10572         (WRAPPER_IMPL_AVX): Likewise.
10573         (WRAPPER_IMPL_AVX_ff): Likewise.
10574         (WRAPPER_IMPL_AVX_fFF): Likewise.
10575         (WRAPPER_IMPL_AVX512): Likewise.
10576         (WRAPPER_IMPL_AVX512_ff): Likewise.
10577         (WRAPPER_IMPL_AVX512_fFF): Likewise.
10578
10579 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10580
10581         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
10582         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
10583         qualifier.
10584         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
10585         internal_function qualifiers.
10586
10587 2016-03-15  Carlos O'Donell <carlos@redhat.com>
10588
10589         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
10590         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
10591         * math/atest-exp.c (exp_mpn): Mark chk unused.
10592         * math/atest-exp2.c (exp_mpn): Likwise.
10593         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
10594         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
10595
10596 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
10597
10598         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
10599         Remove macro.
10600         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
10601         <kernel-features.h>.
10602         [__NR_ppoll]: Make code unconditional.
10603         [!__ASSUME_PPOLL]: Remove conditional code.
10604
10605         * sysdeps/unix/sysv/linux/kernel-features.h
10606         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
10607         (__ASSUME_ACCEPT4): Likewise.
10608         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10609         Define.
10610         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
10611         Likewise.
10612         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10613         Likewise.
10614         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
10615         Likewise.
10616         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
10617         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
10618         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10619         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10620         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10621         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10622         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10623         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10624         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10625         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10626         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10627         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10628         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10629         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10630         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10631         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10632         Likewise.
10633         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10634         Likewise.
10635         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10636         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10637         0x040300].
10638         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10639         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10640         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10641         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10642         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10643         0x030300].
10644         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
10645         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10646         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10647         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10648         0x040300].
10649         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10650         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10651         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10652         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10653         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10654         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10655         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10656         0x030300].
10657         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10658         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10659         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10660         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10661         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10662         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10663         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10664         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10665         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10666         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10667         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10668         0x040300].
10669         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10670         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10671         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10672         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10673         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10674         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10675         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10676         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10677         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10678         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10679         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10680         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10681         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10682         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10683         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
10684         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10685         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10686         Likewise.
10687         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10688         Likewise.
10689
10690 2016-03-15  Andreas Schwab  <schwab@suse.de>
10691
10692         [BZ #19257]
10693         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
10694         statp->_u._ext.nscount as loop count.
10695
10696 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
10697
10698         * math/test-signgam-finite-c99.c: Also #undef
10699         __LIBC_INTERNAL_MATH_INLINES.
10700         * math/test-signgam-main.c: Likewise.
10701
10702 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
10703
10704         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
10705         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10706         (MADV_FREE): Likewise.
10707         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
10708         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
10709         EPOLLEXCLUSIVE.
10710
10711 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
10712
10713         * timezone/README: Remove mention of checktab.awk. Mention wiki
10714         SharedSourceFiles.
10715
10716 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
10717
10718         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
10719         WUNTRACED.
10720
10721 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10722
10723         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
10724         order to match the type of p when calling atomic_exchange_acq().
10725
10726 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10727
10728         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
10729         cfi_offset calls.
10730         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10731         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
10732         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
10733         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
10734         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
10735
10736 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
10737
10738         * timezone/checktab.awk: Removed.
10739
10740 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
10741
10742         * manual/math.texi (Errors in Math Functions): Document relaxed
10743         accuracy goals for IBM long double.
10744         * math/libm-test.inc (test_exceptions): Always allow spurious
10745         "underflow" and "inexact" exceptions for IBM long double.
10746
10747 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10748
10749         [BZ #19762]
10750         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10751         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
10752         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
10753         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
10754         (bit_arch_*): This for feature array.
10755         (bit_*): Renamed to ...
10756         (bit_cpu_*): This for cpu array.
10757         (index_*): Renamed to ...
10758         (index_arch_*): This for feature array.
10759         (index_*): Renamed to ...
10760         (index_cpu_*): This for cpu array.
10761         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
10762         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
10763         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
10764         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
10765         bit_##name with index_cpu_##name and bit_cpu_##name.
10766         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
10767         bit_##name with index_arch_##name and bit_arch_##name.
10768
10769 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
10770
10771         [BZ #19792]
10772         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
10773         Terminate FDE before return label.
10774
10775 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
10776
10777         [BZ #19790]
10778         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
10779         (rintl): Define as macro.
10780         [USE_AS_NEARBYINTL] (__rintl): Likewise.
10781         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
10782         of fesetround.  Ensure results are evaluated before end of scope.
10783         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
10784         USE_AS_NEARBYINTL and include s_rintl.c.
10785         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
10786         Disable exception traps in new environment.
10787         (libc_feholdsetround_ppc_ctx): Likewise.
10788
10789 2016-03-08  Roland McGrath  <roland@hack.frob.com>
10790
10791         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
10792         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
10793         (tst_audit10_aux) [__AVX512F__]: ... here.
10794
10795 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
10796
10797         * include/sys/auxv.h: New file.
10798
10799 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10800
10801         [BZ #19759]
10802         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
10803
10804 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10805
10806         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
10807         operand modifier.
10808         (feclearexcept): Likewise.
10809
10810 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
10811
10812         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
10813         to reflect the entire 32-bit HWCAP.
10814         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
10815         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
10816
10817 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10818
10819         [BZ #19783]
10820         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
10821         $(test-via-rtld-prefix).
10822         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
10823
10824 2016-03-08  Florian Weimer  <fweimer@redhat.com>
10825
10826         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
10827         union wait.  Report any non-zero exit status as error.
10828
10829 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10830
10831         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
10832         configured with --enable-hardcoded-path-in-tests.
10833
10834 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
10835
10836         [BZ #19677]
10837         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10838         (__ieee754_remainderl): Put zero low parts in canonical form.
10839         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
10840         file.  Based on
10841         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
10842         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
10843         with wrapper round test-fmodrem-ldbl-128ibm.c.
10844         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
10845         file.
10846         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
10847         Likewise.
10848         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10849         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
10850
10851 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10852
10853         [BZ #19610]
10854         * elf/ldconfig.c (opt_link): Update comment.
10855         (options): Update help string for option -X.
10856         (search_dir): Unlink stale symbolic link only if updating symbolic
10857         links.
10858         * elf/tst-ldconfig-X.sh: New file.
10859         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
10860         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
10861
10862 2016-03-07  Andreas Schwab  <schwab@suse.de>
10863
10864         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
10865         needed arguments.
10866
10867 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
10868
10869         [BZ #15333]
10870         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
10871         to lstat64.
10872
10873 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10874
10875         * libio/filedoalloc.c (isatty): Remove.
10876         (local_isatty): Add comment.  Call __isatty directly.
10877         (_IO_file_doallocate): Update comment.  Assume _LIBC.
10878         * libio/wfiledoalloc.c (isatty): Remove.
10879         (_IO_wfile_doallocate): Update comment.
10880
10881 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10882
10883         [BZ #19269]
10884         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
10885         tst-audit4-aux.o.
10886         (tst-audit10): Depend on tst-audit10-aux.o.
10887         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
10888         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
10889         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
10890         instead of inline AVX code.
10891         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
10892         instead of inline AVX512 code.
10893         * sysdeps/x86_64/tst-audit4-aux.c: New file
10894         * sysdeps/x86_64/tst-audit10-aux.c: New file
10895
10896         [BZ #19648]
10897         * test-skeleton.c (main): Do not set RLIMIT_DATA.
10898
10899 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10900
10901         [BZ #14750]
10902         [BZ #10354]
10903         [BZ #18433]
10904         * include/sched.h (__clone): Add hidden prototype.
10905         (__clone2): Likewise.
10906         * include/unistd.h (__dup): Likewise.
10907         * posix/Makefile (tests): Add tst-spawn2.
10908         * posix/tst-spawn2.c: New file.
10909         * sysdeps/posix/dup.c (__dup): Add hidden definition.
10910         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
10911         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
10912         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
10913         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
10914         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
10915         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
10916         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
10917         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
10918         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
10919         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
10920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
10921         Likewise.
10922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10923         Likewise.
10924         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
10925         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
10926         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
10927         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
10928         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
10929         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
10930         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
10931         * sysdeps/unix/sysv/linux/nptl-signals.h
10932         (____nptl_is_internal_signal): New function.
10933         * sysdeps/unix/sysv/linux/spawni.c: New file.
10934
10935         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
10936         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
10937         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
10938         * posix/tst-execvp2.c (do_test): Likewise.
10939         * posix/tst-execvp3.c (do_test): Likewise.
10940         * posix/tst-execvp4.c (do_test): Likewise.
10941         * posix/tst-execvpe1.c: New file.
10942         * posix/tst-execvpe2.c: Likewise.
10943         * posix/tst-execvpe3.c: Likewise.
10944         * posix/tst-execvpe4.c: Likewise.
10945         * posix/tst-execvpe5.c: Likewise.
10946         * posix/tst-execvpe6.c: Likewise.
10947
10948         [BZ #19534]
10949         * posix/execl.c (execl): Remove dynamic memory allocation.
10950         * posix/execle.c (execle): Likewise.
10951         * posix/execlp.c (execlp): Likewise.
10952
10953 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10954
10955         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
10956         Replace .text with .text.avx512.
10957         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
10958         Likewise.
10959
10960 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
10961
10962         * sysdeps/generic/libnsl.abilist: New file.
10963         * sysdeps/generic/libutil.abilist: New file.
10964
10965 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10966
10967         [BZ #19762]
10968         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
10969         HAS_ARCH_FEATURE with Fast_Rep_String.
10970         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
10971         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
10972         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
10973         Likewise.
10974         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
10975         Likewise.
10976         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
10977         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
10978         Likewise.
10979         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
10980         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
10981         Likewise.
10982
10983 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10984
10985         [BZ #19745]
10986         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
10987         with *%rax in call.
10988
10989 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10990
10991         [BZ #19745]
10992         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
10993         with *__libc_start_main@GOTPCREL(%rip) in call.
10994
10995 2016-03-04  Roland McGrath  <roland@hack.frob.com>
10996
10997         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
10998         inside conditional for nonempty $(CXX).
10999
11000         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
11001         nonempty.
11002
11003         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
11004         to test for empty $(CXX) rather than $(CXX) of "no".
11005
11006 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11007
11008         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
11009
11010 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
11011             H.J. Lu  <hongjiu.lu@intel.com>
11012
11013         [BZ #18880]
11014         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
11015         instead of Slow_BSF, and also check for Fast_Copy_Backward to
11016         enable __memcpy_ssse3_back.
11017
11018 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11019
11020         [BZ #19758]
11021         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11022         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
11023
11024 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11025
11026         [BZ #19490]
11027         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
11028         (__fentry__): Likewise.
11029
11030 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11031
11032         * gmon/Makefile (noprof): Add $(sysdep_noprof).
11033         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
11034
11035 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11036
11037         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
11038         __mcount_internal directly.
11039         (C_LABEL(__fentry__)): Likewise.
11040         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
11041         directly.
11042
11043 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11044
11045         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11046         (__start_context): Call __setcontext directly.
11047
11048 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
11049
11050         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11051         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11052         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
11053         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11054         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11055         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11056         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
11057         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11058         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11059         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
11060         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11061         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11062         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11063         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11064         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11065         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11066         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
11067         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11068         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11069         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11070         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
11071         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11072         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11073         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11074         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
11075         Remove conditional code.
11076         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11077         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
11078         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11079         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11080         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
11081         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11082         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11083         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11084         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11085         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11086         * sysdeps/unix/sysv/linux/tile/kernel-features.h
11087         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11088
11089 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
11090
11091         * NEWS (2.23): Fix typo in bug 19048 text.
11092
11093 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
11094
11095         [BZ #14259]
11096         * Makeconfig: Rename msgcatdir to localedir.
11097         Rename inst_msgcatdir to inst_localedir.
11098         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
11099         * config.make.in: Add localedir.
11100         * elf/Makefile ($(objpfx)sotruss): Use localedir.
11101         (ldd-rewrite): Likewise.
11102         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
11103         (install-others): Use inst_localedir.
11104         (CPPFLAGS): Use localedir.
11105         * locale/Makefile (locale-CPPFLAGS): Likewise.
11106         * po/Makefile (mo-installed): Use inst_localedir.
11107
11108         [BZ #19575]
11109         * localedata/charmaps/GB18030: Update comments regarding PAU to
11110         non-PUA mappings.
11111
11112 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
11115         test for header.
11116         * sysdeps/unix/sysv/linux/configure: Regenerated.
11117         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
11118         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
11119         Remove conditional code.
11120         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
11121
11122         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
11123         Define to 3.2.0.
11124         (arch_minimum_kernel): Likewise.
11125         * sysdeps/unix/sysv/linux/configure: Regenerated.
11126         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
11127         Define to 2.6.32.
11128         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
11129         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
11130         (arch_minimum_kernel): Define to 2.6.32.
11131         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
11132         * README: Document Linux 3.2 requirement.
11133         * manual/install.texi (Linux): Document Linux 3.2 headers
11134         requirement.
11135         * INSTALL: Regenerated.
11136
11137 2016-02-24  Andreas Schwab  <schwab@suse.de>
11138
11139         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
11140         if !NO_LONG_DOUBLE.
11141
11142 2016-02-22  Roland McGrath  <roland@hack.frob.com>
11143
11144         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
11145         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
11146
11147 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
11148
11149         [BZ #19512]
11150         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
11151
11152 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11153
11154         * posix/tst-dir.c: Include libc-internal.h.
11155
11156 2016-02-20  Florian Weimer  <fweimer@redhat.com>
11157
11158         [BZ #19056]
11159         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
11160         * manual/filesys.texi (Reading/Closing Directory): Mention
11161         deprecaion.
11162         * posix/tst-dir.c (main): Disable deprecation warning in test.
11163
11164 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
11165
11166         [BZ #19679]
11167         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
11168         Renamed to ...
11169         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
11170         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11171         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
11172         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11173         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11174         * sysdeps/x86_64/dl-trampoline.h
11175         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11176         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11177
11178 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11179
11180         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
11181
11182 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11183
11184         * elf/elf.h (R_386_GOT32X): New.
11185         (R_386_NUM): Update.
11186         (R_X86_64_GOTPCRELX: New.
11187         (R_X86_64_REX_GOTPCRELX): New.
11188         (R_X86_64_NUM): Update.
11189
11190 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
11191
11192         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
11193
11194 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
11195
11196         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
11197         assign attr->stackaddr to it, and adjust it down when
11198         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
11199         [_STACK_GROWS_UP]: Delete assert.
11200         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
11201         Implement stack grows up logic.
11202         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
11203         stack grows up logic.
11204
11205 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11206
11207         * NEWS: Update with 2.24 template.
11208
11209 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11210
11211         [BZ #19678]
11212         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
11213         Ensure +0.0 is returned when taking the next value below the least
11214         positive value.
11215
11216 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11217
11218         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
11219         available.  Do not define NO_THREADS.
11220         * malloc/malloc.c: Do not check NO_THREADS.
11221         * malloc/arena.c: Likewise.
11222
11223 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11224
11225         * malloc/malloc.c (__libc_mallinfo): Update comment.
11226         (struct malloc_par): Remove max_total_mem member, it was always 0.
11227         (int_mallinfo): Store 0 into usmblks (no functional change).
11228         * malloc/hooks.c (struct malloc_state): Document that
11229         max_total_mem is always 0.
11230         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
11231         always 0.
11232         * manual/memory.texi (Statistics of Malloc): Likewise.
11233
11234 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11235
11236         * malloc/malloc.c (sysmalloc): Do not update arena_max.
11237         * malloc/arena.c (arena_max): Remove.
11238         (heap_trim, _int_new_arena): Do not update arena_max.
11239
11240 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11241
11242         * resolv/res_init.c (res_ninit): Update comment.
11243
11244 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11245
11246         [BZ #19505]
11247         * posix/spawn_int.h: Add headers and include guard.
11248         (__spawn_valid_fd): New function.
11249         * posix/spawn_faction_addopen.c
11250         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
11251         * posix/spawn_faction_addclose.c
11252         (posix_spawn_file_actions_addclose): Likewise.
11253         * posix/spawn_faction_adddup2.c
11254         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
11255         second file descriptor.
11256         * posix/spawn_valid_fd.c: New file.
11257         * posix/tst-posix_spawn-fd.c: New file.
11258         * posix/Makefile (routines): Add spawn_valid_fd.
11259         (tests): Add tst-posix_spawn-fd.
11260
11261 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11262
11263         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
11264         (do_test): Limit the number of arenas, so that we can use fewer
11265         outer threads.  Limit timeout to 3 seconds, in preparation for a
11266         larger TIMEOUT value.
11267
11268 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11269
11270         [BZ #19674]
11271         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
11272         sign in overflowing and underflowing results when overflow or
11273         underflow is detected early.  Include sign in result before rather
11274         than after scaling.
11275
11276         [BZ #19603]
11277         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11278         (__ieee754_remainderl): Adjust sign of integer version of low part
11279         when taking absolute value of high part.
11280         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11281         * math/libm-test.inc (remainder_test_data): Add another test.
11282         (remquo_test_data): Likewise.
11283
11284 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
11285
11286         [BZ #19602]
11287         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
11288         equal high parts and both low parts zero specially.
11289         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
11290         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
11291         Add test-fmodl-ldbl-128ibm.
11292
11293         [BZ #19595]
11294         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
11295         common logic for all cases of shifting subnormal results.  Do not
11296         insert sign bit in shifted mantissa.  Always pass -1023 as biased
11297         exponent to ldbl_insert_mantissa in subnormal case.
11298
11299         [BZ #19594]
11300         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
11301         on high and low parts then adjust result and use
11302         ldbl_canonicalize_int if needed.
11303
11304         [BZ #19593]
11305         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
11306         on high part and __floor or __ceil on low part then use
11307         ldbl_canonicalize_int if needed.
11308
11309         [BZ #19592]
11310         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
11311         high and low parts then use ldbl_canonicalize_int if needed.
11312
11313         [BZ #17899]
11314         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
11315         New function.
11316         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
11317         on high and low parts then use ldbl_canonicalize_int if needed.
11318
11319 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11320
11321         * configure: Regenerated.
11322
11323         * po/libc.pot: Regenerated.
11324
11325         * po/be.po: Updated translation.
11326         * po/bg.po: Likewise.
11327         * po/ca.po: Likewise.
11328         * po/cs.po: Likewise.
11329         * po/da.po: Likewise.
11330         * po/el.po: Likewise.
11331         * po/eo.po: Likewise.
11332         * po/es.po: Likewise.
11333         * po/fi.po: Likewise.
11334         * po/fr.po: Likewise.
11335         * po/gl.po: Likewise.
11336         * po/hr.po: Likewise.
11337         * po/hu.po: Likewise.
11338         * po/ia.po: Likewise.
11339         * po/id.po: Likewise.
11340         * po/it.po: Likewise.
11341         * po/ja.po: Likewise.
11342         * po/lt.po: Likewise.
11343         * po/nb.po: Likewise.
11344         * po/nl.po: Likewise.
11345         * po/pt_BR.po: Likewise.
11346         * po/rw.po: Likewise.
11347         * po/sk.po: Likewise.
11348         * po/sl.po: Likewise.
11349         * po/sv.po: Likewise.
11350         * po/tr.po: Likewise.
11351         * po/zh_CN.po: Likewise.
11352         * po/zh_TW.po: Likewise.
11353
11354         * version.h (RELEAES): Set to "development".
11355         (VERSION): Set to 2.23.90.
11356
11357         * version.h (RELEASE): Set to "stable".
11358         (VERSION): Set to 2.23.
11359         * include/feature.h (__GLIBC_MINOR__): Set to 23.
11360
11361         * NEWS: Updated fixed bugs.
11362
11363 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11364             Wilco Dijkstra  <wdijkstr@arm.com>
11365
11366         [BZ #19462]
11367         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
11368         (_STRING_INLINE_unaligned): This.
11369         * include/string.h: Include <string_private.h>.
11370         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
11371         _STRING_INLINE_unaligned.
11372         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
11373         (_STRING_INLINE_unaligned): New.
11374         * sysdeps/aarch64/string_private.h: New file.
11375         * sysdeps/generic/string_private.h: Likewise.
11376         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
11377         * sysdeps/s390/string_private.h: Likewise.
11378         * sysdeps/x86/string_private.h: Likewise.
11379         * sysdeps/m68k/m680x0/m68020/bits/string.h
11380         (_STRING_ARCH_unaligned): Renamed to ...
11381         (_STRING_INLINE_unaligned): This.
11382         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
11383         to ...
11384         (_STRING_INLINE_unaligned): This.
11385         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
11386         to ...
11387         (_STRING_INLINE_unaligned): This.
11388         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
11389         to ...
11390         (_STRING_INLINE_unaligned): This.
11391
11392 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
11393             H.J. Lu  <hongjiu.lu@intel.com>
11394
11395         [BZ #19590]
11396         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
11397         relocation.
11398
11399 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
11400
11401         [BZ #18665]
11402         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
11403         *herrno_p.
11404         (gaih_getanswer): Document functional behviour. Return tryagain
11405         if any result is tryagain.
11406         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
11407         when freed.
11408         * resolv/res_send.c: Add copyright text.
11409         (__libc_res_nsend): Document that MAXPACKET is expected.
11410         (send_vc): Document. Remove buffer reuse.
11411         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
11412         size of the buffer. Add Dprint for truncated UDP buffer.
11413
11414 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
11415
11416         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
11417         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
11418         * INSTALL: Regenerate.
11419
11420 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
11421             Jonathan Wakely  <jwakely@redhat.com>
11422             Carlos O'Donell  <carlos@redhat.com>
11423
11424         [BZ 19439]
11425         * math/Makefile (tests): Add test-math-isinff.
11426         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
11427         * math/bits/mathcalls.h [__USE_MISC]: Use
11428         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
11429         functions not in C++11 and which don't conflict e.g. isinff,
11430         isinfl etc.
11431         * math/test-math-isinff.cc: New file.
11432
11433 2016-02-12  Florian Weimer  <fweimer@redhat.com>
11434
11435         * misc/bug18240.c (do_test): Set RLIMIT_AS.
11436
11437 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11438
11439         [BZ #19529]
11440         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
11441
11442 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11443
11444         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11445
11446 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
11447
11448         [BZ #19550]
11449         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
11450         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
11451         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
11452         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
11453         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
11454         New syscall entry.
11455         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
11456         New syscall entry.
11457         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
11458         syscall entry.
11459
11460 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11461
11462         [BZ #18240]
11463         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
11464         unsigned int wraparound.
11465
11466 2016-01-27  Florian Weimer  <fweimer@redhat.com>
11467
11468         [BZ #18240]
11469         * misc/bug18240.c: New test.
11470         * misc/Makefile (tests): Add it.
11471
11472 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11473             Joseph Myers  <joseph@codesourcery.com>
11474
11475         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
11476         load in branch delay slot when less than a word of input left.
11477
11478 2016-01-27  Andreas Schwab  <schwab@suse.de>
11479
11480         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
11481         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
11482         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
11483         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
11484
11485 2016-01-26  David S. Miller  <davem@davemloft.net>
11486
11487         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
11488
11489 2016-01-25  David S. Miller  <davem@davemloft.net>
11490
11491         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
11492         __sqrtl_finite.
11493         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
11494         instead using versioned_symbol.
11495         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
11496         of entries.
11497
11498         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
11499         __sqrtl_finite to GLIBC_2.23
11500
11501 2016-01-25  Ricchard Henderson  <rth@redhat.com>
11502
11503         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11504
11505 2016-01-25  Andreas Schwab  <schwab@suse.de>
11506
11507         [BZ #17514]
11508         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
11509         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
11510         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
11511         * nptl/tst-mutex-errorcheck.c: New file.
11512
11513 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11514
11515         [BZ #18560]
11516         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
11517         (IPCOP_semop): Likewise.
11518         (IPCOP_semget): Likewise.
11519         (IPCOP_semctl): Likewise.
11520         (IPCOP_msgsnd): Likewise.
11521         (IPCOP_msgrcv): Likewise.
11522         (IPCOP_msgget): Likewise.
11523         (IPCOP_msgctl): Likewise.
11524         (IPCOP_shmat): Likewise.
11525         (IPCOP_shmdt): Likewise.
11526         (IPCOP_shmget): Likewise.
11527         (IPCOP_shmctl): Likewise.
11528
11529 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11530
11531         * string/tst-endian.c: Include <libc-internal.h>.
11532         (do_test): Ignore tautological-compare warnings around
11533         "htobeXX (beXXtoh (i)) != i" and
11534         "htoleXX (leXXtoh (i)) != i" if-statements.
11535
11536 2016-01-24  David S. Miller  <davem@davemloft.net>
11537
11538         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
11539         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
11540         alias.
11541         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11542         __sqrtl_finite.
11543
11544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11545
11546 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
11547
11548         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
11549         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
11550         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11551
11552 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11553
11554         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
11555         (thread_func): Use new function to simplify barrier check.
11556         (do_test): Use new function to simplify checking barrier exit
11557         code, and actually join the child thread.
11558
11559 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11560
11561         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
11562         semicolon.
11563         (__libc_tend): Likewise.
11564         (__libc_tabort): Likewise.
11565
11566 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
11567
11568         * sysdeps/nios2/libm-test-ulps: Update.
11569         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
11570         (__gtsf2): Likewise.
11571         (__unorddf2): Likewise.
11572         (__unordsf2): Likewise.
11573         (__ledf2): Likewise.
11574
11575 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
11576
11577         * nis/nis_table.c (__follow_path): Disable diagnostic for
11578         uninitialized variable that is a false positive for gcc 4.7.
11579         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
11580
11581 2016-01-20  Roland McGrath  <roland@hack.frob.com>
11582
11583         * sysdeps/nacl/lowlevellock-futex.h
11584         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
11585         Always evaluate PRIVATE argument.
11586
11587 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11588
11589         [BZ #19490]
11590         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
11591         (pthread_cond_broadcast): Use ENTRY/END
11592         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
11593         (pthread_cond_signal): Likewise.
11594         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
11595         Likewise.
11596         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
11597         Likewise.
11598         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
11599         Likewise.
11600
11601 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
11602
11603         * sysdeps/ieee754/dbl-64/s_finite.c
11604         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
11605         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
11606         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
11607         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
11608         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
11609
11610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11611         (__gtsf2): Add as optional for libc.so.
11612         (__unordsf2): Likewise.
11613         (__signbit): Remove for libc.so.
11614         (__signbitl): Likewise.
11615
11616 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
11617
11618         * iconvdata/bug-iconv11.c (test_ibm93x):
11619         Use %zu printf format specifier for size_t argument.
11620
11621 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
11622
11623         * math/gen-libm-test.pl (parse_ulps): Do not reduce
11624         already-recorded ulps.
11625         * sysdeps/arm/libm-test-ulps: Regenerated.
11626         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11627         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11628         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11629
11630 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
11631             Paul Pluzhnikov  <ppluzhnikov@google.com>
11632
11633         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
11634         assembler not supporting AVX-512.
11635
11636 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11637
11638         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11639
11640 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11641
11642         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
11643         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11644
11645         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
11646
11647         * sysdeps/arm/libm-test-ulps: Regenerated.
11648
11649 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11650
11651         [BZ #19451]
11652         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
11653
11654 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11655
11656         [BZ #19486]
11657         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
11658         * sysdeps/generic/fix-fp-int-convert-overflow.h
11659         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
11660         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
11661         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
11662         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
11663         Likewise.
11664         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
11665         Avoid conversions to long int where inexact exceptions
11666         could be raised.
11667         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
11668         Likewise.
11669         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
11670         Avoid conversions to long long int where inexact exceptions
11671         could be raised.
11672         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
11673         Likewise.
11674
11675 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
11676
11677         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
11678         * configure: Regenerated.
11679
11680 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11681
11682         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
11683
11684 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
11685
11686         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
11687         outside of comment.
11688
11689 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11690
11691         * nptl/tst-barrier1.c: Add description on first line.
11692         * nptl/tst-barrier2.c: Likewise.
11693         * nptl/tst-barrier3.c: Likewise.
11694         * nptl/tst-barrier4.c: Likewise.
11695         * nptl/tst-barrier5.c: Likewise.
11696
11697 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11698
11699         [BZ #18868]
11700         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
11701
11702 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11703
11704         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
11705         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
11706         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
11707         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
11708         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
11709         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
11710         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11711         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11712         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11713         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11714         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11715
11716 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11717
11718         [BZ #13065]
11719         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
11720         new implementation.
11721         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
11722         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
11723         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
11724         (BARRIER_IN_THRESHOLD): New macro.
11725         * nptl/pthread_barrierattr_setpshared.c
11726         (pthread_barrierattr_setpshared): Clean up.
11727         * nptl/tst-barrier4.c: Correct comment.
11728         * nptl/tst-barrier5.c: New file.
11729         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
11730         (gen-as-const-headers): Remove lowlevelbarrier.sym.
11731         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
11732         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
11733         * nptl/lowlevelbarrier.sym: Remove.
11734         * nptl/DESIGN-barrier.txt: Remove.
11735         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
11736         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
11737         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
11738         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
11739         error.
11740         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
11741         implementation.
11742
11743 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11744
11745         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
11746         (do_child): Mask SIGRTMIN while thr is running.
11747
11748 2016-01-15  Martin Sebor  <msebor@redhat.com>
11749
11750         [BZ #19432]
11751         * iconvdata/Makefile: Add bug-iconv11.
11752         * iconvdata/bug-iconv11.c: New test.
11753         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
11754         * iconvdata/ibm933.c: Same.
11755         * iconvdata/ibm935.c: Same.
11756         * iconvdata/ibm937.c: Same.
11757         * iconvdata/ibm939.c: Same.
11758
11759 2016-01-15  Martin Sebor  <msebor@redhat.com>
11760
11761         [BZ #19443]
11762         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
11763         [DEBUG] (_ufc_set_bits): Declare used.
11764         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
11765         [DEBUG] (print_all): Declare used.
11766         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
11767         operands of the ternary ?: expression to target type.
11768         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
11769         calling the undeclared abort.
11770         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
11771
11772 2016-01-15  Martin Sebor  <msebor@redhat.com>
11773
11774         [BZ #18755]
11775         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
11776         warnings.
11777         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
11778         (__gai_create_helper_thread): Same.
11779         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
11780         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
11781         to suppress -Wmaybe-uninitialized warnings.
11782
11783 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
11784
11785         [BZ #19465]
11786         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
11787         inside if.
11788         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11789         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11790         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11791
11792 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
11793
11794         [BZ #19466]
11795         * time/tst-mktime2.c (time_t_max): Removed.
11796         (time_t_min): Likewise.
11797         (TYPE_SIGNED): New.
11798         (TYPE_MINIMUM): Likewise.
11799         (TYPE_MAXIMUM): Likewise.
11800         (TIME_T_MIN): Likewise.
11801         (TIME_T_MAX): Likewise.
11802         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
11803         and TIME_T_MIN.
11804         (do_test): Likewise.
11805
11806 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
11807
11808         [BZ #19467]
11809         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11810         index_Fast_Unaligned_Load flag for Excavator family CPUs.
11811
11812 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
11813
11814         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
11815
11816 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
11817
11818         * benchtests/Makefile (PYTHON): Define.
11819         (bench-func): Use $(PYTHON) to run python scripts.
11820         ($(objpfx)bench-%.c): Likewise.
11821
11822 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
11823
11824         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
11825         leading slash when `file_name' is "/".
11826
11827 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
11828
11829         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
11830         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
11831         Likewise.
11832         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
11833         Likewise.
11834         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
11835         Likewise.
11836         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
11837         enum constant and macro.
11838         (PTRACE_SETSIGMASK): Likewise.
11839         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11840         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
11841         (PTRACE_GETSIGMASK): Likewise.
11842         (PTRACE_SETSIGMASK): Likewise.
11843         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11844         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
11845         Likewise.
11846         (PTRACE_SETSIGMASK): Likewise.
11847         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11848         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
11849         (PTRACE_GETSIGMASK): Likewise.
11850         (PTRACE_SETSIGMASK): Likewise.
11851         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11852         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
11853         Likewise.
11854         (PTRACE_SETSIGMASK): Likewise.
11855         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11856         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
11857         Likewise.
11858         (PTRACE_SETSIGMASK): Likewise.
11859         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11860         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
11861         Likewise.
11862         (PTRACE_SETSIGMASK): Likewise.
11863         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11864
11865 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
11866             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11867
11868         [BZ #19439]
11869         * math/bits/mathcalls.h
11870         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
11871         prototype.
11872         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
11873
11874 2016-01-11  Andreas Schwab  <schwab@suse.de>
11875
11876         [BZ #19253]
11877         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
11878         cache when TZDEFRULES was used.
11879         * time/tst-tzname.c: New file.
11880         * time/Makefile (test): Add tst-tzname.
11881         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
11882         * timezone/Makefile (test-zones): Add $(posixrules-file).
11883         ($(testdata)/$(posixrules-file)): New rule.
11884
11885 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11886
11887         Fix doc quoting problems with Texinfo 5
11888         Without this change, in the info file output, Texinfo 5 quotes code
11889         in text with undirected single quotes 'like this' and generates
11890         code examples that with many PDF readers cannot be cut out of PDFs
11891         and pasted into code.
11892         * manual/libc.texinfo: Configure the libc manual like the GNU
11893         Emacs manual, by using @documentencoding and setting
11894         txicodequoteundirected and txicodequotebacktick.  This way,
11895         Texinfo 5 quotes code in text with directed single quotes ‘like
11896         this’ and produces examples that can be cut out of PDFs.  This
11897         change causes Texinfo 5 to generate info files that contain UTF-8
11898         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
11899         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
11900
11901 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11902
11903         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
11904         __libc_tabort, __libc_tend): New wrappers that enforce compiler
11905         barriers to their respective compiler built-ins.
11906         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
11907         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
11908         * sysdeps/powerpc/sysdep.h: Likewise.
11909         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
11910         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
11911         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
11912
11913 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
11914
11915         * scripts/config.guess: Revert previous shebang change.
11916         * scripts/config.sub: Likewise.
11917         * scripts/mkinstalldirs: Likewise.
11918
11919 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11920
11921         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
11922         PPC_FEATURE2_HAS_IEEE128.
11923         * sysdeps/powerpc/dl-procinfo.c:
11924         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
11925
11926 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
11927
11928         [BZ #19415]
11929         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
11930         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
11931         (_dl_lookup_address): Rewrite using function resolver trampoline.
11932         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
11933         two bits in address.
11934
11935 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11936
11937         * longlong.h: Change !__SHMEDIA__ to
11938         (!defined (__SHMEDIA__) || !__SHMEDIA__).
11939         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
11940
11941 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
11942             Joseph Myers  <joseph@codesourcery.com>
11943             Mark Shinwell  <shinwell@codesourcery.com>
11944             Andrew Stubbs  <ams@codesourcery.com>
11945             Rich Felker <dalias@libc.org>
11946
11947         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
11948
11949 2016-01-07  Richard Henderson  <rth@redhat.com>
11950
11951         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
11952
11953 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11954
11955         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
11956         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
11957         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
11958         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
11959         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
11960
11961 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
11962             Joseph Myers  <joseph@codesourcery.com>
11963
11964         * timezone/private.h: Update from tzcode 2015g.
11965         * timezone/tzfile.h: Likewise.
11966         * timezone/tzselect.ksh: Likewise.
11967         * timezone/zdump.c: Likewise.
11968         * timezone/zic.c: Likewise.
11969         * timezone/ialloc.c: Remove file.
11970         * timezone/scheck.c: Likewise.
11971         * timezone/Makefile (extra-objs): Remove variable.
11972         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
11973         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
11974         -Wno-maybe-uninitialized.
11975         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
11976         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
11977         (CFLAGS-ialloc.c): Remove variable.
11978         (CFLAGS-scheck.c): Likewise.
11979         * timezone/README: Update list of files from tzcode.
11980
11981 2016-01-07  Khem Raj  <raj.khem@gmail.com>
11982
11983         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
11984         instead of __fxprintf when _LIBC is undefined.
11985
11986 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
11987
11988         * catgets/test-gencat.sh: Remove space after shebang.
11989         * conform/GlibcConform.pm: Likewise.
11990         * conform/check-header-lists.sh: Likewise.
11991         * conform/conformtest.pl: Likewise.
11992         * conform/linknamespace.pl: Likewise.
11993         * conform/list-header-symbols.pl: Likewise.
11994         * debug/catchsegv.sh: Likewise.
11995         * elf/genrtldtbl.awk: Likewise.
11996         * elf/tst-pathopt.sh: Likewise.
11997         * elf/tst-rtld-load-self.sh: Likewise.
11998         * grp/tst_fgetgrent.sh: Likewise.
11999         * iconvdata/gen-8bit-gap-1.sh: Likewise.
12000         * iconvdata/gen-8bit-gap.sh: Likewise.
12001         * iconvdata/gen-8bit.sh: Likewise.
12002         * iconvdata/run-iconv-test.sh: Likewise.
12003         * intl/tst-gettext.sh: Likewise.
12004         * intl/tst-gettext2.sh: Likewise.
12005         * intl/tst-gettext4.sh: Likewise.
12006         * intl/tst-gettext6.sh: Likewise.
12007         * intl/tst-translit.sh: Likewise.
12008         * io/ftwtest-sh: Likewise.
12009         * libio/test-freopen.sh: Likewise.
12010         * locale/gen-translit.pl: Likewise.
12011         * malloc/tst-mtrace.sh: Likewise.
12012         * manual/check-safety.sh: Likewise.
12013         * manual/libc-texinfo.sh: Likewise.
12014         * manual/tsort.awk: Likewise.
12015         * manual/xtract-typefun.awk: Likewise.
12016         * nptl/tst-cancel-wrappers.sh: Likewise.
12017         * nptl/tst-tls6.sh: Likewise.
12018         * posix/globtest.sh: Likewise.
12019         * posix/tst-getconf.sh: Likewise.
12020         * posix/wordexp-tst.sh: Likewise.
12021         * scripts/check-c++-types.sh: Likewise.
12022         * scripts/check-local-headers.sh: Likewise.
12023         * scripts/config.guess: Likewise.
12024         * scripts/config.sub: Likewise.
12025         * scripts/cpp: Likewise.
12026         * scripts/cross-test-ssh.sh: Likewise.
12027         * scripts/documented.sh: Likewise.
12028         * scripts/evaluate-test.sh: Likewise.
12029         * scripts/gen-libc-abis: Likewise.
12030         * scripts/gen-sorted.awk: Likewise.
12031         * scripts/list-fixed-bugs.py: Likewise.
12032         * scripts/merge-test-results.sh: Likewise.
12033         * scripts/mkinstalldirs: Likewise.
12034         * scripts/rellns-sh: Likewise.
12035         * scripts/test-installation.pl: Likewise.
12036         * scripts/update-copyrights: Likewise.
12037         * stdio-common/tst-printf.sh: Likewise.
12038         * stdio-common/tst-unbputc.sh: Likewise.
12039         * stdlib/tst-fmtmsg.sh: Likewise.
12040         * stdlib/tst-setcontext3.sh: Likewise.
12041         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
12042         * sysdeps/unix/make-syscalls.sh: Likewise.
12043
12044 2016-01-06  John David Anglin  <dave.anglin@bell.net>
12045
12046         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
12047         asm stw with atomic_exchange_rel.  Add explanatory comment.
12048         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
12049         Likewise.
12050
12051 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12052
12053         [BZ #19122]
12054         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
12055         * sysdeps/generic/dl-unistd.h: New file.
12056         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
12057
12058 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12059
12060          [BZ #19122]
12061          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
12062          * sysdeps/generic/dl-mman.h: New file.
12063          * sysdeps/mach/hurd/dl-mman.h: Likewise.
12064
12065 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
12066
12067         * manual/texinfo.tex: Update to version 2016-01-04.21 with
12068         trailing whitespace removed.
12069         * scripts/config.guess: Update to version 2016-01-01.
12070         * scripts/config.sub: Update to version 2016-01-01.
12071         * scripts/move-if-change: Update from gnulib.
12072
12073 2016-01-04  Anton Blanchard  <anton@samba.org>
12074
12075         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
12076         for array indices.
12077         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
12078
12079 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
12080
12081         * NEWS: Update copyright dates.
12082         * catgets/gencat.c (print_version): Likewise.
12083         * csu/version.c (banner): Likewise.
12084         * debug/catchsegv.sh: Likewise.
12085         * debug/pcprofiledump.c (print_version): Likewise.
12086         * debug/xtrace.sh (do_version): Likewise.
12087         * elf/ldconfig.c (print_version): Likewise.
12088         * elf/ldd.bash.in: Likewise.
12089         * elf/pldd.c (print_version): Likewise.
12090         * elf/sotruss.sh: Likewise.
12091         * elf/sprof.c (print_version): Likewise.
12092         * iconv/iconv_prog.c (print_version): Likewise.
12093         * iconv/iconvconfig.c (print_version): Likewise.
12094         * locale/programs/locale.c (print_version): Likewise.
12095         * locale/programs/localedef.c (print_version): Likewise.
12096         * login/programs/pt_chown.c (print_version): Likewise.
12097         * malloc/memusage.sh (do_version): Likewise.
12098         * malloc/memusagestat.c (print_version): Likewise.
12099         * malloc/mtrace.pl: Likewise.
12100         * manual/libc.texinfo: Likewise.
12101         * nptl/version.c (banner): Likewise.
12102         * nscd/nscd.c (print_version): Likewise.
12103         * nss/getent.c (print_version): Likewise.
12104         * nss/makedb.c (print_version): Likewise.
12105         * posix/getconf.c (main): Likewise.
12106         * scripts/test-installation.pl: Likewise.
12107         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
12108
12109         * All files with FSF copyright notices: Update copyright dates
12110         using scripts/update-copyrights.
12111         * intl/plural.c: Regenerated.
12112         * locale/programs/charmap-kw.h: Likewise.
12113         * locale/programs/locfile-kw.h: Likewise.
12114
12115 2016-01-02  Helge Deller  <deller@gmx.de>
12116
12117         [BZ #19285]
12118         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
12119         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
12120         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
12121         (MADV_xxK_PAGES): Remove.
12122
12123 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
12124
12125         [BZ #15421]
12126         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
12127         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
12128         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
12129         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
12130
12131 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
12132
12133         [BZ #19408]
12134         * sysdeps/unix/sysv/linux/personality.c: New file.
12135         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
12136         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
12137         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
12138         (sysdep_routines): Add personality.
12139         (tests): Add tst-personality.
12140         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
12141         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
12142         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
12143         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
12144         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
12145         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
12146         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
12147         Likewise.
12148         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
12149         Likewise.
12150         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
12151         Likewise.
12152         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
12153         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
12154         Likewise.
12155
12156 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
12157
12158         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
12159         (PATH_ARM_SYSTYPE): Remove.
12160         (PATH_CPUINFO): Likewise.
12161         (IO_BASE_FOOTBRIDGE): Likewise.
12162         (IO_SHIFT_FOOTBRIDGE): Likewise.
12163         (struct platform): Likewise.
12164         (init_iosys): Remove compatibility code for 2.4 kernels.
12165         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
12166
12167 2015-12-29  Florian Weimer  <fweimer@redhat.com>
12168
12169         * malloc/tst-malloc-thread-fail.c: New file.
12170         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
12171         (tst-malloc-thread-fail): Link against libpthread.
12172
12173 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
12174
12175         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
12176         (get_parser): New function.
12177         (main): New function.
12178
12179 2015-12-29  Rob Wu  <rob@robwu.nl>
12180
12181         [BZ #19369]
12182         * resolv/res_init.c (__res_vinit): Reset defdname before use.
12183
12184 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
12185
12186         [BZ #19270]
12187         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12188
12189 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
12190
12191         [BZ #15421]
12192         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
12193
12194 2015-12-23  Torvald Riegel  <triegel@redhat.com>
12195
12196         [BZ #13690]
12197         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
12198         after releasing it.
12199         (__lll_robust_unlock): Likewise.
12200         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12201         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
12202         (lll_robust_unlock): Likewise.
12203         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
12204         Prevent warnings in callers.
12205
12206 2015-12-23  Florian Weimer  <fweimer@redhat.com>
12207
12208         * malloc/arena.c (list_lock): Update comment.
12209
12210 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12211
12212         * sysdeps/powerpc/hwcapinfo.c: Export symbol
12213         __parse_hwcap_and_convert_at_platform to libc.a.
12214
12215 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12216
12217         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
12218         platform and feature support for POWER9.
12219         * sysdeps/powerpc/dl-procinfo.h: Likewise.
12220         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
12221         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
12222         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
12223         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
12224         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12225         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12226         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12227
12228 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12229
12230         Harmonize generic stdio-lock support with nptl
12231
12232         This fixes build when _IO_funlockfile is a macro, fixes build where
12233         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
12234         stack unwind.
12235
12236         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
12237         _IO_release_lock ): Use cleanup attribute on new
12238         _IO_acquire_lock_file variable instead of assuming that
12239         _IO_release_lock will be called.
12240         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
12241         _IO_acquire_lock_needs_exceptions_enabled.
12242         (_IO_acquire_lock_clear_flags2): New macro.
12243
12244 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12245
12246         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
12247
12248 2015-12-21  Florian Weimer  <fweimer@redhat.com>
12249
12250         [BZ #19182]
12251         * malloc/arena.c (list_lock): Document lock ordering requirements.
12252         (free_list_lock): New lock.
12253         (ptmalloc_lock_all): Comment on free_list_lock.
12254         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
12255         (detach_arena): Update comment.  free_list_lock is now needed.
12256         (_int_new_arena): Use free_list_lock around detach_arena call.
12257         Acquire arena lock after list_lock.  Add comment, including FIXME
12258         about incorrect synchronization.
12259         (get_free_list): Switch to free_list_lock.
12260         (reused_arena): Acquire free_list_lock around detach_arena call
12261         and attached threads counter update.  Add two FIXMEs about
12262         incorrect synchronization.
12263         (arena_thread_freeres): Switch to free_list_lock.
12264         * malloc/malloc.c (struct malloc_state): Update comments to
12265         mention free_list_lock.
12266
12267 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
12268
12269         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
12270         Remove functions.
12271         (sloww, sloww1): Accept argument to offset quadrant.
12272         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
12273         quadrant.
12274         (__sin, __cos): Consolidate common code into new functions.
12275         (reduce_sincos_1, do_sincos_1): New functions.
12276         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12277
12278         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
12279         code to new functions.
12280         (reduce_sincos_2, do_sincos_2): New functions.
12281         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12282
12283         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
12284         common code for sincos.
12285         (__cos) [!IN_SINCOS]: Likewise.
12286         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
12287         New function.
12288         (__sincos): Use it.
12289
12290 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
12291
12292         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
12293         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
12294         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
12295
12296 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12297
12298         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
12299         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
12300         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12301         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
12302         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12303         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
12304         index_Prefer_No_VZEROUPPER): New feature.
12305         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
12306         Prefer_No_VZEROUPPER for Knights Landing.
12307
12308 015-12-18  Torvald Riegel  <triegel@redhat.com>
12309
12310         * math/atest-exp2.c (mp_exp_m1): Remove.
12311
12312 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12313
12314         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
12315         syscalls.
12316         (__SYSCALL0): New macro.
12317         (__SYSCALL1): Likewise.
12318         (__SYSCALL2): Likewise.
12319         (__SYSCALL3): Likewise.
12320         (__SYSCALL4): Likewise.
12321         (__SYSCALL5): Likewise.
12322         (__SYSCALL6): Likewise.
12323         (__SYSCALL_CONCAT_X): Likewise.
12324         (__SYSCALL_CONCAT): Likewise.
12325         (__SYSCALL_DIST): Likewise.
12326         (__SYSCALL_CALL): Likewise.
12327
12328 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
12329
12330         [BZ #19363]
12331         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
12332
12333 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12334
12335         [BZ #19375]
12336         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
12337         negative subnormals.
12338
12339 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
12340
12341         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12342         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
12343         (INTERNAL_SYSCALL_NCS): Use it.
12344         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12345
12346 2015-12-16  Florian Weimer  <fweimer@redhat.com>
12347
12348         [BZ #19243]
12349         * malloc/arena.c (get_free_list): Remove assert and adjust
12350         reference count handling.  Add comment about reused_arena
12351         interaction.
12352         (reused_arena): Add comments abount get_free_list interaction.
12353         * malloc/tst-malloc-thread-exit.c: New file.
12354         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
12355         (tst-malloc-thread-exit): Link against libpthread.
12356
12357 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12358
12359         [BZ #19367]
12360         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
12361         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
12362         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
12363         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
12364         (index_Prefer_MAP_32BIT_EXEC): Likewise.
12365
12366 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12367
12368         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
12369         Silvermont optimizations for Knights Landing.
12370
12371 2015-12-15  Andreas Schwab  <schwab@suse.de>
12372
12373         [BZ #17197]
12374         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
12375         immediately after emitting SI.
12376         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
12377         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
12378         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
12379         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
12380         * iconvdata/bug-iconv10.c: New file.
12381         * iconvdata/Makefile (tests): Add bug-iconv10.
12382         ($(objpfx)bug-iconv10.out): New rule.
12383
12384 2015-12-15  Florian Weimer  <fweimer@redhat.com>
12385
12386         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
12387         aliasing violation.
12388
12389 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
12390
12391         [BZ #18472]
12392         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
12393         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
12394         conditionals for them.
12395         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
12396         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
12397         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
12398         sys/kdaemon.h.
12399         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
12400         compat-only syscall, obsoleted in glibc 2.23.
12401         (create_module): Likewise.
12402         (get_kernel_syms): Likewise.
12403         (query_module): Likewise.
12404         (uselib): Likewise.
12405         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
12406
12407 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
12408
12409         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
12410         <linux/version.h>.
12411         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
12412         conditional code.
12413         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
12414         and ioshift_name initialization.
12415
12416 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12417
12418         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12419         Fix indentation.
12420
12421 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12422
12423         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
12424
12425 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12426
12427         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
12428
12429 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12430             Jakub Wilk  <jwilk@debian.org>
12431
12432         [BZ #19347]
12433         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
12434         to change the group of the device to the tty group.
12435
12436 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
12437
12438         Split large string section; add truncation advice
12439         * manual/examples/strncat.c: Remove.
12440         This example was misleading, as the code would have undefined
12441         behavior if "hello" was longer than SIZE.  Anyway, the manual
12442         shouldn't encourage strncpy+strncat for this sort of thing.
12443         * manual/string.texi (Copying Strings and Arrays): Split into
12444         three sections Copying Strings and Arrays, Concatenating Strings,
12445         and Truncating Strings, as this section was way too long.  All
12446         cross-referenced changed.  Add advice about string-truncation
12447         functions.  Remove misleading strncat example.
12448
12449 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
12450
12451         * manual/nss.texi (NSS Modules Interface): Document
12452         NSS_STATUS_NOTFOUND and SUCCESS.
12453
12454 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12455
12456         [BZ 18568]
12457         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
12458         201505L, for Unicode 8.
12459
12460 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
12461
12462         * locale/C-translit.h: Regenerate.
12463
12464 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12465
12466         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
12467         and U+0153.
12468
12469 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
12470
12471         [BZ #19351]
12472         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
12473         expanding log(1+z), compare z rather than its square with epsilon
12474         to determine when to avoid evaluating the expansion.
12475
12476         [BZ #19350]
12477         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
12478         Increase overflow threshold.
12479
12480         [BZ #19349]
12481         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
12482         when small.
12483
12484         * sysdeps/unix/sysv/linux/i386/kernel-features.h
12485         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12486         New macro.
12487         [__LINUX_KERNEL_VERSION >= 0x040300]
12488         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12489         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12490         Likewise.
12491         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12492         Likewise.
12493         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12494         Likewise.
12495         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12496         Likewise.
12497         [__LINUX_KERNEL_VERSION >= 0x040300]
12498         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12499         [__LINUX_KERNEL_VERSION >= 0x040300]
12500         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12501         [__LINUX_KERNEL_VERSION >= 0x040300]
12502         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12503         [__LINUX_KERNEL_VERSION >= 0x040300]
12504         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12505         [__LINUX_KERNEL_VERSION >= 0x040300]
12506         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12507         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12508         Likewise.
12509         [__LINUX_KERNEL_VERSION >= 0x040300]
12510         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12511         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12512         Likewise.
12513         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12514         Likewise.
12515         [__LINUX_KERNEL_VERSION >= 0x040300]
12516         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12517         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12518         Likewise.
12519         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12520         Likewise.
12521         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
12522         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
12523         Likewise.
12524         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
12525         Likewise.
12526         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12527         Likewise.
12528         [__LINUX_KERNEL_VERSION >= 0x040300]
12529         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12530         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12531         Likewise.
12532         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12533         Likewise.
12534         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12535         Likewise.
12536         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12537         Likewise.
12538         [__LINUX_KERNEL_VERSION >= 0x040300]
12539         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12540         [__LINUX_KERNEL_VERSION >= 0x040300]
12541         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12542         [__LINUX_KERNEL_VERSION >= 0x040300]
12543         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12544         [__LINUX_KERNEL_VERSION >= 0x040300]
12545         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12546         [__LINUX_KERNEL_VERSION >= 0x040300]
12547         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12548         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12549         Likewise.
12550         [__LINUX_KERNEL_VERSION >= 0x040300]
12551         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12552         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12553         Likewise.
12554         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12555         Likewise.
12556         [__LINUX_KERNEL_VERSION >= 0x040300]
12557         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12558         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12559         Likewise.
12560         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12561         Likewise.
12562         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12563         (__ASSUME_SOCKET_SYSCALL): Likewise.
12564         (__ASSUME_BIND_SYSCALL): Likewise.
12565         (__ASSUME_CONNECT_SYSCALL): Likewise.
12566         (__ASSUME_LISTEN_SYSCALL): Likewise.
12567         (__ASSUME_ACCEPT_SYSCALL): Likewise.
12568         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12569         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12570         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12571         (__ASSUME_SEND_SYSCALL): Likewise.
12572         (__ASSUME_SENDTO_SYSCALL): Likewise.
12573         (__ASSUME_RECV_SYSCALL): Likewise.
12574         (__ASSUME_RECVFROM_SYSCALL): Likewise.
12575         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
12576         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12577         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12578         (__ASSUME_SENDMSG_SYSCALL): Likewise.
12579         (__ASSUME_RECVMSG_SYSCALL): Likewise.
12580         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12581         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
12582         Likewise.
12583         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
12584         Likewise.
12585         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
12586         Likewise.
12587         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
12588         Likewise.
12589         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
12590         Likewise.
12591         [__LINUX_KERNEL_VERSION >= 0x020625]
12592         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12593         [__LINUX_KERNEL_VERSION >= 0x020625]
12594         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12595         [__LINUX_KERNEL_VERSION >= 0x020625]
12596         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12597         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
12598         Likewise.
12599         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
12600         Likewise.
12601         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
12602         Likewise.
12603         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
12604         Likewise.
12605         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
12606         Likewise.
12607         [__LINUX_KERNEL_VERSION >= 0x020625]
12608         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12609         [__LINUX_KERNEL_VERSION >= 0x020625]
12610         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12611         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
12612         Likewise.
12613         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
12614         Likewise.
12615
12616 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12617
12618         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
12619         record the current if the current ABI and CPU support the FP64
12620         extension.
12621         (has-modd-spreg): Define to record the current if the current ABI and
12622         CPU support 32-bit floating point values in odd FPU registers.
12623         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12624         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
12625         $(has-modd-spreg) equals yes.
12626         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
12627         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
12628         $(has-modd-spreg) equal yes.
12629
12630 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12631
12632         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
12633         basename.
12634
12635 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
12636
12637         * benchtests/Makefile (bench-math): Move ffs and ffsll...
12638         (bench-string): ... here.
12639         (bench): Add bench-string.
12640         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
12641         to *-benchset to reflect what they are.
12642         (benchset): Adjust.
12643
12644         * benchtests/sincos-inputs: Add inputs from sin-inputs and
12645         cos-inputs.
12646
12647 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
12648
12649         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
12650         __attribute__ ((__simd__)) for vector math function declarations.
12651
12652 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12653
12654         Fix typo in strncat, wcsncat manual entries
12655         * manual/string.texi (Copying and Concatenation): Fix typos in
12656         sample implementations of strncat and wcsncat, by having them use
12657         the old value of the destination length, not the new one.
12658
12659 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
12660
12661         [BZ #16961]
12662         [BZ #16962]
12663         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
12664         string on the stack for strtod.
12665         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
12666         a string on the stack for strtof.
12667         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
12668         constructing a string on the stack for strtold.
12669         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
12670         __strtold_nan to GLIBC_PRIVATE.
12671         * math/test-nan-overflow.c: New file.
12672         * math/test-nan-payload.c: Likewise.
12673         * math/Makefile (tests): Add test-nan-overflow and
12674         test-nan-payload.
12675
12676 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         Consistency about byte vs character in string.texi
12679         * manual/string.texi (String and Array Utilities):
12680         Distinguish more carefully among bytes, multibyte characters,
12681         and wide characters.  Use "byte" when talking about C 'char',
12682         to distinguish it more clearly from multibyte characters.
12683         Say "wide character" or "multibyte character" instead of
12684         "character", when a wide or multibyte character is intended.
12685         Similarly for "multibyte string" versus "string".
12686         Define these terms more carefully.
12687
12688 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
12689
12690         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
12691         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
12692         Likewise.
12693         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12694         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12695         * sysdeps/sh/math_private.h: New file.
12696         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
12697         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
12698         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
12699         long double function name.
12700         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12701         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12702         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12703         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12704         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12706         Remove __finitel, __isinfl, and __isnanl.
12707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12708         Likewise.
12709         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12710         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12711         Remove __finitel.
12712         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12713         Likewise.
12714         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12715
12716 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
12717
12718         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
12719         installed libmvec_nonshared.a.
12720
12721 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12722
12723         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
12724         (sysdep_routines): Likewise.
12725         (sysdep-rtld-routines): Likewise.
12726         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
12727         [$(subdir) = nptl](tests-static): test-get_hwcap-static
12728         * sysdeps/powerpc/Versions: Added new
12729         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
12730         * sysdeps/powerpc/hwcapinfo.c: New file.
12731         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
12732         and parse hwcap, hwcap2 and platform number information.
12733         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
12734         to store HWCAP+HWCAP2 and platform number.
12735         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
12736         for HWCAP+HWCAP2 and platform number in the TCB.
12737         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
12738         the HWCAP, HWCAP2 and platform number in the TCB.
12739         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
12740         (TLS_INIT_TP): Included calls to add the hwcap and
12741         at_platform values in the TCB in TP initialization.
12742         (TLS_DEFINE_INIT_TP): Likewise.
12743         (THREAD_GET_HWCAP): New macro.
12744         (THREAD_SET_HWCAP): Likewise.
12745         (THREAD_GET_AT_PLATFORM): Likewise.
12746         (THREAD_SET_AT_PLATFORM): Likewise.
12747         * sysdeps/powerpc/powerpc32/dl-machine.h:
12748         (dl_platform_init): New function that calls
12749         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
12750         powerpc32.
12751         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
12752         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
12753         this functionality, static linking case.
12754         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
12755         linking case.
12756         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
12757         __parse_hwcap_and_convert_at_platform for the static linking case.
12758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
12759         Included the new __parse_hwcap_and_convert_at_platform symbol in the
12760         ABI list for GLIBC 2.23.
12761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
12762         Likewise.
12763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
12764         Likewise.
12765
12766 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
12767
12768         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
12769         * configure: Regenerate.
12770         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
12771         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
12772
12773 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
12774
12775         * iconvdata/ibm930.c: Add comment explaining encoding uses.
12776         * iconvdata/ibm933.c: Likewise.
12777         * iconvdata/ibm935.c: Likewise.
12778         * iconvdata/ibm937.c: Likewise.
12779         * iconvdata/ibm939.c: Likewise.
12780
12781 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12782
12783         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
12784         pthread_join.
12785         * nptl/tst-cancel21.c (tf): Likewise.
12786
12787 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12788
12789         [BZ #19313]
12790         * bits/typesizes.h (__CPU_MASK_TYPE): New.
12791         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12792         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12793         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
12794         Likewise.
12795         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
12796         Likewise.
12797         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
12798         Likewise.
12799         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
12800         Likewise.
12801         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
12802         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
12803         unsigned long int with __CPU_MASK_TYPE.
12804
12805 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12806
12807         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12808
12809 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
12810
12811         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
12812         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
12813         t512.x.
12814         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
12815
12816 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
12817
12818         [BZ #19214]
12819         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
12820         argument to return extended model.  Update family and model
12821         with extended family and model when family == 0x0f.
12822         (init_cpu_features): Updated.
12823
12824 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12825
12826         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
12827         signed off_t, so 32bit bigger than 2GiB values are fine actually.
12828
12829         * sysdeps/mach/hurd/mmap64.c: New file.
12830
12831 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
12832
12833         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
12834         rights for its main user thread in NEWTASK.
12835
12836 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
12837
12838         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
12839         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
12840
12841 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
12842
12843         [BZ #14259]
12844         * Makeconfig: Rename localedir to complocaledir.
12845         Rename inst_localedir to inst_complocaledir.
12846         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
12847         * config.make.in: Use complocaledir and libc_cv_complocaledir.
12848         * configure.ac: Use libc_cv_complocaledir.
12849         * configure: Regenerate.
12850         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
12851         -DCOMPLOCALEDIR.
12852         * locale/findlocale.c: Use COMPLOCALEDIR.
12853         * locale/loadarchive.c: Likewise.
12854         * locale/programs/locale.c: Likewise.
12855         * locale/programs/localedef.c: Likewise.
12856         * locale/programs/locarchive.c: Likewise.
12857         * localedata/Makefile: Use inst_complocaledir.
12858         * sysdeps/gnu/configure: Regenerate.
12859         * sysdeps/hppa/configure: Regenerate.
12860         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
12861         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
12863         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
12864         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
12865         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
12866         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
12867
12868 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
12869
12870         [BZ #19058]
12871         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
12872         AS_NEEDED.
12873         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
12874         workaround.
12875         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
12876         libmvec-static-only-routines): Added new file.
12877         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
12878
12879 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12880
12881         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
12882         of interrupted RPC instead of restoring it.
12883
12884         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
12885         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
12886         libc_hidden_def.
12887         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
12888         into initialized data instead of common. Define rtld_hidden_data_def.
12889         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
12890         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
12891         libc_hidden_def.
12892         (if_freenameindex): Add libc_hidden_weak.
12893         (if_nameindex): Add libc_hidden_weak.
12894         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
12895         __open64.
12896         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
12897         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
12898         * sysdeps/mach/nanosleep.c: Include <time.h>
12899         (__nanosleep): Rename to __libc_nanosleep.
12900         (__nanosleep): Add weak_alias.
12901         (nanosleep): Update alias.
12902
12903 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
12904
12905         * stdlib/strtod_nan.c: New file.
12906         * stdlib/strtod_nan_double.h: Likewise.
12907         * stdlib/strtod_nan_float.h: Likewise.
12908         * stdlib/strtod_nan_main.c: Likewise.
12909         * stdlib/strtod_nan_narrow.h: Likewise.
12910         * stdlib/strtod_nan_wide.h: Likewise.
12911         * stdlib/strtof_nan.c: Likewise.
12912         * stdlib/strtold_nan.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
12914         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
12915         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
12916         * wcsmbs/wcstod_nan.c: Likewise.
12917         * wcsmbs/wcstof_nan.c: Likewise.
12918         * wcsmbs/wcstold_nan.c: Likewise.
12919         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
12920         strtold_nan.
12921         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
12922         wcstof_nan.
12923         * include/stdlib.h (__strtof_nan): Declare and use
12924         libc_hidden_proto.
12925         (__strtod_nan): Likewise.
12926         (__strtold_nan): Likewise.
12927         (__wcstof_nan): Likewise.
12928         (__wcstod_nan): Likewise.
12929         (__wcstold_nan): Likewise.
12930         * include/wchar.h (____wcstoull_l_internal): Declare.
12931         * stdlib/strtod_l.c: Do not include <ieee754.h>.
12932         (____strtoull_l_internal): Remove declaration.
12933         (STRTOF_NAN): Define macro.
12934         (SET_MANTISSA): Remove macro.
12935         (STRTOULL): Likewise.
12936         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
12937         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
12938         (STRTOF_NAN): Define macro.
12939         (SET_MANTISSA): Remove macro.
12940         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
12941         (SET_MANTISSA): Remove macro.
12942         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
12943         macro.
12944         (SET_MANTISSA): Remove macro.
12945         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
12946         macro.
12947         (SET_MANTISSA): Remove macro.
12948         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
12949         (SET_MANTISSA): Remove macro.
12950         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
12951         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
12952         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
12953
12954         [BZ #19266]
12955         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
12956         upper case and lower case letters inside NAN(), not using TOLOWER.
12957         * stdlib/tst-strtod-nan-locale-main.c: New file.
12958         * stdlib/tst-strtod-nan-locale.c: Likewise.
12959         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
12960         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
12961         Depend on $(gen-locales).
12962         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
12963         * wcsmbs/tst-wcstod-nan-locale.c: New file.
12964         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
12965         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
12966         Depend on $(gen-locales).
12967         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
12968
12969 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
12970
12971         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
12972
12973         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12974         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
12975         __finitel, __isinfl, and __isnanl.
12976         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12977         Likewise.
12978         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
12980         __finitel.
12981         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12982         Likewise.
12983         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12984
12985 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12986
12987         * malloc/memusage.c (me): Remove redundant getenv call.
12988
12989 2015-10-24  Florian Weimer  <fweimer@redhat.com>
12990
12991         [BZ #19143]
12992         [BZ #19164]
12993         * nptl/check-cpuset.h: Remove.
12994         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
12995         Remove CPU set size check.
12996         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
12997         Likewise.
12998         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
12999         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
13000         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
13001         (__pthread_setaffinity_new): Remove CPU set size check.
13002         * sysdeps/unix/sysv/linux/sched_setaffinity.c
13003         (__kernel_cpumask_size): Remove.
13004         (__sched_setaffinity_new): Remove CPU set size check.
13005         * manual/threads.texi (Default Thread Attributes): Remove stale
13006         reference to check_cpuset_attr, determine_cpumask_size in comment.
13007         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
13008         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
13009         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
13010         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
13011         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
13012         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
13013         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
13014         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
13015         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
13016         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
13017         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
13018         skeleton test file.
13019         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
13020         tst-affinity-pid.
13021
13022 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13023
13024         * scripts/update-abilist.sh: New file.
13025         * Makefile (+subdir_targets): Add subdir_update-all-abi.
13026         * Makerules (update-all-abi-%, update-all-abi)
13027         (subdir_update-all-abi): New targets.
13028         * elf/Makefile (update-all-abi): New target.
13029
13030 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13031
13032         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
13033         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
13034         (__libc_lock_define_initialized): Use it.
13035         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
13036         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
13037         * malloc/malloc.c (main_arena): Likewise.
13038         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13039         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13040
13041 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
13042
13043         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13044         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
13045         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13046         (PTRACE_O_MASK): Update value.
13047         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
13048         New value in enum __ptrace_setoptions.
13049         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13050         (PTRACE_O_MASK): Update value.
13051         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13052         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13053         (PTRACE_O_MASK): Update value.
13054         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13055         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13056         (PTRACE_O_MASK): Update value.
13057         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13058         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13059         (PTRACE_O_MASK): Update value.
13060         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
13061         New value in enum __ptrace_setoptions.
13062         (PTRACE_O_MASK): Update value.
13063         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
13064         New value in enum __ptrace_setoptions.
13065         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13066         (PTRACE_O_MASK): Update value.
13067
13068         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
13069         New macro.
13070         (PACKET_AUXDATA): Likewise.
13071         (PACKET_ORIGDEV): Likewise.
13072         (PACKET_VERSION): Likewise.
13073         (PACKET_HDRLEN): Likewise.
13074         (PACKET_RESERVE): Likewise.
13075         (PACKET_TX_RING): Likewise.
13076         (PACKET_LOSS): Likewise.
13077         (PACKET_VNET_HDR): Likewise.
13078         (PACKET_TX_TIMESTAMP): Likewise.
13079         (PACKET_TIMESTAMP): Likewise.
13080         (PACKET_FANOUT): Likewise.
13081         (PACKET_TX_HAS_OFF): Likewise.
13082         (PACKET_QDISC_BYPASS): Likewise.
13083         (PACKET_ROLLOVER_STATS): Likewise.
13084         (PACKET_FANOUT_DATA): Likewise.
13085         (PACKET_MR_UNICAST): Likewise.
13086
13087         [BZ #19242]
13088         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
13089         (TOUPPER): Likewise.
13090         * stdlib/tst-strtol-locale-main.c: New file.
13091         * stdlib/tst-strtol-locale.c: Likewise.
13092         * stdlib/Makefile (tests): Add tst-strtol-locale.
13093         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
13094         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
13095         Depend on $(gen-locales).
13096         * wcsmbs/tst-wcstol-locale.c: New file.
13097         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
13098         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
13099         tr_TR.ISO-8859-9.
13100         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
13101         Depend on $(gen-locales).
13102
13103 2015-11-20  Roland McGrath  <roland@hack.frob.com>
13104
13105         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
13106         __glibc_likely instead of __builtin_expect.  After falling back to
13107         dyncode_create in a non-ET_DYN case, use the allocate_code_data
13108         system interface to register the code pages as occupied.
13109
13110 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
13111
13112         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13113         [!ARM_MATH_PRIVATE_H].
13114         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
13115         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13116         [!HPPA_MATH_PRIVATE_H].
13117         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
13118         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
13119         to [!I386_MATH_PRIVATE_H].
13120         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
13121         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
13122         Change guard to [!M68K_MATH_PRIVATE_H].
13123         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
13124         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
13125         guard to [!MICROBLAZE_MATH_PRIVATE_H].
13126         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
13127         macro.
13128         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13129         [!MIPS_MATH_PRIVATE_H].
13130         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
13131         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13132         [!NIO2_MATH_PRIVATE_H].
13133         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
13134         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13135         [!TILE_MATH_PRIVATE_H].
13136         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
13137
13138         [BZ #15421]
13139         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
13140         initialize with 0 and define as weak alias of __signgam.
13141         * include/math.h [!_ISOMAC] (__signgam): Declare.
13142         * math/Makefile (libm-calls): Add w_lgamma_compat.
13143         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
13144         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
13145         test-signgam-ullong-init.
13146         (tests-static): Add test-signgam-uchar-static,
13147         test-signgam-uchar-init-static, test-signgam-uint-static,
13148         test-signgam-uint-init-static, test-signgam-ullong-static and
13149         test-signgam-ullong-init-static.
13150         (CFLAGS-test-signgam-uchar.c): New variable.
13151         (CFLAGS-test-signgam-uchar-init.c): Likewise.
13152         (CFLAGS-test-signgam-uchar-static.c): Likewise.
13153         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
13154         (CFLAGS-test-signgam-uint.c): Likewise.
13155         (CFLAGS-test-signgam-uint-init.c): Likewise.
13156         (CFLAGS-test-signgam-uint-static.c): Likewise.
13157         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
13158         (CFLAGS-test-signgam-ullong.c): Likewise.
13159         (CFLAGS-test-signgam-ullong-init.c): Likewise.
13160         (CFLAGS-test-signgam-ullong-static.c): Likewise.
13161         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
13162         * math/Versions (libm): Add GLIBC_2.23.
13163         * math/lgamma-compat.h: New file.
13164         * math/test-signgam-main.c: Likewise.
13165         * math/test-signgam-uchar-init-static.c: Likewise.
13166         * math/test-signgam-uchar-init.c: Likewise.
13167         * math/test-signgam-uchar-static.c: Likewise.
13168         * math/test-signgam-uchar.c: Likewise.
13169         * math/test-signgam-uint-init-static.c: Likewise.
13170         * math/test-signgam-uint-init.c: Likewise.
13171         * math/test-signgam-uint-static.c: Likewise.
13172         * math/test-signgam-uint.c: Likewise.
13173         * math/test-signgam-ullong-init-static.c: Likewise.
13174         * math/test-signgam-ullong-init.c: Likewise.
13175         * math/test-signgam-ullong-static.c: Likewise.
13176         * math/test-signgam-ullong.c: Likewise.
13177         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
13178         wrapper of w_lgamma_main.c.
13179         * math/w_lgamma_compat.c: New file.
13180         * math/w_lgamma_compatf.c: Likewise.
13181         * math/w_lgamma_compatl.c: Likewise.
13182         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
13183         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13184         defining compatibility symbols.
13185         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
13186         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
13187         wrapper of w_lgammaf_main.c.
13188         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
13189         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13190         defining compatibility symbols.
13191         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
13192         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
13193         wrapper of w_lgammal_main.c.
13194         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
13195         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13196         defining compatibility symbols.
13197         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
13198         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
13199         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
13200         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
13201         <lgamma-compat.h>.
13202         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
13203         (__ieee754_gamma): Define as alias.
13204         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
13205         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
13206         <lgamma-compat.h>.
13207         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
13208         (__ieee754_gammaf): Define as alias.
13209         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
13210         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
13211         <lgamma-compat.h>.
13212         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
13213         (__ieee754_gammal): Define as alias.
13214         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
13215         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
13216         <math/w_lgamma_compat.c>.
13217         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
13218         Define as alias of __lgamma_compat and use in defining lgammal.
13219         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
13220         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
13221         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
13222         (USE_AS_COMPAT): New macro.
13223         (LGAMMA_OLD_VER): Undefine and redefine.
13224         (lgammal): Do not define here.
13225         (gammal): Only define here if [GAMMA_ALIAS].
13226         * conform/linknamespace.pl (@whitelist): Remove signgam.
13227         * sysdeps/nacl/libm.abilist: Update.
13228         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13229         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13230         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13231         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13232         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13233         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13234         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13235         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13236         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13237         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13238         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13239         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13241         Likewise.
13242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13243         Likewise.
13244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13245         Likewise.
13246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13247         Likewise.
13248         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13249         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13250         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13251         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13252         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13253         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13254         Likewise.
13255         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13256         Likewise.
13257         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13258         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13259         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13260
13261 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13262
13263         [BZ #16364]
13264         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
13265         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
13266
13267 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13268
13269         * sysdeps/s390/fpu/bits/mathinline.h:
13270         Use __asm__ [__volatile__] instead of asm [volatile].
13271         * sysdeps/s390/abort-instr.h: Likewise.
13272         * sysdeps/s390/atomic-machine.h: Likewise.
13273         * sysdeps/s390/bits/string.h: Likewise.
13274         * sysdeps/s390/dl-tls.h: Likewise.
13275         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13276         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13277         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13278         * sysdeps/s390/fpu/fesetround.c: Likewise.
13279         * sysdeps/s390/fpu/fpu_control.h: Likewise.
13280         * sysdeps/s390/fpu/s_fma.c: Likewise.
13281         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
13282         * sysdeps/s390/memusage.h: Likewise.
13283         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
13284         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
13285         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
13286         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
13287         * sysdeps/s390/nptl/tls.h: Likewise.
13288         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
13289         * sysdeps/s390/s390-32/backtrace.c: Likewise.
13290         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13291         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
13292         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13293         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
13294         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
13295         * sysdeps/s390/s390-64/backtrace.c: Likewise.
13296         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13297         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
13298         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13299         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13300         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13301         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
13302         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13303         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13304         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
13305         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
13306         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
13307         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13308         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
13309         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13310         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
13311
13312 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13313             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13314
13315         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
13316         Add lwarx hint, and use macro for acquire instruction.
13317         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
13318         Likewise.
13319         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
13320         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
13321         update to use new atomic macros.
13322
13323 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13324
13325         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13326         (__lll_trylock_elision): Fix setting of adapt_count.
13327         * sysdeps/unix/sysv/linux/powerpc/htm.h
13328         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
13329         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
13330         (_ABORT_SYSCALL): Renumber, and clarify definition.
13331         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
13332
13333 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13334
13335         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
13336         after system headers to prevent MIN/MAX redefinition.  Define
13337         HAVE_ALLOCA to preserve builtin alloca usage.
13338
13339 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13340
13341         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
13342         static and don't set or restore rounding.
13343         (__cos)[IN_SINCOS]: Likewise.
13344         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
13345         (__sincos): Set and restore rounding mode.  Remove check for infinite
13346         or NaN input.
13347
13348         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
13349
13350         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
13351         as used.
13352
13353 2015-11-16  Florian Weimer  <fweimer@redhat.com>
13354
13355         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
13356
13357 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13358
13359         * config.make.in (have-glob-dat-reloc): New.
13360         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
13361         target supports GLOB_DAT relocaton. AC_SUBST.
13362         * configure: Regenerated.
13363         * elf/Makefile (tests): Add tst-prelink.
13364         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13365         (tst-prelink-ENV): New.
13366         ($(objpfx)tst-prelink-conflict.out): Likewise.
13367         ($(objpfx)tst-prelink-cmp.out): Likewise.
13368         * sysdeps/x86/tst-prelink.c: Moved to ...
13369         * elf/tst-prelink.c: Here.
13370         * sysdeps/x86/tst-prelink.exp: Moved to ...
13371         * elf/tst-prelink.exp: Here.
13372         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
13373         (tst-prelink-ENV): Removed.
13374         ($(objpfx)tst-prelink-conflict.out): Likewise.
13375         ($(objpfx)tst-prelink-cmp.out): Likewise.
13376         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
13377
13378 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
13379
13380         [BZ #14551]
13381         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
13382         (__mpn_construct_long_double): If high part overflows to infinity,
13383         set errno and recompute overflowed result of the correct sign.
13384         * sysdeps/ieee754/ldbl-128ibm/Makefile
13385         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
13386         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
13387         $(libm).
13388         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
13389
13390 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
13391
13392         [BZ #15479]
13393         [BZ #19238]
13394         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
13395         floating-point state after first operation on input.  Restore full
13396         state rather than just rounding mode.
13397         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
13398         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
13399         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
13400
13401         [BZ #19235]
13402         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
13403         add 0.5 to integer arguments.
13404         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
13405         Likewise.
13406         (.LC2): New object.
13407
13408 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
13409
13410         * scripts/pylintrc (reports): Set to no.
13411
13412 2015-11-10  Roland McGrath  <roland@hack.frob.com>
13413
13414         * elf/dl-load.c (open_verify): Take new argument FD.
13415         Skip __open call if passed FD is not -1.
13416         (_dl_map_object, open_path): Update callers.
13417         * elf/dl-sysdep-open.h: New file.
13418         * elf/dl-load.c: Include it.
13419         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
13420         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
13421         * sysdeps/nacl/dl-sysdep-open.h: New file.
13422         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
13423         from libc to rtld.
13424
13425 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13426
13427         [BZ #19228]
13428         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
13429         and restore full floating-point state.
13430         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
13431         Likewise.
13432         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
13433         Likewise.
13434         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
13435         Likewise.
13436         * math/test-nearbyint-except-2.c: New file.
13437         * math/Makefile (tests): Add test-nearbyint-except-2.
13438
13439 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
13440
13441         [BZ #19178]
13442         * sysdeps/x86/Makefile (tests): Add tst-prelink.
13443         (tst-prelink-ENV): New.
13444         ($(objpfx)tst-prelink-conflict.out): Likewise.
13445         ($(objpfx)tst-prelink-cmp.out): Likewise.
13446         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13447         * sysdeps/x86/tst-prelink.c: New file.
13448         * sysdeps/x86/tst-prelink.exp: Likewise.
13449
13450 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13451
13452         * math/auto-libm-test-in: Add another test of pow.
13453         * math/auto-libm-test-out: Regenerated.
13454         * math/libm-test.inc (pow_test_data): Add another test.
13455
13456 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13457
13458         [BZ #19219]
13459         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
13460         weak_alias to nearbyintl.
13461
13462 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13463
13464         * sysdeps/aarch64/bits/string.h: New file.
13465         (_STRING_ARCH_unaligned): Define.
13466
13467 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13468
13469         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
13470         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
13471         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
13472         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
13473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
13474
13475 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
13476
13477         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
13478         for original name of the DSO.  Add it to the name list of the DSO
13479         if it is actually given.
13480         (_dl_map_object): Keep track of whether an audit module rewrote
13481         the file name.  If yes, pass the original name to
13482         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
13483         debugging is enabled, log the change of the file name.
13484         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
13485         _dl_map_object_from_fd.
13486         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
13487         * elf/tst-audit11.c: New file
13488         * elf/tst-auditmod11.c: New file.
13489         * elf/tst-audit11mod1.c: New file.
13490         * elf/tst-audit11mod2.c: New file.
13491         * elf/tst-audit11mod2.map: New file.
13492         * elf/tst-audit12.c: New file
13493         * elf/tst-auditmod12.c: New file.
13494         * elf/tst-audit12mod1.c: New file.
13495         * elf/tst-audit12mod2.c: New file.
13496         * elf/tst-audit12mod2.map: New file.
13497         * elf/tst-audit12mod3.c: New file.
13498
13499 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13500
13501         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
13502         Don't create weak aliases,
13503         because versioned symbols are created later.
13504         * sysdeps/s390/s390-32/setjmp.S
13505         (setjmp, _setjmp): Remove weak and rename to an unique name
13506         in SHARED case due to existing versioned symbols.
13507         * sysdeps/s390/s390-64/setjmp.S: Likewise.
13508         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
13509         (getcontext): Create weak alias only in non SHARED case.
13510         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
13511
13512 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13513
13514         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
13515         (__ASSUME_*_SYSCALL) Define new macros.
13516         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
13517         Remove socketcall syscalls.
13518         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
13519         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
13520         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
13521         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
13522         * sysdeps/unix/sysv/linux/send.c (__libc_send):
13523         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
13524
13525 2015-11-09  Florian Weimer  <fweimer@redhat.com>
13526
13527         [BZ #12926]
13528         Terminate process on invalid netlink response.
13529         * sysdeps/unix/sysv/linux/netlinkaccess.h
13530         (__netlink_assert_response): Declare.
13531         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
13532         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
13533         (sysdep_routines): Add netlink_assert_response.
13534         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
13535         __netlink_assert_response.
13536         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
13537         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
13538         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
13539         __netlink_assert_response.
13540
13541 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13542
13543         [BZ #19178]
13544         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
13545         (RTYPE_CLASS_PLT): Likewise.
13546         (RTYPE_CLASS_COPY): Likewise.
13547         (RTYPE_CLASS_TLS): Likewise.
13548         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
13549         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
13550         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
13551         DL_DEBUG_PRELINK.
13552
13553 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
13554
13555         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
13556         calls with argument -0.5.
13557         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
13558
13559         * configure.ac (libc_cv_z_nodelete): Remove configure test.
13560         (libc_cv_z_nodlopen): Likewise.
13561         (libc_cv_z_initfirst): Likewise.
13562         * configure: Regenerated.
13563
13564 2015-11-06  Florian Weimer  <fweimer@redhat.com>
13565
13566         Simplify abilist format to be line-based.
13567         * scripts/abilist.awk: Collect descriptors in the descs variable.
13568         (emit): Write descs variable and sort it
13569         externally, with sort.
13570         * sysdeps/**/*.abilist: Convert to new format.
13571
13572 2015-11-06  Mark Wielaard  <mjw@redhat.com>
13573
13574         [BZ #11460]
13575         * io/Makefile (routines): Add fts64.
13576         (tests): Add tst-fts and tst-fts-lfs.
13577         (CFLAGS-fts64.c): New.
13578         * io/Versions (GLIBC_2.23): New.
13579         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
13580         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
13581         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
13582         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
13583         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
13584         (FTSENT64): Likewise.
13585         (fts64_children): Likewise.
13586         (fts64_close): Likewise.
13587         (fts64_open): Likewise.
13588         (fts64_read): Likewise.
13589         (fts64_set): Likewise.
13590         * io/fts64.c: New file.
13591         * io/tst-fts.c: New test.
13592         * io/tst-fts-lfs.c: Likewise.
13593         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
13594         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
13595         fts64_set.
13596         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13597         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13598         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13599         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13600         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13601         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13602         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13603         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13604         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13605         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13606         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13607         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13608         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13610         Likewise.
13611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13612         Likewise.
13613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13615         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13616         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13617         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13618         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13619         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13620         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13621         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13622         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13623         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13624         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13625         * sysdeps/wordsize-64/fts.c: New file.
13626         * sysdeps/wordsize-64/fts64.c: Likewise.
13627         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
13628         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
13629         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
13630         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
13631
13632 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13633
13634         * math/libm-test.inc (NON_FINITE): New macro.
13635         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
13636         * math/gen-libm-test.pl (show_exceptions): Add argument
13637         $non_finite.
13638         (parse_args): Update call to show_exceptions.
13639         * math/test-math-finite.h: New file.
13640         * math/test-math-no-finite.h: Likewise.
13641         * math/test-double-finite.c: Likewise.
13642         * math/test-float-finite.c: Likewise.
13643         * math/test-ldouble-finite.c: Likewise.
13644         * math/test-double.c: Include "test-math-no-finite.h".
13645         * math/test-float.c: Include "test-math-no-finite.h".
13646         * math/test-ldouble.c: Include "test-math-no-finite.h".
13647         * math/test-math-inline.h (TEST_FINITE): New macro.
13648         * math/test-math-vector.h (TEST_FINITE): Likewise.
13649         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
13650         (libm-tests): Add test-float-finite and test-double-finite.
13651         ($(objpfx)test-float-finite.o): New dependency on
13652         $(objpfx)libm-test.stmp.
13653         ($(objpfx)test-double-finite.o): Likewise.
13654         ($(objpfx)test-ldouble-finite.o): Likewise.
13655         (libm-test-no-inline-cflags): New variable.
13656         (libm-test-finite-cflags): Likewise.
13657         (CFLAGS-test-float-finite.c): Likewise.
13658         (CFLAGS-test-double-finite.c): Likewise.
13659         (CFLAGS-test-ldouble-finite.c): Likewise.
13660         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
13661         (CFLAGS-test-double.c): Likewise.
13662         (CFLAGS-test-ldouble.c): Likewise.
13663
13664 2015-11-05  Roland McGrath  <roland@hack.frob.com>
13665
13666         * io/fcntl.c (__fcntl): Add ... to prototype.
13667         * misc/ioctl.c (__ioctl): Likewise.
13668         * misc/syscall.c (syscall): Likewise.
13669
13670 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13671
13672         * scripts/list-fixed-bugs.py: New file.
13673
13674         [BZ #19213]
13675         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
13676         returned for argument 1.
13677         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
13678         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
13679         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
13680         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
13681         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
13682         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
13683
13684         [BZ #19211]
13685         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
13686         __USE_XOPEN], not if [!__USE_ISOC99].
13687         (lgammaf): Likewise.
13688         (lgammal): Likewise.
13689         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
13690         (gammaf): Likewise.
13691         (gammal): Likewise.
13692         * math/test-signgam-finite-c11.c: New file.
13693         * math/test-signgam-finite-c99.c: Likewise.
13694         * math/test-signgam-finite.c: Likewise.
13695         * math/Makefile (tests): Add test-signgam-finite,
13696         test-signgam-finite-c99 and test-signgam-finite-c11.
13697         (CFLAGS-test-signgam-finite.c): New variable.
13698         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13699         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13700
13701         [BZ #19212]
13702         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
13703         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
13704         500].
13705         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
13706         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
13707         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
13708         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
13709         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
13710         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
13711         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
13712         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
13713         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
13714         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
13715
13716         [BZ #19209]
13717         * math/bits/math-finite.h (ldexp): Remove declaration.
13718         (ldexpf): Likewise.
13719         (ldexpl): Likewise.
13720
13721         [BZ #19205]
13722         * math/bits/math-finite.h (acosf): Condition declaration on
13723         [__USE_ISOC99].
13724         (acosl): Likewise.
13725         (acoshf): Likewise.
13726         (acoshl): Likewise.
13727         (asinf): Likewise.
13728         (asinl): Likewise.
13729         (atan2f): Likewise.
13730         (atan2l): Likewise.
13731         (atanhf): Likewise.
13732         (atanhl): Likewise.
13733         (coshf): Likewise.
13734         (coshl): Likewise.
13735         (expf): Likewise.
13736         (expl): Likewise.
13737         (fmodf): Likewise.
13738         (fmodl): Likewise.
13739         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
13740         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
13741         (j0l): Likewise.
13742         (y0f): Likewise.
13743         (y0l): Likewise.
13744         (j1f): Likewise.
13745         (j1l): Likewise.
13746         (y1f): Likewise.
13747         (y1l): Likewise.
13748         (jnf): Likewise.
13749         (jnl): Likewise.
13750         (ynf): Likewise.
13751         (ynl): Likewise.
13752         (lgammaf_r): Condition declaration on [__USE_ISOC99].
13753         (lgammal_r): Likewise.
13754         (__lgamma_r_finite): New declaration.
13755         (__lgammaf_r_finite): Likewise.
13756         (__lgammal_r_finite): Likewise.
13757         (lgamma): Use __lgamma_r_finite.
13758         (lgammaf): Condition definition on [__USE_ISOC99].  Use
13759         __lgammaf_r_finite.
13760         (lgammal): Condition definition on [__USE_ISOC99].  Use
13761         __lgammal_r_finite.
13762         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
13763         __lgamma_r_finite.
13764         (gammaf): Condition definition on [__USE_ISOC99].  Use
13765         __lgammaf_r_finite.
13766         (gammal): Condition definition on [__USE_ISOC99].  Use
13767         __lgammal_r_finite.
13768         (logf): Condition declaration on [__USE_ISOC99].
13769         (logl): Likewise.
13770         (log10f): Likewise.
13771         (log10l): Likewise.
13772         (ldexpf): Likewise.
13773         (ldexpl): Likewise.
13774         (powf): Likewise.
13775         (powl): Likewise.
13776         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
13777         __USE_ISOC99].
13778         (remainderf): Condition declaration on [__USE_ISOC99].
13779         (remainderl): Likewise.
13780         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
13781         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
13782         (scalbl): Likewise.
13783         (sinhf): Condition declaration on [__USE_ISOC99].
13784         (sinhl): Likewise.
13785         (sqrtf): Likewise.
13786         (sqrtl): Likewise.
13787
13788 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13789
13790         * sysdeps/arm/atomic-machine.h
13791         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13792         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13793         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
13794         Remove conditional code.
13795         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13796         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13797         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
13798         Change conditional to [__ASSEMBLER__].
13799         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13800         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
13801         [!__ASSEMBLER__].
13802         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
13803         code.
13804         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
13805         conditional macro definitions.
13806         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
13807         (__arch_compare_and_exchange_val_16_acq): Likewise.
13808         (__arch_compare_and_exchange_val_32_acq): Likewise.
13809         (atomic_exchange_and_add): Likewise.
13810         (atomic_add): Likewise.
13811         (atomic_add_negative): Likewise.
13812         (atomic_add_zero): Likewise.
13813         (atomic_bit_set): Likewise.
13814         (atomic_bit_test_set): Likewise.
13815         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
13816         code unconditional.
13817         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13818
13819         * math/test-math-errno.h: New file.
13820         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
13821         empty.
13822         (TEST_ERRNO): New macro.
13823         (TEST_EXCEPTIONS): Likewise.
13824         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
13825         (TEST_EXCEPTIONS): Likewise.
13826         * math/test-math-vector.h (TEST_ERRNO): Likewise.
13827         * math/test-double.c: Include "test-math-errno.h".
13828         * math/test-float.c: Likewise.
13829         * math/test-ldouble.c: Likewise.
13830         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
13831         code unconditional.
13832         (test_exceptions): Only run code if TEST_EXCEPTIONS.
13833         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
13834         unconditional.
13835         (test_errno): Only run code if TEST_ERRNO.
13836         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
13837
13838 2015-11-04  Florian Weimer  <fweimer@redhat.com>
13839
13840         * nptl/tst-once5.cc: Remove attribution.
13841
13842 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13843
13844         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
13845         sqrt, tan, tanh, y0, y1 and yn.
13846         * math/auto-libm-test-out: Regenerated.
13847         * math/libm-test.inc (scalb_test_data): Add more tests.
13848         (scalbn_test_data): Likewise.
13849         (scalbln_test_data): Likewise.
13850         (signbit_test_data): Likewise.
13851         (sin_test_data): Likewise.
13852         (sincos_test_data): Likewise.
13853         (sinh_test_data): Likewise.
13854         (sqrt_test_data): Likewise.
13855         (tan_test_data): Likewise.
13856         (tanh_test_data): Likewise.
13857         (tgamma_test_data): Likewise.
13858         (y0_test_data): Likewise.
13859         (y1_test_data): Likewise.
13860         (yn_test_data): Likewise.
13861         (significand_test_data): Likewise.
13862         * sysdeps/i386/fpu/libm-test-ulps: Update.
13863
13864 2015-11-03  David Kastrup  <dak@gnu.org>
13865
13866         [BZ #18604]
13867         * assert/assert.h (assert): Don't macro-expand failed assertion
13868         expression in error message.
13869         * malloc/malloc.c (assert): Likewise.
13870
13871 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
13872
13873         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
13874         test.
13875         * configure: Regenerated.
13876
13877 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
13878
13879         * math/libm-test.inc (modf_test_data): Add more tests.
13880         (nearbyint_test_data): Likewise.
13881         (nextafter_test_data): Likewise.
13882         (nexttoward_test_data): Likewise.
13883         (pow_test_data): Likewise.
13884         (remainder_test_data): Likewise.
13885         (remquo_test_data): Likewise.
13886         (rint_test_data): Likewise.
13887
13888         [BZ #19201]
13889         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
13890         Check for zero remainder in case of large exponents and ensure
13891         correct sign of result in that case.
13892         * math/libm-test.inc (remainder_test_data): Add more tests.
13893
13894         [BZ #6799]
13895         * math/s_nextafter.c: Include <errno.h>.
13896         (__nextafter): Set errno on overflow and underflow.
13897         * math/s_nexttowardf.c: Include <errno.h>.
13898         (__nexttowardf): Set errno on overflow and underflow.
13899         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
13900         (__nextafterl): Set errno on overflow and underflow.
13901         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
13902         (__nexttoward): Set errno on overflow and underflow.
13903         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
13904         (__nexttowardf): Set errno on overflow and underflow.
13905         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
13906         (__nextafterf): Set errno on overflow and underflow.
13907         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
13908         (__nextafterl): Set errno on overflow and underflow.
13909         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
13910         (__nexttoward): Set errno on overflow and underflow.
13911         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
13912         (__nexttowardf): Set errno on overflow and underflow.
13913         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
13914         (__nextafterl): Set errno on overflow and underflow.
13915         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
13916         (__nexttoward): Set errno on overflow and underflow.
13917         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
13918         (__nexttowardf): Set errno on overflow and underflow.
13919         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
13920         (__nexttoward): Set errno on overflow and underflow.
13921         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
13922         (__nexttowardf): Set errno on overflow and underflow.
13923         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
13924         (__nldbl_nexttowardf): Set errno on overflow and underflow.
13925         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
13926         (__nextafterl): Set errno on overflow and underflow.
13927         * math/libm-test.inc (nextafter_test_data): Do not allow errno
13928         setting to be missing on overflow.  Add more tests.
13929         (nexttoward_test_data): Likewise.
13930
13931         * configure.ac (libc_cv_initfini_array): Remove configure test.
13932         * configure: Regenerated.
13933
13934 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
13935
13936         [BZ #19189]
13937         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
13938         non-finite argument handle arguments with negative sign.
13939
13940         * math/libm-test.inc (j0_test_data): Do not test sign of zero
13941         result from infinite argument.
13942         (j1_test_data): Likewise.
13943         (jn_test_data): Likewise.
13944         (y0_test_data): Likewise.
13945         (y1_test_data): Likewise.
13946         (yn_test_data): Likewise.
13947
13948         [BZ #16171]
13949         * math/w_remainder.c (drem): Define as weak alias of __remainder.
13950         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
13951         * math/w_remainderf.c (dremf): Define as weak alias of
13952         __remainderf.
13953         * math/w_remainderl.c (dreml): Define as weak alias of
13954         __remainderl.
13955         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
13956         __remainder.
13957         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
13958         __remainderf.
13959         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
13960         __remainderl.
13961         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
13962         weak alias of remainderl.
13963         * sysdeps/ieee754/ldbl-opt/w_remainder.c
13964         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
13965         alias of __remainder.
13966         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
13967         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
13968         strong alias of __remainderl.
13969         (dreml): Use long_double_symbol.
13970         * math/Makefile (libm-calls): Remove w_drem.
13971         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
13972         (CFLAGS-nldbl-drem.c): Remove variable.
13973         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
13974         * math/w_drem.c: Remove file.
13975         * math/w_dremf.c: Likewise.
13976         * math/w_dreml.c: Likewise.
13977         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
13978         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
13979         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
13980
13981         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
13982         * sysdeps/i386/configure: Regenerated.
13983         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
13984         * sysdeps/x86_64/configure: Regenerated.
13985
13986         * configure.ac (libc_cv_asm_protected_directive): Remove configure
13987         test.
13988         (libc_cv_visibility_attribute): Likewise.
13989         (libc_cv_protected_data): Test unconditionally.
13990         (libc_cv_broken_visibility_attribute): Remove configure test.
13991         (libc_cv_have_sdata_section): Test unconditionally.
13992         * configure: Regenerated.
13993
13994         * include/libc-internal.h (libc_max_align_t): Remove typedef.
13995         * include/scratch_buffer.h: Include <stddef.h> instead of
13996         <libc-internal.h>.
13997         (struct scratch_buffer): Use max_align_t instead of
13998         libc_max_align_t.
13999
14000 2015-10-29  Florian Weimer  <fweimer@redhat.com>
14001
14002         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
14003         instead of extend_alloca.  Change control flow to avoid a goto.
14004         Remove assert which is trivially always true.
14005
14006 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14007
14008         [BZ #16068]
14009         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
14010         (FE_ALL_EXCEPT_X86): New macro.
14011         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14012         FE_ALL_EXCEPT.  Ensure precision control is included in
14013         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14014         handle "denormal operand exception" and clear FZ and DAZ bits.
14015         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
14016         (FE_ALL_EXCEPT_X86): New macro.
14017         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14018         FE_ALL_EXCEPT.  Ensure precision control is included in
14019         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14020         handle "denormal operand exception" and clear FZ and DAZ bits.
14021         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
14022         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
14023         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14024         test-fenv-x87 and test-fenv-sse-2.
14025         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
14026
14027         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
14028         * math/test-double.h (BUILD_COMPLEX): New macro.
14029         * math/test-float.h (BUILD_COMPLEX): Likewise.
14030         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
14031
14032         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
14033         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
14034         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
14035         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
14036         instead of DBL_DENORM_MIN in comment.
14037         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
14038         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14039         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
14040         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
14041         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
14042         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14043
14044 2015-10-28  Florian Weimer  <fweimer@redhat.com>
14045
14046         [BZ# 19048]
14047         * malloc/malloc.c (struct malloc_state): Update comment.  Add
14048         attached_threads member.
14049         (main_arena): Initialize attached_threads.
14050         * malloc/arena.c (list_lock): Update comment.
14051         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
14052         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
14053         (deattach_arena): New function.
14054         (_int_new_arena): Initialize arena reference count and deattach
14055         replaced arena.
14056         (get_free_list, reused_arena): Update reference count and deattach
14057         replaced arena.
14058         (arena_thread_freeres): Update arena reference count and only put
14059         unreferenced arenas on the free list.
14060
14061 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14062
14063         [BZ #19181]
14064         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
14065         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
14066         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
14067         * math/test-fenv-clear-main.c: New file.
14068         * math/test-fenv-clear.c: Likewise.
14069         * math/Makefile (tests): Add test-fenv-clear.
14070         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
14071         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14072         test-fenv-clear-sse.
14073         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
14074
14075         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
14076         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
14077         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
14078
14079 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14080
14081         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
14082         static libc.
14083
14084 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14085
14086         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
14087         test.
14088         * sysdeps/i386/configure: Regenerated.
14089         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
14090         test.
14091         * sysdeps/x86_64/configure: Regenerated.
14092         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
14093         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14094         memset-avx2 unconditionally instead of conditionally on
14095         [$(config-cflags-avx2) = yes].
14096         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14097         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
14098         unconditional.
14099         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
14100         * sysdeps/x86_64/multiarch/memset_chk.S
14101         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
14102         to [IS_IN (libc) && SHARED].
14103
14104 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14105
14106         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
14107         configure test.
14108         * sysdeps/arm/configure: Regenerated.
14109         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
14110         Define variable if not already defined.
14111
14112         [BZ #17404]
14113         * sysdeps/mips/atomic-machine.h
14114         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
14115         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
14116         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14117
14118         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
14119         unconditional.
14120         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
14121         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14122         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
14123         unconditional.
14124         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14125         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
14126         unconditional.
14127         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14128         * stdlib/setenv.c
14129         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
14130         code unconditional.
14131         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
14132         Remove conditional code.
14133         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
14134         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
14135         unconditional.
14136         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14137         code.
14138         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
14139         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
14140         unconditional.
14141         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14142         code.
14143         * sysdeps/ieee754/ldbl-128/k_tanl.c
14144         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14145         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14146         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
14147         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14148         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14149         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
14150         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
14151         unconditional.
14152         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14153         code.
14154         * sysdeps/ieee754/ldbl-96/k_tanl.c
14155         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14156         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14157
14158         * nptl/tst-initializers1-c11.c: New file.
14159         * nptl/tst-initializers1-gnu11.c: Likewise.
14160         * nptl/Makefile (tests): Add these new tests.
14161         (CFLAGS-tst-initializers1-c11.c): New variable.
14162         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
14163
14164         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
14165         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
14166         instead of -std=gnu99.
14167         * configure.ac (systemtap): Test with -std=gnu11 instead of
14168         -std=gnu99.
14169         * configure: Regenerated.
14170         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
14171         in compilation command in comment.
14172
14173         * sysdeps/nptl/configure.ac: Remove file.
14174         * sysdeps/nptl/configure: Remove generated file.
14175         * configure.ac (libc_cv_forced_unwind): Do not substitute.
14176         * configure: Regenerated.
14177         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
14178         * config.make.in (have-forced-unwind): Remove variable.
14179         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14180         unconditional.
14181         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
14182         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
14183         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
14184         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
14185         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14186         unconditional.
14187
14188 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14189
14190         [BZ #19174]
14191         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
14192         .skip_lock_out_of_tbegin_retries.
14193         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
14194         (__lll_lock_elision): Likewise, and respect a value of
14195         try_tbegin <= 0.
14196
14197 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14198
14199         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
14200         statement.
14201
14202 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14203
14204         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
14205         variable.
14206         (test-xfail-ISO11/stdalign.h/conform): Likewise.
14207         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
14208
14209         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
14210         of -std=c1x -D_ISOC11_SOURCE.
14211
14212         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
14213         * configure: Regenerated.
14214         * manual/install.texi (Tools for Compilation): Document
14215         requirement for GCC 4.7 or later.
14216         * INSTALL: Regenerated.
14217
14218 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
14219
14220         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
14221         on CNT to a conditional jump to 'puntdata'.
14222
14223 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14224
14225         * configure.ac (libc_cv_gcc___thread): Remove configure test.
14226         (libc_cv_gcc_tls_model_attr): Likewise.
14227         * configure: Regenerated.
14228
14229         * configure.ac (libc_cv_need_minus_P): Remove configure test.
14230         * configure: Regenerated.
14231         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
14232
14233 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
14234
14235         * configure.ac (old_glibc_headers): Remove configure test.
14236         * configure: Regenerated.
14237         * config.make.in (old-glibc-headers): Remove variable.
14238         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
14239         (install): Remove dependency on remove-old-headers.
14240         (headers2_0): Remove variable.
14241         (remove-old-headers): Remove rule.
14242
14243         * configure.ac (libc_cv_dot_text): Remove configure test.
14244         (libc_cv_asm_set_directive): Use .text instead of
14245         ${libc_cv_dot_text} in configure test.
14246         * configure: Regenerated.
14247
14248 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14249
14250         [BZ #19168]
14251         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14252
14253 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14254
14255         * configure.ac (CXX): Clear the variable if the C++ toolchain does
14256         not support static linking.
14257         * configure: Regenerate.
14258
14259 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
14260
14261         * math/libm-test.inc (check_float_internal): Do not special-case
14262         errors up to 0.5 ulp.
14263
14264         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
14265         log2.
14266         * math/auto-libm-test-out: Regenerated.
14267         * math/libm-test.inc (MAX_EXP): New macro.
14268         (ilogb_test_data): Add more tests.
14269         (isfinite_test_data): Likewise.
14270         (isgreater_test_data): Likewise.
14271         (isgreaterequal_test_data): Likewise.
14272         (isinf_test_data): Likewise.
14273         (isless_test_data): Likewise.
14274         (islessequal_test_data): Likewise.
14275         (islessgreater_test_data): Likewise.
14276         (isnan_test_data): Likewise.
14277         (isnormal_test_data): Likewise.
14278         (issignaling_test_data): Likewise.
14279         (isunordered_test_data): Likewise.
14280         (j0_test_data): Likewise.
14281         (j1_test_data): Likewise.
14282         (jn_test_data): Likewise.
14283         (lgamma_test_data): Likewise.
14284         (log_test_data): Likewise.
14285         (log10_test_data): Likewise.
14286         (log1p_test_data): Likewise.
14287         (log2_test_data): Likewise.
14288         (logb_test_data): Likewise.
14289         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14290
14291         [BZ #18611]
14292         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
14293         avoid excess range and precision on underflow.
14294         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14295         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14296         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14297         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
14298         underflow.
14299         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14300         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14301         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14302         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14303         * math/auto-libm-test-in: Do not allow missing errno setting for
14304         tests of j1 and jn.
14305         * math/auto-libm-test-out: Regenerated.
14306
14307 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
14308
14309         [BZ #15491]
14310         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
14311         floating-point environment instead of clearing all exceptions.
14312         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14313         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
14314         merging in "invalid" exceptions from frndint.
14315         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14316         * math/test-nearbyint-except.c: New file.
14317         * math/Makefile (tests): Add test-nearbyint-except.
14318
14319 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
14320
14321         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
14322
14323         * sysdeps/tile/libm-test-ulps: Regenerated.
14324
14325 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14326
14327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
14328         (__NR_sync_file_range2): Assume it is always defined.
14329         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
14330         (__NR_sync_file_range): Assume it is always defined.
14331
14332 2015-10-22  Andreas Schwab  <schwab@suse.de>
14333
14334         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
14335         INTERNAL_SYSCALL_ERRNO.
14336         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
14337         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
14338         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14339         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
14340         Likewise.
14341         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14342
14343 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14344
14345         * io/tst-fcntl.c (fd): New static variable.
14346         (do_prepare): Open temporary file here....
14347         (do_test): ...not here.
14348
14349         * io/ftwtest-sh: Also trap on exit to remove temporary files.
14350
14351 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14352
14353         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
14354         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14355         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14356         Moved before "#ifdef __ASSEMBLER__".
14357
14358 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14359
14360         [BZ #19156]
14361         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
14362         arguments very close to 0.
14363
14364 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
14365
14366         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
14367         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
14368
14369 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14370
14371         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14372         New.  Defined for GCC 5 and above when not compiling for
14373         profiling.
14374         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14375
14376         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
14377         Renamed to ...
14378         (CFLAGS-epoll_pwait.o): This.
14379         (CFLAGS-mmap.c): Renamed to ...
14380         (CFLAGS-mmap.o): This.
14381         (CFLAGS-mmap64.c): Renamed to ...
14382         (CFLAGS-mmap64.o): This.
14383         (CFLAGS-epoll_pwait.os): New.
14384         (CFLAGS-mmap.os): Likewise.
14385         (CFLAGS-mmap64.os): Likewise.
14386         (CFLAGS-semtimedop.os): Likewise.
14387         (CFLAGS-semtimedop.c): Renamed to ...
14388         (CFLAGS-semtimedop.o): This.
14389
14390 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14391
14392         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
14393         warning message.
14394
14395 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14396
14397         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
14398         * Makefile ($(objpfx)c++-types-check.out): Filter out
14399         $(+gccwarn-c) instead of -Wstrict-prototypes.
14400
14401         * io/fts.c (fts_open): Convert to prototype-style function
14402         definition.
14403         * malloc/mcheck.c (mcheck): Likewise.
14404         (mcheck_pedantic): Likewise.
14405         * posix/regexec.c (re_search_2_stub): Likewise.  Use
14406         internal_function.
14407         (re_search_internal): Likewise.
14408         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
14409         prototype-style function definition.
14410         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14411         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14412         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
14413         (xdr_utmpptr): Likewise.
14414         (xdr_utmparr): Likewise.
14415         (xdr_utmpidle): Likewise.
14416         (xdr_utmpidleptr): Likewise.
14417         (xdr_utmpidlearr): Likewise.
14418
14419         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
14420         log, log10 and log2.
14421         * math/auto-libm-test-out: Regenerated.
14422         * math/libm-test.inc (fmod_test_data): Add more tests.
14423         (fpclassify_test_data): Likewise.
14424         (frexp_test_data): Likewise.
14425         (hypot_test_data): Likewise.
14426         (ilogb_test_data): Likewise.
14427
14428 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
14429
14430         * debug/fortify_fail.c (__fortify_fail): Convert to
14431         prototype-style function definition.  Use internal_function.
14432         * libio/genops.c (save_for_backup): Convert to prototype-style
14433         function definition.
14434         * libio/wgenops.c (save_for_wbackup): Likewise.
14435         * login/grantpt.c (grantpt): Likewise.
14436         * login/ptsname.c (ptsname): Likewise.
14437         (__ptsname_r): Likewise.
14438         * login/unlockpt.c (unlockpt): Likewise.
14439         * mach/msgserver.c (__mach_msg_server): Likewise.
14440         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
14441         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
14442         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
14443         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
14444         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
14445         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
14446         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
14447         Likewise.
14448         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
14449         internal_function.
14450         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
14451         prototype-style function definition.
14452         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
14453         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
14454         (__pthread_create_2_0): Likewise.
14455         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
14456         * nptl/register-atfork.c (__register_atfork): Likewise.
14457         * posix/glob.c (glob): Likewise.
14458         * posix/regcomp.c (re_comp): Likewise.
14459         * posix/regexec.c (re_exec): Likewise.
14460         * stdlib/add_n.c [__STDC__]: Make code unconditional.
14461         [!__STDC__]: Remove conditional code.
14462         * stdlib/cmp.c [__STDC__]: Make code unconditional.
14463         [!__STDC__]: Remove conditional code.
14464         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
14465         [!__STDC__]: Remove conditional code.
14466         * stdlib/divrem.c [__STDC__]: Make code unconditional.
14467         [!__STDC__]: Remove conditional code.
14468         * stdlib/lshift.c [__STDC__]: Make code unconditional.
14469         [!__STDC__]: Remove conditional code.
14470         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
14471         [!__STDC__]: Remove conditional code.
14472         * stdlib/mul.c [__STDC__]: Make code unconditional.
14473         [!__STDC__]: Remove conditional code.
14474         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
14475         [!__STDC__]: Remove conditional code.
14476         * stdlib/rshift.c [__STDC__]: Make code unconditional.
14477         [!__STDC__]: Remove conditional code.
14478         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
14479         function definition.
14480         (STRTOF): Likewise.
14481         * stdlib/strtod_l.c (__STRTOF): Likewise.
14482         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
14483         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
14484         (__strtol_l): Likewise.
14485         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
14486         [!__STDC__]: Remove conditional code.
14487         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
14488         definition.
14489         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14490         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14491         type.
14492         (__strcasecmp): Convert to prototype-style function definition.
14493         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
14494         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14495         type.
14496         (__strncasecmp): Convert to prototype-style function definition.
14497         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
14498         * sunrpc/xdr.c (xdr_union): Likewise.
14499         * sunrpc/xdr_array.c (xdr_array): Likewise.
14500         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
14501         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
14502         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
14503         Likewise.
14504         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
14505         Likewise.
14506         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
14507         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
14508         Likewise.
14509         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
14510         (LOCALE_PARAM_PROTO): Likewise.
14511         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
14512         argument type.
14513         (ut_argument_spec): Remove macro.
14514         (ut_argument_spec_iso): Rename to ut_argument_spec.
14515         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
14516         prototype-style function definition.
14517         (memcpy_uppcase): Likewise.
14518         (__strftime_internal): Likewise.
14519         (my_strftime): Likewise.
14520         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
14521         (LOCALE_PARAM_DECL): Likewise.
14522         [_LIBC] (LOCALE_PARAM): Include argument type.
14523         (__strptime_internal): Convert to prototype-style function
14524         definition.
14525         (strptime): Likewise.
14526         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14527         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14528         type.
14529         (__wcscasecmp): Convert to prototype-style function definition.
14530         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
14531         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14532         type.
14533         (__wcsncasecmp): Convert to prototype-style function definition.
14534
14535         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
14536         function definition.
14537         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14538         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14539         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
14540         * elf/dl-minimal.c (_itoa): Likewise.
14541         * hurd/hurdmalloc.c (malloc): Likewise.
14542         (free): Likewise.
14543         (realloc): Likewise.
14544         * inet/inet6_option.c (inet6_option_space): Likewise.
14545         (inet6_option_init): Likewise.
14546         (inet6_option_append): Likewise.
14547         (inet6_option_alloc): Likewise.
14548         (inet6_option_next): Likewise.
14549         (inet6_option_find): Likewise.
14550         * io/ftw.c (FTW_NAME): Likewise.
14551         (NFTW_NAME): Likewise.
14552         (NFTW_NEW_NAME): Likewise.
14553         (NFTW_OLD_NAME): Likewise.
14554         * libio/iofwide.c (_IO_fwide): Likewise.
14555         * libio/strops.c (_IO_str_init_static_internal): Likewise.
14556         (_IO_str_init_static): Likewise.
14557         (_IO_str_init_readonly): Likewise.
14558         (_IO_str_overflow): Likewise.
14559         (_IO_str_underflow): Likewise.
14560         (_IO_str_count): Likewise.
14561         (_IO_str_seekoff): Likewise.
14562         (_IO_str_pbackfail): Likewise.
14563         (_IO_str_finish): Likewise.
14564         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
14565         (_IO_wstr_overflow): Likewise.
14566         (_IO_wstr_underflow): Likewise.
14567         (_IO_wstr_count): Likewise.
14568         (_IO_wstr_seekoff): Likewise.
14569         (_IO_wstr_pbackfail): Likewise.
14570         (_IO_wstr_finish): Likewise.
14571         * locale/programs/localedef.c (normalize_codeset): Likewise.
14572         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14573         (add_locales_to_archive): Likewise.
14574         (delete_locales_from_archive): Likewise.
14575         * malloc/malloc.c (__libc_mallinfo): Likewise.
14576         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
14577         * misc/tsearch.c (__tfind): Likewise.
14578         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
14579         * nptl/pthread_attr_getdetachstate.c
14580         (__pthread_attr_getdetachstate): Likewise.
14581         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
14582         Likewise.
14583         * nptl/pthread_attr_getinheritsched.c
14584         (__pthread_attr_getinheritsched): Likewise.
14585         * nptl/pthread_attr_getschedparam.c
14586         (__pthread_attr_getschedparam): Likewise.
14587         * nptl/pthread_attr_getschedpolicy.c
14588         (__pthread_attr_getschedpolicy): Likewise.
14589         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
14590         Likewise.
14591         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
14592         Likewise.
14593         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
14594         Likewise.
14595         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
14596         Likewise.
14597         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
14598         (__pthread_attr_init_2_0): Likewise.
14599         * nptl/pthread_attr_setdetachstate.c
14600         (__pthread_attr_setdetachstate): Likewise.
14601         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
14602         Likewise.
14603         * nptl/pthread_attr_setinheritsched.c
14604         (__pthread_attr_setinheritsched): Likewise.
14605         * nptl/pthread_attr_setschedparam.c
14606         (__pthread_attr_setschedparam): Likewise.
14607         * nptl/pthread_attr_setschedpolicy.c
14608         (__pthread_attr_setschedpolicy): Likewise.
14609         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
14610         Likewise.
14611         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
14612         Likewise.
14613         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
14614         Likewise.
14615         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
14616         Likewise.
14617         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
14618         Likewise.
14619         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
14620         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14621         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
14622         use internal_function.
14623         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
14624         prototype-style function definition.
14625         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
14626         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
14627         internal_function.
14628         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
14629         Convert to prototype-style function definition.
14630         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
14631         Likewise.
14632         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
14633         Likewise.
14634         (__pthread_mutex_unlock): Likewise.
14635         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
14636         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
14637         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
14638         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
14639         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
14640         * nss/makedb.c (process_input): Likewise.
14641         * posix/fnmatch.c (__strchrnul): Likewise.
14642         (__wcschrnul): Likewise.
14643         (fnmatch): Likewise.
14644         * posix/fnmatch_loop.c (FCT): Likewise.
14645         * posix/glob.c (globfree): Likewise.
14646         (__glob_pattern_type): Likewise.
14647         (__glob_pattern_p): Likewise.
14648         * posix/regcomp.c (re_compile_pattern): Likewise.
14649         (re_set_syntax): Likewise.
14650         (re_compile_fastmap): Likewise.
14651         (regcomp): Likewise.
14652         (regerror): Likewise.
14653         (regfree): Likewise.
14654         * posix/regexec.c (regexec): Likewise.
14655         (re_match): Likewise.
14656         (re_search): Likewise.
14657         (re_match_2): Likewise.
14658         (re_search_2): Likewise.
14659         (re_search_stub): Likewise.  Use internal_function
14660         (re_copy_regs): Likewise.
14661         (re_set_registers): Convert to prototype-style function
14662         definition.
14663         (prune_impossible_nodes): Likewise.  Use internal_function.
14664         * resolv/inet_net_pton.c (inet_net_pton): Convert to
14665         prototype-style function definition.
14666         (inet_net_pton_ipv4): Likewise.
14667         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14668         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
14669         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
14670         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
14671         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
14672         Make variadic.
14673         * time/strptime_l.c (localtime_r): Convert to prototype-style
14674         function definition.
14675         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
14676         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
14677         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
14678         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
14679
14680         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
14681         definition.
14682         (_ufc_doit_r): Likewise.
14683         * crypt/crypt_util.c (_ufc_copymem): Likewise.
14684         (_ufc_output_conversion_r): Likewise.
14685         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
14686         * inet/rcmd.c (rcmd_af): Likewise.
14687         (rcmd): Likewise.
14688         (ruserok_af): Likewise.
14689         (ruserok): Likewise.
14690         (ruserok2_sa): Likewise.
14691         (ruserok_sa): Likewise.
14692         (iruserok_af): Likewise.
14693         (iruserok): Likewise.
14694         (__ivaliduser): Likewise.
14695         (__validuser2_sa): Likewise.
14696         * inet/rexec.c (rexec_af): Likewise.
14697         (rexec): Likewise.
14698         * inet/ruserpass.c (ruserpass): Likewise.
14699         * locale/programs/xmalloc.c (xcalloc): Likewise.
14700         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
14701         * math/w_drem.c (__drem): Likewise.
14702         * math/w_dremf.c (__dremf): Likewise.
14703         * math/w_dreml.c (__dreml): Likewise.
14704         * misc/daemon.c (daemon): Likewise.
14705         * resolv/res_debug.c (p_fqnname): Likewise.
14706         * stdlib/div.c (div): Likewise.
14707         * string/memcmp.c (memcmp_bytes): Likewise.
14708         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
14709         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
14710
14711         * crypt/cert.c (main): Convert to prototype-style function
14712         definition.
14713         * io/pipe.c (__pipe): Likewise.
14714         * io/pipe2.c (__pipe2): Likewise.
14715         * misc/futimesat.c (futimesat): Likewise.
14716         * misc/utimes.c (__utimes): Likewise.
14717         * posix/execve.c (__execve): Likewise.
14718         * posix/execvp.c (execvp): Likewise.
14719         * posix/execvpe.c (__execvpe): Likewise.
14720         * posix/fexecve.c (fexecve): Likewise.
14721         * socket/socketpair.c (socketpair): Likewise.
14722         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
14723         * stdlib/erand48.c (erand48): Likewise.
14724         * stdlib/erand48_r.c (__erand48_r): Likewise.
14725         * stdlib/jrand48.c (jrand48): Likewise.
14726         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
14727         * stdlib/lcong48.c (lcong48): Likewise.
14728         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
14729         * stdlib/nrand48.c (nrand48): Likewise.
14730         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
14731         * stdlib/seed48.c (seed48): Likewise.
14732         * stdlib/seed48_r.c (__seed48_r): Likewise.
14733         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
14734         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
14735         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
14736
14737 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14738
14739         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
14740         * configure: Regenerated.
14741         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
14742         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
14743         unconditional.
14744         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14745         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14746         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14747         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
14748         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
14749         unconditional.
14750         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14751
14752         * posix/Makefile (CFLAGS-regex.c): Remove variable.
14753         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
14754
14755         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
14756         function definition.
14757         * crypt/crypt_util.c (__encrypt_r): Likewise.
14758         * libio/genops.c (_IO_no_init): Likewise.
14759         * libio/iofopncook.c (_IO_fopencookie): Likewise.
14760         (_IO_old_fopencookie): Likewise.
14761         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14762         * libio/iogetline.c (_IO_getline): Likewise.
14763         (_IO_getline_info): Likewise.
14764         * libio/iogetwline.c (_IO_getwline): Likewise.
14765         (_IO_getwline_info): Likewise.
14766         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
14767         * libio/vswprintf.c (_IO_vswprintf): Likewise.
14768         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
14769         (find_entry): Likewise.
14770         (iterate_table): Likewise.
14771         (lookup): Likewise.
14772         * login/forkpty.c (forkpty): Likewise.
14773         * misc/hsearch_r.c (__hsearch_r): Likewise.
14774         * misc/select.c (__select): Likewise.
14775         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
14776         Likewise.
14777         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
14778         Likewise.
14779         * nptl/old_pthread_cond_timedwait.c
14780         (__pthread_cond_timedwait_2_0): Likewise.
14781         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
14782         * nptl/pthread_barrierattr_getpshared.c
14783         (pthread_barrierattr_getpshared): Likewise.
14784         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
14785         Likewise.
14786         * nptl/pthread_mutex_setprioceiling.c
14787         (pthread_mutex_setprioceiling): Likewise.
14788         * nptl/pthread_mutexattr_getprioceiling.c
14789         (pthread_mutexattr_getprioceiling): Likewise.
14790         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
14791         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14792         Likewise.
14793         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14794         Likewise.
14795         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
14796         Likewise.
14797         * socket/recvfrom.c (__recvfrom): Likewise.
14798         * socket/sendto.c (__sendto): Likewise.
14799         * socket/setsockopt.c (__setsockopt): Likewise.
14800         * stdio-common/_itoa.c (_itoa): Likewise.
14801         * stdio-common/_itowa.c (_itowa): Likewise.
14802         * stdio-common/reg-printf.c (__register_printf_specifier):
14803         Likewise.
14804         (__register_printf_function): Likewise.
14805         * stdio-common/tempname.c (__path_search): Likewise.
14806         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
14807         * stdlib/mul_1.c (mpn_mul_1): Likewise.
14808         * stdlib/random_r.c (__initstate_r): Likewise.
14809         * stdlib/setenv.c (__add_to_environ): Likewise.
14810         * stdlib/submul_1.c (mpn_submul_1): Likewise.
14811         * streams/getpmsg.c (getpmsg): Likewise.
14812         * streams/putmsg.c (putmsg): Likewise.
14813         * streams/putpmsg.c (putpmsg): Likewise.
14814         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
14815         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
14816         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
14817         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
14818         * sunrpc/pm_getport.c (pmap_getport): Likewise.
14819         * sunrpc/svc_udp.c (cache_get): Likewise.
14820         * sunrpc/xdr_array.c (xdr_vector): Likewise.
14821         * sysdeps/mach/hurd/getcwd.c
14822         (__canonicalize_directory_name_internal): Likewise.
14823         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
14824         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
14825         * sysdeps/mach/hurd/select.c (__select): Likewise.
14826         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
14827         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14828         * sysdeps/sparc/nptl/pthread_barrier_init.c
14829         (__pthread_barrier_init): Likewise.
14830         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
14831         (__pthread_cond_timedwait): Likewise.
14832         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
14833         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
14834         Likewise.
14835         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
14836         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
14837         Likewise.
14838         * sysvipc/semtimedop.c (semtimedop): Likewise.
14839         * time/setitimer.c (__setitimer): Likewise.
14840         * time/strftime_l.c (emacs_strftime): Likewise.
14841
14842 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14843
14844         * config.make.in (have-ssp): Delete.
14845         (stack-protector): New variable.
14846         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
14847         cache test for -fstack-protector-strong.  Export stack_protector to
14848         the best ssp flag.
14849         * configure: Regenerated.
14850         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
14851         * nscd/Makefile (CFLAGS-nscd): Likewise.
14852         * resolv/Makefile (CFLAGS-libresolv): Likewise.
14853
14854 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
14855
14856         [BZ #19122]
14857         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
14858         attribute_hidden.
14859
14860 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14861
14862         [BZ #18743]
14863         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
14864         code to...
14865         (ELIDE_LOCK): ...here.
14866         (__get_new_count): New function with part of the code from
14867         __elide_lock that updates the value of adapt_count after a
14868         transaction abort.
14869         (__elided_trylock): Moved this code to...
14870         (ELIDE_TRYLOCK): ...here.
14871
14872 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14873
14874         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
14875         * configure: Regenerate.
14876         * INSTALL: Regenerate.
14877         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
14878         and tweak grammar.
14879
14880 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
14881
14882         * login/programs/pt_chown.c: Include signal.h
14883         (main): Clear any signal mask from the parent process.
14884
14885 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14886
14887         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
14888         * configure: Regenerated.
14889         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
14890         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
14891         $(gnu89-inline-CFLAGS).
14892
14893         * configure.ac (libc_cv_asm_weak_directive): Remove configure
14894         test.
14895         (libc_cv_asm_weakext_directive): Likewise.
14896         * configure: Regenerated.
14897         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
14898         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
14899         * include/libc-symbols.h
14900         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
14901         #error.
14902         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
14903         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
14904
14905         * sysdeps/arm/backtrace.c (__backtrace): Convert to
14906         prototype-style function definition.
14907         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
14908         * sysdeps/i386/ffs.c (__ffs): Likewise.
14909         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14910         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
14911         Likewise.
14912         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14913         Likewise.
14914         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
14915         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
14916         Likewise.
14917         * sysdeps/m68k/ffs.c (__ffs): Likewise.
14918         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
14919         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
14920         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
14921         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
14922         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
14923         * sysdeps/mach/hurd/access.c (__access): Likewise.
14924         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
14925         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
14926         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
14927         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
14928         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
14929         (cthread_getspecific): Likewise.
14930         (cthread_setspecific): Likewise.
14931         (__libc_getspecific): Likewise.
14932         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
14933         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
14934         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
14935         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
14936         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
14937         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
14938         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
14939         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
14940         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
14941         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
14942         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
14943         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
14944         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
14945         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
14946         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
14947         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
14948         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
14949         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
14950         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
14951         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
14952         * sysdeps/mach/hurd/link.c (__link): Likewise.
14953         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
14954         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
14955         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
14956         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
14957         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
14958         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
14959         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
14960         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
14961         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
14962         * sysdeps/mach/hurd/rename.c (rename): Likewise.
14963         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
14964         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
14965         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
14966         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
14967         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
14968         * sysdeps/mach/hurd/send.c (__send): Likewise.
14969         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
14970         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
14971         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
14972         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
14973         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
14974         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
14975         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
14976         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
14977         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
14978         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
14979         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
14980         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
14981         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
14982         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
14983         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
14984         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
14985         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
14986         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
14987         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
14988         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
14989         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
14990         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
14991         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
14992         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
14993         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
14994         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
14995         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
14996         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
14997         * sysdeps/posix/alarm.c (alarm): Likewise.
14998         * sysdeps/posix/cuserid.c (cuserid): Likewise.
14999         * sysdeps/posix/dirfd.c (dirfd): Likewise.
15000         * sysdeps/posix/dup.c (__dup): Likewise.
15001         * sysdeps/posix/dup2.c (__dup2): Likewise.
15002         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
15003         (main): Likewise.
15004         * sysdeps/posix/flock.c (__flock): Likewise.
15005         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
15006         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
15007         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
15008         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
15009         * sysdeps/posix/isatty.c (__isatty): Likewise.
15010         * sysdeps/posix/killpg.c (killpg): Likewise.
15011         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15012         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
15013         * sysdeps/posix/raise.c (raise): Likewise.
15014         * sysdeps/posix/remove.c (remove): Likewise.
15015         * sysdeps/posix/rename.c (rename): Likewise.
15016         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
15017         * sysdeps/posix/seekdir.c (seekdir): Likewise.
15018         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
15019         * sysdeps/posix/sigignore.c (sigignore): Likewise.
15020         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
15021         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15022         * sysdeps/posix/sigset.c (sigset): Likewise.
15023         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
15024         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
15025         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
15026         * sysdeps/posix/time.c (time): Likewise.
15027         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15028         (ttyname): Likewise.
15029         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
15030         * sysdeps/posix/utime.c (utime): Likewise.
15031         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
15032         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
15033         Likewise.
15034         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
15035         (pthread_spin_trylock): Likewise.
15036         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
15037         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
15038         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
15039         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
15040         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
15041         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
15042         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
15043         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
15044         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
15045         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
15046         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
15047         * sysdeps/s390/ffs.c (__ffs): Likewise.
15048         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
15049         Likewise.
15050         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15051         Likewise.
15052         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
15053         Likewise.
15054         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
15055         (pthread_barrier_destroy): Likewise.
15056         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15057         (__pthread_barrier_wait): Likewise.
15058         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
15059         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15060         (__pthread_barrier_wait): Likewise.
15061         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
15062         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
15063         (memcmp_not_common_alignment): Likewise.
15064         (MEMCMP): Likewise.
15065         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
15066         (_wordcopy_fwd_dest_aligned): Likewise.
15067         (_wordcopy_bwd_aligned): Likewise.
15068         (_wordcopy_bwd_dest_aligned): Likewise.
15069         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
15070         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
15071         * sysdeps/unix/bsd/stty.c (stty): Likewise.
15072         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
15073         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
15074         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
15075         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
15076         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
15077         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
15078         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
15079         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
15080         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
15081         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
15082         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
15083         * sysdeps/unix/stime.c (stime): Likewise.
15084         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
15085         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
15086         Likewise.  Use internal_function.
15087         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
15088         Convert to prototype-style function definition.
15089         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
15090         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
15091         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
15092         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15093         Likewise.  Use internal_function.
15094         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
15095         prototype-style function definition
15096         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15097         Likewise.
15098         (__getlogin_r): Likewise.
15099         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
15100         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
15101         (__pthread_cond_broadcast): Likewise.
15102         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
15103         (__pthread_cond_destroy): Likewise.
15104         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
15105         (__pthread_cond_init): Likewise.
15106         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
15107         (__pthread_cond_signal): Likewise.
15108         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
15109         (__pthread_cond_wait): Likewise.
15110         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
15111         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
15112         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
15113         Likewise.
15114         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
15115         Likewise.
15116         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
15117         Likewise.
15118         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
15119         Likewise.
15120         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
15121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
15122         (__ftruncate64): Likewise.
15123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
15124         (truncate64): Likewise.
15125         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
15126         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
15127         (pthread_getcpuclockid): Likewise.
15128         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
15129         Likewise.
15130         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
15131         Likewise.
15132         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
15133         Likewise.
15134         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
15135         Likewise.
15136         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
15137         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
15138         (__libc_sigaction): Likewise.
15139         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
15140         Likewise.
15141         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
15142         (__sigprocmask): Likewise.
15143         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
15144         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
15145         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
15146         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
15147         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
15148         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
15149         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
15150         Likewise.
15151         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
15152         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
15153         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
15154         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
15155         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
15156         Likewise.
15157         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
15158         (__sigprocmask): Likewise.
15159         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
15160         (cfgetispeed): Likewise.
15161         (cfsetospeed): Likewise.
15162         (cfsetispeed): Likewise.
15163         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
15164         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
15165         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
15166         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
15167         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
15168         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
15169         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
15170         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
15171         Likewise.
15172         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
15173         Likewise.
15174         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
15175         Likewise.
15176         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
15177         Likewise.
15178         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
15179
15180 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15181
15182         sunrpc: Rewrite with explicit TLS access using __thread.
15183         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
15184         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
15185         directly.
15186         (__rpc_thread_variables): Access thread_rpc_vars directly.
15187         Eliminate redundant assignment of the tvp variable.
15188
15189 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15190
15191         malloc: Rewrite with explicit TLS access using __thread.
15192         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
15193         (tsd_setspecific, tsd_getspecific): Remove.
15194         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
15195         (tsd_setspecific, tsd_getspecific): Likewise.
15196         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
15197         (tsd_setspecific, tsd_getspecific): Likewise.
15198         * malloc/arena.c (thread_arena): New TLS variable.
15199         (arena_key): Remove variable.
15200         (arena_get): Use thread_arena.
15201         (arena_lookup): Remove macro.
15202         (malloc_atfork, free_atfork, ptmalloc_lock_all)
15203         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
15204         (_int_new_arena, get_free_list, reused_arena)
15205         (arena_thread_freeres): Use thread_arena.
15206         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
15207         tsd_getspecific, tsd_setspecific from safety annotations.
15208         (Allocating Cleared Space): Remove arena_lookup from safety
15209         annotations.
15210
15211 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15212
15213         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
15214         struct scratch_buffer instead of extend_alloca.
15215
15216 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15217
15218         * sysdeps/unix/sysv/linux/kernel-features.h
15219         (__ASSUME_SOCK_CLOEXEC): Remove.
15220         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
15221         (__have_paccept): Remove unused macro.
15222         * include/unistd.h (__have_sock_cloexec): Remove declaration.
15223         * misc/syslog.c (openlog_internal): Remove fallback code for
15224         !__ASSUME_SOCK_CLOEXEC.
15225         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
15226         missing SOCK_CLOEXEC.
15227         * nscd/connections.c (have_sock_cloexec): Remove definition.
15228         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15229         * nscd/nscd_helper.c (open_socket): Remove fallback code for
15230         !__ASSUME_SOCK_CLOEXEC.
15231         * resolv/res_send.c (__have_o_nonblock): Remove definition.
15232         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15233         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
15234         definition.
15235         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
15236         code for !__ASSUME_SOCK_CLOEXEC.
15237
15238 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15239
15240         [BZ #18982]
15241         * manual/stdio.texi (Variable Arguments Output): Add portability
15242         note, explaining that vfprintf clobbers the va_list pointer.
15243
15244 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15245
15246         * math/libm-test.inc (fabs_test_data): Add more tests.
15247         (fdim_test_data): Likewise.
15248         (fma_test_data): Likewise.
15249         (fmax_test_data): Likewise.
15250         (fmin_test_data): Likewise.
15251         (fmod_test_data): Likewise.
15252
15253 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
15254
15255         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
15256         data.
15257
15258 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15259
15260         * math/libm-test.inc (ceil_test_data): Add more tests and more
15261         expectations for "inexact".
15262         (floor_test_data): Add more tests.
15263         (round_test_data): Likewise.
15264         (trunc_test_data): Likewise.
15265
15266         * crypt/cert.c (good_bye): Convert to prototype-style function
15267         definition.
15268         (get8): Likewise.
15269         (put8): Likewise.
15270         * crypt/crypt-entry.c (crypt): Likewise.
15271         (__fcrypt): Likewise.
15272         * crypt/crypt_util.c (_ufc_prbits): Likewise.
15273         (_ufc_set_bits): Likewise.
15274         (_ufc_clearmem): Likewise.
15275         (__init_des_r): Likewise.
15276         (shuffle_sb): Likewise.
15277         (shuffle_sb): Likewise.
15278         (_ufc_setup_salt_r): Likewise.
15279         (_ufc_mk_keytab_r): Likewise.
15280         (_ufc_dofinalperm_r): Likewise.
15281         (encrypt): Likewise.
15282         (__setkey_r): Likewise.
15283         (setkey): Likewise.
15284         * crypt/md5.c (md5_init_ctx): Likewise.
15285         (md5_read_ctx): Likewise.
15286         (md5_finish_ctx): Likewise.
15287         (md5_stream): Likewise.
15288         (md5_buffer): Likewise.
15289         (md5_process_bytes): Likewise.
15290         * crypt/sha256.c (__sha256_init_ctx): Likewise.
15291         (__sha256_finish_ctx): Likewise.
15292         (__sha256_process_bytes): Likewise.
15293         * crypt/sha512.c (__sha512_init_ctx): Likewise.
15294         (__sha512_finish_ctx): Likewise.
15295         (__sha512_process_bytes): Likewise.
15296         * ctype/isctype.c (__isctype): Likewise.
15297         * debug/backtrace.c (__backtrace): Likewise.
15298         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
15299         * debug/fgets_chk.c (__fgets_chk): Likewise.
15300         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
15301         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
15302         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
15303         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
15304         * debug/memset_chk.c (__memset_chk): Likewise.
15305         * debug/strcat_chk.c (__strcat_chk): Likewise.
15306         * debug/strncat_chk.c (__strncat_chk): Likewise.
15307         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
15308         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
15309         * dirent/dirfd.c (dirfd): Likewise.
15310         * dirent/getdents.c (__getdirentries): Likewise.
15311         * dirent/getdents64.c (getdirentries64): Likewise.
15312         * dirent/rewinddir.c (__rewinddir): Likewise.
15313         * dirent/seekdir.c (seekdir): Likewise.
15314         * dirent/telldir.c (telldir): Likewise.
15315         * elf/sln.c (makesymlinks): Likewise.
15316         (makesymlink): Likewise.
15317         * gmon/gmon.c (__moncontrol): Likewise.
15318         (__monstartup): Likewise.
15319         (write_hist): Likewise.
15320         (write_call_graph): Likewise.
15321         (write_bb_counts): Likewise.
15322         * grp/setgroups.c (setgroups): Likewise.
15323         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15324         * inet/inet_net.c (inet_network): Likewise.
15325         * inet/inet_netof.c (inet_netof): Likewise.
15326         * inet/rcmd.c (rresvport_af): Likewise.
15327         (rresvport): Likewise.
15328         * io/access.c (__access): Likewise.
15329         * io/chdir.c (__chdir): Likewise.
15330         * io/chmod.c (__chmod): Likewise.
15331         * io/chown.c (__chown): Likewise.
15332         * io/close.c (__close): Likewise.
15333         * io/creat.c (creat): Likewise.
15334         * io/creat64.c (creat64): Likewise.
15335         * io/dup.c (__dup): Likewise.
15336         * io/dup2.c (__dup2): Likewise.
15337         * io/dup3.c (__dup3): Likewise.
15338         * io/euidaccess.c (__euidaccess): Likewise.
15339         * io/faccessat.c (faccessat): Likewise.
15340         * io/fchmod.c (__fchmod): Likewise.
15341         * io/fchmodat.c (fchmodat): Likewise.
15342         * io/fchown.c (__fchown): Likewise.
15343         * io/fchownat.c (fchownat): Likewise.
15344         * io/fcntl.c (__fcntl): Likewise.
15345         * io/flock.c (__flock): Likewise.
15346         * io/fts.c (fts_load): Likewise.
15347         (fts_close): Likewise.
15348         (fts_read): Likewise.
15349         (fts_set): Likewise.
15350         (fts_children): Likewise.
15351         (fts_build): Likewise.
15352         (fts_stat): Likewise.
15353         (fts_sort): Likewise.
15354         (fts_alloc): Likewise.
15355         (fts_lfree): Likewise.
15356         (fts_palloc): Likewise.
15357         (fts_padjust): Likewise.
15358         (fts_maxarglen): Likewise.
15359         (fts_safe_changedir): Likewise.
15360         * io/getwd.c (getwd): Likewise.
15361         * io/isatty.c (__isatty): Likewise.
15362         * io/lchown.c (__lchown): Likewise.
15363         * io/link.c (__link): Likewise.
15364         * io/linkat.c (linkat): Likewise.
15365         * io/lseek.c (__libc_lseek): Likewise.
15366         * io/mkdir.c (__mkdir): Likewise.
15367         * io/mkdirat.c (mkdirat): Likewise.
15368         * io/mkfifo.c (mkfifo): Likewise.
15369         * io/mkfifoat.c (mkfifoat): Likewise.
15370         * io/open.c (__libc_open): Likewise.
15371         * io/open64.c (__libc_open64): Likewise.
15372         * io/readlink.c (__readlink): Likewise.
15373         * io/readlinkat.c (readlinkat): Likewise.
15374         * io/rmdir.c (__rmdir): Likewise.
15375         * io/symlink.c (__symlink): Likewise.
15376         * io/symlinkat.c (symlinkat): Likewise.
15377         * io/ttyname.c (ttyname): Likewise.
15378         * io/ttyname_r.c (__ttyname_r): Likewise.
15379         * io/umask.c (__umask): Likewise.
15380         * io/unlink.c (__unlink): Likewise.
15381         * io/unlinkat.c (unlinkat): Likewise.
15382         * io/utime.c (utime): Likewise.
15383         * libio/clearerr.c (clearerr): Likewise.
15384         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
15385         * libio/feof.c (_IO_feof): Likewise.
15386         * libio/feof_u.c (feof_unlocked): Likewise.
15387         * libio/ferror.c (_IO_ferror): Likewise.
15388         * libio/ferror_u.c (ferror_unlocked): Likewise.
15389         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
15390         * libio/fileno.c (__fileno): Likewise.
15391         * libio/fputc.c (fputc): Likewise.
15392         * libio/fputc_u.c (fputc_unlocked): Likewise.
15393         * libio/fputwc.c (fputwc): Likewise.
15394         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
15395         * libio/freopen.c (freopen): Likewise.
15396         * libio/freopen64.c (freopen64): Likewise.
15397         * libio/fseek.c (fseek): Likewise.
15398         * libio/fseeko.c (fseeko): Likewise.
15399         * libio/fseeko64.c (fseeko64): Likewise.
15400         * libio/ftello.c (__ftello): Likewise.
15401         * libio/ftello64.c (ftello64): Likewise.
15402         * libio/fwide.c (fwide): Likewise.
15403         * libio/genops.c (_IO_un_link): Likewise.
15404         (_IO_link_in): Likewise.
15405         (_IO_least_marker): Likewise.
15406         (_IO_switch_to_main_get_area): Likewise.
15407         (_IO_switch_to_backup_area): Likewise.
15408         (_IO_switch_to_get_mode): Likewise.
15409         (_IO_free_backup_area): Likewise.
15410         (_IO_switch_to_put_mode): Likewise.
15411         (__overflow): Likewise.
15412         (__underflow): Likewise.
15413         (__uflow): Likewise.
15414         (_IO_setb): Likewise.
15415         (_IO_doallocbuf): Likewise.
15416         (_IO_default_underflow): Likewise.
15417         (_IO_default_uflow): Likewise.
15418         (_IO_default_xsputn): Likewise.
15419         (_IO_sgetn): Likewise.
15420         (_IO_default_xsgetn): Likewise.
15421         (_IO_sync): Likewise.
15422         (_IO_default_setbuf): Likewise.
15423         (_IO_default_seekpos): Likewise.
15424         (_IO_default_doallocate): Likewise.
15425         (_IO_init): Likewise.
15426         (_IO_old_init): Likewise.
15427         (_IO_default_sync): Likewise.
15428         (_IO_default_finish): Likewise.
15429         (_IO_default_seekoff): Likewise.
15430         (_IO_sputbackc): Likewise.
15431         (_IO_sungetc): Likewise.
15432         (_IO_set_column): Likewise.
15433         (_IO_set_column): Likewise.
15434         (_IO_adjust_column): Likewise.
15435         (_IO_get_column): Likewise.
15436         (_IO_init_marker): Likewise.
15437         (_IO_remove_marker): Likewise.
15438         (_IO_marker_difference): Likewise.
15439         (_IO_marker_delta): Likewise.
15440         (_IO_seekmark): Likewise.
15441         (_IO_unsave_markers): Likewise.
15442         (_IO_nobackup_pbackfail): Likewise.
15443         (_IO_default_pbackfail): Likewise.
15444         (_IO_default_seek): Likewise.
15445         (_IO_default_stat): Likewise.
15446         (_IO_default_read): Likewise.
15447         (_IO_default_write): Likewise.
15448         (_IO_default_showmanyc): Likewise.
15449         (_IO_default_imbue): Likewise.
15450         (_IO_iter_next): Likewise.
15451         (_IO_iter_file): Likewise.
15452         * libio/getc.c (_IO_getc): Likewise.
15453         * libio/getwc.c (_IO_getwc): Likewise.
15454         * libio/iofclose.c (_IO_new_fclose): Likewise.
15455         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15456         * libio/iofflush.c (_IO_fflush): Likewise.
15457         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
15458         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15459         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
15460         * libio/iofgets.c (_IO_fgets): Likewise.
15461         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
15462         * libio/iofgetws.c (fgetws): Likewise.
15463         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
15464         * libio/iofopen64.c (_IO_fopen64): Likewise.
15465         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15466         (_IO_cookie_write): Likewise.
15467         (_IO_cookie_seek): Likewise.
15468         (_IO_cookie_close): Likewise.
15469         (_IO_cookie_seekoff): Likewise.
15470         (_IO_old_cookie_seek): Likewise.
15471         * libio/iofputs.c (_IO_fputs): Likewise.
15472         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
15473         * libio/iofputws.c (fputws): Likewise.
15474         * libio/iofputws_u.c (fputws_unlocked): Likewise.
15475         * libio/iofread.c (_IO_fread): Likewise.
15476         * libio/iofread_u.c (__fread_unlocked): Likewise.
15477         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
15478         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15479         * libio/ioftell.c (_IO_ftell): Likewise.
15480         * libio/iofwrite.c (_IO_fwrite): Likewise.
15481         * libio/iogetdelim.c (_IO_getdelim): Likewise.
15482         * libio/iogets.c (_IO_gets): Likewise.
15483         * libio/iopadn.c (_IO_padn): Likewise.
15484         * libio/iopopen.c (_IO_new_proc_open): Likewise.
15485         (_IO_new_popen): Likewise.
15486         (_IO_new_proc_close): Likewise.
15487         * libio/ioputs.c (_IO_puts): Likewise.
15488         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
15489         (_IO_seekoff): Likewise.
15490         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
15491         (_IO_seekpos): Likewise.
15492         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
15493         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
15494         * libio/ioungetc.c (_IO_ungetc): Likewise.
15495         * libio/ioungetwc.c (ungetwc): Likewise.
15496         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15497         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
15498         * libio/iowpadn.c (_IO_wpadn): Likewise.
15499         * libio/libc_fatal.c (__libc_fatal): Likewise.
15500         * libio/memstream.c (__open_memstream): Likewise.
15501         (_IO_mem_sync): Likewise.
15502         (_IO_mem_finish): Likewise.
15503         * libio/oldfileops.c (_IO_old_file_init): Likewise.
15504         (_IO_old_file_close_it): Likewise.
15505         (_IO_old_file_finish): Likewise.
15506         (_IO_old_file_fopen): Likewise.
15507         (_IO_old_file_attach): Likewise.
15508         (_IO_old_file_setbuf): Likewise.
15509         (_IO_old_do_write): Likewise.
15510         (old_do_write): Likewise.
15511         (_IO_old_file_underflow): Likewise.
15512         (_IO_old_file_overflow): Likewise.
15513         (_IO_old_file_sync): Likewise.
15514         (_IO_old_file_seekoff): Likewise.
15515         (_IO_old_file_write): Likewise.
15516         (_IO_old_file_xsputn): Likewise.
15517         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
15518         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15519         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
15520         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
15521         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
15522         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
15523         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
15524         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
15525         (_IO_old_popen): Likewise.
15526         (_IO_old_proc_close): Likewise.
15527         * libio/oldpclose.c (__old_pclose): Likewise.
15528         * libio/pclose.c (__new_pclose): Likewise.
15529         * libio/peekc.c (_IO_peekc_locked): Likewise.
15530         * libio/putc.c (_IO_putc): Likewise.
15531         * libio/putc_u.c (putc_unlocked): Likewise.
15532         * libio/putchar.c (putchar): Likewise.
15533         * libio/putchar_u.c (putchar_unlocked): Likewise.
15534         * libio/putwc.c (putwc): Likewise.
15535         * libio/putwc_u.c (putwc_unlocked): Likewise.
15536         * libio/putwchar.c (putwchar): Likewise.
15537         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
15538         * libio/rewind.c (rewind): Likewise.
15539         * libio/setbuf.c (setbuf): Likewise.
15540         * libio/setlinebuf.c (setlinebuf): Likewise.
15541         * libio/vasprintf.c (_IO_vasprintf): Likewise.
15542         * libio/vscanf.c (_IO_vscanf): Likewise.
15543         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
15544         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
15545         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
15546         * libio/wgenops.c (_IO_least_wmarker): Likewise.
15547         (_IO_switch_to_main_wget_area): Likewise.
15548         (_IO_switch_to_wbackup_area): Likewise.
15549         (_IO_wsetb): Likewise.
15550         (_IO_wdefault_pbackfail): Likewise.
15551         (_IO_wdefault_finish): Likewise.
15552         (_IO_wdefault_uflow): Likewise.
15553         (__woverflow): Likewise.
15554         (__wuflow): Likewise.
15555         (__wunderflow): Likewise.
15556         (_IO_wdefault_xsputn): Likewise.
15557         (_IO_wdefault_xsgetn): Likewise.
15558         (_IO_wdoallocbuf): Likewise.
15559         (_IO_wdefault_doallocate): Likewise.
15560         (_IO_switch_to_wget_mode): Likewise.
15561         (_IO_free_wbackup_area): Likewise.
15562         (_IO_switch_to_wput_mode): Likewise.
15563         (_IO_sputbackwc): Likewise.
15564         (_IO_sungetwc): Likewise.
15565         (_IO_adjust_wcolumn): Likewise.
15566         (_IO_init_wmarker): Likewise.
15567         (_IO_wmarker_delta): Likewise.
15568         (_IO_seekwmark): Likewise.
15569         (_IO_unsave_wmarkers): Likewise.
15570         * libio/wmemstream.c (open_wmemstream): Likewise.
15571         (_IO_wmem_sync): Likewise.
15572         (_IO_wmem_finish): Likewise.
15573         * locale/nl_langinfo.c (nl_langinfo): Likewise.
15574         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
15575         * locale/programs/simple-hash.c (init_hash): Likewise.
15576         (delete_hash): Likewise.
15577         (insert_entry): Likewise.
15578         (set_entry): Likewise.
15579         (next_prime): Likewise.
15580         (is_prime): Likewise.
15581         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
15582         (xmalloc): Likewise.
15583         (xrealloc): Likewise.
15584         * locale/programs/xstrdup.c (xstrdup): Likewise.
15585         * localedata/collate-test.c (xstrcoll): Likewise.
15586         * localedata/xfrm-test.c (xstrcmp): Likewise.
15587         * login/getlogin_r.c (__getlogin_r): Likewise.
15588         * login/getpt.c (__posix_openpt): Likewise.
15589         * login/login_tty.c (login_tty): Likewise.
15590         * login/setlogin.c (setlogin): Likewise.
15591         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
15592         (mach_msg_destroy_port): Likewise.
15593         (mach_msg_destroy_memory): Likewise.
15594         * malloc/mcheck.c (flood): Likewise.
15595         * misc/acct.c (acct): Likewise.
15596         * misc/brk.c (__brk): Likewise.
15597         * misc/chflags.c (chflags): Likewise.
15598         * misc/chroot.c (chroot): Likewise.
15599         * misc/fchflags.c (fchflags): Likewise.
15600         * misc/fstab.c (getfsspec): Likewise.
15601         (getfsfile): Likewise.
15602         * misc/fsync.c (fsync): Likewise.
15603         * misc/ftruncate.c (__ftruncate): Likewise.
15604         * misc/ftruncate64.c (__ftruncate64): Likewise.
15605         * misc/getdomain.c (getdomainname): Likewise.
15606         (getdomainname): Likewise.
15607         * misc/gethostname.c (__gethostname): Likewise.
15608         * misc/getpass.c (getpass): Likewise.
15609         * misc/getttyent.c (skip): Likewise.
15610         (value): Likewise.
15611         * misc/gtty.c (gtty): Likewise.
15612         * misc/hsearch.c (hsearch): Likewise.
15613         (hcreate): Likewise.
15614         * misc/hsearch_r.c (__hcreate_r): Likewise.
15615         (__hdestroy_r): Likewise.
15616         * misc/ioctl.c (__ioctl): Likewise.
15617         * misc/mkdtemp.c (mkdtemp): Likewise.
15618         * misc/mkostemp.c (mkostemp): Likewise.
15619         * misc/mkostemp64.c (mkostemp64): Likewise.
15620         * misc/mkostemps.c (mkostemps): Likewise.
15621         * misc/mkostemps64.c (mkostemps64): Likewise.
15622         * misc/mkstemp.c (mkstemp): Likewise.
15623         * misc/mkstemp64.c (mkstemp64): Likewise.
15624         * misc/mkstemps.c (mkstemps): Likewise.
15625         * misc/mkstemps64.c (mkstemps64): Likewise.
15626         * misc/mktemp.c (__mktemp): Likewise.
15627         * misc/preadv.c (preadv): Likewise.
15628         * misc/preadv64.c (preadv64): Likewise.
15629         * misc/pwritev.c (pwritev): Likewise.
15630         * misc/pwritev64.c (pwritev64): Likewise.
15631         * misc/readv.c (__readv): Likewise.
15632         * misc/revoke.c (revoke): Likewise.
15633         * misc/setdomain.c (setdomainname): Likewise.
15634         * misc/setegid.c (setegid): Likewise.
15635         * misc/seteuid.c (seteuid): Likewise.
15636         * misc/sethostid.c (sethostid): Likewise.
15637         * misc/sethostname.c (sethostname): Likewise.
15638         * misc/setregid.c (__setregid): Likewise.
15639         * misc/setreuid.c (__setreuid): Likewise.
15640         * misc/sstk.c (sstk): Likewise.
15641         * misc/stty.c (stty): Likewise.
15642         * misc/syscall.c (syscall): Likewise.
15643         * misc/syslog.c (setlogmask): Likewise.
15644         * misc/truncate.c (__truncate): Likewise.
15645         * misc/truncate64.c (truncate64): Likewise.
15646         * misc/ualarm.c (ualarm): Likewise.
15647         * misc/usleep.c (usleep): Likewise.
15648         * misc/ustat.c (ustat): Likewise.
15649         * misc/writev.c (__writev): Likewise.
15650         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
15651         * nptl/old_pthread_cond_broadcast.c
15652         (__pthread_cond_broadcast_2_0): Likewise.
15653         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
15654         Likewise.
15655         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
15656         Likewise.
15657         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
15658         Likewise.
15659         * nptl/pt-raise.c (raise): Likewise.
15660         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
15661         Likewise.
15662         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
15663         * nptl/pthread_barrierattr_destroy.c
15664         (pthread_barrierattr_destroy): Likewise.
15665         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15666         Likewise.
15667         * nptl/pthread_barrierattr_setpshared.c
15668         (pthread_barrierattr_setpshared): Likewise.
15669         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
15670         Likewise.
15671         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
15672         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15673         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
15674         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
15675         Likewise.
15676         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
15677         Likewise.
15678         * nptl/pthread_condattr_getpshared.c
15679         (pthread_condattr_getpshared): Likewise.
15680         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
15681         Likewise.
15682         * nptl/pthread_condattr_setpshared.c
15683         (pthread_condattr_setpshared): Likewise.
15684         * nptl/pthread_detach.c (pthread_detach): Likewise.
15685         * nptl/pthread_equal.c (__pthread_equal): Likewise.
15686         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
15687         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
15688         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
15689         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
15690         Likewise.
15691         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
15692         Likewise.
15693         * nptl/pthread_mutex_getprioceiling.c
15694         (pthread_mutex_getprioceiling): Likewise.
15695         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
15696         Likewise.
15697         * nptl/pthread_mutexattr_getprotocol.c
15698         (pthread_mutexattr_getprotocol): Likewise.
15699         * nptl/pthread_mutexattr_getpshared.c
15700         (pthread_mutexattr_getpshared): Likewise.
15701         * nptl/pthread_mutexattr_getrobust.c
15702         (pthread_mutexattr_getrobust): Likewise.
15703         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
15704         Likewise.
15705         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
15706         Likewise.
15707         * nptl/pthread_mutexattr_setprioceiling.c
15708         (pthread_mutexattr_setprioceiling): Likewise.
15709         * nptl/pthread_mutexattr_setprotocol.c
15710         (pthread_mutexattr_setprotocol): Likewise.
15711         * nptl/pthread_mutexattr_setpshared.c
15712         (pthread_mutexattr_setpshared): Likewise.
15713         * nptl/pthread_mutexattr_setrobust.c
15714         (pthread_mutexattr_setrobust): Likewise.
15715         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
15716         Likewise.
15717         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
15718         Likewise.
15719         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
15720         Likewise.
15721         * nptl/pthread_rwlockattr_getkind_np.c
15722         (pthread_rwlockattr_getkind_np): Likewise.
15723         * nptl/pthread_rwlockattr_getpshared.c
15724         (pthread_rwlockattr_getpshared): Likewise.
15725         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
15726         Likewise.
15727         * nptl/pthread_rwlockattr_setkind_np.c
15728         (pthread_rwlockattr_setkind_np): Likewise.
15729         * nptl/pthread_rwlockattr_setpshared.c
15730         (pthread_rwlockattr_setpshared): Likewise.
15731         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
15732         Likewise.
15733         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
15734         Likewise.
15735         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
15736         Likewise.
15737         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
15738         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
15739         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
15740         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
15741         * nptl/sem_close.c (sem_close): Likewise.
15742         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
15743         * nptl/sem_init.c (__old_sem_init): Likewise.
15744         * nptl/sigaction.c (__sigaction): Likewise.
15745         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15746         * posix/_exit.c (_exit): Likewise.
15747         * posix/alarm.c (alarm): Likewise.
15748         * posix/confstr.c (confstr): Likewise.
15749         * posix/fpathconf.c (__fpathconf): Likewise.
15750         * posix/getgroups.c (__getgroups): Likewise.
15751         * posix/getpgid.c (__getpgid): Likewise.
15752         * posix/group_member.c (__group_member): Likewise.
15753         * posix/pathconf.c (__pathconf): Likewise.
15754         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
15755         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
15756         * posix/setgid.c (__setgid): Likewise.
15757         * posix/setpgid.c (__setpgid): Likewise.
15758         * posix/setuid.c (__setuid): Likewise.
15759         * posix/sleep.c (__sleep): Likewise.
15760         * posix/sysconf.c (__sysconf): Likewise.
15761         * posix/times.c (__times): Likewise.
15762         * posix/uname.c (__uname): Likewise.
15763         * posix/waitid.c (__waitid): Likewise.
15764         * pwd/getpw.c (__getpw): Likewise.
15765         * resolv/base64.c (b64_pton): Likewise.
15766         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15767         * resolv/gethnamaddr.c (Dprintf): Likewise.
15768         (gethostbyname): Likewise.
15769         (gethostbyname2): Likewise.
15770         (gethostbyaddr): Likewise.
15771         (_sethtent): Likewise.
15772         (_gethtbyname): Likewise.
15773         (_gethtbyname2): Likewise.
15774         (_gethtbyaddr): Likewise.
15775         (map_v4v6_address): Likewise.
15776         (map_v4v6_hostent): Likewise.
15777         (addrsort): Likewise.
15778         (ht_sethostent): Likewise.
15779         (ht_gethostbyname): Likewise.
15780         (ht_gethostbyaddr): Likewise.
15781         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
15782         (inet_net_ntop_ipv4): Likewise.
15783         * resolv/inet_neta.c (inet_neta): Likewise.
15784         * resolv/inet_ntop.c (inet_ntop): Likewise.
15785         (inet_ntop4): Likewise.
15786         (inet_ntop6): Likewise.
15787         * resolv/inet_pton.c (__inet_pton): Likewise.
15788         (inet_pton4): Likewise.
15789         (inet_pton6): Likewise.
15790         * resolv/res_debug.c (loc_aton): Likewise.
15791         (loc_ntoa): Likewise.
15792         * resource/getpriority.c (__getpriority): Likewise.
15793         * resource/getrusage.c (__getrusage): Likewise.
15794         * resource/nice.c (nice): Likewise.
15795         * resource/setpriority.c (__setpriority): Likewise.
15796         * resource/setrlimit64.c (setrlimit64): Likewise.
15797         * resource/vlimit.c (vlimit): Likewise.
15798         * resource/vtimes.c (vtimes): Likewise.
15799         * rt/aio_error.c (aio_error): Likewise.
15800         * rt/aio_return.c (aio_return): Likewise.
15801         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
15802         * signal/kill.c (__kill): Likewise.
15803         * signal/killpg.c (killpg): Likewise.
15804         * signal/raise.c (raise): Likewise.
15805         * signal/sigaction.c (__sigaction): Likewise.
15806         * signal/sigaddset.c (sigaddset): Likewise.
15807         * signal/sigaltstack.c (sigaltstack): Likewise.
15808         * signal/sigandset.c (sigandset): Likewise.
15809         * signal/sigblock.c (__sigblock): Likewise.
15810         * signal/sigdelset.c (sigdelset): Likewise.
15811         * signal/sigempty.c (sigemptyset): Likewise.
15812         * signal/sigfillset.c (sigfillset): Likewise.
15813         * signal/sighold.c (sighold): Likewise.
15814         * signal/sigignore.c (sigignore): Likewise.
15815         * signal/sigintr.c (siginterrupt): Likewise.
15816         * signal/sigisempty.c (sigisemptyset): Likewise.
15817         * signal/sigismem.c (sigismember): Likewise.
15818         * signal/signal.c (signal): Likewise.
15819         * signal/sigorset.c (sigorset): Likewise.
15820         * signal/sigpause.c (__sigpause): Likewise.
15821         * signal/sigpending.c (sigpending): Likewise.
15822         * signal/sigprocmask.c (__sigprocmask): Likewise.
15823         * signal/sigrelse.c (sigrelse): Likewise.
15824         * signal/sigreturn.c (__sigreturn): Likewise.
15825         * signal/sigset.c (sigset): Likewise.
15826         * signal/sigsetmask.c (__sigsetmask): Likewise.
15827         * signal/sigstack.c (sigstack): Likewise.
15828         * signal/sigsuspend.c (__sigsuspend): Likewise.
15829         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
15830         * signal/sysv_signal.c (__sysv_signal): Likewise.
15831         * socket/accept.c (accept): Likewise.
15832         * socket/accept4.c (__libc_accept4): Likewise.
15833         * socket/bind.c (__bind): Likewise.
15834         * socket/connect.c (__connect): Likewise.
15835         * socket/getpeername.c (getpeername): Likewise.
15836         * socket/getsockname.c (__getsockname): Likewise.
15837         * socket/getsockopt.c (getsockopt): Likewise.
15838         * socket/listen.c (__listen): Likewise.
15839         * socket/recv.c (__recv): Likewise.
15840         * socket/recvmsg.c (__recvmsg): Likewise.
15841         * socket/send.c (__send): Likewise.
15842         * socket/sendmsg.c (__sendmsg): Likewise.
15843         * socket/shutdown.c (shutdown): Likewise.
15844         * socket/sockatmark.c (sockatmark): Likewise.
15845         * socket/socket.c (__socket): Likewise.
15846         * stdio-common/ctermid.c (ctermid): Likewise.
15847         * stdio-common/cuserid.c (cuserid): Likewise.
15848         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
15849         * stdio-common/remove.c (remove): Likewise.
15850         * stdio-common/rename.c (rename): Likewise.
15851         * stdio-common/renameat.c (renameat): Likewise.
15852         * stdio-common/tempname.c (__gen_tempname): Likewise.
15853         * stdio-common/xbug.c (InitBuffer): Likewise.
15854         (AppendToBuffer): Likewise.
15855         (ReadFile): Likewise.
15856         * stdlib/a64l.c (a64l): Likewise.
15857         * stdlib/drand48_r.c (drand48_r): Likewise.
15858         * stdlib/getcontext.c (getcontext): Likewise.
15859         * stdlib/getenv.c (getenv): Likewise.
15860         * stdlib/l64a.c (l64a): Likewise.
15861         * stdlib/llabs.c (llabs): Likewise.
15862         * stdlib/lldiv.c (lldiv): Likewise.
15863         * stdlib/lrand48_r.c (lrand48_r): Likewise.
15864         * stdlib/mrand48_r.c (mrand48_r): Likewise.
15865         * stdlib/putenv.c (putenv): Likewise.
15866         * stdlib/random.c (__srandom): Likewise.
15867         (__initstate): Likewise.
15868         (__setstate): Likewise.
15869         * stdlib/random_r.c (__srandom_r): Likewise.
15870         (__setstate_r): Likewise.
15871         (__random_r): Likewise.
15872         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
15873         * stdlib/setcontext.c (setcontext): Likewise.
15874         * stdlib/setenv.c (setenv): Likewise.
15875         (unsetenv): Likewise.
15876         * stdlib/srand48.c (srand48): Likewise.
15877         * stdlib/srand48_r.c (__srand48_r): Likewise.
15878         * stdlib/swapcontext.c (swapcontext): Likewise.
15879         * stdlib/system.c (__libc_system): Likewise.
15880         * stdlib/tst-strtod.c (expand): Likewise.
15881         * stdlib/tst-strtol.c (expand): Likewise.
15882         * stdlib/tst-strtoll.c (expand): Likewise.
15883         * streams/fattach.c (fattach): Likewise.
15884         * streams/fdetach.c (fdetach): Likewise.
15885         * streams/getmsg.c (getmsg): Likewise.
15886         * streams/isastream.c (isastream): Likewise.
15887         * string/ffs.c (__ffs): Likewise.
15888         * string/ffsll.c (ffsll): Likewise.
15889         * string/memcmp.c (memcmp_common_alignment): Likewise.
15890         (memcmp_not_common_alignment): Likewise.
15891         (MEMCMP): Likewise.
15892         * string/memcpy.c (memcpy): Likewise.
15893         * string/memmove.c (MEMMOVE): Likewise.
15894         * string/memset.c (memset): Likewise.
15895         * string/rawmemchr.c (RAWMEMCHR): Likewise.
15896         * string/strchrnul.c (STRCHRNUL): Likewise.
15897         * string/strerror.c (strerror): Likewise.
15898         * string/strndup.c (__strndup): Likewise.
15899         * string/strverscmp.c (__strverscmp): Likewise.
15900         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
15901         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
15902         (clnttcp_freeres): Likewise.
15903         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
15904         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
15905         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
15906         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
15907         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
15908         (xdr_callhdr): Likewise.
15909         * sunrpc/rpcinfo.c (udpping): Likewise.
15910         (tcpping): Likewise.
15911         (pstatus): Likewise.
15912         (pmapdump): Likewise.
15913         (brdcst): Likewise.
15914         (deletereg): Likewise.
15915         (getprognum): Likewise.
15916         (getvers): Likewise.
15917         (get_inet_address): Likewise.
15918         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
15919         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15920         (svcudp_stat): Likewise.
15921         (svcudp_recv): Likewise.
15922         (svcudp_reply): Likewise.
15923         (svcudp_getargs): Likewise.
15924         (svcudp_freeargs): Likewise.
15925         (svcudp_destroy): Likewise.
15926         * sunrpc/xdr.c (xdr_bytes): Likewise.
15927         (xdr_netobj): Likewise.
15928         (xdr_string): Likewise.
15929         (xdr_wrapstring): Likewise.
15930         * sunrpc/xdr_float.c (xdr_float): Likewise.
15931         (xdr_double): Likewise.
15932         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
15933         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
15934         * sysvipc/ftok.c (ftok): Likewise.
15935         * sysvipc/msgctl.c (msgctl): Likewise.
15936         * sysvipc/msgget.c (msgget): Likewise.
15937         * sysvipc/msgrcv.c (msgrcv): Likewise.
15938         * sysvipc/msgsnd.c (msgsnd): Likewise.
15939         * sysvipc/semget.c (semget): Likewise.
15940         * sysvipc/semop.c (semop): Likewise.
15941         * sysvipc/shmat.c (shmat): Likewise.
15942         * sysvipc/shmctl.c (shmctl): Likewise.
15943         * sysvipc/shmdt.c (shmdt): Likewise.
15944         * sysvipc/shmget.c (shmget): Likewise.
15945         * termios/cfmakeraw.c (cfmakeraw): Likewise.
15946         * termios/speed.c (cfgetospeed): Likewise.
15947         (cfgetispeed): Likewise.
15948         (cfsetospeed): Likewise.
15949         (cfsetispeed): Likewise.
15950         * termios/tcflow.c (tcflow): Likewise.
15951         * termios/tcflush.c (tcflush): Likewise.
15952         * termios/tcgetattr.c (__tcgetattr): Likewise.
15953         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
15954         * termios/tcgetsid.c (tcgetsid): Likewise.
15955         * termios/tcsendbrk.c (tcsendbreak): Likewise.
15956         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
15957         * time/adjtime.c (__adjtime): Likewise.
15958         * time/dysize.c (dysize): Likewise.
15959         * time/ftime.c (ftime): Likewise.
15960         * time/getitimer.c (__getitimer): Likewise.
15961         * time/gettimeofday.c (__gettimeofday): Likewise.
15962         * time/gmtime.c (__gmtime_r): Likewise.
15963         (gmtime): Likewise.
15964         * time/localtime.c (__localtime_r): Likewise.
15965         (localtime): Likewise.
15966         * time/offtime.c (__offtime): Likewise.
15967         * time/settimeofday.c (__settimeofday): Likewise.
15968         * time/stime.c (stime): Likewise.
15969         * time/strftime_l.c (tm_diff): Likewise.
15970         (iso_week_days): Likewise.
15971         * time/strptime.c (strptime): Likewise.
15972         * time/time.c (time): Likewise.
15973         * time/timespec_get.c (timespec_get): Likewise.
15974         * time/tzset.c (tzset_internal): Likewise.
15975         (compute_change): Likewise.
15976         (__tz_compute): Likewise.
15977         * wcsmbs/btowc.c (__btowc): Likewise.
15978         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
15979         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
15980         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
15981         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
15982         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
15983         * wcsmbs/wcscat.c (__wcscat): Likewise.
15984         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15985         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
15986         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
15987         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15988         * wcsmbs/wcsdup.c (wcsdup): Likewise.
15989         * wcsmbs/wcslen.c (__wcslen): Likewise.
15990         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
15991         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
15992         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
15993         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
15994         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15995         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
15996         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15997         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15998         * wcsmbs/wcstok.c (wcstok): Likewise.
15999         * wcsmbs/wctob.c (wctob): Likewise.
16000         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
16001         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16002         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
16003         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
16004         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
16005         * wcsmbs/wmemset.c (__wmemset): Likewise.
16006         * wctype/wcfuncs.c (__towlower): Likewise.
16007         (__towupper): Likewise.
16008
16009         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
16010         (lll_unlock_elision): Add adapt_count parameter.
16011
16012 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16013
16014         * sysdeps/nptl/configure.ac: Do not give errors based on the
16015         results of top-level configure tests.
16016         * sysdeps/nptl/configure: Regenerated.
16017
16018         * configure.ac (libc_cv_Bgroup): Remove configure test.
16019         * configure: Regenerated.
16020         * config.make.in (have-Bgroup): Remove variable.
16021
16022         * configure.ac (sizeof_long_double): Remove configure test.
16023         * configure: Regenerated.
16024         * config.make.in (sizeof-long-double): Remove variable.
16025
16026         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
16027         * configure: Regenerated.
16028         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
16029         variable.
16030         (exceptions): Likewise.
16031         * sysdeps/arm/configure: Regenerated.
16032         * config.make.in (exceptions): Remove variable.
16033         * Makeconfig (uses-callbacks): Use -fexceptions instead of
16034         $(exceptions).
16035         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
16036         (CFLAGS-vdprintf_chk.c): Likewise.
16037         (CFLAGS-printf_chk.c): Likewise.
16038         (CFLAGS-fprintf_chk.c): Likewise.
16039         (CFLAGS-vprintf_chk.c): Likewise.
16040         (CFLAGS-vfprintf_chk.c): Likewise.
16041         (CFLAGS-gets_chk.c): Likewise.
16042         (CFLAGS-fgets_chk.c): Likewise.
16043         (CFLAGS-fgets_u_chk.c): Likewise.
16044         (CFLAGS-fread_chk.c): Likewise.
16045         (CFLAGS-fread_u_chk.c): Likewise.
16046         (CFLAGS-wprintf_chk.c): Likewise.
16047         (CFLAGS-fwprintf_chk.c): Likewise.
16048         (CFLAGS-vwprintf_chk.c): Likewise.
16049         (CFLAGS-vfwprintf_chk.c): Likewise.
16050         (CFLAGS-fgetws_chk.c): Likewise.
16051         (CFLAGS-fgetws_u_chk.c): Likewise.
16052         * libio/Makefile (CFLAGS-fileops.c): Likewise.
16053         (CFLAGS-fputc.c): Likewise.
16054         (CFLAGS-fputwc.c): Likewise.
16055         (CFLAGS-freopen64.c): Likewise.
16056         (CFLAGS-freopen.c): Likewise.
16057         (CFLAGS-fseek.c): Likewise.
16058         (CFLAGS-fseeko64.c): Likewise.
16059         (CFLAGS-fseeko.c): Likewise.
16060         (CFLAGS-ftello64.c): Likewise.
16061         (CFLAGS-ftello.c): Likewise.
16062         (CFLAGS-fwide.c): Likewise.
16063         (CFLAGS-genops.c): Likewise.
16064         (CFLAGS-getc.c): Likewise.
16065         (CFLAGS-getchar.c): Likewise.
16066         (CFLAGS-getwc.c): Likewise.
16067         (CFLAGS-getwchar.c): Likewise.
16068         (CFLAGS-iofclose.c): Likewise.
16069         (CFLAGS-iofflush.c): Likewise.
16070         (CFLAGS-iofgetpos64.c): Likewise.
16071         (CFLAGS-iofgetpos.c): Likewise.
16072         (CFLAGS-iofgets.c): Likewise.
16073         (CFLAGS-iofgetws.c): Likewise.
16074         (CFLAGS-iofputs.c): Likewise.
16075         (CFLAGS-iofputws.c): Likewise.
16076         (CFLAGS-iofread.c): Likewise.
16077         (CFLAGS-iofsetpos64.c): Likewise.
16078         (CFLAGS-iofsetpos.c): Likewise.
16079         (CFLAGS-ioftell.c): Likewise.
16080         (CFLAGS-iofwrite.c): Likewise.
16081         (CFLAGS-iogetdelim.c): Likewise.
16082         (CFLAGS-iogetline.c): Likewise.
16083         (CFLAGS-iogets.c): Likewise.
16084         (CFLAGS-iogetwline.c): Likewise.
16085         (CFLAGS-ioputs.c): Likewise.
16086         (CFLAGS-ioseekoff.c): Likewise.
16087         (CFLAGS-ioseekpos.c): Likewise.
16088         (CFLAGS-iosetbuffer.c): Likewise.
16089         (CFLAGS-iosetvbuf.c): Likewise.
16090         (CFLAGS-ioungetc.c): Likewise.
16091         (CFLAGS-ioungetwc.c): Likewise.
16092         (CFLAGS-oldfileops.c): Likewise.
16093         (CFLAGS-oldiofclose.c): Likewise.
16094         (CFLAGS-oldiofgetpos64.c): Likewise.
16095         (CFLAGS-oldiofgetpos.c): Likewise.
16096         (CFLAGS-oldiofsetpos64.c): Likewise.
16097         (CFLAGS-oldiofsetpos.c): Likewise.
16098         (CFLAGS-peekc.c): Likewise.
16099         (CFLAGS-putc.c): Likewise.
16100         (CFLAGS-putchar.c): Likewise.
16101         (CFLAGS-putwc.c): Likewise.
16102         (CFLAGS-putwchar.c): Likewise.
16103         (CFLAGS-rewind.c): Likewise.
16104         (CFLAGS-wfileops.c): Likewise.
16105         (CFLAGS-wgenops.c): Likewise.
16106         (CFLAGS-oldiofopen.c): Likewise.
16107         (CFLAGS-iofopen.c): Likewise.
16108         (CFLAGS-iofopen64.c): Likewise.
16109         (CFLAGS-oldtmpfile.c): Likewise.
16110         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
16111         (CFLAGS-fprintf.c): Likewise.
16112         (CFLAGS-printf.c): Likewise.
16113         (CFLAGS-vfwprintf.c): Likewise.
16114         (CFLAGS-vfscanf.c): Likewise.
16115         (CFLAGS-vfwscanf.c): Likewise.
16116         (CFLAGS-fscanf.c): Likewise.
16117         (CFLAGS-scanf.c): Likewise.
16118         (CFLAGS-isoc99_vfscanf.c): Likewise.
16119         (CFLAGS-isoc99_vscanf.c): Likewise.
16120         (CFLAGS-isoc99_fscanf.c): Likewise.
16121         (CFLAGS-isoc99_scanf.c): Likewise.
16122         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
16123         (CFLAGS-isoc99_fwscanf.c): Likewise.
16124         (CFLAGS-isoc99_vwscanf.c): Likewise.
16125         (CFLAGS-isoc99_vfwscanf.c): Likewise.
16126
16127         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
16128         after mkstemp64.
16129         * login/tst-utmp.c (do_prepare): Likewise.
16130         * rt/tst-aio.c (do_prepare): Likewise.
16131         * rt/tst-aio64.c (do_prepare): Likewise.
16132
16133 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16134
16135         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
16136         (__lll_lock_elision): Remove adapt_count decrement...
16137         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16138         (__lll_trylock_elision): Likewise.
16139         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16140         (__lll_unlock_elision): ... to here. And utilize
16141         new adapt_count parameter.
16142         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16143         (__lll_unlock_elision): Update to include adapt_count
16144         parameter.
16145         (lll_unlock_elision): Pass pointer to adapt_count
16146         variable.
16147
16148 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16149
16150         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
16151         Add elision adapt_count parameter to list of arguments.
16152         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16153         (lll_unlock_elision): Update with new parameter list
16154         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
16155         (lll_unlock_elision): Likewise.
16156         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
16157         (lll_unlock_elision): Likewise.
16158
16159 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16160
16161         [BZ #19122]
16162         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
16163         attribute_hidden.
16164
16165         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
16166         attribute_hidden.
16167         [IS_IN (rtld)] (__strdup): Likewise.
16168         [IS_IN (rtld)] (__strerror_r): Likewise.
16169         [IS_IN (rtld)] (__strsep_g): Likewise.
16170         [IS_IN (rtld)] (memchr): Likewise.
16171         [IS_IN (rtld)] (memcmp): Likewise.
16172         [IS_IN (rtld)] (memcpy): Likewise.
16173         [IS_IN (rtld)] (memmove): Likewise.
16174         [IS_IN (rtld)] (memset): Likewise.
16175         [IS_IN (rtld)] (rawmemchr): Likewise.
16176         [IS_IN (rtld)] (stpcpy): Likewise.
16177         [IS_IN (rtld)] (strchr): Likewise.
16178         [IS_IN (rtld)] (strcmp): Likewise.
16179         [IS_IN (rtld)] (strlen): Likewise.
16180         [IS_IN (rtld)] (strnlen): Likewise.
16181         [IS_IN (rtld)] (strsep): Likewise.
16182
16183         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
16184         attribute_hidden.
16185         [IS_IN (rtld)] (__strtoul_internal): Likewise.
16186
16187         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
16188         attribute_hidden.
16189         [IS_IN (rtld)] (__libc_sigaction): Likewise.
16190
16191         * include/setjmp.h (__longjmp): Add attribute_hidden.
16192         [IS_IN (rtld)] (__sigsetjmp): Likewise.
16193
16194         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
16195         Add attribute_hidden.
16196
16197         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
16198         [IS_IN (rtld)] (__open): Likewise.
16199         [IS_IN (rtld)] (__fcntl): Likewise.
16200
16201         * include/dirent.h (__opendirat): Add attribute_hidden.
16202         (__getdents): Likewise.
16203         (__getdents64): Likewise.
16204         (__alloc_dir): Likewise.
16205         [IS_IN (rtld)] (__closedir): Likewise.
16206         [IS_IN (rtld)] (__fdopendir): Likewise.
16207         [IS_IN (rtld)] (__readdir): Likewise.
16208         [IS_IN (rtld)] (__readdir64): Likewise.
16209         [IS_IN (rtld)] (__rewinddir): Likewise.
16210
16211         * include/dlfcn.h (_dl_catch_error): Moved to ...
16212         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
16213         attribute_hidden.
16214
16215         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
16216         (_itoa_word): Likewise.
16217
16218         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
16219         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
16220         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
16221         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
16222         (_dl_higher_prime_number): Likewise.
16223         (_dl_debug_printf_c): Likewise.
16224         (_dl_signal_cerror): Likewise.
16225         (_dl_receive_error): Likewise.
16226         (_dl_reloc_bad_type): Likewise.
16227         (_dl_resolve_conflicts): Likewise.
16228         (_dl_check_all_versions): Likewise.
16229         (_dl_check_map_versions): Likewise.
16230         (_dl_sort_fini): Likewise.
16231         (_dl_debug_initialize): Likewise.
16232         (_dl_init_paths): Likewise.
16233         (_dl_show_auxv): Likewise.
16234         (_dl_next_ld_env_entry): Likewise.
16235         (_dl_important_hwcaps): Likewise.
16236         (_dl_load_cache_lookup): Likewise.
16237         (_dl_update_slotinfo): Likewise.
16238         (_dl_show_scope): Likewise.
16239
16240         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
16241         attribute_hidden.
16242         (_wordcopy_fwd_dest_aligned): Likewise.
16243         (_wordcopy_bwd_aligned): Likewise.
16244         (_wordcopy_bwd_dest_aligned): Likewise.
16245
16246         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
16247         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16248         Likewise.
16249         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16250         Likewise.
16251         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
16252
16253 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16254
16255         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
16256         GCC 5 requirement.
16257
16258 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16259
16260         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
16261         test.
16262         * sysdeps/i386/configure: Regenerated.
16263         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
16264         code unconditional.
16265
16266         * configure.ac (libc_cv_asm_previous_directive): Remove configure
16267         test.
16268         (libc_cv_asm_popsection_directive): Likewise.
16269         * configure: Regenerated.
16270         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
16271         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
16272         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
16273         (__make_section_unallocated): Make definition unconditional.
16274         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
16275         Remove conditional definition.
16276         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
16277         (__make_section_unallocated): Likewise.
16278
16279         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
16280         * configure: Regenerated.
16281         * config.make.in (static-libgcc): Remove variable.
16282         * Makerules (build-shlib-helper): Use -static-libgcc instead of
16283         $(static-libgcc).
16284         (build-module-helper): Likewise.
16285
16286         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
16287         * configure: Regenerated.
16288
16289 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16290
16291         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
16292         (struct char_buffer): New type.
16293         (char_buffer_start, char_buffer_size, char_buffer_error)
16294         (char_buffer_rewind, char_buffer_add): New functions.
16295         (ADDW): Remove macro, replaced by the char_buffer_add function.
16296         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
16297         of extend_alloca.  Make control flow more explicit.
16298
16299 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16300
16301         [BZ #19137]
16302         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
16303         Add -fomit-frame-pointer.
16304         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
16305
16306 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16307
16308         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
16309         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
16310         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
16311         only if !__GNUC_PREREQ (5,0).
16312         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
16313         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16314         (INTERNAL_SYSCALL_NCS): Likewise.
16315         (LOADREGS_0): New macro for GCC 5.
16316         (ASMARGS_0): Likewise.
16317         (LOADREGS_1): Likewise.
16318         (ASMARGS_1): Likewise.
16319         (LOADREGS_2): Likewise.
16320         (ASMARGS_2): Likewise.
16321         (LOADREGS_3): Likewise.
16322         (ASMARGS_3): Likewise.
16323         (LOADREGS_4): Likewise.
16324         (ASMARGS_4): Likewise.
16325         (LOADREGS_5): Likewise.
16326         (ASMARGS_5): Likewise.
16327         (LOADREGS_6): Likewise.
16328         (ASMARGS_6): Likewise.
16329
16330 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16331
16332         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
16333         -fomit-frame-pointer.
16334         (CFLAGS-mmap64.c): Likewise.
16335         (CFLAGS-semtimedop.c): Likewise.
16336         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
16337         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
16338         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16339         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16340
16341 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16342
16343         [BZ #18928]
16344         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
16345         _dl_pointer_guard member.
16346         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
16347         initializer.
16348         (security_init): Always set up pointer guard.
16349         (process_envvars): Do not process LD_POINTER_GUARD.
16350
16351 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
16352
16353         [BZ #19134]
16354         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
16355         (.LC2): Likewise.
16356         (.LC3): Likewise.
16357         (__lround): Do not add 0.5 to integer or out-of-range arguments.
16358
16359 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16360
16361         [BZ #19129]
16362         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
16363         r0 and r1.
16364
16365 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
16366
16367         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
16368
16369 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
16370
16371         * include/stap-probe.h: Fix macro definition formatting.
16372
16373 2015-10-14  Florian Weimer  <fweimer@redhat.com>
16374
16375         [BZ #19074]
16376         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
16377         load and store num_ifs.
16378
16379 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16380
16381         [BZ #18822]
16382         * sysdeps/unix/sysv/linux/sched_getaffinity.c
16383         (__sched_getaffinity_new): Add libc_hidden_proto and
16384         libc_hidden_def.
16385
16386 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16387
16388         [BZ #19007]
16389         * scripts/localplt.awk: Also allow GOT references.
16390         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
16391         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
16392         with "+ REL R_386_GLOB_DAT".
16393         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
16394         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
16395
16396 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16397
16398         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
16399         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16400         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
16401         Likewise.
16402         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
16403         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
16404         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
16405         INTERNAL_SYSCALLINTERNAL_SYSCALL and
16406         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16407         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
16408         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
16409         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
16410         Likewise.
16411         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
16412
16413 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16414
16415         [BZ #19125]
16416         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
16417         <math_private.h> and <stdint.h>.
16418         (__llround): Avoid conversions to and from long long int, and
16419         subtractions, where those might raise spurious exceptions.
16420         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16421         <math_private.h> and <stdint.h>.
16422         (__llroundf): Avoid conversions to and from long long int, and
16423         subtractions, where those might raise spurious exceptions.
16424
16425 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16426
16427         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
16428         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16429         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
16430         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
16431         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
16432         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
16433         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
16434         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
16435         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
16436         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
16437         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
16438         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
16439         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
16440         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
16441         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
16442         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
16443         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
16444         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
16445         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
16446         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
16447         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
16448         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
16449         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
16450         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16451         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
16452         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
16453         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
16454         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
16455         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
16456         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
16457         (__xstat64_conv): Likewise.
16458         (__xstat32_conv): Likewise.
16459
16460 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16461
16462         * sysdeps/unix/sysv/linux/sysdep.h: New file.
16463         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
16464         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
16465         <sysdeps/unix/sysv/linux/sysdep.h>.
16466         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
16467         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
16468         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
16469         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
16470         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
16471         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
16472         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
16473         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16474         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16477         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16478         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16479         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16480         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16481         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16482         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
16483         (sysdep-dl-routines): Add sysdep.
16484         [$(subdir) == nptl] (libpthread-routines): Likewise.
16485         [$(subdir) == rt] (librt-routines): Likewise.
16486         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
16487         PIC when branching to SYSCALL_ERROR_LABEL.
16488         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
16489         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
16490         <sysdeps/unix/sysv/linux/sysdep.h>.
16491         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
16492         (SYSCALL_ERROR_ERRNO): Removed.
16493         (SYSCALL_ERROR_HANDLER): Changed to empty.
16494         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
16495         (__syscall_error): New prototype.
16496         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
16497         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
16498
16499 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16500
16501         [BZ #19124]
16502         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
16503         (_dl_runtime_resolve_avx512): Make it a hidden alias of
16504         _dl_runtime_resolve_avx.
16505         (_dl_runtime_profile_avx512): Make it a hidden alias of
16506         _dl_runtime_profile_avx.
16507
16508 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16509
16510         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
16511         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
16512         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
16513         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
16514
16515         [BZ #16422]
16516         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
16517         New configure test.
16518         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
16519         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
16520         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
16521         <math_private.h> and <stdint.h>.
16522         (__llrint): Avoid conversions to long long int where those might
16523         raise spurious exceptions.
16524         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16525         <math_private.h> and <stdint.h>.
16526         (__llrintf): Avoid conversions to long long int where those might
16527         raise spurious exceptions.
16528
16529 2015-10-12  Andreas Schwab  <schwab@suse.de>
16530
16531         [BZ #18969]
16532         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
16533         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
16534         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
16535         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
16536         $(gen-locales).
16537         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
16538         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
16539         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
16540         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
16541         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
16542         $(gen-locales).
16543         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
16544         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
16545         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
16546         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
16547         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
16548         ($(objpfx)tst-ftell-active-handler.out)
16549         ($(objpfx)tst-ftell-append.out)
16550         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
16551         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
16552         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
16553         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
16554         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
16555         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
16556         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
16557         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
16558         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
16559         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
16560         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
16561         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
16562         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
16563         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
16564         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
16565         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
16566         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
16567         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
16568         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
16569         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
16570         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
16571         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
16572         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
16573         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
16574         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
16575         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
16576         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
16577         $(gen-locales).
16578         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
16579         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
16580         $(gen-locales).
16581         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
16582         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
16583         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
16584         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
16585         $(gen-locales).
16586         * libio/tst_wprintf2.c (main): Use explicit locale.
16587         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
16588
16589 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16590
16591         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
16592         __msg_sig_post.
16593         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
16594
16595 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16596
16597         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
16598         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16599
16600         * sysdeps/arm/libm-test-ulps: Regenerated.
16601
16602         [BZ #15470]
16603         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
16604
16605         [BZ #16399]
16606         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
16607         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
16608         and <fix-fp-int-convert-overflow.h>.
16609         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16610         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16611         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
16612         and <fix-fp-int-convert-overflow.h>.
16613         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
16614         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16615         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
16616         <fix-fp-int-convert-overflow.h>.
16617         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16618         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16619         * sysdeps/ieee754/dbl-64/s_lround.c: Include
16620         <fix-fp-int-convert-overflow.h>.
16621         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
16622         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16623         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
16624         and <fix-fp-int-convert-overflow.h>.
16625         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16626         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16627         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
16628         <limits.h> and <fix-fp-int-convert-overflow.h>.
16629         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16630         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16631         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
16632         and <fix-fp-int-convert-overflow.h>.
16633         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16634         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16635         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
16636         and <fix-fp-int-convert-overflow.h>.
16637         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16638         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16639         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
16640
16641 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
16642
16643         [BZ #18589]
16644         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
16645         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
16646         $(gen-locales).
16647
16648 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16649             Phil Blundell <pb@pbcl.net>
16650
16651         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
16652         * nptl/tst-cancel26.c: New file.
16653         * nptl/tst-cancel27.c: Likewise.
16654
16655 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
16656
16657         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
16658         __ILP32__ isn't defined.
16659         (lrint): Likewise.
16660         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
16661         (lrintf): Likewise.
16662         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
16663         (lrintl): Likewise.
16664         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
16665         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
16666         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
16667
16668 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16669
16670         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16671         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16672
16673         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
16674         file.
16675         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
16676         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16677
16678 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16679
16680         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
16681         configure test.
16682         * sysdeps/i386/configure: Regenerated.
16683         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
16684         configure test.
16685         * sysdeps/x86_64/configure: Regenerated.
16686         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
16687         Make code unconditional.
16688
16689         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
16690         test.
16691         * sysdeps/i386/configure: Regenerated.
16692         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
16693         test.
16694         * sysdeps/x86_64/configure: Regenerated.
16695         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
16696         Make code unconditional.
16697         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
16698         Likewise.
16699         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
16700         Likewise.
16701         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16702         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
16703         code unconditional.
16704         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16705         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
16706         code unconditional.
16707         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16708         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
16709         code unconditional.
16710         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
16711         code unconditional.
16712         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16713         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
16714         code unconditional.
16715         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16716         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
16717         code unconditional.
16718         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16719         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
16720         code unconditional.
16721         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16722         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
16723         code unconditional.
16724         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16725         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
16726
16727         [BZ #19095]
16728         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
16729         mantissa to long int before shifting left.
16730
16731 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16732
16733         [BZ #19094]
16734         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
16735         <limits.h>.
16736         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16737         when result overflows but exception would not result from cast.
16738         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
16739         <limits.h>.
16740         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16741         when result overflows but exception would not result from cast.
16742         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
16743         <limits.h>.
16744         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16745         when result overflows but exception would not result from cast.
16746         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
16747         <limits.h>.
16748         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16749         when result overflows but exception would not result from cast.
16750         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
16751         <limits.h>.
16752         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16753         when result overflows but exception would not result from cast.
16754         * math/libm-test.inc (lrint_test_data): Add more tests.
16755         (llrint_test_data): Likewise.
16756
16757 2015-10-08  Roland McGrath  <roland@hack.frob.com>
16758
16759         [BZ #18872]
16760         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
16761         Move out from under [$(run-built-tests) = yes] conditional.
16762         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
16763         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
16764
16765 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
16766
16767         [BZ #18589]
16768         * string/Makefile (tests): Add bug-strcoll2.
16769         (LOCALES): Add cs_CZ.UTF-8.
16770         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
16771
16772         [BZ #18589]
16773         * string/bug-strcoll2.c: New file.
16774         * locale/categories.def: Revert commit
16775         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
16776         * locale/langinfo.h: Likewise.
16777         * locale/localeinfo.h: Likewise.
16778         * locale/C-collate.c: Likewise.
16779         * locale/programs/ld-collate.c (collate_output): Likewise.
16780         * string/strcoll_l.c (STRDIFF): Likewise.
16781         (STRCOLL): Likewise.
16782         * wcsmbs/wcscoll_l.c: Likewise.
16783
16784 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16785
16786         * math/libm-test.inc (lround_test_data): Do not expect the absence
16787         of "inexact" for some tests with non-integer arguments.
16788         (llround_test_data): Likewise.
16789
16790         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
16791         test.
16792         (libc_cv_cc_sse2avx): Likewise.
16793         * sysdeps/i386/configure: Regenerated.
16794         * sysdeps/i386/i686/multiarch/Makefile
16795         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
16796         [$(subdir) = math].
16797         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
16798         code unconditional.
16799         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16800         Likewise.
16801         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
16802         Likewise.
16803         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16804         Likewise.
16805         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
16806         test.
16807         (libc_cv_cc_sse2avx): Likewise.
16808         * sysdeps/x86_64/configure: Regenerated.
16809         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
16810         unconditional.
16811         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
16812         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
16813         unconditional.
16814         (_dl_runtime_profile)
16815         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
16816         conditional code.
16817         * sysdeps/x86_64/fpu/multiarch/Makefile
16818         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
16819         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
16820         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16821         * sysdeps/x86_64/fpu/multiarch/e_exp.c
16822         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16823         * sysdeps/x86_64/fpu/multiarch/e_log.c
16824         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16825         * sysdeps/x86_64/fpu/multiarch/s_atan.c
16826         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16827         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16828         Likewise.
16829         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16830         Likewise.
16831         * sysdeps/x86_64/fpu/multiarch/s_sin.c
16832         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16833         * sysdeps/x86_64/fpu/multiarch/s_tan.c
16834         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16835         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
16836         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
16837         (HAVE_SSE2AVX_SUPPORT): Likewise.
16838
16839 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
16840
16841         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
16842         instead of #pragma optimize.
16843
16844 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16845
16846         [BZ #17195]
16847         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
16848         as is similarly done in systrim and _int_free already.
16849
16850 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16851
16852         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
16853
16854 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16855
16856         [BZ #19088]
16857         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
16858         <limits.h>.
16859         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16860         overflows but exception would not result from cast.
16861         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
16862         and <limits.h>.
16863         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16864         overflows but exception would not result from cast.
16865         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
16866         <limits.h>.
16867         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16868         overflows but exception would not result from cast.
16869         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
16870         <limits.h>.
16871         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16872         overflows but exception would not result from cast.
16873         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
16874         <limits.h>.
16875         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16876         overflows but exception would not result from cast.
16877         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
16878         <limits.h>.
16879         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16880         overflows but exception would not result from cast.
16881         * math/libm-test.inc (lround_test_data): Add more tests.
16882         (llround_test_data): Likewise.
16883
16884 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
16885
16886         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
16887         (CFLAGS-ialloc.c): Ditto.
16888         (CFLAGS-scheck.c): Ditto.
16889
16890 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16891
16892         [BZ #19086]
16893         * manual/filesys.texi (Storage Allocation): Fix argument order for
16894         posix_fallocate64.
16895
16896 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16897
16898         [BZ #19085]
16899         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
16900         exponent below 48 inside case for non-overflowing exponent.
16901         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
16902
16903 2015-10-07  Florian Weimer  <fweimer@redhat.com>
16904
16905         * iconvdata/cp737.h (from_idx): Add const.
16906         * iconvdata/cp775.h (from_idx): Likewise.
16907
16908 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16909
16910         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
16911         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
16912         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
16913
16914         [BZ #19079]
16915         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
16916         file, conditioned on [!_LP64].
16917         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
16918         [!_LP64] (__lround): Do not define as function or alias.
16919         [!_LP64] (lround): Likewise.
16920         [!_LP64] (__lroundl): Likewise.
16921         [!_LP64] (lroundl): Likewise.
16922         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
16923         macro.
16924         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
16925         Likewise.
16926
16927 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16928
16929         * math/libm-test.inc (lrint_test_data): Add more tests.
16930         (llrint_test_data): Likewise.
16931         (lround_test_data): Likewise.
16932         (llround_test_data): Likewise.
16933
16934         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
16935         (llrint_test_data): Add tests used for lrint.
16936
16937         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
16938         test.
16939         * sysdeps/i386/configure: Regenerated.
16940         * sysdeps/i386/i686/multiarch/Makefile
16941         [$(config-cflags-sse4) = yes]: Make code unconditional.
16942         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16943         Likewise.
16944         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
16945         Likewise.
16946         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
16947         test.
16948         * sysdeps/x86_64/configure: Regenerated.
16949         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
16950         Make code unconditional.
16951         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16952         Likewise.
16953         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
16954         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
16955
16956         * scripts/rpm2dynsym.sh: Remove file.
16957
16958 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16959
16960         * configure.ac (libc_cv_cxx_thread_local): Define.
16961         * configure: Regenerate.
16962         * config.make.in (have-cxx-thread_local): Define.
16963         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
16964         (LDLIBS-tst-thread_local1): Define.
16965         (tests): Add tst-thread_local1.
16966         [have-cxx-thread_local != yes] (tests-unsupported): Add
16967         tst-thread_local1.
16968         * nptl/tst-thread_local1.cc: New file.
16969
16970 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16971
16972         [BZ #19078]
16973         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
16974         (u_thres): Likewise.
16975         (__expl): Determine whether to call __kernel_standard_l based on
16976         value of result, not argument.
16977
16978         * math/libm-test.inc (scalb_test_data): Add more expectations for
16979         the "inexact" exception.
16980
16981         [BZ #19077]
16982         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
16983         0.0L for argument 1.0L.
16984
16985         [BZ #19076]
16986         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
16987         constant 0.0L when computing infinite result.
16988
16989 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16990
16991         [BZ #10432]
16992         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
16993         malloc_usable_size.
16994
16995 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16996
16997         [BZ #19018]
16998         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
16999         Mangle function pointer before storing it.
17000         (__call_tls_dtors): Demangle function pointer before calling it.
17001
17002 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17003
17004         [BZ #19012]
17005         * iconv/gconv_db.c (gen_steps): Check for additional errors.
17006         Clean up on failure.
17007
17008 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
17009
17010         [BZ #19071]
17011         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
17012         long int variable to store possibly incremented high part of
17013         mantissa.
17014         * math/libm-test.inc (lround_test_data): Add tests used for
17015         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
17016         for tests requiring 64-bit long.  Do not condition tests on
17017         [TEST_FLOAT] unnecessarily.
17018         (llround_test_data): Add tests used for lround.  Add another
17019         expectation for the "inexact" exception.  Do not condition tests
17020         on [TEST_FLOAT] unnecessarily.
17021
17022         [BZ #887]
17023         [BZ #19049]
17024         [BZ #19050]
17025         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
17026         * sysdeps/ieee754/dbl-64/e_log10.c: Include
17027         <fix-int-fp-convert-zero.h>.
17028         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17029         * sysdeps/ieee754/dbl-64/e_log2.c: Include
17030         <fix-int-fp-convert-zero.h>.
17031         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17032         * sysdeps/ieee754/dbl-64/s_erf.c: Include
17033         <fix-int-fp-convert-zero.h>.
17034         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17035         * sysdeps/ieee754/dbl-64/s_logb.c: Include
17036         <fix-int-fp-convert-zero.h>.
17037         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17038         * sysdeps/ieee754/flt-32/e_log10f.c: Include
17039         <fix-int-fp-convert-zero.h>.
17040         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17041         * sysdeps/ieee754/flt-32/e_log2f.c: Include
17042         <fix-int-fp-convert-zero.h>.
17043         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17044         * sysdeps/ieee754/flt-32/s_erff.c: Include
17045         <fix-int-fp-convert-zero.h>.
17046         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17047         * sysdeps/ieee754/flt-32/s_logbf.c: Include
17048         <fix-int-fp-convert-zero.h>.
17049         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17050         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
17051         <fix-int-fp-convert-zero.h>.
17052         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17053         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
17054         <fix-int-fp-convert-zero.h>.
17055         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17056         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
17057         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
17058         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
17059         file.
17060         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
17061
17062 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
17063
17064         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17065
17066 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
17067
17068         [BZ #19059]
17069         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
17070         overflowing computation.
17071         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17072         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17073         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17074         Likewise.
17075         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17076         Likewise.
17077         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17078         Likewise.
17079         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17080         Likewise.
17081         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17082         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17083         Likewise.
17084         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17085         Likewise.
17086         * math/libm-test.inc (nexttoward_test_data): Add more tests.
17087
17088         * nss/rewrite_field.c (__nss_rewrite_field): Use
17089         internal_function.
17090         * nss/valid_field.c (__nss_valid_field): Likewise.
17091         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
17092
17093 2015-10-02  Florian Weimer  <fweimer@redhat.com>
17094
17095         [BZ #18724]
17096         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
17097         (__nss_invalid_field_characters, __nss_valid_field)
17098         (__nss_valid_list_field, __nss_rewrite_field): Declare.
17099         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
17100         tst-field.c: New file.
17101         * nss/Makefile (routines): Add valid_field, rewrite_field.
17102         (tests-static): Define unconditionally.
17103         (tests): Include tests-static.
17104         [build-static-nss] (tests-static): Use append.
17105         [build-static-nss] (tests): Remove modification.
17106         * nss/getent.c (print_group): Call putgrent.  Report error.
17107         (print_gshadow): Call putsgent.  Report error.
17108         (print_passwd): Call putpwent.  Report error.
17109         (print_shadow): Call putspent.  Report error.
17110         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
17111         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
17112         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
17113         name, password, directory, shell fields for valid syntax.  Rewrite
17114         GECOS field to match syntax.
17115         * pwd/Makefile (tests): Add tst-putpwent.
17116         * pwd/tst-putpwent.c: New file.
17117         * grp/putgrent.c (putgrent): Convert to ISO function definition.
17118         Check grName, grpasswd, gr_mem fields for valid syntax.
17119         Change loop variable i to size_t.
17120         * grp/Makefile (tests): Add tst-putgrent.
17121         * grp/tst-putgrent.c: New file.
17122         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
17123         valid syntax.
17124         * shadow/Makefile (tests): Add tst-putspent.
17125         * shadow/tst-putspent.c: New file.
17126         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
17127         sg_mem fields for valid syntax.
17128         * gshadow/Makefile (tests): Add tst-putsgent.
17129         * gshadow/tst-putsgent.c: New file.
17130
17131 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17132
17133         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
17134         assembly instructions.
17135
17136 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17137
17138         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
17139         prefix from operands.
17140
17141 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
17142
17143         [BZ #16347]
17144         [BZ #19046]
17145         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
17146         <libc-internal.h>.
17147         (MAXLGM): Do not use diagnostic control macros.
17148         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
17149         threshold for ldbl-128ibm.
17150         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
17151         instead of multiplying by log then subtracting.
17152         * math/auto-libm-test-in: Add more tests of lgamma.
17153         * math/auto-libm-test-out: Regenerated.
17154
17155         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
17156         (TYPE_HEX_DIG): Likewise.
17157         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
17158         precisions when printing floating-point numbers.
17159         (check_float_internal): Likewise.
17160
17161 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17162
17163         [BZ #16620]
17164         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
17165         of log (10) rounded downward to 48 bits.
17166         (log10_low): Use corresponding low part of log (10).
17167
17168         [BZ #19032]
17169         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
17170         compute result as (x - x) / (x - x) not as 0 / 0.
17171         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
17172         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
17173
17174         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
17175         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
17176         and expm1.
17177         * math/auto-libm-test-out: Regenerated.
17178         * math/libm-test.inc (acos_test_data): Add more tests.
17179         (asin_test_data): Likewise.
17180         (asinh_test_data): Likewise.
17181         (atan_test_data): Likewise.
17182         (atanh_test_data): Likewise.
17183         (atan2_test_data): Likewise.
17184         (cbrt_test_data): Likewise.
17185         (ceil_test_data): Likewise.
17186         (copysign_test_data): Likewise.
17187         (cos_test_data): Likewise.
17188         (cosh_test_data): Likewise.
17189         (erf_test_data): Likewise.
17190         (erfc_test_data): Likewise.
17191         (exp_test_data): Likewise.
17192         (exp10_test_data): Likewise.
17193         (exp2_test_data): Likewise.
17194         (expm1_test_data): Likewise.
17195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17196
17197 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
17198
17199         [BZ #19006]
17200         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
17201         to ...
17202         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
17203         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
17204         to ...
17205         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
17206         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
17207         to ...
17208         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
17209         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
17210         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
17211         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
17212         to ...
17213         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
17214         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
17215         Moved to ...
17216         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
17217         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
17218         Moved to ...
17219         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
17220         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
17221         to ...
17222         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
17223         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
17224         Moved to ...
17225         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
17226         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
17227         to ...
17228         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
17229         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
17230         Removed.
17231         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
17232         Likewise.
17233         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
17234         Likewise.
17235         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
17236         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
17237         Likewise.
17238         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
17239         Likewise.
17240         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
17241         Likewise.
17242         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
17243         Likewise.
17244         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
17245         Likewise.
17246         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
17247         Likewise.
17248         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
17249         Likewise.
17250         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
17251         Likewise.
17252         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
17253         Likewise.
17254         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
17255         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
17256         Likewise.
17257         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
17258         Likewise.
17259         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
17260         Likewise.
17261         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
17262         Likewise.
17263         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
17264         Likewise.
17265         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
17266         Replace ../i486/pthread_cond_timedwait.S with
17267         ../pthread_cond_timedwait.S.
17268
17269 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17270
17271         * math/libm-test.inc (acos_test_data): Refine expectations for
17272         errno and "inexact" exceptions.
17273         (acosh_test_data): Likewise.
17274         (asin_test_data): Likewise.
17275         (asinh_test_data): Likewise.
17276         (atan_test_data): Likewise.
17277         (atanh_test_data): Likewise.
17278         (atan2_test_data): Likewise.
17279         (cbrt_test_data): Likewise.
17280         (ceil_test_data): Likewise.
17281         (copysign_test_data): Likewise.
17282         (cosh_test_data): Likewise.
17283         (erf_test_data): Likewise.
17284         (erfc_test_data): Likewise.
17285         (exp_test_data): Likewise.
17286         (exp10_test_data): Likewise.
17287         (exp2_test_data): Likewise.
17288         (expm1_test_data): Likewise.
17289         (fabs_test_data): Likewise.
17290         (floor_test_data): Likewise.
17291         (fma_test_data): Likewise.
17292         (fmax_test_data): Likewise.
17293         (fmin_test_data): Likewise.
17294         (fmod_test_data): Likewise.
17295         (fpclassify_test_data): Likewise.
17296         (frexp_test_data): Likewise.
17297         (hypot_test_data): Likewise.
17298         (ilogb_test_data): Likewise.
17299         (isgreater_test_data): Likewise.
17300         (isgreaterequal_test_data): Likewise.
17301         (isinf_test_data): Likewise.
17302         (isless_test_data): Likewise.
17303         (islessequal_test_data): Likewise.
17304         (islessgreater_test_data): Likewise.
17305         (isnan_test_data): Likewise.
17306         (isnormal_test_data): Likewise.
17307         (issignaling_test_data): Likewise.
17308         (isunordered_test_data): Likewise.
17309         (j0_test_data): Likewise.
17310         (j1_test_data): Likewise.
17311         (jn_test_data): Likewise.
17312         (lgamma_test_data): Likewise.
17313         (lrint_test_data): Likewise.
17314         (llrint_test_data): Likewise.
17315         (log_test_data): Likewise.
17316         (log10_test_data): Likewise.
17317         (log1p_test_data): Likewise.
17318         (log2_test_data): Likewise.
17319         (logb_test_data): Likewise.
17320         (lround_test_data): Likewise.
17321         (llround_test_data): Likewise.
17322         (modf_test_data): Likewise.
17323         (nearbyint_test_data): Likewise.
17324         (nextafter_test_data): Likewise.
17325         (nexttoward_test_data): Likewise.
17326         (pow_test_data): Likewise.
17327         (remainder_test_data): Likewise.
17328         (remquo_test_data): Likewise.
17329         (rint_test_data): Likewise.
17330         (round_test_data): Likewise.
17331         (signbit_test_data): Likewise.
17332         (sinh_test_data): Likewise.
17333         (sqrt_test_data): Likewise.
17334         (tanh_test_data): Likewise.
17335         (tgamma_test_data): Likewise.
17336         (trunc_test_data): Likewise.
17337         (y0_test_data): Likewise.
17338         (y1_test_data): Likewise.
17339         (yn_test_data): Likewise.
17340         (significand_test_data): Likewise.
17341
17342 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
17343
17344         * manual/filesys.texi (Storage Allocation): Document that
17345         posix_fallocate emulation fails when fd is open with O_WRONLY.
17346
17347 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
17348
17349         [BZ #19016]
17350         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
17351         allow more cases with X^2 + Y^2 >= 0.5.
17352         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
17353         normal element in sum instead of special-casing based on values of
17354         arguments.
17355         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
17356         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
17357         -1 as normal element in sum instead of special-casing based on
17358         values of arguments.
17359         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
17360         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
17361         (__x2y2m1): Update comment.
17362         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
17363         as normal element in sum instead of special-casing based on values
17364         of arguments.
17365         * math/s_clog.c (__clog): Handle more cases using log1p without
17366         hypot.
17367         * math/s_clog10.c (__clog10): Likewise.
17368         * math/s_clog10f.c (__clog10f): Likewise.
17369         * math/s_clog10l.c (__clog10l): Likewise.
17370         * math/s_clogf.c (__clogf): Likewise.
17371         * math/s_clogl.c (__clogl): Likewise.
17372         * math/auto-libm-test-in: Add more tests of clog and clog10.
17373         * math/auto-libm-test-out: Regenerated.
17374         * sysdeps/i386/fpu/libm-test-ulps: Update.
17375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17376
17377 2015-09-28  Martin Sebor  <msebor@redhat.com>
17378
17379         [BZ #18969]
17380         * string/Makefile (LOCALES): Define.
17381         (gen-locales.mk): Include.
17382         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
17383         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
17384         * string/tst-strxfrm2.c (do_test): Print the name of the locale
17385         on setlocale failure.
17386
17387 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
17388
17389         [BZ #18985]
17390         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
17391         (__strftime_internal): Likewise.
17392         * time/tst-strftime.c (do_bz18985): New test.
17393         (do_test): Call it.
17394
17395 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
17396
17397         [BZ #18956]
17398         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
17399         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
17400         extracting high part.
17401         * math/auto-libm-test-in: Add another test of pow.
17402         * math/auto-libm-test-out: Regenerated.
17403         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17404
17405 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17406
17407         [BZ #18825]
17408         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
17409         New macro.
17410         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
17411         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17412         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
17413         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
17414         DBL_NARROW_EVAL, reloading the PIC register as needed.
17415         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
17416         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
17417         FLT_NARROW_EVAL.  Use separate return path for case when first
17418         argument is NaN.
17419         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
17420         DEFINE_LDBL_MIN.
17421         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
17422         PIC register.
17423         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
17424         math_check_force_underflow_nonneg.
17425         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
17426         underflow for subnormal result.
17427         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17428         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
17429         math_check_force_underflow_nonneg.
17430         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
17431         math_check_force_underflow.
17432         * sysdeps/x86_64/fpu/x86_64-math-asm.h
17433         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
17434         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
17435         DEFINE_LDBL_MIN.
17436         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
17437         * math/auto-libm-test-in: Add more tests of pow.
17438         * math/auto-libm-test-out: Regenerated.
17439
17440 2015-09-25  Florian Weimer  <fweimer@redhat.com>
17441
17442         * nss/bug17079.c (init_test_items): Add diagnostic for
17443         inconsistent entries.
17444         (test_buffer_size): Skip inconsistent entries.
17445
17446 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17447
17448         [BZ #13304]
17449         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
17450         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17451         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
17452
17453         [BZ #13304]
17454         * sysdeps/microblaze/s_fma.c: New file.
17455         * sysdeps/microblaze/s_fmaf.c: Likewise.
17456         * sysdeps/microblaze/sfp-machine.h: Likewise.
17457
17458 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
17459
17460         [BZ #17250]
17461         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
17462         member.
17463
17464 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17465
17466         [BZ #18803]
17467         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
17468         (MO): New macro.
17469         (__ieee754_hypot) [PIC]: Load PIC register.
17470         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
17471         DBL_NARROW_EVAL.
17472         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
17473         math_check_force_underflow_nonneg in case where result might be
17474         tiny.
17475         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
17476         Likewise.
17477         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
17478         Likewise.
17479         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17480         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17481         * math/auto-libm-test-in: Add more tests of hypot.
17482         * math/auto-libm-test-out: Regenerated.
17483
17484 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
17485
17486         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
17487
17488 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17489
17490         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
17491         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
17492         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17493         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17494         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
17495         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17496         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17497
17498         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
17499         LOAD_PIC_REG.
17500
17501         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
17502         (FLT_CHECK_FORCE_UFLOW): Likewise.
17503         (DBL_CHECK_FORCE_UFLOW): Likewise.
17504         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
17505         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
17506         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
17507         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17508         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17509         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17510         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17511         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17512         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
17513         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17514         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
17515         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
17516         (flt_min): Replace with use of DEFINE_FLT_MIN.
17517         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
17518         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
17519         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17520         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
17521         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
17522         (flt_min): Replace with use of DEFINE_FLT_MIN.
17523         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
17524         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
17525         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17526         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
17527         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
17528         (flt_min): Replace with use of DEFINE_FLT_MIN.
17529         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
17530         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
17531         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17532         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17533         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
17534         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17535         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17536         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
17537         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17538         (__atan): Use DBL_CHECK_FORCE_UFLOW.
17539         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
17540         (flt_min): Replace with use of DEFINE_FLT_MIN.
17541         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
17542         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
17543         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17544         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
17545         main computation.
17546         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
17547         (flt_min): Replace with use of DEFINE_FLT_MIN.
17548         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
17549         main computation.
17550         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
17551         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17552         (MO): New macro.
17553         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
17554         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
17555         (flt_min): Replace with use of DEFINE_FLT_MIN.
17556         (MO): New macro.
17557         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
17558         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
17559         (__log1pl): Use MO.
17560
17561         [BZ #19003]
17562         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
17563         $(config-cflags-nofma).
17564
17565 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17566
17567         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17568
17569 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
17570
17571         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
17572         (TWO127): Likewise.
17573
17574         * sysdeps/generic/math_private.h (fabs_tg): New macro.
17575         (min_of_type): Likewise.
17576         (math_check_force_underflow): Likewise.
17577         (math_check_force_underflow_nonneg): Likewise.
17578         (math_check_force_underflow_complex): Likewise.
17579         * math/e_exp2l.c (__ieee754_exp2l): Use
17580         math_check_force_underflow_nonneg.
17581         * math/k_casinh.c (__kernel_casinh): Likewise.
17582         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17583         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17584         * math/s_catan.c (__catan): Use
17585         math_check_force_underflow_complex.
17586         * math/s_catanf.c (__catanf): Likewise.
17587         * math/s_catanh.c (__catanh): Likewise.
17588         * math/s_catanhf.c (__catanhf): Likewise.
17589         * math/s_catanhl.c (__catanhl): Likewise.
17590         * math/s_catanl.c (__catanl): Likewise.
17591         * math/s_ccosh.c (__ccosh): Likewise.
17592         * math/s_ccoshf.c (__ccoshf): Likewise.
17593         * math/s_ccoshl.c (__ccoshl): Likewise.
17594         * math/s_cexp.c (__cexp): Likewise.
17595         * math/s_cexpf.c (__cexpf): Likewise.
17596         * math/s_cexpl.c (__cexpl): Likewise.
17597         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
17598         * math/s_clog10.c (__clog10): Likewise.
17599         * math/s_clog10f.c (__clog10f): Likewise.
17600         * math/s_clog10l.c (__clog10l): Likewise.
17601         * math/s_clogf.c (__clogf): Likewise.
17602         * math/s_clogl.c (__clogl): Likewise.
17603         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
17604         * math/s_csinf.c (__csinf): Likewise.
17605         * math/s_csinh.c (__csinh): Likewise.
17606         * math/s_csinhf.c (__csinhf): Likewise.
17607         * math/s_csinhl.c (__csinhl): Likewise.
17608         * math/s_csinl.c (__csinl): Likewise.
17609         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
17610         * math/s_csqrtf.c (__csqrtf): Likewise.
17611         * math/s_csqrtl.c (__csqrtl): Likewise.
17612         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
17613         * math/s_ctanf.c (__ctanf): Likewise.
17614         * math/s_ctanh.c (__ctanh): Likewise.
17615         * math/s_ctanhf.c (__ctanhf): Likewise.
17616         * math/s_ctanhl.c (__ctanhl): Likewise.
17617         * math/s_ctanl.c (__ctanl): Likewise.
17618         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
17619         instead of volatile.
17620         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
17621         math_check_force_underflow.
17622         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
17623         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
17624         volatile when forcing underflow.
17625         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17626         math_check_force_underflow_nonneg.
17627         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
17628         Likewise.
17629         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
17630         math_check_force_underflow.
17631         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17632         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17633         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17634         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
17635         math_check_force_underflow_nonneg.
17636         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
17637         math_check_force_underflow.
17638         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
17639         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
17640         instead of volatile.
17641         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
17642         math_check_force_underflow.
17643         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17644         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17645         math_check_force_underflow_nonneg.
17646         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
17647         math_check_force_underflow.
17648         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17649         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
17650         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
17651         math_check_force_underflow_nonneg.
17652         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17653         Likewise.
17654         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
17655         math_check_force_underflow.
17656         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
17657         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17658         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
17659         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
17660         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17661         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
17662         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
17663         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
17664         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
17665         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
17666         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17667         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
17668         Likewise.
17669         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
17670         math_check_force_underflow_nonneg.
17671         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17672         Likewise.
17673         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
17674         math_check_force_underflow.
17675         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17676         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
17677         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17678         Likewise.
17679         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
17680         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
17681         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
17682         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
17683         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
17684         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
17685         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
17686         instead of volatile.
17687         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
17688         math_check_force_underflow.
17689         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
17690         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
17691         math_check_force_underflow.
17692         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
17693         Likewise.
17694         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17695         Use math_check_force_underflow_nonneg.
17696         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
17697         math_check_force_underflow.
17698         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
17699         Likewise.
17700         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17701         Likewise.
17702         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17703         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
17704         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
17705         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
17706         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
17707         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
17708         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17709         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
17710         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
17711         math_check_force_underflow_nonneg.
17712         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
17713         math_check_force_underflow.
17714         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17715         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
17716         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
17717         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
17718         math_check_force_underflow_nonneg.
17719         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
17720         math_check_force_underflow.
17721         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
17722         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
17723         instead of volatile.
17724         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
17725         math_check_force_underflow.
17726
17727         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
17728         * stdlib/strtod_l.c: Include <math_private.h>.
17729         (overflow_value): Use math_narrow_eval.
17730         (underflow_value): Likewise.
17731         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17732         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17733         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17734         (__ieee754_gamma_r): Likewise.
17735         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
17736         Likewise.
17737         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
17738         Likewise.
17739         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
17740         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
17741         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
17742         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
17743         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17744         (__ieee754_gammaf_r): Likewise.
17745         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17746         Likewise.
17747         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
17748         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
17749         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
17750         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
17751         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
17752         volatile.
17753         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
17754         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
17755         math_narrow_eval.
17756         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17757         Likewise.
17758         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17759         Likewise.
17760         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
17761         Likewise.
17762         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
17763         volatile.
17764         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
17765         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
17766         math_narrow_eval.
17767         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17768         Likewise.
17769         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17770         Likewise.
17771
17772 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
17773
17774         * nptl/Versions: Remove ignored symbols.
17775
17776 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17777
17778         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
17779         * nss/Makefile (tests): Update.
17780
17781 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17782
17783         * nss/bug18287.c: New file.
17784         * nss/Makefile (tests): Add bug18287.
17785
17786 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17787
17788         * mach/Versions (__mach_host_self_): Add symbol.
17789
17790 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17791
17792         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
17793         vm_page_size.
17794
17795 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17796
17797         Really fix sysdeps/i386/fpu/s_scalbn.S build
17798
17799         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
17800         (libc: GLIBC_2_22): Remove unused version set.
17801
17802 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17803
17804         * config.make.in (enable-timezone-tools): New variable.
17805         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
17806         (enable_timezone_tools): Export to generated files.
17807         * configure: Regenerate.
17808         * INSTALL: Regenerate.
17809         * manual/install.texi (--disable-timezone-tools): Document new flag.
17810         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
17811         ifeq ($(enable-timezone-tools),yes) check.
17812
17813 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17814
17815         * timezone/Makefile: Revert previous change.
17816
17817         [BZ #18980]
17818         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
17819         (DEFINE_DBL_MIN): Likewise.
17820         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17821         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17822         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17823         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17824         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
17825         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17826         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17827         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
17828         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
17829         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17830         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17831         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
17832         (flt_min): Replace with use of DEFINE_FLT_MIN.
17833         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17834         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
17835         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17836         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17837         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
17838         (flt_min): Replace with use of DEFINE_FLT_MIN.
17839         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17840         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
17841         (flt_min): Replace with use of DEFINE_FLT_MIN.
17842         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17843         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
17844         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
17845         (__ieee754_hypot): Use DBL_NARROW_EVAL.
17846         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
17847         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
17848         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
17849         (__ieee754_pow): Use DBL_NARROW_EVAL.
17850         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
17851         (__ieee754_powf): Use FLT_NARROW_EVAL.
17852         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
17853         (__ieee754_expf_sse2): Convert double-precision result to single
17854         precision.
17855         * sysdeps/i386/fpu/libm-test-ulps: Update.
17856
17857 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17858
17859         * timezone/Makefile: Ignore unused variable errors due to private.h
17860         (time_t_min) and (time_t_max).
17861         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
17862         Likewise.
17863
17864 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17865
17866         [BZ #18981]
17867         * sysdeps/i386/fpu/i386-math-asm.h: New file.
17868         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
17869         (__ieee754_scalb): Use DBL_NARROW_EVAL.
17870         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
17871         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
17872         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
17873         (__scalbn): Use DBL_NARROW_EVAL.
17874         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
17875         (__scalbnf): Use FLT_NARROW_EVAL.
17876
17877 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17878
17879         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
17880         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
17881         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
17882         * stdio-common/printf_fp.c (___printf_fp):
17883         Use signbit to get the sign. Use isinf macro to allow inlining.
17884         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
17885         * stdio-common/printf_size.c (__printf_size): Likewise.
17886
17887 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17888
17889         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
17890
17891 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17892
17893         [BZ #18980]
17894         * sysdeps/generic/math_private.h: Include <float.h>.
17895         (math_narrow_eval): New macro.
17896         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17897         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
17898         math_narrow_eval on overflowing return value.
17899         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
17900         Likewise.
17901         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17902         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
17903         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
17904         Likewise.
17905         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17906
17907 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17908
17909         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
17910         * math/Makefile: Remove isinf_ns.c.
17911         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
17912         * math/multc3.c (__multc3): Likewise.
17913         * math/s_casin.c (__casin): Likewise.
17914         * math/s_casinf.c (__casinf): Likewise.
17915         * math/s_casinl.c (__casinl): Likewise.
17916         * math/s_cproj.c (__cproj): Likewise.
17917         * math/s_cprojf.c (__cprojf): Likewise.
17918         * math/s_cprojl.c (__cprofl): Likewise.
17919         * math/s_ctan.c (__ctan): Likewise.
17920         * math/s_ctanf.c (__ctanf): Likewise.
17921         * math/s_ctanh.c (__ctanh): Likewise.
17922         * math/s_ctanhf.c (__ctanhf): Likewise.
17923         * math/s_ctanhl.c (__ctanhl): Likewise.
17924         * math/s_ctanl.c (__ctanl): Likewise.
17925         * math/w_fmod.c (__fmod): Likewise.
17926         * math/w_fmodf.c (__fmodf): Likewise.
17927         * math/w_fmodl.c (_fmodl): Likewise.
17928         * math/w_remainder.c (__remainder): Likewise.
17929         * math/w_remainderf.c (__remainderf): Likewise.
17930         * math/w_remainderl.c (__remainderl): Likewise.
17931         * math/w_scalb.c (__scalb): Likewise.
17932         * math/w_scalbf.c (__scalbf): Likewise.
17933         * math/w_scalbl.c (__scalbl): Likewise.
17934         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
17935         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
17936         with isinf.
17937         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
17938         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
17939         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
17940         __isinf_nsf with isinf.
17941         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
17942         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
17943         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
17944         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
17945         with isinf.
17946         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
17947         __isinf_nsl with isinf.
17948         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
17949         with isinf.
17950         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
17951         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
17952         __isinf_nsl with isinf.
17953         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
17954         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
17955         with isinf.
17956
17957 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17958
17959         * resolv/base64.c (rcsid): Remove unused static.
17960         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
17961         static.  (tqpi1): Likewise.
17962         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
17963         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
17964         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
17965         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
17966         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
17967         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
17968         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
17969         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
17970         Likewise.
17971
17972 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
17973
17974         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
17975         <nptl/pthreadP.h>.
17976         (_longjmp_unwind): Use __libc_ptf_call.
17977         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
17978
17979 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
17980
17981         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
17982         * sysdeps/arm/__longjmp.S: Likewise.
17983
17984 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17985
17986         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
17987         Use __builtin_signbit.
17988         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
17989         Use __builtin_signbitf.
17990         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
17991         Use __builtin_signbitl.
17992         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
17993         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
17994
17995 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17996
17997         [BZ #15367]
17998         [BZ #17441]
17999
18000         * math/Makefile: Build test-snan.c with -fsignaling-nans.
18001         * math/math.h (fpclassify): Use __builtin_fpclassify when
18002         available.  (signbit): Use __builtin_signbit(f/l).
18003         (isfinite): Use__builtin_isfinite.  (isnormal): Use
18004         __builtin_isnormal.  (isnan): Use __builtin_isnan.
18005         (isinf): Use __builtin_isinf_sign.
18006
18007 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18008
18009         * benchtests/Makefile: Add bench-math-inlines, link with libm.
18010         * benchtests/bench-math-inlines.c: New benchmark.
18011         * benchtests/bench-util.h: New file.
18012         * benchtests/bench-util.c: New file.
18013         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
18014
18015 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
18016
18017         * elf/tst-dlmopen1.c: Define TEST_SO.
18018         (do_test): Use TEST_SO.
18019
18020         * elf/dl-load.c: Include libc-internal.h.
18021         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
18022
18023 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18024
18025         [BZ #17887]
18026         * time/strptime_l.c (__strptime_internal): Make %z accept
18027         [+-]HH:MM time zones.
18028
18029 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18030
18031         [BZ #17886]
18032         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
18033         valid time zone.
18034
18035 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
18036
18037         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
18038         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
18039         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18040         (__ASSUME_FDATASYNC): Delete.
18041
18042 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18043
18044         * conform/linknamespace.pl: Require weak undefined symbols to be
18045         in the standard namespace.
18046         (%strong_syms): Rename to %seen_syms.
18047         (%strong_seen): Rename to %seen_where.
18048
18049 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
18050
18051         [BZ #18970]
18052         * misc/error.c (error): Replace pthread_setcancelstate with
18053         __pthread_setcancelstate.
18054         (error_at_line): Likewise.
18055         * posix/wordexp.c (parse_comm): Likewise.
18056         * stdlib/fmtmsg.c (fmtmsg): Likewise.
18057         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
18058         (__pthread_setcancelstate): This.
18059         (pthread_setcancelstate): Add an alias.
18060         * nptl/nptl-init.c (pthread_functions): Replace
18061         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
18062         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
18063         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
18064         hidden_proto.
18065         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
18066         it with hidden_def.
18067         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
18068         (pthread_setcancelstate): Renamed to ...
18069         (__pthread_setcancelstate): This.
18070         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
18071         __libc_ptf_call with __pthread_setcancelstate.
18072
18073 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18074             Andreas Schwab  <schwab@suse.de>
18075
18076         [BZ #17118]
18077         * math/s_ctan.c (__ctan): Determine sign of zero real part of
18078         result when imaginary part of argument is infinite using sine and
18079         cosine.
18080         * math/s_ctanf.c (__ctanf): Likewise.
18081         * math/s_ctanl.c (__ctanl): Likewise.
18082         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
18083         of result when real part of argument is infinite using sine and
18084         cosine.
18085         * math/s_ctanhf.c (__ctanhf): Likewise.
18086         * math/s_ctanhl.c (__ctanhl): Likewise.
18087         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
18088         (ctanh_test_data): Add more tests of ctanh.
18089
18090 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18091
18092         [BZ #15384]
18093         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
18094         bit-mask as in subtraction.
18095         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
18096         Likewise.
18097         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
18098         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
18099         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
18100
18101         [BZ #18951]
18102         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
18103         underflow exception for small results.
18104         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18105         Likewise.
18106         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18107         Likewise.
18108         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18109         Likewise.
18110         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
18111         Likewise.
18112         * math/auto-libm-test-in: Add more tests of tgamma.
18113         * math/auto-libm-test-out: Regenerated.
18114
18115 2015-09-17  Andreas Schwab  <schwab@suse.de>
18116
18117         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
18118
18119 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18120
18121         [BZ #18977]
18122         * math/bits/mathcalls.h
18123         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
18124         not declare.
18125         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
18126         Likewise.
18127         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
18128         Likewise.
18129         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
18130         Likewise.
18131         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
18132         Likewise.
18133         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
18134         Likewise.
18135         * conform/data/math.h-data
18136         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
18137         function.
18138         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
18139         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
18140         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
18141         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
18142         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
18143         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
18144         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
18145         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
18146         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
18147         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
18148         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
18149
18150         [BZ #6803]
18151         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
18152         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
18153         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
18154         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
18155         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
18156         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
18157         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
18158         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
18159         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18160         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
18161         Likewise.
18162         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18163         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
18164         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
18165         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
18166         long_double_symbol calls.
18167         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
18168         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
18169         strong alias of __ldexpl.
18170         (scalbnl): Define using long_double_symbol.
18171         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
18172         Remove alias.
18173         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
18174         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
18175         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
18176         (scalbln_test_data): Add more errno expectations.
18177
18178 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
18179
18180         Cache the host port like we cache the task port.  This way we do not
18181         need to call the kernel just to get the port.  Furthermore, we no
18182         longer increase the reference count on every invocation of
18183         `mach_host_self'.
18184
18185         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
18186         Protect declarations against the macro expansion.
18187         * mach/mach_init.c (__mach_host_self_): New variable.
18188         (mach_init): Initialize `__mach_host_self_'.
18189         * mach/mach_init.h (__mach_host_self_): New declaration.
18190         (__mach_host_self, mach_host_self): New macros.
18191         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
18192         Release reference.
18193
18194 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18195
18196         [BZ #4404]
18197         * po/de.po: Update from Translation Project.
18198
18199         [BZ #16415]
18200         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
18201         (__expm1l): Remove code to handle positive infinity and overflow.
18202         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
18203         variable.
18204         (__expm1l): Remove code to handle positive infinity and overflow.
18205
18206 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18207             Paul Pluzhnikov  <ppluzhnikov@google.com>
18208
18209         [BZ #18872]
18210         * stdio-common/Makefile (tst-printf-bz18872): New test.
18211         (tst-printf-bz18872-mem.out): Likewise.
18212         * stdio-common/tst-printf-bz18872.sh: Generate new test.
18213         * stdio-common/vfprintf.c: Fix memory leaks.
18214
18215 2015-09-16  Andreas Schwab  <schwab@suse.de>
18216
18217         [BZ #17244]
18218         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
18219         Remove extra va_start/va_end calls.
18220
18221         [BZ #17243]
18222         * posix/execl.c (execl): Add missing va_end.
18223         * posix/execle.c (execle): Likewise.
18224         * posix/execlp.c (execlp): Likewise.
18225
18226 2015-09-15  Roland McGrath  <roland@hack.frob.com>
18227
18228         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
18229         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
18230
18231 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
18232
18233         [BZ #18967]
18234         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
18235         undefine around includes of <bits/mathcalls.h>.
18236         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
18237         not declare function.
18238         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
18239         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
18240         (scalb): Likewise.
18241         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
18242         not define macro.
18243         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
18244         variable.
18245         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
18246         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
18247         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
18248
18249         [BZ #18857]
18250         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
18251         return non-finite argument without doing ordered comparisons on
18252         it.
18253
18254         [BZ #16296]
18255         * math/fenv.h (fegetround): Use __attribute_pure__.
18256         * include/fenv.h (__fegetround): Likewise.
18257
18258         [BZ #18595]
18259         * math/s_ctan.c (__ctan): Force underflow exception for results
18260         whose real or imaginary part has small absolute value.
18261         * math/s_ctanf.c (__ctanf): Likewise.
18262         * math/s_ctanh.c (__ctanh): Likewise.
18263         * math/s_ctanhf.c (__ctanhf): Likewise.
18264         * math/s_ctanhl.c (__ctanhl): Likewise.
18265         * math/s_ctanl.c (__ctanl): Likewise.
18266         * math/auto-libm-test-in: Do not allow missing underflow for ctan
18267         and ctanh.  Add more tests of ctan and ctanh.
18268
18269         [BZ #15918]
18270         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
18271         handling of cases where one argument is an infinity.
18272
18273         [BZ #18875]
18274         [BZ #18966]
18275         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
18276         (MO): New macro.
18277         (__ieee754_exp10): For small results, force underflow exception
18278         and remove excess range and precision from return value.
18279         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
18280         (MO): New macro.
18281         (__ieee754_exp10f): For small results, force underflow exception
18282         and remove excess range and precision from return value.
18283         * math/auto-libm-test-in: Add more tests of exp10.
18284         * math/auto-libm-test-out: Regenerated.
18285
18286 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
18287
18288         [BZ #18875]
18289         [BZ #18961]
18290         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
18291         (MO): New macro.
18292         (__ieee754_exp): For small results, force underflow exception and
18293         remove excess range and precision from return value.
18294         (__exp_finite): Likewise.
18295         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
18296         (MO): New macro.
18297         (__ieee754_expf): For small results, force underflow exception and
18298         remove excess range and precision from return value.
18299         (__expf_finite): Likewise.
18300         * math/auto-libm-test-in: Add more tests of exp.
18301         * math/auto-libm-test-out: Regenerated.
18302
18303         [BZ #16521]
18304         [BZ #18875]
18305         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
18306         small results.
18307         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
18308         (MO): New macro.
18309         (__ieee754_exp2): For small results, force underflow exception and
18310         remove excess range and precision from return value.
18311         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
18312         (MO): New macro.
18313         (__ieee754_exp2f): For small results, force underflow exception
18314         and remove excess range and precision from return value.
18315         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
18316         (MO): New macro.
18317         (__ieee754_exp2l): Force underflow exception for small results.
18318         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
18319         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
18320         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
18321         (MO): New macro.
18322         (__ieee754_exp2l): Force underflow exception for small results.
18323         * math/auto-libm-test-in: Add more tests or exp2.
18324         * math/auto-libm-test-out: Regenerated.
18325
18326 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
18327
18328         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
18329
18330         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
18331         /dev/null.
18332
18333 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18334
18335         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18336         io fs process)): Drop spurious backslash.
18337
18338 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18339
18340         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
18341         Use sysinfo system call instead of parsing /proc/meminfo.
18342         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
18343         Likewise.
18344
18345 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
18346
18347         [BZ #16985]
18348         * programs/localedef.c (main): Display argv[remaining] when
18349         output_path is NULL.
18350
18351 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18352
18353         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18354         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
18355         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
18356         tanh.
18357         * math/auto-libm-test-out: Regenerated.
18358         * sysdeps/i386/fpu/libm-test-ulps: Update.
18359         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18360         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18362
18363 2015-09-11  Roland McGrath  <roland@hack.frob.com>
18364
18365         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
18366         Use 'override' keyword to freeze the value here, preventing
18367         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
18368
18369 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18370
18371         [BZ #14912]
18372         * sysdeps/aarch64/bits/atomic.h: Move to ...
18373         * sysdeps/aarch64/atomic-machine.h: ...here.
18374         (_AARCH64_BITS_ATOMIC_H): Rename macro to
18375         _AARCH64_ATOMIC_MACHINE_H.
18376         * sysdeps/alpha/bits/atomic.h: Move to ...
18377         * sysdeps/alpha/atomic-machine.h: ...here.
18378         * sysdeps/arm/bits/atomic.h: Move to ...
18379         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
18380         * bits/atomic.h: Move to ...
18381         * sysdeps/generic/atomic-machine.h: ...here.
18382         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18383         * sysdeps/i386/bits/atomic.h: Move to ...
18384         * sysdeps/i386/atomic-machine.h: ...here.
18385         * sysdeps/ia64/bits/atomic.h: Move to ...
18386         * sysdeps/ia64/atomic-machine.h: ...here.
18387         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
18388         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
18389         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18390         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
18391         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
18392         * sysdeps/microblaze/bits/atomic.h: Move to ...
18393         * sysdeps/microblaze/atomic-machine.h: ...here.
18394         * sysdeps/mips/bits/atomic.h: Move to ...
18395         * sysdeps/mips/atomic-machine.h: ...here.
18396         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
18397         * sysdeps/powerpc/bits/atomic.h: Move to ...
18398         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
18399         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
18400         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
18401         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
18402         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
18403         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
18404         <atomic-machine.h> instead of <bits/atomic.h>.
18405         * sysdeps/s390/bits/atomic.h: Move to ...
18406         * sysdeps/s390/atomic-machine.h: ...here.
18407         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
18408         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
18409         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18410         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
18411         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
18412         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
18413         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
18414         * sysdeps/tile/bits/atomic.h: Move to ...
18415         * sysdeps/tile/atomic-machine.h: ...here.
18416         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
18417         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
18418         <sysdeps/tile/atomic-machine.h> instead of
18419         <sysdeps/tile/bits/atomic.h>.
18420         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18421         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
18422         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
18423         <sysdeps/tile/atomic-machine.h> instead of
18424         <sysdeps/tile/bits/atomic.h>.
18425         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18426         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
18427         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
18428         <sysdeps/arm/atomic-machine.h> instead of
18429         <sysdeps/arm/bits/atomic.h>.
18430         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
18431         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
18432         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18433         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
18434         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
18435         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18436         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
18437         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
18438         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
18439         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
18440         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
18441         * sysdeps/x86_64/bits/atomic.h: Move to ...
18442         * sysdeps/x86_64/atomic-machine.h: ...here.
18443         * include/atomic.h: Include <atomic-machine.h> instead of
18444         <bits/atomic.h>.
18445
18446         * sysdeps/mips/mips32/libm-test-ulps: Update.
18447         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18448
18449         [BZ #18952]
18450         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
18451         not convert non-integer negative arguments to int to determine the
18452         value of signgam.
18453         * math/auto-libm-test-in: Add more tests of lgamma.
18454         * math/auto-libm-test-out: Regenerated.
18455
18456         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
18457         cosh, csqrt, erfc, expm1 and lgamma.
18458         * math/auto-libm-test-out: Regenerated.
18459         * sysdeps/i386/fpu/libm-test-ulps: Update.
18460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18461
18462 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
18463
18464         [BZ #2542]
18465         [BZ #2543]
18466         [BZ #2558]
18467         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
18468         __lgamma_neg for arguments from -28.0 to -2.0.
18469         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
18470         __lgamma_negf for arguments from -15.0 to -2.0.
18471         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
18472         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
18473         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
18474         Call __lgamma_negl for arguments from -33.0 to -2.0.
18475         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
18476         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
18477         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18478         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
18479         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
18480         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
18481         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
18482         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
18483         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
18484         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
18485         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
18486         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
18487         (__lgamma_neg): Likewise.
18488         (__lgamma_negl): Likewise.
18489         (__lgamma_product): Likewise.
18490         (__lgamma_productl): Likewise.
18491         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
18492         * math/auto-libm-test-in: Add more tests of lgamma.
18493         * math/auto-libm-test-out: Regenerated.
18494         * sysdeps/i386/fpu/libm-test-ulps: Update.
18495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18496
18497 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
18498
18499         [BZ #18675]
18500         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
18501
18502 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18503
18504         [BZ #14912]
18505         * bits/libc-lock.h: Move to ...
18506         * sysdeps/generic/libc-lock.h: ...here.
18507         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18508         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
18509         * sysdeps/mach/hurd/libc-lock.h: ...here.
18510         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18511         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
18512         * sysdeps/mach/bits/libc-lock.h: Move to ...
18513         * sysdeps/mach/libc-lock.h: ...here.
18514         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18515         * sysdeps/nptl/bits/libc-lock.h: Move to ...
18516         * sysdeps/nptl/libc-lock.h: ...here.
18517         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18518         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
18519         * sysdeps/nptl/libc-lockP.h: ...here.
18520         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
18521         * crypt/crypt_util.c: Include <libc-lock.h> instead of
18522         <bits/libc-lock.h>.
18523         * dirent/scandir-tail.c: Likewise.
18524         * dlfcn/dlerror.c: Likewise.
18525         * elf/dl-close.c: Likewise.
18526         * elf/dl-iteratephdr.c: Likewise.
18527         * elf/dl-lookup.c: Likewise.
18528         * elf/dl-open.c: Likewise.
18529         * elf/dl-support.c: Likewise.
18530         * elf/dl-writev.h: Likewise.
18531         * elf/rtld.c: Likewise.
18532         * grp/fgetgrent.c: Likewise.
18533         * gshadow/fgetsgent.c: Likewise.
18534         * gshadow/sgetsgent.c: Likewise.
18535         * iconv/gconv_conf.c: Likewise.
18536         * iconv/gconv_db.c: Likewise.
18537         * iconv/gconv_dl.c: Likewise.
18538         * iconv/gconv_int.h: Likewise.
18539         * iconv/gconv_trans.c: Likewise.
18540         * include/link.h: Likewise.
18541         * inet/getnameinfo.c: Likewise.
18542         * inet/getnetgrent.c: Likewise.
18543         * inet/getnetgrent_r.c: Likewise.
18544         * intl/bindtextdom.c: Likewise.
18545         * intl/dcigettext.c: Likewise.
18546         * intl/finddomain.c: Likewise.
18547         * intl/gettextP.h: Likewise.
18548         * intl/loadmsgcat.c: Likewise.
18549         * intl/localealias.c: Likewise.
18550         * intl/textdomain.c: Likewise.
18551         * libidn/idn-stub.c: Likewise.
18552         * libio/libioP.h: Likewise.
18553         * locale/duplocale.c: Likewise.
18554         * locale/freelocale.c: Likewise.
18555         * locale/newlocale.c: Likewise.
18556         * locale/setlocale.c: Likewise.
18557         * login/getutent_r.c: Likewise.
18558         * login/getutid_r.c: Likewise.
18559         * login/getutline_r.c: Likewise.
18560         * login/utmp-private.h: Likewise.
18561         * login/utmpname.c: Likewise.
18562         * malloc/mtrace.c: Likewise.
18563         * misc/efgcvt.c: Likewise.
18564         * misc/error.c: Likewise.
18565         * misc/fstab.c: Likewise.
18566         * misc/getpass.c: Likewise.
18567         * misc/mntent.c: Likewise.
18568         * misc/syslog.c: Likewise.
18569         * nis/nis_call.c: Likewise.
18570         * nis/nis_callback.c: Likewise.
18571         * nis/nss-default.c: Likewise.
18572         * nis/nss_compat/compat-grp.c: Likewise.
18573         * nis/nss_compat/compat-initgroups.c: Likewise.
18574         * nis/nss_compat/compat-pwd.c: Likewise.
18575         * nis/nss_compat/compat-spwd.c: Likewise.
18576         * nis/nss_nis/nis-alias.c: Likewise.
18577         * nis/nss_nis/nis-ethers.c: Likewise.
18578         * nis/nss_nis/nis-grp.c: Likewise.
18579         * nis/nss_nis/nis-hosts.c: Likewise.
18580         * nis/nss_nis/nis-network.c: Likewise.
18581         * nis/nss_nis/nis-proto.c: Likewise.
18582         * nis/nss_nis/nis-pwd.c: Likewise.
18583         * nis/nss_nis/nis-rpc.c: Likewise.
18584         * nis/nss_nis/nis-service.c: Likewise.
18585         * nis/nss_nis/nis-spwd.c: Likewise.
18586         * nis/nss_nisplus/nisplus-alias.c: Likewise.
18587         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
18588         * nis/nss_nisplus/nisplus-grp.c: Likewise.
18589         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
18590         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
18591         * nis/nss_nisplus/nisplus-network.c: Likewise.
18592         * nis/nss_nisplus/nisplus-proto.c: Likewise.
18593         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
18594         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
18595         * nis/nss_nisplus/nisplus-service.c: Likewise.
18596         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
18597         * nis/ypclnt.c: Likewise.
18598         * nptl/libc_pthread_init.c: Likewise.
18599         * nss/getXXbyYY.c: Likewise.
18600         * nss/getXXent.c: Likewise.
18601         * nss/getXXent_r.c: Likewise.
18602         * nss/nss_db/db-XXX.c: Likewise.
18603         * nss/nss_db/db-netgrp.c: Likewise.
18604         * nss/nss_db/nss_db.h: Likewise.
18605         * nss/nss_files/files-XXX.c: Likewise.
18606         * nss/nss_files/files-alias.c: Likewise.
18607         * nss/nsswitch.c: Likewise.
18608         * posix/regex_internal.h: Likewise.
18609         * posix/wordexp.c: Likewise.
18610         * pwd/fgetpwent.c: Likewise.
18611         * resolv/res_hconf.c: Likewise.
18612         * resolv/res_libc.c: Likewise.
18613         * shadow/fgetspent.c: Likewise.
18614         * shadow/lckpwdf.c: Likewise.
18615         * shadow/sgetspent.c: Likewise.
18616         * socket/opensock.c: Likewise.
18617         * stdio-common/reg-modifier.c: Likewise.
18618         * stdio-common/reg-printf.c: Likewise.
18619         * stdio-common/reg-type.c: Likewise.
18620         * stdio-common/vfprintf.c: Likewise.
18621         * stdio-common/vfscanf.c: Likewise.
18622         * stdlib/abort.c: Likewise.
18623         * stdlib/cxa_atexit.c: Likewise.
18624         * stdlib/fmtmsg.c: Likewise.
18625         * stdlib/random.c: Likewise.
18626         * stdlib/setenv.c: Likewise.
18627         * string/strsignal.c: Likewise.
18628         * sunrpc/auth_none.c: Likewise.
18629         * sunrpc/bindrsvprt.c: Likewise.
18630         * sunrpc/create_xid.c: Likewise.
18631         * sunrpc/key_call.c: Likewise.
18632         * sunrpc/rpc_thread.c: Likewise.
18633         * sysdeps/arm/backtrace.c: Likewise.
18634         * sysdeps/generic/ldsodefs.h: Likewise.
18635         * sysdeps/generic/stdio-lock.h: Likewise.
18636         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
18637         * sysdeps/i386/backtrace.c: Likewise.
18638         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18639         * sysdeps/m68k/backtrace.c: Likewise.
18640         * sysdeps/mach/hurd/cthreads.c: Likewise.
18641         * sysdeps/mach/hurd/dirstream.h: Likewise.
18642         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18643         * sysdeps/nptl/malloc-machine.h: Likewise.
18644         * sysdeps/nptl/stdio-lock.h: Likewise.
18645         * sysdeps/posix/dirstream.h: Likewise.
18646         * sysdeps/posix/getaddrinfo.c: Likewise.
18647         * sysdeps/posix/system.c: Likewise.
18648         * sysdeps/pthread/aio_suspend.c: Likewise.
18649         * sysdeps/s390/s390-32/backtrace.c: Likewise.
18650         * sysdeps/s390/s390-64/backtrace.c: Likewise.
18651         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18652         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
18653         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
18654         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
18655         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
18656         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
18657         * sysdeps/unix/sysv/linux/system.c: Likewise.
18658         * sysdeps/x86_64/backtrace.c: Likewise.
18659         * time/alt_digit.c: Likewise.
18660         * time/era.c: Likewise.
18661         * time/tzset.c: Likewise.
18662         * wcsmbs/wcsmbsload.c: Likewise.
18663         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
18664         instead of <bits/libc-lock.h> in comment.
18665
18666 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
18667
18668         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
18669         Only use .set mips2 if the current ISA is below mips2.
18670         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
18671         Likewise.
18672         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
18673         mips32r2 if the current ISA is below mips32r2.
18674         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
18675         (TLS_IE): Updated to use the TLD_RDHWR macro.
18676         (TLS_LE): Likewise.
18677         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
18678         __ASSEMBLER__ condition.
18679
18680 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18681
18682         Fix parallel build of before-compile targets.
18683
18684         * sysdeps/mach/Makefile ($(patsubst
18685         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
18686         mach-before-compile target.
18687         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18688         io fs process)): Move rule to dedicated hurd-before-compile target.
18689
18690 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18691
18692         Fix rules generating headers in hurd/ and mach/ when initial make call
18693         has subdir= explicitly set.
18694
18695         * sysdeps/mach/Makefile ($(patsubst
18696         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
18697         calling $(MAKE).
18698         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18699         io fs process)): Force subdir to hurd when calling $(MAKE).
18700         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
18701         subdir to mach when calling $(MAKE).
18702
18703 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
18704
18705         Check sysheaders when looking for Mach and Hurd headers
18706
18707         * sysdeps/mach/configure.ac: Add sysheaders check.
18708         * sysdeps/mach/configure: Regenerate.
18709         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
18710         * sysdeps/mach/hurd/configure: Regenerate.
18711
18712 2015-09-04  Roland McGrath  <roland@hack.frob.com>
18713
18714         [BZ #18921]
18715         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
18716         Fix inverted sense of test of 'o_directory_works' value.
18717         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
18718         Bernhard Voelker <mail@bernhard-voelker.de>.
18719
18720 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18721
18722         [BZ #14912]
18723         * bits/linkmap.h: Move to ...
18724         * sysdeps/generic/linkmap.h: ...here.
18725         * sysdeps/aarch64/bits/linkmap.h: Move to ...
18726         * sysdeps/aarch64/linkmap.h: ...here.
18727         * sysdeps/arm/bits/linkmap.h: Move to ...
18728         * sysdeps/arm/linkmap.h: ...here.
18729         * sysdeps/hppa/bits/linkmap.h: Move to ...
18730         * sysdeps/hppa/linkmap.h: ...here.
18731         * sysdeps/ia64/bits/linkmap.h: Move to ...
18732         * sysdeps/ia64/linkmap.h: ...here.
18733         * sysdeps/mips/bits/linkmap.h: Move to ...
18734         * sysdeps/mips/linkmap.h: ...here.
18735         * sysdeps/s390/bits/linkmap.h: Move to ...
18736         * sysdeps/s390/linkmap.h: ...here.
18737         * sysdeps/sh/bits/linkmap.h: Move to ...
18738         * sysdeps/sh/linkmap.h: ...here.
18739         * sysdeps/x86/bits/linkmap.h: Move to ...
18740         * sysdeps/x86/linkmap.h: ...here.
18741         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
18742
18743 2015-09-04  Andreas Schwab  <schwab@suse.de>
18744
18745         [BZ #18635]
18746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
18747         (__makecontext): Terminate FDE before return label.
18748         (__novec_makecontext): Likewise.
18749
18750 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18751
18752         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
18753         first member of struct sv in syscall macro.
18754
18755 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18756
18757         [BZ #14912]
18758         * bits/stdio-lock.h: Move to ...
18759         * sysdeps/generic/stdio-lock.h: ...here.
18760         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18761         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
18762         * sysdeps/nptl/stdio-lock.h: ...here.
18763         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18764         * include/libio.h: Include <stdio-lock.h> instead of
18765         <bits/stdio-lock.h>.
18766         * sysdeps/nptl/fork.c: Likewise.
18767         * sysdeps/pthread/flockfile.c: Likewise.
18768         * sysdeps/pthread/ftrylockfile.c: Likewise.
18769         * sysdeps/pthread/funlockfile.c: Likewise.
18770
18771         [BZ #14912]
18772         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
18773         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
18774         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
18775         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
18776         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
18777         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
18778         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
18779
18780 2015-09-03  Roland McGrath  <roland@hack.frob.com>
18781
18782         * elf/Makefile (test-xfail-tst-protected1a): New variable.
18783         (test-xfail-tst-protected1b): New variable.
18784
18785 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
18786
18787         [BZ #14912]
18788         * bits/libc-tsd.h: Move to ...
18789         * sysdeps/generic/libc-tsd.h: ...here.
18790         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
18791         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
18792         * sysdeps/mach/hurd/libc-tsd.h: ...here.
18793         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
18794         * include/ctype.h: Include <libc-tsd.h> instead of
18795         <bits/libc-tsd.h>.
18796         * include/rpc/rpc.h: Likewise.
18797         * locale/localeinfo.h: Likewise.
18798         * sunrpc/rpc_thread.c: Likewise.
18799         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18800         * sysdeps/nptl/malloc-machine.h: Likewise.
18801
18802         * Makefile (headers): Remove bits/libc-lock.h.
18803         * libio/Makefile (headers): Remove bits/stdio-lock.h.
18804
18805         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
18806         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
18807         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
18808         <bits/stdio-lock.h>.
18809         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
18810         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
18811
18812 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18813
18814         [BZ #18757]
18815         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
18816         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
18817         BZ #18757.
18818
18819 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18820
18821         * malloc/mtrace.pl: Filter out NULL entries.
18822
18823 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
18824
18825         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
18826         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
18827         macro.
18828
18829         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
18830         (TCP_CC_INFO): Likewise.
18831         (TCP_SAVE_SYN): Likewise.
18832         (TCP_SAVED_SYN): Likewise.
18833
18834 2015-08-31  Brett Neumeier <brett@neumeier.us>
18835
18836         [BZ #18870]
18837         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
18838
18839 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18840
18841         [BZ #18873]
18842         Fix broken overflow check in posix_fallocate
18843         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
18844         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
18845         Fix parenthesization typo.
18846
18847 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
18848
18849         [BZ #18887]
18850         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
18851         tst-mntent-blank-passno.
18852         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
18853         * misc/tst-mntent-blank-corrupt.c: New test.
18854         * misc/tst-mntent-blank-passno.c: New test ripped from ...
18855         * misc/tst-mntent.c (do_test): ... here.
18856
18857 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
18858
18859         [BZ #4404]
18860         * po/de.po: Fix SIGALRM typo.
18861
18862 2015-08-28  James Perkins  <james@loowit.net>
18863
18864         * time/tst-strptime2.c (tests): Replace short list of test
18865         strings for strptime %z specifier with code which exhaustively
18866         tests every combination of sign and 0 to 5 digits. Tests for
18867         rejection of invalid strings.
18868
18869 2015-08-28  James Perkins  <james@loowit.net>
18870
18871         [BZ #16141]
18872         * time/strptime_l.c (__strptime_internal): Fix %z minutes
18873         calculation, removing incorrect decimal time rounding, so that
18874         all minute values result in a valid seconds value.
18875         * time/strptime_l.c (__strptime_internal): Extend %z time zone
18876         offset range limits to UTC-99:59 through UTC+99:59 to parse
18877         current and historical use cases.
18878         * time/tst-strptime2.c (tests): Modify and add tests for the
18879         strptime %z input field descriptor, specifically conversion of
18880         minutes to seconds and validating an offset range of -9959 to
18881         +9959.
18882
18883 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18884             Dmitry V. Levin  <ldv@altlinux.org>
18885
18886         [BZ #18877]
18887         * posix/Makefile (tests): Add tst-mmap-offset.
18888         * posix/tst-mmap.c: New file.
18889         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
18890         offset calculation for negative values.
18891
18892 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18893
18894         * sysdeps/i386/init-arch.h: New file.
18895         * sysdeps/i386/i586/init-arch.h: Likewise.
18896         * sysdeps/i386/i686/init-arch.h: Likewise.
18897         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
18898         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
18899         * sysdeps/x86/cpu-features.h (bit_I586): New.
18900         (bit_I686): Likewise.
18901         (bit_CX8): Likewise.
18902         (bit_CMOV): Likewise.
18903         (index_CX8): Likewise.
18904         (index_CMOV): Likewise.
18905         (index_I586): Likewise.
18906         (index_I686): Likewise.
18907         (reg_CX8): Likewise.
18908         (reg_CMOV): Likewise.
18909         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
18910         available at compile-time.
18911         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
18912         available at compile-time.
18913         * sysdeps/x86/init-arch.h (USE_I586): New macro.
18914         (USE_I686): Likewise.
18915
18916 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18917
18918         * sysdeps/i386/bcopy.S: New file.
18919         * sysdeps/i386/bzero.S: Likewise.
18920         * sysdeps/i386/memcpy.S: Likewise.
18921         * sysdeps/i386/memmove.S: Likewise.
18922         * sysdeps/i386/mempcpy.S: Likewise.
18923         * sysdeps/i386/memset.S: Likewise.
18924         * sysdeps/i386/bzero.c: Removed.
18925         * sysdeps/i386/memset.c: Likewise.
18926         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
18927         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
18928         * sysdeps/i386/i586/memset_chk.S: Likewise.
18929         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
18930         * sysdeps/i386/memcpy_chk.S: Here.
18931         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
18932         * sysdeps/i386/memmove_chk.S: Here.
18933         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
18934         * sysdeps/i386/mempcpy_chk.S: Likewise.
18935         * sysdeps/i386/i686/memset_chk.S: Moved to ...
18936         * sysdeps/i386/memset_chk.S: Likewise.
18937
18938 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
18939
18940         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
18941         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
18942         file, move DIAG_POP_NEEDS_COMMENT to end of file.
18943         * soft-fp/fmadf4.c: Ditto.
18944         * soft-fp/fmatf4.c: Ditto.
18945
18946 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18947
18948         * sysdeps/i386/i586/Implies: Removed.
18949         * sysdeps/i386/i686/Implies: Likewise.
18950
18951 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18952
18953         * sysdeps/i386/i486/strlen.S: Moved to ...
18954         * sysdeps/i386/strlen.S: Here.
18955
18956 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18957
18958         * sysdeps/i386/i486/strcat.S: Moved to ...
18959         * sysdeps/i386/strcat.S: Here.
18960
18961 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18962
18963         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
18964         * sysdeps/i386/pthread_spin_trylock.S: Here.
18965         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
18966         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
18967
18968 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18969
18970         * sysdeps/i386/i486/string-inlines.c: Moved to ...
18971         * sysdeps/i386/string-inlines.c: Here.
18972
18973 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18974
18975         * sysdeps/i386/i486/htonl.S: Moved ...
18976         * sysdeps/i386/htonl.S: here.
18977
18978 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18979
18980         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
18981         * sysdeps/i386/bits/atomic.h: Here.
18982
18983 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18984
18985         * sysdeps/i386/i486/Versions: Removed.
18986
18987 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
18988
18989         [BZ #2898]
18990         * misc/mktemp.c: Add mkdtemp to the link_warning message.
18991         Based on patch by Aurelien Jarno.
18992
18993 2015-08-26  Stan Shebs  <stanshebs@google.com>
18994
18995         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
18996         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18997
18998 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18999
19000         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
19001         * sysdeps/powerpc/dl-procinfo.c:
19002         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
19003         feature so it shows when LD_SHOW_AUXV=1.
19004
19005 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19006
19007         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
19008         (__arch_compare_and_exchange_val_32_acq): Remove and use common
19009         definition.  ISA 2.07B no longer requires full sync.
19010
19011 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
19012
19013         [BZ #18863]
19014         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
19015         (si_call_addr): Define.
19016         (si_syscall): Define.
19017         (si_arch): Define.
19018
19019 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19020
19021         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
19022         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
19023         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
19024         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19025         (__memset_zero_constant_len_parameter): New.
19026         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
19027         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19028         (__memset_zero_constant_len_parameter): Don't define if
19029         __memset_chk or USE_AS_BZERO are defined.
19030
19031         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
19032         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
19033         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
19034
19035         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
19036         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
19037         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
19038         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
19039         comments.
19040         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
19041         -mno-mmx for $(all-rtld-routines).
19042         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
19043         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
19044         i386.
19045
19046 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
19047
19048         * sysdeps/generic/unwind.h
19049         (_Unwind_Word): Use __mode__(__unwind_word__)
19050         instead of __mode__(__word__).
19051         (_Unwind_Sword): Likewise.
19052
19053         * sysdeps/s390/s390-64/utf8-utf16-z9.c
19054         (MAX_NEEDED_INPUT): New define.
19055         (MAX_NEEDED_OUTPUT): New define.
19056
19057         * NEWS: New item for IBM z13 string optimizations.
19058
19059         * sysdeps/s390/multiarch/memrchr-c.c: New File.
19060         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
19061         * sysdeps/s390/multiarch/memrchr.c: Likewise.
19062         * sysdeps/s390/multiarch/Makefile
19063         (sysdep_routines): Add memrchr functions.
19064         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19065         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
19066
19067         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
19068         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
19069         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
19070         * sysdeps/s390/multiarch/Makefile
19071         (sysdep_routines): Add wmemcmp functions.
19072         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19073         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
19074         * benchtests/bench-wmemcmp.c: New File.
19075         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
19076
19077         * sysdeps/s390/multiarch/wmemset-c.c: New File.
19078         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
19079         * sysdeps/s390/multiarch/wmemset.c: Likewise.
19080         * sysdeps/s390/multiarch/Makefile
19081         (sysdep_routines): Add wmemset functions.
19082         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19083         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
19084         * wcsmbs/wmemset.c: Use WMEMSET if defined.
19085         * string/test-memset.c: Add wmemset support.
19086         * wcsmbs/test-wmemset.c: New File.
19087         * wcsmbs/Makefile (strop-tests): Add wmemset.
19088         * benchtests/bench-memset.c: Add wmemset support.
19089         * benchtests/bench-wmemset.c: New File.
19090         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
19091
19092         * sysdeps/s390/multiarch/memccpy-c.c: New File.
19093         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
19094         * sysdeps/s390/multiarch/memccpy.c: Likewise.
19095         * sysdeps/s390/multiarch/Makefile
19096         (sysdep_routines): Add memccpy functions.
19097         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19098         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
19099         * string/memccpy.c: Use MEMCCPY if defined.
19100
19101         * sysdeps/s390/multiarch/memchr-vx.S: New File.
19102         * sysdeps/s390/multiarch/memchr.c: Likewise.
19103         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
19104         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
19105         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
19106         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
19107         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
19108         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
19109         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
19110         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
19111         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
19112         and rawmemchr functions.
19113         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19114         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
19115         and wmemchr.
19116         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
19117         * string/test-memchr.c: Add wmemchr support.
19118         * wcsmbs/test-wmemchr.c: New File.
19119         * wcsmbs/Makefile (strop-tests): Add wmemchr.
19120         * benchtests/bench-memchr.c: Add wmemchr support.
19121         * benchtests/bench-wmemchr.c: New File.
19122         * benchtests/Makefile (wcsmbs-bench): wmemchr.
19123
19124         * sysdeps/s390/multiarch/strcspn-c.c: New File.
19125         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
19126         * sysdeps/s390/multiarch/strcspn.c: Likewise.
19127         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
19128         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
19129         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
19130         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
19131         wcscspn functions.
19132         * sysdeps/s390/multiarch/ifunc-impl-list.c
19133         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
19134         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
19135         * string/test-strcspn.c: Add wcscspn support.
19136         * wcsmbs/test-wcscspn.c: New File.
19137         * wcsmbs/Makefile (strop-tests): Add wcscspn.
19138         * benchtests/bench-strcspn.c: Add wcscspn support.
19139         * benchtests/bench-wcscspn.c: New File.
19140         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
19141
19142         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
19143         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
19144         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
19145         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
19146         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
19147         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
19148         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
19149         wcspbrk functions.
19150         * sysdeps/s390/multiarch/ifunc-impl-list.c
19151         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
19152         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
19153         * string/test-strpbrk.c: Add wcspbrk support.
19154         * wcsmbs/test-wcspbrk.c: New File.
19155         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
19156         * benchtests/bench-strpbrk.c: Add wcspbrk support.
19157         * benchtests/bench-wcspbrk.c: New File.
19158         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
19159
19160         * sysdeps/s390/multiarch/strspn-c.c: New File.
19161         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
19162         * sysdeps/s390/multiarch/strspn.c: Likewise.
19163         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
19164         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
19165         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
19166         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
19167         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
19168         wcsspn functions.
19169         * sysdeps/s390/multiarch/ifunc-impl-list.c
19170         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
19171         * string/test-strspn.c: Add wcsspn support.
19172         * wcsmbs/test-wcsspn.c: New File.
19173         * wcsmbs/Makefile (strop-tests): Add wcsspn.
19174         * benchtests/bench-strspn.c: Add wcsspn support.
19175         * benchtests/bench-wcsspn.c: New File.
19176         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
19177
19178         * sysdeps/s390/multiarch/strrchr-c.c: New File.
19179         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
19180         * sysdeps/s390/multiarch/strrchr.c: Likewise.
19181         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
19182         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
19183         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
19184         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
19185         wcsrchr functions.
19186         * sysdeps/s390/multiarch/ifunc-impl-list.c
19187         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
19188         * benchtests/bench-wcsrchr.c: New File.
19189         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
19190
19191         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
19192         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
19193         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
19194         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
19195         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
19196         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
19197         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
19198         wcschrnul functions.
19199         * sysdeps/s390/multiarch/ifunc-impl-list.c
19200         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
19201         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
19202         * string/test-strchr.c: Add wcschrnul support.
19203         * wcsmbs/test-wcschrnul.c: New File.
19204         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
19205         * benchtests/bench-strchr.c: Add wcschrnul support.
19206         * benchtests/bench-wcschrnul.c: New File.
19207         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
19208
19209         * sysdeps/s390/multiarch/strchr-c.c: New File.
19210         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
19211         * sysdeps/s390/multiarch/strchr.c: Likewise.
19212         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
19213         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
19214         * sysdeps/s390/multiarch/wcschr.c: Likewise.
19215         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
19216         wcschr functions.
19217         * sysdeps/s390/multiarch/ifunc-impl-list.c
19218         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
19219         * string/strchr.c (STRCHR): Define and use macro.
19220         * benchtests/bench-wcschr.c: New File.
19221         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
19222
19223         * sysdeps/s390/multiarch/strncmp-c.c: New File.
19224         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
19225         * sysdeps/s390/multiarch/strncmp.c: Likewise.
19226         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
19227         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
19228         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
19229         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
19230         wcsncmp functions.
19231         * sysdeps/s390/multiarch/ifunc-impl-list.c
19232         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
19233         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
19234         * benchtests/bench-strncmp.c: Add wcsncmp support.
19235         * benchtests/bench-wcsncmp.c: New File.
19236         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
19237
19238         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
19239         * sysdeps/s390/multiarch/strcmp.c: Likewise.
19240         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
19241         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
19242         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
19243         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
19244         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
19245         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
19246         wcscmp functions.
19247         * sysdeps/s390/multiarch/ifunc-impl-list.c
19248         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
19249         * string/strcmp.c (STRCMP): Define and use macro.
19250         * benchtests/bench-wcscmp.c: New File.
19251         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
19252         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
19253         instead of _HAVE_STRING_ARCH_memchr.
19254
19255         * sysdeps/s390/multiarch/strncat-c.c: New File.
19256         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
19257         * sysdeps/s390/multiarch/strncat.c: Likewise.
19258         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
19259         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
19260         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
19261         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
19262         wcsncat functions.
19263         * sysdeps/s390/multiarch/ifunc-impl-list.c
19264         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
19265         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
19266         * string/test-strncat.c: Add wcsncat support.
19267         * wcsmbs/test-wcsncat.c: New File.
19268         * wcsmbs/Makefile (strop-tests): Add wcsncat.
19269         * benchtests/bench-strncat.c: Add wcsncat support.
19270         * benchtests/bench-wcsncat.c: New File.
19271         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
19272
19273         * sysdeps/s390/multiarch/strcat-c.c: New File.
19274         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
19275         * sysdeps/s390/multiarch/strcat.c: Likewise.
19276         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
19277         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
19278         * sysdeps/s390/multiarch/wcscat.c: Likewise.
19279         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
19280         wcscat functions.
19281         * sysdeps/s390/multiarch/ifunc-impl-list.c
19282         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
19283         * string/strcat.c (STRCAT): Define and use macro.
19284         * wcsmbs/wcscat.c: Use WCSCAT if defined.
19285         * string/test-strcat.c: Add wcscat support.
19286         * wcsmbs/test-wcscat.c: New File.
19287         * wcsmbs/Makefile (strop-tests): Add wcscat.
19288         * benchtests/bench-strcat.c: Add wcscat support.
19289         * benchtests/bench-wcscat.c: New File.
19290         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
19291
19292         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
19293         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
19294         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
19295         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
19296         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
19297         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
19298         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
19299         wcpncpy functions.
19300         * sysdeps/s390/multiarch/ifunc-impl-list.c
19301         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
19302         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
19303         * string/test-stpncpy.c: Add wcpncpy support.
19304         * wcsmbs/test-wcpncpy.c: New File.
19305         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
19306         * benchtests/bench-stpncpy.c: Add wcpncpy support.
19307         * benchtests/bench-wcpncpy.c: New File.
19308         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
19309
19310         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
19311         * sysdeps/s390/multiarch/strncpy.c: Likewise.
19312         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
19313         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
19314         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
19315         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
19316         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
19317         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
19318         wcsncpy functions.
19319         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
19320         * sysdeps/s390/multiarch/ifunc-impl-list.c
19321         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
19322         * string/test-strncpy.c: Add wcsncpy support.
19323         * wcsmbs/test-wcsncpy.c: New File.
19324         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
19325         * benchtests/bench-strncpy.c: Add wcsncpy support.
19326         * benchtests/bench-wcsncpy.c: New File.
19327         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
19328
19329         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
19330         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
19331         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
19332         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
19333         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
19334         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
19335         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
19336         wcpcpy functions.
19337         * string/stpcpy.c: Use STPCPY if defined.
19338         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
19339         * sysdeps/s390/multiarch/ifunc-impl-list.c
19340         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
19341         * string/test-stpcpy.c: Add wcpcpy support.
19342         * wcsmbs/test-wcpcpy.c: New File.
19343         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
19344         * benchtests/bench-stpcpy.c: Add wcpcpy support.
19345         * benchtests/bench-wcpcpy.c: New File.
19346         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
19347
19348         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
19349         * sysdeps/s390/multiarch/strcpy.c: Likewise.
19350         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
19351         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
19352         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
19353         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
19354         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
19355         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
19356         wcscpy functions.
19357         * sysdeps/s390/multiarch/ifunc-impl-list.c
19358         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
19359         * benchtests/bench-wcscpy.c: New File.
19360         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
19361
19362         * sysdeps/s390/multiarch/strnlen-c.c: New File.
19363         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
19364         * sysdeps/s390/multiarch/strnlen.c: Likewise.
19365         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
19366         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
19367         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
19368         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
19369         wcsnlen functions.
19370         * sysdeps/s390/multiarch/ifunc-impl-list.c
19371         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
19372         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
19373         * string/test-strnlen.c: Add wcsnlen support.
19374         * wcsmbs/test-wcsnlen.c: New File.
19375         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
19376         * benchtests/bench-strnlen.c: Add wcsnlen support.
19377         * benchtests/bench-wcsnlen.c: New File.
19378         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
19379
19380         * sysdeps/s390/multiarch/Makefile: New File.
19381         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
19382         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
19383         * sysdeps/s390/multiarch/strlen.c: Likewise.
19384         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
19385         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
19386         * sysdeps/s390/multiarch/wcslen.c: Likewise.
19387         * string/strlen.c (STRLEN): Define and use macro.
19388         * sysdeps/s390/multiarch/ifunc-impl-list.c
19389         (IFUNC_VX_IMPL): New macro function.
19390         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
19391         * benchtests/Makefile (wcsmbs-bench): New variable.
19392         (string-bench-all): Added wcsmbs-bench.
19393         * benchtests/bench-wcslen.c: New File.
19394
19395         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
19396         s390_vx_libc_ifunc2): New macro function.
19397
19398         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
19399         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
19400         assembler support.
19401         * sysdeps/s390/configure: Regenerated.
19402
19403         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
19404         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
19405
19406         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
19407         * sysdeps/s390/dl-procinfo.h: Add vector capability.
19408         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
19409
19410         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
19411         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
19412         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
19413         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
19414         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
19415         (memcmp, bcmp): Use __memcmp_default as alias source.
19416         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
19417         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
19418         Rename to __memcmp_default.
19419         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
19420         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
19421         (memcpy): Use __memcpy_default as alias source.
19422         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
19423         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
19424         Rename to __memcpy_default.
19425         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
19426         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
19427         (memset): Use __memset_default as alias source.
19428         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
19429         * sysdeps/s390/s390-32/memset.S (__memset_g5):
19430         Rename to __memset_default.
19431         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
19432         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
19433         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
19434         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
19435         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
19436         (memcmp, bcmp): Use __memcmp_default as alias source.
19437         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
19438         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
19439         Rename to __memcmp_default.
19440         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
19441         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
19442         (memcpy): Use __memcpy_default as alias source.
19443         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
19444         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
19445         Rename to __memcpy_default.
19446         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
19447         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
19448         (memset): Use __memset_default as alias source.
19449         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
19450         * sysdeps/s390/s390-64/memset.S (__memset_z900):
19451         Rename to __memset_default.
19452         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
19453         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
19454
19455         [BZ #18610]
19456         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
19457         __ieee_instruction_pointer to __unused.
19458         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
19459         __ieee_instruction_pointer.
19460         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
19461         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
19462         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19463         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19464         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
19465         Mark dxc-field as reserved.
19466
19467 2015-08-25  Roland McGrath  <roland@hack.frob.com>
19468
19469         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
19470         if the weak reference is not null.
19471
19472 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19473
19474         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
19475
19476         [BZ #11214]
19477         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
19478
19479 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19480
19481         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
19482         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
19483         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
19484         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
19485         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
19486         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
19487         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
19488         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
19489         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
19490         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
19491         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
19492         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
19493         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
19494         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
19495         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
19496         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
19497         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
19498         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
19499
19500 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19501
19502         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
19503         register other than r0 for tabort, it has special meaning.
19504         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
19505         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
19506         transaction before starting syscall.
19507
19508 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19509
19510         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
19511
19512 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19513
19514         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
19515
19516         * sysdeps/x86_64/rtld-memcmp.c: Removed.
19517         * sysdeps/x86_64/rtld-memset.S: Likewise.
19518         * sysdeps/x86_64/rtld-strchr.S: Likewise.
19519         * sysdeps/x86_64/rtld-strlen.S: Likewise.
19520         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
19521         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
19522
19523         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
19524
19525 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
19526
19527         * debug/strcpy_chk.c: Improve performance.
19528         * debug/stpcpy_chk.c: Likewise.
19529         * sysdeps/x86_64/strcpy_chk.S: Remove.
19530         * sysdeps/x86_64/stpcpy_chk.S: Remove.
19531
19532         [BZ #18240]
19533         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
19534
19535 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19536
19537         [BZ #15128]
19538         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
19539         ifuncmain8.
19540         (modules-names): Add ifuncmod8.
19541         ($(objpfx)ifuncmain8): New rule.
19542         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
19543         <cpuid.h>.
19544         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
19545         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
19546         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
19547         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
19548         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
19549         * sysdeps/x86_64/dl-trampoline.h: Likewise.
19550         * sysdeps/x86_64/ifuncmain8.c: New file.
19551         * sysdeps/x86_64/ifuncmod8.c: Likewise.
19552         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
19553         Removed.
19554         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
19555         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
19556         Change rtld_savespace_sse to __glibc_unused2.
19557         (RTLD_CHECK_FOREIGN_CALL): Removed.
19558         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
19559         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
19560         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
19561
19562 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19563
19564         * sysdeps/aarch64/bzero.S (__bzero): Remove.
19565
19566 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19567
19568         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
19569         Unconditionally set __fpcr to avoid uninialized warning.
19570         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
19571
19572 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19573
19574         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
19575         is corrupt.
19576
19577         * malloc/arena.c (arena_get2): Drop unused argument.
19578         (arena_lock): Adjust.
19579         (arena_get_retry): Likewise.
19580
19581 2015-08-24  Andreas Schwab  <schwab@suse.de>
19582
19583         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
19584         Don't define.
19585         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19586         (__ASSUME_IPC64): Don't undef.
19587         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
19588         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
19589         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
19590         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
19591         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
19592         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
19593         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
19594         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
19595         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
19596         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
19597         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
19598         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
19599         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
19600         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
19601         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
19602         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
19603         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
19604         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
19605         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
19606         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
19607         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
19608
19609 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
19610
19611         * manual/Makefile (install): Only build manual when perl is available.
19612
19613 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19614
19615         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
19616         '#undef memcpy' by '#undef memchr'.
19617
19618 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19619
19620         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
19621         memchr not point to the internal __GI_memchr implementation.
19622
19623 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19624
19625         * timezone/Makefile (CFLAGS-zdump.c): Remove
19626         -Wno-strict-prototypes.
19627         (CFLAGS-zic.c): Likewise.
19628         (CFLAGS-ialloc.c): Likewise.
19629         (CFLAGS-scheck.c): Likewise.
19630
19631         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
19632         -Wno-error=undef.
19633
19634 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19635
19636         * i386/i686/multiarch/strcasestr-c.c: Removed.
19637         * x86_64/multiarch/strcasestr.c: Likewise.
19638         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19639         Remove strcasestr.
19640
19641 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19642
19643         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
19644
19645         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
19646         variables for high and low parts before possibly modifying them.
19647
19648 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19649
19650         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
19651         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
19652         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
19653         of "multiarch/init-arch.h".
19654         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
19655         * sysdeps/x86/init-arch.h: This.
19656
19657 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19658
19659         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
19660         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
19661
19662 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
19663
19664         [BZ #17787]
19665         * manual/macros.texi: Add twoexp macro.
19666         * manual/filesys.texi: Fix exponents.
19667         * manual/llio.texi: Likewise.
19668         * manual/stdio.texi: Likewise.
19669
19670 2015-08-20  Florian Weimer  <fweimer@redhat.com>
19671
19672         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
19673         incorrect use.
19674
19675 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19676
19677         [BZ #18370]
19678         * math/s_csqrt.c (__csqrt): Force underflow exception for results
19679         whose real or imaginary part has small absolute value.
19680         * math/s_csqrtf.c (__csqrtf): Likewise.
19681         * math/s_csqrtl.c (__csqrtl): Likewise.
19682         * math/auto-libm-test-in: Add more tests of csqrt.
19683         * math/auto-libm-test-out: Regenerated.
19684         * sysdeps/i386/fpu/libm-test-ulps: Update.
19685
19686 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19687
19688         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
19689         __ppc_set_ppr_very_low): New functions.
19690         * manual/platform.texi: Add documentation about
19691         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
19692
19693 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
19694
19695         * string/stpncpy.c (stpncpy): Improve performance using
19696         __strnlen/memcpy/memset.
19697
19698 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19699
19700         [BZ #18796]
19701         * scripts/test-installation.pl: Don't add -lmvec to build options if
19702         libmvec wasn't built.
19703
19704 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19705
19706         [BZ #14341]
19707         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
19708         case when there is a gap between DT_REL and DT_JMPREL sections.
19709         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
19710         (LDFLAGS-tst-split-dynreloc): New.
19711         (tst-split-dynreloc-ENV): Likewise.
19712         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
19713         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
19714
19715 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19716
19717         [BZ #18822]
19718         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
19719         attribute_hidden.
19720         (__xstat64_conv): Likewise.
19721         (__xstat32_conv): Likewise.
19722
19723 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19724
19725         [BZ #18822]
19726         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19727         Don't load %ebx when calling __setcontext.  Call __setcontext
19728         with HIDDEN_JUMPTARGET.
19729         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
19730         libc_hidden_def.
19731
19732 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19733
19734         * sysdeps/i386/i686/Makefile
19735         [$(subdir) == string] (sysdep_routines): Moved to ...
19736         * sysdeps/i386/Makefile: Here.
19737         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
19738         * sysdeps/i386/cacheinfo.c: Here.
19739         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
19740         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
19741         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
19742         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
19743
19744 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19745
19746         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
19747         __i586__ is defined.
19748         (HAS_I686): Defined to 1 if __i686__ is defined.
19749
19750 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19751
19752         * elf/Makefile [$(have-z-execstack) = yes]
19753         (CPPFLAGS-tst-execstack.c): New variable.
19754
19755         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
19756         conditional to [defined UTMPX || _HAVE_UT_TYPE].
19757         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
19758         UTMPX || _HAVE_UT_TV].
19759         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
19760         UTMPX || _HAVE_UT_TV - 0].
19761
19762 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
19763
19764         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
19765         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
19766         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
19767
19768 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19769
19770         * sysdeps/powerpc/dl-procinfo.c:
19771         (_dl_powerpc_cap_flags): Added missing strings for some
19772         hwcap features.
19773         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
19774
19775 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19776
19777         Port the 0x7efe...feff pattern to GCC 6.
19778         See Steve Ellcey's bug report in:
19779         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
19780         * string/memrchr.c (MEMRCHR):
19781         * string/rawmemchr.c (RAWMEMCHR):
19782         * string/strchr.c (strchr):
19783         * string/strchrnul.c (STRCHRNUL):
19784         Rewrite code to avoid issues with signed shift overflow.
19785
19786 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
19787
19788         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
19789         whether cpuid is available only if HAS_CPUID is 0.
19790         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
19791         (HAS_I586): Likewise.
19792         (HAS_I686): Likewise.
19793
19794 2015-08-18  Zack Weinberg  <zackw@panix.com>
19795
19796         * misc/Versions (libc): Add GLIBC_2.23.
19797
19798 2015-08-18  Alan Modra  <amodra@gmail.com>
19799
19800         [BZ #18421]
19801         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
19802         .Lp__global.
19803         (_start): Load %dp via .Lp__global.
19804         [!SHARED]: Use .section .rodata.
19805
19806 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19807
19808         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
19809         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
19810
19811 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19812
19813         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
19814         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
19815
19816 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19817
19818         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
19819         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
19820
19821 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19822
19823         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
19824         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
19825
19826 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19827
19828         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
19829         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
19830
19831 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19832
19833         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
19834         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
19835
19836 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19837
19838         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
19839
19840 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19841
19842         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
19843         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
19844         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19845         (__ASSUME_LWS_CAS): Delete.
19846
19847 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19848
19849         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
19850         * sysdeps/hppa/configure: Regenerated.
19851         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
19852         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
19853         * sysdeps/hppa/nptl/tls.h: Likewise.
19854
19855 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
19856
19857         [BZ #18823]
19858         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
19859         for scaling up small arguments.
19860         * math/s_csqrtf.c (__csqrtf): Likewise.
19861         * math/s_csqrtl.c (__csqrtl): Likewise.
19862         * math/auto-libm-test-in: Add more tests of csqrt.
19863         * math/auto-libm-test-out: Regenerated.
19864
19865 2015-08-17  Andreas Schwab  <schwab@suse.de>
19866
19867         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
19868         version set GLIBC_2.19.
19869
19870 2015-08-16  Zack Weinberg  <zackw@panix.com>
19871
19872         [BZ #18681]
19873         * misc/regexp.h: This interface is no longer supported.
19874         Remove all contents, leaving only an #error directive.
19875         * misc/regexp.c (loc1, loc2, locs, step, advance):
19876         Demote to compatibility symbols.
19877
19878 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
19879
19880         [BZ #18084]
19881         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
19882         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
19883         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
19884         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
19885         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
19886         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
19887         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
19888         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
19889         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
19890
19891 2015-08-15  Zack Weinberg  <zackw@panix.com>
19892
19893         [BZ #18795]
19894         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
19895         buffer length is known to be too large, not if it's known to be
19896         small enough.
19897         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
19898         overflow at runtime, involving a length parameter, twice: once
19899         with a compile-time constant length parameter, once without.
19900
19901 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
19902
19903         [BZ #18824]
19904         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
19905         scaling x * y up instead of down.
19906         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19907         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19908         * math/auto-libm-test-in: Add more tests of fma.
19909         * math/auto-libm-test-out: Regenerated.
19910
19911 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
19912
19913         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19914
19915 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19916
19917         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
19918         unnecessary movq.
19919         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
19920         Likewise.
19921
19922 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
19923
19924         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
19925         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
19926         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
19927         and tgamma.
19928         * math/auto-libm-test-out: Regenerated.
19929         * sysdeps/i386/fpu/libm-test-ulps: Update.
19930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19931
19932         [BZ #16520]
19933         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
19934         (__tanh): Force underflow exception for arguments with small
19935         absolute value.
19936         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
19937         (__tanhf): Force underflow exception for arguments with small
19938         absolute value.
19939         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
19940         (__tanhl): Force underflow exception for arguments with small
19941         absolute value.
19942         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
19943         (__tanhl): Force underflow exception for arguments with small
19944         absolute value.
19945         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
19946         (__tanhl): Force underflow exception for arguments with small
19947         absolute value.
19948         * math/auto-libm-test-in: Add more tests of tanh.
19949         * math/auto-libm-test-out: Regenerated.
19950         * sysdeps/i386/fpu/libm-test-ulps: Update.
19951
19952 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19953
19954         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
19955         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
19956
19957 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19958
19959         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
19960         <cpuid.h>.
19961
19962 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19963
19964         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
19965         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
19966
19967 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19968
19969         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
19970         Remove $(objpfx)init-arch.o.
19971         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
19972         init-arch.
19973         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
19974         (INIT_ARCH_EXT): Defined as empty.
19975         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
19976         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
19977         __init_cpu_features call.  Replace HAS_XXX with
19978         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19979         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
19980         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
19981         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
19982         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
19983         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
19984         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
19985         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
19986         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
19987         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
19988         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
19989         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
19990         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
19991         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
19992         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
19993         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
19994         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
19995         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
19996         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
19997         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
19998         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
19999         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20000         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
20001         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
20002         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20003         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
20004         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
20005         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20006         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
20007         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
20008         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20009         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
20010         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
20011         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20012         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
20013         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
20014
20015 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20016
20017         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
20018         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20019         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20020         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20021         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
20022         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
20023         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
20024         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
20025         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
20026         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
20027         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
20028         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
20029         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20030         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20031         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20032         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20033         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20034         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20035         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20036         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20037         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20038         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20039         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20040         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20041         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20042         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20043         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20044         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20045         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20046         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20047         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20048         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20049         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20050         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20051         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20052         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20053         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20054         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20055         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20056         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20057         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20058         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20059         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20060
20061 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20062
20063         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
20064         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20065         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20066         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20067         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20068         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
20069         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20070         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
20071         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20072         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20073         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20074         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
20075         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
20076         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
20077         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
20078         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
20079         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
20080         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
20081         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
20082         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
20083         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
20084         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
20085         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
20086         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
20087         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20088         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
20089         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
20090         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
20091         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20092         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
20093         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
20094         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
20095         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
20096         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20097         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20098         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
20099         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
20100         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
20101         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
20102         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
20103         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
20104         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
20105         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
20106
20107 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20108
20109         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
20110         (dl_platform_init): Call init_cpu_features.
20111         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
20112         * sysdeps/i386/i686/cacheinfo.c
20113         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
20114         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
20115         * sysdeps/i386/i686/multiarch/Versions: Removed.
20116         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
20117         Removed.
20118         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
20119         * sysdeps/unix/sysv/linux/x86/Makefile
20120         (libpthread-sysdep_routines): Remove init-arch.
20121         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
20122         <sysdeps/x86_64/dl-procinfo.c> instead of
20123         sysdeps/generic/dl-procinfo.c>.
20124         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
20125         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
20126         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
20127         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
20128         [$(subdir) == elf] (tests-static): Add
20129         tst-get-cpu-features-static.
20130         * sysdeps/x86/Versions: New file.
20131         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
20132         * sysdeps/x86/cpu-features.c: Likewise.
20133         * sysdeps/x86/cpu-features.h: Likewise.
20134         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
20135         * sysdeps/x86/libc-start.c: Likewise.
20136         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
20137         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
20138         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
20139         * sysdeps/x86_64/dl-procinfo.c: Likewise.
20140         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
20141         Assume USE_MULTIARCH is defined and don't check it.
20142         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
20143         (is_amd): Likewise.
20144         (max_cpuid): Likewise.
20145         (intel_check_word): Likewise.
20146         (__cache_sysconf): Don't call __init_cpu_features.
20147         (__x86_preferred_memory_instruction): Removed.
20148         (init_cacheinfo): Don't call __init_cpu_features. Replace
20149         __cpu_features with GLRO(dl_x86_cpu_features).
20150         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
20151         (dl_platform_init): Call init_cpu_features.
20152         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
20153         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
20154         * sysdeps/x86_64/multiarch/Versions: Removed.
20155         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
20156         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
20157         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
20158         Removed.
20159         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
20160
20161 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20162
20163         [BZ #18820]
20164         * libio/Makefile (test-fmemopen-mem): New test.
20165         * libio/test-fmemopen.c (do_bz18820): New test.
20166         * libio/fmemopen.c (__fmemopen): Fix memory leak.
20167         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
20168
20169 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20170
20171         [BZ #16734]
20172         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
20173         (FREE_BUF): Delete.
20174         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
20175         * libio/genops.c (_IO_setb): Use malloc and free directly.
20176         (_IO_default_doallocate, _IO_default_finish): Likewise.
20177         ( _IO_unbuffer_all): Likewise.
20178         ( libc_freeres_fn): Likewise.
20179         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
20180         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
20181         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
20182         (_IO_wdefault_doallocate): Likewise.
20183
20184 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
20185
20186         [BZ #18086]
20187         * sysdeps/posix/nice.c (nice): Restore old errno.
20188         * posix/tst-nice.c (do_test): Add test for BZ #18086.
20189
20190 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
20191
20192         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
20193
20194 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20195
20196         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
20197         __bcopy and add a weak_alias to bcopy.
20198         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
20199         for static build.
20200
20201         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
20202         cleanup macro usage.
20203         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
20204         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
20205         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
20206         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
20207         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
20208         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
20209         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
20210         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20211         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
20212         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
20213         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20214         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
20215         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20216         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
20217         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
20218         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
20219         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
20220         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
20221         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20222
20223         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
20224         libc_hidden_def.
20225         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
20226
20227         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
20228         (sysdep_routines): Add strstr-ppc64.
20229         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
20230
20231 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
20232
20233         [BZ #18778]
20234         * elf/Makefile (tests): Add Add tst-nodelete2.
20235         (modules-names): Add tst-nodelete2mod.
20236         (tst-nodelete2mod.so-no-z-defs): New.
20237         ($(objpfx)tst-nodelete2): Likewise.
20238         ($(objpfx)tst-nodelete2.out): Likewise.
20239         (LDFLAGS-tst-nodelete2): Likewise.
20240         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
20241         out of loop through all loaded libraries.
20242         * elf/tst-nodelete2.c: New file.
20243         * elf/tst-nodelete2mod.c: Likewise.
20244         * elf/tst-znodelete-zlib.cc: Delete.
20245
20246 2015-08-11  Andreas Schwab  <schwab@suse.de>
20247
20248         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
20249         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
20250         (__openat64_nocancel): Likewise.
20251
20252 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
20253
20254         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
20255         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
20256         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
20257         * math/auto-libm-test-out: Regenerated.
20258         * sysdeps/i386/fpu/libm-test-ulps: Update.
20259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20260
20261 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20262
20263         [BZ #18790]
20264         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
20265         threshold for returning +/- 1.
20266         * math/auto-libm-test-in: Add more tests of tanh.
20267         * math/auto-libm-test-out: Regenerated.
20268         * sysdeps/i386/fpu/libm-test-ulps: Update.
20269
20270 2015-08-10  Andreas Schwab  <schwab@suse.de>
20271
20272         [BZ #18781]
20273         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
20274         MORE_OFLAGS to oflag.
20275         * io/test-lfs.c (do_test): Test openat64.
20276
20277 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20278
20279         [BZ #18789]
20280         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
20281         smaller threshold for returning the argument.
20282         * math/auto-libm-test-in: Add more tests of sinh.
20283         * math/auto-libm-test-out: Regenerated.
20284         * sysdeps/i386/fpu/libm-test-ulps: Update.
20285
20286 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20287
20288         [BZ #18674]
20289         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
20290         break.
20291
20292 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
20293
20294         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
20295         (generated): Don't add $(addprefix z.,$(tzfiles)).
20296
20297 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20298
20299         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
20300         * scripts/sysd-rules.awk: Likewise.
20301
20302 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20303
20304         * iconvdata/tst-tables.sh: Change echo -n to printf.
20305         * nss/db-Makefile: Likewise.
20306         * posix/tst-getconf.sh: Likewise.
20307         * stdio-common/tst-unbputc.sh: Likewise.
20308
20309 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20310
20311         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
20312         MADV_*_PAGES defines behind this feature check.
20313
20314 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
20315
20316         [BZ #18480]
20317         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
20318         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
20319         Define.
20320         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
20321         LOAD_REGS_5, LOAD_REGS_6): Update.
20322         (INTERNAL_SYSCALL): Update using new LOAD defines.
20323         (INTERNAL_SYSCALL_NCS): Likewise.
20324         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
20325
20326 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20327
20328         [BZ #16734]
20329         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
20330
20331 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20332
20333         [BZ #17905]
20334         * catgets/Makefile (tst-catgets-mem): New test.
20335         * catgets/catgets.c (catopen): Don't use unbounded alloca.
20336         * catgets/open_catalog.c (__open_catalog): Likewise.
20337         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
20338
20339 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
20340
20341         [BZ #18787]
20342         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
20343         clobber registers.
20344         (atomic_compare_and_exchange_val_acq): Use register asms to assign
20345         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
20346         Cast return to __typeof (oldval).
20347
20348 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
20349
20350         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
20351         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
20352         and delete sys/syscall.h include.
20353
20354 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
20355
20356         [BZ #16517]
20357         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
20358         (tan): Force underflow exception for arguments with small absolute
20359         value.
20360         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
20361         (__kernel_tanf): Force underflow exception for arguments with
20362         small absolute value.
20363         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
20364         (__kernel_tanl): Force underflow exception for arguments with
20365         small absolute value.
20366         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
20367         (__kernel_tanl): Force underflow exception for arguments with
20368         small absolute value.
20369         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
20370         (__kernel_tanl): Force underflow exception for arguments with
20371         small absolute value.
20372         * math/auto-libm-test-in: Add more tests of tan.
20373         * math/auto-libm-test-out: Regenerated.
20374
20375 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20376
20377         Fix sysdeps/i386/fpu/s_scalbn.S build
20378
20379         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
20380
20381 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
20382
20383         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20384
20385 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20386
20387         Fix gcrt0.o compilation
20388
20389         When static-start-installed-name is different from
20390         start-installed-name, we must not use the shared objects.
20391
20392         * csu/Makefile
20393         (extra-objs): Add gmon-start.o when building shared library and
20394         $(static-start-installed-name) is different from
20395         $(start-installed-name).
20396         $(objpfx)g$(static-start-installed-name): When building shared
20397         library and $(static-start-installed-name) is different from
20398         $(static-start-installed-name), revert to non-shared rule,
20399         i.e. using $(objpfx)% and gmon-start.o.
20400
20401 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
20402
20403         [BZ #16519]
20404         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
20405         (__ieee754_sinh): Force underflow exception for arguments with
20406         small absolute value.
20407         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
20408         (__ieee754_sinhf): Force underflow exception for arguments with
20409         small absolute value.
20410         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
20411         (__ieee754_sinhl): Force underflow exception for arguments with
20412         small absolute value.
20413         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
20414         (__ieee754_sinhl): Force underflow exception for arguments with
20415         small absolute value.
20416         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
20417         (__ieee754_sinhl): Force underflow exception for arguments with
20418         small absolute value.
20419         * math/auto-libm-test-in: Add more tests of sinh.
20420         * math/auto-libm-test-out: Regenerated.
20421         * sysdeps/i386/fpu/libm-test-ulps: Update.
20422
20423 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20424
20425         * libio/oldfileops.c: Include unistd.h.
20426
20427 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
20428
20429         * stdlib/isomac.c: Include ctype.h.
20430
20431 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
20432
20433         * dirent/tst-seekdir.c (main): Converted to ...
20434         (do_test): ... this.
20435         (TEST_FUNCTION): New macro.
20436         Include test-skeleton.c.
20437         * elf/tst-dlmodcount.c (main): Converted to ...
20438         (do_test): ... this.
20439         (TEST_FUNCTION): New macro.
20440         Include test-skeleton.c.
20441         * elf/tst-order-main.c (main): Converted to ...
20442         (do_test): ... this.
20443         (TEST_FUNCTION): New macro.
20444         Include test-skeleton.c.
20445         * elf/tst-pie2.c (main): Converted to ...
20446         (do_test): ... this.
20447         (TEST_FUNCTION): New macro.
20448         Include test-skeleton.c.
20449         * inet/tst-ether_aton.c (main): Converted to ...
20450         (do_test): ... this.
20451         (TEST_FUNCTION): New macro.
20452         Include test-skeleton.c.
20453         * misc/tst-mntent.c (main): Converted to ...
20454         (do_test): ... this.
20455         (TEST_FUNCTION): New macro.
20456         Include test-skeleton.c.
20457         * misc/tst-tsearch.c (main): Converted to ...
20458         (do_test): ... this.
20459         (TEST_FUNCTION): New macro.
20460         Include test-skeleton.c.
20461         * posix/tst-regexloc.c (main): Converted to ...
20462         (do_test): ... this.
20463         (TEST_FUNCTION): New macro.
20464         Include test-skeleton.c.
20465         * resolv/tst-aton.c (main): Converted to ...
20466         (do_test): ... this.
20467         (TEST_FUNCTION): New macro.
20468         Include test-skeleton.c.
20469         * stdio-common/test-fwrite.c (main): Converted to ...
20470         (do_test): ... this.
20471         (TEST_FUNCTION): New macro.
20472         Include test-skeleton.c.
20473         * stdio-common/tst-ferror.c (main): Converted to ...
20474         (do_test): ... this.
20475         (TEST_FUNCTION): New macro.
20476         Include test-skeleton.c.
20477         * stdio-common/tst-printf.c (main): Converted to ...
20478         (do_test): ... this.
20479         (TEST_FUNCTION): New macro.
20480         Include test-skeleton.c.
20481         * stdio-common/tst-printfsz.c (main): Converted to ...
20482         (do_test): ... this.
20483         (TEST_FUNCTION): New macro.
20484         Include test-skeleton.c.
20485         * stdlib/tst-strtod.c (main): Converted to ...
20486         (do_test): ... this.
20487         (TEST_FUNCTION): New macro.
20488         Include test-skeleton.c.
20489         * string/tst-strlen.c (main): Converted to ...
20490         (do_test): ... this.
20491         (TEST_FUNCTION): New macro.
20492         Include test-skeleton.c.
20493         * string/tst-svc.c (main): Converted to ...
20494         (do_test): ... this.
20495         (TEST_FUNCTION): New macro.
20496         Include test-skeleton.c.
20497         * time/tst-strptime.c (main): Converted to ...
20498         (do_test): ... this.
20499         (TEST_FUNCTION): New macro.
20500         Include test-skeleton.c.
20501         * timezone/tst-timezone.c (main): Converted to ...
20502         (do_test): ... this.
20503         (TEST_FUNCTION): New macro.
20504         Include test-skeleton.c.
20505
20506 2015-08-05  Zack Weinberg  <zackw@panix.com>
20507
20508         * misc/regexp.h: Update comments.
20509
20510 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
20511
20512         [BZ #18635]
20513         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
20514         before return label.
20515
20516 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20517
20518         [BZ #18661]
20519         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
20520         when calling __errno_location.
20521         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
20522         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
20523
20524 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20525
20526         [BZ #18661]
20527         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
20528         (__lll_timedwait_tid): Align stack to 16 bytes when calling
20529         __gettimeofday.
20530
20531 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20532
20533         [BZ #18661]
20534         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20535         (__start_context): Don't use pop to restore %rdi so that stack
20536         is aligned to 16 bytes when calling __setcontext.
20537
20538 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20539
20540         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
20541         only for libc.
20542         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20543
20544 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20545
20546         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
20547         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
20548         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
20549
20550 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20551
20552         * string/memccpy.c (memccpy):
20553         Improve performance by using memchr/memcpy/__mempcpy.
20554
20555 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20556
20557         * string/strncpy.c (strncpy):
20558         Improve performance by using __strnlen/memcpy.
20559
20560 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20561
20562         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
20563         Optimize to avoid an unnecessary FPCR read.
20564
20565 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20566
20567         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
20568         Optimize to reduce FPCR/FPSR accesses.
20569
20570 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20571
20572         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
20573         dead->data[category] != NULL.
20574
20575 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
20576
20577         [BZ #18647]
20578         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
20579         and |x| close to 1, use absolute value of x when computing log.
20580         * math/auto-libm-test-in: Add more tests of pow.
20581         * math/auto-libm-test-out: Regenerated.
20582
20583 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20584
20585         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
20586         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
20587         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
20588
20589 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
20590
20591         [BZ #18525]
20592         * locales/km_KH: Remove timezone definition.
20593         * locales/lo_LA: Likewise.
20594         * locales/my_MM: Likewise.
20595         * locales/nan_TW@latin: Likewise.
20596         * locales/th_TH: Likewise.
20597         * locales/uk_UA: Likewise.
20598
20599 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
20600
20601         [BZ #18265]
20602         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
20603         (wcsncat): Likewise.
20604         (wcscmp): Likewise.
20605         (wcsncmp): Likewise.
20606
20607 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20608
20609         * test-skeleton.c (usage): New function.
20610         (main): Call usage when opt is '?'.
20611
20612 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20613
20614         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
20615         before first use.
20616
20617 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20618
20619         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
20620         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
20621         in there too.
20622
20623 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
20624
20625         * version.h (RELEASE): Set to "development".
20626         (VERSION): Set to "2.22.90"
20627
20628         * version.h (RELEASE): Set to "stable".
20629         (VERSION): Set to "2.22"
20630         * include/features.h (__GLIBC_MINOR__): Set to 22.
20631
20632 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
20633
20634         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
20635         Restructure macro to avoid "value computed is not used" warning.
20636         (atomic_compare_and_exchange_val_acq): Likewise.
20637
20638 2015-08-04  Andreas Schwab  <schwab@suse.de>
20639
20640         [BZ #18635]
20641         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
20642         ret.
20643         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
20644
20645 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
20646
20647         * po/pl.po: Updated translation.
20648         * po/uk.po: Likewise.
20649         * po/fi.po: Likewise.
20650         * po/ko.po: Likewise.
20651         * po/ru.po: Likewise.
20652         * po/vi.po: Likewise.
20653
20654 2015-07-31  Zack Weinberg  <zackw@panix.com>
20655
20656         [BZ #18681]
20657         * regexp.h: Add unconditional #warning stating that this header
20658         will be removed soon.  Revise banner comment to match.
20659         (compile): Consistently use ERROR instead of RETURN to report
20660         errors (partial fix for bz#18681).
20661         * regexp.c: Don't include regexp.h. Remove some unnecessary
20662         declarations.
20663
20664 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
20665
20666         * po/libc.pot: Regenerated.
20667
20668 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
20669
20670         [BZ #18740]
20671         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
20672         float-vlen4-arch-ext-cflags): Removed.
20673         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
20674         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
20675
20676 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20677
20678         [BZ #14113]
20679         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
20680         aligned to __aligned__.
20681         (pthread_cond_t, pthread_rwlock_t): Likewise.
20682
20683 2015-07-30  Torvald Riegel  <triegel@redhat.com>
20684
20685         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
20686
20687 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20688
20689         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
20690         (struct sigaction): Change sa_flags from a long to an int, and add
20691         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
20692
20693 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20694
20695         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
20696         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
20697         sysdeps/generic/sysdep.h include.
20698         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
20699         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
20700         sysdeps/hppa/sysdep.h.
20701         (ENTRY, PSEUDO): Undefine before defining.
20702
20703 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20704
20705         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
20706         from scratch to use INTERNAL_SYSCALL.
20707
20708 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20709
20710         [BZ #18078]
20711         * scripts/check-localplt.awk: Support alternate relocations.
20712         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
20713         sections.
20714         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
20715         malloc entries with + REL R_386_GLOB_DAT.
20716         * sysdeps/x86_64/localplt.data: New file.
20717
20718 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
20719
20720         [BZ #18731]
20721         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
20722         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20723         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20724
20725 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20726
20727         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
20728
20729 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20730
20731         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
20732         directly in terms of __sync_fetch_and_add and delete (int) cast.
20733
20734 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20735
20736         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
20737         the -D_ASM_IA64_CURRENT_H flag.
20738
20739 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20740
20741         [BZ #18641]
20742         * pwd/pwd.h (putpwent): Delete __nonnull markings.
20743
20744 2015-07-27  Andreas Schwab  <schwab@suse.de>
20745
20746         * conform/conformtest.pl (checknamespace): Filter out string
20747         literals while tokenizing.
20748
20749 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20750
20751         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20752         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
20753         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20754
20755 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20756
20757         * nptl/tst-join7mod.c: Add #include <string.h>.
20758
20759 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20760
20761         * sysdeps/nios2/libm-test-ulps: Update.
20762
20763 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20764
20765         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
20766         Fix order of arguments to the rt_sigprocmask syscall.
20767         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
20768         Likewise.
20769
20770 2015-07-24  Roland McGrath  <roland@hack.frob.com>
20771
20772         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
20773
20774 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20775
20776         [BZ #18457]
20777         * nptl/Makefile (tests): New test case tst-join7.
20778         (modules-names): New test case module tst-join7mod.
20779         * nptl/tst-join7.c: New file.
20780         * nptl/tst-join7mod.c: New file.
20781         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
20782         all translation units in libc.so, libpthread.so and rtld.
20783
20784 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20785
20786         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20787
20788 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
20789
20790         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
20791         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20792         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20793         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20794         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20795         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20796         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20797         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20798         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20799         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20800         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20801         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20802         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
20803         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
20804         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
20805         implementation.
20806
20807 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20808
20809         [BZ #17711]
20810         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20811         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
20812         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20813         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20814         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
20815         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20816
20817 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20818
20819         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
20820         instead of just saying load lock in the comments.
20821
20822 2015-07-23  Roland McGrath  <roland@hack.frob.com>
20823
20824         * sysdeps/unix/Subdirs: Moved ...
20825         * sysdeps/posix/Subdirs: ... here.
20826         * login/pty.h (struct termios, struct winsize): Add forward decls.
20827         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
20828         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
20829         * sysdeps/arm/nacl/libc.abilist: Updated.
20830         * sysdeps/nacl/libutil.abilist: New file.
20831
20832         * bits/signum.h: Update comments to mention 1003.1-2013 too.
20833         (SIGWINCH): New macro.
20834
20835         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
20836         * sysdeps/arm/nacl/libc.abilist: Add it.
20837
20838 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20839
20840         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
20841
20842 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20843
20844         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20845         Swap __glibc_reserved0 and sa_flags order.
20846
20847 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20848
20849         [BZ #18657]
20850         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
20851         are pending TLS destructor calls.
20852         * include/link.h (struct link_map): Add concurrency note for
20853         L_TLS_DTOR_COUNT.
20854         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
20855         Don't touch the link map flag.  Atomically increment
20856         l_tls_dtor_count.
20857         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
20858         Avoid taking the load lock and don't touch the link map flag.
20859         * stdlib/tst-tls-atexit-nodelete.c: New test case.
20860         * stdlib/Makefile (tests): Use it.
20861         * stdlib/tst-tls-atexit.c (do_test): dlopen
20862         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
20863         to allow tst-tls-atexit-nodelete test case to use it.
20864
20865 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20866
20867         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
20868         to bits/types.h.
20869         (msgqnum_t): New typedef.
20870         (msglen_t): Likewise.
20871         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
20872         and msg_qbytes type to msglen_t.
20873
20874 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20875
20876         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
20877         pad0 to __glibc_reserved0.
20878         (struct stat64): Likewise.
20879
20880 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20881
20882         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20883         Change sa_flags from a long to an int and add __glibc_reserved0 before
20884         it for padding.
20885
20886 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20887
20888         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
20889         anonymous by deleting "siginfo" name.
20890
20891 2015-07-21  Roland McGrath  <roland@hack.frob.com>
20892
20893         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
20894         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
20895         rather than __nacl_irt_filename.
20896         * sysdeps/nacl/xstat.c (__xstat): Likewise.
20897
20898         * NEWS: New item for arm-nacl port.
20899         * sysdeps/arm/nacl/libc.abilist: New file.
20900         * sysdeps/nacl/ld.abilist: New file.
20901         * sysdeps/nacl/libBrokenLocale.abilist: New file.
20902         * sysdeps/nacl/libanl.abilist: New file.
20903         * sysdeps/nacl/libcrypt.abilist: New file.
20904         * sysdeps/nacl/libdl.abilist: New file.
20905         * sysdeps/nacl/libm.abilist: New file.
20906         * sysdeps/nacl/libpthread.abilist: New file.
20907         * sysdeps/nacl/libresolv.abilist: New file.
20908         * sysdeps/nacl/librt.abilist: New file.
20909
20910 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
20911
20912         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
20913         __startcontext to initialize the new context.
20914         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
20915         up CFI directive to forbid further backtracing.
20916
20917 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
20918
20919         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
20920         reference.
20921         * charmaps/ANSI_X3.4-1968: Likewise.
20922         * charmaps/BS_4730: Likewise.
20923         * charmaps/BS_VIEWDATA: Likewise.
20924         * charmaps/CP1250: Likewise.
20925         * charmaps/CP1251: Likewise.
20926         * charmaps/CP1252: Likewise.
20927         * charmaps/CP1253: Likewise.
20928         * charmaps/CP1254: Likewise.
20929         * charmaps/CP1255: Likewise.
20930         * charmaps/CP1256: Likewise.
20931         * charmaps/CSN_369103: Likewise.
20932         * charmaps/EBCDIC-DK-NO: Likewise.
20933         * charmaps/GB_1988-80: Likewise.
20934         * charmaps/GREEK-CCITT: Likewise.
20935         * charmaps/GREEK7: Likewise.
20936         * charmaps/INIS-8: Likewise.
20937         * charmaps/ISIRI-3342: Likewise.
20938         * charmaps/ISO_2033-1983: Likewise.
20939         * charmaps/ISO_5427-EXT: Likewise.
20940         * locales/POSIX: Likewise.
20941         * locales/ar_SA: Likewise.
20942         * locales/be_BY: Likewise.
20943         * locales/be_BY@latin: Likewise.
20944         * locales/ca_ES: Likewise.
20945         * locales/cs_CZ: Likewise.
20946         * locales/da_DK: Likewise.
20947         * locales/de_BE: Likewise.
20948         * locales/de_CH: Likewise.
20949         * locales/de_LU: Likewise.
20950         * locales/en_AU: Likewise.
20951         * locales/en_BW: Likewise.
20952         * locales/en_CA: Likewise.
20953         * locales/en_DK: Likewise.
20954         * locales/en_GB: Likewise.
20955         * locales/en_IE: Likewise.
20956         * locales/en_NZ: Likewise.
20957         * locales/en_ZA: Likewise.
20958         * locales/en_ZW: Likewise.
20959         * locales/es_AR: Likewise.
20960         * locales/es_BO: Likewise.
20961         * locales/es_CL: Likewise.
20962         * locales/es_CO: Likewise.
20963         * locales/es_DO: Likewise.
20964         * locales/es_EC: Likewise.
20965         * locales/es_ES: Likewise.
20966         * locales/es_HN: Likewise.
20967         * locales/es_MX: Likewise.
20968         * locales/es_PA: Likewise.
20969         * locales/es_PE: Likewise.
20970         * locales/es_PY: Likewise.
20971         * locales/es_SV: Likewise.
20972         * locales/es_US: Likewise.
20973         * locales/es_UY: Likewise.
20974         * locales/es_VE: Likewise.
20975         * locales/et_EE: Likewise.
20976         * locales/fa_IR: Likewise.
20977         * locales/fo_FO: Likewise.
20978         * locales/fr_CA: Likewise.
20979         * locales/fr_CH: Likewise.
20980         * locales/gv_GB: Likewise.
20981         * locales/he_IL: Likewise.
20982         * locales/hr_HR: Likewise.
20983         * locales/id_ID: Likewise.
20984         * locales/is_IS: Likewise.
20985         * locales/it_CH: Likewise.
20986         * locales/iw_IL: Likewise.
20987         * locales/kl_GL: Likewise.
20988         * locales/ko_KR: Likewise.
20989         * locales/kw_GB: Likewise.
20990         * locales/lg_UG: Likewise.
20991         * locales/lt_LT: Likewise.
20992         * locales/lv_LV: Likewise.
20993         * locales/mi_NZ: Likewise.
20994         * locales/nhn_MX: Likewise.
20995         * locales/nl_BE: Likewise.
20996         * locales/pl_PL: Likewise.
20997         * locales/sk_SK: Likewise.
20998         * locales/sl_SI: Likewise.
20999         * locales/sv_FI: Likewise.
21000         * locales/tl_PH: Likewise.
21001         * locales/tr_TR: Likewise.
21002         * locales/vi_VN: Likewise.
21003
21004 2015-07-21  Khem Raj  <raj.khem@gmail.com>
21005
21006         [BZ #17475]
21007         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
21008         of tu_IN and bh_IN.
21009
21010 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21011
21012         [BZ #18694]
21013         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
21014         bits/wordsize.h.
21015         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
21016
21017 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21018
21019         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
21020         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
21021         (spawn_thread): New function.
21022         (load): Rename to reg_dtor_and_close.  Move dlopen to...
21023         (do_test): ... here.  Use IS_LOADED to test for its
21024         availability.
21025
21026 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
21027
21028         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
21029
21030 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
21031
21032         [BZ #18696]
21033         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
21034         si_addr_bnd.
21035         (si_lower): New.
21036         (si_upper): Likewise.
21037
21038 2015-07-16  David S. Miller  <davem@davemloft.net>
21039
21040         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
21041
21042 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21043
21044         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
21045         buffer.
21046         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
21047         fail output information.
21048
21049 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21050
21051         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
21052         and strstr-ppc64..
21053         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
21054         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
21055         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
21056         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
21057         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
21058
21059 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21060
21061         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21062         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21063         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21064         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21065
21066 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21067
21068         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
21069         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
21070         rtld_hidden_proto.
21071         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
21072
21073 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21074
21075         * tst-nodelete-opened.c (do_test): Add comment to clarify how
21076         the test can fail.
21077
21078         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
21079
21080         [BZ #18676]
21081         * elf/tst-nodelete-opened.c: New test case.
21082         * elf/tst-nodelete-opened-lib.c: New test case module.
21083         * elf/Makefile (tests, modules-names): Use them.
21084         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
21085         early.
21086
21087 2015-07-15  David S. Miller  <davem@davemloft.net>
21088
21089         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
21090         futex-intenal.h
21091         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
21092         * sysdeps/sparc/sparc64/Makefile: Likewise.
21093         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21094         Remove space from macro define.
21095         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
21096
21097 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
21098
21099         [BZ #17475]
21100         * locale/iso-639.def: Update Bhili and Tulu language codes as
21101         per iso639-3.
21102
21103 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
21104
21105         * elf/tst-leaks1.c (main): Converted to ...
21106         (do_test): ... this.
21107         (TEST_FUNCTION): New macro.
21108         Include test-skeleton.c.
21109         * localedata/tst-langinfo.c (main): Converted to ...
21110         (do_test): ... this.
21111         (TEST_FUNCTION): New macro.
21112         Include test-skeleton.c.
21113         * math/test-fpucw.c (main): Converted to ...
21114         (do_test): ... this.
21115         (TEST_FUNCTION): New macro.
21116         Include test-skeleton.c.
21117         * math/test-tgmath.c (main): Converted to ...
21118         (do_test): ... this.
21119         (TEST_FUNCTION): New macro.
21120         Include test-skeleton.c.
21121         * math/test-tgmath2.c (main): Converted to ...
21122         (do_test): ... this.
21123         (TEST_FUNCTION): New macro.
21124         Include test-skeleton.c.
21125         * setjmp/tst-setjmp.c (main): Converted to ...
21126         (do_test): ... this.
21127         (TEST_FUNCTION): New macro.
21128         Include test-skeleton.c.
21129         * stdio-common/tst-sscanf.c (main): Converted to ...
21130         (do_test): ... this.
21131         (TEST_FUNCTION): New macro.
21132         Include test-skeleton.c.
21133         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
21134         (do_test): ... this.
21135         (TEST_FUNCTION): New macro.
21136         Include test-skeleton.c.
21137
21138         * elf/tst-audit9.c (main): Converted to ...
21139         (do_test): ... this.
21140         (TEST_FUNCTION): New macro.
21141         Include test-skeleton.c.
21142
21143 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
21144
21145         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
21146
21147 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21148
21149         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
21150         New variable.
21151
21152 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21153
21154         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21155
21156 2015-07-14  Roland McGrath  <roland@hack.frob.com>
21157
21158         * sysdeps/generic/dl-fileid.h: New file.
21159         * sysdeps/posix/dl-fileid.h: New file.
21160         * sysdeps/nacl/dl-fileid.h: New file.
21161         * include/link.h: Include <dl-fileid.h>.
21162         (struct link_map): Replace l_dev and l_ino with l_file_id.
21163         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
21164         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
21165         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
21166
21167 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21168
21169         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
21170
21171 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21172
21173         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
21174         Add iff $CXX is set.
21175         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
21176         Likewise.
21177         (tst-nodelete-zmodiff): Likewise.
21178         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
21179
21180 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21181
21182         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
21183
21184 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21185
21186         * sysdeps/aarch64/fpu/math_private.h
21187         (define math_opt_barrier): Add AArch64 version.
21188         (math_force_eval): Likewise.
21189
21190 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21191
21192         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
21193
21194 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
21195
21196         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
21197         %ld with %jd and cast to intmax_t.
21198         (do_test_length_zero): Likewise.
21199
21200 2015-07-10  Roland McGrath  <roland@hack.frob.com>
21201
21202         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
21203
21204 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
21205
21206         * sysdeps/tile/libm-test-ulps: Regenerated.
21207
21208         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
21209         Comment out the whole function, not just its body.
21210
21211 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21212
21213         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
21214         locks.
21215
21216         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
21217
21218 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21219
21220         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
21221         (sem_assume_only_signals_cause_futex_EINTR): Remove.
21222
21223 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21224
21225         * sysdeps/nptl/futex-internal.h: New file.
21226         * sysdeps/nacl/futex-internal.h: New file.
21227         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
21228         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
21229         error checking.
21230         (setxid_unmark_thread): Likewise.
21231         (__nptl_setxid): Likewise.
21232         (__wait_lookup_done): Likewise.
21233         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
21234         * nptl/nptl-init.c (sighandler_setxid): Likewise.
21235         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
21236         * nptl/pthread_once.c (clear_once_control): Likewise.
21237         (__pthread_once_slow): Likewise.
21238         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
21239         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
21240         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
21241         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21242         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
21243         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
21244         Likewise.
21245         (__pthread_rwlock_rdlock): Likewise.
21246         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21247         Likewise.
21248         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21249         Likewise.
21250         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
21251         Likewise.
21252         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
21253         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
21254         Likewise.
21255         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
21256         __ASSUME_PRIVATE_FUTEX check.
21257         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
21258         Check that shared futexes are supported.
21259         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
21260         wrappers with error checking.
21261         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
21262         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
21263         * nptl/pthread_barrierattr_setpshared.c
21264         (pthread_barrierattr_setpshared): Check that shared futexes are
21265         supported.
21266         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
21267         Likewise.
21268         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
21269         Likewise.
21270         * nptl/sem_init.c (futex_private_if_supported): Remove.
21271         (__new_sem_init): Adapt and check that shared futexes are supported.
21272         * nptl/sem_open.c (sem_open): Likewise.
21273         * nptl/sem_post.c (futex_wake): Remove.
21274         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
21275         (do_futex_wait): Use futex wrappers with error checking.
21276         * nptl/sem_wait.c: Include lowlevellock.h.
21277         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
21278         Use futex_supports_pshared.
21279         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
21280         Use futex wrappers with error checking.
21281         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
21282         Likewise.
21283         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
21284         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
21285         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
21286         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
21287         (futex_wake): Likewise.
21288         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
21289         (do_futex_wait): Use futex wrappers with error checking.
21290         (__new_sem_wait_slow): Update EINTR handling.
21291         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
21292
21293 2015-07-09  Martin Sebor  <msebor@redhat.com>
21294
21295         [BZ #18435]
21296         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21297         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
21298         * nptl/Makefile (test-xfail-tst-once5): Define.
21299
21300 2015-07-09  Roland McGrath  <roland@hack.frob.com>
21301
21302         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
21303         * elf/dl-minimal.c: For readability, reorder some definitions and
21304         introduce more page breaks.  Include <stdio.h>.
21305         (__libc_fatal): New function.
21306
21307         * include/unistd.h: Add rtld_hidden_proto for _exit.
21308         * posix/_exit.c: Add rtld_hidden_def.
21309         * sysdeps/mach/hurd/_exit.c: Likewise.
21310         * sysdeps/nacl/_exit.c: Likewise.
21311         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
21312         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
21313
21314 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21315
21316         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
21317         bndmov encoding with zero displacement.
21318
21319 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
21320             H.J. Lu  <hongjiu.lu@intel.com>
21321
21322         [BZ #18134]
21323         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
21324         * sysdeps/i386/configure: Regenerated.
21325         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
21326         (_dl_runtime_profile): Save and restore Intel MPX return bound
21327         registers when calling _dl_call_pltexit.  Add
21328         PRESERVE_BND_REGS_PREFIX before return.
21329         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
21330         (LRV_BND1_OFFSET): Likewise.
21331         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
21332         lrv_bnd1.
21333         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
21334         typo in bndmov encoding.
21335         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
21336         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
21337         branch instructions to preserve bounds.
21338
21339 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21340
21341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
21342         [GLIBC_2.22]: Add fmemopen.
21343
21344 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21345
21346         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
21347         returns an error, also try to use host port from __mach_host_self for
21348         the __vm_wire call.
21349         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
21350
21351 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21352
21353         [BZ #18400]
21354         [BZ #18648]
21355         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
21356         Fix pr_uid and pr_gid members.
21357         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
21358         definition to elf_greg_t.
21359
21360 2015-07-08  Roland McGrath  <roland@hack.frob.com>
21361
21362         [BZ #18383]
21363         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
21364         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
21365         * sysdeps/arm/configure: Regenerated.
21366         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
21367         (test-xfail-tst-tlsalign-static): Variable removed.
21368
21369         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
21370         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
21371         rather than explicit 'ln -s'.
21372
21373         * resolv/rpc/netdb.h: New file.
21374         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
21375
21376 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21377
21378         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
21379         length buffers.
21380         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
21381         test-skeleton.c.
21382
21383         [BZ #6544]
21384         [BZ #11216]
21385         [BZ #12836]
21386         [BZ #13151]
21387         [BZ #13152]
21388         [BZ #14292]
21389         * include/stdio.h (fmemopen): Remove hidden prototype.
21390         (__fmemopen): Add new hidden prototype.
21391         * libio/Makefile: Add oldfmemopen object.
21392         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
21393         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
21394         compliance.
21395         * libio/oldfmemopen.c: New file: old fmemopen implementation for
21396         symbol compatibility.
21397         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
21398         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
21399         fmemopen.
21400         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
21401         on append and read mode.
21402         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
21403         fmemopen.
21404         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
21405         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
21406         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
21407         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
21408         Likewise.
21409         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
21410         [GLIBC_2.22]: Likewise.
21411         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
21412         Likewise.
21413         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
21414         Likewise.
21415         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
21416         [GLIBC_2.22]: Likewise.
21417         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
21418         [GLIBC_2.22]: Likewise.
21419         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
21420         [GLIBC_2.22]: Likewise.
21421         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
21422         [GLIBC_2.22]: Likewise.
21423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
21424         [GLIBC_2.22]: Likewise.
21425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
21426         [GLIBC_2.22]: Likewise.
21427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
21428         [GLIBC_2.22]: Likewise.
21429         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
21430         Likewise.
21431         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
21432         Likewise.
21433         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
21434         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
21435         [GLIBC_2.22]: Likewise.
21436         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
21437         [GLIBC_2.22]: Likewise.
21438         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
21439         [GLIBC_2.22]: Likewise.
21440         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
21441         [GLIBC_2.22]: Likewise.
21442         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
21443         Likewise.
21444         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
21445         Likewise.
21446         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
21447         Likewise.
21448         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
21449         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
21450
21451 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21452
21453         [BZ #18643]
21454         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
21455         IPV6_PATHMTU, and IPV6_DONTFRAG.
21456
21457 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
21458
21459         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
21460         and _IO_UNBUFFERED.
21461         * libio/oldfileops.c: Likewise.
21462         * libio/wfileops.c: Likewise.
21463
21464 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21465
21466         * nscd/selinux.c: Delete selinux/flask.h include.
21467
21468 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21469
21470         [BZ #18641]
21471         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
21472         (putpwent): Likewise.
21473         (getpwnam): Likewise.
21474         (getpwent_r): Likewise.
21475         (getpwuid_r): Likewise.
21476         (getpwnam_r): Likewise.
21477         (fgetpwent_r): Likewise.
21478
21479 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21480
21481         [BZ #18557]
21482         * inet/rcmd.c (__validuser2_sa): Check user first to
21483         short-circuit host check.
21484
21485 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
21486             Mikhail Ilin  <m.ilin@samsung.com>
21487
21488         [BZ #17833]
21489         * elf/Makefile (tests): Add tst-nodelete.
21490         (modules-names): Add tst-nodelete-uniquemod.
21491         (tst-nodelete-uniquemod.so-no-z-defs): New.
21492         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
21493         (tst-nodelete-zmod.so-no-z-defs): Likewise.
21494         ($(objpfx)tst-nodelete): Likewise.
21495         ($(objpfx)tst-nodelete.out): Likewise.
21496         (LDFLAGS-tst-nodelete): Likewise.
21497         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
21498         * elf/dl-close.c (_dl_close_worker): Add a parameter to
21499         implement forced object deletion.
21500         (_dl_close): Pass false to _dl_close_worker.
21501         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
21502         * elf/tst-nodelete.cc: New file.
21503         * elf/tst-nodeletelib.cc: Likewise.
21504         * elf/tst-znodeletelib.cc: Likewise.
21505         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
21506
21507 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21508
21509         [BZ #18508]
21510         * stdlib/Makefile ($(objpfx)tst-makecontext3):
21511         Depend on $(libdl).
21512         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
21513         is not called infinitely times.
21514         (backtrace_helper): New function.
21515         (trace_arg): New struct.
21516         (st1): Enlarge stack size.
21517         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21518         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
21519         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21520         Likewise.
21521
21522 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21523
21524         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21525
21526 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21527
21528         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
21529         Include sys/types.h instead of bits/types.h.
21530         Remove inclusion of bits/wordsize.h.
21531
21532 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21533
21534         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
21535         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
21536         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
21537         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
21538         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
21539         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
21540
21541 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21542
21543         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
21544         link-defines.sym.
21545         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
21546         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
21547         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
21548         and LR_SIZE.
21549         * sysdeps/i386/link-defines.sym: New file.
21550
21551 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21552
21553         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
21554         (modules-names): Add tst-auditmod3a tst-auditmod3b.
21555         ($(objpfx)tst-audit3): New rule.
21556         ($(objpfx)tst-audit3.out): Likewise.
21557         * sysdeps/i386/tst-audit3.c: New file.
21558         * sysdeps/i386/tst-audit3.h: Likewise.
21559         * sysdeps/i386/tst-auditmod3a.c: Likewise.
21560         * sysdeps/i386/tst-auditmod3b.c: Likewise.
21561
21562 2015-07-07  Torvald Riegel  <triegel@redhat.com>
21563
21564         [BZ #18633]
21565         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
21566         pointer in C code.
21567         (__strcat_c): Likewise.
21568         (__strcat_g): Likewise.
21569
21570 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
21571
21572         [BZ #18592]
21573         * misc/sbrk.c: Set errno to ENOMEM on overflow.
21574
21575 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21576
21577         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
21578         New function.  (__ieee754_sqrtf): New function.
21579         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
21580         New function.
21581         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
21582         New function.
21583
21584 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21585
21586         * sysdeps/ieee754/support.c: Remove unused file.
21587
21588 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21589
21590         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
21591         registers instead of d ones so the layout is kernel abi compatible.
21592         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
21593         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
21594         Likewise.
21595
21596 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21597
21598         * sysdeps/aarch64/libm-test-ulps: Regenerated.
21599
21600 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21601
21602         [BZ #18619]
21603         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
21604         and return argument in case of subnormal argument.
21605
21606 2015-07-01  Martin Sebor  <msebor@redhat.com>
21607
21608         [BZ #18435]
21609         * nptl/Makefile: Add tst-once5.cc.
21610         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21611         Remove macro redefinitions.
21612         * nptl/tst-once5.cc: New test.
21613
21614 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21615
21616         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
21617
21618         * sysdeps/arm/libm-test-ulps: Regenerated.
21619
21620         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
21621         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21622
21623 2015-06-30  Torvald Riegel  <triegel@redhat.com>
21624
21625         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
21626         lll_lock_wait_private and lll_futex_wake probes.
21627
21628         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21629         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
21630         Likewise.
21631         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
21632         atomic_spin_nop.
21633         * sysdeps/x86_64/bits/atomic.h: Likewise.
21634         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
21635         to atomic_spin_nop and move ...
21636         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21637         ... here and ...
21638         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
21639         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
21640         atomic_spin_nop instead of BUSY_WAIT_NOP.
21641         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
21642         Likewise.
21643         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
21644         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21645         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
21646         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
21647         instead of atomic_delay.
21648
21649 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
21650
21651         [BZ #18613]
21652         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
21653         X_ADJ not X when adjusting exponent.
21654         (__ieee754_gamma_r): Do intermediate computations in
21655         round-to-nearest then adjust overflowing and underflowing results
21656         as needed.
21657         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
21658         of X_ADJ not X when adjusting exponent.
21659         (__ieee754_gammaf_r): Do intermediate computations in
21660         round-to-nearest then adjust overflowing and underflowing results
21661         as needed.
21662         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
21663         log of X_ADJ not X when adjusting exponent.
21664         (__ieee754_gammal_r): Do intermediate computations in
21665         round-to-nearest then adjust overflowing and underflowing results
21666         as needed.  Use 1.0L not 1.0f as numerator of division.
21667         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
21668         log of X_ADJ not X when adjusting exponent.
21669         (__ieee754_gammal_r): Do intermediate computations in
21670         round-to-nearest then adjust overflowing and underflowing results
21671         as needed.  Use 1.0L not 1.0f as numerator of division.
21672         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
21673         of X_ADJ not X when adjusting exponent.
21674         (__ieee754_gammal_r): Do intermediate computations in
21675         round-to-nearest then adjust overflowing and underflowing results
21676         as needed.  Use 1.0L not 1.0f as numerator of division.
21677         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
21678         to auto-libm-test-in.
21679         (tgamma_test): Use ALL_RM_TEST.
21680         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
21681         tests of tgamma with spurious-overflow.
21682         * math/auto-libm-test-out: Regenerated.
21683         * math/gen-libm-have-vector-test.sh: Do not check for START.
21684         * sysdeps/i386/fpu/libm-test-ulps: Update.
21685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21686
21687         [BZ #18612]
21688         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
21689         arguments, just return 0.5 times the argument, with underflow
21690         forced as needed.
21691         * math/auto-libm-test-in: Add more tests of j1.
21692         * math/auto-libm-test-out: Regenerated.
21693
21694         [BZ #16559]
21695         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
21696         (__ieee754_j1): Force underflow exception for small results.
21697         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21698         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
21699         (__ieee754_j1f): Force underflow exception for small results.
21700         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21701         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21702         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21703         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
21704         (__ieee754_j1l): Force underflow exception for small results.
21705         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21706         * math/auto-libm-test-in: Add more tests of j1 and jn.
21707         * math/auto-libm-test-out: Regenerated.
21708
21709         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
21710         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
21711         (PF_MPLS): Likewise.
21712         (AF_IB): Likewise.
21713         (AF_MPLS): Likewise.
21714         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
21715         value and macro.
21716         (MS_RMT_MASK): Include MS_LAZYTIME.
21717
21718 2015-06-26  Mel Gorman  <mgorman@suse.de>
21719
21720         [BZ #18502]
21721         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
21722         already minimal.
21723
21724 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
21725
21726         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
21727         (DT_MIPS_NUM): Update.
21728         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
21729         DT_MIPS_RLD_MAP_REL.
21730
21731 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
21732
21733         [BZ #16559]
21734         [BZ #18602]
21735         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
21736         round-to-nearest internally then recompute results that
21737         underflowed to zero in the original rounding mode.
21738         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21739         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21740         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21741         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21742         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
21743         * sysdeps/i386/fpu/libm-test-ulps: Update.
21744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21745
21746 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
21747
21748         * NEWS: Fixed description of link with vector math library.
21749
21750 2015-06-25  Andreas Schwab  <schwab@suse.de>
21751
21752         [BZ #18549]
21753         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
21754         * libio/test-fmemopen.c (do_test): Add test for it.
21755
21756 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21757
21758         [BZ #17841]
21759         * Makeconfig (no-pie-ldflag): New.
21760         (+link): Set to $(+link-pie) if default to PIE.
21761         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
21762         * config.make.in (build-pie-default): New.
21763         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
21764         is default.  AC_SUBST.
21765         * configure: Regenerated.
21766         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
21767
21768 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21769
21770         * nptl/descr.h (struct pthread): Change type of field setxid_futex
21771         to 'unsigned int'.
21772
21773         * resolv/gai_misc.h (struct waitlist): Change type of field
21774         counterp to 'volatile unsigned int *'.
21775         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
21776         FUTEXADDR and OLDVAL.
21777         * resolv/getaddrinfo_a.c (getaddrinfo_a):
21778         Give local variable TOTAL type 'volatile unsigned int'.
21779         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21780         * resolv/gai_suspend.c (gai_suspend):
21781         Give local variable CNTR type 'unsigned int'.
21782
21783         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
21784         counterp to 'volatile unsigned int *'.
21785         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
21786         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
21787         (aio_suspend): Give local variable CNTR type 'unsigned int'.
21788         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
21789         Give local variable TOTAL type 'volatile unsigned int'.
21790         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21791
21792 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21793
21794         [BZ #18383]
21795         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
21796         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
21797         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
21798         comment for i386/x86-64.
21799         (test-xfail-tst-tlsalign-extern-static): Removed.
21800
21801 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21802
21803         * math/test-double.h: New file.
21804         * math/test-float.h: Likewise.
21805         * math/test-ldouble.h: Likewise.
21806         * math/test-math-inline.h: Likewise.
21807         * math/test-math-no-inline.h: Likewise.
21808         * math/test-math-scalar.h: Likewise.
21809         * math/test-math-vector.h: Likewise.
21810         * math/test-vec-loop.h: Remove file.  Contents moved into
21811         test-math-vector.h.
21812         * math/libm-test.inc (MATHCONST): Do not document macro.
21813         * math/test-double.c: Include test-double.h, test-math-no-inline.h
21814         and test-math-scalar.h.
21815         (FUNC): Remove macro.
21816         (FUNC_TEST): Likewise.
21817         (FLOAT): Likewise.
21818         (MATHCONST): Likewise.
21819         (PRINTF_EXPR): Likewise.
21820         (PRINTF_XEXPR): Likewise.
21821         (PRINTF_NEXPR): Likewise.
21822         (TEST_DOUBLE): Likewise.
21823         (TEST_MATHVEC): Likewise.
21824         (__NO_MATH_INLINES): Likewise.
21825         * math/test-float.c: Include test-float.h, test-math-no-inline.h
21826         and test-math-scalar.h.
21827         (FUNC): Remove macro.
21828         (FUNC_TEST): Likewise.
21829         (FLOAT): Likewise.
21830         (MATHCONST): Likewise.
21831         (PRINTF_EXPR): Likewise.
21832         (PRINTF_XEXPR): Likewise.
21833         (PRINTF_NEXPR): Likewise.
21834         (TEST_FLOAT): Likewise.
21835         (TEST_MATHVEC): Likewise.
21836         (__NO_MATH_INLINES): Likewise.
21837         * math/test-idouble.c: Include test-double.h, test-math-inline.h
21838         and test-math-scalar.h.
21839         (FUNC): Remove macro.
21840         (FUNC_TEST): Likewise.
21841         (FLOAT): Likewise.
21842         (MATHCONST): Likewise.
21843         (PRINTF_EXPR): Likewise.
21844         (PRINTF_XEXPR): Likewise.
21845         (PRINTF_NEXPR): Likewise.
21846         (TEST_DOUBLE): Likewise.
21847         (TEST_MATHVEC): Likewise.
21848         (TEST_INLINE): Likewise.
21849         (__NO_MATH_INLINES): Likewise.
21850         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
21851         test-math-scalar.h.
21852         (FUNC): Remove macro.
21853         (FUNC_TEST): Likewise.
21854         (FLOAT): Likewise.
21855         (MATHCONST): Likewise.
21856         (PRINTF_EXPR): Likewise.
21857         (PRINTF_XEXPR): Likewise.
21858         (PRINTF_NEXPR): Likewise.
21859         (TEST_FLOAT): Likewise.
21860         (TEST_MATHVEC): Likewise.
21861         (TEST_INLINE): Likewise.
21862         (__NO_MATH_INLINES): Likewise.
21863         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
21864         and test-math-scalar.h.
21865         (FUNC): Remove macro.
21866         (FUNC_TEST): Likewise.
21867         (FLOAT): Likewise.
21868         (MATHCONST): Likewise.
21869         (PRINTF_EXPR): Likewise.
21870         (PRINTF_XEXPR): Likewise.
21871         (PRINTF_NEXPR): Likewise.
21872         (TEST_LDOUBLE): Likewise.
21873         (TEST_MATHVEC): Likewise.
21874         (TEST_INLINE): Likewise.
21875         (__NO_MATH_INLINES): Likewise.
21876         * math/test-ldouble.c: Include test-ldouble.h,
21877         test-math-no-inline.h and test-math-scalar.h.
21878         (FUNC): Remove macro.
21879         (FUNC_TEST): Likewise.
21880         (FLOAT): Likewise.
21881         (MATHCONST): Likewise.
21882         (PRINTF_EXPR): Likewise.
21883         (PRINTF_XEXPR): Likewise.
21884         (PRINTF_NEXPR): Likewise.
21885         (TEST_LDOUBLE): Likewise.
21886         (TEST_MATHVEC): Likewise.
21887         (__NO_MATH_INLINES): Likewise.
21888         * math/test-double-vlen2.h: Include test-double.h,
21889         test-math-no-inline.h and test-math-vector.h.
21890         (FLOAT): Remove macro.
21891         (FUNC): Likewise.
21892         (MATHCONST): Likewise.
21893         (PRINTF_EXPR): Likewise.
21894         (PRINTF_XEXPR): Likewise.
21895         (PRINTF_NEXPR): Likewise.
21896         (TEST_DOUBLE): Likewise.
21897         (TEST_MATHVEC): Likewise.
21898         (__NO_MATH_INLINES): Likewise.
21899         (CNCT): Likewise.
21900         (CONCAT): Likewise.
21901         (WRAPPER_NAME): Likewise.
21902         (WRAPPER_DECL): Likewise.
21903         (WRAPPER_DECL_ff): Likewise.
21904         (WRAPPER_DECL_fFF): Likewise.
21905         (VECTOR_WRAPPER): Likewise.
21906         (VECTOR_WRAPPER_ff): Likewise.
21907         (VECTOR_WRAPPER_fFF): Likewise.
21908         (VEC_LEN): New macro.
21909         * math/test-double-vlen4.h: Include test-double.h,
21910         test-math-no-inline.h and test-math-vector.h.
21911         (FLOAT): Remove macro.
21912         (FUNC): Likewise.
21913         (MATHCONST): Likewise.
21914         (PRINTF_EXPR): Likewise.
21915         (PRINTF_XEXPR): Likewise.
21916         (PRINTF_NEXPR): Likewise.
21917         (TEST_DOUBLE): Likewise.
21918         (TEST_MATHVEC): Likewise.
21919         (__NO_MATH_INLINES): Likewise.
21920         (CNCT): Likewise.
21921         (CONCAT): Likewise.
21922         (WRAPPER_NAME): Likewise.
21923         (WRAPPER_DECL): Likewise.
21924         (WRAPPER_DECL_ff): Likewise.
21925         (WRAPPER_DECL_fFF): Likewise.
21926         (VECTOR_WRAPPER): Likewise.
21927         (VECTOR_WRAPPER_ff): Likewise.
21928         (VECTOR_WRAPPER_fFF): Likewise.
21929         (VEC_LEN): New macro.
21930         * math/test-double-vlen8.h: Include test-double.h,
21931         test-math-no-inline.h and test-math-vector.h.
21932         (FLOAT): Remove macro.
21933         (FUNC): Likewise.
21934         (MATHCONST): Likewise.
21935         (PRINTF_EXPR): Likewise.
21936         (PRINTF_XEXPR): Likewise.
21937         (PRINTF_NEXPR): Likewise.
21938         (TEST_DOUBLE): Likewise.
21939         (TEST_MATHVEC): Likewise.
21940         (__NO_MATH_INLINES): Likewise.
21941         (CNCT): Likewise.
21942         (CONCAT): Likewise.
21943         (WRAPPER_NAME): Likewise.
21944         (WRAPPER_DECL): Likewise.
21945         (WRAPPER_DECL_ff): Likewise.
21946         (WRAPPER_DECL_fFF): Likewise.
21947         (VECTOR_WRAPPER): Likewise.
21948         (VECTOR_WRAPPER_ff): Likewise.
21949         (VECTOR_WRAPPER_fFF): Likewise.
21950         (VEC_LEN): New macro.
21951         * math/test-float-vlen4.h: Include test-float.h,
21952         test-math-no-inline.h and test-math-vector.h.
21953         (FLOAT): Remove macro.
21954         (FUNC): Likewise.
21955         (MATHCONST): Likewise.
21956         (PRINTF_EXPR): Likewise.
21957         (PRINTF_XEXPR): Likewise.
21958         (PRINTF_NEXPR): Likewise.
21959         (TEST_FLOAT): Likewise.
21960         (TEST_MATHVEC): Likewise.
21961         (__NO_MATH_INLINES): Likewise.
21962         (CNCT): Likewise.
21963         (CONCAT): Likewise.
21964         (WRAPPER_NAME): Likewise.
21965         (WRAPPER_DECL): Likewise.
21966         (WRAPPER_DECL_ff): Likewise.
21967         (WRAPPER_DECL_fFF): Likewise.
21968         (VECTOR_WRAPPER): Likewise.
21969         (VECTOR_WRAPPER_ff): Likewise.
21970         (VECTOR_WRAPPER_fFF): Likewise.
21971         (VEC_LEN): New macro.
21972         * math/test-float-vlen8.h: Include test-float.h,
21973         test-math-no-inline.h and test-math-vector.h.
21974         (FLOAT): Remove macro.
21975         (FUNC): Likewise.
21976         (MATHCONST): Likewise.
21977         (PRINTF_EXPR): Likewise.
21978         (PRINTF_XEXPR): Likewise.
21979         (PRINTF_NEXPR): Likewise.
21980         (TEST_FLOAT): Likewise.
21981         (TEST_MATHVEC): Likewise.
21982         (__NO_MATH_INLINES): Likewise.
21983         (CNCT): Likewise.
21984         (CONCAT): Likewise.
21985         (WRAPPER_NAME): Likewise.
21986         (WRAPPER_DECL): Likewise.
21987         (WRAPPER_DECL_ff): Likewise.
21988         (WRAPPER_DECL_fFF): Likewise.
21989         (VECTOR_WRAPPER): Likewise.
21990         (VECTOR_WRAPPER_ff): Likewise.
21991         (VECTOR_WRAPPER_fFF): Likewise.
21992         (VEC_LEN): New macro.
21993         * math/test-float-vlen16.h: Include test-float.h,
21994         test-math-no-inline.h and test-math-vector.h.
21995         (FLOAT): Remove macro.
21996         (FUNC): Likewise.
21997         (MATHCONST): Likewise.
21998         (PRINTF_EXPR): Likewise.
21999         (PRINTF_XEXPR): Likewise.
22000         (PRINTF_NEXPR): Likewise.
22001         (TEST_FLOAT): Likewise.
22002         (TEST_MATHVEC): Likewise.
22003         (__NO_MATH_INLINES): Likewise.
22004         (CNCT): Likewise.
22005         (CONCAT): Likewise.
22006         (WRAPPER_NAME): Likewise.
22007         (WRAPPER_DECL): Likewise.
22008         (WRAPPER_DECL_ff): Likewise.
22009         (WRAPPER_DECL_fFF): Likewise.
22010         (VECTOR_WRAPPER): Likewise.
22011         (VECTOR_WRAPPER_ff): Likewise.
22012         (VECTOR_WRAPPER_fFF): Likewise.
22013         (VEC_LEN): New macro.
22014         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
22015         test-vec-loop.h.
22016         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22017         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22018         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22019         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22020         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22021         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22022         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22023
22024 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22025
22026         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
22027         (__getlogin_r): ... this.
22028
22029 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22030
22031         [BZ #18594]
22032         * math/s_ccosh.c (__ccosh): Compare with least normal value
22033         instead of comparing class with FP_SUBNORMAL.
22034         * math/s_ccoshf.c (__ccoshf): Likewise.
22035         * math/s_ccoshl.c (__ccoshl): Likewise.
22036         * math/s_cexp.c (__cexp): Likewise.
22037         * math/s_cexpf.c (__cexpf): Likewise.
22038         * math/s_cexpl.c (__cexpl): Likewise.
22039         * math/s_csin.c (__csin): Likewise.
22040         * math/s_csinf.c (__csinf): Likewise.
22041         * math/s_csinh.c (__csinh): Likewise.
22042         * math/s_csinhf.c (__csinhf): Likewise.
22043         * math/s_csinhl.c (__csinhl): Likewise.
22044         * math/s_csinl.c (__csinl): Likewise.
22045         * math/s_ctan.c (__ctan): Likewise.
22046         * math/s_ctanf.c (__ctanf): Likewise.
22047         * math/s_ctanh.c (__ctanh): Likewise.
22048         * math/s_ctanhf.c (__ctanhf): Likewise.
22049         * math/s_ctanhl.c (__ctanhl): Likewise.
22050         * math/s_ctanl.c (__ctanl): Likewise.
22051         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
22052         csin, csinh, ctan and ctanh.
22053         * math/auto-libm-test-out: Regenerated.
22054         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
22055         * sysdeps/i386/fpu/libm-test-ulps: Update.
22056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22057
22058 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22059
22060         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
22061         return value is wrong, print the expected value too.
22062
22063 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22064
22065         [BZ #18585]
22066         * elf/readlib.c (is_gdb_python_file): New.
22067         (process_file): Don't issue errors on filenames with -gdb.py
22068         suffix.
22069
22070 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22071
22072         * math/auto-libm-test-in: Add more tests of csin and csinh.
22073         * math/auto-libm-test-out: Regenerated.
22074         * math/libm-test.inc (csin_test_data): Remove tests moved to
22075         auto-libm-test-in.
22076         (csinh_test_data): Likewise.
22077
22078         [BZ #18593]
22079         * math/s_csin.c (__csin): Negate before rather than after possibly
22080         overflowing multiplication.
22081         * math/s_csinf.c (__csinf): Likewise.
22082         * math/s_csinh.c (__csinh): Likewise.
22083         * math/s_csinhf.c (__csinhf): Likewise.
22084         * math/s_csinhl.c (__csinhl): Likewise.
22085         * math/s_csinl.c (__csinl): Likewise.
22086         * math/auto-libm-test-in: Add some tests of csin and csinh.
22087         * math/auto-libm-test-out: Regenerated.
22088         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
22089         (csinh_test_data): Likewise.
22090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22091
22092         [BZ #18586]
22093         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
22094         underflow exception for small results.
22095
22096 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
22097
22098         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22099         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
22100         variable and included header.
22101         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
22102         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
22103         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
22104         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
22105         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
22106         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
22107         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
22108         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
22109         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
22110         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
22111         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
22112         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
22113         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
22114         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
22115         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
22116         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
22117
22118 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22119
22120         [BZ #16526]
22121         [BZ #16538]
22122         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
22123         (__sin): Force underflow exception for arguments with small
22124         absolute value.
22125         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
22126         (__kernel_sinf): Force underflow exception for arguments with
22127         small absolute value.
22128         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
22129         (__kernel_sincosl): Force underflow exception for arguments with
22130         small absolute value.
22131         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
22132         (__kernel_sinl): Force underflow exception for arguments with
22133         small absolute value.
22134         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
22135         (__kernel_sincosl): Force underflow exception for arguments with
22136         small absolute value.
22137         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
22138         (__kernel_sinl): Force underflow exception for arguments with
22139         small absolute value.
22140         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
22141         (__kernel_sinl): Force underflow exception for arguments with
22142         small absolute value.
22143         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
22144         (__kernel_sinf): Force underflow exception for arguments with
22145         small absolute value.
22146         * math/auto-libm-test-in: Add more tests of sin and sincos.
22147         * math/auto-libm-test-out: Regenerated.
22148
22149         [BZ #18245]
22150         [BZ #18583]
22151         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
22152         (__kernel_standard_l): Use feholdexcept and fesetenv around
22153         conversion to double instead of special-casing overflow and
22154         underflow.
22155         * math/libm-test.inc (fmod_test_data): Add more tests.
22156         (remainder_test_data): Likewise.
22157         (sqrt_test_data): Likewise.
22158
22159 2015-06-23  Torvald Riegel  <triegel@redhat.com>
22160
22161         [BZ #17403]
22162         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
22163         atomic_read_barrier, atomic_write_barrier): Define.
22164         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
22165         atomic_read_barrier, atomic_write_barrier): Define.
22166
22167 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22168
22169         * math/Makefile [$(PERL) != no]
22170         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
22171         dependency on libm-test.stmp below the inclusion of Rules.
22172
22173 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
22174
22175         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22176         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
22177         and included header.
22178         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
22179         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
22180         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
22181         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
22182         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
22183         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
22184         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
22185         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
22186         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
22187         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
22188         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
22189         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
22190         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
22191         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
22192         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
22193         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
22194         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
22195         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
22196         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
22197
22198 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22199
22200         [BZ #18371]
22201         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
22202         intermediate but not final result might underflow.
22203         * math/s_csqrtf.c (__csqrtf): Likewise.
22204         * math/s_csqrtl.c (__csqrtl): Likewise.
22205         * math/auto-libm-test-in: Add more tests of csqrt.
22206         * math/auto-libm-test-out: Regenerated.
22207         * sysdeps/i386/fpu/libm-test-ulps: Update.
22208
22209         [BZ #18219]
22210         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
22211         threshold on absolute value of exponent for which scaling is used.
22212         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
22213         * math/auto-libm-test-in: Add more tests of exp2.
22214         * math/auto-libm-test-out: Regenerated.
22215
22216 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
22217
22218         [BZ #17977]
22219         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
22220         when initializing interface list, based on the bug analysis
22221         and the patch proposed by Eric Newton.
22222         * resolv/tst-res_hconf_reorder.c: New test.
22223         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
22224         tst-res_hconf_reorder.
22225         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
22226         and $(shared-thread-library).
22227         (tst-res_hconf_reorder-ENV): New variable.
22228
22229         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
22230         in comment.
22231
22232 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
22233
22234         [BZ #16353]
22235         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
22236         (__expm1): Force underflow exception for arguments with small
22237         absolute value.
22238         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
22239         (__expm1f): Force underflow exception for arguments with small
22240         absolute value.
22241         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
22242         (__expm1): Force underflow exception for arguments with small
22243         absolute value.
22244         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
22245         (__expm1f): Force underflow exception for arguments with small
22246         absolute value.
22247         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22248         Check for small arguments before calling __expm1.
22249         * math/auto-libm-test-in: Do not mark underflow exceptions as
22250         possibly missing for bug 16353.
22251         * math/auto-libm-test-out: Regenerated.
22252
22253 2015-06-22  Andreas Schwab  <schwab@suse.de>
22254
22255         [BZ #18513]
22256         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
22257         PTR queries.
22258
22259 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
22260
22261         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
22262
22263         * string/strcoll_l.c: Remove unused struct element idxnow.
22264
22265 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
22266
22267         [BZ #18569]
22268         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
22269         underflow and return argument in case of subnormal argument.
22270         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
22271         Likewise.
22272         * math/auto-libm-test-in: Add more tests of expm1.
22273         * math/auto-libm-test-out: Regenerated.
22274
22275         [BZ #16361]
22276         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22277         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22278         tiny results.
22279         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22280         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22281         tiny results.
22282         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
22283         mark underflow exceptions as possibly missing for bug 16361.
22284         * math/auto-libm-test-out: Regenerated.
22285
22286 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
22287
22288         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
22289         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
22290         Remove variable.
22291         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
22292         (test-xfail-XOPEN2K8/utmpx.h/conform).
22293
22294         * conform/conformtest.pl ($xerrors): New variable.
22295         (note_error): New function.
22296         (compiletest): New argument $xfail.  Use not_error.
22297         (runtest): Likewise.
22298         (top level): Handle xfail- lines.  Update calls to compiletest and
22299         runtest.  Handle xfail- and optional- in headers listed with
22300         allow-header.
22301         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
22302         (O_EXEC): Likewise.
22303         (O_SEARCH): Likewise.
22304         * conform/data/stropts.h-data (ioctl): Likewise.
22305         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
22306         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
22307         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
22308         (msghdr.msg_controllen): Likewise.
22309         (cmsghdr.cmsg_len): Likewise.
22310         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
22311         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
22312         variable.
22313         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
22314         (test-xfail-XPG4/stropts.h/conform): Likewise.
22315         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
22316         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
22317         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
22318         (test-xfail-UNIX98/stropts.h/conform): Likewise.
22319         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
22320         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
22321         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
22322         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
22323         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
22324         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
22325         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
22326         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
22327         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
22328         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
22329         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
22330         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
22331         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
22332         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
22333         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
22334
22335 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22336
22337         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
22338         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
22339         definitions for proper unfolding of __MATHDECL_VEC.
22340
22341 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22342
22343         * benchtests/bench-strcoll.c:
22344         Include string.h.
22345         (main): Remove unused variable res.
22346
22347 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22348
22349         * timezone/Makefile (%/UTC %/Universal):
22350         Generate test-result files for UTC and Universal.
22351
22352 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22353
22354         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22355
22356 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
22357
22358         [BZ #16350]
22359         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
22360         for arguments with small absolute value.
22361         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
22362         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
22363         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
22364         (__asinh): Force underflow exception for arguments with small
22365         absolute value.
22366         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
22367         (__asinhf): Force underflow exception for arguments with small
22368         absolute value.
22369         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
22370         (__asinhl): Force underflow exception for arguments with small
22371         absolute value.
22372         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
22373         (__asinhl): Force underflow exception for arguments with small
22374         absolute value.
22375         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
22376         (__asinhl): Force underflow exception for arguments with small
22377         absolute value.
22378         * math/auto-libm-test-in: Do not mark underflow exceptions as
22379         possibly missing for bug 16350.
22380         * math/auto-libm-test-out: Regenerated.
22381
22382         * include/bits/ipc.h: Remove file.
22383         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
22384         variable.
22385         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
22386         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
22387         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
22388         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
22389         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
22390         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
22391         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
22392         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
22393         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
22394
22395         * math/auto-libm-test-in: Remove spurious underflow allowance for
22396         tests of cexp.
22397         * math/auto-libm-test-out: Regenerated.
22398
22399         [BZ #18558]
22400         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
22401         unconditional definition.
22402         (MCAST_BLOCK_SOURCE): Likewise.
22403         (MCAST_UNBLOCK_SOURCE): Likewise.
22404         (MCAST_LEAVE_GROUP): Likewise.
22405         (MCAST_JOIN_SOURCE_GROUP): Likewise.
22406         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
22407         (MCAST_MSFILTER): Likewise.
22408         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
22409         Remove variable.
22410         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
22411         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
22412         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
22413         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
22414         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
22415
22416 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
22417
22418         * NEWS: Mention addition of x86_64 vector sincosf.
22419         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
22420         * math/test-float-vlen4.h: Likewise.
22421         * math/test-float-vlen8.h: Likewise.
22422         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22423         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
22424         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22425         * sysdeps/x86_64/fpu/Versions: New versions added.
22426         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22427         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22428         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22429         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
22430         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
22431         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
22432         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
22433         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
22434         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
22435         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
22436         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
22437         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
22438         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
22439         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
22440         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
22441         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
22442         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
22443         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22444         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22445         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22446         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22447         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22448         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22449         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22450
22451         * NEWS: Mention addition of x86_64 vector sincos.
22452         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
22453         * math/math.h (__MATHDECL_VEC): New macro.
22454         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
22455         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
22456         declaration under condition.
22457         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
22458         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
22459         TEST_VEC_LOOP change.
22460         * math/test-double-vlen4.h: Likewise.
22461         * math/test-double-vlen8.h: Likewise.
22462         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
22463         * math/test-float-vlen4.h: Likewise.
22464         * math/test-float-vlen8.h: Likewise.
22465         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22466         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
22467         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22468         * sysdeps/x86_64/fpu/Versions: New versions added.
22469         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22470         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22471         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22472         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
22473         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
22474         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
22475         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
22476         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
22477         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
22478         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
22479         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
22480         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
22481         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
22482         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
22483         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
22484         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
22485         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
22486         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22487         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22488         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22489         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22490         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22491         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22492         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22493
22494         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22495         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22496         redirections for powf.
22497         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22498         * sysdeps/x86_64/fpu/Versions: New versions added.
22499         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22500         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22501         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22502         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
22503         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
22504         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
22505         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
22506         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
22507         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
22508         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
22509         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
22510         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
22511         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
22512         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
22513         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
22514         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
22515         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
22516         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22517         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22518         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22519         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22520         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22521         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22522         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22523         * math/test-float-vlen16.h: Fixed 2 argument macro.
22524         * math/test-float-vlen4.h: Likewise.
22525         * math/test-float-vlen8.h: Likewise.
22526         * NEWS: Mention addition of x86_64 vector powf.
22527
22528 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
22529
22530         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22531         and redefine.
22532         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22533         and redefine.
22534         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
22535         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22536         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22537
22538         [BZ #18553]
22539         * resource/getpriority.c (getpriority): Rename to __getpriority
22540         and define as weak alias of __getpriority.
22541         * resource/setpriority.c (setpriority): Rename to __setpriority
22542         and define as weak alias of __setpriority.
22543         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
22544         __getpriority and define as weak alias of __getpriority.
22545         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
22546         __setpriority and define as weak alias of __setpriority.
22547         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
22548         strong name.
22549         (setpriority): Use __setpriority as strong name.
22550         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
22551         __getpriority and define as weak alias of __getpriority.
22552         * include/sys/resource.h (__getpriority): Declare.  Use
22553         libc_hidden_proto.
22554         (__setpriority): Likewise.
22555         (getpriority): Don't use libc_hidden_proto.
22556         (setpriority): Likewise.
22557         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
22558         getpriority.  Call __setpriority instead of setpriority.
22559         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
22560         Remove variable.
22561
22562         [BZ #18547]
22563         * misc/getttyent.c (getttynam): Rename to __getttynam and define
22564         as weak alias of __getttynam.  Use prototype function definition.
22565         Call __setttyent, __getttyent and __endttyent instead of
22566         setttyent, getttyent and endttyent.
22567         (getttyent): Rename to __getttyent and define as weak alias of
22568         __getttyent.  Call __setttyent instead of setttyent.  Call
22569         __fgets_unlocked instead of fgets_unlocked.
22570         (setttyent): Rename to __setttyent and define as weak alias of
22571         __setttyent.
22572         (endttyent): Rename to __endttyent and define as weak alias of
22573         __endttyent.
22574         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
22575         (__setttyent): Likewise.
22576         (__endttyent): Likewise.
22577         (getttyent): Don't use libc_hidden_proto.
22578         (setttyent): Likewise.
22579         (endttyent): Likewise.
22580         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
22581         __endttyent instead of setttyent, getttyent and endttyent.
22582         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
22583         Remove variable.
22584
22585         [BZ #18546]
22586         * socket/recv.c (__recv): Use libc_hidden_def.
22587         * socket/socket.c (__socket): Likewise.
22588         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22589         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22590         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
22591         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
22592         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
22593         libc_hidden_def.
22594         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
22595         libc_hidden_weak.
22596         * include/sys/socket.h (__socket): Do not use attribute_hidden.
22597         Use libc_hidden_proto.
22598         (__recv): Likewise.
22599         * socket/Versions (libc): Export __recv and __socket at version
22600         GLIBC_PRIVATE.
22601         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
22602         instead of recv.
22603         (init_mq_netlink): Call __socket instead of socket.
22604         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
22605         Remove variable.
22606
22607         [BZ #18545]
22608         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
22609         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
22610         hidden_weak.
22611         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
22612         define as alias of __mq_timedsend.  Use hidden_weak.
22613         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
22614         __mq_timedsend as strong name.
22615         (mq_timedreceive): Use __mq_timedreceive as strong name.
22616         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
22617         (__mq_timedreceive): Likewise.
22618         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
22619         __mq_timedreceive instead of mq_timedreceive.
22620         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
22621         instead of mq_timedsend.
22622         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
22623         Remove variable.
22624
22625         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
22626         hidden_def and hidden_weak instead of libc_hidden_def and
22627         libc_hidden_weak.
22628         (top level): Refer to hidden_def in comment.
22629         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
22630         macro.  Use it instead of libc_hidden_def.
22631         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
22632         specify __GI_* name explicitly.
22633         (mq_timedreceive): Likewise.
22634         (mq_setattr): Likewise.
22635
22636         [BZ #18544]
22637         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
22638         __pthread_barrier_init and define as weak alias of
22639         __pthread_barrier_init.
22640         * sysdeps/sparc/nptl/pthread_barrier_init.c
22641         (pthread_barrier_init): Likewise.
22642         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
22643         __pthread_barrier_wait and define as weak alias of
22644         __pthread_barrier_wait.
22645         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22646         (pthread_barrier_wait): Likewise.
22647         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22648         (pthread_barrier_wait): Likewise.
22649         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
22650         (pthread_barrier_wait): Likewise.
22651         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
22652         (pthread_barrier_wait): Likewise.
22653         * nptl/Versions (libpthread): Export __pthread_barrier_init and
22654         __pthread_barrier_wait at version GLIBC_PRIVATE.
22655         * include/pthread.h (__pthread_barrier_init): Declare.
22656         (__pthread_barrier_wait): Likewise.
22657         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
22658         Call __pthread_barrier_wait instead of pthread_barrier_wait.
22659         (helper_thread): Likewise.
22660         (init_mq_netlink): Call __pthread_barrier_init instead of
22661         pthread_barrier_init.
22662
22663         [BZ #18542]
22664         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
22665         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
22666         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
22667         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
22668         vswscanf.
22669         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
22670         Remove variable.
22671
22672         [BZ #18540]
22673         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
22674         strong alias of _IO_fflush.  Use libc_hidden_def.
22675         * libio/iofflush_u.c (fflush_unlocked): Rename to
22676         __fflush_unlocked and define as weak alias of __fflush_unlocked.
22677         Use libc_hidden_weak.
22678         * include/stdio.h (__fflush_unlocked): Declare.  Use
22679         libc_hidden_proto.
22680         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
22681         fflush_unlocked.
22682         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
22683         Remove variable.
22684
22685         [BZ #18539]
22686         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
22687         define as weak alias of __addseverity.
22688         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
22689         Remove variable.
22690         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
22691         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
22692         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
22693
22694         [BZ #18536]
22695         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
22696         (__tfind): Likewise.
22697         (__tdelete): Likewise.
22698         (__twalk): Likewise.
22699         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
22700         __twalk to GLIBC_PRIVATE.
22701         * include/search.h (__tsearch): Use libc_hidden_proto.
22702         (__tfind): Likewise.
22703         (__tdelete): Likewise.
22704         (__twalk): Likewise.
22705         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
22706         Call __tdelete instead of tdelete.
22707         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
22708         tfind.  Call __tsearch instead of tsearch.
22709         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
22710         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
22711         Remove variable.
22712         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
22713
22714         [BZ #18534]
22715         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
22716         (dprintf): Define as a weak alias of __dprintf, not a strong
22717         alias.
22718         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
22719         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
22720         dprintf.
22721         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
22722         Remove variable.
22723         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
22724         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
22725
22726         [BZ #18533]
22727         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
22728         not a strong alias.
22729         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
22730         Remove variable.
22731
22732         [BZ #18532]
22733         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
22734         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
22735         (in6addr_loopback): Rename to __in6addr_loopback and define as
22736         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
22737         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
22738         libc_hidden_proto.
22739         (__in6addr_any): Likewise.
22740         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
22741         in6addr_any.
22742         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
22743         variable.
22744         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
22745
22746 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
22747
22748         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
22749         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
22750         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22751         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22752         redirections for pow.
22753         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22754         * sysdeps/x86_64/fpu/Versions: New versions added.
22755         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22756         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22757         build of SSE, AVX2 and AVX512 IFUNC versions.
22758         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
22759         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
22760         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
22761         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
22762         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
22763         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
22764         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
22765         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
22766         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
22767         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
22768         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
22769         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
22770         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
22771         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
22772         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22773         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22774         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22775         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22776         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22777         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22778         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22779         * NEWS: Mention addition of x86_64 vector pow.
22780
22781         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22782         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22783         redirections for expf.
22784         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22785         * sysdeps/x86_64/fpu/Versions: New versions added.
22786         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22787         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22788         build of SSE, AVX2 and AVX512 IFUNC versions.
22789         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
22790         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
22791         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
22792         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
22793         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
22794         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
22795         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
22796         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
22797         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
22798         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
22799         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
22800         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
22801         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
22802         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22803         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22804         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22805         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22806         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22807         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22808         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22809         * NEWS: Mention addition of x86_64 vector expf.
22810
22811         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
22812         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
22813         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22814         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22815         redirections for exp.
22816         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22817         * sysdeps/x86_64/fpu/Versions: New versions added.
22818         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22819         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22820         build of SSE, AVX2 and AVX512 IFUNC versions.
22821         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
22822         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
22823         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
22824         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
22825         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
22826         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
22827         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
22828         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
22829         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
22830         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
22831         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
22832         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
22833         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
22834         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22835         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22836         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22837         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22838         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22839         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22840         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22841         * NEWS: Mention addition of x86_64 vector exp.
22842
22843         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22844         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22845         redirections for logf.
22846         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22847         * sysdeps/x86_64/fpu/Versions: New versions added.
22848         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22849         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22850         build of SSE, AVX2 and AVX512 IFUNC versions.
22851         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
22852         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
22853         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
22854         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
22855         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
22856         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
22857         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
22858         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
22859         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
22860         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
22861         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
22862         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
22863         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
22864         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22865         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22866         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22867         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22868         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22869         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22870         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22871         * NEWS: Mention addition of x86_64 vector logf.
22872
22873         * bits/libm-simd-decl-stubs.h: Added stubs for log.
22874         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
22875         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22876         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22877         redirections for log.
22878         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22879         * sysdeps/x86_64/fpu/Versions: New versions added.
22880         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22881         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22882         build of SSE, AVX2 and AVX512 IFUNC versions.
22883         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
22884         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
22885         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
22886         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
22887         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
22888         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
22889         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
22890         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
22891         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
22892         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
22893         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
22894         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
22895         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
22896         test.
22897         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22898         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22899         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22900         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22901         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22902         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22903         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22904         * NEWS: Mention addition of x86_64 vector log.
22905
22906 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22907
22908         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
22909         cfi_adjust_cfa_offset argument.
22910         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
22911         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
22912
22913         [BZ #18034]
22914         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
22915         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
22916         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
22917         ordering using ldar.
22918         (_dl_tlsdesc_dynamic): Likewise.
22919         (_dl_tlsdesc_return_lazy): Likewise.
22920         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
22921         relaxed atomics instead of volatile and synchronize with release store.
22922         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
22923         volatile.
22924         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22925
22926 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
22927
22928         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22929         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
22930         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22931         * sysdeps/x86_64/fpu/Versions: New versions added.
22932         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22933         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22934         build of SSE, AVX2 and AVX512 IFUNC versions.
22935         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
22936         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
22937         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
22938         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
22939         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
22940         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
22941         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
22942         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
22943         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
22944         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
22945         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
22946         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
22947         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
22948         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22949         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22950         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22951         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22952         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22953         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22954         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22955         * NEWS: Mention addition of x86_64 vector sinf.
22956
22957 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
22958
22959         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
22960         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
22961         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
22962         Remove variable.
22963         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
22964         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
22965
22966 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
22967
22968         [BZ #18530]
22969         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
22970         strong alias of _IO_fputs.  Use libc_hidden_def.
22971         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
22972         and define as weak alias of __fputs_unlocked.  Use
22973         libc_hidden_weak.
22974         * include/stdio.h (__fputs_unlocked): Declare.  Use
22975         libc_hidden_proto.
22976         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
22977         fputs_unlocked.
22978
22979         [BZ #18529]
22980         * resolv/netdb.h [__USE_POSIX]: Change condition to
22981         [__USE_XOPEN2K].
22982         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
22983         not expect.
22984         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
22985         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
22986         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
22987         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
22988         [XPG4 || UNIX98] (AI_ALL): Likewise.
22989         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
22990         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
22991         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
22992         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
22993         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
22994         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
22995         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
22996         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
22997         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
22998         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
22999         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
23000         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
23001         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
23002         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
23003         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
23004         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23005         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23006         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
23007         [XPG4 || UNIX98] (gai_strerror): Likewise.
23008         [XPG4 || UNIX98] (getaddrinfo): Likewise.
23009         [XPG4 || UNIX98] (getnameinfo): Likewise.
23010
23011         [BZ #18528]
23012         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
23013         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
23014         __USE_XOPEN2K8].
23015         (getgrent): Likewise.
23016         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
23017         expect.
23018         [XPG3 || POSIX2008] (endgrent): Likewise.
23019         [XPG3] (setgrent): Likewise.
23020         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
23021         variable.
23022         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
23023
23024         [BZ #18527]
23025         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
23026         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
23027         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
23028         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
23029         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
23030         * include/unistd.h (__getlogin_r): Declare.  Use
23031         libc_hidden_proto.
23032         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
23033         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
23034         variable.
23035         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
23036         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
23037         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
23038
23039 2015-06-12  Martin Sebor  <msebor@redhat.com>
23040
23041         [BZ #18512]
23042         * Makerules (check-install-supported): New target.
23043         (install): Add check-install-supported as a dependency.
23044         * manual/install.texi (Installing the C Library): Document
23045         that overriding prefix and exec_prefix is not supported.
23046         Mention DESTDIR.
23047         * INSTALL: Regenerate from the above.
23048
23049 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23050
23051         [BZ #18519]
23052         * posix/Versions (libc): Export __libc_pread at version
23053         GLIBC_PRIVATE.
23054         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
23055         instead of pread.
23056         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
23057         variable.
23058
23059         [BZ #18522]
23060         * misc/efgcvt_r.c
23061         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
23062         (cvt_symbol): Use weak_alias instead of strong_alias.
23063         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
23064         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
23065         Remove variable.
23066         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
23067         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
23068
23069         [BZ #18520]
23070         * inet/herrno.c (h_errno): Rename to __h_errno.
23071         (__libc_h_errno): Define as alias of __h_errno not h_errno.
23072         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
23073         to __h_errno instead of h_errno.
23074         * nptl/herrno.c (h_errno): Rename to __h_errno.
23075         (__h_errno_location): Refer to __h_errno not h_errno.
23076         * resolv/Versions (h_errno): Rename to __h_errno.
23077         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
23078         Remove variable.
23079         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
23080
23081 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
23082
23083         * configure.ac: More strict check for AVX512 assembler support.
23084         * configure: Regenerated.
23085
23086         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
23087         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
23088         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23089         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
23090         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23091         * sysdeps/x86_64/fpu/Versions: New versions added.
23092         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23093         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23094         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23095         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
23096         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
23097         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
23098         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
23099         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
23100         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
23101         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
23102         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
23103         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
23104         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
23105         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
23106         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
23107         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
23108         test.
23109         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23110         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23111         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23112         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23113         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23114         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23115         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23116         * NEWS: Mention addition of x86_64 vector sin.
23117
23118 2015-06-11  Florian Weimer  <fweimer@redhat.com>
23119
23120         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
23121         comment.
23122
23123 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
23124
23125         [BZ #18479]
23126         * nptl/pt-interp.c: New file.
23127         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
23128         Add pt-interp.
23129         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
23130         $(common-objpfx)runtime-linker.h.
23131
23132 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
23133
23134         * Makeconfig (+interp): Remove unused variable.
23135         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
23136         only.  Depend on $(common-objpfx)runtime-linker.h instead of
23137         $(elf-objpfx)runtime-linker.h.
23138         ($(elf-objpfx)runtime-linker.h): Rename to
23139         $(common-objpfx)runtime-linker.h and move ...
23140         * Makerules [$(build-shared) = yes]: ... here.
23141         * elf/interp.c: Include <runtime-linker.h> instead of
23142         <elf/runtime-linker.h>.
23143
23144 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23145
23146         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
23147         (__gettimeofday_syscall): Remove vsyscall fallback.
23148         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
23149         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
23150         Add syscall fallback function.
23151         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
23152         if vDSO is not present.
23153         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
23154         fallback function.
23155         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
23156         present.
23157         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
23158         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23159
23160 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23161
23162         [BZ #18497]
23163         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
23164         of wcscmp.
23165         (wcscmp): Define as weak alias of WCSCMP.
23166         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
23167         wcscoll.
23168         (USE_HIDDEN_DEF): Define.
23169         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
23170         __wcscoll.  Don't use libc_hidden_weak.
23171         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
23172         wcscmp.
23173         * sysdeps/i386/i686/multiarch/wcscmp-c.c
23174         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
23175         __GI_wcscmp.
23176         (weak_alias): Undefine and redefine.
23177         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
23178         __wcscmp and define as weak alias of __wcscmp.
23179         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
23180         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
23181         (__wcscoll): Likewise.
23182         (wcscmp): Don't use libc_hidden_proto.
23183         (wcscoll): Likewise.
23184         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
23185         wcscoll.
23186         * posix/regexec.c (check_node_accept_bytes): Likewise.
23187         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
23188         variable.
23189         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
23190         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
23191
23192         [BZ #18507]
23193         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
23194         __fstatvfs and define as weak alias of __fstatvfs.  Use
23195         libc_hidden_weak.
23196         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
23197         and define as weak alias of __statvfs.  Use libc_hidden_weak.
23198         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
23199         Define as alias of __fstatvfs, not fstatvfs.
23200         (fstatvfs64): Likewise.
23201         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
23202         Define as alias of __statvfs, not statvfs.
23203         (statvfs64): Likewise.
23204         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
23205         Remove variable.
23206
23207 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23208
23209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23210         (HAVE_GETCPU_VSYSCALL): Define.
23211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23212         (HAVE_GETCPU_VSYSCALL): Likewise.
23213         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
23214         * sysdeps/unix/sysv/linux/sched_getcpu.c
23215         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
23216         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
23217         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
23218         prototype.
23219         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23220         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
23221         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
23222         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
23223         Define.
23224         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
23225         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
23226         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
23227         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23228
23229 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
23230
23231         * sysdeps/x86_64/fpu/Makefile: New file.
23232         * sysdeps/x86_64/fpu/Versions: New file.
23233         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
23234         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
23235         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
23236         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
23237         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
23238         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
23239         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
23240         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
23241         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
23242         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
23243         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
23244         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
23245         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
23246         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23247         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23248         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
23249         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
23250         * sysdeps/x86_64/configure.ac: Options for libmvec build.
23251         * sysdeps/x86_64/configure: Regenerated.
23252         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
23253         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
23254         * manual/install.texi (Configuring and compiling): Document
23255         --disable-mathvec.
23256         * INSTALL: Regenerated.
23257         * NEWS: Mention addition of libmvec and x86_64 vector cos.
23258
23259         * math/Makefile: Added rules for vector tests.
23260         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
23261         declaration under condition.
23262         * math/test-double-vlen2.h: New file.
23263         * math/test-double-vlen4.h: New file.
23264         * math/test-double-vlen8.h: New file.
23265         * math/test-vec-loop.h: Added initialization macro.
23266         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
23267         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
23268         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
23269         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
23270         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
23271         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
23272         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
23273         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
23274         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
23275         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
23276         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
23277
23278         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23279         * sysdeps/x86_64/fpu/Versions: New versions added.
23280         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
23281         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
23282         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
23283         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
23284         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
23285         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
23286         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
23287         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
23288         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
23289         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
23290         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
23291         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
23292         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
23293         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23294         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23295         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23296         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
23297         * NEWS: Mention addition of x86_64 vector cosf.
23298
23299         * math/Makefile: Added CFLAGS for new tests.
23300         * math/test-float-vlen16.h: New file.
23301         * math/test-float-vlen4.h: New file.
23302         * math/test-float-vlen8.h: New file.
23303         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
23304         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
23305         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23306         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
23307         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
23308         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
23309         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
23310         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
23311         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
23312         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
23313         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
23314
23315 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
23316
23317         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
23318         * locale/programs/ld-ctype.c: Likewise.
23319
23320 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
23321
23322         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
23323         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
23324         bit_ZMM16_31_state): New macro.
23325         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23326         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
23327
23328 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
23329
23330         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
23331
23332 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
23333
23334         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
23335
23336 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23337
23338         [BZ #18498]
23339         * libio/memstream.c (open_memstream): Rename to __open_memstream
23340         and define as weak alias of __open_memstream.
23341         * include/stdio.h (__open_memstream): Declare.  Use
23342         libc_hidden_proto.
23343         (open_memstream): Don't use libc_hidden_proto.
23344         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
23345         open_memstream.
23346         * posix/getopt.c (_getopt_internal_r): Likewise.
23347         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
23348         variable.
23349         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
23350         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
23351         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
23352
23353         [BZ #18496]
23354         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23355         instead of wcrtomb.
23356
23357         [BZ #18483]
23358         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
23359         [__USE_XOPEN2K8].  Remove redundant #endif.
23360         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
23361         Remove redundant #if.
23362         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
23363         Remove variable.
23364         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
23365         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
23366
23367         [BZ #18495]
23368         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
23369         (__iswlower): Likewise.
23370         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
23371         (__iswlower): Likewise.
23372         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
23373         instead of towlower.
23374         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23375         instead of iswlower.  Call __towupper instead of towupper.
23376         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23377         instead of iswalnum.
23378
23379 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23380
23381         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
23382         errors to stderr.
23383
23384 2015-06-05  Florian Weimer  <fweimer@redhat.com>
23385
23386         [BZ #15661]
23387         [BZ #17322]
23388         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
23389         Check for overflow properly.  Check for O_APPEND.  Ignore large
23390         file system block sizes.  Add comments about problems.
23391         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
23392         * manual/filesys.texi (Storage Allocation): New node.
23393
23394 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23395
23396         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
23397         cancellable syscalls.
23398         (SYS_ify): Add guard to no redefine it.
23399         (INLINE_SYSCALL): Likewise.
23400         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
23401         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
23402         SYSCALL_CANCEL instead.
23403         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
23404         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
23405         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
23406         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
23407         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
23408         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
23409         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
23410         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
23411         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23412         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23413         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
23414         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
23415         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
23416         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
23417         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
23418         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
23419         Likewise.
23420         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
23421         (__libc_pread64): Likewise.
23422         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
23423         (__libc_preadv): Likewise.
23424         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
23425         (__libc_readv64): Likewise.
23426         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
23427         (__libc_pwrite): Likewise.
23428         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
23429         (__libc_pwrite64): Likewise.
23430         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
23431         (__libc_pwritev): Likewise.
23432         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
23433         (__libc_pwritev64): Likewise.
23434         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
23435         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
23436         (sync_file_range): Likewise.
23437         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
23438         Likewise.
23439         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
23440         Likewise.
23441         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
23442         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
23443         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
23444         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
23445         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
23446         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
23447         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23448         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
23449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
23450         Likewise.
23451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23452         (__libc_read64): Likewise.
23453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
23454         Likewise.
23455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
23456         Likewise.
23457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
23458         Likewise.
23459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
23460         Likewise.
23461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23462         (__libc_pread64): Likewise.
23463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
23464         Likewise.
23465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23466         (__libc_pwrite64): Likewise.
23467         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
23468         (sync_file_range): Likewise.
23469         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
23470         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
23471         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
23472         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
23473         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
23474         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
23475         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
23476         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
23477         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
23478         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
23479         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23480         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
23481         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
23482         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
23483         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
23484         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
23485         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
23486         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23487         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
23488         Likewise.
23489         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
23490         Likewise.
23491         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
23492         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
23493         Likewise.
23494         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
23495         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
23496         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
23497         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
23498         Likewise.
23499         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
23500         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
23501         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
23502         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
23503         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
23504
23505 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
23506
23507         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
23508         Include dl-vdso.
23509         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
23510         Use VDSO routines for gettimeofday, clock_gettime if
23511         available.
23512         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
23513         Declare VDSO symbols.
23514         * sysdeps/unix/sysv/linux/arm/sysdep.h:
23515         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
23516         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23517         * sysdeps/unix/sysv/linux/arm/Versions: Add
23518         __vdso_clock_gettime.
23519
23520 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23521
23522         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
23523         be an inline implementation regardless of library is built within.
23524         (open_not_cancel_2): Likewise.
23525         (__read_nocancel): Likewise.
23526         (__write_nocancel): Likewise.
23527         (openat_not_cancel): Likewise.
23528         (openat_not_cancel_3): Likewise.
23529         (openat64_not_cancel): Likewise.
23530         (openat64_not_cancel_3): Likewise.
23531         (__close_nocancel): Likewise.
23532         (pause_not_cancel): Likewise.
23533         (nanosleep_not_cancel): Likewise.
23534         (sigsuspend_not_cancel): Likewise.
23535
23536 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23537
23538         [BZ #14958]
23539         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
23540         wake-up.
23541         (__pthread_rwlock_rdlock_slow): Likewise.
23542         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23543         Likewise.
23544         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
23545         Likewise.
23546         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
23547         * nptl/tst-rwlock16.c: New file.
23548         * nptl/Makefile (tests): Add new test.
23549
23550 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23551
23552         [BZ #18324]
23553         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
23554         missing wake-up of readers.
23555         * nptl/tst-rwlock15.c: New file.
23556         * nptl/Makefile (tests): Add new test.
23557
23558 2015-06-03  Roland McGrath  <roland@hack.frob.com>
23559
23560         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
23561         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
23562         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
23563         and __nacl_supply_interface_rtld.
23564         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
23565         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
23566         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
23567         Add __nacl_supply_interface_rtld.
23568         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
23569
23570 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23571
23572         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
23573         isfinite.
23574         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23575         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
23576
23577 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23578
23579         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
23580         __signbit* with standard C99 macros.
23581         * math/e_exp10l.c: Likewise.
23582         * math/e_exp2l.c: Likewise.
23583         * math/e_scalb.c: Likewise.
23584         * math/e_scalbf.c: Likewise.
23585         * math/e_scalbl.c: Likewise.
23586         * math/s_ldexp.c: Likewise.
23587         * math/s_ldexpf.c: Likewise.
23588         * math/s_ldexpl.c: Likewise.
23589         * math/w_atan2.c: Likewise.
23590         * math/w_atan2f.c: Likewise.
23591         * math/w_atan2l.c: Likewise.
23592         * math/w_cosh.c: Likewise.
23593         * math/w_coshf.c: Likewise.
23594         * math/w_coshl.c: Likewise.
23595         * math/w_exp10.c: Likewise.
23596         * math/w_exp10f.c: Likewise.
23597         * math/w_exp10l.c: Likewise.
23598         * math/w_exp2.c: Likewise.
23599         * math/w_exp2f.c: Likewise.
23600         * math/w_exp2l.c: Likewise.
23601         * math/w_fmod.c: Likewise.
23602         * math/w_fmodf.c: Likewise.
23603         * math/w_fmodl.c: Likewise.
23604         * math/w_hypot.c: Likewise.
23605         * math/w_hypotf.c: Likewise.
23606         * math/w_hypotl.c: Likewise.
23607         * math/w_jnl.c: Likewise.
23608         * math/w_lgamma.c: Likewise.
23609         * math/w_lgamma_r.c: Likewise.
23610         * math/w_lgammaf.c: Likewise.
23611         * math/w_lgammaf_r.c: Likewise.
23612         * math/w_lgammal.c: Likewise.
23613         * math/w_lgammal_r.c: Likewise.
23614         * math/w_pow.c: Likewise.
23615         * math/w_powf.c: Likewise.
23616         * math/w_powl.c: Likewise.
23617         * math/w_remainder.c: Likewise.
23618         * math/w_remainderf.c: Likewise.
23619         * math/w_remainderl.c: Likewise.
23620         * math/w_scalb.c: Likewise.
23621         * math/w_scalbf.c: Likewise.
23622         * math/w_scalbl.c: Likewise.
23623         * math/w_scalbln.c: Likewise.
23624         * math/w_scalblnf.c: Likewise.
23625         * math/w_scalblnl.c: Likewise.
23626         * math/w_sinh.c: Likewise.
23627         * math/w_sinhf.c: Likewise.
23628         * math/w_sinhl.c: Likewise.
23629         * math/w_tgamma.c: Likewise.
23630         * math/w_tgammaf.c: Likewise.
23631         * math/w_tgammal.c: Likewise.
23632         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23633         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
23634         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23635         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23636         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23637         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23638         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
23639         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23640         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23641         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23642         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23643         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23644         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23645         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23646         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23647         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23648         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23649         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23650         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23651         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23652         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23653         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23654         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23655         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23656         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23657         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23658         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
23659         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23660         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23661         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23662         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
23663         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
23664         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
23665         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
23666         * stdio-common/printf_fp.c: Likewise.
23667         * stdio-common/printf_fphex.c: Likewise.
23668         * stdio-common/printf_size.c: Likewise.
23669
23670 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
23671
23672         [BZ #18470]
23673         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
23674         strnlen.
23675         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
23676         Remove variable.
23677         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
23678         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
23679         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
23680         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
23681         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
23682         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
23683         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
23684         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
23685         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
23686         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
23687
23688         [BZ #18468]
23689         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
23690         weak alias of __wmemchr.  Use libc_hidden_weak.
23691         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
23692         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
23693         instead of wmemchr.
23694
23695 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23696
23697         [BZ #18383]
23698         * elf/tst-tlsalign-extern.c: New file.
23699         * elf/tst-tlsalign-extern-static.c: New file.
23700         * elf/tst-tlsalign-vars.c: New file.
23701         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
23702         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
23703         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
23704         ($(objpfx)tst-tlsalign-extern-static): Likewise.
23705         (test-xfail-tst-tlsalign-extern-static): New variable.
23706
23707 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
23708
23709         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
23710         Use variable name _sc_err instead of err.
23711         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
23712         instead of ret.
23713         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
23714         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
23715         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
23716         (INLINE_SYSCALL): Likewise.
23717
23718         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
23719         * include/string.h (__strnlen): Use libc_hidden_proto.
23720         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
23721         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
23722         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
23723         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
23724         (libc_hidden_def): Undefine and redefine.
23725         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
23726         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
23727         __GI_strnlen.
23728         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
23729         libc_hidden_def.
23730         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
23731
23732         [BZ #18469]
23733         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
23734         weak alias of __towlower.  Use libc_hidden_weak.
23735         (towupper): Rename to __towupper and define as weak alias of
23736         __towupper.  Use libc_hidden_weak.
23737         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
23738         (__towupper): Likewise.
23739         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
23740         __towlower instead of towlower.
23741
23742 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23743
23744         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
23745         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
23746
23747 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23748
23749         * sysdeps/aarch64/libm-test-ulps: Update.
23750
23751 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23752
23753         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
23754         Define.
23755         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23756         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23757         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23758         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23759         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
23760         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
23761         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
23762
23763 2015-06-01  Martin Sebor  <msebor@redhat.com>
23764
23765         [BZ #18116]
23766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
23767         (__setcontext): Use extended four-operand version of mtsf whenever
23768         possible.
23769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
23770         (__novec_swapcontext): Likewise.
23771
23772 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23773
23774         * benchtests/scripts/compare_bench.py: New file.
23775         * benchtests/scripts/import_bench.py (mean): New function.
23776         (split_list): Likewise.
23777         (do_for_all_timings): Likewise.
23778         (compress_timings): Likewise.
23779
23780         * benchtests/scripts/import_bench.py: New file.
23781         * benchtests/scripts/validate_benchout.py: Import import_bench
23782         instead of jsonschema.
23783         (validate_bench): Remove function.
23784         (main): Use import_bench.
23785
23786 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
23787
23788         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
23789         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
23790
23791 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23792
23793         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23794
23795 2015-05-28  Roland McGrath  <roland@hack.frob.com>
23796
23797         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
23798         set THREAD_SELF->tid to a magic value and futex-wake it.
23799         Pass its address to the thread_exit system call.
23800         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
23801         bit is clear.
23802         * sysdeps/nacl/lowlevellock.h: New file.
23803         * sysdeps/nacl/lll_timedwait_tid.c: New file.
23804
23805         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
23806         Add TIMEOUT to current time, don't subtract it.
23807
23808 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23809
23810         [BZ #2981]
23811         [BZ #18422]
23812         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
23813         ($(objpfx)tst-audit2.out): Also depend on
23814         $(objpfx)tst-auditmod9b.so.
23815         * elf/tst-audit2.c: Include <dlfcn.h>.
23816         (calloc_called): New.
23817         (calloc): Allow to be called more than once.
23818         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
23819
23820 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
23821
23822         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
23823         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
23824
23825 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
23826
23827         * stdlib/monetary.h: Fix comment.
23828
23829 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
23830
23831         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
23832         Avoid using variables in #defines that might cause shadowing.
23833         (INTERNAL_VSYSCALL_CALL): Likewise.
23834
23835 2015-05-26  Roland McGrath  <roland@hack.frob.com>
23836
23837         * sysdeps/nacl/lll_timedlock_wait.c: New file.
23838
23839         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
23840         * nptl/lll_timedlock_wait.c: ... to this new file.
23841         * nptl/Makefile (libpthread-routines): Add it.
23842         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
23843         * nptl/lll_timedwait_tid.c: ... to this new file.
23844         * nptl/Makefile (libpthread-routines): Add it.
23845         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
23846         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
23847         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
23848         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
23849         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
23850         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
23851         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
23852         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
23853         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
23854         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
23855
23856 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23857
23858         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
23859         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23860         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
23861         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
23862         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
23863         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23864         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23865         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23866         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23867         * sysdeps/unix/sysv/linux/tile/sysdep.h
23868         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23869         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
23870         using vDSO syscall macro.
23871
23872 2015-05-26  Andriy Rysin  <arysin@gmail.com>
23873
23874         [BZ #17293]
23875         * uk_UA: Fix sorting order for Ukrainian locale
23876
23877 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
23878
23879         * stdlib/monetary.h: Fix comment.
23880
23881 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23882
23883         [BZ #18234]
23884         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
23885         st_mtim and st_ctim members.
23886         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
23887         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
23888         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
23889         (struct stat64): Likewise.
23890         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
23891         (struct stat64): Likewise.
23892         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
23893         (struct stat64): Likewise.
23894
23895 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23896
23897         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
23898         Define and include sysdep-vdso.h.
23899         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
23900         Likewise.
23901         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
23902         Likewise.
23903         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
23904         Define with VDSO_SYMBOL and use PTR_MANGLE.
23905         (__vdso_clock_gettime): Likewise.
23906         (__vdso_clock_getres): Likewise.
23907         (_libc_vdso_platform_setup): Likewise.
23908         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
23909         Likewise.
23910         (_libc_vdso_platform_setup): Likewise.
23911         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
23912         Likewise.
23913         (__vdso_clock_gettime): Likewise.
23914         (__vdso_clock_getres): Likewise.
23915         (__vdso_get_tbfreq): Likewise.
23916         (__vdso_getcpu): Likewise.
23917         (__vdso_time): Likewise.
23918         (__vdso_sigtramp_rt64): Likewise.
23919         (__vdso_signtramp32): Likewise.
23920         (__vdso_sigtramp_rt32): Likewise.
23921         (_libc_vdso_platform_setup): Likewise.
23922         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
23923         Likewise.
23924         (__vdso_clock_gettime): Likewise.
23925         (__vdso_clock_getres): Likewise.
23926         (_libc_vdso_platform_setup): Likewise.
23927         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
23928         Likewise.
23929         (__vdso_clock_gettime): Likewise.
23930         (_libc_vdso_platform_setup): Likewise.
23931         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
23932         Likewise.
23933         (__vdso_getcpu): Likewise.
23934         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
23935         Use VDSO_SYMBOL macro to define.
23936         (__vdso_clock_gettime): Likewise.
23937         (__vdso_clock_getres): Likewise.
23938         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
23939         Likewise.
23940         (__vdso_clock_gettime): Likewise.
23941         (__vdso_clock_getres): Likewise.
23942         (__vdso_get_tbfreq): Likewise.
23943         (__vdso_getcpu): Likewise.
23944         (__vdso_time): Likewise.
23945         (__vdso_sigtramp_rt64): Likewise.
23946         (__vdso_signtramp32): Likewise.
23947         (__vdso_sigtramp_rt32): Likewise.
23948         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
23949         Likewise.
23950         (__vdso_clock_gettime): Likewise.
23951         (__vdso_clock_getres): Likewise.
23952         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
23953         Likewise.
23954         (__vdso_clock_gettime): Likewise.
23955         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
23956         Likewise.
23957         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
23958         macro.
23959         (INTERNAL_VSYSCALL): Likewise.
23960         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
23961         Remove macro.
23962         (INTERNAL_VSYSCALL): Likewise.
23963         (INTERNAL_VSYSCALL_NCS): Likewise.
23964         (INTERNAL_VSYSCALL_CALL): New macro.
23965         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23966         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
23967         Likewise.
23968         (INTERNAL_VSYSCALL): Likewise.
23969         (INTERNAL_VSYSCALL_NCS): Likewise.
23970         (INTERNAL_VSYSCALL_CALL): New macro.
23971         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23973         (INLINE_VSYSCALL): Remove macro.
23974         (INTERNAL_VSYSCALL): Remove macro.
23975         (INTERNAL_VSYSCALL_NCS): Remove macro.
23976         (INTERNAL_VSYSCALL_CALL): New macro.
23977         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
23978         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
23979         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23980         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
23981         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23983         (INLINE_VSYSCALL): Remove macro.
23984         (INTERNAL_VSYSCALL): Likewise.
23985         (INTERNAL_VSYSCALL_NCS): Likewise.
23986         (INTERNAL_VSYSCALL_CALL): New macro.
23987         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
23988         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
23989         PTR_DEMANGLE on vDSO pointer.
23990         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23991         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
23992         macro.
23993         (INTERNAL_SYSCALL): Likewise.
23994         (INTERNAL_VSYSCALL_NCS): Remove macro.
23995         (INTERNAL_VSYSCALL_CALL): New macro.
23996         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
23997         Remove macro.
23998         (INTERNAL_VSYSCALL): Likewise.
23999         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
24000         sysdep-vdso.h instead of libc-vdso.h.
24001         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
24002         definition.
24003         (INLINE_VSYSCALL): Likewise.
24004         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
24005         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
24006         definition.
24007         (INLINE_VSYSCALL): Likewise.
24008         (INTERNAL_VSYSCALL): Likewise.
24009         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24010         * sysdeps/unix/sysv/linux/timespec_get.c
24011         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24012         (timespec_get): Use ANSI prototype.
24013         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
24014         and definition for Linux.
24015
24016 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
24017
24018         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
24019         * include/libc-symbols.h: libmvec_hidden_* macro series added.
24020
24021 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
24022
24023         [BZ #2981]
24024         [BZ #18410]
24025         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
24026         for missing DT_PLTRELSZ.
24027
24028 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24029
24030         Remove obsolete aliases that broke 'locale -a'
24031         [BZ #18412]
24032         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
24033         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
24034         breaking some applications that use 'locale -a' output.
24035         Change the encoding of this file from Latin-1 to ASCII to avoid
24036         other potential problems with people grepping this file.
24037
24038 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24039
24040         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
24041         -fasynchronous-unwind-tables.
24042         (CFLAGS-sendto.c): Likewise.
24043         (CFLAGS-sendmsg.c): Likewise.
24044         (CFLAGS-connect.c): Likewise.
24045         (CFLAGS-recvmsg.c): Likewise.
24046         (CFLAGS-recvfrom.c): Likewise.
24047         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
24048         (SOCKETCALL): New macro: non-cancellable socketcall.
24049         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
24050         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
24051         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
24052         * sysdeps/unix/sysv/linux/accept.c: New file.
24053         * sysdeps/unix/sysv/linux/bind.c: Likewise.
24054         * sysdeps/unix/sysv/linux/connect.c: Likewise.
24055         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
24056         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
24057         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
24058         * sysdeps/unix/sysv/linux/listen.c: Likewise.
24059         * sysdeps/unix/sysv/linux/recv.c: Likewise.
24060         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
24061         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
24062         * sysdeps/unix/sysv/linux/send.c: Likewise.
24063         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
24064         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
24065         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
24066         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
24067         * sysdeps/unix/sysv/linux/socket.c: Likewise.
24068         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
24069         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
24070         prototype.
24071         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
24072         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24073         instead of __internal_xxx function.
24074         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
24075         prototype.
24076         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
24077         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24078         instead of __internal_xxx function.
24079         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
24080         prototype.
24081         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
24082         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24083         instead of __internal_xxx function.
24084         * sysdeps/unix/sysv/linux/accept.S: Remove file.
24085         * sysdeps/unix/sysv/linux/bind.S: Likewise.
24086         * sysdeps/unix/sysv/linux/connect.S: Likewise.
24087         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
24088         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
24089         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
24090         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
24091         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
24092         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
24093         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
24094         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
24095         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
24096         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
24097         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
24098         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
24099         * sysdeps/unix/sysv/linux/listen.S: Likewise.
24100         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
24101         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
24102         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
24103         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
24104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
24105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
24106         * sysdeps/unix/sysv/linux/recv.S: Likewise.
24107         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
24108         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
24109         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
24110         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
24111         * sysdeps/unix/sysv/linux/send.S: Likewise.
24112         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
24113         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
24114         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
24115         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
24116         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
24117         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
24118         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
24119         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
24120         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
24121         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
24122         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
24123         socketcall is implemented in GLIBC.
24124
24125 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24126
24127         * soft-fp/fmadf4.c: Include <libc-internal.h>.
24128         (__fma): Ignore uninitialized warnings around packing.
24129         * soft-fp/fmasf4.c: Include <libc-internal.h>.
24130         (__fmaf): Ignore uninitialized warnings around packing.
24131         * soft-fp/fmatf4.c: Include <libc-internal.h>.
24132         (__fmal): Ignore uninitialized warnings around packing.
24133
24134         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
24135         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24136         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
24137         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24138
24139         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
24140         switch statement into default case.
24141         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
24142
24143         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
24144         a conditional in forcing "inexact".
24145         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
24146         Likewise.
24147
24148 2015-05-22  Roland McGrath  <roland@hack.frob.com>
24149
24150         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24151         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
24152         for each INTERNAL_SYSCALL use.
24153
24154 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24155
24156         [BZ #438]
24157         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
24158         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
24159         variable.
24160
24161         [BZ #18444]
24162         * string/basename.c (basename): Rename to __basename and define as
24163         weak alias of __basename.  Use libc_hidden_weak.
24164         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
24165         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
24166         __basename instead of basename.
24167         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
24168         Remove variable.
24169         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24170
24171 2015-05-18  Florian Weimer  <fweimer@redhat.com>
24172
24173         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
24174         (_IO_JUMPS_FILE_plus): New.
24175         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
24176         _IO_CAST_FIELD_ACCESS.
24177         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
24178         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
24179         * libio/freopen.c (freopen): Likewise.
24180         * libio/freopen64.c (freopen64): Likewise.
24181         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
24182         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
24183         * libio/iofwide.c (_IO_fwide): Likewise.
24184         * libio/memstream.c (open_memstream): Likewise.
24185         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
24186         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
24187         * libio/oldiopopen.c (_IO_old_popen): Likewise.
24188
24189 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
24190
24191         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
24192         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
24193         NADJ.
24194         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
24195         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
24196         NADJ.
24197         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
24198         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
24199         NADJ.
24200
24201         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
24202         (p == 4) case.
24203
24204         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
24205         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
24206         Remove variable.
24207         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24208         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24209         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24210
24211 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24212
24213         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
24214         Adjust jump table label generation macros.
24215
24216 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24217
24218         * stdio-common/vfprintf.c (vfprintf): Move local variables
24219         args_malloced, specs, specs_malloced, and the code after
24220         do_positional to the printf_positional function.
24221         (printf_positional): New function.
24222
24223 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24224
24225         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
24226         function.
24227         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
24228         STEP4_TABLE, process_arg): Move macro definitions
24229         out of the vfprintf function.  (Cosmetic change only.)
24230
24231 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
24232
24233         * benchtests/Makefile (stdio-common-bench): Define.
24234         (benchset): Add stdio-common-bench.
24235         * sprintf-inputs: New file.
24236         * sprintf-source.c: New file.
24237
24238 2015-05-21  Andreas Schwab  <schwab@suse.de>
24239
24240         [BZ #13028]
24241         [BZ #17053]
24242         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
24243         of struct __res_state.
24244         * resolv/res_send.c (__libc_res_nsend): Likewise.
24245         (get_nsaddr): New function.
24246         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
24247         statp directly.
24248
24249 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
24250
24251         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
24252         -D_POSIX_C_SOURCE=199506L.
24253
24254         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
24255
24256         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
24257         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
24258         Do not mention otherwise.
24259         [POSIX] (_XOPEN_VERSION): Do not expect.
24260         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
24261         [POSIX] (_POSIX2_C_BIND): Likewise.
24262         [POSIX] (_POSIX2_VERSION): Likewise.
24263         [POSIX] (_XOPEN_XPG2): Likewise.
24264         [POSIX] (_XOPEN_XPG3): Likewise.
24265         [POSIX] (_XOPEN_XPG4): Likewise.
24266         [POSIX] (_XOPEN_UNIX): Likewise.
24267         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
24268         [POSIX] (_POSIX_BARRIERS): Likewise.
24269         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
24270         [POSIX] (_POSIX_CPUTIME): Likewise.
24271         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
24272         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
24273         [POSIX] (_POSIX_SHELL): Likewise.
24274         [POSIX] (_POSIX_SPAWN): Likewise.
24275         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
24276         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
24277         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
24278         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
24279         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
24280         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
24281         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
24282         [POSIX] (_XBS5_LP64_OFF64): Likewise.
24283         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
24284         [POSIX] (_POSIX_TIMEOUTS): Likewise.
24285         [POSIX] (_POSIX2_PBS): Likewise.
24286         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
24287         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
24288         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
24289         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
24290         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
24291         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
24292         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
24293         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
24294         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
24295         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
24296         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
24297         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
24298         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
24299         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
24300         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
24301         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
24302         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
24303         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
24304         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
24305         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
24306         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
24307         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
24308         [POSIX] (_SC_2_C_BIND): Likewise.
24309         [POSIX] (_SC_2_C_VERSION): Likewise.
24310         [POSIX] (_SC_2_PBS): Likewise.
24311         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
24312         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
24313         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
24314         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
24315         [POSIX] (_SC_2_PBS_TRACK): Likewise.
24316         [POSIX] (_SC_ATEXIT_MAX): Likewise.
24317         [POSIX] (_SC_BARRIERS): Likewise.
24318         [POSIX] (_SC_BASE): Likewise.
24319         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
24320         [POSIX] (_SC_DEVICE_IO): Likewise.
24321         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
24322         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
24323         [POSIX] (_SC_FD_MGMT): Likewise.
24324         [POSIX] (_SC_FIFO): Likewise.
24325         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
24326         [POSIX] (_SC_FILE_LOCKING): Likewise.
24327         [POSIX] (_SC_FILE_SYSTEM): Likewise.
24328         [POSIX] (_SC_IOV_MAX): Likewise.
24329         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
24330         [POSIX] (_SC_NETWORKING): Likewise.
24331         [POSIX] (_SC_PAGE_SIZE): Likewise.
24332         [POSIX] (_SC_PASS_MAX): Likewise.
24333         [POSIX] (_SC_PIPE): Likewise.
24334         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
24335         [POSIX] (_SC_REGEXP): Likewise.
24336         [POSIX] (_SC_SHELL): Likewise.
24337         [POSIX] (_SC_SIGNALS): Likewise.
24338         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
24339         [POSIX] (_SC_SPIN_LOCKS): Likewise.
24340         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
24341         [POSIX] (_SC_USER_GROUPS): Likewise.
24342         [POSIX] (_SC_USER_GROUPS_R): Likewise.
24343         [POSIX] (_SC_STREAMS): Likewise.
24344         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
24345         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
24346         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
24347         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
24348         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
24349         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
24350         [POSIX] (_PC_FILESIZEBITS): Likewise.
24351         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
24352         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
24353         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
24354         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
24355         [POSIX] (uid_t): Likewise.
24356         [POSIX] (gid_t): Likewise.
24357         [POSIX] (off_t): Likewise.
24358         [POSIX] (pid_t): Likewise.
24359         [POSIX] (cuserid): Allow.
24360         (_SC_2_CHAR_TERM): Require constant.
24361         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
24362         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
24363         variable.
24364
24365 2015-05-20  Roland McGrath  <roland@hack.frob.com>
24366
24367         * sysdeps/nacl/pthread-pids.h: New file.
24368         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
24369         (create_thread): Use __nacl_get_tid to initialize PD->tid.
24370
24371         * nptl/pthread-pids.h: New file.
24372         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
24373         * nptl/nptl-init.c: Include <pthread-pids.h>.
24374         (__pthread_initialize_minimal_internal):
24375         Call __pthread_initialize_pids instead of set_tid_address syscall.
24376
24377         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
24378         * sysdeps/posix/usleep.c: ... here.
24379
24380 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24381
24382         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
24383         call_pselect6 object.
24384         [$(subdir) = io]: Remove call_sync_file_range object.
24385         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
24386         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
24387         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
24388         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
24389
24390 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
24391
24392         * math/s_cproj.c: Add include "math_private.h".
24393         * math/s_cprojf.c: Likewise.
24394         * math/s_cprojl.c: Likewise.
24395
24396 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
24397
24398         [BZ #18244]
24399         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
24400         high mantissa bit when testing whether P is a NaN.
24401         * math/libm-test.inc (remainder_test_data): Add more tests.
24402         (remquo_test_data): Likewise.
24403
24404         [BZ #18049]
24405         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
24406         below -32, return the argument, with underflow if subnormal.
24407         * math/auto-libm-test-in: Add more tests of atanh.
24408         * math/auto-libm-test-out: Regenerated.
24409
24410 2015-05-19  Roland McGrath  <roland@hack.frob.com>
24411
24412         [BZ #18434]
24413         * nptl/tst-sem15.c: New file.
24414         * nptl/Makefile (tests): Add it.
24415         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
24416         s/<</>>/ to fix typo in EOVERFLOW check.
24417         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
24418
24419 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24420
24421         * manual/strings.texi (envz_remove): Fix typo in safety
24422         annotations.
24423
24424 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24425             Steve Ellcey  <sellcey@imgtec.com>
24426
24427         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
24428         in order to avoid strict alias warnings.
24429         (iruserok_af): Ditto for ra.
24430
24431 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
24432
24433         [BZ #17581]
24434         * malloc/hooks.c
24435         (magicbyte): Convert to a function and avoid returning 0x01.
24436         (mem2mem_check): Avoid using a length byte equal to the magic byte.
24437         (mem2chunk_check): Fix unsigned comparisons to zero.
24438         Hoist defs of sz and magic.
24439
24440 2015-05-19  Richard Henderson  <rth@redhat.com>
24441
24442         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
24443
24444         * sysdeps/alpha/fpu/libm-test-ulps: Update.
24445
24446 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24447
24448         [BZ #16159]
24449         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
24450         * malloc/arena.c (arena_lock): Check if arena is corrupt.
24451         (reused_arena): Find a non-corrupt arena.
24452         (heap_trim): Pass arena to unlink.
24453         * malloc/hooks.c (malloc_check_get_size): Pass arena to
24454         malloc_printerr.
24455         (top_check): Likewise.
24456         (free_check): Likewise.
24457         (realloc_check): Likewise.
24458         * malloc/malloc.c (malloc_printerr): Add arena argument.
24459         (unlink): Likewise.
24460         (munmap_chunk): Adjust.
24461         (ARENA_CORRUPTION_BIT): New macro.
24462         (arena_is_corrupt): Likewise.
24463         (set_arena_corrupt): Likewise.
24464         (sysmalloc): Use mmap if there are no usable arenas.
24465         (_int_malloc): Likewise.
24466         (__libc_malloc): Don't fail if arena_get returns NULL.
24467         (_mid_memalign): Likewise.
24468         (__libc_calloc): Likewise.
24469         (__libc_realloc): Adjust for additional argument to
24470         malloc_printerr.
24471         (_int_free): Likewise.
24472         (malloc_consolidate): Likewise.
24473         (_int_realloc): Likewise.
24474         (_int_memalign): Don't touch corrupt arenas.
24475         * malloc/tst-malloc-backtrace.c: New test case.
24476
24477         * Makefile (summarize-tests): Fix return value on success.
24478
24479         * manual/string.texi (Envz Functions): Add envz_remove.
24480
24481 2015-05-18  Roland McGrath  <roland@hack.frob.com>
24482
24483         * sysdeps/posix/opendir.c: Include <stdbool.h>.
24484         (invalid_name): New function, broken out of ...
24485         (__opendirat): ... here.  Call it.
24486         (need_isdir_precheck): New function, broken out of ...
24487         (__opendirat): ... here.  Call it.
24488         Use __fxstatat64, not __xstatat64.
24489         (opendir_oflags): New function, broken out of ...
24490         (__opendirat): ... here.  Call it.
24491         (opendir_tail): New function, broken out of ...
24492         (__opendirat): ... here.  Call it.
24493         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
24494         opendir_tail, rather than punting to __opendirat.
24495         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
24496
24497 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24498
24499         * .gitignore: Ignore generated *.pyc.
24500
24501 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
24502
24503         * include/stdio.h: Define __need_wint_t.
24504         * test-skeleton.c: Avoid `for' loop initial declaration.
24505         * nptl/tst-initializers1.c: Use test-skeleton.c.
24506
24507 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24508
24509         [BZ #18418]
24510         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
24511
24512 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24513
24514         [BZ #16352]
24515         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
24516         (__ieee754_atanh): Force underflow exception for results with
24517         small absolute value.
24518         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
24519         (__ieee754_atanhf): Force underflow exception for results with
24520         small absolute value.
24521         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
24522         (__ieee754_atanh): Force underflow exception for results with
24523         small absolute value.
24524         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
24525         (__ieee754_atanhf): Force underflow exception for results with
24526         small absolute value.
24527         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
24528         (__ieee754_atanhl): Force underflow exception for results with
24529         small absolute value.
24530         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
24531         (__ieee754_atanhl): Force underflow exception for results with
24532         small absolute value.
24533         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
24534         (__ieee754_atanhl): Force underflow exception for results with
24535         small absolute value.
24536         * math/auto-libm-test-in: Do not allow missing underflow
24537         exceptions from atanh.
24538         * math/auto-libm-test-out: Regenerated.
24539
24540         [BZ #18221]
24541         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
24542         2**-28 as threshold for returning x or +/- 1/x.
24543         * math/auto-libm-test-in: Add more tests of tan.
24544         * math/auto-libm-test-out: Regenerated.
24545
24546         [BZ #18220]
24547         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
24548         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
24549         * math/auto-libm-test-in: Add another test of lgamma.
24550         * math/auto-libm-test-out: Regenerated.
24551
24552 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
24553
24554         * stdio-common/printf_fp.c (___printf_fp): Use abs.
24555         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
24556         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
24557         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
24558         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
24559         (ADD2A): Use fabs.  (SUB2A): Use fabs.
24560         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
24561         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
24562         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
24563         (log1): Use fabs.  (my_log2): Use fabs.
24564         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
24565         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
24566         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
24567         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
24568         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
24569         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
24570         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
24571         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
24572         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
24573         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
24574         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
24575
24576 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24577
24578         [BZ #18217]
24579         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
24580         as threshold for returning 1 - x.
24581         * math/auto-libm-test-in: Add more tests of erfc.
24582         * math/auto-libm-test-out: Regenerated.
24583
24584 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
24585
24586         [BZ #18196]
24587         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
24588         threshold for large arguments.
24589         * math/auto-libm-test-in: Add another test of atan.
24590         * math/auto-libm-test-out: Regenerated.
24591
24592         [BZ #16339]
24593         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
24594         (__log1p): Force underflow exception for results with small
24595         absolute value.
24596         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
24597         (__log1pf): Force underflow exception for results with small
24598         absolute value.
24599         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
24600         (__log1p): Force underflow exception for results with small
24601         absolute value.
24602         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
24603         (__log1pf): Force underflow exception for results with small
24604         absolute value.
24605         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
24606         (__log1pl): Force underflow exception for results with small
24607         absolute value.
24608         * math/auto-libm-test-in: Do not allow missing underflow
24609         exceptions from log1p.
24610         * math/auto-libm-test-out: Regenerated.
24611
24612 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
24613             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24614
24615         [BZ #16704]
24616         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
24617
24618 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
24619
24620         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
24621         (libmvec): New variable.
24622         * configure.ac: Added option for mathvec build.
24623         * configure: Regenerated.
24624         * mathvec/Depend: New file.
24625         * mathvec/Makefile: New file.
24626         * shlib-versions: Added libmvec.
24627         * math/Makefile: Added rule for libm.so installation.
24628
24629         * bits/math-vector.h: New file.
24630         * bits/libm-simd-decl-stubs.h: New header.
24631         * math/Makefile (headers): Added new header
24632         libm-simd-decl-stubs.h.
24633         * math/math.h (__MATHCALL_VEC): New macro.
24634
24635         * math/gen-libm-have-vector-test.sh: Script generates series of macros
24636         for conditions in testing functions.
24637         * math/Makefile: Added call of libm-have-vector-test.sh.
24638         * math/libm-test.inc (HAVE_VECTOR): New macros.
24639
24640         * math/libm-test.inc: START refactored.
24641         * math/test-double.c (TEST_MATHVEC): Add define.
24642         * math/test-float.c: Likewise.
24643         * math/test-idouble.c: Likewise.
24644         * math/test-ifloat.c: Likewise.
24645         * math/test-ildoubl.c: Likewise.
24646         * math/test-ldouble.c: Likewise.
24647         * sysdeps/generic/math-tests-arch.h
24648         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
24649         architecture check.
24650
24651         * math/test-double.c (FUNC_TEST): New macro.
24652         * math/test-float.c: Likewise.
24653         * math/test-idouble.c: Likewise.
24654         * math/test-ifloat.c: Likewise.
24655         * math/test-ildoubl.c: Likewise.
24656         * math/test-ldouble.c: Likewise.
24657         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
24658
24659 2015-05-13  Roland McGrath  <roland@hack.frob.com>
24660
24661         * sysdeps/nacl/fdopendir.c: New file.
24662
24663         * dirent/scandir-tail.c: New file.
24664         * dirent/scandir64-tail.c: New file.
24665         * dirent/Makefile (routines): Add them.
24666         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
24667         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
24668         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
24669         [!SCANDIR] (SCANDIR_TAIL): New macro.
24670         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
24671         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
24672         (SCANDIRAT): Macro removed.
24673         (SCANDIR_TAIL): New macro.
24674         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
24675         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
24676         (SCANDIRAT): Just call __opendirat and __scandir_tail.
24677         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
24678         (READDIR): Macro removed.
24679         (SCANDIR_TAIL): New macro.
24680         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
24681         (SCANDIR_TAIL): New macro.
24682
24683         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
24684         * dirent/scandir-cancel.c: ... to this new file.
24685         * dirent/Makefile (routines): Add it.
24686         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
24687         * sysdeps/unix/sysv/linux/i386/scandir64.c
24688         (SKIP_SCANDIR_CANCEL): Macro removed.
24689         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
24690
24691         * dirent/tst-scandir.c: New file.
24692         * dirent/tst-scandir64.c: New file.
24693         * dirent/Makefile (tests): Add them.
24694
24695 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24696
24697         [BZ #18409]
24698         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
24699
24700 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24701
24702         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
24703         list.
24704
24705 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
24706
24707         * benchtests/bench-strcoll.c: New benchmark.
24708         * benchtests/Makefile: Generate locales and run benchmark.
24709         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
24710         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
24711         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
24712         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
24713         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
24714         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
24715         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
24716         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
24717         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
24718         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
24719         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
24720         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
24721         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
24722         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
24723         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
24724         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
24725         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
24726         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
24727         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
24728         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
24729         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
24730         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
24731         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
24732         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
24733
24734 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
24735
24736         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
24737         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24738
24739 2015-05-12  Roland McGrath  <roland@hack.frob.com>
24740
24741         * posix/uname-values.h: New file.
24742         * posix/uname.c: Include that instead of <config-name.h>.
24743         * sysdeps/nacl/uname-values.h: New file.
24744         * sysdeps/arm/nacl/uname-values.h: New file.
24745
24746 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
24747
24748         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
24749         splitting into fields.
24750
24751 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
24752
24753         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
24754         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
24755         * locale/localeinfo.h: Add enum collation_encoding_type.
24756         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
24757         * programs/ld-collate.c (collate_output): Add encoding type info.
24758         * string/strcoll_l.c (STRDIFF): New function.
24759         * (STRCOLL): Use STRDIFF to skip over equal prefix.
24760         * wcsmbs/wcscoll_l.c: Define STRDIFF.
24761
24762 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
24763
24764         [BZ #18397]
24765         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
24766         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
24767         <fpu_control.h> instead of <math/fpu_control.c>.
24768         * sysdeps/mips/mips32/fpu/Makefile: New file.
24769
24770 2015-05-11  Andreas Schwab  <schwab@suse.de>
24771
24772         [BZ #18007]
24773         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
24774         nss_endgrent.
24775         (_nss_compat_endgrent): Call nss_endgrent.
24776         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
24777         nss_endpwent.
24778         (_nss_compat_endpwent): Call nss_endpwent.
24779         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
24780         needent, call nss_setspent only if non-zero.
24781         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
24782         (internal_endspent): Don't call nss_endspent.
24783         (_nss_compat_endspent): Call nss_endspent.
24784         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
24785         Remove.  All uses removed.
24786         (internal_setent): Remove parameter stayopen, add parameter
24787         stream.  Use it instead of global variable.
24788         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
24789         (internal_endent, internal_getent): Add parameter stream.  Use it
24790         instead of global variable.
24791         (CONCAT(_nss_files_end,ENTNAME))
24792         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
24793         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
24794         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
24795         uses removed.
24796         (internal_setent, internal_endent): Add parameter stream.  Use it
24797         instead of global variable.
24798         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
24799         stream.
24800         (get_next_alias): Add parameter stream.
24801         (_nss_files_getaliasent_r): Pass global stream.
24802         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
24803         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
24804         (_nss_files_gethostbyname4_r): Pass local stream to
24805         internal_setent, internal_getent and internal_endent.  Remove
24806         locking.
24807
24808 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
24809
24810         * tst-strfmon1.c (tests): Update expected currency symbol.
24811
24812 2015-05-08  Roland McGrath  <roland@hack.frob.com>
24813
24814         * sysdeps/nacl/gethostname.c: New file.
24815
24816 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
24817
24818         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
24819         and sinh.
24820         * math/auto-libm-test-out: Regenerated.
24821         * sysdeps/i386/fpu/libm-test-ulps: Update.
24822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24823
24824 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
24825
24826         [BZ #18125]
24827         * stdlib/tst-setcontext3.c: New file.
24828         * stdlib/tst-setcontext3.sh: New file.
24829         * stdlib/Makefile (tests): Add tst-setcontext3.
24830         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
24831         to verify test program created output file.
24832         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
24833         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
24834         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
24835         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
24836
24837 2015-05-06  Roland McGrath  <roland@hack.frob.com>
24838
24839         [BZ #18383]
24840         * elf/tst-tlsalign.c: New file.
24841         * elf/tst-tlsalign-static.c: New file.
24842         * elf/tst-tlsalign-lib.c: New file.
24843         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
24844         (tests-static): Add tst-tlsalign-static.
24845         (modules-names): Add tst-tlsalign-lib.
24846         (test-xfail-tst-tlsalign): New variable.
24847         (test-xfail-tst-tlsalign-static): New variable.
24848
24849         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
24850         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
24851
24852 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
24853
24854         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
24855         csqrt, erfc, sin and sincos.
24856         * math/auto-libm-test-out: Regenerated.
24857         * sysdeps/i386/fpu/libm-test-ulps: Update.
24858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24859
24860 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24861
24862         * sysdeps/aarch64/libm-test-ulps: Update.
24863
24864 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
24865
24866         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
24867         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
24868         * math/auto-libm-test-out: Regenerated.
24869         * sysdeps/i386/fpu/libm-test-ulps: Update.
24870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24871
24872 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
24873
24874         [BZ #18265]
24875         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
24876         (wcsncpy): Likewise.
24877
24878 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24879
24880         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
24881         Assume __ASSUME_FALLOCATE is always true.
24882         * sysdeps/unix/sysv/linux/posix_fallocate64.c
24883         (__posix_fallocate64_l64): Likweise.
24884         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
24885         (posix_fallocate): Likewise.
24886         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
24887         (__posix_fallocate64_l64): Likewise.
24888         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
24889         [!__ASSUME_FALLOCATE]: Add comment.
24890
24891 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24892
24893         * sysdeps/unix/sysv/linux/i386/Makefile
24894         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
24895         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
24896         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
24897         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24898         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24899         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
24900         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
24901
24902 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
24903
24904         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
24905         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
24906         tgamma.
24907         * math/auto-libm-test-out: Regenerated.
24908         * sysdeps/i386/fpu/libm-test-ulps: Update.
24909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24910
24911 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24912
24913         * math/auto-libm-test-in: Add more tests of tgamma.
24914         * math/auto-libm-test-out: Regenerated.
24915         * sysdeps/i386/fpu/libm-test-ulps: Update.
24916         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24917
24918         * math/auto-libm-test-in: Add more tests of tanh.
24919         * math/auto-libm-test-out: Regenerated.
24920         * sysdeps/i386/fpu/libm-test-ulps: Update.
24921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24922
24923         * math/auto-libm-test-in: Add more tests of tan.
24924         * math/auto-libm-test-out: Regenerated.
24925         * sysdeps/i386/fpu/libm-test-ulps: Update.
24926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24927
24928         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
24929         * math/auto-libm-test-out: Regenerated.
24930         * sysdeps/i386/fpu/libm-test-ulps: Update.
24931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24932
24933         * math/auto-libm-test-in: Add another test of pow.
24934         * math/auto-libm-test-out: Regenerated.
24935         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24936
24937         * math/auto-libm-test-in: Add more tests of lgamma.
24938         * math/auto-libm-test-out: Regenerated.
24939         * sysdeps/i386/fpu/libm-test-ulps: Update.
24940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24941
24942         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
24943         log1p.
24944         * math/auto-libm-test-out: Regenerated.
24945         * sysdeps/i386/fpu/libm-test-ulps: Update.
24946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24947
24948 2015-05-01  Mark Wielaard  <mjw@redhat.com>
24949
24950         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
24951         Elf64_Chdr structs and ELFCOMPRESS constants.
24952
24953 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24954
24955         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
24956         expm1.
24957         * math/auto-libm-test-out: Regenerated.
24958         * sysdeps/i386/fpu/libm-test-ulps: Update.
24959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24960
24961         * math/auto-libm-test-in: Add more tests of erf and erfc.
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  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24967
24968         * config.h.in (HAVE_AARCH64_BE): Add.
24969
24970 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
24971
24972         * math/auto-libm-test-in: Add more tests of csqrt.
24973         * math/auto-libm-test-out: Regenerated.
24974         * sysdeps/i386/fpu/libm-test-ulps: Update.
24975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24976
24977         * math/auto-libm-test-in: Add more tests of cosh and sinh.
24978         * math/auto-libm-test-out: Regenerated.
24979         * sysdeps/i386/fpu/libm-test-ulps: Update.
24980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24981
24982         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
24983
24984 2015-04-29  Roland McGrath  <roland@hack.frob.com>
24985
24986         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
24987         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
24988
24989         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
24990         (euidaccess, eaccess): Define as weak aliases.
24991
24992         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
24993         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
24994         but __suseconds_t is often 'long int' so some sources assume that
24995         type is being used (e.g. they use %ld to print tv_usec).
24996
24997 2015-04-29  Florian Weimer  <fweimer@redhat.com>
24998
24999         [BZ #18007]
25000         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
25001         (CVE-2014-8121)
25002         * nss/tst-nss-getpwent.c: New file.
25003         * nss/Makefile (tests): Add new test.
25004
25005 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
25006
25007         [BZ #18346]
25008         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
25009         exponents less than 48 as cases where high part of mantissa needs
25010         examining to determine whether argument is integral.
25011         * math/libm-test.inc (round_test_data): Add more tests.
25012
25013 2015-04-28  Mark Wielaard  <mjw@redhat.com>
25014
25015         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
25016
25017 2015-04-27  David S. Miller  <davem@davemloft.net>
25018
25019         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
25020         __tls_get_addr.
25021         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25022
25023 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25024
25025         [BZ#18333]
25026         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
25027
25028 2015-04-27  Florian Weimer  <fweimer@redhat.com>
25029
25030         [BZ#18333]
25031         * time/tzset.c (parse_tzname): Return error on memory allocation
25032         failure.
25033         * test-skeleton.c (struct temp_name_list): Change type of name
25034         member to non-const.
25035         (add_temp_file): Create a copy of the file name.
25036         (delete_temp_files): Deallocate memory.
25037         (create_temp_file): Add comment.
25038
25039 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25040
25041         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
25042         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
25043
25044 2015-04-24  Roland McGrath  <roland@hack.frob.com>
25045
25046         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
25047         * sysdeps/arm/configure: Regenerated.
25048
25049 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25050
25051         [BZ #17715]
25052         * time/tzfile.c (__tzfile_read): Check for large values of
25053         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
25054         * time/tzset.c (__tzstring_len): New function, based on the old
25055         __tzstring function.
25056         (__tzstring): Call __tzstring_len.
25057         (parse_tzname): New helper function extracted from
25058         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
25059         the input string.
25060         (parse_offset): New helper function extracted from
25061         __tzset_parse_tz.  Replace switch with fallthrough with
25062         initialization before sscanf.
25063         (parse_rule): Likewise.
25064         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
25065         new-style function definition.
25066         * timezone/Makefile (tests): Add tst-tzset.
25067         (tst-tzset.out): Dependencies on time zone files.
25068         (tst-tzset-ENV): Set TZDIR.
25069         (testdata/XT%): Copy crafted time zone files.
25070         * timezone/README: Mention crafted time zone files.
25071         * timezone/testdata/XT1, timezone/testdata/XT2,
25072         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
25073         files.
25074         * timezone/tst-tzset.c: New test.
25075
25076 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25077
25078         * Makeconfig (+gccwarn): Remove -Winline.
25079
25080 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25081
25082         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
25083
25084 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25085
25086         * NEWS: Mention sysconf() cache information support for s390.
25087         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
25088
25089 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
25090
25091         * math/k_casinh.c (__kernel_casinh): Use __copysign.
25092         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
25093         (__nearbyint): Likewise.
25094         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
25095         (copysignl): Likewise.
25096
25097 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
25098
25099         [BZ #18287]
25100         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
25101         based on padding.  (CVE-2015-1781)
25102
25103 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25104
25105         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
25106         libc-vdso.h.
25107         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
25108         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
25109         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
25110         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
25111         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
25112         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
25113         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
25114         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
25115         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
25116         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
25117         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
25118         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25119         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
25120         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
25121         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
25122         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
25123         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
25124         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
25125         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
25126         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
25127         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
25128         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
25129         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
25130
25131 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25132
25133         * stdlib/setenv.c (__add_to_environ):
25134         Dump core quickly if setenv (..., NULL, ...) is called.
25135         This time, do it the right way, and pacify GCC with a pragma.
25136
25137 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25138
25139         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
25140         IMAP->l_prev cannot be null, and #if out the code for the contrary
25141         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
25142         believe that NS (&_dl_ns[NSID]) could point outside the array.
25143
25144         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
25145         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
25146         before using NSID as an index.
25147
25148 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
25149
25150         [BZ #17825]
25151         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
25152         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
25153         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
25154
25155 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25156
25157         Add preliminary port to Google Native Client on ARM.
25158         * abi-tags (.*-.*-nacl.*): New entry.
25159         * sysdeps/arm/nacl: New directory.
25160         * sysdeps/nacl: New directory.
25161
25162 2015-04-16  David S. Miller  <davem@davemloft.net>
25163
25164         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
25165         lowlevellock-futex.h
25166
25167 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
25168
25169         * sysdeps/tile/configure.ac: New file.
25170         * sysdeps/tile/configure: Regenerated.
25171
25172 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25173
25174         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
25175         conditionals for weak_alias and libc_hidden_weak.
25176         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
25177         libc_hidden_weak and weak_alias.
25178         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
25179         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
25180         and weak_alias for static one.
25181
25182 2015-04-15  David S. Miller  <davem@davemloft.net>
25183
25184         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
25185
25186 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25187
25188         [BZ #18206]
25189         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
25190           Use signed comparision instead of substraction to avoid
25191           overflow bug.
25192         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
25193           Take the sign of ret.
25194         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
25195           Do not expect precise return values. Only the sign matters.
25196         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
25197         * wcsmbs/test-wcsncmp.c: New File.
25198         * string/test-strncmp.c: Add wcsncmp support.
25199
25200 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25201
25202         [BZ #6792]
25203         * math/w_log1p.c: New file.
25204         * math/w_log1pf.c: Likewise.
25205         * math/w_log1pl.c: Likewise.
25206         * math/Makefile (libm-calls): Add w_log1p.
25207         * math/s_log1pl.c (log1pl): Remove weak_alias.
25208         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
25209         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
25210         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
25211         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
25212         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
25213         [NO_LONG_DOUBLE] (log1pl): Likewise.
25214         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
25215         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
25216         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
25217         (log1p): Remove long_double_symbol.
25218         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
25219         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
25220         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
25221         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
25222         remove weak_alias for corresponding log1p function.
25223         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
25224         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
25225         * sysdeps/ia64/fpu/w_log1p.c: New file.
25226         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
25227         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
25228         * math/libm-test.inc (log1p_test_data): Add errno expectations.
25229
25230 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
25231
25232         [BZ #18247]
25233         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
25234         decimal exponent by 1.
25235         * stdlib/tst-strtod-round-data: Add more tests.
25236         * stdlib/tst-strtod-round.c (tests): Regenerated.
25237
25238 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
25239
25240         * math/auto-libm-test-in: Add more tests of clog and clog10.
25241         * math/auto-libm-test-out: Regenerated.
25242         * sysdeps/i386/fpu/libm-test-ulps: Update.
25243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25244
25245 2015-04-09  Roland McGrath  <roland@hack.frob.com>
25246
25247         * Makeconfig (module-cppflags): Exclude all .v.i files.
25248         (skip-module-cppflags): Variable removed.
25249
25250         * configure.ac (libc_config_ok): Initialize before reading
25251         preconfigure scripts, not after.
25252         * configure: Regenerated.
25253
25254         * test-skeleton.c (TIMEOUT): Move #define to top level.
25255         (main): Grok environment variable TEST_DIRECT.  If set, print
25256         test expectation details into that file and then behave as if
25257         given --direct.
25258
25259 2015-04-09  Florian Weimer  <fweimer@redhat.com>
25260
25261         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
25262         warning on 32-bit.
25263
25264 2015-04-08  David S. Miller  <davem@davemloft.net>
25265
25266         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25267
25268 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25269
25270         * math/auto-libm-test-in: Add more tests of atanh.
25271         * math/auto-libm-test-out: Regenerated.
25272         * sysdeps/i386/fpu/libm-test-ulps: Update.
25273         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25274
25275         * math/auto-libm-test-in: Add more tests of atan.
25276         * math/auto-libm-test-out: Regenerated.
25277         * sysdeps/i386/fpu/libm-test-ulps: Update.
25278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25279
25280 2015-04-08  Florian Weimer  <fweimer@redhat.com>
25281
25282         * elf/pldd.c (main): Rewrite to use struct
25283         scratch_buffer instead of extend_alloca.
25284         * elf/pldd-xx.c (find_maps): Likewise.
25285         * grp/initgroups.c: Include <scratch_buffer.h> instead of
25286         <alloca.h>.
25287         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
25288         scratch_buffer instead of extend_alloca.
25289         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
25290         grp/compat-initgroups.c.
25291         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
25292         Rewrite to use struct scratch_buffer instead of extend_alloca.
25293         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
25294         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25295
25296 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25297
25298         * math/auto-libm-test-in: Add more tests of cbrt.
25299         * math/auto-libm-test-out: Regenerated.
25300         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25301
25302         * math/auto-libm-test-in: Add more tests of cabs.
25303         * math/auto-libm-test-out: Regenerated.
25304         * sysdeps/i386/fpu/libm-test-ulps: Update.
25305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25306
25307         [BZ #18210]
25308         [BZ #18211]
25309         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
25310         (__ieee754_atan2): Set FE_TONEAREST mode for internal
25311         computations.
25312         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
25313         clog10.
25314         * math/auto-libm-test-out: Regenerated.
25315         * sysdeps/i386/fpu/libm-test-ulps: Update.
25316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25317
25318         [BZ #18197]
25319         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
25320         (atan): Set FE_TONEAREST mode for internal computations.
25321         * math/auto-libm-test-in: Add more tests of atan.
25322         * math/auto-libm-test-out: Regenerated.
25323
25324 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
25325
25326         [BZ #17930]
25327         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
25328
25329 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25330
25331         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
25332
25333 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25334
25335         * include/scratch_buffer.h: New file.
25336         * malloc/scratch_buffer_grow.c: Likewise.
25337         * malloc/scratch_buffer_grow_preserve.c: Likewise.
25338         * malloc/scratch_buffer_set_array_size.c: Likewise.
25339         * malloc/tst-scratch_buffer.c: Likewise.
25340         * malloc/Makefile (routines): Add scratch_buffer_grow.
25341         (tests): Add test case.
25342         * malloc/Versions (GLIBC_PRIVATE): Export
25343         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
25344         __libc_scratch_buffer_set_array_size.
25345
25346 2015-04-06  Richard Henderson  <rth@redhat.com>
25347
25348         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
25349         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25350
25351         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
25352         unsigned int before printing.
25353
25354 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25355
25356         [BZ #17596]
25357         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
25358         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
25359
25360 2015-04-02  Florian Weimer  <fweimer@redhat.com>
25361
25362         * include/libc-internal.h (libc_max_align_t): Define.
25363
25364 2015-04-02  Andreas Schwab  <schwab@suse.de>
25365
25366         [BZ #16850]
25367         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
25368
25369 2015-04-02  Mel Gorman  <mgorman@suse.de>
25370
25371         [BZ #17195]
25372         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
25373         as well as the main arena.
25374
25375 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25376
25377         [BZ #18185]
25378         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
25379         sharing L2 cache to 2 for Silvermont/Knights Landing.
25380
25381 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25382
25383         [BZ #17711]
25384         * config.make.in (have-protected-data): New.
25385         * configure.ac: Check linker support for protected data symbol.
25386         * configure: Regenerated.
25387         * elf/Makefile (modules-names): Add tst-protected1moda and
25388         tst-protected1modb if $(have-protected-data) is yes.
25389         (tests): Add tst-protected1a and tst-protected1b if
25390         $(have-protected-data) is yes.
25391         ($(objpfx)tst-protected1a): New.
25392         ($(objpfx)tst-protected1b): Likewise.
25393         (tst-protected1modb.so-no-z-defs): Likewise.
25394         * elf/tst-protected1a.c: New file.
25395         * elf/tst-protected1b.c: Likewise.
25396         * elf/tst-protected1mod.h: Likewise.
25397         * elf/tst-protected1moda.c: Likewise.
25398         * elf/tst-protected1modb.c: Likewise.
25399
25400 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25401
25402         [BZ #17711]
25403         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
25404         indicates it is called from do_lookup_x on relocation against
25405         protected data, skip the data definion in the executable from
25406         copy reloc.
25407         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
25408         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
25409         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
25410         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
25411         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
25412         otherwise to 0.
25413         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25414         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
25415         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
25416         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25417         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
25418         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
25419
25420 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
25421
25422         * sysdeps/nptl/pthread.h: Remove duplicate definition of
25423         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
25424
25425 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
25426
25427         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
25428         THREAD_SETMEM_NC.
25429         * sysdeps/x86_64/nptl/tls.h: Ditto.
25430
25431 2015-03-27  Roland McGrath  <roland@hack.frob.com>
25432
25433         * dlfcn/tststatic.c (main): Converted to ...
25434         (do_test): ... this.
25435         (TEST_FUNCTION): New macro.
25436         Include test-skeleton.c.
25437
25438 2015-03-26  Alan Modra  <amodra@gmail.com>
25439
25440         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
25441         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
25442         zero for undefined weak.
25443         (elf_machine_plt_conflict): Similarly.
25444
25445 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25446
25447         * math/auto-libm-test-in: Add more tests of acosh, asinh and
25448         atanh.
25449         * math/auto-libm-test-out: Regenerated.
25450         * sysdeps/i386/fpu/libm-test-ulps: Update.
25451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25452
25453         * math/auto-libm-test-in: Add another test of asin.
25454         * math/auto-libm-test-out: Regenerated.
25455         * sysdeps/i386/fpu/libm-test-ulps: Update.
25456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25457
25458         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
25459         Remove macro.
25460         (LLL_EBX_REG): Likewise.
25461         (LLL_ENTER_KERNEL): Likewise.
25462
25463         * math/auto-libm-test-in: Add more tests of asin.
25464         * math/auto-libm-test-out: Regenerated.
25465         * sysdeps/i386/fpu/libm-test-ulps: Update.
25466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25467
25468         [BZ #18138]
25469         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
25470         libc_do_syscall_args): New structure.
25471         (INTERNAL_SYSCALL_MAIN_0): New macro.
25472         (INTERNAL_SYSCALL_MAIN_1): Likewise.
25473         (INTERNAL_SYSCALL_MAIN_2): Likewise.
25474         (INTERNAL_SYSCALL_MAIN_3): Likewise.
25475         (INTERNAL_SYSCALL_MAIN_4): Likewise.
25476         (INTERNAL_SYSCALL_MAIN_5): Likewise.
25477         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
25478         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
25479         Replace conditional definitions by conditional definitions of ....
25480         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
25481         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
25482         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
25483         (libpthread-sysdep_routines): Add libc-do-syscall.
25484         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
25485         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
25486         to __NR_futex not 240.
25487
25488 2015-03-25  Alan Modra  <amodra@gmail.com>
25489
25490         * NEWS: Advertise TLS optimization.
25491         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
25492         (DT_PPC_NUM): Increment.
25493         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
25494         (CHECK_STATIC_TLS): Use here.
25495         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
25496         TLS descriptors.
25497         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
25498         * sysdeps/powerpc/dl-tls.c: New file.
25499         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
25500         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
25501         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
25502         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
25503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
25504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
25505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
25506
25507 2015-03-25  Alan Modra  <amodra@gmail.com>
25508
25509         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
25510         for overlapping .opd entries" to "support...".
25511         * sysdeps/powerpc/powerpc64/configure: Regenerate
25512
25513 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25514
25515         * math/auto-libm-test-in: Add more tests of acos.
25516         * math/auto-libm-test-out: Regenerated.
25517         * sysdeps/i386/fpu/libm-test-ulps: Update.
25518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25519
25520         * math/auto-libm-test-in: Add more tests of expm1.
25521         * math/auto-libm-test-out: Regenerated.
25522         * sysdeps/i386/fpu/libm-test-ulps: Update.
25523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25524
25525 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
25526
25527         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25528         * math/auto-libm-test-out: Regenerated.
25529         * sysdeps/i386/fpu/libm-test-ulps: Update.
25530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25531
25532         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25534
25535         * math/auto-libm-test-in: Add more tests of log2.
25536         * math/auto-libm-test-out: Regenerated.
25537         * sysdeps/i386/fpu/libm-test-ulps: Update.
25538         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25539
25540 2015-03-23  Roland McGrath  <roland@hack.frob.com>
25541
25542         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
25543         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
25544         _IO_IS_APPENDING bit in READ_WRITE instead.
25545
25546 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25547
25548         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
25549         (__determine_cpumask_size): Replace extend_alloca with a
25550         variable-length array.  Do not treat res == 0 as an error.
25551
25552 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25553
25554         [BZ #18100]
25555         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
25556         and integer overflow.
25557         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
25558         (main): Add integer overflow tests.
25559         * manual/pattern.texi (Calling Wordexp): Document additional use
25560         for WRDE_SYNTAX.
25561
25562 2015-03-23  Alan Modra  <amodra@gmail.com>
25563
25564         * config.h.in: Remove HAVE_ASM_PPC_REL16.
25565         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
25566         and false branch of conditional.
25567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
25568         Likewise.
25569
25570 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
25571
25572         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
25573         libc-modules.h
25574         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
25575         unused declaration of _hurd_intr_rpc_msg_in_trap.
25576         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
25577         defined instead of whether it is non-zero.
25578         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
25579         input constraint instead of both input and output constraint.  Use ecx
25580         clobber instead of %ecx.
25581         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
25582         mutex_unlock): Use a statement expression instead of an expression list.
25583         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
25584         type to vm_size_t instead of vm_address_t.
25585         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
25586         defined instead of whether it is non-zero.
25587         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
25588         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
25589         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
25590         comparisons with mapaddr.
25591         * nscd/nscd-client.h: Include <time.h>.
25592         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
25593         9th parameter to __vm_region instead of int.
25594         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
25595         * scripts/check-local-headers.sh (exclude): Add device/,
25596         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
25597         cthreads.h.
25598
25599 2015-03-19  Roland McGrath  <roland@hack.frob.com>
25600
25601         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
25602         to account for alignment padding.
25603         * sysdeps/arm/memmove.S: Likewise.
25604
25605 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
25606
25607         * sysdeps/unix/sysv/linux/generic/README: New file.
25608
25609 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
25610
25611         [BZ #18138]
25612         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
25613         (futex_abstimed_wait)
25614         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
25615         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
25616         of lll_futex_timed_wait.
25617
25618 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
25619
25620         [BZ #17542]
25621         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
25622
25623 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
25624
25625         [BZ #17090]
25626         [BZ #17620]
25627         [BZ #17621]
25628         [BZ #17628]
25629         * NEWS: Update.
25630         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
25631         entries with Static TLS too.  Skip entries past the end of the
25632         allocated DTV, from Alan Modra.
25633         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
25634         Static TLS DTV entry set up from...
25635         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
25636         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
25637         * nptl/allocatestack.c (init_one_static_tls): ... and here...
25638         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
25639         for Static TLS.
25640         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
25641         that the slot we find is associated with the given map before
25642         using its generation count.
25643         * nptl_db/db_info.c: Include ldsodefs.h.
25644         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
25645         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
25646         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
25647         (link_map::l_tls_offset): New struct field.
25648         (dtv_t::counter): Likewise.
25649         (rtld_global): New struct.
25650         (_rtld_global): New rtld variable.
25651         (dl_tls_dtv_slotinfo_list): New rtld global field.
25652         (dtv_slotinfo_list): New struct.
25653         (dtv_slotinfo): Likewise.
25654         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
25655         (td_lookup): Rename to...
25656         (td_mod_lookup): ... this.  Use new mod parameter instead of
25657         LIBPTHREAD_SO.
25658         * nptl_db/td_thr_tlsbase.c: Include link.h.
25659         (dtv_slotinfo_list, dtv_slotinfo): New functions.
25660         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
25661         addresses even if the DTV is out of date or missing them.
25662         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
25663         index zero-length arrays.
25664         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
25665         (td_lookup): Make it a macro implemented in terms of...
25666         (td_mod_lookup): ... this declaration.
25667         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
25668         (DB_MAIN_VARIABLE): Likewise.
25669
25670 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25671
25672         [BZ #18134]
25673         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
25674
25675 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25676
25677         * stdlib/setenv.c (__add_to_environ): Revert previous change.
25678
25679 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
25680
25681         [BZ #18128]
25682         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
25683         (atomic_add, atomic_increment_and_test)
25684         (atomic_decrement_and_test): Fix 64-bit arithmetic.
25685
25686 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25687
25688         * stdlib/setenv.c (__add_to_environ):
25689         Dump core quickly if setenv (..., NULL, ...) is called.
25690
25691 2015-03-13  Roland McGrath  <roland@hack.frob.com>
25692
25693         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
25694         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
25695         all the necessary asm magic in one place.
25696         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
25697         using those.
25698
25699 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
25700
25701         [BZ #14906]
25702         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
25703         traced file mtime. Use consistent log message.
25704         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
25705         (register_traced_file): Call install_watches. Always set mtime.
25706         (invalidate_cache): Iterate over all trace files. Call install_watches.
25707         (inotify_check_files): Don't inline. Handle watching parent
25708         directories and configuration file movement in and out.
25709         (handle_inotify_events): New function.
25710         (main_loop_poll): Call handle_inotify_events.
25711         (main_loop_epoll): Likewise.
25712         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
25713         (struct traced_file): Use array of inotify fds. Add parent directory,
25714         and basename.
25715         (struct database_dyn): Remove unused file_mtime.
25716         (init_traced_file): New inline function.
25717         (define_traced_file): New macro.
25718         * nss/nss_db/db-init.c: Use define_traced_file.
25719         (_nss_db_init): Use init_traced_file.
25720         * nss/nss_files/files-init.c: Use define_traced_file.
25721         (_nss_files_init): Use init_traced_file.
25722
25723 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
25724
25725         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
25726         [_LIBC]: Do not include <stdlib.h>.
25727         [!_LIBC] (abort): Remove declaration.
25728         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
25729         _FP_STATIC_ASSERT instead of conditionally calling abort.
25730         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
25731         (_FP_EXTEND_CNAN): Likewise.
25732         (FP_TRUNC): Likewise.
25733         (__FP_CLZ): Likewise.
25734         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
25735
25736 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
25737
25738         * manual/string.texi (XPG basename): Fix prototype.
25739
25740 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25741
25742         [BZ #18080]
25743         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
25744         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25745         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
25746         (__setcontext): Likewise.
25747         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
25748         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25749         Call rt_sigprocmask syscall one time to set new signal mask
25750         and retrieve the current signal mask instead of two calls.
25751         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
25752         (__swapcontext): Likewise.
25753         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
25754         * stdlib/tst-setcontext2.c: New file.
25755
25756 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25757
25758         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
25759
25760 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
25761
25762         [BZ #18093]
25763         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
25764         the wrong size.
25765
25766 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
25767
25768         [BZ #18043]
25769         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
25770
25771 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25772
25773         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
25774         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
25775         Remove define.
25776         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
25777         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
25778         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
25779         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
25780         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
25781         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
25782         define.
25783         * nptl_db/td_symbol_list.c (td_lookup): Remove
25784         HAVE_ASM_GLOBAL_DOT_NAME code.
25785         * sysdeps/powerpc/powerpc64/configure.ac: Remove
25786         HAVE_ASM_GLOBAL_DOT_NAME check.
25787         * sysdeps/powerpc/powerpc64/configure: Regenerate.
25788         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
25789         (DOT_LABEL): Remove define.
25790         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
25791         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
25792         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
25793         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
25794         (__TLS_GET_ADDR): Likewise.
25795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
25796         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
25797
25798 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
25799
25800         [BZ #18111]
25801         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
25802         (_FPU_SETCW): Initialize cw from fpsr before storing.
25803         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
25804         (fesetexceptflag): Rewrite using fpu_control.h.
25805         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
25806
25807 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
25808
25809         [BZ #18110]
25810         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
25811         asms.
25812         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25813
25814 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
25815
25816         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
25817         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
25818         abort.
25819         (_FP_FMA): Likewise.
25820         (_FP_DIV): Likewise.
25821
25822 2015-03-10  Roland McGrath  <roland@hack.frob.com>
25823
25824         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
25825         with 0 in that case.
25826         * Makefile (summarize-tests): New canned sequence, factored out of
25827         commands for targets tests and xtests.  Display summary lines that
25828         don't start with PASS: or XFAIL: rather than ones that do start with
25829         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
25830         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
25831         do start with ERROR: or FAIL:.
25832         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
25833         (except for [$(build-shared) = yes]).
25834         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
25835         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
25836         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
25837         * nptl/Makefile: Revert 2015-03-04 changes.
25838         [$(CXX) empty] (tests-unsupported): New variable.
25839         * debug/Makefile: Likewise.
25840
25841         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
25842         gnulib file.  Replace __attribute with __attribute__ throughout.
25843
25844 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
25845
25846         * sysdeps/hppa/fpu/libm-test-ulps: Update.
25847
25848 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25849
25850         [BZ #18104]
25851         * math/auto-libm-test-in: Add another test of pow.
25852         * math/auto-libm-test-out: Regenerated.
25853
25854 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25855
25856         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
25857         $(config-cflags-nofma).
25858
25859 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25860
25861         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
25862         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
25863         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
25864         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
25865         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
25866         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
25867         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
25868         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
25869         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
25870         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
25871         Add comment on closing #endif.
25872
25873 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25874
25875         * posix/wordexp.c (CHAR_IN_SET): New macro.
25876         (parse_param): Use it.
25877
25878 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25879
25880         * sysdeps/powerpc/fpu/libm-test-ulps: update.
25881
25882 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25883
25884         [BZ #18043]
25885         * posix/wordexp.c (parse_param): Fix buffer overflow.
25886         * posix/wordexp-test.c (test_case): Add test case.
25887
25888 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25889
25890         [BZ #18042]
25891         * posix/wordexp.c (parse_backtick): Fix off-by-one.
25892         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
25893
25894 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25895
25896         [BZ #18043]
25897         * posix/wordexp-test.c (test_case): Add test for BZ #18043
25898         (do_bz18043): Delete.
25899         (at_page_end): New.
25900         (testit): Refactor to have words at the edge of unreadable page.
25901
25902 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
25903
25904         [BZ #16734]
25905         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
25906         Cleanup read-only streams as well.
25907         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
25908
25909 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25910
25911         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
25912         <bits/libc-lockP.h>
25913
25914 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
25915
25916         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
25917         on [__KERNEL__].
25918         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
25919         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
25920         * soft-fp/op-common.h (_FP_DECL): Likewise.
25921
25922 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
25923
25924         * elf/ifuncdep2.c (global): Replace
25925         __attribute__((visibility("protected"))) with
25926         asm (".protected global").
25927         * elf/ifuncmod1.c (global): Likewise.
25928         * elf/ifuncmod5.c (global): Likewise.
25929
25930 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
25931
25932         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
25933         <asm/sfp-machine.h> instead of <sfp-machine.h>.
25934
25935 2015-03-06  Roland McGrath  <roland@hack.frob.com>
25936
25937         * manual/install.texi (Configuring and compiling):
25938         Document test-wrapper-env-only.
25939         * INSTALL: Regenerated.
25940
25941 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25942
25943         [BZ #18043]
25944         * posix/wordexp.c (parse_param): Fix buffer overflow.
25945         * posix/wordexp-test.c (do_bz18043): Add test case.
25946
25947 2015-03-06  Vincent Bernat  <vincent@bernat.im>
25948
25949         * time/tst-strptime2.c (do_test): Ensure failing tests are
25950         reported correctly.
25951         * time/tst-strptime3.c (do_test): Likewise.
25952
25953 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
25954
25955         Fix aio_error thread-safety.
25956         * sysdeps/pthread/aio_error.c: New file
25957         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
25958         synchronization.
25959
25960 2015-03-06  Florian Weimer  <fweimer@redhat.com>
25961
25962         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
25963         (group_number, vfprintf): Use it.
25964         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
25965         (JUMP, REF): Use it.
25966         (WORK_BUFFER_SIZE): New enum constant.
25967         (process_arg, vfprintf): Use it.
25968
25969 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
25970
25971         * manual/errno.texi (Error Messages): Complete example function
25972         by adding missing #define.
25973         (program_invocation_name): Add statement indicating GNU
25974         extension and reference which header file declares the variable.
25975         (program_invocation_short_name): Likewise.
25976
25977 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
25978
25979         * manual/errno.texi (Error Messages): Delete strerror ISO C89
25980         compatibility note.
25981
25982 2015-03-05  Roland McGrath  <roland@hack.frob.com>
25983
25984         * Makeconfig (test-wrapper-env-only): New variable.
25985         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
25986         then use that with $(test-wrapper-env-only) rather than using
25987         $(test-wrapper-env) $(run-program-env) $($*-ENV).
25988
25989 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25990
25991         [BZ #18082]
25992         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
25993         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
25994         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
25995         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
25996         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
25997         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
25998         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
25999         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
26000         Likewise.
26001         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
26002         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
26003         Likewise.
26004         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
26005         Likewise.
26006         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
26007         Likewise.
26008         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
26009         Likewise.
26010         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
26011         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
26012         Likewise.
26013         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
26014         Likewise.
26015         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
26016         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
26017
26018 2015-03-04  Roland McGrath  <roland@hack.frob.com>
26019
26020         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
26021         (ETH_ALEN): New macro.
26022         (struct ether_addr): Use it for length of ether_addr_octet.
26023
26024         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
26025         (setdb): Don't call __nss_configure_lookup for "rpc".
26026         (do_test): Don't call test_rpc.
26027         (output_rpcent, test_rpc): Functions moved ...
26028         * sunrpc/test-rpcent.c: ... to this new file.
26029         * sunrpc/Makefile (tests): Add it.
26030
26031         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
26032         __xpg_sigpause.
26033         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
26034         * nptl/tst-signal6.c: Likewise.
26035         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
26036         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
26037
26038         * configure.ac (libc_cv_cxx_link_ok): New check.
26039         Reset CXX to empty if it fails to link.
26040         * configure: Regenerated.
26041         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
26042         bug-atexit3-lib only if $(CXX) is nonempty.
26043         * nptl/Makefile (tests): Likewise for tst-cancel24.
26044         (tests, tests-static): Likewise for tst-cancel24-static.
26045         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
26046         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
26047         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
26048         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
26049
26050 2015-03-04  Andreas Schwab  <schwab@suse.de>
26051
26052         [BZ #17631]
26053         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
26054         for non-GCC compilers.
26055         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
26056         Likewise.
26057
26058 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26059
26060         [BZ #17776]
26061         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
26062         integer before bitwise and assembly operations.
26063         (feclearexcept): Likewise.
26064         * math/test-fenvinline.c: New file.
26065         * math/Makefile: Add test-fenvinline test.
26066
26067 2015-03-03  Alan Modra  <amodra@gmail.com>
26068
26069         [BZ #16512]
26070         * scripts/localplt.awk: Strip off symbol version.
26071         * NEWS: Mention bug fix.
26072
26073 2015-03-02  Roland McGrath  <roland@hack.frob.com>
26074
26075         * sysdeps/pthread/timer_routines.c
26076         (timer_free_list, thread_free_list, thread_active_list): Make static.
26077
26078 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
26079
26080         [BZ #17779]
26081         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26082         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26083         Undefine.
26084         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26085         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26086         Likewise.
26087         * sysdeps/unix/sysv/linux/sh/kernel-features.h
26088         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26089         Likewise.
26090
26091 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26092
26093         [BZ #18036]
26094         * posix/fnmatch_loop.c (END): Detect invalid pattern.
26095         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
26096
26097 2015-03-02  Andreas Schwab  <schwab@suse.de>
26098
26099         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
26100         variable name.
26101
26102 2015-03-02  Florian Weimer  <fweimer@redhat.com>
26103
26104         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
26105         Return error status.
26106
26107 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
26108
26109         [BZ #15969]
26110         * locale/findlocale.c (_nl_find_locale): Introduce const
26111         version of loc_name and drop unsafe type casts.
26112
26113 2015-02-27  Roland McGrath  <roland@hack.frob.com>
26114
26115         * dlfcn/tststatic2.c (main): Converted to ...
26116         (do_test): ... this.
26117         (TEST_FUNCTION): New macro.
26118         Include test-skeleton.c.
26119
26120 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26121
26122         [BZ #17711]
26123         * elf/Makefile (tests): Add vismain only if PIE is enabled.
26124         (tests-pie): Add vismain.
26125         (CFLAGS-vismain.c): New.
26126         * elf/vismain.c: Add comments for PIE requirement.
26127
26128 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26129
26130         [BZ #18046]
26131         [BZ #18047]
26132         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
26133         0x1p-56L as threshold for just returning the argument.
26134         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
26135         0x1p-32L as threshold for just returning the argument.
26136         * math/auto-libm-test-in: Add more tests of atanh.
26137         * math/auto-libm-test-out: Regenerated.
26138         * sysdeps/i386/fpu/libm-test-ulps: Update.
26139         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
26140
26141 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26142
26143         * string/bcopy.c (bcopy): Call memmove for performance.
26144
26145 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26146
26147         * string/bzero.c (__bzero): Call memset for performance.
26148
26149 2015-02-27  John David Anglin  <dave.anglin@bell.net>
26150
26151         [BZ #18068]
26152         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
26153         to 00100000.
26154
26155 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26156
26157         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
26158
26159 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26160
26161         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
26162         (__kernel_standard): Use CSTR macro when setting exc.name.
26163         * sysdeps/ieee754/Makefile [$(subdir) = math]
26164         (CFLAGS-k_standard.c): Remove variable.
26165
26166         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
26167         setting p and q from "else if" to "else".
26168         (qzero): Likewise.
26169         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
26170         (qone): Likewise.
26171         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
26172         (qzerof): Likewise.
26173         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
26174         (qonef): Likewise.
26175         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
26176         (qzero): Likewise.
26177         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
26178         (qone): Likewise.
26179
26180         [BZ #18038]
26181         [BZ #18039]
26182         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
26183         return pi/2 for arguments below 0x1p-113L.
26184         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
26185         return pi/2 for arguments below 0x1p-106L.
26186         * math/auto-libm-test-in: Add more tests of acos.
26187         * math/auto-libm-test-out: Regenerated.
26188
26189         [BZ #16351]
26190         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
26191         (MO): New macro.
26192         (__ieee754_asin): Force underflow exception for results with small
26193         absolute value.
26194         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
26195         (MO): New macro.
26196         (__ieee754_asinf): Force underflow exception for results with
26197         small absolute value.
26198         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
26199         (__ieee754_asin): Force underflow exception for results with small
26200         absolute value.
26201         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
26202         (__ieee754_asinf): Force underflow exception for results with
26203         small absolute value.
26204         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
26205         (__ieee754_asinl): Force underflow exception for results with
26206         small absolute value.
26207         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
26208         (__ieee754_asinl): Force underflow exception for results with
26209         small absolute value.
26210         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
26211         (__ieee754_asinl): Force underflow exception for results with
26212         small absolute value.
26213         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
26214         Include <math.h>.
26215         * math/auto-libm-test-in: Do not mark underflow exceptions as
26216         possibly missing for bug 16351.
26217         * math/auto-libm-test-out: Regenerated.
26218
26219         [BZ #18030]
26220         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
26221         of power of 2 down when low part has opposite sign.
26222         * math/libm-test.inc (logb_test_data): Add more tests.
26223
26224 2015-02-26  Andreas Schwab  <schwab@suse.de>
26225
26226         [BZ #18032]
26227         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
26228         over collating symbol inside a bracket expression.  Minor cleanup.
26229         * posix/tst-fnmatch3.c (do_test): Add test case.
26230
26231 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26232
26233         [BZ #18029]
26234         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
26235         Adjust exponent of power of 2 down when low part has opposite
26236         sign.
26237         * math/libm-test.inc (ilogb_test_data): Add more tests.
26238
26239 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
26240
26241         [BZ #15969]
26242         * locale/findlocale.c (_nl_find_locale): Fix constness error in
26243         the previous change.
26244
26245         [BZ #15969]
26246         * locale/findlocale.c (_nl_find_locale): Retry archive search
26247         after alias expansion.
26248
26249 2015-02-25  Roland McGrath  <roland@hack.frob.com>
26250
26251         * iconv/tst-iconv3.c (main): Converted to ...
26252         (do_test): ... this.
26253         (TEST_FUNCTION): New macro.
26254         Include test-skeleton.c.
26255
26256         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
26257         (convert): Make function static.
26258         (test_unalign): Likewise.  Add const to argument pointee types.
26259         (main): Replace with static function do_test.
26260         Print "Succeeded." only if RET is zero.
26261         (TEST_FUNCTION): New macro.
26262         Include test-skeleton.c.
26263
26264         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
26265         returns a null pointer.
26266
26267 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26268
26269         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
26270         to __memcpy_ppc only for static builds.
26271
26272 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
26273
26274         [BZ #18020]
26275         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
26276         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
26277         * math/auto-libm-test-in: Add more tests of asinh.
26278         * math/auto-libm-test-out: Regenerated.
26279         * sysdeps/i386/fpu/libm-test-ulps: Update.
26280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26281
26282 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
26283
26284         [BZ #15850]
26285         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
26286         and ip6_mtuinfo definitions here.
26287         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
26288         in this define too.  Update comment.
26289
26290 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
26291
26292         * elf/sprof.c (load_shobj): Tweak error message to match others.
26293
26294 2015-02-24  Kevin Easton  <kevin@guarana.org>
26295
26296         [BZ #16145] (partial fix)
26297         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
26298         to reduce lock contention.
26299
26300 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
26301
26302         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
26303         (struct timex): Update time comment.
26304         (ADJ_SETOFFSET): Define.
26305
26306 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26307
26308         [BZ #18019]
26309         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
26310         2**56 not 2**28 as threshold for log (2x) formula.
26311         * math/auto-libm-test-in: Add more tests of acosh.
26312         * math/auto-libm-test-out: Regenerated.
26313         * sysdeps/i386/fpu/libm-test-ulps: Update.
26314         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26315
26316 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26317
26318         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
26319         parenthesis around the buf assignment.
26320         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
26321
26322 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26323
26324         [BZ #16783]
26325         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
26326         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
26327         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
26328         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26329         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26330         * math/libm-test.inc (scalb_test_data): Add more tests.
26331
26332 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
26333
26334         [BZ #17916]
26335         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
26336         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
26337
26338 2015-02-24  Eric Rannaud  <e@nanocritical.com>
26339
26340         [BZ #17523]
26341         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
26342         * io/bits/fcntl2.h (open): Use it.
26343         (openat): Likewise.
26344         * io/open.c (__libc_open): Likewise.
26345         * io/open64.c (__libc_open64): Likewise.
26346         * io/open64_2.c (__open64_2): Likewise.
26347         * io/open_2.c (__open_2): Likewise.
26348         * io/openat.c (__openat): Likewise.
26349         * io/openat64.c (__openat64): Likewise.
26350         * io/openat64_2.c (__openat64_2): Likewise.
26351         * io/openat_2.c (__openat_2): Likewise.
26352         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
26353         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
26354         * sysdeps/posix/open64.c (__libc_open64): Likewise.
26355         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
26356         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
26357         (__open_nocancel): Likewise.
26358         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
26359         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
26360         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
26361
26362 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26363
26364         [BZ #14841]
26365         * resolv/gethnamaddr.c (getanswer): Skip logging if
26366         RES_USE_DNSSEC is set.
26367         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
26368
26369 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26370
26371         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
26372
26373 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
26374
26375         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
26376         201304L, for Unicode 7.
26377
26378 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
26379
26380         [BZ #17836]
26381         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
26382         shared library.  Add gmon-start.os otherwise.
26383         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
26384         $(objpfx)gmon-start.os if builing shared library.
26385         ($(objpfx)g$(static-start-installed-name)): Likewise.
26386
26387 2015-02-23  Andreas Schwab  <schwab@suse.de>
26388
26389         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
26390
26391 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
26392
26393         [BZ #17269]
26394         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
26395         (enlarge_userbuf): Likewise.
26396
26397 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
26398
26399         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
26400         * math/atest-exp.c (TIMEOUT): Adjust to 200.
26401         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
26402         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
26403
26404 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
26405
26406         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
26407         expression inside statement expression.
26408
26409 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
26410
26411         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
26412         <sysdeps/nptl/lowlevellock.h> and remove macros and
26413         functions that are now defined there.
26414         (SYS_futex): Remove.
26415         (lll_compare_and_swap): Remove.
26416         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
26417
26418 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
26419
26420         [BZ #17999]
26421         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
26422         instead of scandirat.
26423         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
26424         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
26425         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
26426         __scandirat.
26427         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
26428         (__scandirat): Declare.  Use libc_hidden_proto.
26429         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
26430         Remove variable.
26431         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
26432
26433 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26434
26435         [BZ #15319]
26436         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
26437         (MO): New macro.
26438         (__ieee754_atan2): For results with small absolute value, force
26439         underflow exception and remove excess range and precision from
26440         return value.
26441         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
26442         (MO): New macro.
26443         (__ieee754_atan2f): For results with small absolute value, force
26444         underflow exception and remove excess range and precision from
26445         return value.
26446         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
26447         (MO): New macro.
26448         (__atan): For results with small absolute value, force underflow
26449         exception and remove excess range and precision from return value.
26450         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
26451         (MO): New macro.
26452         (__atanf): For results with small absolute value, force underflow
26453         exception and remove excess range and precision from return value.
26454         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
26455         <math.h>.
26456         (__ieee754_atan2): Force underflow exception for results with
26457         small absolute value.
26458         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
26459         <math_private.h>.
26460         (atan): Force underflow exception for results with small absolute
26461         value.
26462         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
26463         (__atanf): Force underflow exception for results with small
26464         absolute value.
26465         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
26466         <math.h>.
26467         (__atanl): Force underflow exception for results with small
26468         absolute value.
26469         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
26470         (__atanl): Force underflow exception for results with small
26471         absolute value.
26472         * sysdeps/x86/fpu/bits/mathinline.h
26473         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
26474         (__ieee754_atan2): Only define inline for long double.
26475         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
26476         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
26477         * math/auto-libm-test-in: Do not mark underflow exceptions as
26478         possibly missing for bug 15319.  Add more tests of atan2.
26479         * math/auto-libm-test-out: Regenerated.
26480         * math/libm-test.inc (casin_test_data): Do not mark underflow
26481         exceptions as possibly missing for bug 15319.
26482         (casinh_test_data): Likewise.
26483         * sysdeps/i386/fpu/libm-test-ulps: Update.
26484
26485 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
26486
26487         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
26488         * sysdeps/mips/bits/endian.h: Fix comments.
26489
26490 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26491
26492         [BZ #17996]
26493         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
26494         (hdestroy_r): Likewise.
26495         (hsearch_r): Likewise.
26496         (__hcreate_r): Declare and use libc_hidden_proto.
26497         (__hdestroy_r): Likewise.
26498         (__hsearch_r): Likewise.
26499         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
26500         (hcreate): Call __hcreate_r instead of hcreate_r.
26501         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
26502         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
26503         as weak alias of __hcreate_r.
26504         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
26505         __hdestroy_r.
26506         (hsearch_r): Rename to __hsearch_r and define as weak alias of
26507         __hsearch_r.
26508         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
26509         Remove variable.
26510         (test-xfail-XPG4/search.h/linknamespace): Likewise.
26511         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
26512         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
26513         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
26514
26515 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26516
26517         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
26518         arena_lock into a single arena_get.
26519
26520 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
26521
26522         * dl-reloc.c: Inlucde libc-internal.h.
26523         (_dl_try_allocate_static_tls): Call ALIGN_UP.
26524         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
26525         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
26526         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
26527         (grow_heap): Likewise.
26528         * malloc/malloc.c: Include libc-internal.h.
26529         (do_check_malloc): Call powerof2.
26530         (sysmalloc): Use pagesize. Call ALIGN_UP.
26531         (systrim): Use pagesize.
26532         (mremap_chunk): Use pagesize. Call ALIGN_UP.
26533         (__libc_valloc): Use pagesize.
26534         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
26535
26536 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26537
26538         [BZ #17991]
26539         * include/sys/resource.h (__getrlimit64): Declare.  Use
26540         libc_hidden_proto.
26541         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
26542         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
26543         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
26544         getrlimit64.
26545         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
26546         __getrlimit64.
26547         [!getrlimit64] (getrlimit64): Define as weak alias of
26548         __getrlimit64.  Use libc_hidden_weak.
26549         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
26550         using __getrlimit64 not __new_getrlimit64.
26551         (__GI_getrlimit64): Likewise.
26552         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
26553         Likewise.
26554         (__GI_getrlimit64): Likewise.
26555         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
26556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
26557         (getrlimit): Add __getrlimit64 alias.
26558         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
26559         Likewise.
26560         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
26561         Remove variable.
26562         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
26563         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
26564
26565 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
26566
26567         * libio/fileops.c: Add missing sys/mman.h
26568         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
26569
26570 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26571
26572         * manual/math.texi (Errors in Math Functions): Clarify goals
26573         regarding inexact and underflow exceptions.
26574
26575 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26576
26577         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
26578         * sysdeps/mips/memset.S: Ditto.
26579
26580 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26581
26582         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
26583
26584 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26585
26586         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
26587         (__v1longjmp): Remove versioned symbol.
26588         (__v1siglongjmp): Remove alias and versioned symbol.
26589         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
26590         (__v2siglongjmp): Likewise.
26591
26592 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26593
26594         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
26595
26596 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
26597
26598         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
26599
26600 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26601
26602         [BZ #17987]
26603         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
26604         zero result does not depend on the sign resulting from
26605         subtraction.
26606         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26607         Likewise.
26608         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26609         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26610         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26611         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26612         * math/libm-test.inc (remquo_test_data): Add more tests.
26613
26614 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26615
26616         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
26617         Problem reported by J William Piggott.
26618
26619 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26620
26621         [BZ #17978]
26622         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
26623         products 4 * y and 2 * y where those would overflow.
26624         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26625         Likewise.
26626         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26627         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26628         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26629         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26630         * math/libm-test.inc (remquo_test_data): Add more tests.
26631
26632         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
26633
26634         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
26635         [defined _COMPILING_NEWLIB].
26636         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
26637         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
26638
26639         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
26640         [!defined __mips_isa_rev || __mips_isa_rev < 6].
26641
26642 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26643
26644         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
26645         acquired.
26646
26647 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
26648
26649         [BZ #17792]
26650         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
26651         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
26652         HOST_STACK_END_ADDR): Likewise.
26653
26654 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
26655
26656         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
26657         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
26658         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
26659
26660 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26661
26662         * sysdeps/generic/c++-types.data: New file.
26663         * sysdeps/generic/ld.abilist: New file.
26664         * sysdeps/generic/libBrokenLocale.abilist: New file.
26665         * sysdeps/generic/libanl.abilist: New file.
26666         * sysdeps/generic/libc.abilist: New file.
26667         * sysdeps/generic/libcrypt.abilist: New file.
26668         * sysdeps/generic/libdl.abilist: New file.
26669         * sysdeps/generic/libm.abilist: New file.
26670         * sysdeps/generic/libpthread.abilist: New file.
26671         * sysdeps/generic/libresolv.abilist: New file.
26672         * sysdeps/generic/librt.abilist: New file.
26673
26674 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26675
26676         [BZ #17569]
26677         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26678         Compute absolute value of x as modified by fmod, not original
26679         value of x.
26680         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
26681         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
26682         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
26683         RUN_TEST_ffI_f1_mod8.
26684         (remquo_test_data): Add more tests.
26685
26686 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26687
26688         * sysdeps/init_array/pt-crti.S: New file.
26689
26690 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26691
26692         [BZ #17967]
26693         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
26694         __builtin_fmaf instead of relying on contraction of a * b + c.
26695
26696 2015-02-12  J William Piggott  <elseifthen@gmx.com>
26697
26698         [BZ #17969]
26699         * manual/time.texi: correct the zoneinfo path in the TZ Variable
26700         node.
26701
26702 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26703
26704         [BZ #17964]
26705         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
26706         __builtin_fma instead of relying on contraction of a * b + c.
26707
26708 2015-02-12  Roland McGrath  <roland@hack.frob.com>
26709
26710         * Makeconfig (ASFLAGS): Add -Werror=undef.
26711         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
26712         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
26713         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
26714
26715         * Makeconfig (after-link): New variable.
26716         (+link-pie, +link-pie-tests): Use it.
26717         (+link-static, +link-static-tests): Likewise.
26718         (+link, +link-tests): Likewise.
26719         * Makerules (build-module, build-module-asneeded): Likewise.
26720         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
26721         Likewise.
26722         * elf/Makefile ($(objpfx)ld.so): Likewise.
26723
26724 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
26725
26726         [BZ #17965]
26727         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
26728         both struct timeval and struct timespec.
26729
26730 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26731
26732         [BZ #16560]
26733         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
26734         and redefine.
26735         (__ieee754_exp2l): Do not multiply small fractional parts by
26736         M_LN2l.
26737         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
26738         small argument.
26739         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26740         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26741         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
26742         * math/auto-libm-test-in: Add more tests of exp2.
26743         * math/auto-libm-test-out: Regenerated.
26744
26745 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26746
26747         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
26748         unaligned path.
26749
26750 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26751
26752         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
26753         little endian.
26754
26755 2015-02-12  Andreas Schwab  <schwab@suse.de>
26756
26757         [BZ #15790]
26758         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
26759         Filter out elision flags from value returned in kind.
26760         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
26761         * nptl/tst-pthread-mutexattr.c: New file.
26762
26763 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26764
26765         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
26766         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
26767         into gnu-gnu, and update comment to refer to abi-tags.
26768
26769 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
26770
26771         [BZ #15467]
26772         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
26773         (__sincos): Set errno to EDOM for infinite argument.
26774         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
26775         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
26776         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
26777         (__sincosl): Set errno to EDOM for infinite argument.
26778         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
26779         (__sincosl): Set errno to EDOM for infinite argument.
26780         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
26781         (__sincosl): Set errno to EDOM for infinite argument.
26782         * math/libm-test.inc (sincos_test_data): Test errno setting.
26783
26784 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
26785
26786         * string/strxfrm_l.c: Remove #define STRCMP.
26787         * string/strcoll_l.c: Remove #define STRLEN.
26788         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
26789         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
26790
26791 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
26792
26793         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
26794         * sysdeps/mips/mips32/sfp-machine.h: ... here.
26795         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
26796         * sysdeps/mips/mips64/Makefile: ... here.
26797         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
26798         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
26799         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
26800         * sysdeps/mips/mips64/sfp-machine.h: ... here.
26801         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
26802         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
26803         * sysdeps/mips/mips64/n64/Implies: Likewise.
26804
26805 2015-02-10  Roland McGrath  <roland@hack.frob.com>
26806
26807         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
26808         <sys/time.h>, <string.h>, and <errno.h>.
26809         (dest_offset, dest_address, value, zero): Remove unused variables.
26810         (ldouble): Remove typedef.
26811         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
26812         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
26813         1).  Fix code style.
26814         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
26815         (check): Function removed.
26816         (CHECK): New macro.
26817         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
26818         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
26819         Don't call set_sigaction_FP and remove_sigaction_FP here.
26820         (ldouble_test): Just use 'long double' as macro argument, no need for
26821         the 'ldouble' typedef.
26822         (do_test): Set up SIGFPE handler at start, using plain signal rather
26823         than sigaction.  Fix code style.
26824
26825 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
26826
26827         [BZ #17949]
26828         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
26829         jump label.
26830
26831 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26832
26833         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
26834         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26835
26836         * sysdeps/powerpc/configure.ac: Remove file.
26837         * sysdeps/powerpc/configure: Likewise.
26838
26839         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26840         [sysdep_routines]: Remove wordcopy-power6 object.
26841         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
26842         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
26843         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
26844         (__memmove_ppc32): Likewise.
26845         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
26846         file.
26847         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
26848         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
26849         Remove preprocessor.
26850
26851         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26852         [sysdep_routines]: Remove wide chars objects.
26853         [wcsmbs]: New rule for wide char objects.
26854
26855         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26856         Remove wordcopy-power6 obejct.
26857         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
26858         Use local call for wordcopy and memcpy symbols.
26859         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
26860         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
26861         implementation for loader.
26862         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
26863
26864         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26865         Remove wordcopy-power7 object.
26866         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
26867         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
26868         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
26869         (_wordcopy_fwd_dest_aligned): Likewise.
26870         (_wordcopy_bwd_aligned): Likewise.
26871         (_wordcopy_bwd_dest_aligned): Likewise.
26872
26873         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
26874         Rewrite to call __memmove_ppc instead of include default
26875         implementation.
26876
26877         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26878         Remove wide chars objects.
26879         [wcsmbs]: New rule for wide char objects.
26880
26881 2015-02-09  Andreas Schwab  <schwab@suse.de>
26882
26883         [BZ #17912]
26884         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
26885         in terms of __O_DIRECTORY.
26886
26887 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26888
26889         * time/getdate.c: Include <stdbool.h>.
26890         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
26891         call PTR_MANGLE.
26892         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
26893         PTR_DEMANGLE.
26894
26895 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26896
26897         Add ersatz _Static_assert on older C hosts
26898         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
26899         pre-C11 C platform that is not known to support _Static_assert.
26900
26901 2015-02-07  Richard Braun  <rbraun@sceen.net>
26902
26903         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
26904         sigstate.
26905         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
26906
26907 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26908
26909         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
26910         priority against unexistent AIO_PRIO_DELTA_MAX.
26911         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
26912         instead of int.
26913         * misc/fchflags.c (fchflags): Likewise.
26914         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
26915         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
26916         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
26917         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
26918         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
26919         Declare macros.
26920         [__USE_MISC] (chflags, fchflags): Declare functions.
26921         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
26922         EINVAL when nfds is greater than FD_SETSIZE.
26923         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
26924         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
26925         45.
26926         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
26927         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
26928         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
26929         MACH_RCV_TIMED_OUT.
26930         * hurd/hurd/signal.h (_hurd_self_sigstate,
26931         _hurd_critical_section_lock, _hurd_critical_section_unlock):
26932         Explicit casts from void *.
26933         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
26934         * abi-tags: Rename gnu-gnu os into gnu.
26935
26936         [BZ #4719]
26937         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
26938         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
26939         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
26940         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
26941         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
26942         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
26943
26944         [BZ #17944]
26945         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
26946         duplicates ADDR->sun_path with sockaddr LEN limitation.
26947         * sysdeps/mach/hurd/connect.c: Include <string.h>
26948         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
26949         * sysdeps/mach/hurd/sendmsg.c: Likewise.
26950         * sysdeps/mach/hurd/sendto.c: Likewise.
26951         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
26952         implementing it by hand.
26953
26954 2015-02-06  Roland McGrath  <roland@hack.frob.com>
26955
26956         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
26957         Use sfi_breg on ldr.
26958         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
26959         Likewise.
26960
26961         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
26962         it's defined.
26963         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
26964         Test SIGSETXID only if it's defined.
26965
26966         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
26967
26968         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
26969         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
26970
26971         * nptl/tst-align2.c: Moved ...
26972         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
26973         * nptl/Makefile (tests): Remove tst-align2.
26974         * sysdeps/unix/sysv/linux/Makefile
26975         [$(subdir) = nptl] (tests): Add tst-align-clone.
26976         * nptl/tst-getpid1.c: Moved ...
26977         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
26978         * nptl/tst-getpid2.c: Moved ...
26979         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
26980         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
26981         * sysdeps/unix/sysv/linux/Makefile
26982         [$(subdir) = nptl] (tests): ... here.
26983         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
26984         * sysdeps/unix/sysv/linux/Makefile
26985         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
26986
26987         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
26988         Drop trailing \n from perror argument.  Use return rather than exit.
26989
26990         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
26991         on [SA_SIGINFO].
26992         * nptl/tst-cancel21.c (do_test): Likewise.
26993         * debug/tst-backtrace6.c: Include <signal.h> first thing.
26994         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
26995         [!SA_SIGINFO]: Make it a stub test.
26996
26997         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
26998         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
26999
27000         * posix/tst-getlogin.c: Move to ...
27001         * login/tst-getlogin.c: ... here.
27002         * posix/Makefile (tests): Move tst-getlogin to ...
27003         * login/Makefile (tests): ... here.
27004
27005         * libio/tst-atime.c (do_test): Move local variables SV and E
27006         inside [ST_NOATIME] conditional.
27007
27008         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
27009
27010         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
27011
27012         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
27013         (wait_code): New function replaces macro.
27014         Call nanosleep rather than syscall.
27015
27016         * nptl/pt-system.c: Rewritten.  Put everything under
27017         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27018         Use IFUNC to redirect when possible.
27019
27020         * nptl/pt-longjmp.c: Rewritten.  Put everything under
27021         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27022         Use IFUNC to redirect when possible.
27023
27024         * nptl/pt-fork.c: Rewritten.  Put everything under
27025         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27026         Use IFUNC to redirect when possible.
27027         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
27028
27029         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
27030         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
27031         unconditionally nowadays.  This included the only reference to
27032         __vdso_clock_gettime that appears outside libc proper.
27033         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
27034         Remove version set (containing only __vdso_clock_gettime).
27035         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
27036         Add attribute_hidden.
27037         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
27038         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
27039         libc_hidden_data_def.
27040         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27041         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27042
27043         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
27044         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
27045         setrpcent, and getrpcport to ...
27046         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
27047         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
27048         getrpcbynumber_r, and getrpcent_r to ...
27049         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
27050         * inet/getrpcbyname.c: Moved ...
27051         * sunrpc/getrpcbyname.c: ... here.
27052         * inet/getrpcbyname_r.c: Moved ...
27053         * sunrpc/getrpcbyname_r.c: ... here.
27054         * inet/getrpcbynumber.c: Moved ...
27055         * sunrpc/getrpcbynumber.c: ... here.
27056         * inet/getrpcbynumber_r.c: Moved ...
27057         * sunrpc/getrpcbynumber_r.c: ... here.
27058         * inet/getrpcent.c: Moved ...
27059         * sunrpc/getrpcent.c: ... here.
27060         * inet/getrpcent_r.c: Moved ...
27061         * sunrpc/getrpcent_r.c: ... here.
27062         * inet/Makefile (routines): Move those to ...
27063         * sunrpc/Makefile (routines): ... here.
27064         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
27065         the $(subdirs) list.
27066         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
27067         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
27068         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
27069         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
27070
27071         * elf/Makefile (routines): Include $(all-dl-routines), not just
27072         $(dl-routines).
27073         (rtld-routines): Likewise.  Use = rather than :=.
27074         * sysdeps/aarch64/Makefile [$(subdir) = elf]
27075         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
27076         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
27077         * sysdeps/arm/Makefile: Likewise.
27078         * sysdeps/i386/Makefile: Likewise.
27079         * sysdeps/x86_64/Makefile: Likewise.
27080         * sysdeps/hppa/Makefile [$(subdir) = elf]
27081         (sysdep_routines, sysdep-rtld-routines): Don't add
27082         $(sysdep-dl-routines) to these.
27083         * sysdeps/ia64/Makefile: Likewise.
27084         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
27085         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
27086         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
27087         Don't add dl-static to these; sysdep-dl-routines alone is enough.
27088         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
27089         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
27090         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
27091         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
27092         * sysdeps/powerpc/Makefile [$(subdir) = elf]
27093         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
27094         these; sysdep-dl-routines alone is enough.
27095
27096 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
27097
27098         [BZ #17932]
27099         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
27100         where multiplication results in zero and third argument is finite
27101         and nonzero.
27102         * math/auto-libm-test-in: Add more tests of fma.
27103         * math/auto-libm-test-out: Regenerated.
27104
27105         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
27106         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
27107         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
27108         (_FP_CMP_EQ): Likewise.
27109         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
27110
27111         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
27112         extra argument CHECK_NAN.  Redefine as wrapper around
27113         _FP_EXTEND_CNAN.
27114
27115 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
27116
27117         * version.h (RELEASE): Set to "stable".
27118         (VERSION): Set to "2.21"
27119         * include/features.h (__GLIBC_MINOR__): Set to 21.
27120
27121         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
27122
27123 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27124             Paul Eggert  <eggert@cs.ucla.edu>
27125
27126         [BZ #16618]
27127         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
27128         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
27129         size in bytes. Store needed elements in wpmax. Use needed size
27130         in bytes for extend_alloca.
27131
27132 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
27133
27134         * manual/install.texi: Latest tested versions are GCC 4.9.2,
27135         binutls 2.25, and texinfo 5.2.
27136         * INSTALL: Regenerate.
27137         * sysdeps/nios2/configure: Regenerate.
27138         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
27139         * manual/contrib.texi: Update.
27140         * po/be.po: Update.
27141         * po/bg.po: Update.
27142         * po/ca.po: Update.
27143         * po/cs.po: Update.
27144         * po/da.po: Update.
27145         * po/de.po: Update.
27146         * po/el.po: Update.
27147         * po/eo.po: Update.
27148         * po/es.po: Update.
27149         * po/fi.po: Update.
27150         * po/fr.po: Update.
27151         * po/gl.po: Update.
27152         * po/hr.po: Update.
27153         * po/hu.po: Update.
27154         * po/ia.po: Update.
27155         * po/id.po: Update.
27156         * po/it.po: Update.
27157         * po/ja.po: Update.
27158         * po/ko.po: Update.
27159         * po/lt.po: Update.
27160         * po/nb.po: Update.
27161         * po/nl.po: Update.
27162         * po/pl.po: Update.
27163         * po/pt_BR.po: Update.
27164         * po/ru.po: Update.
27165         * po/rw.po: Update.
27166         * po/sk.po: Update.
27167         * po/sl.po: Update.
27168         * po/sv.po: Update.
27169         * po/tr.po: Update.
27170         * po/uk.po: Update.
27171         * po/vi.po: Update.
27172         * po/zh_CN.po: Update.
27173         * po/zh_TW.po: Update.
27174
27175         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
27176         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
27177         * sysdeps/hppa/dl-irel.h: Remove #warning.
27178         * sysdeps/hppa/entry.h: Provide prototype for
27179         __canonicalize_funcptr_for_compare and cast argument.
27180         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
27181         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
27182         * sysdeps/hppa/sotruss-lib.c: New file.
27183         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
27184         (atomic_compare_and_exchange_val_acq): Use __typeof__.
27185         (atomic_compare_and_exchange_bool_acq): Likewise.
27186         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
27187         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
27188
27189         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
27190         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
27191         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
27192
27193 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
27194
27195         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
27196         called function in non-PIC case.
27197
27198 2015-01-31  David S. Miller  <davem@davemloft.net>
27199
27200         * sysdeps/sparc/sparc32/bits/atomic.h
27201         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
27202         unlock not after it.
27203         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
27204         volatile register usage warnings from the compiler.
27205
27206         * sysdeps/sparc/nptl/sem_init.c: Delete.
27207         * sysdeps/sparc/nptl/sem_post.c: Delete.
27208         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
27209         * sysdeps/sparc/nptl/sem_wait.c: Delete.
27210         * sysdeps/sparc/sparc32/sem_init.c: New file.
27211         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
27212         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
27213         padding explicitly initialized.
27214         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
27215         padding for in-semaphore spinlock.
27216         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
27217         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
27218         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
27219         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
27220         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
27221         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
27222         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
27223         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
27224         version.
27225         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
27226         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
27227
27228 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
27229
27230         [BZ #17801]
27231         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27232         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
27233         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
27234         New.
27235         (index_AVX_Fast_Unaligned_Load): Likewise.
27236         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
27237         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
27238         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
27239         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
27240         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
27241         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
27242         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
27243         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
27244         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
27245
27246 2015-01-29  Andreas Schwab  <schwab@suse.de>
27247
27248         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
27249
27250 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
27251
27252         [BZ #17892]
27253         * nscd/nscd_stat.c (send_stats): Initialize DATA.
27254
27255 2015-01-28  Martin Sebor  <msebor@redhat.com>
27256
27257         * math/README.libm-test: Clarify. Add "How to read the test output."
27258
27259 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
27260
27261         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
27262         Define to 0.
27263
27264 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
27265
27266         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
27267         (__HAVE_64B_ATOMICS): Define to 0.
27268
27269 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27270
27271         [BZ #17885]
27272         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
27273         value to set as new flag.
27274
27275         [BZ #16576]
27276         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
27277         and use _ARCH_PPCSQ instead.
27278         (__ieee754_sqrt): Likewise.
27279         (__ieee754_sqrtf): Likewise.
27280         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
27281         _ARCH_PPCSQ is defined.
27282         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
27283         fsqrt instruction.
27284         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
27285         _ARCH_PPCSQ is defined.
27286         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
27287         fsqrts instruction.
27288         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
27289
27290 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27291
27292         * iconv/loop.c: Suppress array out of bound warning caused by GCC
27293         bug (GCC BZ #64739).
27294
27295 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
27296
27297         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
27298         Mark _retval as used.
27299         (lll_futex_wake_unlock): Likewise.
27300         (lll_futex_timed_wait_requeue_pi): Likewise.
27301
27302         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27303         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
27304         register variables.
27305
27306         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
27307         libm_hidden_def.
27308
27309         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
27310         (__bswap_64): Mark as __always_inline.
27311
27312 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
27313
27314         [BZ #15378]
27315         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
27316         when none of the search directories exist.
27317
27318 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27319
27320         [BZ #17869]
27321         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
27322         power8 in .machine directive.
27323
27324         [BZ #17868]
27325         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
27326         set dependency from opd value.
27327
27328 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27329
27330         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27331         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
27332         architecture.
27333
27334 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27335
27336         [BZ #17870]
27337         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
27338         with uint64_t.
27339         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
27340         (uint64_t) 1.
27341         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
27342         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
27343         Replace 1UL with (uint64_t) 1.
27344         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
27345         int with uint64_t.
27346
27347 2015-01-23  Roland McGrath  <roland@hack.frob.com>
27348
27349         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
27350         (if_freenameindex): Likewise.
27351
27352         * resource/getrlimit64.c: Add missing libc_hidden_def.
27353
27354 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
27355
27356         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
27357         __label__.
27358         (_FP_FMA): Likewise.
27359         (_FP_TO_INT_ROUND): Likewise.
27360         (_FP_FROM_INT): Likewise.
27361
27362 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27363
27364         [BZ #16418]
27365         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27366         Make code racy and cancel safe.
27367
27368 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
27369
27370         * sysdeps/arm/unwind-resume.h: Fix copyright year.
27371         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
27372         attribution.
27373
27374         * pwd/tst-getpw.c: Rewrite.
27375
27376         [BZ #17702]
27377         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
27378         (modules-names): Add moddummy1 and moddummy2.
27379         ($(objpfx)tst-rec-dlopen): Define.
27380         * dlfcn/moddummy1.c: New file.
27381         * dlfcn/moddummy2.c: New file.
27382         * dlfcn/tst-rec-dlopen.c: New file.
27383         * elf/dl-cache.c (_dl_load_cache_lookup):
27384         Return char*. Copy result with alloca/strcpy/strdup.
27385         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
27386         returns char*. Free cached. If not saving realname
27387         free cached.
27388         * elf/dl-open.c (dl_open_worker): Do not assert that
27389         _r_debug->r_state is RT_CONSISTENT.
27390         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
27391         returns char*.
27392
27393 2015-01-21  Torvald Riegel  <triegel@redhat.com>
27394             Carlos O'Donell  <carlos@redhat.com>
27395
27396         [BZ #12674]
27397         * nptl/sem_waitcommon.c: New file.
27398         * nptl/sem_wait.c: Include sem_waitcommon.c.
27399         (__sem_wait_cleanup, do_futex_wait): Remove.
27400         (__new_sem_wait): Adapt.
27401         (__new_sem_trywait): New function.
27402         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
27403         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
27404         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
27405         (sem_timedwait): Adapt.
27406         * nptl/sem_post.c (__new_sem_post): Adapt.
27407         (futex_wake): New function.
27408         (__old_sem_post): Add release MO fence.
27409         * nptl/sem_open.c (sem_open): Adapt.
27410         * nptl/sem_init.c (__new_sem_init): Adapt.
27411         (futex_private_if_supported): New function.
27412         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
27413         (__old_sem_getvalue): Add using previous code.
27414         * sysdeps/nptl/internaltypes.h: Adapt.
27415         * nptl/tst-sem13.c (do_test): Adapt.
27416         * nptl/tst-sem11.c (main): Adapt.
27417         * nptl/sem_trywait.c: Remove.
27418         * nptl/DESIGN-sem.txt: Remove.
27419         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
27420         (gen-as-const-headers): Remove structsem.sym.
27421         * nptl/structsem.sym: Remove.
27422         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
27423         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
27424         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
27425         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
27426         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
27427         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
27428         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
27429         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
27430         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
27431         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
27432         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
27433         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
27434         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
27435         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
27436         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
27437         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
27438         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
27439         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
27440         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
27441         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
27442         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
27443         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
27444
27445 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
27446
27447         * INSTALL: Regenerated.
27448
27449         * po/libc.pot: Regenerated.
27450
27451 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
27452             Sandra Loosemore  <sandra@codesourcery.com>
27453             Andrew Jenner  <andrew@codesourcery.com>
27454             Joseph Myers  <joseph@codesourcery.com>
27455             Nathan Sidwell  <nathan@codesourcery.com>
27456
27457         * NEWS: Mention new Nios II port.
27458         * sysdeps/nios2/Implies: New file.
27459         * sysdeps/nios2/Makefile: New file.
27460         * sysdeps/nios2/Subdirs: New file.
27461         * sysdeps/nios2/Versions: New file.
27462         * sysdeps/nios2/__longjmp.S: New file.
27463         * sysdeps/nios2/abort-instr.h: New file.
27464         * sysdeps/nios2/backtrace.c: New file.
27465         * sysdeps/nios2/bits/endian.h: New file.
27466         * sysdeps/nios2/bits/fenv.h: New file.
27467         * sysdeps/nios2/bits/link.h: New file.
27468         * sysdeps/nios2/bits/setjmp.h: New file.
27469         * sysdeps/nios2/bsd-_setjmp.S: New file.
27470         * sysdeps/nios2/bsd-setjmp.S: New file.
27471         * sysdeps/nios2/configure: New generated file.
27472         * sysdeps/nios2/configure.ac: New file.
27473         * sysdeps/nios2/crti.S: New file.
27474         * sysdeps/nios2/crtn.S: New file.
27475         * sysdeps/nios2/dl-init.c: New file.
27476         * sysdeps/nios2/dl-machine.h: New file.
27477         * sysdeps/nios2/dl-sysdep.h: New file.
27478         * sysdeps/nios2/dl-tls.h: New file.
27479         * sysdeps/nios2/dl-trampoline.S: New file.
27480         * sysdeps/nios2/gccframe.h: New file.
27481         * sysdeps/nios2/gmp-mparam.h: New file.
27482         * sysdeps/nios2/jmpbuf-offsets.h: New file.
27483         * sysdeps/nios2/jmpbuf-unwind.h: New file.
27484         * sysdeps/nios2/ldsodefs.h: New file.
27485         * sysdeps/nios2/libc-tls.c: New file.
27486         * sysdeps/nios2/libm-test-ulps: New file.
27487         * sysdeps/nios2/machine-gmon.h: New file.
27488         * sysdeps/nios2/math-tests.h: New file.
27489         * sysdeps/nios2/math_private.h: New file.
27490         * sysdeps/nios2/memusage.h: New file.
27491         * sysdeps/nios2/nptl/Makefile: New file.
27492         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
27493         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
27494         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
27495         * sysdeps/nios2/nptl/pthreaddef.h: New file.
27496         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
27497         * sysdeps/nios2/nptl/tls.h: New file.
27498         * sysdeps/nios2/preconfigure: New file.
27499         * sysdeps/nios2/s_fma.c: New file.
27500         * sysdeps/nios2/s_fmaf.c: New file.
27501         * sysdeps/nios2/setjmp.S: New file.
27502         * sysdeps/nios2/sfp-machine.h: New file.
27503         * sysdeps/nios2/sotruss-lib.c: New file.
27504         * sysdeps/nios2/stackguard-macros.h: New file.
27505         * sysdeps/nios2/stackinfo.h: New file.
27506         * sysdeps/nios2/start.S: New file.
27507         * sysdeps/nios2/sysdep.h: New file.
27508         * sysdeps/nios2/tls-macros.h: New file.
27509         * sysdeps/nios2/tst-audit.h: New file.
27510         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
27511         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
27512         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
27513         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
27514         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
27515         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
27516         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
27517         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
27518         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
27519         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
27520         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
27521         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
27522         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
27523         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
27524         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
27525         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
27526         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
27527         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
27528         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
27529         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
27530         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
27531         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
27532         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
27533         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
27534         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
27535         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
27536         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
27537         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
27538         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
27539         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
27540         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
27541         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
27542         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
27543         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
27544         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
27545         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
27546         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
27547         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
27548         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
27549         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
27550         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
27551         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
27552         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
27553         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
27554
27555 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27556
27557         [BZ #17844]
27558         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
27559         (getutent): Use weak_alias in non SHARED case
27560         and default_symbol_version in SHARED case.
27561         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
27562         (getutent_r, pututline): Likewise.
27563         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
27564         (getutid): Likewise.
27565         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
27566         (getutid_r): Likewise.
27567         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
27568         (getutline): Likewise.
27569         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
27570         (getutline_r): Likewise.
27571         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
27572         (updwtmp): Likewise.
27573
27574 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27575
27576         [BZ #17848]
27577         * sysdeps/s390/s390-32/memcmp.S
27578         (memcmp_g5): Rename to __memcmp_g5.
27579         * sysdeps/s390/s390-32/memcpy.S
27580         (memcpy_g5): Rename to __memcpy_g5.
27581         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27582         (memcpy_mvcle) Rename to __memcpy_mvcle.
27583         * sysdeps/s390/s390-32/memset.S
27584         (memset_g5): Rename to __memset_g5.
27585         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27586         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27587         and use prefixed functions.
27588         * sysdeps/s390/s390-32/multiarch/memcmp.S
27589         (memcmp_z196): Rename to __memcmp_z196.
27590         (memcmp_z10): Rename to __memcmp_z10.
27591         (memcmp): Set alias to __memcmp_g5.
27592         (bcmp): Set alias to __memcmp_g5.
27593         * sysdeps/s390/s390-32/multiarch/memcpy.S
27594         (memcpy_z196): Rename to __memcpy_z196.
27595         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27596         (memcpy_z10): Rename to __memcpy_z10.
27597         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27598         (memcpy): Set alias to __memcpy_g5.
27599         * sysdeps/s390/s390-32/multiarch/memset.S
27600         (memset_z196): Rename to __memset_z196.
27601         Jump to __memset_mvcle instead of memset_mvcle.
27602         (memset_z10): Rename to __memset_z10.
27603         Jump to __memset_mvcle instead of memset_mvcle.
27604         (memset_mvcle) Rename to __memset_mvcle.
27605         (memset): Set alias to __memset_g5.
27606         * sysdeps/s390/s390-64/memcmp.S
27607         (memcmp_z900): Rename to __memcmp_z900.
27608         * sysdeps/s390/s390-64/memcpy.S
27609         (memcpy_z900): Rename to __memcpy_z900.
27610         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27611         (memcpy_mvcle) Rename to __memcpy_mvcle.
27612         * sysdeps/s390/s390-64/memset.S
27613         (memset_z900): Rename to __memset_z900.
27614         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
27615         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27616         and use prefixed functions.
27617         * sysdeps/s390/s390-64/multiarch/memcmp.S
27618         (memcmp_z196): Rename to __memcmp_z196.
27619         (memcmp_z10): Rename to __memcmp_z10.
27620         (memcmp): Set alias to __memcmp_z900.
27621         (bcmp): Set alias to __memcmp_z900.
27622         * sysdeps/s390/s390-64/multiarch/memcpy.S
27623         (memcpy_z196): Rename to __memcpy_z196.
27624         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27625         (memcpy_z10): Rename to __memcpy_z10.
27626         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27627         (memcpy): Set alias to __memcpy_z900.
27628         * sysdeps/s390/s390-64/multiarch/memset.S
27629         (memset_z196): Rename to __memset_z196.
27630         Jump to __memset_mvcle instead of memset_mvcle.
27631         (memset_z10): Rename to __memset_z10.
27632         Jump to __memset_mvcle instead of memset_mvcle.
27633         (memset_mvcle) Rename to __memset_mvcle.
27634         (memset): Set alias to __memset_z900.
27635
27636 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
27637
27638         [BZ #17748]
27639         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
27640         __fesetenv instead of fesetenv.
27641
27642 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27643
27644         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
27645         macro.
27646
27647 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27648
27649         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
27650         regression on LE.
27651
27652         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
27653         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
27654         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27655         strncmp-power8 object.
27656         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27657         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
27658         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
27659         * NEWS: Update.
27660
27661 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27662             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27663
27664         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
27665         trailing byte check.
27666
27667 2015-01-13  David S. Miller  <davem@davemloft.net>
27668
27669         * include/signal.h (__sigreturn): Guard with __USE_MISC.
27670
27671 2015-01-13  Roland McGrath  <roland@hack.frob.com>
27672
27673         * login/logout.c (logout): Use memset rather than bzero.
27674         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
27675         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
27676         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
27677         (_gethtbyaddr): Likewise.
27678         * locale/programs/simple-hash.c (bcopy): Macro removed.
27679
27680 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27681
27682         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27683         Add strcmp-power8 object.
27684         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27685         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
27686         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
27687         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
27688         __strcmp_power8 implementation.
27689         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
27690         * NEWS: Update.
27691
27692         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27693         Add strncpy-power8 and stpncpy-power8 objects.
27694         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27695         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
27696         implementations.
27697         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
27698         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
27699         __stpncpy_power8 implementation.
27700         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
27701         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
27702         __strncpy_power8 implementation.
27703         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
27704         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
27705         * NEWS: Update.
27706
27707         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
27708         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
27709         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
27710
27711         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27712         strncat-power8 object.
27713         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
27714         __strcat_power8 implementation.
27715         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27716         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
27717         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
27718         optimized strcat for power8.
27719
27720         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27721         strcpy-power8 and stpcpy-power8 objects.
27722         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27723         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
27724         implementations.
27725         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
27726         multiarch stpcpy implementation for POWER8.
27727         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
27728         multiarch strcpy implementation for POWER8.
27729         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
27730         __strcpy_power8 function.
27731         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
27732         stpcpy for POWER8.
27733         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
27734         strcpy for POWER8.
27735         * NEWS: Update.
27736
27737 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
27738
27739         [BZ #16009]
27740         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
27741         weights and rules. Use do_xfrm_cached if data fits in cache,
27742         do_xfrm otherwise.  Moved former main loop to...
27743         * (do_xfrm_cached): New function.
27744         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
27745         find_idx, find_position and stack_push.
27746         * (find_idx): New function.
27747         * (find_position): Likewise.
27748         * localedata/sort-test.sh: Added test run for do_xfrm.
27749         * localedata/xfrm-test.c (main): Added command line option
27750         -nocache to run the test with strings that are too large for
27751         the STRXFRM cache.
27752
27753 2015-01-13  Torvald Riegel  <triegel@redhat.com>
27754
27755         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
27756         variable to lll_futex_wake call, not the value itself.
27757
27758 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
27759
27760         [BZ #17803]
27761         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
27762         twom64.  Adjust value to 0x1p-64L.
27763         (__scalblnl): Only return standard underflowing result for K <=
27764         -64 not K <= -63; adjust exponent for underflowing result by 64
27765         not 63.
27766         * math/libm-test.inc (scalbn_test_data): Add more tests.
27767         (scalbln_test_data): Likewise.
27768
27769         [BZ #17834]
27770         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
27771         0x1p63L.
27772         (__scalblnl): Get new exponent of adjusted subnormal value from ES
27773         not HX.
27774         * math/libm-test.inc (scalbn_test_data): Add more tests.
27775         (scalbln_test_data): Likewise.
27776
27777 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27778             Stefani Seibold  <stefani@seibold.net>
27779
27780         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
27781         (sysdep_routines): Add dl-vdso here, ...
27782         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
27783         (sysdep_routines): ... not here.
27784         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
27785         fallback when vDSO is not presented.
27786         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
27787         Define with libc_hidden_proto/libc_hidden_data_def definitions.
27788         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
27789         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
27790         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
27791         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
27792         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
27793         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
27794         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
27795         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
27796         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
27797         fallback configurable symbol when vDSO is not available.
27798         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
27799         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
27800         be able to redefine fallback symbol when vDSO is not available.
27801         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
27802         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
27803
27804 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27805
27806         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
27807         (TLS_INIT_TP): Add tm_capable initialization.
27808         (TLS_DEFINE_INIT_TP): Likewise.
27809         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
27810         TCB.
27811         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
27812         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
27813         calculation.
27814         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
27815         transactoion is lock elision is built and TCB tm_capable is set.
27816         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
27817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
27818         (INTERNAL_SYSCALL_NCS): Likewise.
27819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
27820         (INTERNAL_SYSCALL_NCS): Likewise.
27821         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
27822
27823         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
27824         for powerpc.
27825         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27826         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
27827         and remove it for 32 bits case.
27828         [pthread_rwlock_t] (__rwelision): New field for lock elision.
27829         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
27830         initialization.
27831         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
27832         Disable lock elision with rdlocks if elision is not available.
27833
27834         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
27835         (sysdep_routines): Add lock elision objects.
27836         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27837         [pthread_mutex_t] (__spins): Rework to add lock elision field.
27838         [pthread_mutex_t] (__elision): Add field.
27839         [__PTHREAD_SPINS]: Adjust to init lock elision field.
27840         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
27841         elision definitions for powerpc.
27842         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
27843         implementation of lock elision for powerpc.
27844         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
27845         implementation of timed lock elision for powerpc.
27846         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
27847         implementation of trylock with lock elision for powerpc.
27848         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
27849         implementaion of unlock for lock elision for powerpc.
27850         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
27851         automatic enable lock elision for mutexes.
27852         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
27853         transaction execution definitions for powerpc.
27854         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
27855         definitions.
27856         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
27857         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
27858         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
27859         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
27860         * NEWS: Update.
27861
27862 2015-01-09  Roland McGrath  <roland@hack.frob.com>
27863
27864         * sysdeps/posix/shm-directory.c: Use <> rather than ""
27865         for #include of <shm-directory.h>.
27866
27867 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
27868
27869         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
27870         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
27871
27872 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
27873
27874         [BZ #17791]
27875         * NEWS: Mention bug fix.
27876         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
27877         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
27878         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
27879
27880 2015-01-09  Torvald Riegel <triegel@redhat.com>
27881
27882         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
27883
27884 2015-01-09  Torvald Riegel <triegel@redhat.com>
27885
27886         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
27887
27888 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27889
27890         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
27891         pointer and cast to uintptr_t.
27892
27893 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27894
27895         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
27896         removed.
27897         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
27898
27899 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27900
27901         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
27902         of 0.
27903
27904 2015-01-08  Roland McGrath  <roland@hack.frob.com>
27905
27906         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
27907         <nptl/pthreadP.h> instead.
27908         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
27909
27910         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
27911         already defined.
27912         [__SIGRTMIN] (init): Function removed.
27913         [__SIGRTMIN] (initialized): Variable removed.
27914         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
27915         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
27916         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
27917         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
27918         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
27919         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
27920         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
27921         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
27922         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
27923         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
27924         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
27925         * sysdeps/nptl/allocrtsig.c: New file.
27926         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
27927         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
27928         * sysdeps/generic/testrtsig.h: File removed.
27929
27930         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
27931         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
27932
27933         * nptl/nptl-init.c (pthread_functions): Conditionalize
27934         .ptr__nptl_setxid initialization on [SIGSETXID].
27935
27936         * sysdeps/nptl/sys/procfs.h: New file.
27937         * nptl_db/Makefile (headers): Add it.
27938         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
27939
27940         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
27941         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
27942         * nptl/pthread_attr_setaffinity.c: Include it.
27943         * nptl/pthread_setattr_default_np.c: Likewise.
27944         * nptl/check-cpuset.h: New file.
27945
27946 2015-01-08  Richard Henderson  <rth@redhat.com>
27947
27948         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
27949         (CFLAGS-tst-execstack-prog.c): Likewise.
27950         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
27951
27952 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
27953             Sandra Loosemore  <sandra@codesourcery.com>
27954             Andrew Jenner  <andrew@codesourcery.com>
27955             Joseph Myers  <joseph@codesourcery.com>
27956             Nathan Sidwell  <nathan@codesourcery.com>
27957
27958         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
27959         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
27960         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
27961         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
27962         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
27963         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
27964         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
27965         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
27966         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
27967         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
27968         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
27969         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
27970         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
27971         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
27972         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
27973         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
27974         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
27975
27976 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27977
27978         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
27979         timespec struct member in syscall macro.
27980         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
27981         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
27982         first timeval struct member in syscall macro.
27983         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
27984
27985 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
27986
27987         [BZ #17748]
27988         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
27989         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
27990         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
27991         __feupdateenv and define as weak alias of __feupdateenv.  Use
27992         libm_hidden_weak.
27993         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
27994         libm_hidden_def.
27995         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
27996         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
27997         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
27998         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
27999         libm_hidden_def.
28000         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
28001         __feupdateenv and define as weak alias of __feupdateenv.  Use
28002         libm_hidden_weak.
28003         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
28004         libm_hidden_def.
28005         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
28006         __feupdateenv and define as weak alias of __feupdateenv.  Use
28007         libm_hidden_weak.
28008         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
28009         libm_hidden_def.
28010         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28011         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28012         (__feupdateenv): Likewise.
28013         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
28014         __feupdateenv and define as weak alias of __feupdateenv.  Use
28015         libm_hidden_weak.
28016         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28017         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
28018         libm_hidden_def.
28019         * sysdeps/tile/math_private.h (__feupdateenv): New inline
28020         function.
28021         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
28022         libm_hidden_def.
28023         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
28024         __feupdateenv instead of feupdateenv.
28025         (default_libc_feupdateenv_test): Likewise.
28026         (libc_feresetround_ctx): Likewise.
28027
28028 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28029
28030         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
28031         prototype.
28032
28033 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28034
28035         * posix/regcomp.c (parse_bracket_exp): Initialize type to
28036         COLL_SYM in a couple of places to avoid uninitialized variable
28037         wanings on tilegx gcc 4.8.2.
28038
28039 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28040
28041         * sysdeps/aarch64/strcpy.S: New file.
28042         * sysdeps/aarch64/stpcpy.S: New file.
28043         * NEWS: Updated.
28044
28045 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28046
28047         * sysdeps/aarch64/strrchr.S: New file.
28048         * NEWS: Updated.
28049
28050 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
28051
28052         [BZ #17658]
28053         * stdlib/setenv.c: Fix memory leak when setting large,
28054         duplicate string.
28055
28056 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
28057
28058         [BZ #17273]
28059         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
28060         and tabs from buffer before parsing fstab entry.
28061         * misc/tst-mntent.c (main): Add test for mount entry with
28062         trailing spaces and tabs.
28063
28064 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
28065
28066         [BZ #17748]
28067         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
28068         * math/fesetround.c (fesetround): Rename to __fesetround and
28069         define as weak alias of __fesetround.  Use libm_hidden_weak.
28070         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
28071         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
28072         * sysdeps/arm/fesetround.c (fesetround): Likewise.
28073         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
28074         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
28075         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
28076         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
28077         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
28078         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
28079         __fesetround_inline.
28080         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
28081         __fesetround_inline instead of __fesetround.
28082         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
28083         __fesetround and define as weak alias of __fesetround.  Use
28084         libm_hidden_weak.  Call __fesetround_inline instead of
28085         __fesetround.
28086         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
28087         __fesetround and define as weak alias of __fesetround.  Use
28088         libm_hidden_weak.
28089         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
28090         Likewise.
28091         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
28092         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28093         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
28094         * sysdeps/tile/math_private.h (__fesetround): New inline function.
28095         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
28096         __fesetround and define as weak alias of __fesetround.  Use
28097         libm_hidden_weak.
28098         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
28099         __fesetround instead of fesetround.
28100         (default_libc_feholdexcept_setround): Likewise.
28101         (libc_feholdsetround_ctx): Likewise.
28102         (libc_feholdsetround_noex_ctx): Likewise.
28103
28104         [BZ #17748]
28105         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
28106         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
28107         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28108         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28109         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28110         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
28111         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28112         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
28113         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28114         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28115         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28116         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28117         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28118         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28119         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
28120         libm_hidden_def.
28121         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
28122         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
28123         Likewise.
28124         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28125         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28126         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
28127         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28128         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
28129         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28130         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28131         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
28132         __fesetenv instead of fesetenv.
28133         (libc_feresetround_noex_ctx): Likewise.
28134         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28135         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28136         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
28137         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28138         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28139         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28140         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28141         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28142         (__feupdateenv): Likewise.
28143         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28144         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28145         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28146         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
28147
28148 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28149
28150         [BZ #17806]
28151         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
28152         addresses have been freed.
28153
28154 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28155
28156         * resolv/res_init.c (__res_vinit): Improve comments about nserv
28157         and nservall.
28158
28159 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
28160
28161         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
28162         Clean up check_pf allocation pattern. addresses
28163
28164 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28165
28166         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
28167         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
28168         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
28169         * nptl/pthread_exit.c (__pthread_exit): Likewise.
28170         * nptl/pthread_join.c (pthread_join): Likewise.
28171         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
28172         * sysdeps/posix/waitid.c (__waitid): Likewise.
28173         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
28174         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
28175         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
28176         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
28177         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
28178         Likewise.
28179         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
28180         (__libc_pread64): Likewise.
28181         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
28182         (__libc_pwrite): Likewise.
28183         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
28184         (__libc_pwrite64): Likewsie.
28185         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
28186         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
28187         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
28188         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
28189         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
28190         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
28191         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
28192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
28193         Likewise.
28194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
28195         (__libc_pread64): Likewise.
28196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
28197         Likewise.
28198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
28199         (__libc_pwrite64): Likewise.
28200         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
28201         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
28202         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
28203         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
28204         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
28205         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
28206         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
28207         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
28208         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
28209         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
28210         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
28211         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
28212         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
28213         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
28214         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28215         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
28216         Likewise.
28217
28218 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28219
28220         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
28221         (CFLAGS-test-double.c): Likewise.
28222         (CFLAGS-test-ldouble.c): Likewise.
28223         (CPPFLAGS-test-ifloat.c): Likewise.
28224         (CPPFLAGS-test-idouble.c): Likewise.
28225         (CPPFLAGS-test-ildoubl.c): Likewise.
28226         (CFLAGS-test-test-fenv.c): Remove variable.
28227         (CFLAGS-test-misc.c): Likewise.
28228
28229 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28230
28231         [BZ #17797]
28232         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
28233         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
28234         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
28235         CLOCKS_PER_SEC == 1000000.
28236         * time/clocktest.c (main): Replace %ld with %jd and cast to
28237         intmax_t.
28238
28239 2015-01-05  Roland McGrath  <roland@hack.frob.com>
28240
28241         * sysdeps/generic/unwind-resume.h: New file.
28242         * sysdeps/gnu/unwind-resume.c: Include it.
28243         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
28244         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
28245         argument list.
28246         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
28247         global rather than static.
28248         (_Unwind_Resume): Update user.
28249         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
28250         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
28251         rather than static.  Add __attribute__ ((cold)).
28252         (_Unwind_Resume, __gcc_personality_v0): Update callers.
28253         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
28254         * sysdeps/arm/arm-unwind-resume.S: New file.
28255         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
28256         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
28257         * sysdeps/arm/Makefile [$(subdir) = csu]
28258         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
28259         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
28260         Add rt-arm-unwind-resume.
28261         [$(subdir) = nptl]
28262         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28263         Add pt-arm-unwind-resume.
28264         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
28265         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
28266
28267 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28268
28269         [BZ #17748]
28270         * include/fenv.h (__feholdexcept): Declare.  Use
28271         libm_hidden_proto.
28272         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
28273         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
28274         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28275         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
28276         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
28277         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
28278         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
28279         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28280         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
28281         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
28282         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28283         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
28284         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
28285         (feholdexcept): Likewise.
28286         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
28287         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
28288         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28289         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28290         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
28291         __feholdexcept instead of feholdexcept.
28292         (default_libc_feholdexcept_setround): Likewise.
28293
28294 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28295
28296         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
28297         to avoid using stl/str to align destination.
28298
28299 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28300
28301         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
28302
28303 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28304
28305         [BZ #17796]
28306         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
28307         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
28308         Define as weak alias not strong alias.
28309
28310 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28311
28312         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
28313         bltzal with addiupc.
28314         (RTLD_START): Ditto.
28315
28316 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
28317
28318         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
28319         for __vdso_* functions in declarations.
28320         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
28321         definitions.
28322         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
28323         INTERNAL_VSYSCALL): Use struct return types to check for error.
28324
28325         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
28326         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
28327         function with cast from llround().
28328         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
28329         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
28330         Define.
28331
28332 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28333
28334         [BZ #17793]
28335         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
28336         Define as weak alias not strong alias.
28337
28338         [BZ #17635]
28339         * ctype/ctype-c99.c: New file.  isblank implementation moved from
28340         ...
28341         * ctype/ctype-extn.c: ... here.
28342         (__isblank_l): Move to ...
28343         * ctype/ctype-c99_l.c: ... here.  New file.
28344         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
28345         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
28346         Remove variable.
28347         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28348         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28349         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28350         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28351         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28352
28353         [BZ #17777]
28354         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
28355         (posix_fadvise64): Define as weak alias not strong alias.
28356         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
28357         (posix_fallocate64): Likewise.
28358         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
28359         Remove variable.
28360         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28361         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28362         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28363         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28364         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28365
28366 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
28367
28368         [BZ #16191]
28369         * NEWS: Mention bug fix.
28370         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
28371         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
28372         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
28373         (HOST_STACK_END_ADDR): Likewise.
28374
28375 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28376
28377         [BZ #17748]
28378         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
28379         * math/fegetround.c (fegetround): Rename to __fegetround and
28380         define as weak alias of __fegetround.  Use libm_hidden_weak.
28381         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
28382         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
28383         * sysdeps/arm/fegetround.c (fegetround): Likewise.
28384         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
28385         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
28386         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
28387         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
28388         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
28389         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
28390         Undefine after rather than before function definition; use
28391         parentheses around function name in definition.
28392         (__fegetround): Also undefine macro after function definition.
28393         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
28394         __fegetround and define as weak alias of __fegetround.  Use
28395         libm_hidden_weak.  Do not undefine as macro.
28396         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
28397         Likewise.
28398         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
28399         __fegetround and define as weak alias of __fegetround.  Use
28400         libm_hidden_weak.
28401         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28402         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
28403         * sysdeps/tile/math_private.h (__fegetround): New inline function.
28404         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
28405         __fegetround and define as weak alias of __fegetround.  Use
28406         libm_hidden_weak.
28407         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
28408         __fegetround instead of fegetround.
28409
28410         [BZ #17782]
28411         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
28412         Condition macro definition on [__USE_MISC].
28413
28414         [BZ #17781]
28415         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28416         (struct sigaction): Change type of sa_flags field to int.
28417
28418         [BZ #17780]
28419         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
28420         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
28421         __glibc_reserved0.
28422
28423         * nptl/version.c (banner): Use single year in copyright notice.
28424
28425         * NEWS: Update copyright dates.
28426         * catgets/gencat.c (print_version): Likewise.
28427         * csu/version.c (banner): Likewise.
28428         * debug/catchsegv.sh: Likewise.
28429         * debug/pcprofiledump.c (print_version): Likewise.
28430         * debug/xtrace.sh (do_version): Likewise.
28431         * elf/ldconfig.c (print_version): Likewise.
28432         * elf/ldd.bash.in: Likewise.
28433         * elf/pldd.c (print_version): Likewise.
28434         * elf/sotruss.sh: Likewise.
28435         * elf/sprof.c (print_version): Likewise.
28436         * iconv/iconv_prog.c (print_version): Likewise.
28437         * iconv/iconvconfig.c (print_version): Likewise.
28438         * locale/programs/locale.c (print_version): Likewise.
28439         * locale/programs/localedef.c (print_version): Likewise.
28440         * login/programs/pt_chown.c (print_version): Likewise.
28441         * malloc/memusage.sh (do_version): Likewise.
28442         * malloc/memusagestat.c (print_version): Likewise.
28443         * malloc/mtrace.pl: Likewise.
28444         * manual/libc.texinfo: Likewise.
28445         * nptl/version.c (banner): Likewise.
28446         * nscd/nscd.c (print_version): Likewise.
28447         * nss/getent.c (print_version): Likewise.
28448         * nss/makedb.c (print_version): Likewise.
28449         * posix/getconf.c (main): Likewise.
28450         * scripts/test-installation.pl: Likewise.
28451         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
28452
28453 2015-01-02  Will Newton  <will.newton@linaro.org>
28454
28455         * sysdeps/arm/armv7/configure: Removed.
28456         * sysdeps/arm/armv7/configure.ac: Likewise.
28457
28458 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28459
28460         * All files with FSF copyright notices: Update copyright dates
28461         using scripts/update-copyrights.
28462         * intl/plural.c: Regenerated.
28463         * locale/programs/charmap-kw.h: Likewise.
28464         * locale/programs/locfile-kw.h: Likewise.
28465
28466 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28467
28468         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
28469
28470 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28471
28472         [BZ #17748]
28473         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
28474         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
28475         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28476         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28477         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28478         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
28479         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28480         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
28481         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28482         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28483         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28484         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28485         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28486         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28487         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
28488         libm_hidden_def.
28489         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
28490         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
28491         Likewise.
28492         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28493         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28494         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28495         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28496         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
28497         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28498         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28499         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
28500         __fegetenv instead of fegetenv.
28501         (libc_feholdsetround_noex_ctx): Likewise.
28502
28503 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28504
28505         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
28506         (Elf_MIPS_ABIFlags_v0): New structure.
28507         (EF_MIPS_FP64): Define.
28508         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
28509         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
28510         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
28511         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
28512         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
28513         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
28514         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
28515         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
28516         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
28517         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
28518         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
28519         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
28520         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
28521         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
28522         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
28523         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
28524         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
28525         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
28526         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
28527         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
28528         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
28529         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
28530         field.
28531         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
28532         EF_MIPS_FP64.
28533         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
28534         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
28535         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
28536         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
28537         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
28538         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
28539         * sysdeps/mips/tst-abi-interlink.c: Likewise.
28540         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
28541         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
28542         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
28543         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
28544         record the current FP ABI extension.
28545         (mips-mode-switch): Define to show if kernel headers support mode
28546         switching.
28547         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
28548         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
28549         supported SYSV ABI version to 3.
28550         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
28551         feature.
28552
28553 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28554             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28555
28556         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
28557         path.
28558         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
28559
28560 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28561
28562         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
28563         __fegetround and redefine to call __fegetround.  Remove condition
28564         on [!__NO_MATH_INLINES].
28565         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
28566         function.
28567         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
28568         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
28569         Remove macro.
28570         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
28571         instead of <fenv_libc.h>.
28572         (__llrintl): Call fegetround instead of __fegetround.
28573         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
28574         instead of <fenv_libc.h>.
28575         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28576         (__lrintl): Call fegetround instead of __fegetround.
28577         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
28578         instead of <fenv_libc.h>.
28579         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28580         (__rintl): Call fegetround instead of __fegetround.
28581
28582 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
28583
28584         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
28585         arrays.
28586
28587 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28588
28589         [BZ #17775]
28590         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
28591         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
28592         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
28593
28594 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28595
28596         * sysdeps/i386/tls-macros.h: Include <features.h>.
28597         (TLS_LE): Use non-PIC version for GCC >= 5.0.
28598         (TLS_IE): Likewise.
28599         (TLS_LD): Likewise.
28600         (TLS_GD): Likewise.
28601         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
28602         define for GCC >= 5.0.
28603
28604 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
28605
28606         * math/test-fenv.c (test_single_exception, set_single_exc,
28607         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
28608         feexcp_mask_test, feenable_test, fe_single_test): Add
28609         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
28610         case where they are not used.
28611         * math/libm-test.inc: Likewise.
28612         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
28613         unused in the absence of FP rounding/exception support.
28614         * stdio-common/tst-printf-round.c: Likewise.
28615         * stdlib/tst-strtod-round.c: Likewise.
28616         * stdlib/tst-strtod-underflow.c: Likewise.
28617
28618 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
28619
28620         [BZ #17723]
28621         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
28622         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
28623         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28624         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28625         libm_hidden_weak.
28626         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
28627         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28628         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
28629         libm_hidden_def.
28630         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28631         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28632         libm_hidden_weak.
28633         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
28634         Likewise.
28635         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
28636         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28637         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28638         libm_hidden_weak.
28639         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28640         libm_hidden_def.
28641         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
28642         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
28643         (__feraiseexcept): Likewise.
28644         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28645         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28646         libm_hidden_weak.
28647         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28648         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28649         libm_hidden_def.
28650         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
28651         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
28652         Use libm_hidden_def.
28653         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
28654         libm_hidden_def.
28655         (feraiseexcept): Define as weak not strong alias.  Use
28656         libm_hidden_weak.
28657         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
28658         New inline function.  Factored out of ...
28659         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
28660         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
28661         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
28662         feraiseexcept.
28663         * math/w_acos.c (__acos): Likewise.
28664         * math/w_asin.c (__asin): Likewise.
28665         * math/w_ilogb.c (__ilogb): Likewise.
28666         * math/w_j0.c (y0): Likewise.
28667         * math/w_j1.c (y1): Likewise.
28668         * math/w_jn.c (yn): Likewise.
28669         * math/w_log.c (__log): Likewise.
28670         * math/w_log10.c (__log10): Likewise.
28671         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
28672         * sysdeps/aarch64/fpu/math_private.h
28673         (libc_feupdateenv_test_aarch64): Likewise.
28674         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28675         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
28676         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
28677         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28678         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28679         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28680         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
28681         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28682         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28683         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28684
28685 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28686
28687         [BZ #17732]
28688         * io/test-utime.c (main): Replace %ld with %jd and cast to
28689         intmax_t.
28690         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
28691         * nptl/tst-mutex5.c: Include <stdint.h>.
28692         (do_test): Replace %ld with %jd and cast to intmax_t.
28693         * posix/tst-regex.c (run_test): Likewise.
28694         (run_test_backwards): Likewise.
28695         * rt/tst-clock.c: Include <stdint.h>.
28696         (clock_test): Replace %ld with %jd and cast to intmax_t.
28697         * rt/tst-cpuclock1.c: Include <stdint.h>.
28698         (do_test): Replace %lu with %ju and cast to uintmax_t.
28699         * rt/tst-cpuclock2.c: Include <stdint.h>.
28700         (do_test): Replace %lu with %ju and cast to uintmax_t.
28701         * rt/tst-mqueue1.c: Include <stdint.h>.
28702         (check_attrs): Replace %ld with %jd and cast to intmax_t.
28703         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
28704         intmax_t.
28705         * rt/tst-mqueue4.c (do_test): Likewise.
28706         * rt/tst-timer4.c: Include <stdint.h>.
28707         (check_ts): Replace %ld with %jd and cast to intmax_t.
28708         (do_test): Likewise.
28709         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
28710         and cast to intmax_t.
28711         * sysdeps/pthread/tst-timer.c (main): Likewise.
28712         * time/clocktest.c (main): Likewise.
28713         * time/tst-posixtz.c (do_test): Likewise.
28714         * timezone/tst-timezone.c (main): Likewise.
28715
28716 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28717             H.J. Lu  <hongjiu.lu@intel.com>
28718
28719         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
28720         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28721         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
28722         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
28723         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
28724         version if bit_Fast_Unaligned_Load is set.
28725         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28726         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28727         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28728         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28729         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28730         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28731         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28732         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
28733         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
28734         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
28735         to 4.
28736         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
28737         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
28738         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
28739         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
28740
28741 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
28742
28743         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
28744         instead of #if to avoid a Wundef warning.
28745         * stdlib/tst-limits.c (do_test): Likewise.
28746
28747         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
28748         parallel other exception macros.
28749         (fegetenv): Convert from macro to extern inline so that it applies
28750         retroactively to inline functions already seen by the compiler.
28751         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
28752
28753         * posix/Makefile (before-compile): Use $(objpfx) for
28754         posix-conf-vars-def.h.
28755
28756 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28757
28758         * posix/getconf.c (main): Use size_t for type of I.
28759         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
28760         NSPEC.
28761
28762         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
28763         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
28764         * posix/posix-envs.def: Likewise.
28765         * sysdeps/posix/sysconf.c: Likewise.
28766         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
28767         (specs): Remove array.
28768         * scripts/gen-posix-conf-vars.awk: Support generation of specs
28769         array.
28770
28771         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
28772         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
28773         (__sysconf): Use CONF_IS_* macros.
28774
28775         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
28776         ($(objpfx)posix-conf-vars-def.h): New target.
28777         * posix/posix-conf-vars.list: New file.
28778         * posix/posix-conf-vars.h: New file.
28779         * posix/confstr.c: Include posix-conf-vars.h.
28780         (confstr): Use CONF_IS_* macros.
28781         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
28782         CONF_IS_* macros.
28783         * scripts/gen-posix-conf-vars.awk: New file.
28784
28785 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
28786
28787         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
28788         fegetround): Add no-op macros to avoid linknamespace issues.
28789
28790         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
28791         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
28792
28793         * sysdeps/unix/sysv/linux/tile/sysdep.h
28794         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
28795         assembly-specific section to avoid a redefinition warning.
28796
28797         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
28798         long before casting to pointer to avoid a cast warning.
28799
28800 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
28801
28802         * sysdeps/tile/tilegx/Implies: New file.
28803
28804 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
28805
28806         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
28807
28808 2014-12-23  Florian Weimer  <fweimer@redhat.com>
28809
28810         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
28811
28812 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28813
28814         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
28815         not define.
28816         * sysdeps/unix/sysv/linux/utimes.c: Do not include
28817         <kernel-features.h>.
28818         (__utimes) [__NR_utimes]: Make code unconditional.
28819         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
28820         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
28821         (__ASSUME_UTIMES): Do not undefine.
28822         * sysdeps/unix/sysv/linux/tile/kernel-features.h
28823         (__ASSUME_UTIMES): Likewise.
28824         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28825         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
28826         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
28827         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
28828
28829 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28830
28831         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
28832
28833 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
28834
28835         [BZ #17747]
28836         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
28837         alias to weak alias for j0l, y0l.
28838         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
28839         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
28840
28841         [BZ #17746]
28842         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
28843         conversion.
28844
28845 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28846
28847         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
28848         to zero if not already defined.
28849
28850 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28851
28852         [BZ #17724]
28853         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
28854         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
28855         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
28856         (char *) casts added.
28857         * sysdeps/ieee754/k_standardf.c: New file.
28858         * sysdeps/ieee754/k_standardl.c: Likewise.
28859         * math/Makefile (libm-support): Remove k_standard.
28860         (libm-calls): Add k_standard.
28861
28862 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28863
28864         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28865         Optimize to avoid an unnecessary FPCR read.
28866
28867 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28868
28869         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28870         Optimize to reduce FPCR/FPSR accesses.
28871
28872 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28873
28874         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
28875         Call libc_fetestexcept_aarch64.
28876
28877 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28878
28879         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
28880         Call libc_fesetround_aarch64.
28881
28882 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28883
28884         [BZ #17733]
28885         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
28886         (__bind): Do not define as weak alias.
28887         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
28888         define.
28889         (__getsockname): Do not define as weak alias.
28890
28891 2014-12-22  Will Newton  <will.newton@linaro.org>
28892
28893         * manual/install.texi: Document that we require bison 2.7
28894         or above.
28895         * INSTALL: Regenerate.
28896         * configure.ac: Use AC_CHECK_PROG_VER instead of
28897         AC_PATH_PROG when checking for bison and check for
28898         version 2.7 or above.
28899         * configure: Regenerate.
28900
28901 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
28902
28903         [BZ #17745]
28904         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
28905         * sysdeps/tile/ffsll.c (ffsll): To here.
28906
28907         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
28908
28909 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28910
28911         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
28912         if not defined.
28913         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
28914         definition.
28915         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28916         hidden ___tls_get_addr.
28917         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28918         hidden __tls_get_addr.
28919         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
28920         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
28921         Likewise.
28922
28923 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28924
28925         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
28926         _dl_init call.
28927
28928 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28929
28930         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
28931         from "call _dl_init@PLT".
28932         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
28933
28934 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
28935
28936         * manual/search.texi: (Array Sort Function): Clarify stable sorting
28937         guarantees.
28938
28939 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
28940
28941         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
28942
28943 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28944
28945         [BZ #17744]
28946         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
28947         strnlen.
28948
28949 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28950
28951         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
28952         of multu on MIPSr6.
28953         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
28954         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
28955         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
28956         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
28957         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
28958
28959 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28960
28961         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
28962         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
28963         (PTR_SUBU): Use subu for mips32r6/mips64r6.
28964         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
28965         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
28966         mips32r6/mips64r6.
28967         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
28968
28969 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
28970
28971         * string/strncat.c (STRNCAT): Simplify implementation.
28972
28973 2014-12-19  David S. Miller  <davem@davemloft.net>
28974
28975         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
28976         access the quad as both a long double and as a series of 4 words.
28977
28978         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
28979         link_map->l_info array access.
28980
28981 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28982
28983         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
28984
28985         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
28986         * math/atest-exp2.c (TIMEOUT): Likewise.
28987         * math/atest-sincos.c (TIMEOUT): Likewise.
28988
28989 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28990
28991         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
28992         -Wno-error with -fno-builtin-lround.
28993
28994 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28995
28996         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
28997         Contains futex constants and functions moved over from ...
28998         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
28999         <lowlevellock-futex.h>.
29000         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29001         (lll_timedwait_tid): Add comments and parentheses around macro
29002         arguments.
29003
29004 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29005
29006         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
29007         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
29008         (__lll_private_flag): Remove.
29009         (lll_futex_wait): Likewise.
29010         (lll_futex_timed_wait): Likewise.
29011         (lll_futex_wake): Likewise.
29012         (lll_futex_requeue): Likewise.
29013         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29014         (__lll_timedwait_tid): Spell out argument names.
29015         (lll_timedwait_tid): Add comments and parentheses around macro
29016         arguments.
29017         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
29018         LLL_SHARED and LLL_PRIVATE usable from assembly code.
29019
29020 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29021
29022         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
29023         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
29024         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
29025         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
29026         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
29027         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
29028         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
29029         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
29030         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
29031         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
29032         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
29033         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
29034         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
29035         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
29036         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
29037         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
29038         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
29039         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
29040         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
29041
29042 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29043
29044         * sysdeps/x86_64/x32/Makefile: New file.
29045
29046 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29047
29048         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
29049         1L with (mp_limb_t) 1.
29050
29051 2014-12-17  Roland McGrath  <roland@hack.frob.com>
29052
29053         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
29054         * nptl/libc_pthread_init.c: ... here.
29055         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
29056         * nptl/register-atfork.c: ... here.
29057
29058         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
29059         Use pthread_sigmask rather than INTERNAL_SYSCALL.
29060         Use assert_perror to check its return value.
29061         (__gai_create_helper_thread): Likewise.
29062
29063         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
29064
29065         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
29066
29067 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
29068
29069         [BZ #17725]
29070         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
29071         __profil_counter.
29072         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
29073         Likewise.
29074         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
29075         Likewise.
29076         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
29077         Likewise.
29078         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
29079         (profil_counter): Likewise.
29080         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
29081         (profil_counter): Likewise.
29082         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
29083         Likewise.
29084         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
29085         Likewise.
29086         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
29087         (profil_counter): Likewise.
29088         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
29089         Likewise.
29090         [!__profil_counter] (profil_counter): Define as weak alias of
29091         __profil_counter.
29092         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
29093         (profil_counter): Rename to __profil_counter.
29094         [!__profil_counter] (profil_counter): Define as weak alias of
29095         __profil_counter.
29096         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
29097         (profil_counter): Rename to __profil_counter.
29098         [!__profil_counter] (profil_counter): Define as weak alias of
29099         __profil_counter.
29100         * sysdeps/posix/profil.c: Update comment referring to
29101         profil_counter.
29102         (__profil): Use __profil_counter instead of profil_counter.
29103         * sysdeps/posix/sprofil.c (profil_counter): Rename to
29104         __profil_counter.  Use __profil_counter_ushort and
29105         __profil_counter_uint in definitions.
29106         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
29107         instead of profil_counter_uint and profil_counter_ushort.
29108
29109         [BZ #17722]
29110         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
29111         define as weak alias of __inet_makeaddr.
29112         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
29113         as weak alias of __inet_addr.
29114         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
29115         as weak alias of __inet_pton.  Use libc_hidden_weak.
29116         * include/arpa/inet.h (__inet_pton): Declare.  Use
29117         libc_hidden_proto.
29118         (inet_makeaddr): Don't use libc_hidden_proto.
29119         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
29120         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
29121         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
29122         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
29123         Remove variable.
29124         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
29125         (test-xfail-POSIX/time.h/linknamespace): Likewise.
29126
29127 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
29128
29129         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
29130
29131 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29132
29133         * stdio-common/bug-vfprintf-nargs.c (do_test):
29134         Cast value to intptr_t to avoid format warning
29135         for usage with PRIdPTR printing macro.
29136
29137 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29138
29139         * libio/tst-widetext.c (do_test):
29140         Use format type %td instead of %Zd for ptrdiff_t
29141         in order to avoid format warning.
29142
29143 2014-12-17  Andreas Schwab  <schwab@suse.de>
29144
29145         * nscd/mem.c (gc): Add size_t cast to match printf format.
29146
29147 2014-12-16  Roland McGrath  <roland@hack.frob.com>
29148
29149         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
29150         (init): Apply PTR_MANGLE to pointers before storing them.
29151         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
29152         before using them.
29153
29154 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
29155
29156         [BZ #17719]
29157         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
29158         define as weak alias of __memrchr.
29159         (__memrchr): Do not define as strong alias of memrchr.
29160         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
29161         Remove variable.
29162         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
29163         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
29164         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
29165
29166         [BZ #17717]
29167         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
29168         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
29169         (if_indextoname): Rename to __if_indextoname and define as weak
29170         alias of __if_indextoname.  Use libc_hidden_weak.
29171         (if_freenameindex): Rename to __if_freenameindex and define as
29172         weak alias of __if_freenameindex.
29173         (if_nameindex): Rename to __if_nameindex and define as weak alias
29174         of __if_nameindex.
29175         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
29176         __if_nametoindex and define as weak alias of __if_nametoindex.
29177         Use libc_hidden_weak.
29178         (if_freenameindex): Rename to __if_freenameindex and define as
29179         weak alias of __if_freenameindex.
29180         (if_nameindex): Rename to __if_nameindex and define as weak alias
29181         of __if_nameindex.
29182         (if_indextoname): Rename to __if_indextoname and define as weak
29183         alias of __if_indextoname.  Use libc_hidden_weak.
29184         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
29185         __if_nametoindex and define as weak alias of __if_nametoindex.
29186         Use libc_hidden_weak.
29187         (if_freenameindex): Rename to __if_freenameindex and define as
29188         weak alias of __if_freenameindex.  Use libc_hidden_weak.
29189         (if_nameindex_netlink): Use __if_freenameindex instead of
29190         if_freenameindex.
29191         (if_nameindex): Rename to __if_nameindex and define as weak alias
29192         of __if_nameindex.  Use libc_hidden_weak.
29193         (if_indextoname): Rename to __if_indextoname and define as weak
29194         alias of __if_indextoname.  Use libc_hidden_weak.
29195         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
29196         libc_hidden_proto.
29197         [!_ISOMAC] (__if_freenameindex): Likewise.
29198         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
29199         if_nametoindex.
29200         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
29201         variable.
29202         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
29203         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
29204         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
29205         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
29206         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
29207         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
29208         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
29209
29210         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
29211         Remove variable.
29212         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
29213         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
29214
29215 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29216
29217         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
29218         subscript above bounds'
29219
29220         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
29221         bounds.
29222
29223 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
29224
29225         * libio/tst-fopenloc.c: Use test-skeleton.c.
29226
29227         * stdlib/tst-bsearch.c: Use test-skeleton.c.
29228         (entry): Rename to ITEM.
29229         (do_test, comp): Adjust.
29230
29231         * stdio-common/tst-fseek.c: Use test-skeleton.c.
29232
29233 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29234
29235         * string/tester.c: Include <libc-internal.h>.
29236         (test_memset): Ignore -Wmemset-transposed-args.
29237
29238 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29239
29240         * misc/tst-mntent2.c (do_test): Fix warning.
29241
29242 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29243
29244         * elf/tst-unique4lib.cc(a): Mark as used.
29245
29246 2014-12-16  Florian Weimer  <fweimer@redhat.com>
29247
29248         [BZ #17630]
29249         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
29250         names.
29251
29252 2014-12-16  Allan McRae  <allan@archlinux.org>
29253
29254         * stdio-common/Makefile (tests): Re-add bug26.
29255
29256 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
29257
29258         [BZ #17657]
29259         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
29260         static array.
29261
29262 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
29263
29264         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
29265         (__lll_lock_wait): Likewise.
29266         (__lll_timedlock_wait): Likewise.
29267         (__lll_timedwait_tid): Likewise.
29268         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
29269         (__lll_robust_timedlock_wait): Likewise.
29270         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
29271         (lll_cond_trylock): Likewise.
29272         (__lll_lock): Likewise.
29273         (__lll_robust_lock): Likewise.
29274         (__lll_cond_lock): Likewise.
29275         (lll_robust_cond_lock): Likewise.
29276         (__lll_timedlock): Likewise.
29277         (__lll_robust_timedlock): Likewise.
29278         (__lll_unlock): Likewise.
29279         (__lll_robust_unlock): Likewise.
29280         (lll_wait_tid): Likewise.
29281         (lll_timedwait_tid): Likewise.
29282
29283 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29284
29285         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
29286
29287 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29288
29289         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
29290
29291 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29292
29293         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
29294         * stdio-common/tst-sprintf.c: Likewise.
29295
29296 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29297
29298         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
29299
29300 2014-12-15  Jeff Law  <law@redhat.com>
29301
29302         [BZ #16617]
29303         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
29304         on the heap.  (CVE-2012-3406)
29305         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
29306         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
29307         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
29308
29309 2014-12-15  Will Newton  <will.newton@linaro.org>
29310
29311         * manual/install.texi: Bump required version of texinfo
29312         to 4.7 from 4.5.
29313         * INSTALL: Regenerated.
29314         * configure.ac: Check for makeinfo version 4.7 and above.
29315         * configure: Regenerated.
29316
29317 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29318
29319         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
29320         PREFIX, string constant to insert between directory and name.
29321         * sysdeps/posix/shm_open.c: Update caller.
29322         * sysdeps/posix/shm_unlink.c: Likewise.
29323         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
29324         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
29325         (SEM_SHM_PREFIX): New macro.
29326         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
29327         [$(have-thread-library) = no].
29328         * nptl/Makefile (libpthread-routines): Add shm-directory.
29329         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
29330         * sysdeps/nptl/shm-directory.h: New file.
29331         * sysdeps/posix/shm-directory.c
29332         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
29333         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29334         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
29335         INTERNAL_SYSCALL.
29336         (__where_is_shmfs): Function removed.
29337         (mountpoint, defaultmount, defaultdir, __namedsem_once):
29338         Variables removed.
29339         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
29340         Use SHM_GET_NAME.
29341         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
29342
29343         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
29344         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
29345         unconditional for use inside libpthread.
29346         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
29347
29348 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29349
29350         * nptl/pthread_getaffinity.c: New file.
29351         * nptl/pthread_setaffinity.c: New file.
29352         * nptl/pthread_getname.c: New file.
29353         * nptl/pthread_setname.c: New file.
29354
29355         * nptl/pthread_create.c (START_THREAD_DEFN)
29356         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
29357
29358 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29359             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29360
29361         * resolv/res_send.c (send_vc): Disable warning resplen may
29362         be used uninitialized.
29363
29364 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29365
29366         * nptl/tst-mutex6.c
29367         (ATTR_NULL): New define checks ATTR against NULL.
29368         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
29369         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
29370
29371 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
29372
29373         [BZ #17581]
29374         * malloc/hooks.c
29375         (mem2mem_check): Revert my previous change.
29376         (malloc_check_get_size): Revert my previous change.
29377         (mem2chunk_check): Revert my previous change.
29378
29379 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29380
29381         * sysdeps/posix/shm-directory.c: New file.
29382         * sysdeps/posix/shm-directory.h: New file.
29383         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
29384         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
29385         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
29386         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
29387         Transmute EPERM to EACCES.
29388         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
29389         from ...
29390         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
29391         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
29392
29393 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29394
29395         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
29396         pointer and cast to uintptr_t.
29397         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
29398         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
29399         Add cast to avoid warning.
29400         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
29401
29402 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29403
29404         * nptl/semaphore.h: Move to ...
29405         * sysdeps/pthread/semaphore.h: ... here.
29406         * Makefile (installed-headers): Change nptl/semaphore.h to
29407         sysdeps/pthread/semaphore.h.
29408
29409 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29410
29411         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
29412         generated error format strings.
29413
29414         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
29415         -Wformat-extra-args warnings for scanf formats.
29416         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
29417         test of zero-length format (duh).
29418         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
29419         corner-case scanf format test.
29420         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
29421         generated fprintf format string.
29422         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
29423         corner-case sprintf format tests.
29424         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
29425         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
29426         -Wformat-extra-args warnings throughout.
29427         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
29428         (CFLAGS-scanf4.c): Likewise.
29429         (CFLAGS-scanf7.c): Likewise.
29430         (CFLAGS-tst-sprintf.c): Likewise.
29431         (CFLAGS-tst-printf.c): Likewise.
29432         (CFLAGS-tst-printfsz.c): Likewise.
29433
29434 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29435
29436         * include/cpio.h: New file.
29437         * include/fmtmsg.h: Likewise.
29438
29439         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
29440         corresponding format argument to size_t.
29441         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
29442         arguments.
29443         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
29444         corresponding format argument to size_t.
29445         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
29446         arguments.
29447         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
29448         corresponding format argument to size_t.
29449         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
29450         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
29451         (CFLAGS-tst-mbswcs2.c): Likewise.
29452         (CFLAGS-tst-mbswcs3.c): Likewise.
29453         (CFLAGS-tst-mbswcs4.c): Likewise.
29454         (CFLAGS-tst-mbswcs5.c): Likewise.
29455         (CFLAGS-tst-trans.c): Likewise.
29456
29457 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29458
29459         * posix/regexbug1.c (main): Use "%s" format with regerror results,
29460         rather than assuming they won't contain any '%'s.
29461
29462 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
29463
29464         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
29465         inhibit_loop_to_libcall to avoid recursive calls.
29466         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
29467         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
29468
29469 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29470
29471         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
29472         prototype.
29473
29474 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29475
29476         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
29477         integer value instead of boolean.
29478
29479 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29480
29481         * malloc/malloc.c: Fix powerof2 check.
29482
29483 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29484
29485         * locale/programs/locfile.h (maybe_swap_uint32):
29486         Remove inline and add unused attribute.
29487
29488 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29489
29490         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
29491         Truncating assembler expression to a .long expression.
29492
29493 2014-12-11  Andreas Schwab  <schwab@suse.de>
29494
29495         * elf/rtld.c (struct map_args): Constify str member.
29496         (do_preload): Constify fname argument.
29497
29498 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29499
29500         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
29501         constants definition.
29502
29503 2014-12-11  Andreas Schwab  <schwab@suse.de>
29504
29505         [BZ #16657]
29506         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
29507         FORCE_ELISION instead of DO_ELISION.
29508         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
29509         Remove.
29510         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
29511         Likewise.
29512
29513         * iconvdata/gconv-modules: Remove duplicate entry.
29514
29515 2014-12-11  Will Newton  <will.newton@linaro.org>
29516
29517         Merge gettext 0.19.3 into intl/.
29518
29519         This involves a number of cosmetic changes to comments
29520         and ANSI function definitions and prototypes throughout
29521         all the files. The gettext copyright header is used but
29522         with the date ranges taken from the glibc copy.
29523
29524         * NEWS: Add gettext merge to 2.21.
29525         * intl/bindtextdom.c: Switch to gettext copyright.
29526         Use ANSI definitions and prototypes.
29527         Use gl_* locking primitives rather than __libc_* ones.
29528         Use __builtin_expect rather than __glibc_likely/unlikely.
29529         * intl/dcgettext.c: Switch to gettext copyright.
29530         Use ANSI definitions and prototypes.
29531         * intl/dcigettext.c: Switch to gettext copyright.
29532         Use ANSI definitions and prototypes.
29533         (INTDIV0_RAISES_SIGFPE): New define.
29534         Use gl_* locking primitives rather than __libc_* ones.
29535         Include eval-plural.h instead of plural-eval.c.
29536         Use __builtin_expect rather than __glibc_likely/unlikely.
29537         * intl/dcngettext.c: Switch to gettext copyright.
29538         Use ANSI definitions and prototypes.
29539         * intl/dgettext.c: Likewise.
29540         * intl/dngettext.c: Likewise.
29541         * intl/plural-eval.c: Renamed to...
29542         * intl/eval-plural.h: ...this.
29543         * intl/explodename.c: Switch to gettext copyright.
29544         Use ANSI definitions and prototypes.
29545         (_nl_explode_name): Use strchr instead of __rawmemchr.
29546         * intl/finddomain.c: Switch to gettext copyright.
29547         Use ANSI definitions and prototypes.
29548         Use gl_* locking primitives rather than __libc_* ones.
29549         (_nl_find_domain): Use malloc rather than alloca for
29550         allocation of temporary locale name.
29551         * intl/gettext.c: Switch to gettext copyright.
29552         Use ANSI definitions and prototypes.
29553         * intl/gettextP.h: Switch to gettext copyright.
29554         Use ANSI definitions and prototypes.
29555         Use gl_* locking primitives rather than __libc_* ones.
29556         * intl/gmo.h: Switch to gettext copyright.
29557         (struct sysdep_string): Move struct segment_pair outside of
29558         struct definition.
29559         * intl/hash-string.c: Use ANSI definitions and prototypes.
29560         * intl/hash-string.h: Switch to gettext copyright.
29561         Use ANSI definitions and prototypes.
29562         * intl/l10nflist.c: Switch to gettext copyright.
29563         Use ANSI definitions and prototypes.
29564         (_nl_normalize_codeset): Avoid integer overflow.
29565         * intl/loadinfo.h: Switch to gettext copyright.
29566         Use ANSI definitions and prototypes.
29567         (LIBINTL_DLL_EXPORTED): New define.
29568         (PATH_SEPARATOR): New define.
29569         * intl/loadmsgcat.c: Switch to gettext copyright.
29570         * intl/localealias.c: Switch to gettext copyright.
29571         Use ANSI definitions and prototypes.
29572         (_nl_expand_alias): Use PATH_SEPARATOR.
29573         * intl/ngettext.c: Switch to gettext copyright.
29574         Use ANSI definitions and prototypes.
29575         * intl/plural-exp.c: Likewise.
29576         * intl/plural-exp.h: Switch to gettext copyright.
29577         Use ANSI definitions and prototypes.
29578         (struct expression): Move definition of enum operator outside
29579         of struct definition.
29580         * intl/plural.c: Regenerate.
29581         * intl/plural.y: Switch to gettext copyright.
29582         Use ANSI definitions and prototypes.
29583         Port to bison 3.0.
29584         * intl/textdomain.c: Switch to gettext copyright.
29585         Use ANSI definitions and prototypes.
29586         Use gl_* locking primitives rather than __libc_* ones.
29587
29588 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
29589
29590         * debug/warning-nop.c: Add used atrribute.
29591
29592 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29593
29594         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
29595
29596         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
29597         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
29598         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
29599
29600 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29601             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29602
29603         [BZ #17634]
29604         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
29605         Undefine after defining function.  Define as weak alias of
29606         __wcschr.  Use libc_hidden_weak.
29607         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
29608         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
29609         (libc_hidden_def): Also define __GI___wcschr alias.
29610         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
29611         __wcschr and define as weak alias of __wcschr.
29612         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
29613         __wcschr.
29614         [!WCSCHR] (DEFAULT_WCSCHR): Define.
29615         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
29616         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
29617         libc_hidden_weak.  Do not use libc_hidden_def.
29618         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
29619         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
29620         __GI___wcschr alias.
29621         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
29622         [IS_IN (libc)] (wcschr): Define as macro expanding to
29623         __redirect_wcschr.
29624         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
29625         [IS_IN (libc)] (__wcschr_power6): Likewise.
29626         [IS_IN (libc)] (__wcschr_power7): Likewise.
29627         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
29628         instead of wcschr.
29629         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
29630         __libc_wcschr.
29631         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
29632         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
29633         __wcschr and define as weak alias of __wcschr.  Use
29634         libc_hidden_builtin_def.
29635         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
29636         as weak alias of __wcschr.  Use libc_hidden_weak.
29637         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
29638         wcschr.
29639         * time/era.c (_nl_init_era_entries): Likewise.
29640         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
29641         variable.
29642         (test-xfail-XPG3/time.h/linknamespace): Likewise.
29643         (test-xfail-XPG4/time.h/linknamespace): Likewise.
29644
29645 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29646
29647         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
29648         format for long int variable.
29649
29650 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
29651
29652         [BZ #10672]
29653         * manual/search.texi: (Array Sort Function): Remove claim how to make
29654         qsort stable.
29655
29656 2014-12-10  Andreas Schwab  <schwab@suse.de>
29657
29658         [BZ #12847]
29659         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
29660         user-controlled locks.
29661
29662 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
29663
29664         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
29665         register.
29666
29667 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29668
29669         * configure.ac (--disable-werror): New configure option.
29670         (enable_werror): New AC_SUBST.
29671         * configure: Regenerated.
29672         * config.make.in (enable-werror): New variable.
29673         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
29674         -Wno-error=undef.
29675         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
29676         * manual/install.texi (Configuring and compiling): Document
29677         --disable-werror.
29678         * INSTALL: Regenerated.
29679         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
29680         (CFLAGS-tst-chk2.c): Likewise.
29681         (CFLAGS-tst-chk3.c): Likewise.
29682         (CFLAGS-tst-chk4.cc): Likewise.
29683         (CFLAGS-tst-chk5.cc): Likewise.
29684         (CFLAGS-tst-chk6.cc): Likewise.
29685         (CFLAGS-tst-lfschk1.c): Likewise.
29686         (CFLAGS-tst-lfschk2.c): Likewise.
29687         (CFLAGS-tst-lfschk3.c): Likewise.
29688         (CFLAGS-tst-lfschk4.cc): Likewise.
29689         (CFLAGS-tst-lfschk5.cc): Likewise.
29690         (CFLAGS-tst-lfschk6.cc): Likewise.
29691
29692         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
29693         (main): Disable -Wdeprecated-declarations around calls to
29694         register_printf_function.
29695
29696         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
29697         (do_test): Disable -Wdiv-by-zero around some calls to
29698         fwrite_unlocked and fread_unlocked.
29699
29700         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
29701         (DIAG_POP_NEEDS_COMMENT): Likewise.
29702         (_DIAG_STR1): Likewise.
29703         (_DIAG_STR): Likewise.
29704         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
29705         * stdio-common/bug21.c: Include <libc-internal.h>.
29706         (do_test): Disable -Wformat around call to sscanf.
29707         * stdio-common/scanf14.c: Include <libc-internal.h>.
29708         (main): Disable -Wformat around some calls to scanf functions.
29709
29710 2014-12-09  Torvald Riegel  <triegel@redhat.com>
29711
29712         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
29713
29714 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29715
29716         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
29717         stack variable alignment.
29718
29719 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
29720
29721         [BZ #17682]
29722         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
29723         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
29724         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
29725         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
29726         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
29727         __getrlimit instead of getrlimit.
29728         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
29729         __gettimeofday instead of gettimeofday.
29730         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29731         Likewise.
29732         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29733         Likewise.
29734         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29735         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
29736         Remove variable.
29737         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
29738         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
29739
29740 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29741
29742         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
29743         for wide-character tests.
29744
29745 2014-12-04  Roland McGrath  <roland@hack.frob.com>
29746
29747         * io/openat64.c: #include <libc-internal.h>
29748         (__openat64): Prototypify.  Use ignore_value on MODE.
29749         * io/openat.c: Likewise.
29750         * misc/reboot.c: #include <libc-internal.h>
29751         (reboot): Prototypify.  Use ignore_value on HOWTO.
29752         * misc/ptrace.c: #include <libc-internal.h>
29753         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
29754
29755 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
29756
29757         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
29758         XPG4, UNIX98 and XOPEN2K.
29759         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
29760         Remove variable.
29761         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
29762
29763 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29764
29765         * libio/fileops.c: Use ISO C style for function definitions.
29766         * libio/iofopen.c: Likewise.
29767         * libio/wfileops.c: Likewise.
29768
29769         [BZ #17653]
29770         * libio/fileops.c (_IO_new_file_underflow): Unset cached
29771         offset on EOF.
29772         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
29773         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
29774         (fgets_func): Function pointer to fgets and fgetws.
29775         (do_ftell_test): Add test to verify ftell value after read
29776         EOF.
29777         (do_test): Set fgets_func.
29778
29779         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
29780         O_TRUNC flag for w and w+ modes.
29781         (do_rewind_test): Likewise.
29782         (do_ftell_test): Likewise.
29783         (do_write_test): Likewise.
29784
29785         [BZ #17647]
29786         * libio/fileops.c (do_ftell): Seek only when there are
29787         unflushed writes.
29788         * libio/wfileops.c (do_ftell_wide): Likewise.
29789         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
29790         test case.
29791         (do_one_test): Call it.
29792
29793 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
29794
29795         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
29796         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
29797         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
29798         Remove variable.
29799         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
29800         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
29801         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
29802
29803 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29804
29805         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
29806         Remove variable.
29807         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
29808
29809         [BZ #17668]
29810         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
29811         as weak alias of __getifaddrs.  Use libc_hidden_weak.
29812         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29813         __freeifaddrs.  Use libc_hidden_weak.
29814         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
29815         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
29816         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29817         __freeifaddrs.  Use libc_hidden_weak.
29818         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
29819         __getifaddrs and define as weak alias of __getifaddrs.  Use
29820         libc_hidden_weak.
29821         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29822         __freeifaddrs.  Use libc_hidden_weak.
29823         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
29824         Remove variable.
29825         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
29826         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
29827
29828 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29829
29830         [BZ #17601]
29831         * sysdeps/mips/start.S (__start): Use indirect jump to call
29832         __libc_start_main.
29833
29834 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29835
29836         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
29837
29838         * nptl/tst-mutex1.c: Include <stdbool.h>.
29839         [!ATTR] (ATTR_NULL): New macro.
29840         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
29841         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
29842         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
29843
29844         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
29845         to char *.
29846
29847         [BZ #17665]
29848         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
29849         Change conditional to [__USE_MISC].
29850
29851         [BZ #17664]
29852         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
29853         fgets_unlocked.
29854         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
29855         __fgets_unlocked.
29856         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
29857         fgets_unlocked.
29858         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
29859         Remove variable.
29860         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
29861         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
29862         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
29863         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
29864         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
29865         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
29866         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
29867         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
29868         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
29869
29870         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
29871
29872 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29873
29874         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29875         Remove strpbrk objects.
29876         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29877         (__libc_ifunc_impl_list): Remove strpbrk implementation.
29878         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
29879         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
29880         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
29881         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
29882
29883         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29884         Remove strcspn objects.
29885         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29886         (__libc_ifunc_impl_list): Remove strcspn implementation.
29887         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
29888         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
29889         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
29890         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
29891
29892         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29893         Remove strspn objetcs.
29894         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29895         (__libc_ifunc_impl_list): Remove strspn implementation.
29896         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
29897         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
29898         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
29899         * sysdeps/powerpc/powerpc64/strspn.S: New file.
29900
29901 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
29902
29903         [BZ #17581]
29904         * malloc/hooks.c
29905         (mem2mem_check): Add a terminator to the chain of checking blocks.
29906         (malloc_check_get_size): Use it here.
29907         (mem2chunk_check): Ditto.
29908
29909 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29910
29911         * sysdeps/powerpc/powerpc64/strtok.S: New file.
29912         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
29913
29914 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
29915
29916         * bits/ioctl-types.h: Indent preprocessor directives correctly.
29917
29918         * nptl/nptl-init.c: Include libc-internal.h.
29919         (__pthread_initialize_minimal_internal): Use ROUND_UP.
29920
29921         * elf/ldconfig.c (search_dir): Expand comment.
29922
29923 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
29924
29925         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
29926         variable.
29927         (linknamespace-symlist-stdlibs-tests): Likewise.
29928         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
29929         instead of $(objpfx)symlist-stdlibs.
29930         (linknamespace-libs-isoc): New variable.
29931         (linknamespace-libs): Use $(linknamespace-libs-isoc).
29932         (linknamespace-libs-ISO): New variable.
29933         (linknamespace-libs-ISO99): Likewise.
29934         (linknamespace-libs-ISO11): Likewise.
29935         (linknamespace-libs-XPG3): Likewise.
29936         (linknamespace-libs-XPG4): Likewise.
29937         (linknamespace-libs-POSIX): Likewise.
29938         (linknamespace-libs-UNIX98): Likewise.
29939         (linknamespace-libs-XOPEN2K): Likewise.
29940         (linknamespace-libs-POSIX2008): Likewise.
29941         (linknamespace-libs-XOPEN2K8): Likewise.
29942         ($(objpfx)symlist-stdlibs): Replace by
29943         $(linknamespace-symlist-stdlibs-tests).  Use
29944         $(linknamespace-libs-$*) as set of libraries.
29945         ($(linknamespace-header-tests)): Update dependencies.  Use
29946         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
29947         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
29948         * conform/linknamespace.pl: Remove comment about considering
29949         definitions of symbols from irrelevant libraries.
29950
29951 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
29952
29953         [BZ #13862]
29954         * elf/dl-tls.c: Include <atomic.h>.
29955         (oom): Remove #ifdef SHARED/#endif.
29956         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
29957         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
29958         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
29959         big enough.
29960         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
29961         * nptl/Makefile (tests): Add tst-stack4.
29962         (modules-names): Add tst-stack4mod.
29963         ($(objpfx)tst-stack4): New.
29964         (tst-stack4mod.sos): Likewise.
29965         ($(objpfx)tst-stack4.out): Likewise.
29966         ($(tst-stack4mod.sos)): Likewise.
29967         (clean): Likewise.
29968         * nptl/tst-stack4.c: New file.
29969         * nptl/tst-stack4mod.c: Likewise.
29970
29971 2014-11-27  J. Brown  <jb999@gmx.de>
29972
29973         * sysdeps/x86/bits/string.h: Add recent CPUs.
29974
29975 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29976
29977         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
29978         sigblock.
29979
29980         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
29981         feof.
29982
29983         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
29984         variable.
29985
29986 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
29987
29988         * nscd/connections.c: Include libc-internal.h because of macro
29989         usage ignore_value.
29990
29991 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
29992
29993         * string/bits/string3.h (__warn_memset_zero_len): Don't
29994         declare for gcc newer than 5.0.
29995         (memset): Don't test for zero-length __LEN for gcc newer than
29996         5.0.
29997
29998 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29999
30000         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
30001         size_t for %zu format.
30002
30003         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
30004         difference, not %ju.
30005
30006 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30007
30008         * include/libc-internal.h (ignore_value): New macro.
30009         * nscd/connections.c (restart): Wrap calls to setuid and setgid
30010         with ignore_value.
30011
30012         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
30013         definition.
30014
30015         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
30016         pthread_cleanup_push to void *.
30017
30018         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
30019         Undefine.
30020
30021         [BZ #16619]
30022         [BZ #16740]
30023         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
30024         instead of 1L << 52.
30025
30026         * libio/bug-rewind.c (do_test): Check fwscanf return values.
30027         * libio/bug-rewind2.c (do_test): Likewise.
30028
30029         * debug/test-stpcpy_chk-ifunc.c: Remove file.
30030         * debug/test-strcpy_chk-ifunc.c: Likewise.
30031         * wcsmbs/test-wcschr-ifunc.c: Likewise.
30032         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
30033         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
30034         * wcsmbs/test-wcslen-ifunc.c: Likewise.
30035         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
30036         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
30037         * Rules [$(multi-arch) = no] (tests): Do not filter out
30038         $(tests-ifunc).
30039         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
30040         * debug/Makefile (tests-ifunc): Remove variable.
30041         (tests): Do not add $(tests-ifunc).
30042         * wcsmbs/Makefile (tests-ifunc): Remove variable.
30043         (tests): Do not add $(tests-ifunc).
30044         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
30045         [TEST_IFUNC]: Remove conditionals.
30046         * string/test-string.h (TEST_IFUNC): Remove macro.
30047         [TEST_IFUNC]: Remove conditionals.
30048
30049         * string/test-strchr.c [!WIDE] (L): New macro.
30050         [WIDE] (L): Likewise.
30051         (check1): Use CHAR instead of char.  Use L on string and character
30052         constants.
30053
30054 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
30055
30056         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
30057         tests.
30058         * sysdeps/powerpc/bits/atomic.h
30059         (__arch_atomic_exchange_and_add_32_acq): Add definition.
30060         (__arch_atomic_exchange_and_add_32_rel): Likewise.
30061         (atomic_exchange_and_add_acq): Likewise.
30062         (atomic_exchange_and_add_rel): Likewise.
30063         * sysdeps/powerpc/powerpc32/bits/atomic.h
30064         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30065         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30066         * sysdeps/powerpc/powerpc64/bits/atomic.h
30067         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30068         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30069
30070 2014-11-26  Torvald Riegel  <triegel@redhat.com>
30071
30072         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
30073         Change synchronization of __sched_fifo_min_prio and
30074         __sched_fifo_max_prio.
30075         * nptl/pthread_mutexattr_getprioceiling.c
30076         (pthread_mutexattr_getprioceiling): Likewise.
30077         * nptl/pthread_mutexattr_setprioceiling.c
30078         (pthread_mutexattr_setprioceiling): Likewise.
30079         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
30080         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
30081         Likewise.
30082
30083 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30084
30085         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
30086         void.
30087
30088 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30089
30090         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
30091         third argument const.
30092
30093 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30094
30095         fnmatch: work around GCC compiler warning bug with uninit var
30096         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
30097         This works around a bug with x86-64 GCC 4.9.2 and earlier
30098         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
30099         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
30100         used uninitialized in this function [-Wmaybe-uninitialized]".
30101
30102 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30103
30104         * posix/bug-regex31.c (main): Return RES not 0.
30105
30106 2014-11-25  Anton Blanchard <anton@samba.org>
30107
30108         * sysdeps/powerpc/bits/atomic.h
30109         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
30110
30111 2014-11-24  Sterling Augustine  <saugustine@google.com>
30112
30113         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
30114
30115 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
30116
30117         [BZ #17608]
30118         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
30119
30120 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
30121
30122         [BZ #17633]
30123         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
30124         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
30125         variable.
30126         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
30127         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
30128
30129 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30130
30131         * string/strncpy.c (strncpy): Improve performance by using memset.
30132
30133 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30134
30135         * string/strcpy.c (strcpy):
30136         Improve performance by using strlen and memcpy.
30137
30138 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
30139
30140         * string/strcoll_l.c (get_next_seq): __always_inline.
30141         * string/strcoll_l.c (do_compare): __always_inline.
30142
30143 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30144
30145         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
30146         defined.
30147         * include/mqueue.h: Likewise.
30148         * include/stdlib.h: Likewise.
30149
30150         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
30151         (get_null_defines): Adjust.
30152         * sunrpc/Makefile: Adjust comment.
30153         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
30154         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
30155         (CFLAGS-interp.c): Likewise.
30156         (CFLAGS-ldconfig.c): Likewise.
30157         (CPPFLAGS-.os): Likewise.
30158         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30159         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30160         * extra-modules.mk (extra-modules.mk): Likewise.
30161         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
30162         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
30163         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
30164         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
30165         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
30166         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
30167         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
30168         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
30169         * iconvdata/Makefile (CPPFLAGS): Likewise.
30170         (cpp-srcs-left): Add libof for all iconvdata routines.
30171         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
30172         * include/assert.h: Likewise.
30173         * include/ctype.h: Likewise.
30174         * include/errno.h: Likewise.
30175         * include/libc-symbols.h: Likewise.
30176         * include/math.h: Likewise.
30177         * include/netdb.h: Likewise.
30178         * include/resolv.h: Likewise.
30179         * include/stdio.h: Likewise.
30180         * include/stdlib.h: Likewise.
30181         * include/string.h: Likewise.
30182         * include/sys/stat.h: Likewise.
30183         * include/wctype.h: Likewise.
30184         * intl/l10nflist.c: Likewise.
30185         * libidn/idn-stub.c: Likewise.
30186         * libio/libioP.h: Likewise.
30187         * nptl/libc_multiple_threads.c: Likewise.
30188         * nptl/pthreadP.h: Likewise.
30189         * posix/regex_internal.h: Likewise.
30190         * resolv/res_hconf.c: Likewise.
30191         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
30192         * sysdeps/arm/memmove.S: Likewise.
30193         * sysdeps/arm/sysdep.h: Likewise.
30194         * sysdeps/generic/_itoa.h: Likewise.
30195         * sysdeps/generic/symbol-hacks.h: Likewise.
30196         * sysdeps/gnu/errlist.awk: Likewise.
30197         * sysdeps/gnu/errlist.c: Likewise.
30198         * sysdeps/i386/i586/memcpy.S: Likewise.
30199         * sysdeps/i386/i586/memset.S: Likewise.
30200         * sysdeps/i386/i686/memcpy.S: Likewise.
30201         * sysdeps/i386/i686/memmove.S: Likewise.
30202         * sysdeps/i386/i686/mempcpy.S: Likewise.
30203         * sysdeps/i386/i686/memset.S: Likewise.
30204         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30205         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30206         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
30207         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
30208         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30209         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30210         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
30211         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30212         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30213         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30214         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30215         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30216         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30217         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30218         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30219         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30220         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
30221         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
30222         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
30223         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30224         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30225         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30226         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30227         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30228         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30229         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30230         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
30231         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30232         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
30233         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30234         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30235         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30236         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30237         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30238         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30239         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30240         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30241         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30242         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30243         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30244         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30245         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30246         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30247         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30248         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30249         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30250         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
30251         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
30252         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30253         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
30254         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30255         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
30256         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
30257         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30258         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
30259         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
30260         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30261         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
30262         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
30263         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30264         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
30265         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30266         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
30267         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30268         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30269         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
30270         * sysdeps/posix/closedir.c: Likewise.
30271         * sysdeps/posix/opendir.c: Likewise.
30272         * sysdeps/posix/readdir.c: Likewise.
30273         * sysdeps/posix/rewinddir.c: Likewise.
30274         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
30275         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
30276         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
30277         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
30278         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
30279         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
30280         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
30281         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
30282         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
30283         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
30284         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
30285         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
30286         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
30287         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
30288         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
30289         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
30290         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
30291         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
30292         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
30293         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
30294         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
30295         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
30296         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
30297         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
30298         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
30299         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
30300         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
30301         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
30302         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
30303         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
30304         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
30305         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
30306         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
30307         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
30308         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
30309         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
30310         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
30311         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
30312         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
30313         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
30314         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
30315         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
30316         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
30317         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
30318         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
30319         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
30320         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
30321         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
30322         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
30323         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
30324         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
30325         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
30326         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
30327         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
30328         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
30329         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
30330         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
30331         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
30332         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
30333         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
30334         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
30335         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
30336         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
30337         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
30338         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
30339         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
30340         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
30341         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
30342         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
30343         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
30344         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
30345         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
30346         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
30347         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
30348         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
30349         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
30350         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
30351         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
30352         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30353         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
30354         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
30355         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
30356         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
30357         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
30358         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
30359         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
30360         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
30361         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
30362         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
30363         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
30364         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
30365         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
30366         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
30367         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
30368         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30369         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
30370         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
30371         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30372         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
30373         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
30374         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30375         * sysdeps/unix/alpha/sysdep.S: Likewise.
30376         * sysdeps/unix/alpha/sysdep.h: Likewise.
30377         * sysdeps/unix/make-syscalls.sh: Likewise.
30378         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30379         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30380         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30381         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
30382         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30383         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
30384         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
30385         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30386         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30387         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
30388         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30389         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30390         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30391         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30392         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30393         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30394         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30395         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30396         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30397         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30398         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
30399         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30400         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30401         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30402         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30403         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30404         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30407         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
30408         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30409         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30410         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30411         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30412         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
30413         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30414         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30415         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30416         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
30417         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
30418         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30419         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30420         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30421         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
30422         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30423         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30424         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30425         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30426         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30427         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30428         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30429         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30430         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30431         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30432         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
30433         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30434         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30435         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30436         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
30437         * sysdeps/x86_64/memcpy.S: Likewise.
30438         * sysdeps/x86_64/memmove.c: Likewise.
30439         * sysdeps/x86_64/memset.S: Likewise.
30440         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
30441         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30442         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
30443         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
30444         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
30445         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30446         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30447         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30448         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30449         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30450         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30451         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30452         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
30453         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30454         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30455         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
30456         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
30457         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30458         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30459         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30460         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
30461         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30462         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30463         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30464         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30465         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30466         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30467         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
30468         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30469         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30470         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
30471         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30472         * sysdeps/x86_64/strcmp.S: Likewise.
30473
30474         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
30475
30476         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
30477         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
30478         * elf/rtld-Rules: Likewise.
30479         * elf/setup-vdso.h: Likewise.
30480         * include/assert.h: Likewise.
30481         * include/bits/stdlib-float.h: Likewise.
30482         * include/errno.h: Likewise.
30483         * include/sys/stat.h: Likewise.
30484         * include/unistd.h: Likewise.
30485         * sysdeps/aarch64/setjmp.S: Likewise.
30486         * sysdeps/alpha/setjmp.S: Likewise.
30487         * sysdeps/arm/__longjmp.S: Likewise.
30488         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
30489         * sysdeps/arm/setjmp.S: Likewise.
30490         * sysdeps/arm/sysdep.h: Likewise.
30491         * sysdeps/generic/_itoa.h: Likewise.
30492         * sysdeps/generic/dl-sysdep.h: Likewise.
30493         * sysdeps/generic/ldsodefs.h: Likewise.
30494         * sysdeps/i386/dl-tls.h: Likewise.
30495         * sysdeps/i386/setjmp.S: Likewise.
30496         * sysdeps/m68k/setjmp.c: Likewise.
30497         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
30498         * sysdeps/mach/hurd/opendir.c: Likewise.
30499         * sysdeps/posix/getcwd.c: Likewise.
30500         * sysdeps/posix/opendir.c: Likewise.
30501         * sysdeps/posix/profil.c: Likewise.
30502         * sysdeps/powerpc/dl-procinfo.h: Likewise.
30503         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30504         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30505         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
30506         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30507         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
30508         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30509         * sysdeps/s390/dl-tls.h: Likewise.
30510         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30511         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30512         * sysdeps/sh/sh3/setjmp.S: Likewise.
30513         * sysdeps/sh/sh4/setjmp.S: Likewise.
30514         * sysdeps/unix/alpha/sysdep.h: Likewise.
30515         * sysdeps/unix/arm/sysdep.S: Likewise.
30516         * sysdeps/unix/i386/sysdep.S: Likewise.
30517         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30518         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
30519         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30520         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30521         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30522         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30523         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30524         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30525         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30526         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30527         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
30528         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30529         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30532         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30533         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30534         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30535         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30536         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30537         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30539         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30540         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30541         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30542         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30543         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30544         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30545         * sysdeps/x86_64/setjmp.S: Likewise.
30546
30547         * include/math.h: Use IS_IN instead of IS_IN_libm.
30548         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
30549         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30550         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
30551         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
30552         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30553         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
30554         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
30555         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30556         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30557         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
30558         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
30559         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
30560         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
30561         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
30562         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
30563         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
30564         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30565         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
30566         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30567         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
30568         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
30569         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
30570         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
30571         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
30572         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
30573         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
30574         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
30575         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30576         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30577         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
30578         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
30579         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
30580         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
30581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
30582         Likewise.
30583         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
30584         Likewise.
30585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
30586         Likewise.
30587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
30588         Likewise.
30589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
30590         Likewise.
30591         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
30592         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
30593         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
30594         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30595         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30596         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
30598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
30599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
30600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
30601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
30602         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
30603         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
30604         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
30605         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
30606         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30607         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
30608         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
30609         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30610         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
30611         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
30612         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
30613         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
30614         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
30615         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
30616         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
30617         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
30618
30619         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
30620         * nptl/pthreadP.h: Likewise.
30621         * nptl_db/structs.def: Likewise.
30622         * sysdeps/arm/sysdep.h: Likewise.
30623         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30624         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30625         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
30626         * sysdeps/unix/alpha/sysdep.h: Likewise.
30627         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30628         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30629         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30630         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30631         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30632         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30633         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30634         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30635         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30636         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30637         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30638         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30639         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30640         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30643         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30644         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30645         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30646         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30647         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30648         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30649         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30650         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30651         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
30652         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30653
30654         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
30655         * nptl/pthreadP.h: Likewise.
30656         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30657         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30658         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30659         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30660         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30661         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30662         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30663         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30664         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30665         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30666         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30667         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
30669         Likewise.
30670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
30671         Likewise.
30672         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30673         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30674         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30675         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30676         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30677         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30678         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30679         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30680
30681         * dlfcn/dladdr.c: Use IS_IN.
30682         * dlfcn/dladdr1.c: Likewise.
30683         * dlfcn/dlclose.c: Likewise.
30684         * dlfcn/dlerror.c: Likewise.
30685         * dlfcn/dlinfo.c: Likewise.
30686         * dlfcn/dlmopen.c: Likewise.
30687         * dlfcn/dlopen.c: Likewise.
30688         * dlfcn/dlsym.c: Likewise.
30689         * dlfcn/dlvsym.c: Likewise.
30690
30691         * include/ifaddrs.h: Use IS_IN.
30692         * inet/check_pf.c: Likewise.
30693         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
30694         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
30695
30696         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
30697         IS_IN_ldconfig.
30698         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
30699         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
30700
30701         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
30702         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
30703         IS_IN (libc).
30704
30705         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
30706
30707         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
30708         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30709         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30710         * include/libc-symbols.h (IS_IN_LIB): New macro.
30711         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
30712         * include/netdb.h: Likewise.
30713         * include/stap-probe.h: Remove all uses of IN_LIB.
30714
30715         * Makeconfig (module-cppflags-real): Define MODULE_NAME
30716         instead of IN_MODULE.
30717         * include/libc-symbols.h (IN_MODULE): Define using
30718         MODULE_NAME.
30719         (PASTE_NAME, PASTE_NAME1): New macros.
30720         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
30721         of IN_LIB.
30722         (STAP_PROBE_ASM): Likewise.
30723
30724 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30725
30726         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
30727         __mach_init in dlopened libc.
30728
30729 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
30730
30731         * sysdeps/arm/preconfigure.ac: Delete EABI check.
30732         * sysdeps/arm/preconfigure: Regenerate.
30733
30734 2014-11-21  Roland McGrath  <roland@hack.frob.com>
30735
30736         * nptl/pthread_create.c (__pthread_create_2_1): Set
30737         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
30738         when copying values from IATTR into PD.
30739
30740 2014-11-21  Will Newton  <will.newton@linaro.org>
30741             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30742
30743         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
30744         Refactor inline-asm.  Also add comment.
30745
30746         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
30747         ElfW macro instead of hardcoded Elf64 types.
30748         (la_aarch64_gnu_pltenter): Likewise.
30749         * sysdeps/aarch64/dl-machine.h
30750         (elf_machine_runtime_setup): Use ElfW(Addr).
30751
30752         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
30753         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
30754         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
30755         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
30756         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
30757         (R_AARCH64_TLS_DTPMOD64): Rename to ..
30758         (R_AARCH64_TLS_DTPMOD): This.
30759         (R_AARCH64_TLS_DTPREL64): Rename to ...
30760         (R_AARCH64_TLS_DTPREL): This.
30761         (R_AARCH64_TLS_TPREL64): Rename to ...
30762         (R_AARCH64_TLS_TPREL): This.
30763         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
30764         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
30765         R_AARCH64_TLS_TPREL64.
30766         (elf_machine_rela): Likewise.
30767
30768 2014-11-21  Torvald Riegel  <triegel@redhat.com>
30769
30770         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
30771         by setting it to 0.  64b atomics are not supported currently.
30772
30773 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30774
30775         [BZ #16469]
30776         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
30777         search domain names.
30778
30779 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30780
30781         [BZ #16469]
30782         * NEWS: Update.
30783         * resolv/res_query.c (__libc_res_nquerydomain): Retain
30784         trailing dot.
30785         * posix/tst-getaddrinfo5.c: New.
30786         * posix/Makefile (tests): Add it.
30787
30788 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30789
30790         [BZ #14498]
30791         * NEWS: Fixed.
30792         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
30793         after parsing line but before break_if_match.
30794         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
30795         if there is a protocol mismatch.
30796
30797 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
30798
30799         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
30800         because the potential race is on the user-supplied stream.
30801
30802 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30803
30804         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
30805         string literal if not passed a buffer.
30806         * manual/job.texi (ctermid): Update reasoning, note deviation
30807         from posix, suggest mtasurace when not passed a buffer, for
30808         future non-preliminary safety notes.
30809
30810 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30811
30812         * manual/users.texi (cuserid): Fix MT-Safety note for the case
30813         of not passing it a buffer.
30814         Reported by Peng Haitao.
30815
30816 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30817
30818         * manual/Makefile ($(objpfx)stamp-summary): Require
30819         check-safety.sh to pass.
30820         * manual/check-safety.sh: Wish for verification that every
30821         @deftypefn and @deftypefun is followed by a @safety remark.
30822
30823 2014-11-20  Roland McGrath  <roland@hack.frob.com>
30824
30825         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
30826
30827         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
30828         PTHREAD_CANCEL_ASYNCHRONOUS.
30829         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
30830         send SIGCANCEL.
30831
30832         * nptl/default-sched.h: New file.
30833         * sysdeps/unix/sysv/linux/default-sched.h: New file.
30834         * nptl/pthread_create.c: Include it.
30835         (__pthread_create_2_1): Use collect_default_sched instead of making
30836         Linux syscalls here directly.
30837
30838 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30839
30840         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
30841         __pthread_once): Use C11 atomics.
30842
30843 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30844
30845         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
30846
30847 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30848
30849         * include/atomic.h (__atomic_link_error, __atomic_check_size,
30850         atomic_thread_fence_acquire, atomic_thread_fence_release,
30851         atomic_thread_fence_seq_cst, atomic_load_relaxed,
30852         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
30853         atomic_compare_exchange_weak_relaxed,
30854         atomic_compare_exchange_weak_acquire,
30855         atomic_compare_exchange_weak_release,
30856         atomic_exchange_acquire, atomic_exchange_release,
30857         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
30858         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
30859         atomic_fetch_and_acquire,
30860         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
30861
30862 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30863
30864         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
30865         USE_ATOMIC_COMPILER_BUILTINS): Define.
30866         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
30867         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30868         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
30869         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30870         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
30871         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30872         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
30873         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30874         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
30875         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30876         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
30877         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30878         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
30879         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30880         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
30881         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30882         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30883         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30884         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30885         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30886         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
30887         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30888         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30889         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30890         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
30891         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30892         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30893         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30894         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
30895         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30896         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
30897         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30898         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
30899         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30900         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
30901         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30902         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
30903         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30904         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
30905         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30906
30907 2014-11-19  Roland McGrath  <roland@hack.frob.com>
30908
30909         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
30910         the sched_priority value here.  It was already checked when the user
30911         called pthread_attr_setschedparam.
30912
30913         * nptl/tst-bad-schedattr.c: New file.
30914         * nptl/Makefile (tests): Add it.
30915
30916 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
30917             Florian Weimer  <fweimer@redhat.com>
30918             Joseph Myers  <joseph@codesourcery.com>
30919             Adam Conrad  <adconrad@0c3.net>
30920             Andreas Schwab  <schwab@suse.de>
30921             Brooks  <bmoses@google.com>
30922
30923         [BZ #17625]
30924         * wordexp-test.c (__dso_handle): Add prototype.
30925         (__register_atfork): Likewise.
30926         (__app_register_atfork): New function.
30927         (registered_forks): New global.
30928         (register_fork): New function.
30929         (test_case): Add 3 new tests for WRDE_CMDSUB.
30930         (main): Call __app_register_atfork.
30931         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
30932         fork count is non-zero fail the test.
30933         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
30934         is set.
30935         (parse_dollars): Remove check for WRDE_NOCMD.
30936         (parse_dquote): Likewise.
30937
30938 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30939
30940         * Makeconfig (built-modules): List non-library modules to be
30941         built.
30942         (module-cppflags): Include libc-modules.h for
30943         everything except shlib-versions.v.i.
30944         (CPPFLAGS): Use it.
30945         (before-compile): Add libc-modules.h.
30946         ($(common-objpfx)libc-modules.h,
30947         $(common-objpfx)libc-modules.stmp): New targets.
30948         (common-generated): Add libc-modules.h and libc-modules.stmp.
30949         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
30950         * include/libc-symbols.h: Don't include libc-modules.h.
30951         * include/libc-modules.h: Remove file.
30952         * scripts/gen-libc-modules.awk: New script to generate
30953         libc-modules.h.
30954         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
30955         Depend on libc-modules.stmp.
30956
30957         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
30958
30959         * Makeconfig (in-module): Get value of libof set for the
30960         translation unit.
30961         (CPPFLAGS): Use $(in-module).
30962         * Makerules: Don't suffix routine names for nonlib.
30963         * include/libc-modules.h: New file.
30964         * include/libc-symbols.h: Include libc-modules.h
30965         (IS_IN): New macro to replace IS_IN_* macros.
30966         * elf/Makefile: Set libof-* for each routine.
30967         * elf/rtld-Rules: Likewise.
30968         * extra-modules.mk: Likewise.
30969         * iconv/Makefile: Likewise.
30970         * iconvdata/Makefile: Likewise.
30971         * locale/Makefile: Likewise.
30972         * malloc/Makefile: Likewise.
30973         * nss/Makefile: Likewise.
30974         * sysdeps/gnu/Makefile: Likewise.
30975         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
30976         * sysdeps/unix/sysv/linux/Makefile: Likewise.
30977         * sysdeps/s390/s390-64/Makefile: Likewise.
30978         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
30979         CPPFLAGS for nscd instead of nonlib.
30980
30981 2014-11-18  Roland McGrath  <roland@hack.frob.com>
30982
30983         * nptl/createthread.c: New file.
30984
30985         * nptl/createthread.c: Moved ...
30986         * sysdeps/unix/sysv/linux/createthread.c: ... here.
30987
30988         * nptl/createthread.c: Add proper top-line comment.
30989         (do_clone): Folded into ...
30990         (create_thread): ... here.  Take new arguments STOPPED_START and
30991         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
30992         increment __nptl_threads, do event-reporting logic, do
30993         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
30994         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
30995         resource cleanup if sched_setaffinity or sched_setscheduler fails,
30996         just send SIGCANCEL.
30997         * nptl/pthread_create.c: Forward-declare create_thread before
30998         including createthread.c.
30999         (start_thread): Use new macro START_THREAD_DEFN to replace defining
31000         declaration, and new macro START_THREAD_SELF to replace argument.
31001         Remove return statement.
31002         (report_thread_creation): New function.
31003         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
31004         synchronization logic, and __nptl_nthreads increment here, around
31005         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
31006         PD->parent_cancelhandling here, before create_thread.  When
31007         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
31008         __deallocate_stack, and ENOMEM translation here.
31009
31010 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
31011
31012         [BZ #17616]
31013         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
31014         (mptwo): Rename to __mptwo.
31015         (__inv): Use __mptwo instead of mptwo.
31016         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
31017         (mptwo): Rename to __mptwo.
31018         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
31019         of mpone and __mptwo instead of mptwo.
31020         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
31021         instead of mpone.
31022         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
31023         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
31024         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
31025         of mpone and __mptwo instead of mptwo.
31026         (__mpranred): Use __mpone instead of mpone.
31027         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
31028         variable.
31029         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31030         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31031         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31032         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31033         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31034         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31035         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31036         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31037         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31038         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31039         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31040         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31041         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31042         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31043         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31044         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31045         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31046         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31047         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31048
31049 2014-11-18  Tom de Vries  <tom@codesoucery.com>
31050
31051         * manual/signal.texi (Primitives Interrupted by Signals): In section,
31052         replace BSD Handler xref with BSD Signal Handling.
31053
31054 2014-11-17  Richard Henderson  <rth@redhat.com>
31055
31056         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
31057         (_FP_PACK_RAW_2): Remove.
31058         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
31059         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
31060         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
31061         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
31062         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
31063         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
31064         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
31065         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
31066         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
31067         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
31068         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
31069         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
31070         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
31071         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
31072         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
31073         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
31074
31075 2014-11-14  Roland McGrath  <roland@hack.frob.com>
31076
31077         * signal/signal.h [__USE_MISC]
31078         (struct sigvec): Remove type.
31079         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
31080         (sigvec): Remove declaration.
31081         * sysdeps/posix/sigvec.c: Moved ...
31082         * signal/sigvec.c: ... here, replacing old file.
31083         (struct sigvec): New type, copied from old signal.h definition.
31084         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
31085         (__sigvec): Convert definition to prototype.
31086         (sigvec): Replace weak_alias with compat_symbol.
31087         * signal/Versions (libc: GLIBC_2.21): New version set.
31088         * include/signal.h: Remove __sigvec declaration.
31089         * sysdeps/unix/bsd/sigvec.c: Remove file.
31090         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
31091         * manual/signal.texi (BSD Handler): Remove subsection.
31092         Move siginterrupt up to ...
31093         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
31094         (Blocking in BSD): Fold subsection into its parent.
31095         * NEWS: Mention sigvec removal.
31096
31097 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31098
31099         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
31100         (DLA_FMS): Make definition conditional only on [__FMA4__].
31101         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
31102         definition.
31103
31104         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
31105         Make definition conditional only on [PROF].
31106         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
31107         definition.
31108         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
31109         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
31110
31111         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
31112         !__GNUC__].
31113         * include/signal.h (__sigpause): Move declaration above call to
31114         libc_hidden_proto.
31115         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
31116         variable.
31117         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31118         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31119
31120 2014-11-14  David S. Miller  <davem@davemloft.net>
31121
31122         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
31123         Define before including <string/memcpy.c> and <string/mempcpy.c>.
31124
31125 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31126
31127         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
31128         * configure: Regenerated.
31129         * manual/install.texi (Tools for Compilation): Document a
31130         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
31131         compiler verified to work.
31132         * INSTALL: Regenerated.
31133
31134         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
31135         redeclare with asm name.
31136         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
31137         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
31138         including <string.h>.
31139         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31140         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
31141         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31142         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
31143         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31144         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31145         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31146
31147 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
31148
31149         * stdlib/strtol.c (__strtol): Use prototype definition.
31150
31151         [BZ #17594]
31152         * stdlib/strtol.c (SYM__): New macro.
31153         (SYM__1): Likewise.
31154         (__strtol): Likewise.
31155         (strtol): Rename to __strtol and define as weak alias of
31156         __strtol.  Use libc_hidden_weak.
31157
31158 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31159
31160         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
31161         Use numbered labels in inline assembly.
31162
31163 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31164
31165         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
31166         Add setjmp LIBC_PROBE.
31167         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
31168         Likewise.
31169         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
31170         Add longjmp, longjmp_target LIBC_PROBE.
31171         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
31172         Likewise.
31173
31174 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31175
31176         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
31177         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
31178         to get rid of unused variable warning.
31179
31180 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31181
31182         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
31183         Check for unwind_backtrace ==  NULL only in SHARED case.
31184         (__backchain_backtrace): Compile only in SHARED case.
31185         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
31186         Likewise.
31187         (__backchain_backtrace): Declare as static.
31188
31189 2014-11-12  Roland McGrath  <roland@hack.frob.com>
31190
31191         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
31192         (__libc_multiple_threads_ptr): Variable moved ...
31193         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
31194
31195 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
31196
31197         * conform/GlibcConform.pm: New file.
31198         * conform/conformtest.pl: Use GlibcConform module.
31199         * conform/linknamespace.pl: New file.
31200         * conform/list-header-symbols.pl: Likewise.
31201         * conform/Makefile (linknamespace-symlists-base): New variable.
31202         (linknamespace-symlists-tests): Likewise.
31203         (linknamespace-header-base): Likewise.
31204         (linknamespace-header-tests): Likewise.
31205         (tests-special): Add new tests.
31206         ($(linknamespace-symlists-tests)): New rule.
31207         (linknamespace-libs): New variable.
31208         ($(objpfx)symlist-stdlibs): New rule.
31209         ($(linknamespace-header-tests)): Likewise.
31210         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
31211         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
31212         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
31213         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
31214         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
31215         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
31216         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
31217         (test-xfail-ISO/math.h/linknamespace): Likewise.
31218         (test-xfail-ISO/signal.h/linknamespace): Likewise.
31219         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
31220         (test-xfail-ISO/time.h/linknamespace): Likewise.
31221         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31222         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
31223         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31224         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31225         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
31226         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31227         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31228         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
31229         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31230         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31231         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
31232         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31233         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
31234         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
31235         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
31236         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31237         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
31238         (test-xfail-XPG3/search.h/linknamespace): Likewise.
31239         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
31240         (test-xfail-XPG3/time.h/linknamespace): Likewise.
31241         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
31242         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
31243         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
31244         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
31245         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31246         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
31247         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
31248         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
31249         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31250         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
31251         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
31252         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
31253         (test-xfail-XPG4/search.h/linknamespace): Likewise.
31254         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31255         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
31256         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
31257         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
31258         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
31259         (test-xfail-XPG4/time.h/linknamespace): Likewise.
31260         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
31261         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
31262         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
31263         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31264         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31265         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31266         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
31267         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
31268         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
31269         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
31270         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
31271         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
31272         (test-xfail-POSIX/time.h/linknamespace): Likewise.
31273         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
31274         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31275         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
31276         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
31277         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
31278         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31279         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31280         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
31281         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
31282         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31283         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
31284         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
31285         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
31286         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
31287         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
31288         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
31289         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
31290         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
31291         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31292         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
31293         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
31294         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
31295         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
31296         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
31297         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
31298         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
31299         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31300         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
31301         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31302         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
31303         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
31304         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31305         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31306         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
31307         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
31308         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31309         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
31310         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
31311         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
31312         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
31313         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
31314         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31315         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
31316         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
31317         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
31318         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
31319         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
31320         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
31321         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
31322         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31323         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
31324         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31325         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
31326         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31327         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31328         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31329         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
31330         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31331         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
31332         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
31333         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
31334         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
31335         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31336         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
31337         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
31338         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
31339         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
31340         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31341         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
31342         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
31343         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
31344         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
31345         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31346         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
31347         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
31348         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
31349         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31350         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
31351         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
31352         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
31353         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
31354         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
31355         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31356         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
31357         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
31358         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
31359         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
31360         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
31361         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31362         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
31363         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
31364         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
31365         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
31366         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
31367         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
31368         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31369         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
31370         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31371
31372         [BZ #17589]
31373         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
31374         of fgets_unlocked.
31375
31376         [BZ #17585]
31377         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
31378         (memmem): Rename to __memmem and define as weak alias of
31379         __memmem.  Use libc_hidden_weak.
31380         (__memmem): Use libc_hidden_def.
31381         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
31382         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
31383         memmem.
31384
31385         [BZ #17582]
31386         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
31387         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
31388         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
31389         and define as weak alias of __fgets_unlocked.  Use
31390         libc_hidden_weak.
31391         (__fgets_unlocked): Use libc_hidden_def.
31392         * include/stdio.h (__fgets_unlocked): Declare.  Use
31393         libc_hidden_proto.
31394         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
31395         __fgets_unlocked instead of fgets_unlocked.
31396         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
31397         (GET_NPROCS_CONF_PARSER): Likewise.
31398         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
31399         (GET_NPROCS_CONF_PARSER): Likewise.
31400
31401         [BZ #17574]
31402         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
31403         weak alias of __wmemset.  Use libc_hidden_weak.
31404         (__wmemset): Use libc_hidden_def.
31405         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
31406         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
31407         of wmemset.
31408
31409         [BZ #17573]
31410         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
31411         with asm name __mempcpy.
31412         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
31413
31414         [BZ #17572]
31415         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
31416         and define as weak alias of __rawmemchr.
31417         (__rawmemchr): Do not define as strong alias of rawmemchr.
31418
31419         [BZ #17571]
31420         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
31421         alias of __qsort_r.
31422         (qsort): Call __qsort_r instead of qsort_r.
31423         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
31424         (__qsort_r): Declare.  Call libc_hidden_proto.
31425         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
31426         instead of qsort_r.
31427         * nscd/gai.c (__qsort_r): Define to qsort_r.
31428         * posix/tst-rfc3484.c (__qsort_r): Likewise.
31429         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
31430         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
31431
31432         [BZ #17570]
31433         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
31434         define as weak alias of __malloc_info.
31435
31436         [BZ #17584]
31437         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
31438         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31439         (__rewinddir): Use libc_hidden_def.
31440         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
31441         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31442         (__rewinddir): Use libc_hidden_def.
31443         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
31444         weak alias of __rewinddir.  Don't use libc_hidden_def.
31445         (__rewinddir): Use libc_hidden_def.
31446         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
31447         (__rewinddir): Use libc_hidden_proto.
31448         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
31449         rewinddir.
31450         (__getcwd): Use __rewinddir instead of rewinddir.
31451
31452         [BZ #17583]
31453         * libio/fileno.c (fileno): Rename to __fileno and define as weak
31454         alias of __fileno.  Use libc_hidden_weak.
31455         (__fileno): Use libc_hidden_def.
31456         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
31457         * libio/ftello.c (ftello): Rename to __ftello and define as weak
31458         alias of __ftello.
31459         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
31460         __ftello.
31461         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
31462         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
31463         libc_hidden_def.
31464         (fread_unlocked): Don't use libc_hidden_ver.
31465         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
31466         and define as weak alias of __fread_unlocked.  Don't use
31467         libc_hidden_def.
31468         (__fread_unlocked): Use libc_hidden_def.
31469         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
31470         (ftello): Don't use libc_hidden_proto.
31471         (__ftello): Declare.  Use libc_hidden_proto.
31472         (fread_unlocked): Don't use libc_hidden_proto.
31473         (__fread_unlocked): Declare.  Use libc_hidden_proto.
31474         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
31475         and __ftello instead of fileno, fread_unlocked and ftello.
31476
31477 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
31478
31479         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
31480         GOT12.
31481         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
31482         Likewise.
31483         (_dl_start_user): Likewise.
31484         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
31485
31486 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
31487             Siddhesh Poyarekar  <siddhesh@redhat.com>
31488
31489         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
31490         Move argv and envp down instead of moving argc up.
31491         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
31492
31493 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
31494
31495         [BZ #17506]
31496         * test-skeleton.c (main): Return successful if one of
31497         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
31498         * string/tst-strcoll-overflow.c: Define expected status.
31499
31500 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
31501
31502         [BZ #17475]
31503         * locale/iso-639.def: Define Bhili and Tulu language codes.
31504
31505 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
31506
31507         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
31508
31509 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
31510
31511         [BZ #17555]
31512         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
31513
31514 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
31515
31516         * configure.ac: Updated check of minimal required version to
31517         2.22.
31518         * manual/install.texi (Tools for Compilation): Updated version
31519         number.
31520         * configure: Regenerated.
31521         * INSTALL: Likewise.
31522
31523 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
31524
31525         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
31526         __tls_get_addr.
31527
31528 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
31529
31530         * include/sys/wait.h (__libc_waitpid): Remove declaration.
31531         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
31532         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31533         libc_hidden_weak.
31534         (waitpid): Define as alias of __waitpid.
31535         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
31536         __waitpid.
31537         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31538         libc_hidden_weak.
31539         (waitpid): Define as alias of __waitpid.
31540         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
31541         __libc_waitpid alias.
31542         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
31543         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
31544         Likewise.
31545         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
31546         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
31547         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
31548         alias.
31549         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
31550         __waitpid.
31551         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31552         libc_hidden_weak.
31553         (waitpid): Define as alias of __waitpid.
31554
31555 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
31556
31557         * manual/llio.texi: Add comment that write safety has been
31558         fixed in Linux.
31559
31560         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
31561         (localplt-build-dso): Add elf/ld.so.
31562         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
31563         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
31564         and free for ld.so.
31565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
31566         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
31567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
31568         Likewise.
31569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
31570         Likewise.
31571         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
31572         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
31573         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
31574         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
31575         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
31576         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
31577         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
31578         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
31579         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
31580         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
31581         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31582
31583 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
31584
31585         [BZ #14132]
31586         * include/libc-symbols.h (INTUSE): Remove macro.
31587         (INTDEF): Likewise.
31588         (INTVARDEF): Likewise.
31589         (_INTVARDEF): Likewise.
31590         (INTDEF2): Likewise.
31591         (INTVARDEF2): Likewise.
31592         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
31593         rtld_hidden_def instead of INTVARDEF.
31594         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
31595         (_dl_starting_up_internal): Remove declaration.
31596         (_dl_starting_up): Use rtld_hidden_proto.
31597         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
31598         declaration.
31599         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
31600         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
31601         _dl_starting_up.
31602         * elf/dl-writev.h (_dl_writev): Likewise.
31603         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
31604         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
31605         _dl_starting_up_internal.
31606
31607 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31608
31609         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
31610         test-skeleton.c.
31611
31612 2014-11-05  Will Newton  <will.newton@linaro.org>
31613
31614         * benchtests/Makefile: (bench-malloc): Add malloc thread
31615         scalability benchmark.
31616         * benchtests/bench-malloc-threads.c: New file.
31617
31618 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
31619
31620         * sysdeps/aarch64/strchrnul.S: New file.
31621
31622 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31623
31624         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
31625         definition.
31626         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
31627         Likwise.
31628         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
31629         Likewise.
31630         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
31631         Likewise.
31632         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
31633         Likewise.
31634         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
31635         Likewise.
31636
31637 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
31638
31639         * catgets/test-gencat.c: Use test-skeleton.c.
31640         * catgets/tst-catgets.c: Likewise.
31641         * csu/tst-empty.c: Likewise.
31642         * elf/tst-audit2.c: Likewise.
31643         * elf/tst-global1.c: Likewise.
31644         * elf/tst-pathopt.c: Likewise.
31645         * elf/tst-piemod1.c: Likewise.
31646         * elf/tst-tls10.c: Likewise.
31647         * elf/tst-tls11.c: Likewise.
31648         * elf/tst-tls12.c: Likewise.
31649         * gnulib/tst-gcc.c: Likewise.
31650         * iconvdata/tst-e2big.c: Likewise.
31651         * iconvdata/tst-loading.c: Likewise.
31652         * iconv/tst-iconv1.c: Likewise.
31653         * iconv/tst-iconv2.c: Likewise.
31654         * inet/test-inet6_opt.c: Likewise.
31655         * inet/tst-gethnm.c: Likewise.
31656         * inet/tst-network.c: Likewise.
31657         * inet/tst-ntoa.c: Likewise.
31658         * intl/tst-codeset.c: Likewise.
31659         * intl/tst-gettext2.c: Likewise.
31660         * intl/tst-gettext3.c: Likewise.
31661         * intl/tst-ngettext.c: Likewise.
31662         * intl/tst-translit.c: Likewise.
31663         * io/test-stat.c: Likewise.
31664         * libio/test-fmemopen.c: Likewise.
31665         * libio/tst-freopen.c: Likewise.
31666         * libio/tst-sscanf.c: Likewise.
31667         * libio/tst-ungetwc1.c: Likewise.
31668         * libio/tst-ungetwc2.c: Likewise.
31669         * libio/tst-widetext.c: Likewise.
31670         * localedata/tst-ctype.c: Likewise.
31671         * localedata/tst-digits.c: Likewise.
31672         * localedata/tst-leaks.c: Likewise.
31673         * localedata/tst-mbswcs1.c: Likewise.
31674         * localedata/tst-mbswcs2.c: Likewise.
31675         * localedata/tst-mbswcs3.c: Likewise.
31676         * localedata/tst-mbswcs4.c: Likewise.
31677         * localedata/tst-mbswcs5.c: Likewise.
31678         * localedata/tst-setlocale.c: Likewise.
31679         * localedata/tst-trans.c: Likewise.
31680         * localedata/tst-wctype.c: Likewise.
31681         * localedata/tst-xlocale1.c: Likewise.
31682         * login/tst-grantpt.c: Likewise.
31683         * malloc/tst-calloc.c: Likewise.
31684         * malloc/tst-malloc.c: Likewise.
31685         * malloc/tst-mallocstate.c: Likewise.
31686         * malloc/tst-mcheck.c: Likewise.
31687         * malloc/tst-mtrace.c: Likewise.
31688         * malloc/tst-obstack.c: Likewise.
31689         * math/atest-exp2.c: Likewise.
31690         * math/atest-exp.c: Likewise.
31691         * math/atest-sincos.c: Likewise.
31692         * math/test-matherr.c: Likewise.
31693         * math/test-misc.c: Likewise.
31694         * math/test-powl.c: Likewise.
31695         * math/tst-definitions.c: Likewise.
31696         * misc/tst-dirname.c: Likewise.
31697         * misc/tst-efgcvt.c: Likewise.
31698         * misc/tst-fdset.c: Likewise.
31699         * misc/tst-hsearch.c: Likewise.
31700         * misc/tst-mntent2.c: Likewise.
31701         * nptl/tst-sem7.c: Likewise.
31702         * nptl/tst-sem8.c: Likewise.
31703         * nptl/tst-sem9.c: Likewise.
31704         * nss/test-netdb.c: Likewise.
31705         * posix/tst-fnmatch.c: Likewise.
31706         * posix/tst-getlogin.c: Likewise.
31707         * posix/tst-gnuglob.c: Likewise.
31708         * posix/tst-mmap.c: Likewise.
31709         * pwd/tst-getpw.c: Likewise.
31710         * resolv/tst-inet_ntop.c: Likewise.
31711         * rt/tst-timer.c: Likewise.
31712         * stdio-common/test-fseek.c: Likewise.
31713         * stdio-common/test-popen.c: Likewise.
31714         * stdio-common/test-vfprintf.c: Likewise.
31715         * stdio-common/tst-cookie.c: Likewise.
31716         * stdio-common/tst-fileno.c: Likewise.
31717         * stdio-common/tst-gets.c: Likewise.
31718         * stdio-common/tst-obprintf.c: Likewise.
31719         * stdio-common/tst-perror.c: Likewise.
31720         * stdio-common/tst-sprintf2.c: Likewise.
31721         * stdio-common/tst-sprintf3.c: Likewise.
31722         * stdio-common/tst-sprintf.c: Likewise.
31723         * stdio-common/tst-swprintf.c: Likewise.
31724         * stdio-common/tst-tmpnam.c: Likewise.
31725         * stdio-common/tst-unbputc.c: Likewise.
31726         * stdio-common/tst-wc-printf.c: Likewise.
31727         * stdlib/tst-environ.c: Likewise.
31728         * stdlib/tst-fmtmsg.c: Likewise.
31729         * stdlib/tst-limits.c: Likewise.
31730         * stdlib/tst-rand48-2.c: Likewise.
31731         * stdlib/tst-rand48.c: Likewise.
31732         * stdlib/tst-random2.c: Likewise.
31733         * stdlib/tst-random.c: Likewise.
31734         * stdlib/tst-strtol.c: Likewise.
31735         * stdlib/tst-strtoll.c: Likewise.
31736         * stdlib/tst-tls-atexit.c: Likewise.
31737         * stdlib/tst-xpg-basename.c: Likewise.
31738         * string/test-ffs.c: Likewise.
31739         * string/tst-bswap.c: Likewise.
31740         * string/tst-inlcall.c: Likewise.
31741         * string/tst-strtok.c: Likewise.
31742         * string/tst-strxfrm.c: Likewise.
31743         * sysdeps/x86_64/tst-audit10.c: Likewise.
31744         * sysdeps/x86_64/tst-audit3.c: Likewise.
31745         * sysdeps/x86_64/tst-audit4.c: Likewise.
31746         * sysdeps/x86_64/tst-audit5.c: Likewise.
31747         * time/tst-ftime_l.c: Likewise.
31748         * time/tst-getdate.c: Likewise.
31749         * time/tst-mktime3.c: Likewise.
31750         * time/tst-mktime.c: Likewise.
31751         * time/tst-posixtz.c: Likewise.
31752         * time/tst-strptime2.c: Likewise.
31753         * time/tst-strptime3.c: Likewise.
31754         * wcsmbs/tst-btowc.c: Likewise.
31755         * wcsmbs/tst-mbrtowc.c: Likewise.
31756         * wcsmbs/tst-mbsrtowcs.c: Likewise.
31757         * wcsmbs/tst-wchar-h.c: Likewise.
31758         * wcsmbs/tst-wcpncpy.c: Likewise.
31759         * wcsmbs/tst-wcrtomb.c: Likewise.
31760         * wcsmbs/tst-wcsnlen.c: Likewise.
31761         * wcsmbs/tst-wcstof.c: Likewise.
31762
31763 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
31764
31765         [BZ #14132]
31766         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
31767         INTDEF.
31768         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
31769         declaration.
31770         (_dl_mcount): Use rtld_hidden_proto.
31771         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
31772         _dl_mcount.
31773         * elf/rtld.c (_rtld_global_ro): Likewise.
31774
31775         [BZ #14132]
31776         * elf/dl-init.c (_dl_init): Don't use INTDEF.
31777         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
31778         of _dl_init_internal.
31779         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
31780         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
31781         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
31782         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
31783         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
31784         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
31785         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
31786         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
31787         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
31788         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
31789         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
31790         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
31791         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
31792         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
31793         * sysdeps/tile/dl-start.S (_start): Likewise.
31794         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
31795         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
31796
31797         [BZ #14132]
31798         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
31799         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
31800         (rtld_progname): Make macro definition unconditional.
31801         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
31802         INTDEF.
31803         (dlmopen_doit): Do not use INTUSE with _dl_argv.
31804         (dl_main): Likewise.
31805         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
31806         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
31807         instead of _dl_argv_internal.
31808         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31809         __GI__dl_argv instead of INTUSE(_dl_argv).
31810         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
31811         __GI__dl_argv instead of _dl_argv_internal.
31812
31813         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
31814         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
31815         macro.
31816         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
31817         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
31818         New macro.
31819         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
31820         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
31821         macro.
31822         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
31823         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
31824
31825 2014-11-04  Andreas Schwab  <schwab@suse.de>
31826
31827         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
31828
31829 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31830
31831         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
31832         mtvsrd instruction in binary form.
31833
31834 2014-11-03  Andreas Schwab  <schwab@suse.de>
31835
31836         [BZ #17522]
31837         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
31838         for less than MB_LEN_MAX use a local buffer of that size.
31839         * libio/tst-fputws.c: New file.
31840         * libio/Makefile (tests): Add tst-fputws.
31841
31842 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
31843
31844         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
31845         the size of the fpu_fr.fpu_dregs[] array.
31846
31847 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
31848
31849         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
31850         (__nanosleep): Do not define as alias.
31851         (nanosleep): Define as alias of __nanosleep.
31852         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
31853         __libc_nanosleep name.
31854
31855 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31856
31857         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
31858         install.texi in comment.
31859
31860 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31861
31862         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
31863         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
31864         ... add here and use lwsync or sync ...
31865         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
31866         ... and add here using lwsync.
31867
31868 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
31869
31870         * elf/dl-machine-reject-phdr.h: New file.
31871         * elf/dl-load.c: #include that.
31872         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
31873         if that returned true.
31874
31875 2014-10-31  Roland McGrath  <roland@hack.frob.com>
31876
31877         [BZ #17496]
31878         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
31879         gen-as-const-headers chunk.  Add a big scare comment after the last
31880         safe place to touch before-compile.
31881
31882 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31883
31884         * manual/install.texi (Tools for Compilation): Update autoconf
31885         version requirements.
31886         * INSTALL: Regenerated.
31887
31888         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
31889         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
31890         (__libc_pselect): Likewise.
31891
31892         [BZ #14138]
31893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
31894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31897
31898 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31899
31900         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
31901         correct barrier instruction.
31902         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
31903         Likewise.
31904         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
31905         Likewise.
31906
31907 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31908
31909         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
31910         after defining inlines.  Instead, just use parens to defeat macro
31911         expansion of __isctype in its declaration.
31912
31913 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31914
31915         * include/sys/uio.h (__libc_readv): Remove declaration.
31916         (__libc_writev): Likewise.
31917         * misc/readv.c (__libc_readv): Rename to __readv.
31918         (__readv): Do not define as alias.
31919         (readv): Define as alias of __readv.
31920         * misc/writev.c (__libc_writev): Rename to __writev.
31921         (__writev): Do not define as alias.
31922         (writev): Define as alias of __writev.
31923         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
31924         (__readv): Do not define as alias.
31925         (readv): Define unconditionally as alias of __readv.
31926         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
31927         (__writev): Do not define as alias.
31928         (writev): Define unconditionally as alias of __writev.
31929         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
31930         name.
31931         (writev): Do not define __libc_writev name.
31932
31933 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31934
31935         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
31936         (convert_charseq): New function, broken out of ...
31937         (use_from_charmap): ... here.  Call it.
31938         (use_to_charmap): Use convert_charseq and free instead of duplicating
31939         its code with a variable-length stack struct.
31940
31941 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31942
31943         * include/fcntl.h (__libc_creat): Remove declaration.
31944         * io/creat.c (__libc_creat): Rename to creat.
31945         (creat): Do not define as alias.
31946         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
31947         of creat instead of __libc_creat.
31948         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
31949         to creat.
31950         (creat): Do not define as alias.
31951         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
31952         __libc_creat.
31953         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
31954         __libc_creat name.
31955         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
31956         Likewise.
31957
31958 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
31959
31960         * manual/llio.texi: Add comments discussing why write() may be
31961         considered MT-unsafe on Linux.
31962
31963 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
31964
31965         * dl-load.c (local_strdup): Remove.
31966         (expand_dynamic_string_token): Use __strdup.
31967         (decompose_rpath): Likewise.
31968         (_dl_map_object): Likewise.
31969
31970 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
31971
31972         [BZ #14132]
31973         * sysdeps/generic/unwind-dw2-fde.c
31974         (__register_frame_info_bases_internal): Do not declare.
31975         (__register_frame_info_table_bases_internal): Likewise.
31976         (__deregister_frame_info_bases_internal): Likewise.
31977         (__register_frame_info_bases): Declare and use hidden_proto before
31978         definition.  Use hidden_def instead of INTDEF.
31979         (__register_frame_info_table_bases): Likewise.
31980         (__deregister_frame_info_bases): Likewise.
31981         (__register_frame_info): Do not use INTUSE.
31982         (__register_frame): Likewise.
31983         (__register_frame_info_table): Likewise.
31984         (__register_frame_table): Likewise.
31985         (__deregister_frame_info): Likewise.
31986         (__deregister_frame): Likewise.
31987
31988 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
31989
31990         * sysdeps/unix/sysv/linux/arm/kernel-features.h
31991         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
31992         not undefine.
31993         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
31994         Likewise.
31995         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
31996         Likewise.
31997
31998 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
31999
32000         [BZ #14138]
32001         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
32002         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
32003         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
32004         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
32005         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
32006         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
32007         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
32008         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
32009         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
32010         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
32011         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
32012         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
32013         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
32014         syscall.
32015         (setfsuid): Likewise.
32016         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
32017         (setfsuid): Likewise.
32018         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
32019         (setfsuid): Likewise.
32020         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
32021         Likewise.
32022         (setfsuid): Likewise.
32023         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
32024         (setfsuid): Likewise.
32025         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
32026         Likewise.
32027         (setfsuid): Likewise.
32028
32029 2014-10-27  Andreas Schwab  <schwab@suse.de>
32030
32031         [BZ #17501]
32032         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
32033         check for Slow_SSE4_2 feature bit.
32034         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
32035         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
32036         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
32037         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
32038
32039 2014-10-24  Roland McGrath  <roland@hack.frob.com>
32040
32041         * configure.ac: Validate compiler version with a empirical test of
32042         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
32043         $CC -v output.
32044         * configure: Regenerated.
32045
32046         * inet/htons.c (htons): Prototypify.
32047         * inet/htonl.c (htonl): Likewise.
32048
32049 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32050
32051         * string/strncat.c (strncat): Improve performance by using strlen.
32052
32053 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32054
32055         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
32056
32057 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32058
32059         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
32060         Call libc_fetestexcept_aarch64.
32061
32062 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32063
32064         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
32065         Call libc_feholdexcept_aarch64.
32066
32067 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32068
32069         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
32070         Call get_rounding_mode.
32071
32072 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32073
32074         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
32075         Simplify logic.
32076
32077 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32078
32079         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
32080         Simplify logic.
32081
32082 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
32083
32084         [BZ #14138]
32085         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
32086         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
32087         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
32088         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
32089         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
32090         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
32091         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
32092         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
32093         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
32094         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
32095         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
32096         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
32097         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
32098         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
32099         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
32100         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
32101         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
32102         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
32103         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
32104         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
32105         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
32106         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
32107         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
32108         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
32109         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
32110         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
32111         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
32112         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
32113         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
32114         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
32115         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
32116         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
32117         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
32118         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
32119         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
32120         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
32121         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
32122         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
32123         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
32124         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
32125         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
32126         syscall.
32127         (geteuid): Likewise.
32128         (getgid): Likewise.
32129         (getuid): Likewise.
32130         (getresgid): Likewise.
32131         (getresuid): Likewise.
32132         (getgroups): Likewise.
32133         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
32134         (geteuid): Likewise.
32135         (getgid): Likewise.
32136         (getuid): Likewise.
32137         (getresgid): Likewise.
32138         (getresuid): Likewise.
32139         (getgroups): Likewise.
32140         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
32141         (geteuid): Likewise.
32142         (getgid): Likewise.
32143         (getuid): Likewise.
32144         (getresgid): Likewise.
32145         (getresuid): Likewise.
32146         (getgroups): Likewise.
32147         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
32148         Likewise.
32149         (geteuid): Likewise.
32150         (getgid): Likewise.
32151         (getuid): Likewise.
32152         (getresgid): Likewise.
32153         (getresuid): Likewise.
32154         (getgroups): Likewise.
32155         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
32156         (geteuid): Likewise.
32157         (getgid): Likewise.
32158         (getuid): Likewise.
32159         (getresgid): Likewise.
32160         (getresuid): Likewise.
32161         (getgroups): Likewise.
32162         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
32163         Likewise.
32164         (geteuid): Likewise.
32165         (getgid): Likewise.
32166         (getuid): Likewise.
32167         (getgroups): Likewise.
32168
32169         [BZ #14138]
32170         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
32171         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
32172         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
32173         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
32174         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
32175         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
32176         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
32177         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
32178         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
32179         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
32180         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
32181         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
32182         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
32183         __chown.
32184         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
32185         (lchown): Likewise.
32186         (fchown): Likewise.
32187         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
32188         Likewise.
32189         (lchown): Likewise.
32190         (fchown): Likewise.
32191         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
32192         (lchown): Likewise.
32193         (fchown): Likewise.
32194         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
32195         Likewise.
32196         (lchown): Likewise.
32197         (fchown): Likewise.
32198
32199 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32200
32201         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
32202         Simplify logic.
32203
32204 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32205
32206         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32207         Cleanup logic.
32208
32209 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32210
32211         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32212         Remove unused include.
32213
32214 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32215
32216         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
32217         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
32218         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
32219         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
32220
32221 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
32222             Helge Deller <deller@gmx.de>
32223
32224         [BZ #17508]
32225         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
32226         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
32227         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
32228
32229 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
32230
32231         [BZ #14132]
32232         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
32233         Remove macro definition.
32234         (__ashrdi3_v_glibc20): Likewise.
32235         (__lshrdi3_v_glibc20): Likewise.
32236         (__cmpdi2_v_glibc20): Likewise.
32237         (__ucmpdi2_v_glibc20): Likewise.
32238         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
32239         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
32240         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
32241         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
32242         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
32243         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
32244
32245 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32246
32247         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
32248         old GNU extension [0] syntax.
32249         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
32250         alloca rather than an array member with variable length.
32251         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
32252         * nscd/nscd.c (invalidate_db): New function, broken out of ...
32253         (parse_opt): ... here.  Likewise use alloca there.
32254         Validate the -i argument before checking for rootness.
32255         (send_shutdown): New function, broken out of ...
32256         (parse_opt): ... here.
32257
32258 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32259
32260         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
32261         macro to get at the _rt_local_ro field.
32262         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
32263         ([PIC] case) or _dl_hwcap ([!PIC] case).
32264         * sysdeps/arm/setjmp.S: Likewise.
32265
32266         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
32267         * sysdeps/arm/configure.ac: New check to define it.
32268         * sysdeps/arm/configure: Regenerated.
32269         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
32270         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
32271         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
32272         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
32273         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
32274         Use move/movt pair instead of a load.
32275         (LDST_GLOBAL): Macro removed.
32276         (LDR_GLOBAL): New macro replaces it.
32277         (LDR_HIDDEN): New macro.
32278         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
32279         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
32280
32281         * setjmp/tst-setjmp-static.c: New file.
32282         * setjmp/Makefile (tests): Add it.
32283         (tests-static): New variable.
32284
32285 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
32286
32287         [BZ #17485]
32288         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
32289
32290 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
32291
32292         [BZ #14132]
32293         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
32294
32295 2014-10-21  Roland McGrath  <roland@hack.frob.com>
32296
32297         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
32298
32299 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32300
32301         * io/fts.c (dirent_not_directory): New function.
32302         (fts_build): Call it.
32303
32304 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32305
32306         * nptl/version.c (__nptl_main): Use normal __write rather than
32307         INTERNAL_SYSCALL.
32308         (banner): Update copyright years.
32309
32310         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
32311         gettimeofday.
32312         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
32313         * nptl/pthread_cond_timedwait.c: Likewise.
32314         * nptl/pthread_mutex_timedlock.c: Likewise.
32315         * nptl/sem_timedwait.c: Likewise.
32316
32317         * sysdeps/nptl/bits/libc-lock.h
32318         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
32319         (__libc_lock_init_recursive): Return void, not 0.
32320         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
32321         (__libc_rwlock_init): Likewise.
32322         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
32323
32324 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32325
32326         [BZ #15215]
32327         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
32328         (__pthread_once_slow): ... here.
32329         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
32330         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
32331
32332 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32333
32334         [BZ #15215]
32335         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
32336         __PTHREAD_ONCE_FORK_GEN_INCR): New.
32337         * sysdeps/nptl/fork.c (__libc_fork): Use them.
32338         * nptl/pthread_once.c (__pthread_once): Likewise.
32339         Update comments.
32340
32341 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
32342
32343         [BZ #14138]
32344         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
32345         name.
32346         (writev): Use __libc_writev as strong name.
32347         * sysdeps/unix/sysv/linux/readv.c: Remove file.
32348         * sysdeps/unix/sysv/linux/writev.c: Likewise.
32349
32350 2014-10-17  Roland McGrath  <roland@hack.frob.com>
32351
32352         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
32353
32354         * sysdeps/i386/nptl/tls.h
32355         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
32356         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
32357         New macros.
32358         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
32359         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
32360         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
32361         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
32362         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
32363         Call CHECK_THREAD_SYSINFO instead of doing an assert.
32364
32365         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32366         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
32367         on [__NR_futex].
32368         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
32369         broken out of ...
32370         (__pthread_mutex_init): ... here.  Call it.
32371         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
32372         Conditionalize PI cases on [__NR_futex].
32373         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
32374         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
32375         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
32376
32377         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
32378         conditional on [SIGSETXID].
32379         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
32380         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
32381         is defined.  Likewise for SIGSETXID.
32382         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
32383         Conditionalize definitions on [SIGSETXID].
32384         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
32385         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
32386         unblocking on [SIGCANCEL].
32387
32388         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
32389         [__NR_set_robust_list].
32390
32391 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
32392
32393         * string/strcoll_l.c (get_next_seq): Fix up formatting.
32394         (do_compare): Likewise.
32395
32396 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
32397
32398         [BZ #15884]
32399         * string/strcoll_l.c: Don't include stdio.h.
32400         (coll_seq): Remove members idxarr and rulearr.
32401         (get_next_seq_cached): Remove function.
32402         (get_next_seq): Likewise.
32403         (get_next_seq_nocache): Rename to get_next_seq.
32404         (do_compare): Remove function.
32405         (do_compare_nocache): Rename to do_compare.
32406         (STRCOLL): Remove weight and rules cache.
32407
32408 2014-10-16  Roland McGrath  <roland@hack.frob.com>
32409
32410         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
32411         * sysdeps/arm/sfp-machine.h: ... to here.
32412         * sysdeps/arm/Implies: Remove arm/soft-fp.
32413
32414 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
32415
32416         * conform/data/sys/utsname.h-data (*_t): Allow.
32417         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
32418         [POSIX] (WEXITED): Do not expect constant.
32419         [POSIX] (WSTOPPED): Likewise.
32420         [POSIX] (WNOHANG): Likewise.
32421         [POSIX] (WNOWAIT): Likewise.
32422         [POSIX] (siginfo_t): Do not expect type or elements.
32423         [POSIX] (pid_t): Do not expect type.
32424         [POSIX] (signal.h): Do not allow header.
32425         [POSIX] (sys/resource.h): Likewise.
32426         [POSIX] (si_*): Do not allow pattern.
32427         [POSIX] (W*): Likewise.
32428         [POSIX] (P_*): Likewise.
32429         [POSIX] (BUS_*): Likewise.
32430         [POSIX] (CLD_*): Likewise.
32431         [POSIX] (FPE_*): Likewise.
32432         [POSIX] (ILL_*): Likewise.
32433         [POSIX] (POLL_*): Likewise.
32434         [POSIX] (SEGV_*): Likewise.
32435         [POSIX] (SI_*): Likewise.
32436         [POSIX] (TRAP_*): Likewise.
32437         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
32438         variable.
32439
32440 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
32441
32442         [BZ #12926]
32443         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
32444         infinite loop when __recvmsg returns 0.
32445
32446 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
32447
32448         * CANCEL-FCT-WAIVE: Remove file.
32449         * CANCEL-FILE-WAIVE: Likewise.
32450
32451         [BZ #14132]
32452         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
32453         instead of INTVARDEF.
32454         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32455         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
32456         rtld_hidden_data_def instead of INTVARDEF.
32457         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32458         * elf/dl-deps.c (expand_dst): Likewise.
32459         * elf/dl-load.c (_dl_dst_count): Likewise.
32460         (_dl_dst_substitute): Likewise.
32461         (decompose_rpath): Likewise.
32462         (_dl_init_paths): Likewise.
32463         (open_path): Likewise.
32464         (_dl_map_object): Likewise.
32465         * elf/rtld.c (dl_main): Likewise.
32466         (process_dl_audit): Likewise.
32467         (process_envvars): Likewise.
32468         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
32469         Remove declaration.
32470         (__libc_enable_secure): Use rtld_hidden_proto.
32471
32472 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32473
32474         * elf/dl-load.c
32475         (add_path): New function broken out of _dl_rtld_di_serinfo.
32476         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
32477
32478 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32479
32480         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
32481         parentheses around macro arguments.
32482         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
32483         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
32484         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
32485         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
32486         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
32487         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32488         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32489         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
32490         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
32491         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
32492         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
32493         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
32494         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
32495         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
32496         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
32497         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
32498         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
32499         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
32500         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
32501         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
32502         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
32503         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
32504         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
32505         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32506         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32507         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
32508         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
32509         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
32510         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
32511         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
32512         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
32513         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
32514         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
32515         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
32516         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
32517         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
32518         Likewise.
32519         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
32520         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32521         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32522         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
32523         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
32524         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
32525         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
32526         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
32527         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
32528         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
32529         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
32530         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
32531         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
32532         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
32533         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
32534         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32535         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32536         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
32537         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
32538         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
32539         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
32540         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
32541         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
32542         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
32543         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
32544         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
32545         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
32546         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
32547         (_FP_FRAC_SRS_1): Likewise.
32548         (_FP_FRAC_CLZ_1): Likewise.
32549         (_FP_MUL_MEAT_1_imm): Likewise.
32550         (_FP_MUL_MEAT_1_wide): Likewise.
32551         (_FP_MUL_MEAT_1_hard): Likewise.
32552         (_FP_SQRT_MEAT_1): Likewise.
32553         (_FP_FRAC_ASSEMBLE_1): Likewise.
32554         (_FP_FRAC_DISASSEMBLE_1): Likewise.
32555         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
32556         (__FP_CLZ_2): Likewise.
32557         (_FP_MUL_MEAT_2_wide): Likewise.
32558         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32559         (_FP_MUL_MEAT_2_gmp): Likewise.
32560         (_FP_MUL_MEAT_2_120_240_double): Likewise.
32561         (_FP_SQRT_MEAT_2): Likewise.
32562         (_FP_FRAC_ASSEMBLE_2): Likewise.
32563         (_FP_FRAC_DISASSEMBLE_2): Likewise.
32564         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
32565         (_FP_FRAC_CLZ_4): Likewise.
32566         (_FP_MUL_MEAT_4_wide): Likewise.
32567         (_FP_MUL_MEAT_4_gmp): Likewise.
32568         (_FP_SQRT_MEAT_4): Likewise.
32569         (_FP_FRAC_ASSEMBLE_4): Likewise.
32570         (_FP_FRAC_DISASSEMBLE_4): Likewise.
32571         * soft-fp/op-common.h (_FP_CMP): Likewise.
32572         (_FP_CMP_EQ): Likewise.
32573         (_FP_CMP_UNORD): Likewise.
32574         (_FP_TO_INT): Likewise.
32575         (_FP_FROM_INT): Likewise.
32576         [!__FP_CLZ] (__FP_CLZ): Likewise.
32577         (_FP_DIV_HELP_imm): Likewise.
32578         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
32579         Likewise.
32580         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
32581         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
32582         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
32583         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
32584         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
32585         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32586         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32587         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
32588         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
32589         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
32590         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
32591         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
32592         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
32593         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
32594         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
32595         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
32596         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
32597         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
32598         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
32599         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
32600         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
32601         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
32602         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
32603         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32604         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32605         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
32606         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
32607         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
32608         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
32609         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
32610         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
32611         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
32612         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
32613         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
32614         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
32615         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
32616         (FP_UNPACK_RAW_SP): Likewise.
32617         (FP_PACK_RAW_S): Likewise.
32618         (FP_PACK_RAW_SP): Likewise.
32619         (FP_UNPACK_S): Likewise.
32620         (FP_UNPACK_SP): Likewise.
32621         (FP_UNPACK_SEMIRAW_S): Likewise.
32622         (FP_UNPACK_SEMIRAW_SP): Likewise.
32623         (FP_PACK_S): Likewise.
32624         (FP_PACK_SP): Likewise.
32625         (FP_PACK_SEMIRAW_S): Likewise.
32626         (FP_PACK_SEMIRAW_SP): Likewise.
32627         (_FP_SQRT_MEAT_S): Likewise.
32628         (FP_CMP_S): Likewise.
32629         (FP_CMP_EQ_S): Likewise.
32630         (FP_CMP_UNORD_S): Likewise.
32631         (FP_TO_INT_S): Likewise.
32632         (FP_FROM_INT_S): Likewise.
32633
32634         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
32635
32636         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
32637         (FP_EX_INVALID_IMZ): Likewise.
32638         (FP_EX_INVALID_IMZ_FMA): Likewise.
32639         (FP_EX_INVALID_ISI): Likewise.
32640         (FP_EX_INVALID_ZDZ): Likewise.
32641         (FP_EX_INVALID_IDI): Likewise.
32642         (FP_EX_INVALID_SQRT): Likewise.
32643         (FP_EX_INVALID_CVI): Likewise.
32644         (FP_EX_INVALID_VC): Likewise.
32645         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
32646         "invalid" exceptions.
32647         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
32648         (_FP_ADD_INTERNAL): Likewise.
32649         (_FP_MUL): Likewise.
32650         (_FP_FMA): Likewise.
32651         (_FP_DIV): Likewise.
32652         (_FP_CMP_CHECK_NAN): Likewise.
32653         (_FP_SQRT): Likewise.
32654         (_FP_TO_INT): Likewise.
32655         (FP_EXTEND): Likewise.
32656
32657 2014-10-09  Allan McRae  <allan@archlinux.org>
32658
32659         * po/fr.po: Update French translation from translation project.
32660
32661 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32662
32663         [BZ #14132]
32664         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
32665         of INTDEF.
32666         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
32667         (__cxa_atexit): Use libc_hidden_proto.
32668         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
32669
32670         [BZ #14132]
32671         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
32672         declaration.
32673         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
32674         [!_ISOMAC] (__iswspace_l_internal): Likewise.
32675         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
32676         [!_ISOMAC] (__iswctype_internal): Likewise.
32677         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
32678         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
32679         alias.
32680         (fcntl): Remove __fcntl_internal alias.
32681         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
32682         __connect_internal alias.
32683         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
32684         Likewise.
32685
32686         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
32687         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
32688         FP_DENORM_ZERO.
32689         (_FP_CHECK_FLUSH_ZERO): New macro.
32690         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
32691         (_FP_CMP): Likewise.
32692         (_FP_CMP_EQ): Likewise.
32693         (_FP_TO_INT): Do not set inexact for subnormal arguments if
32694         FP_DENORM_ZERO.
32695         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
32696         (FP_TRUNC): Likewise.
32697
32698         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
32699         treated as invalid conversion, not as normal exponent.
32700
32701         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
32702         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
32703         (_FP_CMP_EQ): Likewise.
32704         (_FP_CMP_UNORD): Likewise.
32705         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
32706         (FP_CMP_EQ_D): Likewise.
32707         (FP_CMP_UNORD_D): Likewise.
32708         * soft-fp/extended.h (FP_CMP_E): Likewise.
32709         (FP_CMP_EQ_E): Likewise.
32710         (FP_CMP_UNORD_E): Likewise.
32711         * soft-fp/quad.h (FP_CMP_Q): Likewise.
32712         (FP_CMP_EQ_Q): Likewise.
32713         (FP_CMP_UNORD_Q): Likewise.
32714         * soft-fp/single.h (FP_CMP_S): Likewise.
32715         (FP_CMP_EQ_S): Likewise.
32716         (FP_CMP_UNORD_S): Likewise.
32717         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
32718         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
32719         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
32720         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
32721         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
32722         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
32723         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
32724         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
32725         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
32726         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
32727         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
32728         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
32729         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
32730         to FP_CMP_Q.
32731         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
32732         FP_CMP_Q.
32733         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
32734         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
32735         FP_CMP_EQ_Q.
32736         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
32737         FP_CMP_Q.
32738         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
32739         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
32740         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
32741         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
32742         FP_CMP_EQ_Q.
32743         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
32744         FP_CMP_Q.
32745         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
32746         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
32747         FP_CMP_EQ_Q.
32748         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
32749         FP_CMP_Q.
32750         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
32751         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
32752         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
32753         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
32754         FP_CMP_EQ_Q.
32755
32756         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
32757         a subnormal result, set the underflow exception if trapping on
32758         underflow is enabled.
32759         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
32760         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
32761         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
32762         redefine to 0.
32763         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
32764         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32765         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32766         * soft-fp/extendxftf2.c (__extendxftf2): Use
32767         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
32768
32769         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
32770         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
32771         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32772         FP_HANDLE_EXCEPTIONS.
32773         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
32774         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32775         FP_HANDLE_EXCEPTIONS.
32776         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
32777         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32778         FP_HANDLE_EXCEPTIONS.
32779         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
32780         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32781         FP_HANDLE_EXCEPTIONS.
32782
32783 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
32784
32785         [BZ #14132]
32786         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
32787         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
32788         use INTUSE.
32789         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
32790         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
32791         Remove alias.
32792         (__adjtimex): Define using libc_hidden_ver.
32793         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
32794         Remove declaration.
32795         (ntp_gettime): Call __adjtimex directly.
32796         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
32797         Remove declaration.
32798         (ntp_gettimex): Call __adjtimex directly.
32799         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
32800         __adjtimex_internal alias.
32801
32802 2014-10-08  Roland McGrath  <roland@hack.frob.com>
32803
32804         [BZ #17460]
32805         * nscd/nscd.c (more_help): Rewrite list of tables collection
32806         using xstrdup and asprintf.
32807
32808         * nscd/nscd_conf.c: Remove local xstrdup declaration.
32809
32810 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32811             Roland McGrath  <roland@hack.frob.com>
32812
32813         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
32814         (do_lookup_unique): ... local function 'enter' here; update callers.
32815
32816 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
32817
32818         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
32819         compat_symbol calls on [SHARED].
32820         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
32821         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
32822         Remove.
32823         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32824         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
32825         (oldsetrlimit): Remove.
32826         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32828         (lchown): New syscall entry.
32829         (oldsetrlimit): Remove.
32830         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32831         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
32832         (oldsetrlimit): Remove.
32833         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32834
32835         [BZ #14138]
32836         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
32837         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
32838         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
32839         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
32840         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32841         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
32842         (fchown): Likewise.
32843         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
32844         (fchown): Likewise.
32845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
32846         Likewise.
32847
32848 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32849
32850         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
32851         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
32852         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
32853         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
32854         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
32855         Likewise.
32856         (__old_sem_post): Likewise.
32857
32858 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
32859
32860         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
32861         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
32862         HAVE_CLOCK_GETTIME_VSYSCALL macros.
32863         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
32864         Use INLINE_VSYSCALL macro.
32865         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
32866         __vdso_clock_gettime.
32867         * sysdeps/unix/sysv/linux/tile/init-first.c
32868         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
32869         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
32870         __vdso_clock_gettime.
32871
32872         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
32873         to set up frame more cleanly.
32874
32875         * sysdeps/tile/memcmp.c: New file.
32876
32877         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
32878
32879         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
32880         * sysdeps/tile/tilegx/strcasestr.c: New file.
32881         * sysdeps/tile/tilegx/strnlen.c: New file.
32882         * sysdeps/tile/tilegx/strstr.c: New file.
32883
32884         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
32885
32886 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
32887
32888         * nptl/tst-setuid3.c: Write errors to stdout.
32889
32890 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32891
32892         * elf/dl-deps.c
32893         (preload): New functions broken out of _dl_map_object_deps.
32894         (_dl_map_object_deps):  Remove a nested function. Update call sites.
32895
32896 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
32897
32898         [BZ #14138]
32899         * sysdeps/unix/sysv/linux/execve.c: Remove file.
32900         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
32901
32902 2014-10-01  Steve Ellcey  <sellcey@mips.com>
32903
32904         * sysdeps/mips/strcmp.S: New.
32905
32906 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
32907
32908         [BZ #14138]
32909         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
32910         (linkat): Likewise.
32911         (mkdirat): Likewise.
32912         (readlinkat): Likewise.
32913         (renameat): Likewise.
32914         (symlinkat): Likewise.
32915         (unlinkat): Likewise.
32916         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
32917         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
32918         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
32919         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
32920         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
32921         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
32922         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
32923
32924 2014-09-30  Will Newton  <will.newton@linaro.org>
32925
32926         * math/math.h: Define long double math functions if
32927         _LIBC_TEST is defined.
32928         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
32929
32930         * localedata/Makefile: Move assignment to tests-special
32931         into an ifdef testing run-built-tests.
32932         * timezone/Makefile: Likewise.
32933
32934 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
32935
32936         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
32937         with $(BASH) not $(SHELL).
32938
32939 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
32940             Matthew LeGendre  <legendre1@llnl.gov>
32941
32942         [BZ #17411]
32943         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
32944         l_reloc_result.
32945
32946 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32947
32948         * stdio-common/printf_fp.c
32949         (hack_digit): New function, broken out of ...
32950         (__printf_fp): ... local function here.  Update call sites.
32951         hack_digit now takes an additional parameter that is a pointer
32952         to a struct of the referenced locals.  Those locals moved inside
32953         the struct and references updated.
32954
32955 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
32956
32957         * aclocal.m4: Require autoconf 2.69.
32958         * configure: Regenerated.
32959         * sysdeps/aarch64/configure: Likewise.
32960         * sysdeps/alpha/configure: Likewise.
32961         * sysdeps/arm/armv7/configure: Likewise.
32962         * sysdeps/arm/configure: Likewise.
32963         * sysdeps/ia64/configure: Likewise.
32964         * sysdeps/mach/configure: Likewise.
32965         * sysdeps/mips/configure: Likewise.
32966         * sysdeps/s390/configure: Likewise.
32967         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
32968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
32969
32970         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
32971         file.
32972         * sysdeps/ia64/configure.ac: Likewise.
32973
32974 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
32975
32976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
32977         specify symbol version for ld.so.  Do not include entry for
32978         libpthread.
32979         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
32980         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
32981         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32982
32983         [BZ #14171]
32984         * Makeconfig [$(build-shared) = yes]
32985         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
32986         makefiles.
32987         [$(build-shared) = yes && $(soversions.mk-done) = t]
32988         ($(common-objpfx)gnu/lib-names.h): Remove rule.
32989         [$(build-shared) = yes && $(soversions.mk-done) = t]
32990         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
32991         to Makerules.
32992         [$(build-shared) = yes && $(soversions.mk-done) = t]
32993         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
32994         here.
32995         [$(build-shared) = yes && $(soversions.mk-done) = t]
32996         (common-generated): Don't append gnu/lib-names.h and
32997         gnu/lib-names.stmp here.
32998         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
32999         (lib-names-h-abi): New variable.
33000         [$(build-shared) = yes && $(soversions.mk-done) = t]
33001         (lib-names-stmp-abi): Likewise.
33002         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33003         abi-variants] (before-compile): Append
33004         $(common-objpfx)$(lib-names-h-abi).
33005         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33006         abi-variants] (common-generated): Append gnu/lib-names.h.
33007         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33008         abi-variants] (install-others-nosubdir): Depend on
33009         $(inst_includedir)/$(lib-names-h-abi).
33010         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33011         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
33012         [$(build-shared) = yes && $(soversions.mk-done) = t]
33013         ($(common-objpfx)$(lib-names-h-abi)): New rule.
33014         [$(build-shared) = yes && $(soversions.mk-done) = t]
33015         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
33016         [$(build-shared) = yes && $(soversions.mk-done) = t]
33017         (common-generated): Append $(lib-names-h-abi) and
33018         $(lib-names-stmp-abi).
33019         * scripts/lib-names.awk: Do not handle multi being set.
33020         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
33021         Remove variable.
33022         (abi-lp64_be-ld-soname): Likewise.
33023         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
33024         Likewise.
33025         (abi-hard-ld-soname): Likewise.
33026         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
33027         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
33028         Remove variable.
33029         (abi-o32_hard-ld-soname): Likewise.
33030         (abi-o32_soft_2008-ld-soname): Likewise.
33031         (abi-o32_hard_2008-ld-soname): Likewise.
33032         (abi-n32_soft-ld-soname): Likewise.
33033         (abi-n32_hard-ld-soname): Likewise.
33034         (abi-n32_soft_2008-ld-soname): Likewise.
33035         (abi-n32_hard_2008-ld-soname): Likewise.
33036         (abi-n64_soft-ld-soname): Likewise.
33037         (abi-n64_hard-ld-soname): Likewise.
33038         (abi-n64_soft_2008-ld-soname): Likewise.
33039         (abi-n64_hard_2008-ld-soname): Likewise.
33040         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
33041         Likewise.
33042         (abi-64-v2-ld-soname): Likewise.
33043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
33044         ld.so entries.
33045         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
33046         variable.
33047         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
33048         entry.
33049         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
33050         variable.
33051         (abi-64-ld-soname): Likewise.
33052         (abi-x32-ld-soname): Likewise.
33053         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
33054         entry.
33055         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33056
33057 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
33058
33059         [BZ #14138]
33060         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
33061         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
33062         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
33063         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
33064         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
33065         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
33066         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
33067         syscall entry for GLIBC_2.2 symbol version.
33068         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
33069         Likewise.
33070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33071         (setrlimit): Likewise.
33072         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
33073         Likewise.
33074
33075 2014-09-23  Will Newton  <will.newton@linaro.org>
33076
33077         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
33078         _LINUX_ARM_SYSDEP_H include guard too.
33079         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
33080         define.
33081
33082 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33083
33084         * sysdeps/unix/sysv/linux/eventfd.c:
33085         Make first argument unsigned.
33086         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
33087         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
33088
33089 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
33090
33091         [BZ #16852]
33092         * socket/recvmmsg.c (recvmmsg): Drop const argument.
33093         * socket/sys/socket.h: Likewise.
33094         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
33095
33096 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33097
33098         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
33099
33100 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
33101
33102         * time/tst-ftime.c: New test.
33103         * time/Makefile (tests): Add tst-ftime.
33104
33105 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
33106
33107         * soft-fp/extended.h: Fix comment formatting.
33108         * soft-fp/op-1.h: Likewise.
33109         * soft-fp/op-2.h: Likewise.
33110         * soft-fp/op-4.h: Likewise.
33111         * soft-fp/op-8.h: Likewise.
33112         * soft-fp/op-common.h: Likewise.
33113         * soft-fp/soft-fp.h: Likewise.
33114
33115         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
33116
33117 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
33118
33119         [BZ #6652]
33120         * Makeconfig (soversions-default-setname): Remove variable.
33121         ($(common-objpfx)soversions.i): Don't pass default_setname to
33122         soversions.awk.
33123         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
33124         oldest_abi to abi-versions.awk.
33125         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
33126         * config.make.in (oldest-abi): Remove variable.
33127         * configure.ac (--enable-oldest-abi): Remove configure option.
33128         * configure: Regenerated.
33129         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
33130         text.
33131         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
33132         * scripts/soversions.awk: Do not handle default_setname variable.
33133         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
33134         variable.
33135         * sysdeps/mach/hurd/configure: Regenerated.
33136         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
33137         variable.
33138         * sysdeps/unix/sysv/linux/configure: Regenerated.
33139
33140 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33141
33142         * elf/Makefile (CFLAGS-interp.c): Remove.
33143         ($(elf-objpfx)runtime-linker.h): Generate header with linker
33144         path string.
33145         * elf/interp.c: Include generated runtime-linker.h
33146
33147         * Makerules (lib%.so): Don't include $(+interp) in
33148         prerequisites.
33149         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
33150         * dlfcn/eval.c: Remove file.
33151
33152         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
33153         macros.
33154
33155         [BZ #17266]
33156         * misc/sys/cdefs.h: Define __extern_always_inline for clang
33157         4.2 and newer.
33158
33159         [BZ #17370]
33160         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
33161
33162 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33163             Jakub Jelinek  <jakub@redhat.com>
33164
33165         [BZ #17266]
33166         * libio/stdio.h: Check definition of __fortify_function
33167         instead of __extern_always_inline to include bits/stdio2.h.
33168         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
33169         check if __extern_always_inline is defined.
33170         [__USE_MISC || __USE_XOPEN]: Likewise.
33171         [__USE_ISOC99] Likewise.
33172         * misc/sys/cdefs.h (__fortify_function): Define only if
33173         __extern_always_inline is defined.
33174         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
33175         __extern_always_inline and __extern_inline only for g++-4.3
33176         and newer or a compatible gcc.
33177
33178 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
33179
33180         [BZ #17371]
33181         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
33182         last change to handle zero prefix length.
33183
33184 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33185
33186         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
33187         _SC_REGEX_VERSION.
33188
33189         * posix/getconf.c (vars): Add _POSIX_IPV6 and
33190         _POSIX_RAW_SOCKETS.
33191
33192 2014-09-13  Allan McRae  <allan@archlinux.org>
33193
33194         * po/ru.po: Update Russian translation from translation project.
33195
33196 2014-09-12  Roland McGrath  <roland@hack.frob.com>
33197
33198         * locale/programs/locale.c (show_locale_vars): Inline local function
33199         into its sole call site.  Clean up some style nits.
33200         (print_item): New function, broken out of ...
33201         (show_info): ... local function here.  Clean up style nits.
33202
33203         * locale/programs/ld-ctype.c (set_one_default): New function, broken
33204         out of ...
33205         (set_class_defaults): ... local function set_default here.
33206         Define set_default as a macro locally to pass constant parameters.
33207         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
33208         rather than a shared local.
33209
33210         * stdlib/rpmatch.c (try): New function, broken out of ...
33211         (rpmatch): ... local function here.  Also, prototypify definition.
33212
33213 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
33214
33215         * scripts/soversions.awk: Do not handle configuration names.
33216         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
33217         vendor and os variables to soversions.awk.
33218         * configure.ac: Do not modify gnu-* host_os.
33219         * configure: Regenerated
33220         * shlib-versions: Remove first column with configuration names.
33221         * nptl/shlib-versions: Likewise.
33222         * nptl_db/shlib-versions: Likewise.
33223         * sysdeps/hppa/shlib-versions: Likewise.
33224         * sysdeps/m68k/shlib-versions: Likewise.
33225         * sysdeps/mach/hurd/shlib-versions: Likewise.
33226         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
33227         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
33228         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
33229         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
33230         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
33231         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
33232         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
33233         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
33234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33235         Likewise.
33236         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33237         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33238         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33239         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33240         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33241         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
33242         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33243         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33244
33245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33246         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
33247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33248         Regenerated.
33249         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
33250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33251         Condition symbol version definitions on [HAVE_ELFV2_ABI].
33252
33253         * shlib-versions: Remove OS-specific entries.  Moved to files in
33254         sysdeps.
33255         * sysdeps/mach/hurd/shlib-versions: New file.
33256         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33257
33258         * nptl/shlib-versions: Remove architecture-specific entries.
33259         Moved to files in sysdeps.
33260         * shlib-versions: Likewise.
33261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
33262         file.
33263         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33264         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33265         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33266         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33267
33268         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
33269         (UDP_NO_CHECK6_RX): Likewise.
33270
33271 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33272
33273         * sysdeps/posix/sysconf.c (__sysconf): Spell
33274         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
33275
33276 2014-08-12  Florian Weimer  <fweimer@redhat.com>
33277
33278         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
33279         loading.
33280         * iconv/Versions (__gconv_transliterate): Export for use from
33281         gconv modules.
33282         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
33283         (struct __gconv_trans_data, __gconv_trans_fct,
33284         __gconv_trans_context_fct, __gconv_trans_query_fct,
33285         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
33286         definitions.
33287         (struct __gconv_step_data): Remove __trans member.
33288         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
33289         longer hidden.  Remove unused trans_data argument.
33290         * iconv/gconv_int.h (struct trans_struct): Remove definition.
33291         (__gconv_translit_find): Remove declaration.
33292         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
33293         prototype.
33294         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
33295         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
33296         trans_data argument.  Add hidden definition.
33297         (__gconv_translit_find): Remove.
33298         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
33299         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
33300         * iconv/skeleton.c: Remove transliteration initialization.
33301         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
33302         __gconv_step_data initialization.
33303         * libio/iofwide.c (__libio_translit_): Remove.
33304         (_IO_fwide): Adjust struct __gconv_step_data initialization.
33305         * wcsmbs/btowc.c (__btowc): Likewise.
33306         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33307         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
33308         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
33309         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
33310         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
33311         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
33312         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
33313         * wcsmbs/wctob.c (wctob): Likewise.
33314
33315 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33316
33317         [BZ #16194]
33318         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
33319         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
33320         register usage.
33321         * sysdeps/x86/Makefile: Adjust.
33322
33323 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33324             Roland McGrath  <roland@hack.frob.com>
33325
33326         * locale/weight.h: Add include guard.
33327         (findidx): Make static rather than auto; take new parameters
33328         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
33329         * locale/weightwc.h: Likewise.
33330         * posix/fnmatch_loop.c
33331         (FCT): Change type of EXTRA from int32_t to wint_t.
33332         Don't include either header inside the function.
33333         Call FINDIDX rather than findidx, and pass new arguments.
33334         #undef FINDIDX at the end of the file.
33335         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
33336         FINDIDX before including fnmatch_loop.c for the non-wide version.
33337         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
33338         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
33339         for the wide version.
33340         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
33341         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
33342         Pass new arguments to findidx.
33343         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
33344         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
33345         Don't #include it inside the function.  Pass new arguments to findidx.
33346         * posix/regex_internal.h
33347         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
33348         (re_string_elem_size_at): Don't #include it inside the function.
33349         Pass new arguments to findidx.
33350         * string/strcoll_l.c: #include WEIGHT_H at top level.
33351         (get_next_seq): Don't #include it inside the function.
33352         Pass new arguments to findidx.
33353         (get_next_seq_nocache): Likewise.
33354         * string/strxfrm_l.c: #include WEIGHT_H at top level.
33355         (STRXFRM): Don't #include it inside the function.
33356         Pass new arguments to findidx.
33357
33358 2014-09-11  Florian Weimer  <fweimer@redhat.com>
33359
33360         [BZ #17344]
33361         * malloc/malloc.c (unlink): Turn asserts into a call to
33362         malloc_printerr.
33363
33364 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
33365
33366         [BZ #17370]
33367         * libio/wfileops (do_ftell_wide): Free OUT.
33368
33369 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
33370
33371         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
33372
33373 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33374
33375         [BZ #17363]
33376         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
33377         group if the current group is empty.
33378
33379 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33380
33381         * benchtests/bench-memset.c (test_main): Add more test from size
33382         from 32 to 512 bytes.
33383         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33384         Add POWER8 memset object.
33385         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
33386         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
33387         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
33388         implementation.
33389         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
33390         Likewise.
33391         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
33392         multiarch POWER8 memset optimization.
33393         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
33394         POWER8 memset optimization.
33395
33396         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33397         Remove bzero multiarch objects.
33398         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
33399         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
33400         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
33401         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
33402         Remove define.
33403         [__bzero]: Redefine to specific name.
33404         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
33405         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
33406         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
33407         define.
33408         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
33409         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
33410
33411 2014-09-10  Florian Weimer  <fweimer@redhat.com>
33412
33413         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
33414         warnings into errors.
33415
33416         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
33417         __cxa_thread_atexit_impl prototype.
33418
33419 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33420
33421         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
33422         Fix capitalization of error message.
33423
33424 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33425
33426         * sysdeps/mips/preconfigure: Modify ABI tests.
33427
33428 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
33429
33430         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
33431
33432 2014-09-07  Roland McGrath  <roland@hack.frob.com>
33433             Carlos O'Donell  <carlos@systemhalted.org>
33434
33435         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
33436         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
33437         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
33438         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
33439         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
33440         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
33441         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
33442         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
33443         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
33444         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
33445         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
33446         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
33447         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
33448         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
33449         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
33450         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
33451         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
33452         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
33453         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
33454         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
33455         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
33456         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
33457         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
33458         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
33459         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
33460         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
33461         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
33462         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
33463         Deconditionalize the code that was previously under [RESET_PID].
33464         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
33465         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
33466         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
33467         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
33468         include sysdep.h.
33469
33470 2014-09-08  Allan McRae  <allan@archlinux.org>
33471
33472         * version.h (RELEASE): Set to "development".
33473         (VERSION): Set to "2.20.90"
33474
33475 2014-09-07  Allan McRae  <allan@archlinux.org
33476
33477         * version.h (RELEASE): Set to "stable".
33478         (VERSION): Set to "2.20"
33479         * include/features.h (__GLIBC_MINOR__): Set to 20.
33480
33481         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
33482         Liebler.
33483
33484         * po/ko.po: Update Korean translation from translation project.
33485
33486 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
33487
33488         [BZ #17354]
33489         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
33490         macro for handling signed relocations.
33491
33492 2014-09-03  Florian Weimer  <fweimer@redhat.com>
33493
33494         [BZ #17325]
33495         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
33496         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
33497         assert.
33498         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
33499         * iconvdata/ibm935.c (BODY): Likewise.
33500         * iconvdata/ibm937.c (BODY): Likewise.
33501         * iconvdata/ibm939.c (BODY): Likewise.
33502         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
33503         assert.
33504         * iconvdata/Makefile (iconv-test.out): Pass module list to test
33505         script.
33506         * iconvdata/run-iconv-test.sh: New test loop for checking for
33507         decoder crashers.
33508
33509 2014-09-02  Khem Raj  <raj.khem@gmail.com>
33510
33511         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
33512         libm_hidden_ver.
33513
33514 2014-09-01  Allan McRae  <allan@archlinux.org>
33515
33516         * po/eo.po: Update Esperanto translation from translation project.
33517
33518         * po/ca.po: Update Catalan translation from translation project.
33519
33520 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33521
33522         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
33523         __proc_dostop call.
33524
33525 2014-08-27  Mark Wielaard  <mjw@redhat.com>
33526
33527         [BZ #17319]
33528         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
33529         to call set_thread_area instead of hand written asm.
33530         (__NR_set_thread_area): Removed define.
33531         (TLS_FLAG_WRITABLE): Likewise.
33532         (__ASSUME_SET_THREAD_AREA): Remove check.
33533         (TLS_EBX_ARG): Remove define.
33534         (TLS_LOAD_EBX): Likewise.
33535
33536 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33537
33538         Simplify atomicity of socket creation in bind.
33539
33540         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
33541         looking up the name after linking the file.
33542
33543 2014-08-27  Allan McRae  <allan@archlinux.org>
33544
33545         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
33546
33547 2014-08-26  Florian Weimer  <fweimer@redhat.com>
33548
33549         [BZ #17187]
33550         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
33551         trans_compare, open_translit, __gconv_translit_find):
33552         Remove module loading code.
33553
33554 2014-08-26  Allan McRae  <allan@archlinux.org>
33555
33556         * po/vi.po: Update Vietnamese translation from translation project.
33557
33558         * po/uk.po: Update Ukrainian translation from translation project.
33559
33560         * po/fr.po: Update French translation from translation project.
33561
33562         * po/ru.po: Update Russian translation from translation project.
33563
33564         * po/pl.po: Update Polish translation from translation project.
33565
33566         * po/cs.po: Update Czech translation from translation project.
33567
33568         * po/de.po: Update German translation from translation project.
33569
33570         * po/bg.po: Update Bulgarian translation from translation project.
33571
33572         * po/sv.po: Update Sweedish translation from translation project.
33573
33574         * po/nl.po: Update Dutch translation from translation project.
33575
33576         * po/es.po: Update Spanish translation from translation project.
33577
33578 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
33579
33580         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
33581
33582         * catgets/Makefile (CPPFLAGS-gencat): Remove.
33583         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
33584         (CPPFLAGS-iconvconfig): Likewise.
33585         * timezone/Makefile (CPPFLAGS-zic): Likewise.
33586
33587         * include/libc-symbols.h: Remove unnecessary check for
33588         NOT_IN_libc.
33589         * nptl/pthreadP.h: Likewise.
33590         * sysdeps/aarch64/setjmp.S: Likewise.
33591         * sysdeps/alpha/setjmp.S: Likewise.
33592         * sysdeps/arm/sysdep.h: Likewise.
33593         * sysdeps/i386/setjmp.S: Likewise.
33594         * sysdeps/m68k/setjmp.c: Likewise.
33595         * sysdeps/posix/getcwd.c: Likewise.
33596         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
33597         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
33598         * sysdeps/s390/s390-32/setjmp.S: Likewise.
33599         * sysdeps/s390/s390-64/setjmp.S: Likewise.
33600         * sysdeps/sh/sh3/setjmp.S: Likewise.
33601         * sysdeps/sh/sh4/setjmp.S: Likewise.
33602         * sysdeps/unix/alpha/sysdep.h: Likewise.
33603         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
33604         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33605         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
33606         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
33607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
33608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
33609         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33610         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33611         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33612         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33613         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33614         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
33615         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33616         * sysdeps/x86_64/setjmp.S: Likewise.
33617
33618 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
33619
33620         [BZ #17263]
33621         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
33622         <stdint.h>.
33623         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
33624         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
33625
33626 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
33627
33628         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
33629
33630         [BZ #17262]
33631         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
33632         and __x86_64__ when disabling x87 inline functions.
33633
33634 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33635
33636         [BZ #17259]
33637         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
33638         asm statement with __cpuid_count.
33639
33640 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
33641
33642         * configure.ac: Change __ehdr_start code to dereference the struct.
33643         Run readelf on the output to look for relocations.
33644         * configure: Regenerated.
33645
33646 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
33647
33648         [BZ #17261]
33649         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
33650         value to 0.
33651         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
33652
33653 2014-08-12  Roland McGrath  <roland@hack.frob.com>
33654
33655         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
33656
33657 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
33658
33659         [BZ #16892]
33660         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
33661         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
33662
33663 2014-08-12  Sean Anderson  <seanga2@gmail.com>
33664
33665         * malloc/malloc.c: Fix typo in comment.
33666
33667 2014-08-09  Allan McRae  <allan@archlinux.org>
33668
33669         * Regenerate libc.po.
33670
33671 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
33672
33673         * intl/tst-gettext2.sh: Check every lang file for creation.
33674
33675 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33676
33677         * sysdeps/aarch64/fpu/math_private.h
33678         (libc_feholdsetround_noex_aarch64_ctx): New function.
33679
33680 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33681
33682         * sysdeps/arm/armv6/strcpy.S (strcpy):
33683         Fix performance issue in misaligned cases.
33684
33685 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33686
33687         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
33688         Move definition from termios.h.
33689         (struct termio): Likewise.
33690         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33691         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33692         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33693         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33694         Likewise.
33695         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
33696         Move definition to ioctl-types.h
33697         (struct termio): Likewise.
33698         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33699         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33700         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33701         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33702         Likewise.
33703
33704 2014-08-05  Richard Henderson  <rth@redhat.com>
33705
33706         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
33707         exceptions.
33708         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
33709         Add fraiseexcpt.
33710         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
33711         Use __feraiseexcept.
33712         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
33713         Protect libm symbols with IS_IN_libm.
33714
33715         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
33716
33717 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
33718
33719         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
33720
33721 2014-08-04  Will Newton  <will.newton@linaro.org>
33722
33723         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
33724         file.
33725
33726 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
33727
33728         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
33729         variants for each function.
33730
33731 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33732
33733         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
33734         appended ...
33735         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
33736         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
33737         appended ...
33738         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
33739         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
33740         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
33741         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
33742         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
33743         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
33744         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
33745         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
33746         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
33747         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
33748         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
33749         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
33750         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
33751         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
33752         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
33753         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
33754         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
33755         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
33756         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
33757         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
33758         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
33759         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
33760         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
33761         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
33762         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
33763         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
33764         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
33765         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
33766         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
33767         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
33768         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
33769         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
33770         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
33771         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
33772         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
33773         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
33774         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
33775         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
33776         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
33777         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
33778         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
33779         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
33780         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
33781         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
33782         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
33783         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
33784         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
33785         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
33786         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
33787         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
33788         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
33789         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
33790         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
33791         Update #include.
33792         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
33793         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
33794
33795 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33796
33797         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
33798         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
33799         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
33800         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
33801         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
33802         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
33803
33804 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33805
33806         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
33807         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
33808         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
33809         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
33810
33811 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33812
33813         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
33814         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
33815         (__libc_vfork): Define function under this name.
33816         (__vfork): Define as an alias.
33817         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
33818         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
33819
33820 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33821
33822         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
33823         that was previously under [RESET_PID].
33824         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
33825
33826 2014-08-04  Andreas Schwab  <schwab@suse.de>
33827
33828         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
33829
33830 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
33831
33832         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
33833         (main): Likewise.
33834
33835 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33836
33837         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
33838
33839 2014-08-01  Richard Henderon  <rth@redhat.com>
33840
33841         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
33842         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
33843         typo in exact zero test.
33844         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33845         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
33846         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33847
33848 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33849
33850         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
33851         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
33852         * sysdeps/arm/sysdep.h: ... here.
33853         [!__ASSEMBLER__]: Include <stdint.h>.
33854
33855 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33856
33857         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
33858         (HAVE_WCTYPE_H): Likewise.
33859         (HAVE_ISWCTYPE): Likewise.
33860         (ENABLE_NLS): Likewise.
33861         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
33862         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
33863
33864         * posix/regex_internal.c: Check if DEBUG is defined and is
33865         set.
33866
33867         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
33868         (HAVE_MBSRTOWCS): Likewise.
33869         * posix/fnmatch.c: Include string.h unconditionally.
33870
33871 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
33872
33873         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
33874         reversal.
33875
33876 2014-07-31  Roland McGrath  <roland@hack.frob.com>
33877
33878         * sysdeps/generic/safe-fatal.h: New file.
33879         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
33880         * nptl/forward.c: Include it.
33881         (__pthread_unwind): Use __safe_fatal as default action, rather
33882         than a bogus use of INTERNAL_SYSCALL that could never work.
33883
33884         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
33885         * configure.ac (libc_cv_builtin_trap): New test.
33886         * configure: Regenerated.
33887         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
33888         (ABORT_INSTRUCTION): Define using __builtin_trap.
33889
33890         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
33891         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
33892         * sysdeps/nptl/nptl-signals.h: New file.
33893         * nptl/pthreadP.h: Include <nptl-signals.h>.
33894
33895 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33896
33897         * sysdeps/s390/s390-64/utf16-utf32-z9.c
33898         (ONE_DIRECTION): Define.
33899         * sysdeps/s390/s390-64/utf8-utf16-z9.c
33900         (ONE_DIRECTION): Define.
33901         * sysdeps/s390/s390-64/utf8-utf32-z9.c
33902         (ONE_DIRECTION): Define.
33903
33904 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33905
33906         * sysdeps/s390/Makefile: Delete file.
33907         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
33908         * sysdeps/s390/__longjmp.c: Delete file.
33909         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
33910         Remove fields __flags and __reserved.
33911         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
33912         and add versioning.
33913         * sysdeps/s390/rtld-__longjmp.c: Delete file.
33914         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
33915         * sysdeps/s390/rtld-setjmp.S: Likewise.
33916         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
33917         * sysdeps/s390/s390-32/__longjmp.c: ... here.
33918         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
33919         * sysdeps/s390/s390-32/setjmp.S: ... here.
33920         Add versioning.
33921         (__sigsetjmp): Remove setting __flags field.
33922         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
33923         * sysdeps/s390/s390-64/__longjmp.c: ... here.
33924         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
33925         * sysdeps/s390/s390-64/setjmp.S: ... here.
33926         Add versioning.
33927         (__sigsetjmp): Remove setting __flags field.
33928         * sysdeps/s390/setjmp.S: Delete file.
33929         * sysdeps/s390/sigjmp.c: Likewise.
33930         * sysdeps/s390/v1-longjmp.c: Likewise.
33931         * sysdeps/s390/v1-setjmp.h: Likewise.
33932         * sysdeps/s390/v1-sigjmp.c: Likewise.
33933         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
33934         Remove v1-longjmp_chk.
33935         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
33936         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
33937         Include debug/longjmp_chk.c and add versioning.
33938         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
33939         Include nptl/pt-longjmp.c and add versioning.
33940         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
33941         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
33942         Include __longjmp.c.
33943         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
33944         Move to ...
33945         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
33946         (__getcontext): Remove setting __flags field.
33947         Add versioning.
33948         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
33949         Don't restore upper high grps.
33950         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
33951         Likewise.
33952         (__swapcontext): Remove setting uc_flags field.
33953         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
33954         Delete file.
33955         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
33956         Include __longjmp.c.
33957         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
33958         Move to ...
33959         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
33960         (__getcontext): Remove setting __flags field.
33961         Add versioning.
33962         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
33963         (__swapcontext): Remove setting uc_flags field.
33964         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
33965         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
33966         Remove fields uc_high_gprs and __reserved.
33967         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
33968         New file with reverted content.
33969         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
33970         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
33971         Regenerated.
33972         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
33973         Regenerated.
33974
33975 2014-07-31  Andreas Schwab  <schwab@suse.de>
33976
33977         * config.h.in (HAVE_IFUNC): Define to 0.
33978         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
33979         definedness.
33980
33981 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
33982
33983         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33984         memmove-avx-unaligned, memcpy-avx-unaligned and
33985         mempcpy-avx-unaligned.
33986         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
33987         Add tests for AVX memcpy functions.
33988         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
33989         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
33990         memcpy_chk.
33991         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
33992         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
33993         memmove_chk.
33994         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
33995         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
33996         mempcpy_chk.
33997         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
33998         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
33999         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
34000
34001 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34002
34003         [BZ #17213]
34004         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
34005         powerpc64le.
34006
34007 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
34008
34009         [BZ #16839]
34010         * manual/llio.texi: Add section about open file description locks.
34011         * manual/examples/ofdlocks.c: Example of open file description
34012         lock usage.
34013         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
34014         F_OFD_SETLK, and F_OFD_SETLKW.
34015
34016 2014-07-23  Allan McRae  <allan@archlinux.org>
34017
34018         * po/es.po: Update Spanish translation from translation project.
34019
34020 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
34021
34022         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
34023
34024 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
34025
34026         [BZ #17078]
34027         * sysdeps/arm/dl-machine.h (elf_machine_rela)
34028         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
34029         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
34030
34031 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
34032
34033         [BZ #17088]
34034         * math/fesetenv.c (__fesetenv)
34035         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
34036         * math/feupdateenv.c (__feupdateenv)
34037         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
34038
34039         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
34040         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
34041         (__ASSUME_SOCKETCALL): Do not define.
34042
34043         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
34044         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
34045         (__ASSUME_SOCKETCALL): Do not define.
34046         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
34047         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34048         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34049         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34050         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34051         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
34052         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34053         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34054
34055         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
34056         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
34057         (__ASSUME_SOCKETCALL): Do not define.
34058         (__ASSUME_IPC64): Define unconditionally.
34059         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34060         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34061         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34062         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34063         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
34064         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34065         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
34066         Likewise.
34067
34068         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
34069         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
34070         (__ASSUME_SOCKETCALL): Do not define.
34071         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
34072         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34073         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34074         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
34075         (__ASSUME_REQUEUE_PI): Define unconditionally.
34076         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
34077         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
34078         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34079         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
34080         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34081         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34082
34083         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
34084         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
34085         (__ASSUME_SOCKETCALL): Do not define.
34086         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
34087         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34088         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34089         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
34090         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34091         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34092
34093         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
34094         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
34095         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34096         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
34097         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34098         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
34099         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34100         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
34101         (__ASSUME_GETCPU_SYSCALL): Likewise.
34102
34103         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
34104         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
34105         cases for individual architectures.
34106         * sysdeps/gnu/configure: Regenerated.
34107         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
34108         LIBC_SLIBDIR_RTLDDIR.
34109         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
34110         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
34111         LIBC_SLIBDIR_RTLDDIR.
34112         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
34113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
34114         LIBC_SLIBDIR_RTLDDIR.
34115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
34116         Regenerated.
34117         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
34118         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
34119         file.
34120         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
34121         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
34122         file.
34123         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
34124         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
34125         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
34126         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
34127
34128         * sysdeps/aarch64/shlib-versions: Move to ...
34129         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
34130         * sysdeps/alpha/shlib-versions: Move to ...
34131         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
34132         * sysdeps/arm/shlib-versions: Move to ...
34133         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
34134         * sysdeps/hppa/shlib-versions: Move all contents except for
34135         libgcc_s entry to ...
34136         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
34137         entry from ...
34138         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
34139         * sysdeps/ia64/shlib-versions: Move to ...
34140         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
34141         entry from ...
34142         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
34143         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
34144         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
34145         * sysdeps/microblaze/shlib-versions: Move to ...
34146         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
34147         * sysdeps/mips/shlib-versions: Move to ...
34148         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
34149         entry from ...
34150         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
34151         * sysdeps/tile/shlib-versions: Move to ...
34152         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
34153         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
34154         from ...
34155         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
34156         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
34157         entry from ...
34158         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
34159
34160 2014-07-17  Will Newton  <will.newton@linaro.org>
34161
34162         * sysdeps/arm/bits/atomic.h
34163         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
34164         (__arch_compare_and_exchange_bool_16_int): Likewise.
34165         (__arch_compare_and_exchange_bool_64_int): Likewise.
34166
34167         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
34168         into an #else block.
34169
34170 2014-07-16  Roland McGrath  <roland@hack.frob.com>
34171
34172         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
34173         just Linux configurations.  Test empirically that the compiler sets
34174         __ARM_EABI__, rather than using the tuple to decide.
34175         * sysdeps/arm/preconfigure: Regenerated.
34176         * sysdeps/unix/sysv/linux/arm/configure: File removed.
34177         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
34178         contents appended ...
34179         * sysdeps/arm/configure.ac: ... here.
34180         * sysdeps/arm/configure: Regenerated.
34181
34182 2014-07-15  Roland McGrath  <roland@hack.frob.com>
34183
34184         * nptl/pthread_kill.c: New file.
34185         * nptl/pthread_sigmask.c: New file.
34186         * nptl/pthread_sigqueue.c: New file.
34187
34188         * sysdeps/nptl/lowlevellock.h: New file.
34189         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
34190         * sysdeps/nptl/lowlevellock-futex.h: New file.
34191
34192         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
34193         Remove dead declarations.
34194
34195 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
34196
34197         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
34198         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
34199         config-cflags-avx2.
34200         * sysdeps/x86_64/configure.ac: Likewise.
34201         * sysdeps/i386/configure: Regenerated.
34202         * sysdeps/x86_64/configure: Likewise.
34203         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34204         memset-avx2 only if config-cflags-avx2 is yes.
34205         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34206         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
34207         defined.
34208         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
34209         only if HAVE_AVX2_SUPPORT is defined.
34210         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
34211
34212 2014-07-14  Alan Modra  <amodra@gmail.com>
34213
34214         [BZ #17153]
34215         * elf/elf.h (DT_PPC64_NUM): Correct value.
34216         * NEWS: Add to fixed bug list.
34217
34218 2014-07-13  Jim Meyering  <meyering@fb.com>
34219
34220         [BZ 17150]
34221         regex: don't deref NULL upon heap allocation failure
34222         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
34223         failure in one more place.
34224         To trigger the segfault, configure grep -with-included-regex,
34225         build it, and run these commands:
34226         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
34227
34228 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
34229
34230         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34231
34232 2014-07-11  Richard Henderson  <rth@redhat.com>
34233
34234         * sysdeps/aarch64/libm-test-ulps: Update.
34235
34236 2014-07-10  Florian Weimer  <fweimer@redhat.com>
34237
34238         [BZ #17135]
34239         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
34240         * nptl/allocatestack.c (__nptl_setxid_error): New function.
34241         (__nptl_setxid): Initialize error member.  Call
34242         __nptl_setxid_error.
34243         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
34244         * nptl/descr.h (struct xid_command): Add error member.
34245         * nptl/tst-setuid3.c: New file.
34246         * nptl/Makefile (tests): Add it.
34247
34248 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34249
34250         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
34251         New define.
34252         (__lll_trylock): Use __lll_base_trylock.
34253         (__lll_cond_trylock): Likewise.
34254
34255 2014-07-10  Roland McGrath  <roland@hack.frob.com>
34256
34257         * nptl/pthread_create.c (start_thread): Use atomic_or and
34258         lll_futex_wake directly rather than lll_robust_dead.
34259         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34260         (lll_robust_dead): Macro removed.
34261         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
34262         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34263         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34264         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34265         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34266         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34267         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34268         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34269         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34270         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34271         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34272         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34273         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34274         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34275         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34276
34277         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
34278         Use atomic_compare_and_exchange_val_acq directly rather than
34279         lll_robust_trylock.
34280         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34281         (__lll_robust_trylock, lll_robust_trylock): Removed.
34282         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34283         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34284         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34285         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34286         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34287         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34288         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34289         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34290         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34291         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34292         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34293         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34294         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34295         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34296
34297 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34298
34299         * manual/locale.texi (Locale Names): New section documenting
34300         locale name syntax.  Adjust menu and node chaining accordingly.
34301         (Choosing Locale): Reference Locale Names, Locale Categories.
34302         Mention setting LC_ALL=C.  Reflect that name syntax is now
34303         documented.
34304         (Locale Categories): New section title.  Reference Locale Names.
34305         LC_ALL is an environment variable, but not a category.
34306         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
34307         description, now in Locale Name.  Reference that section.  Locale
34308         name syntax is now documented.
34309
34310 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34311
34312         [BZ #17137]
34313         * locale/findlocale.c (name_present, valid_locale_name): New
34314         functions.
34315         (_nl_find_locale): Use the loc_name variable to store name
34316         candidates.  Call name_present and valid_locale_name to check and
34317         validate locale names.  Return an error if the locale is invalid.
34318
34319 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34320
34321         * locale/setlocale.c (setlocale): Use strdup for allocating
34322         composite name copy.
34323
34324 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34325
34326         Sync up with gnulib.
34327         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
34328         [!_LIBC && ENABLE_NLS]: Include gettext.h.
34329         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
34330         and _GL_ARG_NONNULL.
34331         [USE_UNLOCKED_IO]: Include unlocked-io.h.
34332         [!_LIBC]: Include code for Windows and Cygwin.
34333         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
34334         Include prototype for int strerror_r.
34335         [!_LIBC] (is_open): New function.
34336         (flush_stdout): New function.
34337         (print_errno_message): Use it.
34338         (error): Likewise.
34339         (error_at_line): Likewise.
34340         (error_tail) Add function attribute macros.  Use
34341         __builtin_expect.
34342
34343         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
34344
34345         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
34346
34347         * io/ftw.c: Include sys/param.h unconditionally.
34348
34349         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
34350
34351         [BZ #17125]
34352         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
34353         libc_freeres_ptr.
34354         (freecache): New function to free CACHE on exit.
34355
34356         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
34357         initialization.
34358
34359 2014-07-09  David S. Miller  <davem@davemloft.net>
34360
34361         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34362
34363         * sysdeps/sparc/nptl/internaltypes.h: Delete.
34364         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
34365         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
34366         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
34367         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
34368         * sysdeps/sparc/nptl/sem_init.c: Likewise.
34369         * sysdeps/sparc/nptl/sem_post.c: Likewise.
34370         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
34371         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
34372         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
34373         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
34374         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
34375         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
34376
34377 2014-07-09  Andreas Schwab  <schwab@suse.de>
34378
34379         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
34380         output.
34381         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
34382         (do_test): Likewise.
34383
34384         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34385
34386 2014-07-09  Will Newton  <will.newton@linaro.org>
34387
34388         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
34389         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
34390         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34391         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34392         * sysdeps/hppa/start.S (_start): Likewise.
34393
34394 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
34395
34396         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
34397
34398         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
34399         defined.
34400
34401 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34402
34403         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
34404         after checking that it is non-NULL.
34405
34406         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
34407
34408 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34409
34410         * sysdeps/powerpc/memmove.c: Remove file.
34411         * sysdeps/powerpc/powerpc32/power4/memcopy.h
34412         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
34413         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34414         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
34415         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
34416         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
34417         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
34418         string memmove instead of removed powerpc one.
34419
34420         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
34421         [weak_alias]: Fix compiler warning due trailing data.
34422         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
34423         [weak_alias]: Likewise.
34424         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
34425         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
34426
34427         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
34428         (__libc_ifunc_impl_list): Add memmove functions.
34429
34430 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34431
34432         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
34433         Remove code.
34434         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
34435         Likewise.
34436         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
34437         Likewise.
34438         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
34439         Likewise.
34440         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
34441         Likewise.
34442         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
34443         Likewise.
34444         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
34445         Likewise.
34446         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
34447         Likewise.
34448         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
34449         Likewise.
34450         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
34451         Likewise.
34452         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
34453         Likewise.
34454         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
34455         Likewise.
34456         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
34457         Likewise.
34458         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
34459         Likewise.
34460         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
34461         Likewise.
34462         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
34463         Likewise.
34464         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
34465         Likewise.
34466
34467 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34468
34469         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
34470         to avoid alignment traps in non-cacheable memory.
34471         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
34472
34473         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
34474         multiarch objects.
34475         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
34476         file: multiarch power7 memmove.
34477         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
34478         multiarch default memmove.
34479         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
34480         multiarch memove for powerpc32/power4.
34481
34482         * string/bcopy.c: Use full path to include memmove.c.
34483         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
34484         multiarch objects.
34485         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
34486         bcopy for powerpc64.
34487         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
34488         bcopy for powerpc64.
34489         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
34490         and memmove implementations.
34491         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
34492         optimized multiarch memmove for POWER7/powerpc64.
34493         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
34494         default multiarch memmove for powerpc64.
34495         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
34496         multiarch for powerpc64.
34497         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
34498         for POWER7/powerpc64.
34499         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
34500         memmove for POWER7/powerpc64.
34501
34502         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
34503         glibc default one.
34504
34505         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
34506         __ELF_NATIVE_CLASS equal to 64.
34507
34508 2014-07-07  Roland McGrath  <roland@hack.frob.com>
34509
34510         * sysdeps/nptl/lowlevellock.h: File removed.
34511
34512         * NEWS: NPTL is no longer an add-on!
34513         * nptl/internaltypes.h: Moved ...
34514         * sysdeps/nptl/internaltypes.h: ... here.
34515         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
34516         * sysdeps/nptl/fork.c: Likewise.
34517         * sysdeps/nptl/gai_misc.h: Likewise.
34518         * sysdeps/nptl/librt-cancellation.c: Likewise.
34519         * sysdeps/nptl/jmp-unwind.c: Likewise.
34520         * sysdeps/nptl/setxid.h: Likewise.
34521         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
34522         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
34523         * sysdeps/unix/sysv/linux/arm/Implies: New file.
34524         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
34525         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
34526         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
34527         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
34528         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
34529         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
34530         * sysdeps/unix/sysv/linux/mips/Implies: New file.
34531         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
34532         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
34533         * sysdeps/unix/sysv/linux/sh/Implies: New file.
34534         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
34535         * sysdeps/unix/sysv/linux/tile/Implies: New file.
34536         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
34537         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
34538         * nptl/Makeconfig: Moved ...
34539         * sysdeps/nptl/Makeconfig: ... here.
34540         * nptl/configure: File removed.
34541         * nptl/ANNOUNCE: File removed.
34542         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
34543         * sysdeps/unix/sysv/linux/configure: Regenerated.
34544
34545         * nptl/Makefile (routines): Add libc_pthread_init,
34546         libc_multiple_threads, register-atfork and unregister-atfork.
34547         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
34548         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
34549         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
34550         pthread-pi-defines.sym, structsem.sym.
34551         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
34552         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
34553         [$(subdir) = nptl] (tests): Add tst-setgetname.
34554         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
34555         * sysdeps/unix/sysv/linux/sigaction.c: Just include
34556         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
34557         [!LIBC_SIGACTION]: Remove aliases.
34558         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
34559         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
34560         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34561         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
34562         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
34563         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
34564         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
34565         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
34566         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
34567         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
34568         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
34569         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
34570         __libc_allocate_rtsig_private.
34571         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
34572         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
34573         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
34574         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
34575         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
34576         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
34577         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
34578         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
34579         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
34580         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
34581         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
34582         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
34583         * nptl/internaltypes.h: ... here.
34584         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
34585         * sysdeps/nptl/jmp-unwind.c: ... here.
34586         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
34587         * nptl/libc-lowlevellock.c: ... here.
34588         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
34589         * nptl/libc_multiple_threads.c: ... here.
34590         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
34591         * nptl/libc_pthread_init.c: ... here.
34592         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
34593         * nptl/lowlevelbarrier.sym: ... here.
34594         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
34595         * nptl/lowlevelcond.sym: ... here.
34596         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
34597         * nptl/lowlevellock.c: ... here.
34598         * nptl/lowlevellock.h: Moved ...
34599         * sysdeps/nptl/lowlevellock.h: ... here.
34600         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
34601         * nptl/lowlevelrobustlock.c: ... here.
34602         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
34603         * nptl/lowlevelrobustlock.sym: ... here.
34604         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
34605         * nptl/lowlevelrwlock.sym: ... here.
34606         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
34607         * nptl/pt-fork.c: ... here.
34608         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
34609         * nptl/pthread-pi-defines.sym: ... here.
34610         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
34611         * nptl/pthread_attr_getaffinity.c: ... here.
34612         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
34613         * nptl/pthread_attr_setaffinity.c: ... here.
34614         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
34615         * nptl/pthread_mutex_cond_lock.c: ... here.
34616         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34617         Update #include.
34618         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
34619         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
34620         * nptl/pthread_once.c: ... here, replacing old file.
34621         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
34622         * nptl/pthread_yield.c: ... here.
34623         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
34624         * nptl/register-atfork.c: ... here.
34625         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
34626         * nptl/sem_post.c: ... here.
34627         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
34628         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
34629         * nptl/sem_timedwait.c: ... here.
34630         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
34631         * nptl/sem_trywait.c: ... here.
34632         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
34633         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
34634         * nptl/sem_wait.c: ... here.
34635         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
34636         * nptl/structsem.sym: ... here.
34637         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
34638         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
34639         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
34640         * nptl/unregister-atfork.c: ... here.
34641         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
34642         * nptl/unwindbuf.sym: ... here.
34643         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
34644         * sysdeps/nptl/fork.c: ... here.
34645         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
34646         * sysdeps/nptl/fork.h: ... here.
34647         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
34648         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
34649         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
34650         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
34651         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
34652         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
34653         * sysdeps/unix/sysv/linux/getpid.c: ... here.
34654         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
34655         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
34656         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
34657         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
34658         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
34659         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
34660         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
34661         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
34662         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
34663         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
34664         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
34665         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
34666         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
34667         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
34668         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
34669         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
34670         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
34671         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
34672         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
34673         * sysdeps/unix/sysv/linux/raise.c: ... here.
34674         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
34675         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
34676         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
34677         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
34678         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
34679         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
34680         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
34681         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
34682         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
34683         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
34684         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
34685         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
34686         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
34687         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
34688         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
34689
34690 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
34691
34692         * sysdeps/generic/memcopy.h: Add comment for
34693         MEMCPY_OK_FOR_FWD_MEMMOVE.
34694
34695 2014-07-04  Will Newton  <will.newton@linaro.org>
34696
34697         * string/memchr.c: Merge from gnulib.
34698         [_LIBC]: Remove conditionals.
34699         (__ptr_t): Remove define.
34700         (LONG_MAX_32_BITS): Likewise.
34701         (LONG_MAX): Likewise.
34702         (MEMCHR): Use ANSI prototype and optimize algorithm.
34703
34704         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
34705
34706 2014-07-03  Roland McGrath  <roland@hack.frob.com>
34707
34708         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
34709         (lll_futex_timed_wait_bitset): Fix syscall argument count.
34710
34711         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
34712         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
34713         in a bare environment with no <stdlib.h> installed.
34714         * sysdeps/nptl/configure: Regenerated.
34715
34716         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
34717
34718         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
34719         AC_EGREP_CPP for kernel header checks, so they only succeed if
34720         including <linux/version.h> actually works right.
34721         * sysdeps/unix/sysv/linux/configure: Regenerated.
34722
34723         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
34724         value so it's not diagnosed as unused.
34725
34726         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
34727         thing) with "ifeq ($(subdir),rt)".
34728
34729 2014-07-03  Richard Henderson  <rth@redhat.com>
34730
34731         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
34732         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
34733         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
34734
34735         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
34736         (math_force_eval): New.
34737
34738         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
34739         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
34740
34741         * sysdeps/alpha/fpu/s_round.c: Remove file.
34742         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
34743
34744         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
34745         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
34746         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
34747         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
34748         (_dl_start, print_statistics): Likewise.
34749         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
34750         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
34751
34752         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34753         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34754         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34755         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34756         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34757         (HP_SMALL_TIMING_AVAIL): Define.
34758         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34759         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34760         (HP_SMALL_TIMING_AVAIL): Define.
34761         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34762         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34763
34764         * sysdeps/aarch64/hp-timing.h: New file.
34765
34766         * sysdeps/generic/hp-timing.h: Remove dead comment.
34767         * sysdeps/generic/hp-timing-common.h: New file.
34768         * sysdeps/alpha/hp-timing.h: Include it.
34769         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
34770         * sysdeps/i386/i686/hp-timing.h: Likewise.
34771         * sysdeps/ia64/hp-timing.h: Likewise.
34772         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34773         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34774         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34775         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34776         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
34777         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
34778         (hp_timing_t): New.
34779
34780         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
34781         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
34782         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
34783         * elf/rtld.c (_dl_start_final): Likewise.
34784         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
34785         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34786         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34787         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34788         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34789         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34790         (HP_TIMING_DIFF_INIT): Remove.
34791         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34792         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34793         (HP_TIMING_DIFF_INIT): Remove.
34794         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34795         * sysdeps/i386/i686/hp-timing.c: Remove file.
34796         * sysdeps/x86_64/hp-timing.c: Remove file.
34797         * sysdeps/ia64/hp-timing.c: Remove file.
34798         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
34799         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
34800         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
34801         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
34802
34803         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
34804         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
34805         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
34806         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34807         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34808         (HP_TIMING_ACCUM): Remove.
34809         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34810         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
34811         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34812
34813         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
34814         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
34815         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
34816         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
34817         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
34818         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34819         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
34820         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34821
34822         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
34823
34824 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
34825
34826         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
34827
34828 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34829
34830         Sync up with gettext.
34831         * intl/loadmsgcat.c: Define O_BINARY if not defined.
34832         [_MSC_VER]: Include malloc.h
34833         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
34834         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
34835         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
34836         TEMP_FAILURE_RETRY.  Cast return of alloca.
34837         [!_LIBC] Call gl_rwlock_init.
34838         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
34839
34840 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34841
34842         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
34843         before checking its value.
34844
34845 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34846
34847         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
34848
34849         * debug/memcpy_chk.c: Don't include pagecopy.h.
34850         * debug/mempcpy_chk.c: Likewise.
34851         * string/memcpy.c: Likewise.
34852         * string/memmove.c: Likewise.
34853         * sysdeps/powerpc/memmove.c: Likewise.
34854         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
34855         definition of PAGE_COPY_FWD_MAYBE here...
34856         * sysdeps/generic/pagecopy.h: ... from here.
34857         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
34858
34859 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34860             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34861
34862         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
34863         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
34864         optimizations.
34865         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34866         (__libc_ifunc_impl_list): Likewise.
34867         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
34868         multiarch strcat for PPC64.
34869         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
34870         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
34871
34872 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34873
34874         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
34875
34876 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34877
34878         * intl/loadmsgcat.c: Remove declaration of
34879         get_sysdep_segment_value.
34880         (get_sysdep_segment_value): Use ISO C style.
34881         (_nl_load_domain): Use ISO C style.  Get rid of redundant
34882         semicolon.  Fix typo and formatting in comment.
34883         (_nl_unload_domain): Use ISO C style.
34884
34885         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
34886
34887 2014-07-02  Will Newton  <will.newton@linaro.org>
34888
34889         * malloc/obstack.c: Merge from gnulib master.
34890         [HAVE_CONFIG_H]: Remove conditional code.
34891         [!_LIBC]: Include config.h.
34892         [!ELIDE_CODE]: Don't include inttypes.h, include
34893         stdint.h unconditionally.
34894         (print_and_abort): Mark as _Noreturn.
34895         (_obstack_allocated_p): Mark as __attribute_pure__.
34896         (obstack_free): Rename to __obstack_free.
34897         [!__attribute__]: Remove conditional code.
34898         * malloc/obstack.h: Merge from gnulib master.
34899         [__cplusplus]: Move conditional down.
34900         [!__attribute_pure__]: Define __attribute_pure__ here
34901         if it is not already defined.
34902         (_obstack_memory_used): Mark as __attribute_pure__.
34903         [!__obstack_free]: Define as obstack_free.
34904         [__GNUC__]: Remove check for ancient NeXT gcc.
34905
34906 2014-07-02  Will Newton  <will.newton@linaro.org>
34907             Paul Eggert  <eggert@cs.ucla.edu>
34908
34909         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
34910
34911 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34912
34913         * resolv/gethnamaddr.c: Add comment warning that the file is
34914         not maintained.
34915
34916 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
34917
34918         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
34919         entries.
34920
34921         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
34922         entry for aio_cancel and aio_cancel64.
34923         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
34924         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
34925         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
34926         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
34927         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
34928         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
34929         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
34930         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
34931         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
34932         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
34933         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
34934         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
34935         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
34936
34937 2014-07-01  Roland McGrath  <roland@hack.frob.com>
34938
34939         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
34940         * nptl/pthread_mutex_lock.c: Likewise.
34941         * nptl/pthread_mutex_timedlock.c: Likewise.
34942         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
34943
34944 2014-07-01  Richard henderson  <rth@redhat.com>
34945
34946         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
34947         (__isnan, __isnanl): Remove.
34948         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
34949
34950         * sysdeps/alpha/fpu/libm-test-ulps: Update.
34951
34952 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
34953
34954         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34955
34956 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34957
34958         * resolv/nss_dns/dns-host.c (getanswer_r)
34959         [MULTI_PTRS_ARE_ALIASES]: Remove code.
34960
34961 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
34962
34963         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34964         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
34965         undefine.
34966         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
34967         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
34968
34969 2014-07-01  Roland McGrath <roland@hack.frob.com>
34970
34971         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
34972         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
34973
34974         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
34975         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
34976
34977         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
34978         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
34979         ... here.
34980         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
34981         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
34982
34983         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
34984         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
34985         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
34986         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
34987
34988         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
34989         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
34990         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
34991         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
34992         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
34993         Moved ...
34994         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
34995         ... here.
34996         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
34997         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
34998         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
34999         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
35000         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
35001         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
35002         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
35003         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
35004         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
35005         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
35006         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
35007         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
35008         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
35009         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
35010         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
35011         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
35012         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
35013         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
35014         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
35015         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
35016         ... here.
35017         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
35018         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
35019         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
35020         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
35021         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
35022         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
35023         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
35024         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
35025
35026 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
35027
35028         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
35029         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
35030         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
35031         Add sysdep.
35032
35033 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35034
35035         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35036
35037 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35038
35039         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
35040         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35041
35042         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
35043
35044         * sysdeps/arm/libm-test-ulps: Regenerated.
35045
35046 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35047             Roland McGrath <roland@hack.frob.com>
35048
35049         * test-skeleton.c (signal_handler): Kill the whole process group
35050         before killing the child individually.
35051         (main): Report any failure on `setpgid'.
35052
35053 2014-06-30  Roland McGrath  <roland@hack.frob.com>
35054
35055         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
35056         from _TLS_H to _ARM_NPTL_TLS_H.
35057         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
35058         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
35059
35060 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35061
35062         [BZ #16539]
35063         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
35064         (__expm1l): Return argument unchanged when small but not
35065         subnormal.
35066
35067         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
35068         include macro name.
35069         (_FP_UNPACK_RAW_1_P): Likewise.
35070         (_FP_PACK_RAW_1): Likewise.
35071         (_FP_PACK_RAW_1_P): Likewise.
35072         (_FP_MUL_MEAT_1_wide): Likewise.
35073         (_FP_MUL_MEAT_DW_1_hard): Likewise.
35074         (_FP_MUL_MEAT_1_hard): Likewise.
35075         (_FP_DIV_MEAT_1_imm): Likewise.
35076         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
35077         (_FP_DIV_MEAT_1_udiv): Likewise.
35078         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
35079         (_FP_UNPACK_RAW_2): Likewise.
35080         (_FP_UNPACK_RAW_2_P): Likewise.
35081         (_FP_PACK_RAW_2): Likewise.
35082         (_FP_PACK_RAW_2_P): Likewise.
35083         (_FP_MUL_MEAT_DW_2_wide): Likewise.
35084         (_FP_MUL_MEAT_2_wide): Likewise.
35085         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
35086         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
35087         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
35088         (_FP_MUL_MEAT_2_gmp): Likewise.
35089         (_FP_DIV_MEAT_2_udiv): Likewise.
35090         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
35091         (_FP_FRAC_SRL_4): Likewise.
35092         (_FP_FRAC_SRST_4): Likewise.
35093         (_FP_FRAC_SRS_4): Likewise.
35094         (_FP_UNPACK_RAW_4): Likewise.
35095         (_FP_UNPACK_RAW_4_P): Likewise.
35096         (_FP_PACK_RAW_4): Likewise.
35097         (_FP_PACK_RAW_4_P): Likewise.
35098         (_FP_MUL_MEAT_DW_4_wide): Likewise.
35099         (_FP_MUL_MEAT_4_wide): Likewise.
35100         (_FP_MUL_MEAT_4_gmp): Likewise.
35101         (umul_ppppmnnn): Likewise.
35102         (_FP_DIV_MEAT_4_udiv): Likewise.
35103         (__FP_FRAC_ADD_4): Likewise.
35104         (__FP_FRAC_SUB_3): Likewise.
35105         (__FP_FRAC_SUB_4): Likewise.
35106         (__FP_FRAC_DEC_3): Likewise.
35107         (__FP_FRAC_DEC_4): Likewise.
35108         (__FP_FRAC_ADDI_4): Likewise.
35109         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
35110         (_FP_FRAC_SRL_8): Likewise.
35111         (_FP_FRAC_SRS_8): Likewise.
35112
35113         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
35114         include macro name.
35115         (FP_UNPACK_RAW_EP): Likewise.
35116         (FP_PACK_RAW_E): Likewise.
35117         (FP_PACK_RAW_EP): Likewise.
35118         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
35119         (_FP_ISSIGNAN): Likewise.
35120         (_FP_ADD_INTERNAL): Likewise.
35121         (_FP_FMA): Likewise.
35122         (_FP_CMP): Likewise.
35123         (_FP_SQRT): Likewise.
35124         (_FP_TO_INT): Likewise.
35125         (_FP_FROM_INT): Likewise.
35126         (FP_EXTEND): Likewise.
35127         (_FP_DIV_MEAT_N_loop): Likewise.
35128
35129 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35130
35131         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
35132         throughout.
35133
35134 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
35135
35136         [BZ #17097]
35137         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
35138         result with correct sign in case of exponents that produce
35139         overflow except for X very close to 1.
35140
35141 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
35142
35143         mktime: merge #if/#ifdef usage from glibc
35144         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
35145         as that works with both Glibc's and Gnulib's style.
35146         See thread starting at Siddhesh Poyarekar's bug report at:
35147         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
35148
35149 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35150
35151         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
35152         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
35153         * sysdeps/tile/tilegx/memmove.c: Remove file.
35154
35155 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35156
35157         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
35158         abi-name definition.
35159         * scripts/soversions.awk: Do not handle or generate ABI lines.
35160         * shlib-versions: Remove ABI entries.
35161         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
35162         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
35163
35164 2014-06-27  Roland McGrath  <roland@hack.frob.com>
35165
35166         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
35167         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
35168         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
35169         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
35170         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
35171         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
35172         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
35173         Moved ...
35174         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
35175         ... here.
35176         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
35177         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
35178         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
35179         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
35180         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
35181         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
35182         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
35183         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
35184         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
35185         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
35186         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
35187         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
35188         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
35189         Moved ...
35190         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
35191         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
35192         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
35193         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
35194         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
35195         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
35196         Moved ...
35197         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
35198         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
35199         Moved ...
35200         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
35201         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
35202         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
35203         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
35204         Moved ...
35205         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
35206         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
35207         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
35208         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
35209         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
35210         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
35211         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
35212         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
35213         Moved ...
35214         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
35215         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
35216         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
35217         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
35218         Moved ...
35219         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
35220         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
35221         Moved ...
35222         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
35223         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
35224         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
35225         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
35226         Moved ...
35227         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
35228         ... here.
35229         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
35230         Identical file removed.
35231         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
35232         Moved ...
35233         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
35234         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
35235         Identical file removed.
35236         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
35237         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
35238         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
35239         Moved ...
35240         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
35241         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
35242         Identical file removed.
35243         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
35244         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
35245         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
35246         Identical file removed.
35247         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
35248         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
35249         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
35250         Identical file removed.
35251         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
35252         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
35253         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
35254         Identical file removed.
35255         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
35256         Moved ...
35257         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
35258         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
35259         Identical file removed.
35260         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
35261         Moved ...
35262         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
35263         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
35264         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
35265         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
35266         Identical file removed.
35267         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
35268         Moved ...
35269         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
35270         ... here.
35271         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
35272         Identical file removed.
35273         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
35274         Moved ...
35275         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
35276         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
35277         Identical file removed.
35278         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
35279         Moved ...
35280         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
35281         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
35282         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
35283         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
35284         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
35285         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
35286         Moved ...
35287         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
35288         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
35289         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
35290
35291         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
35292         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
35293         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
35294         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
35295         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
35296
35297 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
35298
35299         [BZ #17092]
35300         * nscd/nscd.c (monitor_child): Return exit status of child
35301         instead of return value from wait syscall.
35302
35303 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35304
35305         * configure.ac (libc_commonpagesize): Remove variable.
35306         (libc_relro_required): Likewise.
35307         (libc_cv_z_relro): Remove configure test.
35308         * configure: Regenerated.
35309         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
35310         variable.
35311         (libc_relro_required): Likewise.
35312         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
35313         (libc_relro_required): Likewise.
35314         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
35315         (libc_relro_required): Likewise.
35316         * sysdeps/arm/preconfigure: Regenerated.
35317         * sysdeps/ia64/preconfigure: Remove file.
35318         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
35319         variable.
35320         (libc_relro_required): Likewise.
35321
35322         [BZ #16561]
35323         [BZ #16562]
35324         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
35325         (__ieee754_yn): Set FE_TONEAREST mode internally and then
35326         recompute overflowing results in original rounding mode.
35327         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
35328         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
35329         recompute overflowing results in original rounding mode.
35330         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
35331         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35332         recompute overflowing results in original rounding mode.
35333         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
35334         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35335         recompute overflowing results in original rounding mode.
35336         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
35337         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35338         recompute overflowing results in original rounding mode.
35339         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
35340         (libc_feholdsetround_ctx): New macro.
35341         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
35342         * sysdeps/i386/fpu/libm-test-ulps: Update.
35343         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
35344
35345 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35346
35347         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
35348         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
35349         corresponding .cpsetup call.
35350
35351 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35352
35353         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
35354         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
35355         * sysdeps/arm/Makefile [$(subdir) = csu]
35356         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
35357         (static-only-routines): Add aeabi_read_tp here.
35358         (shared-only-routines): Add libc-aeabi_read_tp here.
35359         (CFLAGS-libc-start.c): Add -fexceptions here.
35360         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
35361         (sysdep_routines, static-only-routines, shared-only-routines):
35362         Don't add to these here.
35363         (CFLAGS-libc-start.c): Likewise.
35364
35365         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
35366         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
35367         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
35368         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
35369         * sysdeps/arm/Makefile [$(subdir) = rt]
35370         (librt-sysdep_routines, librt-shared-only-routines):
35371         Append rt-aeabi_unwind_cpp_pr1 here.
35372         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
35373         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
35374         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
35375         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35376         Append nptl-aeabi_unwind_cpp_pr1 here.
35377         (tests): Filter out tst-cleanupx4 here.
35378         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
35379         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
35380         Don't do those here.
35381
35382 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35383
35384         * scripts/list-sources.sh: Do not handle ports specially.
35385
35386 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35387
35388         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
35389         * sysdeps/arm/feupdateenv.c: Likewise.
35390
35391         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
35392
35393 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35394
35395         * manual/texinfo.tex: Update to version 2014-05-05.10 with
35396         trailing whitespace removed.
35397         * scripts/config.guess: Update to version 2014-03-23.
35398         * scripts/config.sub: Update to version 2014-05-01
35399         * scripts/install-sh: Update to version 2013-12-25.23.
35400         * scripts/move-if-change: Update from gnulib.
35401
35402 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35403
35404         * debug/memmove_chk.c: Remove pagecopy.h include.
35405
35406 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35407
35408         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
35409         identical to gnulib mktime.
35410
35411 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35412
35413         * configure.ac: Do not test for machine being rs6000.  Do not test
35414         for powerpc*-*soft.
35415         * configure: Regenerated.
35416
35417         [BZ #11505]
35418         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
35419         test.
35420         * configure: Regenerated.
35421         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
35422         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
35423         Remove configure test.
35424         * sysdeps/arm/configure: Regenerated.
35425         * sysdeps/nptl/configure.ac: Do not check
35426         libc_cv_asm_cfi_directives.
35427         * sysdeps/nptl/configure: Regenerated.
35428         * sysdeps/x86_64/nptl/configure.ac: Remove file.
35429         * sysdeps/x86_64/nptl/configure: Remove generated file.
35430         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
35431         unconditional.
35432         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
35433
35434 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35435
35436         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
35437         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
35438         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
35439         it is defined.
35440
35441         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
35442         instead of whether it is defined.
35443         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
35444         * sysdeps/hppa/dl-machine.h: Likewise.
35445         * sysdeps/ia64/dl-machine.h: Likewise.
35446         * sysdeps/m68k/dl-machine.h: Likewise.
35447         * sysdeps/microblaze/dl-machine.h: Likewise.
35448         * sysdeps/mips/dl-machine.: Likewise.
35449         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
35450         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
35451         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
35452         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
35453         * sysdeps/sh/dl-machine.h: Likewise.
35454         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35455         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35456         * sysdeps/tile/dl-machine.h: Likewise.
35457         * sysdeps/x86_64/dl-machine.h: Likewise.
35458
35459         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
35460         code.
35461         (verify_persistent_db): Likewise.
35462
35463 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35464
35465         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
35466         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
35467         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
35468         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
35469         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35470         Moved ...
35471         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
35472         ... here.
35473         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
35474         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
35475         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
35476         Identical file removed.
35477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
35478         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
35479         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
35480         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
35481         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
35482         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
35483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
35484         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
35485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
35486         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
35487         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35488         Moved ...
35489         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
35490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35491         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
35492         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
35493         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
35494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35495         Moved ...
35496         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
35497         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
35498         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
35499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
35500         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
35501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
35502         Identical file removed.
35503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
35504         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
35505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
35506         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
35507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35508         Moved ...
35509         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
35510         ... here.
35511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
35512         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
35513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
35514         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
35515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
35516         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
35517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
35518         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
35519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
35520         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
35521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35522         Moved ...
35523         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
35524         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
35525         Moved ...
35526         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
35527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
35528         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
35529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35530         Moved ...
35531         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
35532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
35533         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
35534
35535         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
35536         folded into ...
35537         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
35538         * sysdeps/unix/sysv/linux/s390/Versions
35539         (libpthread: GLIBC_2.19): New version set.
35540         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
35541         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
35542         (librt: GLIBC_2.3.3): New version set.
35543         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
35544         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
35545         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
35546         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
35547         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
35548         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
35549         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
35550         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
35551         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
35552         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
35553         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
35554         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
35555         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
35556         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
35557         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
35558         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
35559         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
35560         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
35561         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
35562         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
35563         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
35564         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
35565         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
35566         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35567         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
35568         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
35569         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
35570         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
35571         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
35572         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
35573         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
35574         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
35575         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
35576         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
35577         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
35578         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
35579         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
35580         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
35581         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
35582         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
35583         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
35584         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
35585         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
35586         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
35587         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
35588
35589         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
35590         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
35591         (__libc_vfork): Define the function under this name.
35592         [!NOT_IN_libc] (__vfork): Make this an alias.
35593         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35594         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
35595         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
35596         (__libc_vfork): Define the function under this name.
35597         [!NOT_IN_libc] (__vfork): Make this an alias.
35598         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35599         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
35600         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
35601         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
35602         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
35603         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
35604
35605         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
35606         code that was previously under [RESET_PID].
35607         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
35608         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
35609         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
35610
35611         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
35612         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
35613         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
35614         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
35615         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
35616         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
35617         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
35618         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
35619         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
35620         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
35621         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
35622         Moved ...
35623         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
35624         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
35625         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
35626         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
35627         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
35628         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
35629         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
35630         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
35631         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
35632         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
35633         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
35634         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
35635         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
35636         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
35637         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
35638         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
35639         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
35640         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
35641         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
35642         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
35643         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
35644         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
35645         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
35646         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
35647         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
35648         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
35649         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
35650         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
35651         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
35652
35653 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35654
35655         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
35656         that was previously under [RESET_PID].
35657         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
35658
35659 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35660
35661         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
35662         not undefine and redefine.
35663         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
35664         [O_CLOEXEC]: Make code unconditional.
35665         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
35666         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
35667         <kernel-features.h>.
35668         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
35669         conditional variable definition.
35670         (shm_open) [O_CLOEXEC]: Make code unconditional.
35671         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
35672         code.
35673
35674         * configure.ac (USE_REGPARMS): Don't define here.
35675         * configure: Regenerated.
35676         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
35677         * sysdeps/i386/configure: Regenerated.
35678
35679         * nptl/createthread.c: Don't include kernel-features.h.
35680         * nptl/pthread_cancel.c: Likewise.
35681         * nptl/pthread_condattr_setclock.c: Likewise.
35682         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
35683         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
35684         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
35685         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
35686         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
35687         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
35688         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
35689         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
35690         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
35691         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
35692         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
35693         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
35694         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
35695         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
35696         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
35697         * nscd/gai.c: Likewise.
35698         * nss/nss_db/db-open.c: Likewise.
35699         * sysdeps/generic/ldsodefs.h: Likewise.
35700         * sysdeps/sh/nptl/tls.h: Likewise.
35701         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35702         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
35703         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
35704         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
35705         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
35706         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35707         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
35708         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
35709         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
35710         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35711         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35712         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
35713         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
35714         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
35715         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
35716         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
35717         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
35718         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
35719         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
35720         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
35721         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
35722         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
35723         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
35724         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
35725         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
35726         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
35727         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
35728         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
35729         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
35730         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
35731         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
35732         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
35733         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35734         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
35735         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
35736         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35737         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
35738         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
35739         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
35740         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
35741         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
35742         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
35743         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
35744         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
35745         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
35746         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
35747         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
35748         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
35749         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
35750         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
35751         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
35752         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
35753         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
35754         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
35755         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
35756         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
35757         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
35758         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
35759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
35760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
35761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
35762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
35763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
35764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
35765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
35766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
35767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
35768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
35769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
35770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
35771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
35772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
35773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
35774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
35775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
35776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
35777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
35778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
35779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
35780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
35781         * sysdeps/unix/sysv/linux/pread.c: Likewise.
35782         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
35783         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
35784         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
35785         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
35786         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
35787         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
35788         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
35789         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
35790         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
35791         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
35792         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
35793         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
35794         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
35795         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
35796         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
35797         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
35798         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
35799         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
35800         * sysdeps/unix/sysv/linux/system.c: Likewise.
35801         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
35802         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
35803         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35804         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35805         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
35806         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
35807         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
35808
35809         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
35810         * configure: Regenerated.
35811         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
35812
35813         * configure.ac (base_machine): Do not set specially for particular
35814         machines here.
35815         * configure: Regenerated.
35816         * sysdeps/powerpc/preconfigure: Move machine and base_machine
35817         settings from configure.ac.
35818         * sysdeps/i386/preconfigure: New file.
35819         * sysdeps/s390/preconfigure: Likewise.
35820         * sysdeps/sh/preconfigure: Likewise.
35821         * sysdeps/sparc/preconfigure: Likewise.
35822
35823 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35824
35825         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
35826         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
35827         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
35828         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
35829         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
35830         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
35831         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
35832         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
35833         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
35834         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
35835         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
35836         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
35837         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
35838         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
35839         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
35840         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
35841         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
35842         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
35843         * sysdeps/sparc/sparc64/Makefile: ... appended here.
35844
35845         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
35846         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
35847         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
35848         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
35849         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
35850         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
35851         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
35852         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
35853         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
35854         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
35855         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
35856         * sysdeps/sparc/sparc32/sem_post.c: ... here.
35857         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
35858         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
35859         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
35860         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
35861         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
35862         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
35863         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
35864         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
35865         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
35866         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
35867         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
35868         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
35869         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
35870         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
35871         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
35872         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
35873         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
35874         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
35875         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
35876         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
35877         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
35878         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
35879         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
35880         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
35881         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
35882         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
35883
35884         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
35885         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
35886         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
35887         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
35888         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35889         Moved ...
35890         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
35891         ... here.
35892         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
35893         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
35894         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
35895         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
35896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
35897         Moved ...
35898         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
35899         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
35900         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
35901         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
35902         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
35903         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
35904         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
35905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35906         Moved ...
35907         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
35908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35909         Moved ...
35910         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
35911         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
35912         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
35913         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35914         Moved ...
35915         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
35916         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
35917         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
35918         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
35919         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
35920         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
35921         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
35922         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
35923         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
35924         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35925         Moved ...
35926         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
35927         ... here.
35928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
35929         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
35930         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
35931         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
35932         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
35933         Moved ...
35934         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
35935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
35936         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
35937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
35938         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
35939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
35940         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
35941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35942         Moved ...
35943         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
35944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35945         Moved ...
35946         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
35947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
35948         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
35949         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35950         Moved ...
35951         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
35952         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
35953         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
35954         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
35955         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
35956
35957 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35958
35959         * timezone/checktab.awk: Update from tzcode 2014e.
35960         * timezone/private.h: Likewise.
35961         * timezone/tzfile.h: Likewise.
35962         * timezone/zdump.c: Likewise.
35963         * timezone/zic.c: Likewise.
35964
35965         * sysdeps/unix/sysv/linux/kernel-features.h
35966         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
35967         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
35968         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
35969         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
35970         Remove conditional code.
35971
35972 2014-06-25  Will Newton  <will.newton@linaro.org>
35973
35974         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
35975         (_dl_arm_cap_flags): Add HWCAP2 values.
35976         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
35977         (_DL_HWCAP_COUNT): Increase to 37.
35978         (_DL_HWCAP_LAST): New define.
35979         (_DL_HWCAP2_LAST): New define.
35980         (_dl_procinfo): Add support for printing
35981         AT_HWCAP2 entries.
35982         (_dl_string_hwcap): Use _dl_hwcap_string.
35983
35984 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35985
35986         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35987
35988 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35989
35990         * README: Do not mention ports directory.
35991
35992         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
35993         Remove macro.
35994         * sysdeps/unix/sysv/linux/futimes.c: Do not include
35995         <kernel-features.h>.
35996         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
35997         conditional variable definition.
35998         (__futimes): Update comment.
35999         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
36000         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
36001
36002         [BZ #16560]
36003         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
36004         arguments close to 0.
36005         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
36006         Likewise.
36007         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
36008         Likewise.
36009         * math/auto-libm-test-in: Add more tests of exp10.
36010         * math/auto-libm-test-out: Regenerated.
36011         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36012
36013         * sysdeps/unix/sysv/linux/kernel-features.h
36014         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
36015         * sysdeps/unix/sysv/linux/readv.c: Do not include
36016         <kernel-features.h>.
36017         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36018         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36019         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36020         unconditional.
36021         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36022         conditional code.
36023         * sysdeps/unix/sysv/linux/writev.c: Do not include
36024         <kernel-features.h>.
36025         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36026         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36027         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36028         unconditional.
36029         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36030         conditional code.
36031
36032 2014-06-25  Will Newton  <will.newton@linaro.org>
36033
36034         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
36035         comment changes throughout the file.  Remove checks
36036         for HAVE_*_H definitions that are not required.
36037         (__gen_tempname): Call abort if an unknown kind value is
36038         passed.
36039
36040 2014-06-25  Andreas Schwab  <schwab@suse.de>
36041
36042         [BZ #17086]
36043         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
36044         scalbln, scalblnf, scalblnl in libc.
36045
36046 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36047
36048         [BZ #17086]
36049         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
36050         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36051         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36052
36053 2014-06-24  Roland McGrath  <roland@hack.frob.com>
36054
36055         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
36056         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
36057         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
36058         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
36059         Update #include.
36060         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
36061         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
36062         Update #include.
36063         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
36064         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
36065         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
36066         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
36067         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
36068         * sysdeps/x86/bits/pthreadtypes.h: ... here.
36069         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
36070         * sysdeps/x86/bits/semaphore.h: ... here.
36071         * sysdeps/x86/nptl/elide.h: Moved ...
36072         * sysdeps/x86/elide.h: ... here.
36073         * sysdeps/x86_64/nptl/Implies: File removed.
36074         * sysdeps/i386/nptl/Implies: File removed.
36075
36076 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
36077
36078         [BZ #16539]
36079         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
36080         return the argument for normal arguments with exponent below -64.
36081         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
36082         Likewise.
36083         * math/auto-libm-test-in: Add another test of expm1.
36084         * math/auto-libm-test-out: Regenerated.
36085
36086         [BZ #16287]
36087         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
36088         calling __erfcl for arguments at least 16.
36089         * math/auto-libm-test-in: Add more tests of erf.
36090         * math/auto-libm-test-out: Regenerated.
36091
36092         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
36093         individual architectures.
36094         * sysdeps/unix/sysv/linux/configure: Regenerated.
36095         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
36096         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
36097         * sysdeps/unix/sysv/linux/powerpc/configure.ac
36098         (ldd_rewrite_script): Define variable.
36099         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
36100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
36101         file.
36102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
36103         generated file.
36104         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
36105         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
36106         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
36107         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
36108         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
36109         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
36110         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
36111         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
36112
36113 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36114
36115         [BZ #17084]
36116         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
36117         Rename member __data.d to __data.__elision_data.
36118
36119 2014-06-24  Wilco  <wdijkstr@arm.com>
36120
36121         * NEWS: Add 16918 to fixed bug list.
36122
36123 2014-06-24  Wilco  <wdijkstr@arm.com>
36124
36125         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
36126
36127 2014-06-24  Wilco  <wdijkstr@arm.com>
36128
36129         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
36130         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
36131         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
36132         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
36133         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
36134         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
36135         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
36136         Use _FPU_MASK_RM.
36137
36138 2014-06-24  Wilco  <wdijkstr@arm.com>
36139
36140         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
36141
36142 2014-06-24  Wilco  <wdijkstr@arm.com>
36143
36144         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
36145         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
36146         * sysdeps/arm/fesetround.c (fesetround): Remove space.
36147         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
36148
36149 2014-06-24  Wilco  <wdijkstr@arm.com>
36150
36151         [BZ #16918]
36152         * sysdeps/arm/feupdateenv.c (feupdateenv):
36153         Rewrite to reduce FPSCR accesses and fix return value.
36154
36155 2014-06-24  Wilco  <wdijkstr@arm.com>
36156
36157         * sysdeps/arm/fclrexcpt.c (feclearexcept):
36158         Optimize to avoid unnecessary FPSCR writes.
36159         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
36160         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
36161         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
36162         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
36163
36164 2014-06-24  Wilco  <wdijkstr@arm.com>
36165
36166         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
36167         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
36168         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
36169         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
36170         Call libc_fetestexcept_vfp.
36171         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
36172         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
36173         __SOFTFP__ ifdef so that they can be built for softfp.
36174
36175 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36176
36177         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
36178         argument type signed char.
36179
36180         * Makerules (check-abi): Dump diff of symlist if the test
36181         fails.
36182
36183 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36184
36185         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
36186         using abort.
36187
36188         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
36189         Remove unused variable ST.
36190
36191 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36192
36193         [BZ #16354]
36194         [BZ #17061]
36195         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
36196         small arguments before calling __expm1.
36197         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
36198         small arguments before calling __expm1f.
36199         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
36200         small arguments before calling __expm1l.
36201         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
36202         Likewise.
36203         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
36204         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
36205         spurious underflow for some cosh tests.
36206         * math/auto-libm-test-out: Regenerated.
36207         * sysdeps/i386/fpu/libm-test-ulps: Update.
36208
36209         [BZ #17050]
36210         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
36211         (__ieee754_y1): Set errno if return value overflows.
36212         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
36213         (__ieee754_y1f): Set errno if return value overflows.
36214         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
36215         (__ieee754_y1l): Set errno if return value overflows.
36216         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
36217         (__ieee754_y1l): Set errno if return value overflows.
36218         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
36219         * math/auto-libm-test-out: Regenerated.
36220
36221         * math/gen-auto-libm-tests.c: Document use of
36222         ignore-zero-inf-sign.
36223         (input_flag_type): Add value flag_ignore_zero_inf_sign.
36224         (input_flags): Add ignore-zero-inf-sign.
36225         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
36226         * math/gen-libm-test.pl (generate_testfile): Handle
36227         ignore-zero-inf-sign.
36228         * math/auto-libm-test-in: Mark some cpow tests with
36229         ignore-zero-inf-sign and some with xfail-rounding.
36230         * math/auto-libm-test-out: Regenerated.
36231         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
36232         * sysdeps/i386/fpu/libm-test-ulps: Update.
36233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36234
36235         [BZ #16315]
36236         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
36237         overflowing or underflowing operations take place with sign of
36238         result.
36239         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36240         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
36241         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
36242         (__ieee754_pow): Recompute overflowing and underflowing results in
36243         original rounding mode.
36244         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
36245         (__powl_helper): Allow negative argument X and scale negated value
36246         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
36247         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
36248         overflowing or underflowing operations take place with sign of
36249         result.
36250         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
36251         Include <math.h>.
36252         * math/auto-libm-test-in: Add more tests of pow.
36253         * math/auto-libm-test-out: Regenerated.
36254         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
36255         (pow_tonearest_test_data): Remove.
36256         (pow_test_tonearest): Likewise.
36257         (pow_towardzero_test_data): Likewise.
36258         (pow_test_towardzero): Likewise.
36259         (pow_downward_test_data): Likewise.
36260         (pow_test_downward): Likewise.
36261         (pow_upward_test_data): Likewise.
36262         (pow_test_upward): Likewise.
36263         (main): Don't call removed functions.
36264         * sysdeps/i386/fpu/libm-test-ulps: Update.
36265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36266
36267 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36268
36269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
36270         Moved ...
36271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
36272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36273         Moved ...
36274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
36275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
36276         Moved ...
36277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
36278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
36279         Moved ...
36280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
36281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
36282         File removed.
36283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
36284         File removed.
36285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
36286         File removed.
36287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
36288         File removed.
36289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
36290         File removed.
36291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
36292         File removed.
36293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
36294         File removed.
36295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
36296         File removed.
36297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
36298         File removed.
36299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36300         File removed.
36301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
36302         File removed.
36303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
36304         File removed.
36305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
36306         Moved ...
36307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
36308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
36309         Moved ...
36310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
36311         ... here.
36312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
36313         Moved ...
36314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
36315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
36316         Moved ...
36317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
36318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
36319         Moved ...
36320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
36321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
36322         Moved ...
36323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
36324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
36325         Moved ...
36326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
36327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
36328         Moved ...
36329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
36330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
36331         Moved ...
36332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
36333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
36334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
36335         ... here.
36336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
36337         Moved ...
36338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
36339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
36340         Moved ...
36341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
36342         ... here.
36343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
36344         Moved ...
36345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
36346         ... here.
36347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
36348         Moved ...
36349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
36350         ... here.
36351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
36352         Moved ...
36353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
36354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
36355         Moved ...
36356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
36357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
36358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
36359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
36360         Moved ...
36361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
36362         ... here.
36363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36364         Moved ...
36365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
36366         ... here.
36367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
36368         Moved ...
36369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
36370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36371         Moved ...
36372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
36373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
36374         Moved ...
36375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
36376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36377         Moved ...
36378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
36379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
36380         Moved ...
36381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
36382         ... here.
36383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36384         Moved ...
36385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
36386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
36387         Moved ...
36388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
36389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36390         Moved ...
36391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
36392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
36393         Moved ...
36394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
36395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
36396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
36397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
36398         Moved ...
36399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
36400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36401         Moved ...
36402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
36403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
36404         Moved ...
36405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
36406         ... here.
36407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36408         Moved ...
36409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
36410         ... here.
36411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
36412         Moved ...
36413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
36414         ... here.
36415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36416         Moved ...
36417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
36418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
36419         Moved ...
36420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
36421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36422         Moved ...
36423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
36424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
36425         Moved ...
36426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
36427         ... here.
36428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36429         Moved ...
36430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
36431         ... here.
36432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
36433         Moved ...
36434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
36435         ... here.
36436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36437         Moved ...
36438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
36439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36440         Moved ...
36441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
36442
36443 2014-06-23  Will Newton  <will.newton@linaro.org>
36444             Wilco  <wdijkstr@arm.com>
36445
36446         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
36447         implementation.  Include get-rounding-mode.h.
36448         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
36449         [!libc_feholdsetround_noex_ctx]: Define
36450         libc_feholdsetround_noex_ctx.
36451         [!libc_feholdsetround_noexf_ctx]: Define
36452         libc_feholdsetround_noexf_ctx.
36453         [!libc_feholdsetround_noexl_ctx]: Define
36454         libc_feholdsetround_noexl_ctx.
36455         (libc_feholdsetround_ctx): New function.
36456         (libc_feresetround_ctx): New function.
36457         (libc_feholdsetround_noex_ctx): New function.
36458         (libc_feresetround_noex_ctx): New function.
36459
36460 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36461
36462         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
36463         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
36464         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
36465         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
36466         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
36467         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
36468
36469         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
36470         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
36471         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
36472         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
36473         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
36474         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
36475         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
36476         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
36477         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36478         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
36479         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
36480         Moved ...
36481         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
36482         ... here.
36483         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
36484         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
36485         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
36486         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
36487         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
36488         Moved ...
36489         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
36490         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
36491         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
36492         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
36493         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
36494         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
36495         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
36496         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
36497         Moved ...
36498         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
36499         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
36500         Moved ...
36501         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
36502         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
36503         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
36504         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
36505         Moved ...
36506         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
36507         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
36508         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
36509         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
36510         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
36511         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
36512         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
36513         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
36514         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
36515         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
36516         Moved ...
36517         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
36518         ... here.
36519         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
36520         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
36521         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
36522         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
36523         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
36524         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
36525         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
36526         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
36527         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
36528         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
36529         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
36530         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
36531         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
36532         Moved ...
36533         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
36534         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
36535         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
36536         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
36537         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
36538         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
36539         Moved ...
36540         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
36541         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
36542         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
36543         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
36544         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
36545
36546         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
36547         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
36548         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
36549         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
36550         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
36551         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
36552         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
36553         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
36554         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
36555         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
36556         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
36557         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
36558         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
36559         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
36560         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
36561         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
36562         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
36563         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
36564         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
36565         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
36566         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
36567         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
36568         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
36569         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
36570         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
36571         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
36572         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
36573         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
36574
36575 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36576
36577         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36578         (FALLOC_FL_COLLAPSE_RANGE): New macro.
36579         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
36580         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
36581         (IPV6_PMTUDISC_INTERFACE): Likewise.
36582         (IPV6_PMTUDISC_OMIT): Likewise.
36583
36584 2014-06-23  Andreas Schwab  <schwab@suse.de>
36585
36586         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
36587         Remove unused errout label.
36588
36589 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36590
36591         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
36592         macro: hardware supports Vector Crypto instructions.
36593
36594 2014-06-23  Will Newton  <will.newton@linaro.org>
36595
36596         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
36597         rather than __builtin_expect.
36598
36599         * elf/dl-lookup.c (undefined_msg): Remove variable.
36600         (_dl_lookup_symbol_x): Replace undefined_msg with string
36601         literal.
36602
36603         * elf/dl-lookup.c (do_lookup_unique): New function.
36604         (do_lookup_x): Move STB_GNU_UNIQUE handling code
36605         to a separate function.
36606
36607 2014-06-23  Andreas Schwab  <schwab@suse.de>
36608
36609         [BZ #17079]
36610         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
36611         before reading the next line.
36612
36613 2014-06-23  Will Newton  <will.newton@linaro.org>
36614
36615         * test-skeleton.c (signal_handler): Use printf and %m
36616         rather than perror.  Use printf rather than fprintf to
36617         stderr.  Use puts rather than fputs to stderr.
36618         (main): Likewise.
36619
36620 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
36621
36622         * nscd/nscd.c (thread_info_t): Remove typedef.
36623         (thread_info): Remove variable.
36624
36625 2014-06-21  Allan McRae  <allan@archlinux.org>
36626
36627         * NEWS: Mention CVE-2014-4043.
36628
36629 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36630
36631         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
36632         * nptl/smp.h: ... here.
36633
36634         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
36635
36636         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
36637         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
36638         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
36639         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
36640
36641         * nptl/allocatestack.c: Include <stack-aliasing.h>.
36642         * nptl/stack-aliasing.h: New file.
36643         * sysdeps/i386/i686/stack-aliasing.h: New file.
36644         * sysdeps/i386/i686/nptl/Makefile: File removed.
36645         * sysdeps/x86_64/stack-aliasing.h: New file.
36646         * sysdeps/x86_64/nptl/Makefile
36647         (CFLAGS-pthread_create.c): Variable removed.
36648
36649         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
36650         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
36651         old file.
36652         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
36653         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
36654         old file.
36655
36656 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
36657
36658         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36659         (__ASSUME_SIGFRAME_V2): Remove macro.
36660         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
36661         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
36662         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
36663         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
36664         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
36665         Declare as function.  Remove conditional macro definitions.
36666         (__default_rt_sa_restorer): Likewise.
36667         (__default_sa_restorer_v1): Remove declaration.
36668         (__default_sa_restorer_v2): Likewise.
36669         (__default_rt_sa_restorer_v1): Likewise.
36670         (__default_rt_sa_restorer_v2): Likewise.
36671         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
36672         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
36673         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
36674
36675 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36676
36677         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
36678         (libpthread-routines): Add sysdep.
36679         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
36680         * sysdeps/unix/sysv/linux/sparc/Versions
36681         (libpthread: GLIBC_2.3.3): New version set.
36682         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
36683         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
36684         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
36685         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
36686         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
36687         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
36688         Moved ...
36689         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
36690         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
36691         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
36692         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
36693         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
36694         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
36695         * sysdeps/sparc/nptl/sem_init.c: ... here.
36696         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
36697         * sysdeps/sparc/nptl/sem_post.c: ... here.
36698         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
36699         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
36700         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
36701         * sysdeps/sparc/nptl/sem_wait.c: ... here.
36702         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
36703         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
36704         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
36705         (libpthread-routines): Add cpu_relax.
36706         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
36707         File removed.
36708         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
36709         (librt: GLIBC_2.3.3): New version set.
36710         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
36711         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
36712         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
36713         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
36714         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
36715         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
36716         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
36717         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
36718         Moved ...
36719         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
36720         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
36721         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
36722         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
36723         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
36724         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
36725         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
36726         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
36727         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
36728         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
36729         Moved ...
36730         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
36731         Update #include.
36732         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
36733         Moved ...
36734         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
36735         Update #include.
36736         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
36737         Moved ...
36738         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
36739         Update #include.
36740         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
36741         Moved ...
36742         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
36743         Update #include.
36744         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
36745         Moved ...
36746         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
36747         Update #include.
36748         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
36749         Moved ...
36750         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
36751         Update #include.
36752         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
36753         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
36754         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
36755         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
36756         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
36757         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
36758         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
36759         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
36760         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
36761         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
36762         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36763         Moved ...
36764         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
36765         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
36766         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
36767         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
36768         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
36769
36770 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36771
36772         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
36773         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
36774         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
36775         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
36776         * nscd/nscd.c: Likewise.
36777         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
36778         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
36779         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
36780         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
36781
36782         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
36783         <kernel-features.h>.
36784         (init_mq_netlink): Remove conditional have_sock_cloexec
36785         definitions.  Remove code conditional on have_sock_cloexec < 0.
36786         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
36787         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
36788         * sysdeps/unix/sysv/linux/opensock.c: Do not include
36789         <kernel-features.h>.
36790         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
36791         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
36792
36793 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36794
36795         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
36796         Add tests for memset_chk and memset.
36797
36798         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
36799         with AVX2_Usable.
36800
36801 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36802
36803         [BZ #16046]
36804         * elf/tst-dl-iter-static.c: New file.
36805         * elf/Makefile (tests-static): Add tst-dl-iter-static.
36806
36807         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
36808         error.
36809
36810 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36811
36812         * sysdeps/unix/sysv/linux/kernel-features.h
36813         (__ASSUME_F_GETOWN_EX): Remove macro.
36814         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
36815         <kernel-features.h>.
36816         (miss_F_GETOWN_EX): Remove variable or macro.
36817         (do_fcntl): Do not check miss_F_GETOWN_EX.
36818         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
36819
36820         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
36821         Remove macro.
36822         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
36823         [!__ASSUME_AT_RANDOM]: Remove conditional code.
36824         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
36825
36826         * sysdeps/unix/sysv/linux/kernel-features.h
36827         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
36828         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
36829         [ADJ_OFFSET_SS_READ]: Make code unconditional.
36830         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
36831
36832 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36833
36834         [BZ #17075]
36835         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
36836         Fix calculation of the symbol's value.
36837         * sysdeps/arm/tst-armtlsdescloc.c: New file.
36838         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
36839         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
36840         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
36841         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
36842         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
36843         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
36844         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
36845         (modules-names): Add `tst-armtlsdescmod',
36846         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
36847         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
36848         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36849         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
36850         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
36851         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36852         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
36853         ($(objpfx)tst-armtlsdescloc): New dependency.
36854         ($(objpfx)tst-armtlsdescextnow): Likewise.
36855         ($(objpfx)tst-armtlsdescextlazy): Likewise.
36856         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
36857         TLS scheme support.
36858         * sysdeps/arm/configure: Regenerate.
36859
36860 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36861
36862         * include/fcntl.h (__atfct_seterrno): Remove prototype.
36863         (__atfct_seterrno_2): Likewise.
36864         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
36865         <kernel-features.h>.
36866         (__ASSUME_ATFCTS): Do not undefine and redefine.
36867         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
36868         (__have_atfcts): Remove conditional definition.
36869         (__fxstatat([__NR_fstatat64]: Make code unconditional.
36870         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
36871         unreachable if [__ASSUME_ATFCTS].
36872         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
36873         not undefine and redefine.
36874         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
36875         <kernel-features.h>.
36876         (faccessat) [__NR_faccessat]: Make code unconditional.
36877         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
36878         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
36879         <kernel-features.h>.
36880         (fchmodat) [__NR_fchmodat]: Make code unconditional.
36881         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36882         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
36883         <kernel-features.h>.
36884         (fchownat) [__NR_fchownat]: Make code unconditional.
36885         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
36886         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
36887         <kernel-features.h>.
36888         (futimesat) [__NR_futimesat]: Make code unconditional.
36889         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
36890         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
36891         <kernel-features.h>.
36892         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36893         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36894         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
36895         <kernel-features.h>.
36896         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
36897         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36898         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
36899         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
36900         <kernel-features.h>.
36901         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
36902         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36903         * sysdeps/unix/sysv/linux/linkat.c: Do not include
36904         <kernel-features.h>.
36905         (linkat) [__NR_linkat]: Make code unconditional.
36906         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36907         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
36908         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
36909         <kernel-features.h>.
36910         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
36911         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36912         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
36913         <kernel-features.h>.
36914         (mkdirat) [__NR_mkdirat]: Make code unconditional.
36915         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
36916         * sysdeps/unix/sysv/linux/openat.c: Do not include
36917         <kernel-features.h>.
36918         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
36919         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
36920         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
36921         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
36922         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
36923         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
36924         <kernel-features.h>.
36925         (readlinkat) [__NR_readlinkat]: Make code unconditional.
36926         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
36927         result of INLINE_SYSCALL directly, not via int variable.
36928         * sysdeps/unix/sysv/linux/renameat.c: Do not include
36929         <kernel-features.h>.
36930         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
36931         (renameat) [__NR_renameat]: Make code unconditional.
36932         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
36933         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
36934         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
36935         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
36936         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
36937         (__ASSUME_ATFCTS): Do not undefine and redefine.
36938         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
36939         <kernel-features.h>.
36940         (symlinkat) [__NR_symlinkat]: Make code unconditional.
36941         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36942         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
36943         <kernel-features.h>.
36944         (unlinkat) [__NR_unlinkat]: Make code unconditional.
36945         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36946         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
36947         (__ASSUME_ATFCTS): Do not undefine and redefine.
36948         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
36949         <kernel-features.h>.
36950         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36951         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36952         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
36953         <kernel-features.h>.
36954         (__xmknodat) [__NR_mknodat]: Make code unconditional.
36955         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36956
36957 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36958
36959         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
36960
36961 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
36962
36963         [BZ #17069]
36964         * posix/regcomp.c (parse_reg_exp): Deallocate partially
36965         constructed tree before returning error.
36966         * posix/bug-regexp36.c: Expand test case.
36967
36968 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
36969
36970         [BZ #6803]
36971         * math/libm-test.inc (scalbln_test_date):
36972         Add errno expectations.
36973         * math/w_scalblnf.c: New File.
36974         Add wrapper which checks for setting errno to ERANGE.
36975         Add weak_alias for corresponding scalbln function.
36976         * math/w_scalbln.c: Likewise.
36977         * math/w_scalblnl.c: Likewise.
36978         * math/Makefile (libm-calls): Add w_scalbln.
36979         * sysdeps/ieee754/flt-32/s_scalblnf.c:
36980         Remove weak_alias for corresponding scalbln function.
36981         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36982         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36983         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
36984         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
36985         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
36986         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36987         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
36988         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36989         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
36990         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
36991         Remove long_double_symbol for scalblnl function in libm, libc.
36992         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
36993         Add wrapper which checks for setting errno to ERANGE.
36994         Add long_double_symbol for scalblnl function in libm, libc.
36995         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
36996         Remove long_double_symbol for scalblnl in libm.
36997         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
36998         Add wrapper which checks for setting errno to ERANGE.
36999         Add long_double_symbol for scalblnl function in libm.
37000         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
37001         Do not use wrapper because of own implementation.
37002
37003 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
37004
37005         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
37006         3 bytes for __pad1 for x32.
37007         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
37008
37009 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
37010             H.J. Lu  <hongjiu.lu@intel.com>
37011
37012         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
37013         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
37014         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37015         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37016         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
37017
37018 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
37019
37020         [BZ #17069]
37021         * posix/regcomp.c (parse_expression): Deallocate partially
37022         constructed tree before returning error.
37023         * posix/Makefile.c (tests): Add bug-regex36.
37024         (generated): Add bug-regex36.mtrace.
37025         (tests-special): Add $(objpfx)bug-regex36-mem.out
37026         (bug-regex36-ENV): New variable.
37027         ($(objpfx)bug-regex36-mem.out): New rule.
37028         * posix/bug-regex36.c: New file.
37029
37030 2014-06-19  Will Newton  <will.newton@linaro.org>
37031
37032         * malloc/malloc.c (systrim): If extra is zero then return
37033         early.
37034
37035 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
37036
37037         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
37038
37039 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
37040
37041         * sysdeps/aarch64/strchr.S: New file.
37042
37043 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37044
37045         [BZ #17022]
37046         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
37047         from arguments -2 or below.
37048         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
37049         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
37050
37051 2014-06-18  Andreas Schwab  <schwab@suse.de>
37052
37053         [BZ #17062]
37054         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
37055         of a bracket expr not to run off the end of the string.
37056         * posix/Makefile (tests): Add tst-fnmatch3.
37057         * posix/tst-fnmatch3.c: New file.
37058
37059 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37060
37061         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
37062         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37063         [$(cross-compiling) = no]: Likewise.
37064         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37065         [$(cross-compiling) = no]: Likewise.
37066
37067 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37068
37069         [BZ #17031]
37070         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
37071         double, adjusted for any remainder from the high double.
37072         * math/libm-test.inc (nearbyint): Add tests.
37073         (rint): Likewise.
37074
37075 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37076
37077         * nptl/sysdeps/powerpc/Makefile: Moved ...
37078         * sysdeps/powerpc/nptl/Makefile: ... here.
37079         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
37080         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
37081         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
37082         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
37083         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
37084         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
37085         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
37086         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
37087         * nptl/sysdeps/powerpc/tls.h: Moved ...
37088         * sysdeps/powerpc/nptl/tls.h: ... here.
37089
37090 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
37091
37092         [BZ #16681]
37093         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
37094         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
37095         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
37096         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
37097         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
37098         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
37099         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
37100         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
37101         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
37102
37103 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
37104
37105         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
37106
37107 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
37108
37109         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
37110         defined operator.
37111
37112         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
37113         $TIMEOUTFACTOR.
37114
37115 2014-06-16  Florian Weimer  <fweimer@redhat.com>
37116
37117         [BZ #17058]
37118         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
37119         non-executed part of the test.
37120
37121 2014-06-16  Andreas Schwab  <schwab@suse.de>
37122
37123         * string/bits/string2.h (strdup, strndup): Update feature guard.
37124
37125 2014-06-14  David S. Miller  <davem@davemloft.net>
37126
37127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37128
37129 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
37130
37131         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
37132         that was previously under [RESET_PID].
37133         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
37134
37135         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
37136         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
37137         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
37138         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
37139         (__libc_vfork): New strong alias.
37140         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
37141
37142 2014-06-14 Andi Kleen  <ak@linux.intel.com>
37143
37144         * sysdeps/generic/elide.h: New file.
37145
37146 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37147
37148         * Makefile (installed-headers): Adjust path of pthread.h header.
37149
37150 2014-06-13  Roland McGrath  <roland@hack.frob.com>
37151
37152         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
37153         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
37154         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
37155         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
37156
37157         * nptl/sysdeps/s390/Makefile: Moved ...
37158         * sysdeps/s390/nptl/Makefile: ... here.
37159         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
37160         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
37161         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
37162         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
37163         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
37164         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
37165         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
37166         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
37167         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
37168         * sysdeps/s390/nptl/pthreaddef.h: ... here.
37169         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
37170         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
37171         * nptl/sysdeps/s390/tls.h: Moved ...
37172         * sysdeps/s390/nptl/tls.h: ... here.
37173
37174         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
37175         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
37176
37177 2014-06-13  David S. Miller  <davem@davemloft.net>
37178
37179         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
37180         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
37181         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
37182         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
37183         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
37184         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
37185         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
37186         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
37187         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
37188         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
37189         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
37190         Remove RESET_PID cpp guards.
37191         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
37192         Remove RESET_PID cpp guards.
37193         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
37194
37195 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
37196
37197         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
37198         __sp to uintptr_t.
37199
37200 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37201
37202         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
37203         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
37204         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
37205         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
37206         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
37207         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
37208         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
37209         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
37210         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
37211         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
37212         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
37213         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
37214         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
37215         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
37216         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
37217         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
37218         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
37219         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
37220         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
37221         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
37222
37223         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
37224         (pthread_rwlock_rdlock): Add elision.
37225         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
37226         (pthread_rwlock_wrlock): Add elision.
37227         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
37228         (pthread_rwlock_trywrlock): Add elision.
37229         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
37230         (pthread_rwlock_tryrdlock): Add elision.
37231         * nptl/pthread_rwlock_unlock.c: Include elide.h.
37232         (pthread_rwlock_tryrdlock): Add elision unlock.
37233         * nptl/sysdeps/pthread/pthread.h:
37234         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
37235         (PTHREAD_RWLOCK_INITIALIZER,
37236         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
37237         Handle new elision field.
37238         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
37239         * sysdeps/arm/nptl/bits/pthreadtypes.h
37240         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37241         * sysdeps/sh/nptl/bits/pthreadtypes.h
37242         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37243         * sysdeps/tile/nptl/bits/pthreadtypes.h
37244         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37245         * sysdeps/a/nptl/bits/pthreadtypes.h
37246         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37247         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37248         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37249         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37250         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37251         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
37252         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37253         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37254         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37255         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37256         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37257         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37258         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37259         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37260         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37261         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
37262         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37263         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
37264         (elision_init): Set try_xbegin to zero when no RTM.
37265         * sysdeps/x86/nptl/bits/pthreadtypes.h
37266         (pthread_rwlock_t): Change __pad1 to __rwelision.
37267         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37268
37269 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37270
37271         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
37272         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
37273         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
37274         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
37275
37276 2014-06-13  Meador Inge  <meadori@codesourcery.com>
37277
37278         [BZ #16996]
37279         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
37280         that the cached result has been set before returning it.
37281
37282 2014-06-12  Roland McGrath  <roland@hack.frob.com>
37283
37284         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
37285         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
37286         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
37287         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
37288         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
37289         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
37290
37291         * nptl/sysdeps/sparc/Makefile: Moved ...
37292         * sysdeps/sparc/nptl/Makefile: ... here.
37293         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
37294         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
37295         * nptl/sysdeps/sparc/tls.h: Moved ...
37296         * sysdeps/sparc/nptl/tls.h: ... here.
37297         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
37298         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
37299         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
37300         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
37301         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
37302         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
37303         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
37304         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
37305         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
37306         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
37307         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
37308         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
37309         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
37310         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
37311         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
37312         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
37313         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
37314         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
37315         Update #include.
37316         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
37317         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
37318         Update #include.
37319         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
37320         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
37321         Update #include.
37322         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
37323         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
37324         Update #include.
37325
37326         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37327
37328         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
37329         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
37330
37331         * sysdeps/pthread/posix-timer.h: Include <list.h>.
37332         (struct list_links): Type removed.
37333         (struct thread_node, struct timer_node): Replace struct list_links
37334         with struct list_head.
37335         (list_unlink_ip): Likewise.
37336         * sysdeps/pthread/timer_routines.c
37337         (timer_free_list, thread_free_list, thread_active_list): Likewise.
37338         (list_append, list_insbefore): Likewise.
37339         (list_init): Function removed.
37340         (thread_init, init_module): Use INIT_LIST_HEAD instead.
37341         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
37342         * sysdeps/pthread/Makefile: ... here, new file.
37343
37344         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
37345         * sysdeps/nptl/Implies: ... here.
37346         * sysdeps/unix/sysv/linux/Implies: Add nptl.
37347         * nptl/sysdeps/pthread/list.h: Moved ...
37348         * include/list.h: ... here.
37349         * nptl/sysdeps/pthread/createthread.c: Moved ...
37350         * nptl/createthread.c: ... here.
37351         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
37352         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
37353         * nptl/pt-longjmp.c: ... here.
37354         * nptl/sysdeps/pthread/Makefile: Moved ...
37355         * sysdeps/nptl/Makefile: ... here.
37356         * nptl/sysdeps/pthread/Subdirs: Moved ...
37357         * sysdeps/nptl/Subdirs: ... here.
37358         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
37359         * sysdeps/nptl/aio_misc.h: ... here.
37360         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
37361         * sysdeps/nptl/bits/libc-lock.h: ... here.
37362         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
37363         * sysdeps/nptl/bits/libc-lockP.h: ... here.
37364         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
37365         * sysdeps/nptl/bits/stdio-lock.h: ... here.
37366         * nptl/sysdeps/pthread/configure: Moved ...
37367         * sysdeps/nptl/configure: ... here.
37368         * nptl/sysdeps/pthread/configure.ac: Moved ...
37369         * sysdeps/nptl/configure.ac: ... here.
37370         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
37371         * sysdeps/nptl/gai_misc.h: ... here.
37372         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
37373         * sysdeps/nptl/librt-cancellation.c: ... here.
37374         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
37375         * sysdeps/nptl/malloc-machine.h: ... here.
37376         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
37377         * sysdeps/nptl/pthread-functions.h: ... here.
37378         * nptl/sysdeps/pthread/pthread.h: Moved ...
37379         * sysdeps/nptl/pthread.h: ... here.
37380         * nptl/sysdeps/pthread/setxid.h: Moved ...
37381         * sysdeps/nptl/setxid.h: ... here.
37382         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
37383         * sysdeps/nptl/sigfillset.c: ... here.
37384         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
37385         * sysdeps/nptl/tcb-offsets.h: ... here.
37386         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
37387         * sysdeps/nptl/tst-mqueue8x.c: ... here.
37388         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
37389         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
37390         * nptl/sysdeps/pthread/allocalim.h: Moved ...
37391         * sysdeps/pthread/allocalim.h: ... here.
37392         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
37393         * sysdeps/pthread/bits/sigthread.h: ... here.
37394         * nptl/sysdeps/pthread/flockfile.c: Moved ...
37395         * sysdeps/pthread/flockfile.c: ... here.
37396         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
37397         * sysdeps/pthread/ftrylockfile.c: ... here.
37398         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
37399         * sysdeps/pthread/funlockfile.c: ... here.
37400         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
37401         * sysdeps/pthread/posix-timer.h: ... here.
37402         * nptl/sysdeps/pthread/timer_create.c: Moved ...
37403         * sysdeps/pthread/timer_create.c: ... here.
37404         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
37405         * sysdeps/pthread/timer_delete.c: ... here.
37406         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
37407         * sysdeps/pthread/timer_getoverr.c: ... here.
37408         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
37409         * sysdeps/pthread/timer_gettime.c: ... here.
37410         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
37411         * sysdeps/pthread/timer_routines.c: ... here.
37412         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
37413         * sysdeps/pthread/timer_settime.c: ... here.
37414         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
37415         * sysdeps/pthread/tst-timer.c: ... here.
37416         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
37417         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
37418
37419         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
37420         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
37421
37422         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
37423         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
37424         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
37425         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
37426         Update #include target.
37427         * nptl/sysdeps/i386/i686/Makefile: Moved ...
37428         * sysdeps/i386/i686/nptl/Makefile: ... here.
37429         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
37430         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
37431         Update #include target.
37432         * nptl/sysdeps/i386/i686/tls.h: Moved ...
37433         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
37434         * nptl/sysdeps/i386/Makefile: Moved ...
37435         * sysdeps/i386/nptl/Makefile: ... here.
37436         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
37437         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
37438         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
37439         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
37440         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
37441         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
37442         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
37443         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
37444         * sysdeps/i386/nptl/pthreaddef.h: ... here.
37445         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
37446         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
37447         * nptl/sysdeps/i386/tls.h: Moved ...
37448         * sysdeps/i386/nptl/tls.h: ... here.
37449
37450         * sysdeps/sh/Makefile [$(subdir) = csu]
37451         (gen-as-const-headers): Add tcb-offsets.sym.
37452         * nptl/sysdeps/sh/Makefile: File removed.
37453         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
37454         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
37455         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
37456         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
37457         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
37458         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
37459         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
37460         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
37461         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
37462         * sysdeps/sh/nptl/pthreaddef.h: ... here.
37463         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
37464         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
37465         * nptl/sysdeps/sh/tls.h: Moved ...
37466         * sysdeps/sh/nptl/tls.h: ... here.
37467         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
37468         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
37469         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
37470         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
37471         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
37472         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
37473         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
37474         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
37475         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
37476         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
37477         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
37478         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
37479         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
37480         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
37481         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
37482         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
37483         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
37484         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
37485         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
37486         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
37487         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
37488         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
37489         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
37490         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
37491         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
37492         Moved ...
37493         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
37494         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
37495         Moved ...
37496         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
37497         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
37498         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
37499         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
37500         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
37501         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
37502         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
37503         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
37504         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
37505         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
37506         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
37507         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
37508         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
37509         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
37510         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
37511         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
37512         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
37513         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
37514         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
37515
37516 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37517
37518         * posix/spawn_faction_addopen.c: Include string.h.
37519
37520 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37521
37522         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
37523         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
37524         * nptl/sysdeps/x86_64/Makefile: Moved ...
37525         * sysdeps/x86_64/nptl/Makefile: ... here.
37526         * nptl/sysdeps/x86_64/configure: Moved ...
37527         * sysdeps/x86_64/nptl/configure: ... here.
37528         * nptl/sysdeps/x86_64/configure.ac: Moved ...
37529         * sysdeps/x86_64/nptl/configure.ac: ... here.
37530         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
37531         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
37532         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
37533         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
37534         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
37535         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
37536         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
37537         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
37538         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
37539         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
37540         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
37541         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
37542         * nptl/sysdeps/x86_64/tls.h: Moved ...
37543         * sysdeps/x86_64/nptl/tls.h: ... here.
37544         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
37545         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
37546         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
37547         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
37548
37549         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
37550
37551 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37552
37553         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37554
37555 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
37556
37557         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
37558         type.
37559         [POSIX] (off_t): Likewise.
37560         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
37561         [POSIX] (S_ISBLK): Require macro.
37562         [POSIX] (S_ISCHR): Likewise.
37563         [POSIX] (S_ISDIR): Likewise.
37564         [POSIX] (S_ISFIFO): Likewise.
37565         [POSIX] (S_ISREG): Likewise.
37566         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
37567         optional-macro.
37568         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
37569         type.
37570         [POSIX] (time_t): Likewise.
37571         [POSIX] (timer_t): Likewise.
37572
37573 2014-06-11  Florian Weimer  <fweimer@redhat.com>
37574
37575         [BZ #17048]
37576         * posix/spawn_int.h (struct __spawn_action): Make the path string
37577         non-const to support deallocation.
37578         * posix/spawn_faction_addopen.c
37579         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
37580         * posix/spawn_faction_destroy.c
37581         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
37582         path in all spawn_do_open actions.
37583         * posix/tst-spawn.c (do_test): Exercise the copy operation in
37584         posix_spawn_file_actions_addopen.
37585
37586 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
37587
37588         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
37589         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
37590         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
37591         conditional code always true.
37592         (__libc_vfork): New alias.
37593
37594 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37595
37596         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37597         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
37598
37599         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
37600
37601         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37602         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
37603
37604         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37605         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
37606
37607         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37608         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
37609
37610 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37611
37612         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
37613         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
37614         multiarch strcmp for PPC64.
37615         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
37616         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
37617         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
37618         multiarch optimizations.
37619         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37620         (__libc_ifunc_impl_list): Likewise.
37621
37622 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
37623
37624         * benchtests/scripts/validate_benchout.py: New script.
37625         * benchtests/Makefile (bench-func): Call it.
37626         * benchtests/scripts/benchout.schema.json: New file.
37627
37628 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
37629
37630         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
37631         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
37632         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
37633         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
37634         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
37635         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
37636         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
37637         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
37638         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
37639         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
37640         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
37641         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
37642         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
37643         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
37644         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
37645         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
37646         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
37647         Moved ...
37648         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
37649         ... here.
37650         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
37651         Moved ...
37652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
37653         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
37654         Moved ...
37655         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
37656         ... here.
37657         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
37658         Moved ...
37659         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
37660         ... here.
37661         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
37662         Moved ...
37663         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
37664         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
37665         Moved ...
37666         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
37667         ... here.
37668         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
37669         Moved ...
37670         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
37671         ... here.
37672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
37673         Moved ...
37674         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
37675         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
37676         Moved ...
37677         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
37678         ... here.
37679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
37680         Moved ...
37681         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
37682         ... here.
37683         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
37684         Moved ...
37685         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
37686         ... here.
37687         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
37688         Moved ...
37689         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
37690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
37691         Moved ...
37692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
37693         ... here.
37694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
37695         Moved ...
37696         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
37697         ... here.
37698         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
37699         Moved ...
37700         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
37701         ... here.
37702         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
37703         Moved ...
37704         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
37705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
37706         Moved ...
37707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
37708         ... here.
37709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
37710         Moved ...
37711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
37712         ... here.
37713         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
37714         Moved ...
37715         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
37716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
37717         Moved ...
37718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
37719         ... here.
37720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
37721         Moved ...
37722         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
37723         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
37724         Moved ...
37725         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
37726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
37727         Moved ...
37728         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
37729         ... here.
37730         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
37731         Moved ...
37732         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
37733         ... here.
37734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
37735         Moved ...
37736         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
37737         ... here.
37738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
37739         Moved ...
37740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
37741         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
37742         Moved ...
37743         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
37744         ... here.
37745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
37746         Moved ...
37747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
37748         ... here.
37749         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
37750         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
37751         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
37752         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
37753         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
37754         Moved ...
37755         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
37756         ... here.
37757         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
37758         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
37759         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
37760         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
37761         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
37762         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
37763         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
37764         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
37765         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
37766         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
37767         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
37768         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
37769         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
37770         Moved ...
37771         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
37772         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
37773         Moved ...
37774         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
37775         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
37776         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
37777         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
37778         Moved ...
37779         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
37780         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
37781         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
37782         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
37783         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
37784         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
37785         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
37786
37787 2014-06-10  Wilco  <wdijkstr@arm.com>
37788
37789         * math/test-fenv-return.c: New file.
37790         * math/Makefile: Add new test test-fenv-return.
37791
37792 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
37793
37794         [BZ #17042]
37795         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
37796         when x - 1 is zero.
37797         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
37798         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
37799         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
37800         0.0L for an argument of 1.0L.
37801         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
37802         Likewise.
37803         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
37804         value when x - 1 is zero.
37805         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
37806         * sysdeps/i386/fpu/libm-test-ulps: Update.
37807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37808
37809 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
37810
37811         [BZ #15119]
37812         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
37813
37814 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37815
37816         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
37817         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
37818
37819 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37820
37821         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37822         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
37823
37824         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37825         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
37826
37827         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37828         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
37829
37830         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37831         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
37832
37833         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
37834         if not already defined.
37835         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
37836         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
37837         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
37838         (TLS_INIT_TP): Use it.
37839         (TLS_DEFINE_INIT_TP): New macro.
37840         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
37841
37842 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
37843
37844         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
37845         constant.
37846         [POSIX] (IXANY): Likewise.
37847         [POSIX] (OLCUC): Likewise.
37848         [POSIX || POSIX2008] (CBAUD): Do not allow.
37849         [POSIX || POSIX2008] (DEFECHO): Likewise.
37850         [POSIX || POSIX2008] (ECHOCTL): Likewise.
37851         [POSIX || POSIX2008] (ECHOKE): Likewise.
37852         [POSIX || POSIX2008] (ECHOPRT): Likewise.
37853         [POSIX || POSIX2008] (EXTA): Likewise.
37854         [POSIX || POSIX2008] (EXTB): Likewise.
37855         [POSIX || POSIX2008] (FLUSHO): Likewise.
37856         [POSIX || POSIX2008] (LOBLK): Likewise.
37857         [POSIX || POSIX2008] (PENDIN): Likewise.
37858         [POSIX || POSIX2008] (SWTCH): Likewise.
37859         [POSIX || POSIX2008] (VDISCARD): Likewise.
37860         [POSIX || POSIX2008] (VDSUSP): Likewise.
37861         [POSIX || POSIX2008] (VLNEXT): Likewise.
37862         [POSIX || POSIX2008] (VREPRINT): Likewise.
37863         [POSIX || POSIX2008] (VSTATUS): Likewise.
37864         [POSIX || POSIX2008] (VWERASE): Likewise.
37865         (B*): Change to B[0123456789]*.
37866         * conform/data/time.h-data [POSIX || UNIX98]
37867         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
37868         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
37869         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
37870         [POSIX] (tm_*): Do not allow.
37871
37872 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
37873
37874         * Makefile (install): Don't set LANGUAGE.
37875         * Makefile.in (install): Likewise.
37876         * assert/Makefile (test-assert-ENV): Remove variable.
37877         (test-assert-perr-ENV): Likewise.
37878         * elf/Makefile (neededtest4-ENV): Likewise.
37879         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37880         [$(cross-compiling) = no]: Don't set LANGUAGE.
37881         * io/ftwtest-sh (LANG): Remove variable.
37882         * libio/Makefile (tst-widetext-ENV): Likewise.
37883         * manual/install.texi (Running make install): Don't refer to
37884         environment settings for make install.
37885         * INSTALL: Regenerated.
37886         * nptl/tst-tls6.sh: Don't set LANG.
37887         * posix/globtest.sh (LANG): Remove variable.
37888         * string/Makefile (tester-ENV): Likewise.
37889         (inl-tester-ENV): Likewise.
37890         (noinl-tester-ENV): Likewise.
37891         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37892         [$(cross-compiling) = no]: Don't set LANGUAGE.
37893         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
37894         without explicit environment settings.
37895
37896 2014-06-06  Roland McGrath  <roland@hack.frob.com>
37897
37898         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
37899         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
37900         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
37901         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
37902
37903 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
37904
37905         * crypt/crypt-private.h [DOS]: Add some includes taken from the
37906         other files in the crypt directory.
37907         * crypt/crypt.c: Remove duplicate includes.
37908         * crypt/crypt-entry.c: Likewise.
37909         * crypt/crypt_util.c: Likewise.
37910
37911 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
37912
37913         * Makeconfig (run-program-env): New variable.
37914         (run-program-prefix-before-env): Likewise.
37915         (run-program-prefix-after-env): Likewise.
37916         (run-program-prefix): Define in terms of new variables.
37917         (built-program-cmd-before-env): New variable.
37918         (built-program-cmd-after-env): Likewise.
37919         (built-program-cmd): Define in terms of new variables.
37920         (test-program-prefix-before-env): New variable.
37921         (test-program-prefix-after-env): Likewise.
37922         (test-program-prefix): Define in terms of new variables.
37923         (test-program-cmd-before-env): New variable.
37924         (test-program-cmd-after-env): Likewise.
37925         (test-program-cmd): Define in terms of new variables.
37926         * Rules (make-test-out): Use $(run-program-env).
37927         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
37928         (help): Do not mention environment variables.  Mention
37929         --timeoutfactor option.
37930         (timeoutfactor): New variable.
37931         (blacklist_exports): Remove function.
37932         (exports): Remove variable.
37933         (command): Do not include ${exports}.
37934         * manual/install.texi (Configuring and compiling): Do not mention
37935         test wrappers preserving environment variables.  Mention that last
37936         assignment to a variable must take precedence.
37937         * INSTALL: Regenerated.
37938         * benchtests/Makefile (run-bench): Use $(run-program-env).
37939         * catgets/Makefile ($(objpfx)test1.cat): Use
37940         $(built-program-cmd-before-env), $(run-program-env) and
37941         $(built-program-cmd-after-env).
37942         ($(objpfx)test2.cat): Do not specify environment variables
37943         explicitly.
37944         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
37945         $(run-program-env) and $(built-program-cmd-after-env).
37946         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
37947         $(run-program-env) and $(test-program-cmd-after-env).
37948         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
37949         explicitly.
37950         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
37951         run_program_env and test_program_cmd_after_env arguments.
37952         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
37953         * elf/tst-pathopt.sh: Use run_program_env argument.
37954         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
37955         $(test-wrapper-env) and $(run-program-env).
37956         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
37957         run_program_env arguments.
37958         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
37959         * intl/Makefile ($(objpfx)tst-gettext.out): Use
37960         $(test-program-prefix-before-env), $(run-program-env) and
37961         $(test-program-prefix-after-env).
37962         ($(objpfx)tst-gettext2.out): Likewise.
37963         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
37964         run_program_env and test_program_prefix_after_env arguments.
37965         * intl/tst-gettext2.sh: Likewise.
37966         * intl/tst-gettext4.sh: Do not set environment variables
37967         explicitly.
37968         * intl/tst-gettext6.sh: Likewise.
37969         * intl/tst-translit.sh: Likewise.
37970         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
37971         $(test-program-prefix-before-env), $(run-program-env) and
37972         $(test-program-prefix-after-env).
37973         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
37974         run_program_env and test_program_prefix_after_env arguments.
37975         * math/Makefile (run-regen-ulps): Use $(run-program-env).
37976         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
37977         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
37978         explicitly with each use of ${test_wrapper_env}.
37979         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
37980         $(test-program-prefix-before-env), $(run-program-env) and
37981         $(test-program-prefix-after-env).
37982         * posix/tst-getconf.sh: Do not set environment variables
37983         explicitly.
37984         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
37985         run_program_env and test_program_prefix_after_env arguments.
37986         * stdio-common/tst-printf.sh: Do not set environment variables
37987         explicitly.
37988         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
37989         $(test-program-prefix-before-env), $(run-program-env) and
37990         $(test-program-prefix-after-env).
37991         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
37992         run_program_env and test_program_prefix_after_env arguments.
37993         Split $test calls into $test_pre and $test.
37994         * timezone/Makefile (build-testdata): Use
37995         $(built-program-cmd-before-env), $(run-program-env) and
37996         $(built-program-cmd-after-env).
37997
37998 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37999
38000         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
38001         strlen for non SHARED builds.
38002
38003 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38004
38005         * nptl/allocatestack.c (check_list): Inlined function...
38006         (__reclaim_stacks): ... here.
38007
38008 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38009
38010         [BZ #15698]
38011         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
38012         memory overrun.
38013
38014 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
38015
38016         * Rules (make-test-out): Include
38017         LOCPATH=$(common-objpfx)localedata in default environment.
38018         * debug/Makefile (tst-chk1-ENV): Remove variable.
38019         (tst-chk2-ENV): Likewise.
38020         (tst-chk3-ENV): Likewise.
38021         (tst-chk4-ENV): Likewise.
38022         (tst-chk5-ENV): Likewise.
38023         (tst-chk6-ENV): Likewise.
38024         (tst-lfschk1-ENV): Likewise.
38025         (tst-lfschk2-ENV): Likewise.
38026         (tst-lfschk3-ENV): Likewise.
38027         (tst-lfschk4-ENV): Likewise.
38028         (tst-lfschk5-ENV): Likewise.
38029         (tst-lfschk6-ENV): Likewise.
38030         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
38031         (tst-iconv7-ENV): Likewise.
38032         * intl/Makefile (LOCPATH-ENV): Likewise.
38033         (tst-codeset-ENV): Likewise.
38034         (tst-gettext3-ENV): Likewise.
38035         (tst-gettext5-ENV): Likewise.
38036         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
38037         (tst-fopenloc-ENV): Likewise.
38038         (tst-fgetws-ENV): Remove variable.
38039         (tst-ungetwc1-ENV): Likewise.
38040         (tst-ungetwc2-ENV): Likewise.
38041         (bug-ungetwc2-ENV): Likewise.
38042         (tst-swscanf-ENV): Likewise.
38043         (bug-ftell-ENV): Likewise.
38044         (tst-fgetwc-ENV): Likewise.
38045         (tst-fseek-ENV): Likewise.
38046         (tst-ftell-partial-wide-ENV): Likewise.
38047         (tst-ftell-active-handler-ENV): Likewise.
38048         (tst-ftell-append-ENV): Likewise.
38049         * posix/Makefile (tst-fnmatch-ENV): Likewise.
38050         (tst-regexloc-ENV): Likewise.
38051         (bug-regex1-ENV): Likewise.
38052         (tst-regex-ENV): Likewise.
38053         (tst-regex2-ENV): Likewise.
38054         (bug-regex5-ENV): Likewise.
38055         (bug-regex6-ENV): Likewise.
38056         (bug-regex17-ENV): Likewise.
38057         (bug-regex18-ENV): Likewise.
38058         (bug-regex19-ENV): Likewise.
38059         (bug-regex20-ENV): Likewise.
38060         (bug-regex22-ENV): Likewise.
38061         (bug-regex23-ENV): Likewise.
38062         (bug-regex25-ENV): Likewise.
38063         (bug-regex26-ENV): Likewise.
38064         (bug-regex30-ENV): Likewise.
38065         (bug-regex32-ENV): Likewise.
38066         (bug-regex33-ENV): Likewise.
38067         (bug-regex34-ENV): Likewise.
38068         (bug-regex35-ENV): Likewise.
38069         (tst-rxspencer-ENV): Likewise.
38070         (tst-rxspencer-no-utf8-ENV): Likewise.
38071         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
38072         (tst-sscanf-ENV): Likewise.
38073         (tst-swprintf-ENV): Likewise.
38074         (tst-swscanf-ENV): Likewise.
38075         (test-vfprintf-ENV): Likewise.
38076         (scanf13-ENV): Likewise.
38077         (bug14-ENV): Likewise.
38078         (tst-grouping-ENV): Likewise.
38079         * stdlib/Makefile (tst-strtod-ENV): Likewise.
38080         (tst-strtod3-ENV): Likewise.
38081         (tst-strtod4-ENV): Likewise.
38082         (tst-strtod5-ENV): Likewise.
38083         (testmb2-ENV): Likewise./
38084         * string/Makefile (tst-strxfrm-ENV): Likewise.
38085         (tst-strxfrm2-ENV): Likewise.
38086         (bug-strcoll1-ENV): Likewise.
38087         (test-strcasecmp-ENV): Likewise.
38088         (test-strncasecmp-ENV): Likewise.
38089         * time/Makefile (tst-strptime-ENV): Likewise.
38090         (tst-ftime_l-ENV): Likewise.
38091         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
38092         (tst-mbrtowc-ENV): Likewise.
38093         (tst-wcrtomb-ENV): Likewise.
38094         (tst-mbrtowc2-ENV): Likewise.
38095         (tst-c16c32-1-ENV): Likewise.
38096         (tst-mbsnrtowcs-ENV): Likewise.
38097
38098 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38099
38100         * manual/resource.texi (How to get information about the memory
38101         subsystem?): Fix typo.
38102         Reported by Peon de la Parra Ivan <peon@keba.com>
38103
38104 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
38105
38106         [BZ #16882]
38107         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
38108         (pthread_spin_lock): Branch out of spin loop to proper location.
38109         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
38110         (pthread_spin_lock): Likewise.
38111
38112         * nptl/tst-spin4.c: New test.
38113         * nptl/Makefile (tests): Add tst-spin4.
38114
38115 2014-06-03  Andreas Schwab  <schwab@suse.de>
38116
38117         [BZ #15946]
38118         * resolv/res_send.c (send_dg): Reload file descriptor after
38119         calling reopen.
38120
38121 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
38122
38123         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38124
38125 2014-06-03  Richard Henderson  <rth@redhat.com>
38126
38127         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
38128         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
38129         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
38130         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
38131         in the SAVE_PID block.
38132         (__libc_vfork): New alias.
38133         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
38134
38135         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
38136         child in registers, not on the stack.  Remove RESET_PID conditionals.
38137         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
38138
38139 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38140
38141         * sysdeps/aarch64/libm-test-ulps: Regenerate.
38142
38143 2014-06-03  Wilco  <wdijkstr@arm.com>
38144
38145         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
38146         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
38147         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38148         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
38149         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
38150         Likewise.
38151
38152 2014-06-03  Wilco  <wdijkstr@arm.com>
38153
38154         * sysdeps/aarch64/fpu/math_private.h
38155         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
38156         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
38157         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
38158         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38159         Fix declarations.
38160
38161 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38162
38163         * crypt/crypt-private.h: Include ufc-crypt.h.
38164         (__b64_from_24bit): Declare extern.
38165         * crypt/crypt_util.c(__b64_from_24bit): New function.
38166         (b64t): New static const variable.
38167         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
38168         (b64t): Remove variable.
38169         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
38170         * crypt/sha256-crypt.c: Include crypt-private.h.
38171         (b64t): Remove variable.
38172         (__sha256_crypt_r): Remove b64_from_24bit and replace
38173         with __b64_from_24bit.
38174         * crypt/sha512-crypt.c: Likewise.
38175
38176 2014-06-02  Roland McGrath  <roland@hack.frob.com>
38177
38178         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
38179         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
38180         Label the code __libc_vfork rather than __vfork.
38181         [!NOT_IN_libc] (vfork): Define as weak alias.
38182         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
38183         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
38184         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
38185
38186 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38187
38188         * malloc/malloc.c (malloc_info): Fix format specifier for
38189         n_mmaps.
38190
38191 2014-06-02  Wilco  <wdijkstr@arm.com>
38192
38193         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
38194         FPCR write.
38195
38196 2014-06-02  Wilco  <wdijkstr@arm.com>
38197
38198         [BZ #17009]
38199         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
38200         Rewrite to reduce FPCR/FPSR accesses.
38201
38202 2014-06-01  David S. Miller  <davem@davemloft.net>
38203
38204         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38205
38206 2014-05-31  David S. Miller  <davem@davemloft.net>
38207
38208         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
38209         to occur in round to nearest mode when |x| >= 2.0
38210
38211 2014-05-30  Richard Henderson  <rth@twiddle.net>
38212
38213         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
38214         (PSEUDO_RET_NOERRNO): Remove.
38215         (ret): Don't redefine.
38216         (ret_NOERRNO): Define in terms of ret.
38217         (ret_ERRVAL): Likewise.
38218
38219         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
38220         use of PSEUDO_RET; perform the error check directly.
38221
38222 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
38223
38224         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
38225         with __int128_t.
38226
38227 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38228
38229         * malloc/malloc (malloc_info): Fix formatting.
38230
38231 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38232             Roland McGrath  <roland@hack.frob.com>
38233
38234         * malloc/malloc (malloc_info): Also print mmapped statistics.
38235
38236 2014-05-30  Roland McGrath  <roland@hack.frob.com>
38237
38238         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
38239         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
38240
38241 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
38242
38243         * malloc/malloc.c (malloc_info): Inline mi_arena.
38244
38245 2014-05-29  Richard Henderson  <rth@twiddle.net>
38246
38247         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
38248         Remove comma before expanding ASM_ARGS_##nr.
38249         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
38250         Make _x0 a strict output; make _x8 a strict input; adjust expansion
38251         of ASM_ARGS_##nr.
38252         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
38253         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
38254         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
38255         (ASM_ARGS_1): Add leading comma.
38256
38257         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
38258         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
38259         to __errno_location.
38260         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
38261         Remove the expected plt for __errno_location.
38262
38263         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38264         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
38265         call to __read_tp.
38266
38267         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38268         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
38269         it and break it down.
38270         (DOCARGS_0, DOCARGS_1): Do nothing.
38271         (DOCARGS_2): Update to store into the new stack frame.
38272         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
38273         (UNDOCARGS_1): Update to restore from the new stack frame.
38274         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
38275         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
38276
38277         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38278         (SINGLE_THREAD_P): New parameter for result regno.
38279         (PSEUDO): Update to match; use cbz instead of beq.
38280
38281         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38282         Use ENTRY to define the _nocancel entry point.  Share the syscall
38283         and syscall error check paths with the cancel path.
38284         (PSEUDO_END): New.
38285
38286         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
38287         whitespace; tabs before and after asm mnemonics.
38288
38289 2014-05-29  Eric Wong  <normalperson@yhbt.net>
38290
38291         [BZ #15132]
38292         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38293         Call fstat64 or stat64 internally, depending on arguments passed.
38294         Replace stat buffer argument with file descriptor argument.
38295         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
38296         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
38297         Pass fd to __internal_statvfs instead of calling fstat64.
38298         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
38299         Pass fd to __internal_statvfs64 instead of calling fstat64.
38300         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
38301         Pass -1 to __internal_statvfs instead of calling stat64.
38302         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
38303         Pass -1 to __internal_statvfs64 instead of calling stat64.
38304
38305 2014-05-28  Roland McGrath  <roland@hack.frob.com>
38306
38307         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
38308         that was previously under [RESET_PID].
38309         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
38310
38311         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
38312         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
38313
38314 2014-05-27  Roland McGrath  <roland@hack.frob.com>
38315
38316         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
38317
38318         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
38319         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
38320
38321 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
38322
38323         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
38324
38325 2014-05-27  Andreas Schwab  <schwab@suse.de>
38326
38327         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
38328         TLS_INIT_TP macro.
38329         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
38330         * elf/rtld.c (init_tls, dl_main): Likewise.
38331         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
38332         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
38333         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
38334         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
38335         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
38336         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
38337         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
38338         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
38339         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
38340         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
38341         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
38342         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
38343         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
38344         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
38345         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
38346         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
38347         * sysdeps/generic/tls.h: Update description.
38348
38349 2014-05-27  Will Newton  <will.newton@linaro.org>
38350
38351         [BZ #16990]
38352         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
38353         and restore r2 rather than just restoring.
38354
38355 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38356
38357         [BZ #16724]
38358         * libio/tst-ftell-append.c: New test case.
38359         * libio/Makefile (tests): Add test case.
38360         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
38361         append mode.
38362         * libio/wfileops.c (do_ftell_wide): Likewise.
38363
38364 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38365
38366         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38367
38368         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
38369         ...
38370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
38371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
38372         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
38373         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
38374         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
38375         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
38376         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
38377         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
38378         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38379         Moved ...
38380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
38381         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38382         Moved ...
38383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
38384         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
38385         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
38386         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
38387         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
38388         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
38389         ...
38390         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
38391         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
38392         Moved ...
38393         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
38394         here.
38395         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
38396         ...
38397         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
38398         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
38399         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
38400
38401         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
38402         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
38403         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
38404         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
38405
38406         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
38407         merge into ...
38408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
38409         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
38410         ...
38411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
38412         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
38413         ...
38414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
38415         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38416         Moved ...
38417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
38418         here.
38419         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
38420         Moved ...
38421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
38422         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
38423         Moved ...
38424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
38425
38426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
38427         conditional [RESET_PID].
38428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
38429         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
38430         removed.
38431         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
38432         removed.
38433
38434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
38435         <tcb-offsets.h>.
38436         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
38437         (__libc_vfork): New strong alias.
38438         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
38439         removed.
38440         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
38441         Removed.
38442
38443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
38444         <tcb-offsets.h>.
38445         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
38446         (__libc_vfork): New strong alias.
38447         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
38448         removed.
38449         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
38450         removed.
38451
38452 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
38453
38454         * malloc/malloc.c (mi_arena): New function.
38455         (malloc_info): Remove nested function mi_arena. Call non-nosted
38456         function mi_arena.
38457
38458 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38459
38460         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
38461         by insrwi.
38462         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38463         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38464         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
38465         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
38466         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
38467         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
38468         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38469
38470 2014-05-26  Andreas Schwab  <schwab@suse.de>
38471
38472         [BZ #16984]
38473         * locale/programs/repertoire.c (repertoire_read): Add slash
38474         between I18NPATH element and file name.
38475         * locale/programs/locfile.c (locfile_read): Likewise.
38476
38477 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38478
38479         * nptl/pthread_mutexattr_settype.c
38480         (__pthread_mutexattr_settype):
38481         Disable lock elision for PTHREAD_MUTEX_NORMAL.
38482
38483 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38484
38485         * nptl/tst-mutex5 (do_test):
38486         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
38487
38488 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38489
38490         * benchtests/README: Document 'init' directive.
38491         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
38492         BENCH_INIT.
38493         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
38494         (parse_file): Recognize 'init' directive.
38495
38496 2014-05-26  Kyle McMartin  <kyle@redhat.com>
38497
38498         [BZ #16796]
38499         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
38500         alignment of struct pthread.
38501
38502 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38503
38504         [BZ #16878]
38505         * nscd/netgroupcache.c (addgetnetgrentX): Look for
38506         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38507         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
38508         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38509
38510 2014-05-25  Richard Henderson  <rth@twiddle.net>
38511
38512         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38513         (SINGLE_THREAD_P_PIC): Remove.
38514         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
38515         (SINGLE_THREAD_P_PIC): Remove.
38516
38517         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
38518         branch to syscall error ...
38519         (PSEUDO): ... here.
38520         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
38521         from __local_syscall_error to .Lsyscall_error.
38522         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
38523         (SYSCALL_ERROR): Update label name.
38524
38525         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38526         Do not use DOARGS/UNDOARGS.
38527         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
38528         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
38529         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
38530         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
38531         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
38532
38533         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
38534         block comment.
38535
38536         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
38537         define if !NOT_IN_libc.
38538         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
38539         define with non-default symbol versions.
38540
38541 2014-05-23  Richard Henderson  <rth@twiddle.net>
38542
38543         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
38544         (vfork, __vfork): Define via compat_symbol.
38545
38546         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
38547         [!HAVE_IFUNC] (vfork_compat): Remove.
38548         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
38549
38550 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38551
38552         [BZ #16978]
38553         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
38554         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
38555         variable.
38556
38557 2014-05-23  Richard Henderson  <rth@twiddle.net>
38558
38559         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
38560         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
38561         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
38562         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
38563
38564         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
38565         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
38566         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
38567         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
38568         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
38569         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
38570         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
38571         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
38572         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
38573         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
38574         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
38575         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
38576         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
38577         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
38578         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
38579         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
38580         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
38581         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
38582         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
38583         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
38584         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
38585         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
38586         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
38587         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
38588         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
38589         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
38590         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
38591         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
38592         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
38593         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
38594         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
38595         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
38596         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
38597         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
38598         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
38599         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
38600         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
38601         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
38602         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
38603         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
38604         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
38605         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
38606         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
38607         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
38608         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
38609         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
38610         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
38611         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
38612         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
38613         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
38614         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
38615         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
38616         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
38617         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
38618         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
38619         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
38620
38621         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
38622         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
38623         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
38624         before exiting on error.
38625         (__libc_vfork): New strong alias.
38626         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
38627         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
38628
38629         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
38630         that was previously under [RESET_PID].
38631         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
38632
38633         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
38634
38635 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38636
38637         [BZ #16977]
38638         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
38639         value when x - 1 is zero.
38640         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
38641         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
38642         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
38643         0.0L for an argument of 1.0L.
38644         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
38645         Likewise.
38646         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
38647         value when x - 1 is zero.
38648         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
38649         * sysdeps/i386/fpu/libm-test-ulps: Update.
38650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38651
38652 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
38653
38654         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
38655         alphasort and versionsort.
38656
38657 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38658
38659         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
38660         macro.
38661         [copysignf]: Likewise.
38662
38663 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
38664
38665         * crypt/md5-crypt.c: Fix formatting.
38666
38667 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38668
38669         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
38670         (b64_from_24bit): New function.
38671
38672 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38673
38674         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
38675         libc_hidden_builtin_def to ifunc.
38676         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
38677         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
38678
38679 2014-05-21  Roland McGrath  <roland@hack.frob.com>
38680
38681         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
38682         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
38683
38684 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
38685
38686         * nscd/Depend (linuxthreads): Remove.
38687         (nptl): Add.
38688         * resolv/Depend (linuxthreads): Remove.
38689         * rt/Depend (linuxthreads): Remove.
38690
38691         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
38692         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
38693         $(common-objpfx)elf/.
38694         (link-libc-before-gnulib): Likewise.
38695         (elfobjdir): Remove variable.
38696         * Makefile (install): Use $(elf-objpfx) instead of
38697         $(common-objpfx)elf/.
38698         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
38699         $(elfobjdir)/.
38700         (link-libc-deps): Likewise.
38701         ($(common-objpfx)libc.so): Likewise.
38702         ($(common-objpfx)linkobj/libc.so): Likewise.
38703         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
38704         instead of $(common-objpfx)elf/.
38705         (symbolic-link-list): Likewise.
38706         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38707         [$(cross-compiling) = no]: Likewise.
38708         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
38709         $(elfobjdir)/.
38710         (static-gnulib-arch): Likewise.
38711         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38712         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
38713         $(common-objpfx)elf/.
38714
38715 2014-05-21  Richard Henderson  <rth@redhat.com>
38716
38717         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38718         (SINGLE_THREAD_P): Use the correct width load.  Fold
38719         into the ldr offset.
38720
38721         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
38722         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
38723
38724 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
38725
38726         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
38727         (libgcc_s_resume): Use __attribute_used__.
38728         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
38729         Likewise.
38730
38731 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38732
38733         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
38734         optimization when used with float constants.
38735
38736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38737
38738 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
38739
38740         [BZ #16915]
38741         * locale/nl_langinfo_l.c: Make direct reference to every
38742         _nl_current_CATEGORY symbol.
38743         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
38744         (tests-static): Add tst-langinfo-static.
38745         (tests-special): Add tst-langinfo-static.out.
38746         ($(objpfx)tst-langinfo.out): Redirect output.
38747         ($(objpfx)tst-langinfo-static.out): New.
38748         * localedata/tst-langinfo.sh: Send output to stdout.
38749         * localedata/tst-langinfo-static.c: New file.
38750
38751         [BZ #16965]
38752         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
38753         when the shift amount is modulo the limb size.
38754
38755 2014-05-20  Richard Henderson  <rth@redhat.com>
38756
38757         [BZ #16967]
38758         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
38759         Change type of sa_flags from unsigned int to int.
38760
38761         [BZ #16966]
38762         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
38763
38764         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
38765
38766 2014-05-20  Will Newton  <will.newton@linaro.org>
38767
38768         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38769         Test the return value of the system call in the nocancel case.
38770
38771 2014-05-20  Will Newton  <will.newton@linaro.org>
38772             Yvan Roux  <yvan.roux@linaro.org>
38773
38774         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
38775         #include of asm/ptrace.h.
38776         (PTRACE_GET_THREAD_AREA): Remove #undef.
38777         (PTRACE_GETHBPREGS): Likewise.
38778         (PTRACE_SETHBPREGS): Likewise.
38779         (struct user_regs_struct): New structure.
38780         (struct user_fpsimd_struct): New structure.
38781         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
38782         #include of asm/ptrace.h and second #include of sys/user.h.
38783         (PTRACE_GET_THREAD_AREA): Remove #undef.
38784         (PTRACE_GETHBPREGS): Likewise.
38785         (PTRACE_SETHBPREGS): Likewise.
38786         (ELF_NGREG): Use new struct user_regs_struct.
38787         (elf_fpregset_t): Use new struct user_fpsimd_struct.
38788
38789 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38790
38791         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
38792         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
38793
38794 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
38795
38796         [BZ #16958]
38797         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
38798         membar to avoid block loads/stores to overlap previous stores.
38799
38800 2014-05-17  Richard Henderson  <rth@redhat.com>
38801
38802         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
38803         Create the __##syscall_name##_nocancel entry point.
38804         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
38805         Remove; let the sysdep-cancel.h code create it.
38806
38807 2014-05-17  David S. Miller  <davem@davemloft.net>
38808
38809         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
38810         Protect with __USE_GNU.
38811         (TIOCSET_TEMPT): Likewise.
38812         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
38813         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
38814         these are already provided in bits/ioctl-types.h
38815
38816 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38817
38818         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
38819         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
38820
38821         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
38822         Use wait4 regardless of [__NR_waitpid].
38823
38824 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
38825
38826         PR libgcc/60166
38827         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
38828         (_FP_NANSIGN_Q): Set the quiet bit.
38829
38830 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
38831
38832         * benchtests/Makefile
38833         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
38834         not $(common-objpfx)math/libm.so.
38835         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
38836         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
38837         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
38838         $(common-objpfx)dlfcn/libdl.so.
38839         ($(objpfx)tst-audit8): Depend on $(libm), not
38840         $(common-objpfx)math/libm.so.
38841         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
38842         not $(common-objpfx)dlfcn/libdl.so.
38843         * math/Makefile
38844         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
38845         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
38846         [$(build-shared) = yes].
38847         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
38848         $(common-objpfx)nptl/libpthread.so.
38849         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
38850         $(common-objpfx)math/libm.so$(libm.so-version) or
38851         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
38852         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
38853         $(common-objpfx)dlfcn/libdl.so.
38854         * setjmp/Makefile (link-libm): Remove variable.
38855         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
38856         * stdio-common/Makefile (link-libm): Remove variable.
38857         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
38858         * stdlib/Makefile (link-libm): Remove variable.
38859         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
38860         ($(objpfx)tst-strtod-round): Likewise.
38861         ($(objpfx)tst-tininess): Likewise.
38862         ($(objpfx)tst-strtod-underflow): Likewise.
38863         ($(objpfx)tst-strtod6): Likewise.
38864         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
38865         $(libdl), not $(common-objpfx)nptl/libpthread.so and
38866         $(common-objpfx)dlfcn/libdl.so.
38867
38868 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38869
38870         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
38871         BSD terminal modes definitions.
38872
38873 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38874
38875         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
38876         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
38877
38878         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
38879         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
38880         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
38881         Don't do #include_next.
38882         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
38883         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
38884         Don't do #include_next.
38885         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
38886         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
38887         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
38888         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
38889
38890 2014-05-16  Allan McRae  <allan@archlinux.org>
38891
38892         * po/sv.po: Update Swedish translation from translation project.
38893
38894         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
38895         in sed expression.
38896
38897 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
38898
38899         [BZ #16917]
38900         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
38901         errno if the TIOCGPTN ioctl fails with an error different than
38902         EINVAL.
38903         * login/tst-ptsname.c: New file.
38904         * login/Makefile (tests): Add tst-ptsname.
38905
38906         [BZ #16943]
38907         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
38908         and prlimit64.
38909
38910 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
38911
38912         [BZ #16849]
38913         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
38914         herrno to return EAI_AGAIN.
38915
38916 2014-05-14  Roland McGrath  <roland@hack.frob.com>
38917
38918         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
38919         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
38920         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
38921         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
38922         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
38923         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
38924         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
38925         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
38926         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
38927         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
38928         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
38929         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
38930         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
38931         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
38932         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
38933         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
38934         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
38935         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
38936         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
38937         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
38938         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
38939         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
38940         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
38941         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
38942         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
38943         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
38944         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
38945         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
38946         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
38947         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
38948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
38949         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
38950         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
38951         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
38952         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
38953         Moved ...
38954         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
38955         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
38956         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
38957         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
38958         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
38959         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
38960         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
38961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
38962         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
38963         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
38964         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
38965         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
38966         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
38967         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
38968         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
38969         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
38970         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
38971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
38972         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
38973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
38974         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
38975         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
38976         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
38977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
38978         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
38979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
38980         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
38981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
38982         Moved ...
38983         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
38984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
38985         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
38986         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
38987         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
38988         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
38989         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
38990         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
38991         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
38992         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
38993         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
38994         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
38995         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
38996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
38997         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
38998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
38999         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
39000         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
39001         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
39002         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
39003         Moved ...
39004         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
39005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
39006         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
39007
39008         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
39009         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
39010         (libpthread-sysdep_routines): Add elision-related stuff here instead.
39011         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
39012         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
39013         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
39014         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
39015         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
39016         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
39017         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
39018         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
39019         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
39020         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
39021         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
39022         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
39023         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
39024         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
39025         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
39026         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
39027         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
39028         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
39029         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
39030         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
39031         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
39032         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
39033         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
39034         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
39035         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
39036         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
39037         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
39038         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
39039
39040         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
39041         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
39042
39043         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
39044         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
39045         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
39046         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
39047         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
39048         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
39049         Moved ...
39050         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
39051         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
39052         Moved ...
39053         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
39054         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
39055         Moved ...
39056         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
39057         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
39058         Moved ...
39059         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
39060         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
39061         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
39062         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
39063         Moved ...
39064         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
39065         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
39066         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
39067         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
39068         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
39069         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
39070         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
39071         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
39072         Moved ...
39073         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
39074         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39075         Moved ...
39076         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39077         ... here.
39078         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
39079         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
39080         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
39081         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
39082         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39083         Moved ...
39084         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39085         ... here.
39086         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
39087         Moved ...
39088         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
39089         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
39090         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
39091         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
39092         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
39093         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
39094         Moved ...
39095         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
39096         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
39097         Moved ...
39098         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
39099         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
39100         Moved ...
39101         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
39102         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
39103         Moved ...
39104         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
39105         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
39106         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
39107         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
39108         Moved ...
39109         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
39110         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
39111         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
39112         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
39113         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
39114         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
39115         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
39116         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
39117         Moved ...
39118         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
39119         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39120         Moved ...
39121         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39122         ... here.
39123         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
39124         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
39125         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
39126         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
39127         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39128         Moved ...
39129         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39130         ... here.
39131         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
39132         Moved ...
39133         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
39134         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
39135         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
39136         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
39137         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
39138         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
39139         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
39140         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
39141         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
39142         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
39143         Moved ...
39144         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
39145         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
39146         Moved ...
39147         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
39148         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
39149         Moved ...
39150         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
39151         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
39152         Moved ...
39153         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
39154         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
39155         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
39156         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
39157         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
39158         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
39159         Moved ...
39160         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
39161         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
39162         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
39163         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
39164         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
39165         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
39166         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
39167         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
39168         Moved ...
39169         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
39170         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39171         Moved ...
39172         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39173         ... here.
39174         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
39175         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
39176         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
39177         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
39178         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39179         Moved ...
39180         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39181         ... here.
39182         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
39183         Moved ...
39184         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
39185         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
39186         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
39187         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
39188         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
39189         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
39190         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
39191         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
39192         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
39193         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
39194         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
39195
39196         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
39197         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
39198
39199         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
39200         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
39201
39202         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
39203         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
39204         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
39205         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
39206         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
39207         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
39208         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
39209         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
39210         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
39211         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
39212         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
39213         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
39214         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
39215         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
39216         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
39217         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
39218         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
39219         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
39220         Moved ...
39221         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
39222         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
39223         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
39224         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
39225         Moved ...
39226         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
39227         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
39228         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
39229         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
39230         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
39231         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
39232         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
39233         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
39234         Moved ...
39235         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
39236         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
39237         Moved ...
39238         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
39239         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
39240         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
39241         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
39242         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
39243         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
39244         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
39245         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
39246         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
39247         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
39248         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
39249         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
39250         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
39251         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
39252         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
39253         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
39254         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
39255
39256         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
39257         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
39258         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
39259         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
39260         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
39261
39262         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
39263         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
39264         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
39265         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
39266         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
39267         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
39268         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
39269         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
39270         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
39271         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
39272
39273         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
39274         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
39275
39276         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
39277         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
39278         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
39279         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
39280         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
39281         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
39282         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
39283         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
39284         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
39285         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
39286         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
39287         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
39288         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
39289         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
39290         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
39291         Update #include.
39292         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
39293         Likewise.
39294         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
39295         Likewise.
39296         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39297         Likewise.
39298         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39299         Likewise.
39300         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
39301         Likewise.
39302         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
39303         Likewise.
39304         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
39305         Likewise.
39306         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
39307         Likewise.
39308         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
39309         Likewise.
39310         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
39311         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
39312         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
39313         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
39314         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
39315         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
39316         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
39317         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
39318         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
39319         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
39320         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
39321         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
39322         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
39323         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
39324         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
39325
39326         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
39327         that was previously under [RESET_PID].
39328         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
39329         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
39330         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
39331
39332         * sysdeps/i386/nptl/Implies: New file.
39333         * sysdeps/x86_64/nptl/Implies: New file.
39334         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
39335         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
39336         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
39337         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
39338
39339         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
39340         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39341         (__libc_vfork): New strong alias.
39342         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
39343         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
39344
39345         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
39346         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39347         (__libc_vfork): New strong alias.
39348         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
39349         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
39350
39351         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
39352         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39353         (__libc_vfork): New strong alias.
39354         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
39355         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
39356         * nptl/pt-vfork.c: New file.
39357         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
39358         (libpthread: GLIBC_2.20): New version set (empty).
39359
39360 2014-05-14  Will Newton  <will.newton@linaro.org>
39361
39362         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
39363         rather than #if.
39364
39365 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39366
39367         [BZ #16564]
39368         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
39369         arguments with exponent 65 or above.
39370         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
39371         arguments 0x1p113L or above.
39372         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
39373         to arguments 0x1p107L or above.
39374         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
39375         positive arguments with exponent 65 or above.
39376         * math/auto-libm-test-in: Add more tests of log1p.
39377         * math/auto-libm-test-out: Regenerated.
39378
39379         [BZ #16928]
39380         * math/s_cacos.c (__cacos): Ensure zero real part of result from
39381         non-finite arguments is +0.
39382         * math/s_cacosf.c (__cacosf): Likewise.
39383         * math/s_cacosl.c (__cacosl): Likewise.
39384         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
39385         * sysdeps/i386/fpu/libm-test-ulps: Update.
39386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39387
39388         [BZ #16927]
39389         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
39390         value.
39391         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
39392         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
39393         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
39394         for explicit high bit of mantissa when testing for argument equal
39395         to 1.
39396         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
39397         * sysdeps/i386/fpu/libm-test-ulps: Update.
39398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39399
39400         [BZ #16516]
39401         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
39402         (__erf): Scale by 16 instead of 8 in potentially underflowing
39403         case.  Ensure exception if result actually underflows.
39404         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
39405         (__erff): Scale by 16 instead of 8 in potentially underflowing
39406         case.  Ensure exception if result actually underflows.
39407         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
39408         (efx8): Remove variable.
39409         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39410         case.  Ensure exception if result actually underflows.
39411         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
39412         (efx8): Remove variable.
39413         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39414         case.  Ensure exception if result actually underflows.
39415         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
39416         (efx8): Remove variable.
39417         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39418         case.  Ensure exception if result actually underflows.
39419         * math/auto-libm-test-in: Add more tests of erf.
39420         * math/auto-libm-test-out: Regenerated.
39421
39422 2014-05-14  Andreas Schwab  <schwab@suse.de>
39423
39424         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
39425         Remove code conditionalized on USE___THREAD.
39426
39427         * config.h.in (HAVE_PT_CHOWN): Define as 0.
39428         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
39429         not definedness.
39430
39431 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39432
39433         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
39434         Define unconditionally.
39435         (__ASSUME_O_CLOEXEC): Likewise.
39436         (__ASSUME_SOCK_CLOEXEC): Likewise.
39437         (__ASSUME_IN_NONBLOCK): Likewise.
39438         (__ASSUME_PIPE2): Likewise.
39439         (__ASSUME_EVENTFD2): Likewise.
39440         (__ASSUME_SIGNALFD4): Likewise.
39441         (__ASSUME_DUP3): Likewise.
39442         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39443         (__ASSUME_DUP3): Do not define.
39444         (__ASSUME_EVENTFD2): Likewise.
39445         (__ASSUME_IN_NONBLOCK): Likewise.
39446         (__ASSUME_O_CLOEXEC): Likewise.
39447         (__ASSUME_PIPE2): Likewise.
39448         (__ASSUME_SIGNALFD4): Likewise.
39449         (__ASSUME_SOCK_CLOEXEC): Likewise.
39450         (__ASSUME_UTIMES): Undefine.
39451         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39452         (__ASSUME_UTIMES): Do not define.
39453         (__ASSUME_O_CLOEXEC): Likewise.
39454         (__ASSUME_SOCK_CLOEXEC): Likewise.
39455         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
39456         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
39457         0x020621].
39458         (__ASSUME_PIPE2): Likewise.
39459         (__ASSUME_EVENTFD2): Likewise.
39460         (__ASSUME_SIGNALFD4): Likewise.
39461         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
39462         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
39463         Do not define.
39464         (__ASSUME_EVENTFD2): Likewise.
39465         (__ASSUME_SIGNALFD4): Likewise.
39466         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39467         (__ASSUME_32BITUIDS): Likewise.
39468         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
39469         (__ASSUME_IPC64): Likewise.
39470         (__ASSUME_ST_INO_64_BIT): Likewise.
39471         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
39472         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
39473         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39474         (__ASSUME_UTIMES): Do not define.
39475         (__ASSUME_PSELECT): Likewise.
39476         (__ASSUME_PPOLL): Likewise.
39477         (__ASSUME_O_CLOEXEC): Likewise.
39478         (__ASSUME_SOCK_CLOEXEC): Likewise.
39479         (__ASSUME_IN_NONBLOCK): Likewise.
39480         (__ASSUME_PIPE2): Likewise.
39481         (__ASSUME_EVENTFD2): Likewise.
39482         (__ASSUME_SIGNALFD4): Likewise.
39483         (__ASSUME_DUP3): Likewise.
39484         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39485         (__ASSUME_UTIMES): Likewise.
39486         (__ASSUME_O_CLOEXEC): Likewise.
39487         (__ASSUME_SOCK_CLOEXEC): Likewise.
39488         (__ASSUME_IN_NONBLOCK): Likewise.
39489         (__ASSUME_PIPE2): Likewise.
39490         (__ASSUME_EVENTFD2): Likewise.
39491         (__ASSUME_SIGNALFD4): Likewise.
39492         (__ASSUME_DUP3): Likewise.
39493         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
39494         (__ASSUME_UTIMES): Likewise.
39495         (__ASSUME_O_CLOEXEC): Likewise.
39496         (__ASSUME_SOCK_CLOEXEC): Likewise.
39497         (__ASSUME_IN_NONBLOCK): Likewise.
39498         (__ASSUME_PIPE2): Likewise.
39499         (__ASSUME_EVENTFD2): Likewise.
39500         (__ASSUME_SIGNALFD4): Likewise.
39501         (__ASSUME_DUP3): Likewise.
39502         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
39503         Likewise.
39504         (__ASSUME_UTIMES): Likewise.
39505         (__ASSUME_EVENTFD2): Likewise.
39506         (__ASSUME_SIGNALFD4): Likewise.
39507         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39508         (__ASSUME_O_CLOEXEC): Likewise.
39509         (__ASSUME_SOCK_CLOEXEC): Likewise.
39510         (__ASSUME_IN_NONBLOCK): Likewise.
39511         (__ASSUME_PIPE2): Likewise.
39512         (__ASSUME_EVENTFD2): Likewise.
39513         (__ASSUME_SIGNALFD4): Likewise.
39514         (__ASSUME_DUP3): Likewise.
39515         (__ASSUME_UTIMES): Undefine.
39516
39517         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
39518         feclearexcept.  Remove symbol versioning code.
39519         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
39520         symbol versioning code.
39521         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
39522         symbol versioning code.
39523         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
39524         feupdateenv.  Remove symbol versioning code.
39525         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
39526         fegetexceptflag.  Remove symbol versioning code.
39527         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
39528         fesetexceptflag.  Remove symbol versioning code.
39529         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
39530         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
39531         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
39532         (__posix_fadvise64_l32): Remove prototype.
39533         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
39534         code.
39535
39536 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39537
39538         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
39539         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
39540         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
39541         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
39542
39543 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
39544
39545         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
39546         current working directory
39547
39548 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39549
39550         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
39551         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
39552         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
39553         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
39554         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
39555         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
39556         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
39557         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
39558         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
39559         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
39560         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
39561         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
39562         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
39563         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
39564         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
39565         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
39566         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
39567         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
39568         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
39569         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
39570         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
39571         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
39572         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
39573         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
39574         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
39575         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
39576         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
39577         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
39578         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
39579         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
39580         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
39581         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
39582         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
39583         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
39584         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
39585         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
39586         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
39587         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
39588         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
39589         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
39590         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
39591         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
39592
39593         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
39594         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
39595
39596         * sysdeps/unix/sysv/linux/arm/Makefile
39597         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39598         Add rt-aeabi_unwind_cpp_pr1.
39599         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
39600         Add nptl-aeabi_unwind_cpp_pr1.
39601         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
39602         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
39603         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
39604         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
39605         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
39606         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
39607
39608         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
39609         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
39610         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
39611         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
39612
39613         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
39614         Deconditionalize the code that was previously under [RESET_PID].
39615         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
39616
39617         * sysdeps/generic/exit-thread.h: New file.
39618         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
39619         * include/unistd.h (__exit_thread): Remove declaration.
39620         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
39621         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
39622         * csu/libc-start.c: Include <exit-thread.h>.
39623         (LIBC_START_MAIN): Pass no argument to __exit_thread.
39624         * nptl/pthread_create.c: Include <exit-thread.h>.
39625         (start_thread): Call __exit_thread in place of __exit_thread_inline.
39626         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
39627         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
39628         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
39629         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
39630         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
39631         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
39632         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
39633         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
39634         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
39635         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
39636         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
39637         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
39638         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
39639         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
39640         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
39641         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
39642
39643 2014-05-13  Andreas Schwab  <schwab@suse.de>
39644
39645         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
39646
39647 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
39648
39649         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
39650         (__ASSUME_UTIMES): Do not condition on kernel version.
39651         (__ASSUME_PSELECT): Define unconditionally.
39652         (__ASSUME_PPOLL): Likewise.
39653         (__ASSUME_ATFCTS): Likewise.
39654         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
39655         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
39656         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
39657         (__ASSUME_UTIMENSAT): Define unconditionally.
39658         (__ASSUME_PRIVATE_FUTEX): Likewise.
39659         (__ASSUME_FALLOCATE): Likewise.
39660         (__ASSUME_O_CLOEXEC): Likewise.
39661         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
39662         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
39663         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
39664         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
39665         (__ASSUME_IN_NONBLOCK): Likewise.
39666         (__ASSUME_PIPE2): Likewise.
39667         (__ASSUME_EVENTFD2): Likewise.
39668         (__ASSUME_SIGNALFD4): Likewise.
39669         (__ASSUME_DUP3): Likewise.
39670         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39671         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
39672         (__ASSUME_AT_RANDOM): Likewise.
39673         (__ASSUME_PREADV): Likewise.
39674         (__ASSUME_PWRITEV): Likewise.
39675         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
39676         (__ASSUME_F_GETOWN_EX): Define unconditionally.
39677         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
39678         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
39679         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
39680         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39681         (__ASSUME_O_CLOEXEC): Define unconditionally.
39682         (__ASSUME_PSELECT): Do not undefine conditionally.
39683         (__ASSUME_PPOLL): Likewise.
39684         (__ASSUME_ATFCTS): Likewise.
39685         (__ASSUME_SET_ROBUST_LIST): Likewise.
39686         (__ASSUME_UTIMENSAT): Likewise.
39687         (__ASSUME_FDATASYNC): Define unconditionally.
39688         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39689         (__ASSUME_SIGFRAME_V2): Likewise.
39690         )__ASSUME_EVENTFD2): Likewise.
39691         (__ASSUME_SIGNALFD4): Likewise.
39692         (__ASSUME_PSELECT): Do not undefine conditionally.
39693         (__ASSUME_PPOLL): Likewise.
39694         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39695         (__ASSUME_PSELECT): Define unconditionally.
39696         (__ASSUME_PPOLL): Likewise.
39697         (__ASSUME_O_CLOEXEC): Likewise.
39698         (__ASSUME_SOCK_CLOEXEC): Likewise.
39699         (__ASSUME_IN_NONBLOCK): Likewise.
39700         (__ASSUME_PIPE2): Likewise.
39701         (__ASSUME_EVENTFD2): Likewise.
39702         (__ASSUME_SIGNALFD4): Likewise.
39703         (__ASSUME_DUP3): Likewise.
39704         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39705         (__ASSUME_O_CLOEXEC): Likewise.
39706         (__ASSUME_SOCK_CLOEXEC): Likewise.
39707         (__ASSUME_IN_NONBLOCK): Likewise.
39708         (__ASSUME_PIPE2): Likewise.
39709         (__ASSUME_EVENTFD2): Likewise.
39710         (__ASSUME_SIGNALFD4): Likewise.
39711         (__ASSUME_DUP3): Likewise.
39712         * sysdeps/unix/sysv/linux/mips/kernel-features.h
39713         (__ASSUME_EVENTFD2): Likewise.
39714         (__ASSUME_SIGNALFD4): Likewise.
39715         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39716
39717 2014-05-12  Andreas Schwab  <schwab@suse.de>
39718
39719         [BZ #16932]
39720         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
39721         (_nss_nis_gethostbyname4_r): Return error if item length is larger
39722         than maximum RPC packet size.
39723         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
39724         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
39725         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
39726         (_nss_nis_getservbyport_r): Likewise.
39727
39728 2014-05-12  Will Newton  <will.newton@linaro.org>
39729
39730         * malloc/Makefile (tests): Add tst-mallopt.
39731         * malloc/tst-mallopt.c: New file.
39732
39733 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39734
39735         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
39736         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
39737
39738 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39739
39740         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
39741         (tst-tlsmod6.so): Likewise.
39742
39743 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39744
39745         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
39746
39747 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
39748
39749         [BZ #16064]
39750         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
39751         and <dl-procinfo.h>.
39752         (__fegetenv): Save SSE state in envp->__eip if supported.
39753         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
39754         envp->__eip if supported.
39755         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
39756         and <dl-procinfo.h>.
39757         (__fesetenv): Always set __eip, __cs_selector, __opcode,
39758         __data_offset and __data_selector in environment to 0.  Set SSE
39759         state if supported.
39760         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
39761         test-fenv-sse.
39762         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
39763         -mfpmath=sse.
39764         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
39765
39766 2014-05-09  Will Newton  <will.newton@linaro.org>
39767
39768         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
39769         and libc_relro_required for ARM.
39770         * sysdeps/arm/preconfigure: Regenerate.
39771
39772 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39773             Stefan Liebler  <stli@linux.vnet.ibm.com>
39774
39775         * config.make.in (enable-lock-elision): New Makefile variable.
39776         * configure.ac: Likewise.
39777         * configure: Regenerate.
39778         * sysdeps/s390/configure.ac:
39779         Add check for gcc transactions support.
39780         * sysdeps/s390/configure: Regenerate.
39781         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
39782         Build elision files if enabled.
39783         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
39784         Add lock elision support for s390.
39785         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
39786         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
39787         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
39788         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
39789         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
39790         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
39791         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
39792         Likewise.
39793         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
39794         Likewise.
39795         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
39796         Likewise.
39797         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
39798         Likewise.
39799         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
39800         (__lll_timedlock_elision, __lll_lock_elision)
39801         (__lll_unlock_elision, __lll_trylock_elision)
39802         (lll_timedlock_elision, lll_lock_elision)
39803         (lll_unlock_elision, lll_trylock_elision): Add.
39804         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
39805         (pthread_mutex_t): Add lock elision support for s390.
39806
39807 2014-05-14  Wilco  <wdijkstr@arm.com>
39808
39809         * sysdeps/arm/fclrexcpt.c: Cleanup.
39810         * sysdeps/arm/fedisblxcpt.c: Cleanup.
39811         * sysdeps/arm/feenablxcpt.c: Cleanup.
39812         * sysdeps/arm/fegetenv.c: Cleanup.
39813         * sysdeps/arm/fegetexcept.c: Cleanup.
39814         * sysdeps/arm/fegetround.c: Cleanup.
39815         * sysdeps/arm/feholdexcpt.c: Cleanup.
39816         * sysdeps/arm/fesetenv.c: Cleanup.
39817         * sysdeps/arm/fesetround.c: Cleanup.
39818         * sysdeps/arm/feupdateenv.c: Cleanup.
39819         * sysdeps/arm/fgetexcptflg.c: Cleanup.
39820         * sysdeps/arm/fraiseexcpt.c: Cleanup.
39821         * sysdeps/arm/fsetexcptflg.c: Cleanup.
39822         * sysdeps/arm/ftestexcept.c: Cleanup.
39823         * sysdeps/arm/get-rounding-mode.h: Cleanup.
39824         * sysdeps/arm/setfpucw.c: Cleanup.
39825
39826 2014-05-09  Will Newton  <will.newton@linaro.org>
39827
39828         * sysdeps/arm/armv7/strcmp.S: New file.
39829         * NEWS: Mention addition of ARMv7 optimized strcmp.
39830
39831 2014-05-08  Roland McGrath  <roland@hack.frob.com>
39832
39833         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
39834         look for %.ac rather than %.in.
39835
39836         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
39837         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
39838         * sysdeps/mach/hurd/configure: Regenerated.
39839         * sysdeps/unix/sysv/linux/configure: Regenerated.
39840
39841         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
39842
39843 2014-05-07  Steve Ellcey  <sellcey@mips.com>
39844
39845         [BZ# 16922]
39846         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
39847         (LONG_SUB): Ditto.
39848         (PTR_SUB): Ditto.
39849
39850 2014-05-07  Andreas Schwab  <schwab@suse.de>
39851
39852         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
39853         when skipping over non-matching result from nscd.
39854
39855 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
39856
39857         [BZ #16876]
39858         * nptl/sockperf.c (client): Check socket return value.
39859
39860         [BZ #16877]
39861         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
39862         nscd security class.
39863
39864 2014-05-06  Roland McGrath  <roland@hack.frob.com>
39865
39866         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
39867         * sysdeps/arm/unwind.h: ... here.
39868
39869 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
39870
39871         [BZ# 16916]
39872         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
39873         Define.
39874
39875 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
39876
39877         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
39878         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
39879         multiarch strncpy for PPC64.
39880         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
39881         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
39882         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
39883         multiarch optimizations.
39884         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39885         (__libc_ifunc_impl_list): Likewise.
39886         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
39887         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
39888         multiarch stpncpy for PPC64.
39889         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
39890         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
39891
39892 2014-05-06  Andreas Schwab  <schwab@suse.de>
39893
39894         [BZ #16912]
39895         * gmon/mcount.c (_MCOUNT_DECL): Use
39896         atomic_compare_and_exchange_bool_acq instead of
39897         catomic_compare_and_exchange_bool_acq.
39898
39899 2014-05-05  Roland McGrath  <roland@hack.frob.com>
39900
39901         * elf/Makefile (others, install-bin): Remove pldd.
39902         (pldd-modules): Variable removed.
39903         ($(objpfx)pldd): Target removed.
39904         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
39905         (others, install-bin): Append pldd here.
39906         ($(objpfx)pldd): New target.
39907
39908         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
39909         to 0, so the first #if test emitted later doesn't see it undefined.
39910         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
39911         * sysdeps/gnu/errlist.c: Regenerated.
39912
39913 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39914
39915         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
39916         [libc_hidden_builtin_def]: Define to empty value.
39917         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
39918         [libc_hidden_builtin_def]: Likewise.
39919         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
39920         [libc_hidden_builtin_def]: Likewise.
39921         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
39922         [libc_hidden_builtin_def]: Likewise.
39923         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
39924         __redirect_memcpy and define ifunc as default hidden symbol.
39925         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
39926         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
39927
39928 2014-05-04  Adam Conrad  <adconrad@0c3.net>
39929
39930         * locale/iso-4217.def: Reintroduce XDR currency.
39931
39932 2014-05-04  Allan McRae  <allan@archlinux.org>
39933
39934         * po/eo.po: Update Esperanto translation from translation project.
39935
39936 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
39937
39938         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
39939         and FEATURE_INDEX_MAX to 1.
39940         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
39941
39942 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39943
39944         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
39945         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
39946         * iconvdata/big5.c (ONE_DIRECTION): Define.
39947         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
39948         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
39949         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
39950         * iconvdata/cp932.c (ONE_DIRECTION): Define.
39951         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
39952         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
39953         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
39954         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
39955         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
39956         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
39957         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
39958         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
39959         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
39960         * iconvdata/gbk.c (ONE_DIRECTION): Define.
39961         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
39962         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
39963         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
39964         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
39965         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
39966         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
39967         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
39968         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
39969         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
39970         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
39971         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
39972         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
39973         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
39974         * iconvdata/iso646.c (ONE_DIRECTION): Define.
39975         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
39976         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
39977         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
39978         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
39979         * iconvdata/johab.c (ONE_DIRECTION): Define.
39980         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
39981         * iconvdata/sjis.c (ONE_DIRECTION): Define.
39982         * iconvdata/t.61.c (ONE_DIRECTION): Define.
39983         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
39984         * iconvdata/tscii.c (ONE_DIRECTION): Define.
39985         * iconvdata/uhc.c (ONE_DIRECTION): Define.
39986         * iconvdata/unicode.c (ONE_DIRECTION): Define.
39987         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
39988         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
39989         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
39990
39991 2014-05-01  Roland McGrath  <roland@hack.frob.com>
39992
39993         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
39994         (_IO_JUMPS_OFFSET): Define to 0.
39995
39996         * nptl/sysdeps/pthread/bits/libc-lock.h
39997         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39998         (__libc_lock_define_initialized_recursive): Always define using
39999         initializer.  Modern compilers treat uninitialized (implicit zero) and
40000         explicit zero initializers the same (i.e. put the datum in bss).
40001
40002 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40003
40004         * nscd/nscd-client.h: Include <string.h>.
40005
40006 2014-05-01  David S. Miller  <davem@davemloft.net>
40007
40008         [BZ #16885]
40009         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
40010         multiple zero bytes exist at the end of a string.
40011         Reported by Aurelien Jarno <aurelien@aurel32.net>
40012
40013         * string/test-strcmp.c (check): Add explicit test for situations where
40014         there are multiple zero bytes after the first.
40015
40016 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40017
40018         [BZ #16890]
40019         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
40020         when compiling wprintf.
40021         * stdio-common/tstdiomisc.c (t3): New function.
40022         (main): Call it.
40023
40024 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40025
40026         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
40027         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
40028         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
40029         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
40030
40031 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40032
40033         * stdlib/longlong.h: Updated from GCC.
40034
40035 2014-05-01  Will Newton  <will.newton@linaro.org>
40036             Bernard Ogden  <bernie.ogden@linaro.org>
40037
40038         * NEWS: Update fixed bug list.
40039
40040         [BZ #15119]
40041         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
40042
40043 2014-04-30  David S. Miller  <davem@davemloft.net>
40044
40045         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
40046         (libc_feholdexcept_setround_sparc_ctx): New function.
40047         (libc_fesetenv_sparc_ctx): Likewise.
40048         (libc_feupdateenv_sparc_ctx): Likewise.
40049         (libc_feholdsetround_sparc_ctx): Likewise.
40050         (libc_feholdexcept_setround_ctx): Define.
40051         (libc_feholdexcept_setroundf_ctx): Likewise.
40052         (libc_feholdexcept_setroundl_ctx): Likewise.
40053         (libc_fesetenv_ctx): Likewise.
40054         (libc_fesetenvf_ctx): Likewise.
40055         (libc_fesetenvl_ctx): Likewise.
40056         (libc_feupdateenv_ctx): Likewise.
40057         (libc_feupdateenvf_ctx): Likewise.
40058         (libc_feupdateenvl_ctx): Likewise.
40059         (libc_feresetround_ctx): Likewise.
40060         (libc_feresetroundf_ctx): Likewise.
40061         (libc_feresetroundl_ctx): Likewise.
40062         (libc_feholdsetround_ctx): Likewise.
40063         (libc_feholdsetroundf_ctx): Likewise.
40064         (libc_feholdsetroundl_ctx): Likewise.
40065
40066         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40067         with __USE_GNU instead of XOPEN cpp guards.
40068
40069         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
40070         0.
40071
40072         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40073         with XOPEN cpp guards.
40074
40075 2014-04-30  Julian Brown  <julian@codesourcery.com>
40076
40077         [BZ #16888]
40078         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
40079         handling.
40080
40081 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
40082
40083         [BZ #9894]
40084         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
40085         Change to 2.6.32.
40086         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
40087         * sysdeps/unix/sysv/linux/configure: Regenerated.
40088         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
40089         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
40090         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
40091         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
40092         * README: Update reference to required Linux kernel version.
40093         * manual/install.texi (Linux): Update reference to required Linux
40094         kernel headers version.
40095         * INSTALL: Regenerated.
40096
40097         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
40098         header inclusion.
40099         [POSIX] (limits.h): Likewise.
40100         [POSIX] (math.h): Likewise.
40101         [POSIX] (sys/wait.h): Likewise.
40102         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
40103         function.
40104         [POSIX] (stddef.h): Do not allow header inclusion.
40105
40106 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40107
40108         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
40109
40110 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
40111
40112         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
40113         Return immediately after lll_futex_wake.
40114
40115 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40116
40117         [BZ #16791]
40118         * nscd/nscd-client.h (datahead_init_common): Initialize entire
40119         structure.
40120         (datahead_init_pos): Call datahead_init_common early.
40121         (datahead_init_neg): Likewise.
40122
40123         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
40124         datahead_init_neg): New functions.
40125         * nscd/aicache.c (addhstaiX): Use them.
40126         * nscd/grpcache.c (cache_addgr): Likewise.
40127         * nscd/hstcache.c (cache_addhst): Likewise.
40128         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40129         * nscd/netgroupcache.c (do_notfound): Likewise.
40130         (addgetnetgrentX): Likewise.
40131         (addinnetgrX): Likewise.
40132         * nscd/pwdcache.c (cache_addpw): Likewise.
40133         * nscd/servicescache.c (cache_addserv): Likewise.
40134
40135 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40136             Atsushi Onoe  <atsushi@onoe.org>
40137
40138         [BZ #14308]
40139         [BZ #12994]
40140         [BZ #13651]
40141         * resolv/res_query.c (__libc_res_nsearch): Return if at least
40142         one response is valid.
40143         * resolv/res_send.c (send_dg): Check for validity of other
40144         response if the current response is a referral.
40145
40146 2014-04-29  Steve Ellcey  <sellcey@mips.com>
40147
40148         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
40149
40150 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
40151
40152         [BZ #16823]
40153         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
40154         Always divide by positive zero when computing -Inf result.
40155         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
40156         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
40157
40158 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40159
40160         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
40161         FPSCR if value do not change.
40162         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
40163         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
40164         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
40165         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
40166         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
40167         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
40168         function.
40169
40170 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
40171
40172         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
40173         * sysdeps/unix/sysv/linux/hppa: Move directory from
40174         ports/systeps/unix/sysv/linux/hppa.
40175         * README: Update listing for hppa-*-linux-gnu.
40176
40177 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
40178
40179         [BZ #16754]
40180         * manual/stdio.texi (Hook functions): Fix types of stream hook
40181         functions.
40182         [BZ #16854]
40183         * socket/sys/socket.h: Fix typo in comment.
40184
40185 2014-04-28  Wilco  <wdijkstr@arm.com>
40186
40187         * sysdeps/arm/fenv_private.h: New file.
40188         * sysdeps/arm/math_private.h: New file.
40189         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
40190
40191 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
40192
40193         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
40194         with __int128_t.
40195         (La_x86_64_retval): Likewise.
40196
40197 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
40198
40199         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
40200         fpsr if value didn't change.
40201         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
40202         to fpcr if value didn't change.
40203         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
40204         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
40205         fpsr or fpcr if value didn't change.
40206         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
40207         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
40208         fpcr if value didn't change.
40209         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
40210         to fpsr if value didn't change.
40211
40212 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
40213
40214         * nptl/tst-sem3.c: Use test-skeleton.c
40215         (main): Rename to do_test.  Use return instead of
40216         exit.
40217         * nptl/tst-sem4.c: Use test-skeleton.c
40218         (main): Rename to do_test.
40219
40220 2014-04-22  David S. Miller  <davem@davemloft.net>
40221
40222         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
40223         (struct sigaction): New struct member __glibc_reserved0, change
40224         type of sa_flags to int.
40225
40226 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
40227
40228         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
40229         (COUNT_LEADING_ZEROS_0): Define for AArch64.
40230
40231 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
40232
40233         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
40234         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
40235
40236 2014-04-22  Will Newton  <will.newton@linaro.org>
40237             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
40238
40239         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
40240         (__longjmp): Add longjmp and longjmp_target SystemTap
40241         probes.
40242         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
40243         (__sigsetjmp): Add setjmp SystemTap probe.
40244
40245 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
40246
40247         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
40248         match manual order.
40249
40250 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40251
40252         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
40253
40254         * sysdeps/powerpc/fpu/fenv_private.h
40255         (libc_feholdexcept_setroundl_ctx): Define to
40256         libc_feholdexcept_setround_ppc_ctx.
40257         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
40258         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
40259         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
40260         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
40261
40262 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40263
40264         * sysdeps/aarch64/math-tests.h: New file.
40265
40266 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
40267
40268         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
40269         New.
40270         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
40271         Check and set bit_AVX2_Usable.
40272         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
40273         macro.
40274         (bit_AVX2): Likewise.
40275         (index_AVX2_Usable): Likewise.
40276         (CPUID_AVX2): Likewise.
40277         (HAS_AVX2): Likewise.
40278
40279 2014-04-17  Will Newton  <will.newton@linaro.org>
40280
40281         * manual/setjmp.texi (System V contexts): Add note that
40282         calling setcontext on a context created by a call to a
40283         signal handler is undefined.  Update text to note that
40284         setcontext from a signal handler is possible but not
40285         recommended.
40286
40287         [BZ #16629]
40288         * stdlib/tst-setcontext.c: Include signal.h.
40289         (main): Check that the signal stack before and
40290         after swapcontext is the same.
40291
40292         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
40293         Re-implement to restore registers in user code and avoid
40294         rt_sigreturn system call.
40295
40296 2014-04-17  Wilco  <wdijkstr@arm.com>
40297
40298         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
40299         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
40300         * math/test-fenv.c: Skip exception trap tests on targets which only
40301         support non-stop mode.
40302
40303 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40304             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40305
40306         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
40307         (libc_feholdsetround_aarch64_ctx)
40308         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
40309         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
40310         (libc_feresetround_ctx, libc_feresetroundf_ctx)
40311         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
40312         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
40313         (libc_feresetround_noexl_ctx): Define.
40314
40315 2014-04-16  Richard Henderson  <rth@redhat.com>
40316
40317         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
40318
40319         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
40320         unwind tables.
40321
40322         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
40323         const from the non-libc, non-ldso copy.
40324
40325         * sysdeps/alpha/libm-test-ulps: Regenerate.
40326
40327 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
40328             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40329
40330         * sysdeps/aarch64/fpu/math_private.h: New file.
40331
40332 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40333
40334         * sysdeps/aarch64/libm-test-ulps: Regenerate.
40335
40336 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
40337
40338         [BZ #16275]
40339         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
40340         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
40341         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
40342         Intel MPX bound registers before _dl_profile_fixup.
40343         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
40344         registers after _dl_profile_fixup.  Save and restore bound
40345         registers bnd0/bnd1 when calling _dl_call_pltexit.
40346         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
40347         (LR_BND_OFFSET): Likewise.
40348         (LRV_BND0_OFFSET): Likewise.
40349         (LRV_BND1_OFFSET): Likewise.
40350
40351 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40352
40353         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
40354         to...
40355         * sysdeps/mach/hurd/i386/tls.h: ... here.
40356         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
40357         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
40358         fields.
40359
40360 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40361
40362         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
40363
40364 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40365
40366         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40367
40368 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40369
40370         [BZ #14770]
40371         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
40372         * sysdeps/s390/configure: Regenerate.
40373
40374         [BZ #16824]
40375         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
40376         Set round-to-nearest internally to reduce error accumulation.
40377
40378 2014-04-16  Alan Modra  <amodra@gmail.com>
40379
40380         [BZ #16740]
40381         [BZ #16619]
40382         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
40383         * math/libm-test.inc (frexp_test_data): Add tests.
40384         * NEWS: Update fixed bug list.
40385
40386 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40387
40388         * benchtests/Makefile: Depend on libraries in build directory.
40389         (bench-math): Separate out math tests.
40390         (bench-pthread): Separate out pthread tests.
40391         (bench): Include math and pthread tests.
40392
40393 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
40394
40395         [BZ #16831]
40396         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
40397         _dl_debug_initialize.
40398
40399         * configure.ac: Remove SELinux header check.
40400         * configure: Regenerate.
40401         * nscd/selinux.c (perms): Array of const char* to permission names.
40402         (nscd_request_avc_has_perm): Call security_deny_unknown to find
40403         default policy. Call string_to_security_class and string_to_av_perm to
40404         translate strings. Enforce default policy and call avs_has_perm with
40405         results of translated strings.
40406
40407 2014-04-13  David S. Miller  <davem@davemloft.net>
40408
40409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40410
40411 2014-04-12  Allan McRae  <allan@archlinux.org>
40412
40413         [BZ #16838]
40414         * manual/string.texi (Collation Functions): Fix qsort argument
40415         order in example.
40416         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40417
40418 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
40419
40420         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
40421         Make the test a no-op if there are no exceptions defined.
40422
40423 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
40424
40425         * elf/Makefile (tests): make tst-dlopen-aout conditional on
40426         enable-hardcoded-path-in-tests
40427
40428 2014-04-11  Will Newton  <will.newton@linaro.org>
40429
40430         * benchtests/Makefile (extra-objs): Add json-lib.o.
40431         (bench-func): Tidy up JSON output.
40432         * benchtests/bench-skeleton.c: Include json-lib.h.
40433         (main): Use JSON library functions to do output of
40434         benchmark results.
40435         * benchtests/bench-timing-type.c (main): Output the
40436         timing type simply, leaving formatting to the user.
40437         * benchtests/json-lib.c: New file.
40438         * benchtests/json-lib.h: Likewise.
40439
40440 2014-04-11  Torvald Riegel  <triegel@redhat.com>
40441
40442         [BZ #15215]
40443         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
40444         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
40445         memory barriers.  Add comments.
40446         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
40447         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
40448         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
40449         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
40450         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
40451         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
40452
40453 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40454
40455         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
40456         * sysdeps/s390/s390-64/configure.ac: ... this ...
40457         * sysdeps/s390/configure.ac: ... to here.
40458         * sysdeps/s390/s390-32/configure: Delete file.
40459         * sysdeps/s390/s390-64/configure: Delete file.
40460         * sysdeps/s390/configure: Regenerate.
40461
40462 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
40463
40464         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
40465
40466 2014-04-11  Will Newton  <will.newton@linaro.org>
40467
40468         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
40469         to zero if it is not defined elsewhere.  (mtrim): Test
40470         the value of MALLOC_DEBUG with #if rather than #ifdef.
40471
40472 2014-04-10 Torvald Riegel  <triegel@redhat.com>
40473
40474         * benchtests/pthread_once-inputs: New file.
40475         * benchtests/pthread_once-source.c: New file.
40476         * benchtests/README: Update documentation.
40477
40478 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
40479             H.J. Lu  <hongjiu.lu@intel.com>
40480
40481         [BZ #16275]
40482         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
40483         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
40484         * sysdeps/x86_64/configure: Regenerated.
40485         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
40486         macro.
40487         (REGISTER_SAVE_RAX): Likewise.
40488         (REGISTER_SAVE_RCX): Likewise.
40489         (REGISTER_SAVE_RDX): Likewise.
40490         (REGISTER_SAVE_RSI): Likewise.
40491         (REGISTER_SAVE_RDI): Likewise.
40492         (REGISTER_SAVE_R8): Likewise.
40493         (REGISTER_SAVE_R9): Likewise.
40494         (REGISTER_SAVE_BND0): Likewise.
40495         (REGISTER_SAVE_BND1): Likewise.
40496         (REGISTER_SAVE_BND2): Likewise.
40497         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
40498         bound registers when calling _dl_fixup.
40499
40500 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40501
40502         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
40503         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
40504         of its definition.
40505         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
40506         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
40507         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
40508         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
40509         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
40510         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
40511         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
40512
40513 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
40514
40515         [BZ #15514]
40516         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
40517         pathconf(_PC_NAME_MAX).
40518
40519 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40520
40521         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
40522         Remove macro usage.
40523         (__PTHREAD_SPINS): Move definition to ...
40524         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40525         (__PTHREAD_SPINS): ... here.
40526         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40527         (__PTHREAD_SPIN): Likewise.
40528         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
40529         (__PTHREAD_SPIN): Likewise.
40530         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
40531         (__PTHREAD_SPIN): Likewise.
40532         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
40533         (__PTHREAD_SPIN): Likewise.
40534         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
40535         (__PTHREAD_SPIN): Likewise.
40536         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
40537         (__PTHREAD_SPIN): Likewise.
40538         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
40539         (__PTHREAD_SPIN): Likewise.
40540         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
40541         (__PTHREAD_SPIN): Likewise.
40542         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
40543         (__PTHREAD_SPIN): Likewise.
40544         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
40545         (__PTHREAD_SPIN): Likewise.
40546         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
40547         (__PTHREAD_SPIN): Likewise.
40548         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
40549         (__PTHREAD_SPIN): Likewise.
40550
40551         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
40552         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
40553         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
40554         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
40555         imply folder.
40556         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
40557         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
40558         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
40559         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
40560         correct imply path.
40561         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
40562         strlen symbol for non multi-arch builds.
40563         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
40564         missing hidden_def and weak_alias.
40565
40566 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
40567
40568         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
40569
40570 2014-04-07  Will Newton  <will.newton@linaro.org>
40571
40572         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
40573         and contents.  [!_LIBC] Remove #ifndef and contents.
40574         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
40575         * string/memccpy.c (__memccpy): Use ANSI prototype.
40576         * string/memfrob.c (memfrob): Likewise.
40577         * string/strcoll.c (STRCOLL): Likewise.
40578         * string/strlen.c (strlen): Likewise.
40579         * string/strtok.c (STRTOK): Likewise.
40580         * string/strcat.c: Remove unused #include of memcopy.h.
40581         (strcat): Use ANSI prototype.
40582         * string/strchr.c: Remove unused #include of memcopy.h.
40583         (strchr): Use ANSI prototype.
40584         * string/strcmp.c: Remove unused #include of memcopy.h.
40585         (strcmp): Use ANSI prototype.
40586         * string/strcpy.c: Remove unused #include of memcopy.h.
40587         (strcpy): Use ANSI prototype.
40588
40589 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40590
40591         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
40592         * config.make.in (config-extra-cppflags): Set it from
40593         libc_extra_cppflags.
40594         * configure.ac (libc_extra_cflags): Make it accumulate over
40595         configure fragments.
40596         (libc_extra_cppflags): New flag.
40597         * configure. Regenerate.
40598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40599         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
40600         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
40601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
40602
40603         [BZ #16815]
40604         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
40605         result for FE_DOWNWARD rounding mode.
40606         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
40607         Likewise.
40608         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40609
40610 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
40611
40612         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
40613         in function argument name.
40614
40615 2014-04-03  David Svoboda  <svoboda@cert.org>
40616
40617         [BZ #5666]
40618         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
40619         explicitly.
40620
40621 2014-04-03  Roland McGrath  <roland@hack.frob.com>
40622
40623         * elf/dl-unmap-segments.h: New file.
40624         * sysdeps/generic/ldsodefs.h
40625         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
40626         * elf/dl-close.c: Include <dl-unmap-segments.h>.
40627         * elf/dl-fptr.c: Likewise.
40628         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
40629         * sysdeps/aarch64/tlsdesc.c: Likewise.
40630         * sysdeps/arm/tlsdesc.c: Likewise.
40631         * sysdeps/i386/tlsdesc.c: Likewise.
40632         * sysdeps/tile/dl-runtime.c: Likewise.
40633         * sysdeps/x86_64/tlsdesc.c: Likewise.
40634         * elf/dl-load.h: New file.
40635         * elf/dl-load.c: Include it.
40636         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
40637         Macros moved to dl-load.h.
40638         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
40639         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
40640         Use _dl_unmap_segments in place of __munmap.
40641         Break out segment-mapping loop into ...
40642         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
40643
40644 2014-04-03  Will Newton  <will.newton@linaro.org>
40645
40646         * elf/dl-lookup.c (do_lookup_x): Remove comment
40647         referring to nested function and move variable
40648         declarations down to before first use.
40649
40650 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
40651
40652         [BZ #16799]
40653         [BZ #16800]
40654         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
40655         with 0 numerator.
40656         * math/s_catanf.c (__catanf): Likewise.
40657         * math/s_catanh.c (__catanh): Likewise.
40658         * math/s_catanhf.c (__catanhf): Likewise.
40659         * math/s_catanhl.c (__catanhl): Likewise.
40660         * math/s_catanl.c (__catanl): Likewise.
40661         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
40662         by positive zero when computing -Inf result.
40663         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
40664         (catanh_test): Likewise.
40665         * sysdeps/i386/fpu/libm-test-ulps: Update.
40666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40667
40668         [BZ #16789]
40669         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
40670         instead of using underflowing value in computing result.
40671         * math/s_clog10.c (__clog10): Likewise.
40672         * math/s_clog10f.c (__clog10f): Likewise.
40673         * math/s_clog10l.c (__clog10l): Likewise.
40674         * math/s_clogf.c (__clogf): Likewise.
40675         * math/s_clogl.c (__clogl): Likewise.
40676         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
40677         (clog10_test): Likewise.
40678         * sysdeps/i386/fpu/libm-test-ulps: Update.
40679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40680
40681 2014-04-02  Alan Modra  <amodra@gmail.com>
40682
40683         [BZ #16739]
40684         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
40685         output when value is near a power of two.  Use int64_t for lx and
40686         remove casts.  Use decimal rather than hex exponent constants.
40687         Don't use long double multiplication when double will suffice.
40688         * math/libm-test.inc (nextafter_test_data): Add tests.
40689         * NEWS: Add 16739 and 16786 to bug list.
40690
40691         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
40692
40693         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
40694
40695 2014-04-01  Will Newton  <will.newton@linaro.org>
40696
40697         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
40698         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
40699
40700 2014-04-01  Florian Weimer  <fweimer@redhat.com>
40701
40702         [BZ #13347]
40703         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
40704         * nptl/tst-setuid2.c: New file.
40705         * nptl/Makefile (xtests): Add tst-setuid2.
40706
40707 2014-04-01  Alan Modra  <amodra@gmail.com>
40708
40709         [BZ #16786]
40710         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
40711
40712 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40713
40714         [BZ #6803]
40715         [BZ #6804]
40716         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
40717         set errno as appropriate.
40718         * math/w_scalbf.c (__scalbf): Likewise.
40719         * math/w_scalbl.c (__scalbl): Likewise.
40720         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
40721         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
40722         * math/libm-test.inc (scalb_test_data): Add errno expectations.
40723         Add more NaN tests.
40724
40725         [BZ #16349]
40726         * math/w_atan2.c: Include <errno.h>.
40727         (__atan2): Set errno for result underflowing to zero.
40728         * math/w_atan2f.c: Include <errno.h>.
40729         (__atan2f): Set errno for result underflowing to zero.
40730         * math/w_atan2l.c: Include <errno.h>.
40731         (__atan2l): Set errno for result underflowing to zero.
40732         * math/auto-libm-test-in: Don't allow missing errno for some atan2
40733         tests.
40734         * math/auto-libm-test-out: Regenerated.
40735
40736 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40737
40738         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
40739         Encode instruction correctly in little endian.
40740         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
40741         Likewise.
40742         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
40743         Likewise.
40744         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
40745         Likewise.
40746         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
40747         Likewise.
40748
40749 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40750
40751         [BZ #9894]
40752         * sysdeps/unix/sysv/linux/kernel-features.h
40753         [__sparc__ && !__arch64__ && !__sparc_v9__]
40754         (__ASSUME_SET_ROBUST_LIST): Do not define.
40755         [__sparc__ && !__arch64__ && !__sparc_v9__]
40756         (__ASSUME_FUTEX_LOCK_PI): Likewise.
40757         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
40758         Likewise.
40759         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40760         (__ASSUME_FUTEX_LOCK_PI): Undefine.
40761         (__ASSUME_REQUEUE_PI): Likewise.
40762         (__ASSUME_SET_ROBUST_LIST): Likewise.
40763         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40764         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
40765         Undefine.
40766         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40767         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
40768         Likewise.
40769         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
40770         Likewise.
40771         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
40772         Likewise.
40773         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40774         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
40775         Undefine.
40776         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
40777         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
40778         Likewise.
40779
40780         [BZ #16648]
40781         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40782         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
40783         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
40784
40785 2014-03-31  Will Newton  <will.newton@linaro.org>
40786
40787         * benchtests/Makefile (bench): Add ffs and ffsll to list
40788         of tests.
40789         * benchtests/ffs-inputs: New file.
40790         * benchtests/ffsll-inputs: Likewise.
40791
40792 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
40793
40794         [BZ #16770]
40795         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
40796         too large before casting to int.
40797         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
40798         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
40799         * math/libm-test.inc (scalb_test_data): Add more tests.
40800
40801 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40802
40803         * benchtests/Makefile (DETAILED_OPT): New make option.
40804         (bench-func): Run benchmark program with -d if DETAILED_OPT is
40805         set.
40806         * benchtests/bench-skeleton.c: Include stdbool.h.
40807         (main): Store and print timings per input.
40808         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
40809         member to each argument value.
40810         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
40811         (_print_arg_data): Initialize per-input timing to 0.
40812
40813         * benchtests/Makefile (timing-type): New binary.
40814         (bench-clean): Also remove bench-timing-type.
40815         (bench): New target for timing-type.
40816         (bench-func): Print output in JSON format.
40817         * benchtests/bench-skeleton.c (main): Print output in JSON
40818         format.
40819         * benchtests/bench-timing-type.c: New file.
40820         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
40821         (TIMING_PRINT_STATS): Remove.
40822         * benchtests/scripts/bench.py (_print_arg_data): Store variant
40823         name separately.
40824
40825         * benchtests/bench-modf.c: Remove.
40826         * benchtests/modf-inputs: New inputs file.
40827
40828 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
40829
40830         [BZ #16362]
40831         * math/s_clog10.c (M_PI_LOG10E): New macro.
40832         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
40833         imaginary parts are 0.
40834         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
40835         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
40836         imaginary parts are 0.
40837         * math/s_clog10l.c (M_PI_LOG10El): New macro.
40838         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
40839         imaginary parts are 0.
40840         * math/libm-test.inc (clog10_test_data): Update expected results
40841         for when real and imaginary parts are 0.
40842
40843 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
40844
40845         * elf/dl-load.c: Finish conversion of __builtin_expect into
40846         __glibc_{un}likely.
40847
40848 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
40849
40850         [BZ #16348]
40851         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
40852         1+x for argument with exponent below -67.
40853         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
40854         Likewise.
40855         * math/auto-libm-test-in: Add more tests of exp.
40856         * math/auto-libm-test-out: Regenerated.
40857
40858 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40859
40860         [BZ #16759]
40861         * inet/getnetgrent_r.c (get_nonempty_val): New function.
40862         (nscd_getnetgrent): Use it.
40863
40864         [BZ #16760]
40865         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
40866         of stpcpy.
40867
40868 2014-03-27  Andi Kleen  <ak@linux.intel.com>
40869
40870         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
40871         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40872         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40873         (lll_robust_unlock): Remove out of line section. Use cfi
40874         intrinsics.
40875         (LLL_STUB_UNWIND_INFO*): Remove.
40876         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
40877         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40878         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40879         (lll_robust_unlock): Remove out of line section. Use cfi
40880         intrinsics.
40881         (LLL_STUB_UNWIND_INFO*): Remove.
40882
40883 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40884
40885         [BZ #16758]
40886         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
40887         blank values.
40888
40889 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
40890
40891         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
40892
40893 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
40894
40895         [BZ #16198]
40896         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
40897         fnstenv.
40898         * math/test-fenv-preserve.c: New file.
40899         * math/Makefile (tests): Add test-fenv-preserve.
40900
40901 2014-03-26  Will Newton <will.newton@linaro.org>
40902
40903         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
40904
40905 2014-03-25  Roland McGrath  <roland@hack.frob.com>
40906
40907         * scripts/versionlist.awk: Partition the version sets and emit all
40908         GLIBC_* (sorted) before all others (sorted).
40909
40910 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40911
40912         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
40913         GLIBC_2.2.5 version.
40914
40915 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40916
40917         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
40918         calls.
40919
40920         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
40921         previous change.
40922
40923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40924
40925 2014-03-25  Andreas Schwab  <schwab@suse.de>
40926
40927         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
40928         label to be used after in6ailist is initialized.
40929
40930 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40931
40932         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40933         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40934
40935 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40936
40937         [BZ #16357]
40938         [BZ #16599]
40939         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
40940         min_plus_half.
40941         (fp_formats): Update initializers.
40942         (init_fp_formats): Initialize new field.
40943         (output_for_one_input_case): Allow underflow for results up to
40944         min_plus_half.
40945         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
40946         * math/auto-libm-test-in: Don't mark some underflows from asin and
40947         atanh as spurious.
40948         * math/auto-libm-test-out: Regenerated.
40949         * sysdeps/i386/fpu/libm-test-ulps: Update.
40950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40951
40952 2014-03-25  Andreas Schwab  <schwab@suse.de>
40953
40954         * libio/Makefile (tst-ftell-partial-wide-ENV)
40955         (tst-ftell-active-handler-ENV): Define.
40956
40957 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
40958
40959         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
40960
40961 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40962
40963         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
40964
40965 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
40966
40967         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
40968         * sysdeps/x86_64/fpu/multiarch/e_exp.c
40969         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
40970
40971 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40972
40973         [BZ #16634]
40974         * elf/dl-load.c (open_verify): Add mode parameter.
40975         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
40976         (open_path): Change from boolean 'secure' to complete flag 'mode'
40977         (_dl_map_object): Adjust.
40978         * elf/Makefile (tests): Add tst-dlopen-aout.
40979         * elf/tst-dlopen-aout.c: New test.
40980
40981 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
40982
40983         [BZ #16714]
40984         * sysdeps/unix/sysv/linux/s390/bits/stat.h
40985         (struct stat): Rename member pad0 to __glibc_reserved0.
40986
40987         [BZ #16712]
40988         * sysdeps/s390/s390-32/bits/wordsize.h
40989         (__WORDSIZE32_SIZE_ULONG): New define.
40990         * sysdeps/s390/s390-64/bits/wordsize.h
40991         (__WORDSIZE32_SIZE_ULONG): Likewise.
40992         * sysdeps/generic/stdint.h (SIZE_MAX):
40993         Define as UL if __WORDSIZE32_SIZE_ULONG.
40994
40995         [BZ #16713]
40996         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
40997         (__glibc_reserved0): New variable.
40998         (sa_flags): Change type to int.
40999
41000         * posix/Makefile (before-compile): Use += before-compile instead
41001         of a :=.
41002
41003         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
41004         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41005
41006 2014-03-20  Andreas Schwab  <schwab@suse.de>
41007
41008         [BZ #16743]
41009         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
41010         non-matching result from nscd.
41011
41012 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41013
41014         * scripts/bench.py: Moved to ...
41015         * benchtests/scripts/bench.py: ... here.
41016         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
41017
41018 2014-03-24  Andreas Schwab  <schwab@suse.de>
41019
41020         [BZ #16002]
41021         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
41022         alloca_account and account alloca use for struct in6ailist.
41023
41024 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41025
41026         [BZ #16284]
41027         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
41028         rounding mode to recompute results that overflow to infinity or
41029         underflow to zero.
41030         * math/auto-libm-test-in: Don't mark tests as expected to fail for
41031         bug 16284.
41032         * math/auto-libm-test-out: Regenerated.
41033         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
41034         (ccosh_test): Likewise.
41035         (csin_test_data): Use plus_oflow.
41036         (csin_test): Use ALL_RM_TEST.
41037         (csinh_test_data): Use plus_oflow.
41038         (csinh_test): Use ALL_RM_TEST.
41039         * sysdeps/i386/fpu/libm-test-ulps: Update.
41040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41041
41042 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
41043
41044         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
41045         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
41046         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
41047
41048         [BZ #16731]
41049         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
41050         when x - 1 is zero.
41051         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
41052         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
41053         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
41054         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
41055         argument is 1.
41056         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
41057         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
41058         zero.
41059         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
41060         * sysdeps/i386/fpu/libm-test-ulps: Update.
41061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41062
41063 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41064
41065         * scripts/bench.pl: Remove file.
41066         * scripts/bench.py: New benchmark script.
41067         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
41068         * benchtests/README: Mention python dependency.
41069         * scripts/pylintrc: New file.
41070         * scripts/pylint: New file.
41071
41072         * bits/mathdef.h: Use #ifdef instead of #if.
41073         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
41074         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41075         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
41076         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41077         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
41078         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41079
41080 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41081             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41082
41083         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
41084         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
41085         and strpbrk-ppc64 objects.
41086         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41087         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
41088         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
41089         multiarch strpbrk for POWER7.
41090         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
41091         multiarch strpbrk for PPC64.
41092         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
41093         ifunc selector.
41094         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
41095         strpbrk for POWER7.
41096
41097 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41098
41099         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
41100         (atan_test): Likewise.
41101         (atanh_test_data): Use NO_TEST_INLINE for two tests.
41102         (atanh_test): Use ALL_RM_TEST.
41103         (atan2_test_data): Likewise.
41104         (cabs_test): Likewise.
41105         (cacosh_test): Likewise.
41106         (carg_test): Likewise.
41107         (casin_test): Likewise.
41108         (casinh_test): Likewise.
41109         (cbrt_test): Likewise.
41110         (csqrt_test): Likewise.
41111         (erf_test): Likewise.
41112         (erfc_test): Likewise.
41113         (pow10_test): Likewise.
41114         (exp2_test): Likewise.
41115         (hypot_test): Likewise.
41116         (j0_test): Likewise.
41117         (j1_test): Likewise.
41118         (lgamma_test): Likewise.
41119         (gamma_test): Likewise.
41120         (sincos_test): Likewise.
41121         (tanh_test): Likewise.
41122         (y0_test): Likewise.
41123         (y1_test): Likewise.
41124         * sysdeps/i386/fpu/libm-test-ulps: Update.
41125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41126
41127 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41128
41129         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
41130         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
41131         and strcspn-ppc64 objects.
41132         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41133         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
41134         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
41135         multiarch strcspn for POWER7.
41136         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
41137         multiarch strcspn for PPC64.
41138         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
41139         ifunc selector.
41140         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
41141         strcspn for POWER7.
41142
41143 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41144
41145         * math/gen-libm-test.pl (generate_testfile): Expect only function
41146         name as argument to AUTO_TESTS_* and pass results for all rounding
41147         modes to parse_args.
41148         (parse_auto_input): Separate inputs of automatic tests from
41149         outputs before storing in %auto_tests.
41150         * math/libm-test.inc (acos_test_data): Update call to
41151         AUTO_TESTS_f_f.
41152         (acos_test): Use ALL_RM_TEST.
41153         (acos_tonearest_test_data): Remove.
41154         (acos_test_tonearest): Likewise.
41155         (acos_towardzero_test_data): Likewise.
41156         (acos_test_towardzero): Likewise.
41157         (acos_downward_test_data): Likewise.
41158         (acos_test_downward): Likewise.
41159         (acos_upward_test_data): Likewise.
41160         (acos_test_upward): Likewise.
41161         (acosh_test_data): Update call to AUTO_TESTS_f_f.
41162         (asin_test_data): Likewise.
41163         (asin_test): Use ALL_RM_TEST.
41164         (asin_tonearest_test_data): Remove.
41165         (asin_test_tonearest): Likewise.
41166         (asin_towardzero_test_data): Likewise.
41167         (asin_test_towardzero): Likewise.
41168         (asin_downward_test_data): Likewise.
41169         (asin_test_downward): Likewise.
41170         (asin_upward_test_data): Likewise.
41171         (asin_test_upward): Likewise.
41172         (asinh_test_data): Update call to AUTO_TESTS_f_f.
41173         (atan_test_data): Likewise.
41174         (atanh_test_data): Likewise.
41175         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
41176         (cabs_test_data): Update call to AUTO_TESTS_c_f.
41177         (carg_test_data): Likewise.
41178         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
41179         (ccos_test_data): Update call to AUTO_TESTS_c_c.
41180         (ccosh_test_data): Likewise.
41181         (cexp_test_data): Likewise.
41182         (clog_test_data): Likewise.
41183         (clog10_test_data): Likewise.
41184         (cos_test_data): Update call to AUTO_TESTS_f_f.
41185         (cos_test): Use ALL_RM_TEST.
41186         (cos_tonearest_test_data): Remove.
41187         (cos_test_tonearest): Likewise.
41188         (cos_towardzero_test_data): Likewise.
41189         (cos_test_towardzero): Likewise.
41190         (cos_downward_test_data): Likewise.
41191         (cos_test_downward): Likewise.
41192         (cos_upward_test_data): Likewise.
41193         (cos_test_upward): Likewise.
41194         (cosh_test_data): Update call to AUTO_TESTS_f_f.
41195         (cosh_test): Use ALL_RM_TEST.
41196         (cosh_tonearest_test_data): Remove.
41197         (cosh_test_tonearest): Likewise.
41198         (cosh_towardzero_test_data): Likewise.
41199         (cosh_test_towardzero): Likewise.
41200         (cosh_downward_test_data): Likewise.
41201         (cosh_test_downward): Likewise.
41202         (cosh_upward_test_data): Likewise.
41203         (cosh_test_upward): Likewise.
41204         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
41205         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
41206         (ctan_test_data): Likewise.
41207         (ctan_test): Use ALL_RM_TEST.
41208         (ctan_tonearest_test_data): Remove.
41209         (ctan_test_tonearest): Likewise.
41210         (ctan_towardzero_test_data): Likewise.
41211         (ctan_test_towardzero): Likewise.
41212         (ctan_downward_test_data): Likewise.
41213         (ctan_test_downward): Likewise.
41214         (ctan_upward_test_data): Likewise.
41215         (ctan_test_upward): Likewise.
41216         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
41217         (ctanh_test): Use ALL_RM_TEST.
41218         (ctanh_tonearest_test_data): Remove.
41219         (ctanh_test_tonearest): Likewise.
41220         (ctanh_towardzero_test_data): Likewise.
41221         (ctanh_test_towardzero): Likewise.
41222         (ctanh_downward_test_data): Likewise.
41223         (ctanh_test_downward): Likewise.
41224         (ctanh_upward_test_data): Likewise.
41225         (ctanh_test_upward): Likewise.
41226         (erf_test_data): Update call to AUTO_TESTS_f_f.
41227         (erfc_test_data): Likewise.
41228         (exp_test_data): Likewise.
41229         (exp_test): Use ALL_RM_TEST.
41230         (exp_tonearest_test_data): Remove.
41231         (exp_test_tonearest): Likewise.
41232         (exp_towardzero_test_data): Likewise.
41233         (exp_test_towardzero): Likewise.
41234         (exp_downward_test_data): Likewise.
41235         (exp_test_downward): Likewise.
41236         (exp_upward_test_data): Likewise.
41237         (exp_test_upward): Likewise.
41238         (exp10_test_data): Update call to AUTO_TESTS_f_f.
41239         (exp10_test): Use ALL_RM_TEST.
41240         (exp10_tonearest_test_data): Remove.
41241         (exp10_test_tonearest): Likewise.
41242         (exp10_towardzero_test_data): Likewise.
41243         (exp10_test_towardzero): Likewise.
41244         (exp10_downward_test_data): Likewise.
41245         (exp10_test_downward): Likewise.
41246         (exp10_upward_test_data): Likewise.
41247         (exp10_test_upward): Likewise.
41248         (exp2_test_data): Update call to AUTO_TESTS_f_f.
41249         (expm1_test_data): Likewise.
41250         (expm1_test): Use ALL_RM_TEST.
41251         (expm1_tonearest_test_data): Remove.
41252         (expm1_test_tonearest): Likewise.
41253         (expm1_towardzero_test_data): Likewise.
41254         (expm1_test_towardzero): Likewise.
41255         (expm1_downward_test_data): Likewise.
41256         (expm1_test_downward): Likewise.
41257         (expm1_upward_test_data): Likewise.
41258         (expm1_test_upward): Likewise.
41259         (fma_test_data): Update call to AUTO_TESTS_fff_f.
41260         (fma_test): Use ALL_RM_TEST.
41261         (fma_towardzero_test_data): Remove.
41262         (fma_test_towardzero): Likewise.
41263         (fma_downward_test_data): Likewise.
41264         (fma_test_downward): Likewise.
41265         (fma_upward_test_data): Likewise.
41266         (fma_test_upward): Likewise.
41267         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
41268         (j0_test_data): Update call to AUTO_TESTS_f_f.
41269         (j1_test_data): Likewise.
41270         (jn_test_data): Update call to AUTO_TESTS_if_f.
41271         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
41272         (log_test_data): Update call to AUTO_TESTS_f_f.
41273         (log10_test_data): Likewise.
41274         (log1p_test_data): Likewise.
41275         (log2_test_data): Likewise.
41276         (pow_test_data): Update call to AUTO_TESTS_ff_f.
41277         (pow_tonearest_test_data): Likewise.
41278         (sin_test_data): Update call to AUTO_TESTS_f_f.
41279         (sin_test): Use ALL_RM_TEST.
41280         (sin_tonearest_test_data): Remove.
41281         (sin_test_tonearest): Likewise.
41282         (sin_towardzero_test_data): Likewise.
41283         (sin_test_towardzero): Likewise.
41284         (sin_downward_test_data): Likewise.
41285         (sin_test_downward): Likewise.
41286         (sin_upward_test_data): Likewise.
41287         (sin_test_upward): Likewise.
41288         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
41289         (sinh_test_data): Update call to AUTO_TESTS_f_f.
41290         (sinh_test): Use ALL_RM_TEST.
41291         (sinh_tonearest_test_data): Remove.
41292         (sinh_test_tonearest): Likewise.
41293         (sinh_towardzero_test_data): Likewise.
41294         (sinh_test_towardzero): Likewise.
41295         (sinh_downward_test_data): Likewise.
41296         (sinh_test_downward): Likewise.
41297         (sinh_upward_test_data): Likewise.
41298         (sinh_test_upward): Likewise.
41299         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
41300         (sqrt_test): Use ALL_RM_TEST.
41301         (sqrt_tonearest_test_data): Remove.
41302         (sqrt_test_tonearest): Likewise.
41303         (sqrt_towardzero_test_data): Likewise.
41304         (sqrt_test_towardzero): Likewise.
41305         (sqrt_downward_test_data): Likewise.
41306         (sqrt_test_downward): Likewise.
41307         (sqrt_upward_test_data): Likewise.
41308         (sqrt_test_upward): Likewise.
41309         (tan_test_data): Update call to AUTO_TESTS_f_f.
41310         (tan_test): Use ALL_RM_TEST.
41311         (tan_tonearest_test_data): Remove.
41312         (tan_test_tonearest): Likewise.
41313         (tan_towardzero_test_data): Likewise.
41314         (tan_test_towardzero): Likewise.
41315         (tan_downward_test_data): Likewise.
41316         (tan_test_downward): Likewise.
41317         (tan_upward_test_data): Likewise.
41318         (tan_test_upward): Likewise.
41319         (tanh_test_data): Update call to AUTO_TESTS_f_f.
41320         (tgamma_test_data): Likewise.
41321         (y0_test_data): Likewise.
41322         (y1_test_data): Likewise.
41323         (yn_test_data): Update call to AUTO_TESTS_if_f.
41324         (main): Do not call removed functions.
41325
41326 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41327
41328         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
41329         (ldexp_test_data): Remove.
41330         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
41331         scalbn_test_data.
41332         (scalb_test): Use ALL_RM_TEST.
41333
41334 2014-03-19  Andreas Schwab  <schwab@suse.de>
41335
41336         * nscd/nscd.service: Also invalidate netgroup cache on reload.
41337
41338 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41339
41340         [BZ #16649]
41341         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
41342         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
41343         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
41344         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41345         (__ASSUME_PREADV): Undefine.
41346         (__ASSUME_PWRITEV): Likewise.
41347
41348 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41349
41350         * bits/mman-linux.h: Add comment about non-Linux use.
41351         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
41352         bits/mman-linux.h resting place.
41353
41354         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
41355         * bits/mman-linux.h: ... here.
41356
41357 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41358
41359         * conform/conformtest.pl: Add standard definition when calling C
41360         preprocessor on data files.
41361         (checknamespace): Remove unused variable.
41362
41363 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41364
41365         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
41366         minus_oflow, plus_uflow and minus_uflow in expected results.
41367         * math/libm-test.inc (scalbn_test_data): Add more tests of
41368         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
41369         minus_uflow.
41370         (scalbn_test): Use ALL_RM_TEST.
41371         (scalbln_test_data): Add more tests of negative arguments.  Use
41372         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
41373         (scalbln_test): Use ALL_RM_TEST.
41374
41375 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41376
41377         * scripts/abilist.awk: Ignore symbols marked with .hidden.
41378
41379 2014-03-18  Will Newton  <will.newton@linaro.org>
41380
41381         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
41382         inaccurate comment.
41383
41384 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41385
41386         * Makerules [!subdir] (check-abi): Exit with error status if a
41387         test failed.
41388
41389 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41390
41391         * math/libm-test.inc (nearbyint_test_data): Include all tests used
41392         for rint.  Include results for all rounding modes.
41393         (nearbyint_test): Use ALL_RM_TEST.
41394         (rint_test_data): Include all tests used for nearbyint.
41395
41396 2014-03-17  Will Newton  <will.newton@linaro.org>
41397
41398         * nptl/sysdeps/pthread/pthread.h: Revert previous
41399         change.
41400
41401         * sysdeps/generic/ldsodefs.h: Revert previous
41402         change.
41403
41404         * libio/genops.c: Revert previous change.
41405         * libio/libioP.h: Likewise.
41406         * stdio-common/vfprintf.c: Likewise.
41407
41408         * sysdeps/generic/math_private.h: Revert previous
41409         change.
41410
41411         * sysdeps/generic/math_private.h: Check whether
41412         HAVE_RM_CTX is defined with #ifdef rather
41413         than #if.
41414
41415         * argp/argp-fmtstream.h: Check whether
41416         __STRICT_ANSI__ is defined with #ifdef rather
41417         than #if.
41418         * argp/argp.h: Likewise.
41419
41420         * libio/genops.c: Check whether
41421         _IO_JUMPS_OFFSET is defined with #ifdef rather
41422         than #if.
41423         * libio/libioP.h: Likewise.
41424         * stdio-common/vfprintf.c: Likewise.
41425
41426         * sysdeps/generic/ldsodefs.h: Check whether
41427         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
41428         than #if.
41429
41430         * nptl/sysdeps/pthread/pthread.h: Check
41431         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
41432         its value.
41433
41434 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
41435
41436         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
41437         setting O_APPEND.
41438         * libio/tst-ftell-active-handler.c (do_append_test): Add a
41439         test case.
41440
41441         [BZ #16680]
41442         * libio/fileops.c (_IO_file_open): Seek to end of file but
41443         don't cache the offset.
41444         (get_file_offset): Remove function.
41445         (do_ftell): Use cached offset when available.
41446         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
41447         don't cache the offset.
41448         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
41449         case.
41450         (do_one_test): Call it.
41451         (do_ftell_test): Fix up expected old offset for a+ mode.
41452         * libio/wfileops.c (do_ftell_wide): Used cached offset when
41453         available.
41454
41455         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
41456         up test status with function return status.
41457         (do_write_test): Likewise.
41458         (do_append_test): Likewise.
41459
41460         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
41461         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
41462         Remove.
41463
41464 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41465
41466         * math/gen-libm-test.pl (parse_args): Handle results specified for
41467         each rounding mode separately.
41468         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
41469         tests and results from lrint_tonearest_test_data,
41470         lrint_towardzero_test_data, lrint_downward_test_data and
41471         lrint_upward_test_data.
41472         (lrint_test): Use ALL_RM_TEST.
41473         (lrint_tonearest_test_data): Remove.
41474         (lrint_test_tonearest): Likewise.
41475         (lrint_towardzero_test_data): Likewise.
41476         (lrint_test_towardzero): Likewise.
41477         (lrint_downward_test_data): Likewise.
41478         (lrint_test_downward): Likewise.
41479         (lrint_upward_test_data): Likewise.
41480         (lrint_test_upward): Likewise.
41481         (llrint_test_data): Merge in per-rounding-mode tests and results
41482         from llrint_tonearest_test_data, llrint_towardzero_test_data,
41483         llrint_downward_test_data and llrint_upward_test_data.
41484         (llrint_test): Use ALL_RM_TEST.
41485         (llrint_tonearest_test_data): Remove.
41486         (llrint_test_tonearest): Likewise.
41487         (llrint_towardzero_test_data): Likewise.
41488         (llrint_test_towardzero): Likewise.
41489         (llrint_downward_test_data): Likewise.
41490         (llrint_test_downward): Likewise.
41491         (llrint_upward_test_data): Likewise.
41492         (llrint_test_upward): Likewise.
41493         (rint_test_data): Merge in per-rounding-mode tests and results
41494         from rint_tonearest_test_data, rint_towardzero_test_data,
41495         rint_downward_test_data and rint_upward_test_data.  Add
41496         per-rounding-mode results for tests not in those arrays.
41497         (rint_test): Use ALL_RM_TEST.
41498         (rint_tonearest_test_data): Remove.
41499         (rint_test_tonearest): Likewise.
41500         (rint_towardzero_test_data): Likewise.
41501         (rint_test_towardzero): Likewise.
41502         (rint_downward_test_data): Likewise.
41503         (rint_test_downward): Likewise.
41504         (rint_upward_test_data): Likewise.
41505         (rint_test_upward): Likewise.
41506         (main): Don't call removed functions.
41507
41508 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41509
41510         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
41511         "Compiled on ..." crapola.  It is anti-useful.
41512
41513 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
41514
41515         * scripts/evaluate-test.sh: Handle fourth argument to determine
41516         whether test run should stop on failure.
41517         * Makeconfig (stop-on-test-failure): New variable.
41518         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
41519         $(stop-on-test-failure).
41520         * Makefile (tests): Give a summary of results from testing and
41521         exit with failure status if they include an ERROR or FAIL.
41522         (xtests): Likewise.
41523         * manual/install.texi (Configuring and compiling): Mention
41524         stop-on-test-failure=y.
41525         * INSTALL: Regenerated.
41526
41527 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41528
41529         * scripts/versionlist.awk: New file.
41530         * Makerules [$(build-shared) = yes]
41531         (postclean-generated): Add Versions.def, not Versions.def.v and
41532         Versions.def.v.i.
41533         ($(common-objpfx)Versions.def.v.i): Target removed.
41534         ($(common-objpfx)Versions.def): New target.
41535         ($(common-objpfx)Versions.all): Depend on that rather that
41536         $(common-objpfx)Versions.def.v.
41537         * Versions.def: File removed.
41538
41539         * Makeconfig (+gccwarn): Add -Wundef.
41540         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
41541         a dl-sysdep.h breaking its contract.
41542         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
41543         * include/stackinfo.h: New file.
41544         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
41545         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
41546         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
41547         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
41548         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
41549         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
41550         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41551         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41552         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41553         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41554         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41555         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
41556         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41557         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41558         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41559
41560 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41561
41562         [BZ #16707]
41563         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
41564         implementation.
41565         * math/libm-test.inc (round_test_data): Add more tests.
41566
41567         [BZ #16706]
41568         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
41569         implementation.
41570         * math/libm-test.inc (nearbyint_test_data): Add more tests.
41571
41572         [BZ #16701]
41573         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
41574         implementation.
41575         * math/libm-test.inc (ceil_test_data): Add more tests.
41576
41577         * math/libm-test.inc (trunc_test_data): Add more tests related to
41578         BZ#16414.
41579
41580 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41581
41582         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
41583         with #if rather than #ifdef.
41584         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
41585
41586 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
41587
41588         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
41589         first.  Disable AVX-512 GCC support if assembler doesn't support
41590         it.
41591         * sysdeps/x86_64/configure: Regenerated.
41592
41593 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
41594
41595         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
41596         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
41597         (__old_pthread_attr_setstack): Likewise.
41598         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
41599         [!_STACK_GROWS_DOWN]: Likewise.
41600
41601 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
41602
41603         * config.make.in (have-bash2): Delete.
41604         * configure.ac (libc_cv_have_bash2): Delete.
41605         * configure: Regenerate.
41606         * elf/Makefile (common-ldd-rewrite): Rename to ...
41607         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
41608         (sh-ldd-rewrite): Delete.
41609         (bash-ldd-rewrite): Delete.
41610         (have-bash2): Delete checks.
41611         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
41612         ldd-rewrite.
41613
41614         * config.make.in (have-ksh): Delete.
41615         (KSH): Delete.
41616         * configure.ac (libc_cv_have_ksh): Delete.
41617         * configure: Regenerate.
41618
41619         * elf/Makefile: Delete $(have-ksh) check.
41620         ($(objpfx)sotruss): Change KSH to BASH.
41621         * elf/sotruss.ksh: Rename to ...
41622         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
41623         function style to match POSIX.  Drop ksh vim mode setting.
41624
41625         * manual/time.texi (Specifying the Time Zone with TZ): Change
41626         Tuesday to Thursday.
41627
41628         * debug/tst-longjmp_chk2.c: Update header comment.
41629         (stackoverflow_handler): Add comment.  Call assert on pass value.
41630
41631 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
41632
41633         [BZ #16194]
41634         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
41635         (HAVE_AVX512_ASM_SUPPORT): Likewise.
41636         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
41637         (La_x86_64_vector): Add zmm.
41638         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
41639         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
41640         ($(objpfx)tst-audit10): New target.
41641         ($(objpfx)tst-audit10.out): Likewise.
41642         (tst-audit10-ENV): New.
41643         (AVX512-CFLAGS): Likewise.
41644         (CFLAGS-tst-audit10.c): Likewise.
41645         (CFLAGS-tst-auditmod10a.c): Likewise.
41646         (CFLAGS-tst-auditmod10b.c): Likewise.
41647         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
41648         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
41649         * sysdeps/x86_64/configure: Regenerated.
41650         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
41651         AVX-512 zmm register support.
41652         (_dl_x86_64_save_sse): Likewise.
41653         (_dl_x86_64_restore_sse): Likewise.
41654         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
41655         size vector registers.
41656         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
41657         (ZMM_SIZE): Likewise.
41658         * sysdeps/x86_64/tst-audit10.c: New file.
41659         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
41660         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
41661
41662 2014-03-13  Roland McGrath  <roland@hack.frob.com>
41663
41664         * configure.ac (HAVE_EHDR_START): New check.
41665         * configure: Regenerated.
41666         * config.h.in (HAVE_EHDR_START): New #undef.
41667         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
41668         assuming the lowest-addressed segment maps the start of the file.
41669
41670 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
41671
41672         * INSTALL: Regenerated.
41673
41674 2014-03-13  Will Newton  <will.newton@linaro.org>
41675
41676         * manual/setjmp.texi (System V contexts): Improve
41677         clarity and grammar of documentation.
41678
41679 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
41680
41681         [BZ #16381]
41682         * elf/Makefile (tests): Add tst-pie2.
41683         (tests-pie): Add tst-pie2.
41684         * elf/tst-pie2.c: New file.
41685         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
41686         for ET_EXEC.
41687         * elf/rtld.c (map_doit): Load executable as lt_executable.
41688         (dl_main): Likewise.
41689
41690 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
41691
41692         [BZ #16642]
41693         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41694         (__ASSUME_PSELECT): Undefine.
41695
41696 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41697
41698         [BZ #16689]
41699         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
41700         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
41701         static build.
41702         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
41703         selector for static builds.
41704
41705 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41706
41707         [BZ #16695]
41708         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
41709         key in the buffer.
41710
41711 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41712
41713         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
41714         IFUNC selector for static builds.
41715
41716 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
41717
41718         * sysdeps/mips/math_private.h [__mips_hard_float]
41719         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
41720         libc_feresetround_mips_ctx.
41721         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
41722         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
41723         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
41724
41725         [BZ #16677]
41726         * math/s_nextafter.c (__nextafter): Do not return value from
41727         overflowing computation.
41728         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
41729         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
41730         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
41731         Likewise.
41732         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
41733         Likewise.
41734         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
41735         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
41736
41737 2014-03-11  Roland McGrath  <roland@hack.frob.com>
41738
41739         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
41740         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
41741         Move sfi_sp use from the load-multiple (that no longer sets sp) to
41742         the new mov targetting sp.
41743
41744 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41745
41746         [BZ #16683]
41747         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
41748         Define it for static builds as well.
41749         (NO_BZERO_IMPL): Likewise.
41750
41751 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41752
41753         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
41754         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
41755         multiarch strspn for PPC64.
41756         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
41757         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
41758         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41759         (__libc_ifunc_impl_list): Likewise.
41760         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
41761         multiarch optimizations
41762         * string/strspn.c (strspn): Using macro to redefine symbol name.
41763
41764 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41765             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41766
41767         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
41768         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
41769         multiarch strncat for PPC64.
41770         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
41771         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
41772         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41773         (__libc_ifunc_impl_list): Likewise.
41774         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
41775         multiarch optimizations
41776
41777 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41778
41779         [BZ #16639]
41780         * nscd/nscd.service: Make service type forking.
41781
41782 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41783
41784         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
41785         sign in non default rounding modes.
41786         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
41787
41788 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
41789
41790         * math/libm-test.inc (ALL_RM_TEST): New macro.
41791         (ceil_test): Use ALL_RM_TEST.
41792         (cimag_test): Likewise.
41793         (conj_test): Likewise.
41794         (copysign_test): Likewise.
41795         (cproj_test): Likewise.
41796         (creal_test): Likewise.
41797         (fabs_test): Likewise.
41798         (floor_test): Likewise.
41799         (fmax_test): Likewise.
41800         (fmin_test): Likewise.
41801         (fmod_test): Likewise.
41802         (fpclassify_test): Likewise.
41803         (frexp_test): Likewise.
41804         (ilogb_test): Likewise.
41805         (isfinite_test): Likewise.
41806         (finite_test): Likewise.
41807         (isgreater_test): Likewise.
41808         (isgreaterequal_test): Likewise.
41809         (isinf_test): Likewise.
41810         (isless_test): Likewise.
41811         (islessequal_test): Likewise.
41812         (islessgreater_test): Likewise.
41813         (isnan_test): Likewise.
41814         (isnormal_test): Likewise.
41815         (issignaling_test): Likewise.
41816         (isunordered_test): Likewise.
41817         (logb_test): Likewise.
41818         (logb_downward_test_data): Remove.
41819         (logb_test_downward): Likewise.
41820         (lround_test): Use ALL_RM_TEST.
41821         (llround_test): Likewise.
41822         (modf_test): Likewise.
41823         (nexttoward_test): Likewise.
41824         (remainder_test): Likewise.
41825         (drem_test): Likewise.
41826         (remainder_tonearest_test_data): Likewise.
41827         (remainder_test_tonearest): Likewise.
41828         (drem_test_tonearest): Likewise.
41829         (remainder_towardzero_test_data): Likewise.
41830         (remainder_test_towardzero): Likewise.
41831         (drem_test_towardzero): Likewise.
41832         (remainder_downward_test_data): Likewise.
41833         (remainder_test_downward): Likewise.
41834         (drem_test_downward): Likewise.
41835         (remainder_upward_test_data): Likewise.
41836         (remainder_test_upward): Likewise.
41837         (drem_test_upward): Likewise.
41838         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
41839         (round_test): Use ALL_RM_TEST.
41840         (signbit_test): Likewise.
41841         (trunc_test): Likewise.
41842         (significand_test): Likewise.
41843         (main): Don't call removed functions.
41844
41845 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
41846
41847         [BZ #16674]
41848         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
41849         || __USE_XOPEN2K8].
41850         (ILL_ILLOPN): Likewise.
41851         (ILL_ILLADR): Likewise.
41852         (ILL_ILLTRP): Likewise.
41853         (ILL_PRVOPC): Likewise.
41854         (ILL_PRVREG): Likewise.
41855         (ILL_COPROC): Likewise.
41856         (ILL_BADSTK): Likewise.
41857         (FPE_INTDIV): Likewise.
41858         (FPE_INTOVF): Likewise.
41859         (FPE_FLTDIV): Likewise.
41860         (FPE_FLTOVF): Likewise.
41861         (FPE_FLTUND): Likewise.
41862         (FPE_FLTRES): Likewise.
41863         (FPE_FLTINV): Likewise.
41864         (FPE_FLTSUB): Likewise.
41865         (SEGV_MAPERR): Likewise.
41866         (SEGV_ACCERR): Likewise.
41867         (BUS_ADRALN): Likewise.
41868         (BUS_ADRERR): Likewise.
41869         (BUS_OBJERR): Likewise.
41870         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41871         (TRAP_TRACE): Likewise.
41872         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41873         __USE_XOPEN2K8].
41874         (CLD_KILLED): Likewise.
41875         (CLD_DUMPED): Likewise.
41876         (CLD_TRAPPED): Likewise.
41877         (CLD_STOPPED): Likewise.
41878         (CLD_CONTINUED): Likewise.
41879         (POLL_IN): Likewise.
41880         (POLL_OUT): Likewise.
41881         (POLL_MSG): Likewise.
41882         (POLL_ERR): Likewise.
41883         (POLL_PRI): Likewise.
41884         (POLL_HUP): Likewise.
41885         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
41886         Likewise.
41887         (ILL_ILLOPN): Likewise.
41888         (ILL_ILLADR): Likewise.
41889         (ILL_ILLTRP): Likewise.
41890         (ILL_PRVOPC): Likewise.
41891         (ILL_PRVREG): Likewise.
41892         (ILL_COPROC): Likewise.
41893         (ILL_BADSTK): Likewise.
41894         (FPE_INTDIV): Likewise.
41895         (FPE_INTOVF): Likewise.
41896         (FPE_FLTDIV): Likewise.
41897         (FPE_FLTOVF): Likewise.
41898         (FPE_FLTUND): Likewise.
41899         (FPE_FLTRES): Likewise.
41900         (FPE_FLTINV): Likewise.
41901         (FPE_FLTSUB): Likewise.
41902         (SEGV_MAPERR): Likewise.
41903         (SEGV_ACCERR): Likewise.
41904         (BUS_ADRALN): Likewise.
41905         (BUS_ADRERR): Likewise.
41906         (BUS_OBJERR): Likewise.
41907         (BUS_MCEERR_AR): Likewise.
41908         (BUS_MCEERR_AO): Likewise.
41909         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41910         (TRAP_TRACE): Likewise.
41911         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41912         __USE_XOPEN2K8].
41913         (CLD_KILLED): Likewise.
41914         (CLD_DUMPED): Likewise.
41915         (CLD_TRAPPED): Likewise.
41916         (CLD_STOPPED): Likewise.
41917         (CLD_CONTINUED): Likewise.
41918         (POLL_IN): Likewise.
41919         (POLL_OUT): Likewise.
41920         (POLL_MSG): Likewise.
41921         (POLL_ERR): Likewise.
41922         (POLL_PRI): Likewise.
41923         (POLL_HUP): Likewise.
41924         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
41925         (ILL_ILLOPN): Likewise.
41926         (ILL_ILLADR): Likewise.
41927         (ILL_ILLTRP): Likewise.
41928         (ILL_PRVOPC): Likewise.
41929         (ILL_PRVREG): Likewise.
41930         (ILL_COPROC): Likewise.
41931         (ILL_BADSTK): Likewise.
41932         (FPE_INTDIV): Likewise.
41933         (FPE_INTOVF): Likewise.
41934         (FPE_FLTDIV): Likewise.
41935         (FPE_FLTOVF): Likewise.
41936         (FPE_FLTUND): Likewise.
41937         (FPE_FLTRES): Likewise.
41938         (FPE_FLTINV): Likewise.
41939         (FPE_FLTSUB): Likewise.
41940         (SEGV_MAPERR): Likewise.
41941         (SEGV_ACCERR): Likewise.
41942         (BUS_ADRALN): Likewise.
41943         (BUS_ADRERR): Likewise.
41944         (BUS_OBJERR): Likewise.
41945         (BUS_MCEERR_AR): Likewise.
41946         (BUS_MCEERR_AO): Likewise.
41947         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41948         (TRAP_TRACE): Likewise.
41949         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41950         __USE_XOPEN2K8].
41951         (CLD_KILLED): Likewise.
41952         (CLD_DUMPED): Likewise.
41953         (CLD_TRAPPED): Likewise.
41954         (CLD_STOPPED): Likewise.
41955         (CLD_CONTINUED): Likewise.
41956         (POLL_IN): Likewise.
41957         (POLL_OUT): Likewise.
41958         (POLL_MSG): Likewise.
41959         (POLL_ERR): Likewise.
41960         (POLL_PRI): Likewise.
41961         (POLL_HUP): Likewise.
41962         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
41963         Likewise.
41964         (ILL_ILLOPN): Likewise.
41965         (ILL_ILLADR): Likewise.
41966         (ILL_ILLTRP): Likewise.
41967         (ILL_PRVOPC): Likewise.
41968         (ILL_PRVREG): Likewise.
41969         (ILL_COPROC): Likewise.
41970         (ILL_BADSTK): Likewise.
41971         (ILL_BADIADDR): Likewise.
41972         (ILL_BREAK): Likewise.
41973         (FPE_INTDIV): Likewise.
41974         (FPE_INTOVF): Likewise.
41975         (FPE_FLTDIV): Likewise.
41976         (FPE_FLTOVF): Likewise.
41977         (FPE_FLTUND): Likewise.
41978         (FPE_FLTRES): Likewise.
41979         (FPE_FLTINV): Likewise.
41980         (FPE_FLTSUB): Likewise.
41981         (FPE_DECOVF): Likewise.
41982         (FPE_DECDIV): Likewise.
41983         (FPE_DECERR): Likewise.
41984         (FPE_INVASC): Likewise.
41985         (FPE_INVDEC): Likewise.
41986         (SEGV_MAPERR): Likewise.
41987         (SEGV_ACCERR): Likewise.
41988         (SEGV_PSTKOVF): Likewise.
41989         (BUS_ADRALN): Likewise.
41990         (BUS_ADRERR): Likewise.
41991         (BUS_OBJERR): Likewise.
41992         (BUS_MCEERR_AR): Likewise.
41993         (BUS_MCEERR_AO): Likewise.
41994         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41995         (TRAP_TRACE): Likewise.
41996         (TRAP_BRANCH): Likewise.
41997         (TRAP_HWBKPT): Likewise.
41998         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41999         __USE_XOPEN2K8].
42000         (CLD_KILLED): Likewise.
42001         (CLD_DUMPED): Likewise.
42002         (CLD_TRAPPED): Likewise.
42003         (CLD_STOPPED): Likewise.
42004         (CLD_CONTINUED): Likewise.
42005         (POLL_IN): Likewise.
42006         (POLL_OUT): Likewise.
42007         (POLL_MSG): Likewise.
42008         (POLL_ERR): Likewise.
42009         (POLL_PRI): Likewise.
42010         (POLL_HUP): Likewise.
42011         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
42012         (ILL_ILLOPN): Likewise.
42013         (ILL_ILLADR): Likewise.
42014         (ILL_ILLTRP): Likewise.
42015         (ILL_PRVOPC): Likewise.
42016         (ILL_PRVREG): Likewise.
42017         (ILL_COPROC): Likewise.
42018         (ILL_BADSTK): Likewise.
42019         (FPE_INTDIV): Likewise.
42020         (FPE_INTOVF): Likewise.
42021         (FPE_FLTDIV): Likewise.
42022         (FPE_FLTOVF): Likewise.
42023         (FPE_FLTUND): Likewise.
42024         (FPE_FLTRES): Likewise.
42025         (FPE_FLTINV): Likewise.
42026         (FPE_FLTSUB): Likewise.
42027         (SEGV_MAPERR): Likewise.
42028         (SEGV_ACCERR): Likewise.
42029         (BUS_ADRALN): Likewise.
42030         (BUS_ADRERR): Likewise.
42031         (BUS_OBJERR): Likewise.
42032         (BUS_MCEERR_AR): Likewise.
42033         (BUS_MCEERR_AO): Likewise.
42034         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42035         (TRAP_TRACE): Likewise.
42036         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42037         __USE_XOPEN2K8].
42038         (CLD_KILLED): Likewise.
42039         (CLD_DUMPED): Likewise.
42040         (CLD_TRAPPED): Likewise.
42041         (CLD_STOPPED): Likewise.
42042         (CLD_CONTINUED): Likewise.
42043         (POLL_IN): Likewise.
42044         (POLL_OUT): Likewise.
42045         (POLL_MSG): Likewise.
42046         (POLL_ERR): Likewise.
42047         (POLL_PRI): Likewise.
42048         (POLL_HUP): Likewise.
42049         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
42050         (ILL_ILLOPN): Likewise.
42051         (ILL_ILLADR): Likewise.
42052         (ILL_ILLTRP): Likewise.
42053         (ILL_PRVOPC): Likewise.
42054         (ILL_PRVREG): Likewise.
42055         (ILL_COPROC): Likewise.
42056         (ILL_BADSTK): Likewise.
42057         (FPE_INTDIV): Likewise.
42058         (FPE_INTOVF): Likewise.
42059         (FPE_FLTDIV): Likewise.
42060         (FPE_FLTOVF): Likewise.
42061         (FPE_FLTUND): Likewise.
42062         (FPE_FLTRES): Likewise.
42063         (FPE_FLTINV): Likewise.
42064         (FPE_FLTSUB): Likewise.
42065         (SEGV_MAPERR): Likewise.
42066         (SEGV_ACCERR): Likewise.
42067         (BUS_ADRALN): Likewise.
42068         (BUS_ADRERR): Likewise.
42069         (BUS_OBJERR): Likewise.
42070         (BUS_MCEERR_AR): Likewise.
42071         (BUS_MCEERR_AO): Likewise.
42072         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42073         (TRAP_TRACE): Likewise.
42074         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42075         __USE_XOPEN2K8].
42076         (CLD_KILLED): Likewise.
42077         (CLD_DUMPED): Likewise.
42078         (CLD_TRAPPED): Likewise.
42079         (CLD_STOPPED): Likewise.
42080         (CLD_CONTINUED): Likewise.
42081         (POLL_IN): Likewise.
42082         (POLL_OUT): Likewise.
42083         (POLL_MSG): Likewise.
42084         (POLL_ERR): Likewise.
42085         (POLL_PRI): Likewise.
42086         (POLL_HUP): Likewise.
42087         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
42088         (ILL_ILLOPN): Likewise.
42089         (ILL_ILLADR): Likewise.
42090         (ILL_ILLTRP): Likewise.
42091         (ILL_PRVOPC): Likewise.
42092         (ILL_PRVREG): Likewise.
42093         (ILL_COPROC): Likewise.
42094         (ILL_BADSTK): Likewise.
42095         (FPE_INTDIV): Likewise.
42096         (FPE_INTOVF): Likewise.
42097         (FPE_FLTDIV): Likewise.
42098         (FPE_FLTOVF): Likewise.
42099         (FPE_FLTUND): Likewise.
42100         (FPE_FLTRES): Likewise.
42101         (FPE_FLTINV): Likewise.
42102         (FPE_FLTSUB): Likewise.
42103         (SEGV_MAPERR): Likewise.
42104         (SEGV_ACCERR): Likewise.
42105         (BUS_ADRALN): Likewise.
42106         (BUS_ADRERR): Likewise.
42107         (BUS_OBJERR): Likewise.
42108         (BUS_MCEERR_AR): Likewise.
42109         (BUS_MCEERR_AO): Likewise.
42110         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42111         (TRAP_TRACE): Likewise.
42112         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42113         __USE_XOPEN2K8].
42114         (CLD_KILLED): Likewise.
42115         (CLD_DUMPED): Likewise.
42116         (CLD_TRAPPED): Likewise.
42117         (CLD_STOPPED): Likewise.
42118         (CLD_CONTINUED): Likewise.
42119         (POLL_IN): Likewise.
42120         (POLL_OUT): Likewise.
42121         (POLL_MSG): Likewise.
42122         (POLL_ERR): Likewise.
42123         (POLL_PRI): Likewise.
42124         (POLL_HUP): Likewise.
42125         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
42126         (ILL_ILLOPN): Likewise.
42127         (ILL_ILLADR): Likewise.
42128         (ILL_ILLTRP): Likewise.
42129         (ILL_PRVOPC): Likewise.
42130         (ILL_PRVREG): Likewise.
42131         (ILL_COPROC): Likewise.
42132         (ILL_BADSTK): Likewise.
42133         (ILL_DBLFLT): Likewise.
42134         (ILL_HARDWALL): Likewise.
42135         (FPE_INTDIV): Likewise.
42136         (FPE_INTOVF): Likewise.
42137         (FPE_FLTDIV): Likewise.
42138         (FPE_FLTOVF): Likewise.
42139         (FPE_FLTUND): Likewise.
42140         (FPE_FLTRES): Likewise.
42141         (FPE_FLTINV): Likewise.
42142         (FPE_FLTSUB): Likewise.
42143         (SEGV_MAPERR): Likewise.
42144         (SEGV_ACCERR): Likewise.
42145         (BUS_ADRALN): Likewise.
42146         (BUS_ADRERR): Likewise.
42147         (BUS_OBJERR): Likewise.
42148         (BUS_MCEERR_AR): Likewise.
42149         (BUS_MCEERR_AO): Likewise.
42150         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42151         (TRAP_TRACE): Likewise.
42152         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42153         __USE_XOPEN2K8].
42154         (CLD_KILLED): Likewise.
42155         (CLD_DUMPED): Likewise.
42156         (CLD_TRAPPED): Likewise.
42157         (CLD_STOPPED): Likewise.
42158         (CLD_CONTINUED): Likewise.
42159         (POLL_IN): Likewise.
42160         (POLL_OUT): Likewise.
42161         (POLL_MSG): Likewise.
42162         (POLL_ERR): Likewise.
42163         (POLL_PRI): Likewise.
42164         (POLL_HUP): Likewise.
42165         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
42166         (ILL_ILLOPN): Likewise.
42167         (ILL_ILLADR): Likewise.
42168         (ILL_ILLTRP): Likewise.
42169         (ILL_PRVOPC): Likewise.
42170         (ILL_PRVREG): Likewise.
42171         (ILL_COPROC): Likewise.
42172         (ILL_BADSTK): Likewise.
42173         (FPE_INTDIV): Likewise.
42174         (FPE_INTOVF): Likewise.
42175         (FPE_FLTDIV): Likewise.
42176         (FPE_FLTOVF): Likewise.
42177         (FPE_FLTUND): Likewise.
42178         (FPE_FLTRES): Likewise.
42179         (FPE_FLTINV): Likewise.
42180         (FPE_FLTSUB): Likewise.
42181         (SEGV_MAPERR): Likewise.
42182         (SEGV_ACCERR): Likewise.
42183         (BUS_ADRALN): Likewise.
42184         (BUS_ADRERR): Likewise.
42185         (BUS_OBJERR): Likewise.
42186         (BUS_MCEERR_AR): Likewise.
42187         (BUS_MCEERR_AO): Likewise.
42188         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42189         (TRAP_TRACE): Likewise.
42190         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42191         __USE_XOPEN2K8].
42192         (CLD_KILLED): Likewise.
42193         (CLD_DUMPED): Likewise.
42194         (CLD_TRAPPED): Likewise.
42195         (CLD_STOPPED): Likewise.
42196         (CLD_CONTINUED): Likewise.
42197         (POLL_IN): Likewise.
42198         (POLL_OUT): Likewise.
42199         (POLL_MSG): Likewise.
42200         (POLL_ERR): Likewise.
42201         (POLL_PRI): Likewise.
42202         (POLL_HUP): Likewise.
42203         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
42204         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42205
42206         [BZ #16670]
42207         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
42208         before #include of <time.h>.
42209         [!__USE_XOPEN2K] (__need_timespec): Likewise.
42210         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
42211         (test-xfail-UNIX98/sched.h/conform): Likewise.
42212
42213 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42214
42215         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
42216         error absence of trapping exception support.
42217         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
42218
42219 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42220
42221         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
42222         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
42223         * timezone/Makefile (testdata): Move definition above include of
42224         Rules.
42225         (test-zones): New variable.
42226         (tests-special): Add zone files.
42227         (build-testdata): Use $(evaluate-test).
42228
42229         * elf/Makefile (tests-special): Rename tests to end with .out.
42230         ($(objpfx)noload-mem): Likewise.
42231         ($(objpfx)tst-leaks1-mem): Likewise.
42232         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
42233         * iconv/Makefile (xtests-special): Change test-iconvconfig to
42234         $(objpfx)test-iconvconfig.out.
42235         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
42236         set -e inside subshell and redirect output to file.
42237         * iconvdata/Makefile (generated): Rename tests to end with .out.
42238         Correct type.
42239         (tests-special): Rename tests to end with .out.
42240         ($(objpfx)mtrace-tst-loading): Likewise.
42241         * intl/Makefile (generated): Likewise.
42242         (tests-special): Likewise.
42243         ($(objpfx)mtrace-tst-gettext): Likewise.
42244         * misc/Makefile (generated): Likewise.
42245         (tests-special): Likewise.
42246         ($(objpfx)tst-error1-mem): Likewise.
42247         * nptl/Makefile (tests-special): Likewise.
42248         ($(objpfx)tst-stack3-mem): Likewise.
42249         (generated): Likewise.
42250         * posix/Makefile (generated): Likewise.
42251         (tests-special): Likewise.
42252         (xtests-special): Likewise.
42253         ($(objpfx)tst-fnmatch-mem): Likewise.
42254         ($(objpfx)bug-regex2-mem): Likewise.
42255         ($(objpfx)bug-regex14-mem): Likewise.
42256         ($(objpfx)bug-regex21-mem): Likewise.
42257         ($(objpfx)bug-regex31-mem): Likewise.
42258         ($(objpfx)tst-vfork3-mem): Likewise.
42259         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
42260         ($(objpfx)tst-pcre-mem): Likewise.
42261         ($(objpfx)tst-boost-mem): Likewise.
42262         ($(objpfx)bug-ga2-mem): Likewise.
42263         ($(objpfx)bug-glob2-mem): Likewise.
42264         * resolv/Makefile (generate): Likewise.
42265         (tests-special): Likewise.
42266         (xtests-special): Likewise.
42267         (generated): Likewise.
42268         ($(objpfx)mtrace-tst-leaks): Likewise.
42269         ($(objpfx)mtrace-tst-leaks2): Likewise.
42270
42271         * scripts/merge-test-results.sh: New file.
42272         * Makefile (tests-special-notdir): New variable.
42273         (tests): Run merge-test-results.sh.
42274         (xtests): Likewise.
42275         * Rules (tests-special-notdir): New variable.
42276         (xtests-special-notdir): Likewise.
42277         (tests): Run merge-test-results.sh
42278         (xtests): Likewise.
42279
42280         * Makeconfig (test-xfail-name): New variable.
42281         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
42282         compute variable name for expected failures.
42283         * conform/Makefile (conformtest-headers-data): New variable.
42284         (conformtest-standards): Likewise.
42285         (conformtest-headers-ISO): Likewise.
42286         (conformtest-headers-ISO99): Likewise.
42287         (conformtest-headers-ISO11): Likewise.
42288         (conformtest-headers-POSIX): Likewise.
42289         (conformtest-headers-XPG3): Likewise.
42290         (conformtest-headers-XPG4): Likewise.
42291         (conformtest-headers-UNIX98): Likewise.
42292         (conformtest-headers-XOPEN2K): Likewise.
42293         (conformtest-headers-POSIX2008): Likewise.
42294         (conformtest-headers-XOPEN2K8): Likewise.
42295         (conformtest-header-list-base): Likewise.
42296         (conformtest-header-list-tests): Likewise.
42297         (conformtest-header-base): Likewise.
42298         (conformtest-header-tests): Likewise.
42299         (tests-special): Add $(conformtest-header-list-tests).  If
42300         [$(fast-check) && !$(cross-compiling)], add
42301         $(conformtest-header-tests) instead of
42302         $(objpfx)run-conformtest.out.
42303         (generated): Add $(conformtest-header-list-base).  If
42304         [$(fast-check) && !$(cross-compiling)], add
42305         $(conformtest-header-base).  Remove previous setting.
42306         ($(conformtest-header-list-tests)): New target.
42307         (test-xfail-run-conformtest): Remove variable.
42308         ($(objpfx)run-conformtest.out): Remove target.
42309         (test-xfail-ISO11/complex.h/conform): New variable.
42310         (test-xfail-ISO11/stdalign.h/conform): Likewise.
42311         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
42312         (test-xfail-XPG3/varargs.h/conform): Likewise.
42313         (test-xfail-XPG4/varargs.h/conform): Likewise.
42314         (test-xfail-UNIX98/varargs.h/conform): Likewise.
42315         (test-xfail-XPG4/ndbm.h/conform): Likewise.
42316         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
42317         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
42318         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
42319         (test-xfail-XPG3/fcntl.h/conform): Likewise.
42320         (test-xfail-XPG3/ftw.h/conform): Likewise.
42321         (test-xfail-XPG3/grp.h/conform): Likewise.
42322         (test-xfail-XPG3/langinfo.h/conform): Likewise.
42323         (test-xfail-XPG3/limits.h/conform): Likewise.
42324         (test-xfail-XPG3/pwd.h/conform): Likewise.
42325         (test-xfail-XPG3/search.h/conform): Likewise.
42326         (test-xfail-XPG3/signal.h/conform): Likewise.
42327         (test-xfail-XPG3/stdio.h/conform): Likewise.
42328         (test-xfail-XPG3/stdlib.h/conform): Likewise.
42329         (test-xfail-XPG3/string.h/conform): Likewise.
42330         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
42331         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
42332         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
42333         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
42334         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
42335         (test-xfail-XPG3/sys/types.h/conform): Likewise.
42336         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
42337         (test-xfail-XPG3/termios.h/conform): Likewise.
42338         (test-xfail-XPG3/time.h/conform): Likewise.
42339         (test-xfail-XPG3/unistd.h/conform): Likewise.
42340         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
42341         (test-xfail-XPG4/fcntl.h/conform): Likewise.
42342         (test-xfail-XPG4/langinfo.h/conform): Likewise.
42343         (test-xfail-XPG4/netdb.h/conform): Likewise.
42344         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
42345         (test-xfail-XPG4/signal.h/conform): Likewise.
42346         (test-xfail-XPG4/stdio.h/conform): Likewise.
42347         (test-xfail-XPG4/stdlib.h/conform): Likewise.
42348         (test-xfail-XPG4/stropts.h/conform): Likewise.
42349         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
42350         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
42351         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
42352         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
42353         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
42354         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
42355         (test-xfail-XPG4/sys/time.h/conform): Likewise.
42356         (test-xfail-XPG4/sys/types.h/conform): Likewise.
42357         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
42358         (test-xfail-XPG4/termios.h/conform): Likewise.
42359         (test-xfail-XPG4/ucontext.h/conform): Likewise.
42360         (test-xfail-XPG4/unistd.h/conform): Likewise.
42361         (test-xfail-XPG4/utmpx.h/conform): Likewise.
42362         (test-xfail-POSIX/sched.h/conform): Likewise.
42363         (test-xfail-POSIX/signal.h/conform): Likewise.
42364         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42365         (test-xfail-POSIX/tar.h/conform): Likewise.
42366         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
42367         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
42368         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
42369         (test-xfail-UNIX98/netdb.h/conform): Likewise.
42370         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
42371         (test-xfail-UNIX98/sched.h/conform): Likewise.
42372         (test-xfail-UNIX98/signal.h/conform): Likewise.
42373         (test-xfail-UNIX98/stdio.h/conform): Likewise.
42374         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
42375         (test-xfail-UNIX98/stropts.h/conform): Likewise.
42376         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
42377         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
42378         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
42379         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
42380         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
42381         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
42382         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
42383         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
42384         (test-xfail-UNIX98/unistd.h/conform): Likewise.
42385         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
42386         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
42387         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
42388         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
42389         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
42390         (test-xfail-XOPEN2K/math.h/conform): Likewise.
42391         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
42392         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
42393         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
42394         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
42395         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
42396         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
42397         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
42398         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
42399         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
42400         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
42401         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
42402         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
42403         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
42404         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
42405         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
42406         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
42407         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
42408         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
42409         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
42410         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
42411         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
42412         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
42413         (test-xfail-POSIX2008/signal.h/conform): Likewise.
42414         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
42415         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
42416         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
42417         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
42418         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
42419         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
42420         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
42421         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
42422         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
42423         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
42424         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
42425         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
42426         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
42427         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
42428         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
42429         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
42430         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
42431         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
42432         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
42433         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
42434         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
42435         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
42436         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
42437         (conformtest-cc-flags): Likewise.
42438         ($(conformtest-header-tests): New target.
42439         * conform/check-header-lists.sh: New file.
42440         * conform/run-conformtest.sh: Remove.
42441
42442         * conform/conformtest.pl: Allow ' and \ in values given for
42443         constants.
42444         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
42445         inclusion.
42446         [POSIX] (sys/types.h): Likewise.
42447         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
42448         inclusion.
42449         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
42450         inclusion.
42451         * conform/data/signal.h-data (SIGIO): Remove expectation.
42452         [XPG3] (SIGBUS): Do not expect.
42453         [POSIX || XPG3] (SIGPOLL): Likewise.
42454         [POSIX || XPG3] (SIGPROF): Likewise.
42455         [POSIX || XPG3] (SIGSYS): Likewise.
42456         [XPG3] (SIGTRAP): Likewise.
42457         [POSIX || XPG3] (SIGURG): Likewise.
42458         [POSIX || XPG3] (SIGVTALRM): Likewise.
42459         [POSIX || XPG3] (SIGXCPU): Likewise.
42460         [POSIX || XPG3] (SIGXFSZ): Likewise.
42461         [POSIX] (SA_SIGINFO): Expect.
42462         [XPG3] (siginfo_t): Do not expect type or contents.
42463         [POSIX] (si_pid): Do not expect element.
42464         [POSIX] (si_uid): Likewise.
42465         [POSIX] (si_addr): Likewise.
42466         [POSIX] (si_status): Likewise.
42467         [POSIX] (si_band): Likewise.
42468         [XPG4] (si_value): Likewise.
42469         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
42470         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
42471         [POSIX || XPG3] (ILL_ILLADR): Likewise.
42472         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
42473         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
42474         [POSIX || XPG3] (ILL_PRVREG): Likewise.
42475         [POSIX || XPG3] (ILL_COPROC): Likewise.
42476         [POSIX || XPG3] (ILL_BADSTK): Likewise.
42477         [POSIX || XPG3] (FPE_INTDIV): Likewise.
42478         [POSIX || XPG3] (FPE_INTOVF): Likewise.
42479         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
42480         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
42481         [POSIX || XPG3] (FPE_FLTUND): Likewise.
42482         [POSIX || XPG3] (FPE_FLTRES): Likewise.
42483         [POSIX || XPG3] (FPE_FLTINV): Likewise.
42484         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
42485         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
42486         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
42487         [POSIX || XPG3] (BUS_ADRALN): Likewise.
42488         [POSIX || XPG3] (BUS_ADRERR): Likewise.
42489         [POSIX || XPG3] (BUS_OBJERR): Likewise.
42490         [POSIX || XPG3] (CLD_EXITED): Likewise.
42491         [POSIX || XPG3] (CLD_KILLED): Likewise.
42492         [POSIX || XPG3] (CLD_DUMPED): Likewise.
42493         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
42494         [POSIX || XPG3] (CLD_STOPPED): Likewise.
42495         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
42496         [POSIX || XPG3] (POLL_IN): Likewise.
42497         [POSIX || XPG3] (POLL_OUT): Likewise.
42498         [POSIX || XPG3] (POLL_MSG): Likewise.
42499         [POSIX || XPG3] (POLL_ERR): Likewise.
42500         [POSIX || XPG3] (POLL_PRI): Likewise.
42501         [POSIX || XPG3] (POLL_HUP): Likewise.
42502         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
42503         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
42504         (SIG*): Do not allow.
42505         [XPG3] (si_*): Likewise.
42506         [XPG3] (SI_*): Likewise.
42507         [XPG3 || XPG4] (sigev_*): Likewise.
42508         [XPG3 || XPG4] (SIGEV_*): Likewise.
42509         [XPG3 || XPG4] (sival_*): Likewise.
42510         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
42511         [POSIX || XPG3] (BUS_*): Likewise.
42512         [POSIX || XPG3] (CLD_*): Likewise.
42513         [POSIX || XPG3] (FPE_*): Likewise.
42514         [POSIX || XPG3] (ILL_*): Likewise.
42515         [POSIX || XPG3] (POLL_*): Likewise.
42516         [POSIX || XPG3] (SEGV_*): Likewise.
42517         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
42518         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
42519         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
42520         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
42521         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
42522         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
42523         Specify type and value.
42524         (TVERSLEN): Likewise.
42525         (REGTYPE): Likewise.
42526         (AREGTYPE): Likewise.
42527         (LNKTYPE): Likewise.
42528         (SYMTYPE): Likewise.
42529         (CHRTYPE): Likewise.
42530         (BLKTYPE): Likewise.
42531         (DIRTYPE): Likewise.
42532         (FIFOTYPE): Likewise.
42533         (CONTTYPE): Likewise.
42534         (TSUID): Likewise.
42535         (TSGID): Likewise.
42536         (TSVTX): Likewise.
42537         (TUREAD): Likewise.
42538         (TUWRITE): Likewise.
42539         (TUEXEC): Likewise.
42540         (TGREAD): Likewise.
42541         (TGWRITE): Likewise.
42542         (TGEXEC): Likewise.
42543         (TOREAD): Likewise.
42544         (TOWRITE): Likewise.
42545         (TOEXEC): Likewise.
42546         [POSIX] (TSVTX): Expect constant.
42547
42548 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
42549
42550         * Makefile (tests): Change dependencies to ....
42551         (tests-special): ... additions to this variable.
42552         (tests): Depend on $(tests-special).
42553         * Makerules (check-abi-list): New variable.
42554         (check-abi): Depend on $(check-abi-list).
42555         [$(subdir) = elf] (tests-special): Add
42556         $(objpfx)check-abi-libc.out.
42557         [$(build-shared) = yes && subdir] (tests-special): Add
42558         $(check-abi-list).
42559         [$(build-shared) = yes && subdir] (tests): Do not depend on
42560         check-abi.
42561         * Rules (tests): Depend on $(tests-special).
42562         (xtests): Depend on $(xtests-special).
42563         * catgets/Makefile (tests): Change dependencies to ....
42564         (tests-special): ... additions to this variable.
42565         * conform/Makefile (tests): Change dependencies to ....
42566         (tests-special): ... additions to this variable.
42567         * elf/Makefile (tests): Change dependencies to ....
42568         (tests-special): ... additions to this variable.
42569         * grp/Makefile (tests): Change dependencies to ....
42570         (tests-special): ... additions to this variable.
42571         * iconv/Makefile (xtests): Change dependencies to ....
42572         (xtests-special): ... additions to this variable.
42573         * iconvdata/Makefile (tests): Change dependencies to ....
42574         (tests-special): ... additions to this variable.
42575         * intl/Makefile (tests): Change dependencies to ....
42576         (tests-special): ... additions to this variable.  Also add
42577         $(objpfx)tst-gettext.out.
42578         * io/Makefile (tests): Change dependencies to ....
42579         (tests-special): ... additions to this variable.
42580         * libio/Makefile (tests): Change dependencies to ....
42581         (tests-special): ... additions to this variable.
42582         * malloc/Makefile (tests): Change dependencies to ....
42583         (tests-special): ... additions to this variable.
42584         * misc/Makefile (tests): Change dependencies to ....
42585         (tests-special): ... additions to this variable.
42586         * nptl/Makefile (tests): Change dependencies to ....
42587         (tests-special): ... additions to this variable.
42588         * nptl_db/Makefile (tests): Change dependencies to ....
42589         (tests-special): ... additions to this variable.
42590         * posix/Makefile (tests): Change dependencies to ....
42591         (tests-special): ... additions to this variable.
42592         (xtests): Change dependencies to ....
42593         (xtests-special): ... additions to this variable.
42594         * resolv/Makefile (tests): Change dependencies to ....
42595         (tests-special): ... additions to this variable.
42596         (xtests): Change dependencies to ....
42597         (xtests-special): ... additions to this variable.
42598         * stdio-common/Makefile (tests): Change dependencies to ....
42599         (tests-special): ... additions to this variable.
42600         (do-tst-unbputc): Remove target.
42601         (do-tst-printf): Likewise.
42602         * stdlib/Makefile (tests): Change dependencies to ....
42603         (tests-special): ... additions to this variable.
42604         * string/Makefile (tests): Change dependencies to ....
42605         (tests-special): ... additions to this variable.
42606         * sysdeps/x86/Makefile (tests): Change dependencies to ....
42607         (tests-special): ... additions to this variable.
42608
42609         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
42610         whole file.
42611         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
42612         whole file.
42613         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
42614         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
42615
42616         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
42617         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
42618         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
42619         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
42620         * conform/data/libgen.h-data [XPG3]: Likewise.
42621         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
42622         * conform/data/ndbm.h-data [XPG3]: Likewise.
42623         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42624         * conform/data/netdb.h-data [XPG3]: Likewise.
42625         * conform/data/netinet/in.h-data [XPG3]: Likewise.
42626         * conform/data/poll.h-data [XPG3]: Likewise.
42627         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42628         * conform/data/strings.h-data [XPG3]: Likewise.
42629         * conform/data/stropts.h-data [XPG3]: Likewise.
42630         * conform/data/sys/mman.h-data [XPG3]: Likewise.
42631         * conform/data/sys/resource.h-data [XPG3]: Likewise.
42632         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
42633         Likewise.
42634         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
42635         * conform/data/sys/time.h-data [XPG3]: Likewise.
42636         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
42637         * conform/data/sys/uio.h-data [XPG3]: Likewise.
42638         * conform/data/sys/un.h-data [XPG3]: Likewise.
42639         * conform/data/syslog.h-data [XPG3]: Likewise.
42640         * conform/data/ucontext.h-data [XPG3]: Likewise.
42641         * conform/data/utmpx.h-data [XPG3]: Likewise.
42642         * conform/data/varargs.h-data [UNIX98]: Enable file.
42643
42644         * manual/Makefile (INSTALL_INFO): Remove variable setting.
42645
42646         * math/libm-test.inc (struct test_f_f_data): Move expected results
42647         into structure for each rounding mode.
42648         (struct test_ff_f_data): Likewise.
42649         (struct test_ff_f_data_nexttoward): Likewise.
42650         (struct test_fi_f_data): Likewise.
42651         (struct test_fl_f_data): Likewise.
42652         (struct test_if_f_data): Likewise.
42653         (struct test_fff_f_data): Likewise.
42654         (struct test_c_f_data): Likewise.
42655         (struct test_f_f1_data): Likewise.
42656         (struct test_fF_f1_data): Likewise.
42657         (struct test_ffI_f1_data): Likewise.
42658         (struct test_c_c_data): Likewise.
42659         (struct test_cc_c_data): Likewise.
42660         (struct test_f_i_data): Likewise.
42661         (struct test_ff_i_data): Likewise.
42662         (struct test_f_l_data): Likewise.
42663         (struct test_f_L_data): Likewise.
42664         (struct test_fFF_11_data): Likewise.
42665         (RM_): New macro.
42666         (RM_FE_DOWNWARD): Likewise.
42667         (RM_FE_TONEAREST): Likewise.
42668         (RM_FE_TOWARDZERO): Likewise.
42669         (RM_FE_UPWARD): Likewise.
42670         (RUN_TEST_LOOP_f_f): Update references to expected results.
42671         (RUN_TEST_LOOP_2_f): Likewise.
42672         (RUN_TEST_LOOP_fff_f): Likewise.
42673         (RUN_TEST_LOOP_c_f): Likewise.
42674         (RUN_TEST_LOOP_f_f1): Likewise.
42675         (RUN_TEST_LOOP_fF_f1): Likewise.
42676         (RUN_TEST_LOOP_fI_f1): Likewise.
42677         (RUN_TEST_LOOP_ffI_f1): Likewise.
42678         (RUN_TEST_LOOP_c_c): Likewise.
42679         (RUN_TEST_LOOP_cc_c): Likewise.
42680         (RUN_TEST_LOOP_f_i): Likewise.
42681         (RUN_TEST_LOOP_f_i_tg): Likewise.
42682         (RUN_TEST_LOOP_ff_i_tg): Likewise.
42683         (RUN_TEST_LOOP_f_b): Likewise.
42684         (RUN_TEST_LOOP_f_b_tg): Likewise.
42685         (RUN_TEST_LOOP_f_l): Likewise.
42686         (RUN_TEST_LOOP_f_L): Likewise.
42687         (RUN_TEST_LOOP_fFF_11): Likewise.
42688         * math/gen-libm-test.pl (parse_args): Output four copies of
42689         expected results for each test.
42690
42691         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
42692         (__ASSUME_UTIMES): Remove.
42693         * sysdeps/unix/sysv/linux/tile/kernel-features.h
42694         (__ASSUME_UTIMES): Likewise.
42695
42696         * math/gen-auto-libm-tests.c: Update comment on output format.
42697         (output_for_one_input_case): Generate before-rounding and
42698         after-rounding information as conditions on output flags not
42699         floating-point format.
42700         * math/auto-libm-test-out: Regenerated.
42701         * math/gen-libm-test.pl (cond_value): New function.
42702         (or_cond_value): Use cond_value.
42703         (generate_testfile): Handle conditional exceptions.
42704
42705 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
42706
42707         * math/libm-test.inc (max_valid_error): New variable.
42708         (init_max_error): Take new argument specifying whether function
42709         results are exactly determined.  Set max_valid_error and bound
42710         other variables for errors based on this argument.
42711         (set_max_error): Do not record results above max_valid_error.
42712         (check_float_internal): Only accept errors of up to 0.5ulps if
42713         also at most max_valid_error.
42714         (START): Take new argument EXACT and pass it to init_max_error.
42715         (acos_test): Update call to START.
42716         (acos_test_tonearest): Likewise.
42717         (acos_test_towardzero): Likewise.
42718         (acos_test_downward): Likewise.
42719         (acos_test_upward): Likewise.
42720         (acosh_test): Likewise.
42721         (asin_test): Likewise.
42722         (asin_test_tonearest): Likewise.
42723         (asin_test_towardzero): Likewise.
42724         (asin_test_downward): Likewise.
42725         (asin_test_upward): Likewise.
42726         (asinh_test): Likewise.
42727         (atan_test): Likewise.
42728         (atanh_test): Likewise.
42729         (atan2_test): Likewise.
42730         (cabs_test): Likewise.
42731         (cacos_test): Likewise.
42732         (cacosh_test): Likewise.
42733         (carg_test): Likewise.
42734         (casin_test): Likewise.
42735         (casinh_test): Likewise.
42736         (catan_test): Likewise.
42737         (catanh_test): Likewise.
42738         (cbrt_test): Likewise.
42739         (ccos_test): Likewise.
42740         (ccosh_test): Likewise.
42741         (ceil_test): Likewise.
42742         (cexp_test): Likewise.
42743         (cimag_test): Likewise.
42744         (clog_test): Likewise.
42745         (clog10_test): Likewise.
42746         (conj_test): Likewise.
42747         (copysign_test): Likewise.
42748         (cos_test): Likewise.
42749         (cos_test_tonearest): Likewise.
42750         (cos_test_towardzero): Likewise.
42751         (cos_test_downward): Likewise.
42752         (cos_test_upward): Likewise.
42753         (cosh_test): Likewise.
42754         (cosh_test_tonearest): Likewise.
42755         (cosh_test_towardzero): Likewise.
42756         (cosh_test_downward): Likewise.
42757         (cosh_test_upward): Likewise.
42758         (cpow_test): Likewise.
42759         (cproj_test): Likewise.
42760         (creal_test): Likewise.
42761         (csin_test): Likewise.
42762         (csinh_test): Likewise.
42763         (csqrt_test): Likewise.
42764         (ctan_test): Likewise.
42765         (ctan_test_tonearest): Likewise.
42766         (ctan_test_towardzero): Likewise.
42767         (ctan_test_downward): Likewise.
42768         (ctan_test_upward): Likewise.
42769         (ctanh_test): Likewise.
42770         (ctanh_test_tonearest): Likewise.
42771         (ctanh_test_towardzero): Likewise.
42772         (ctanh_test_downward): Likewise.
42773         (ctanh_test_upward): Likewise.
42774         (erf_test): Likewise.
42775         (erfc_test): Likewise.
42776         (exp_test): Likewise.
42777         (exp_test_tonearest): Likewise.
42778         (exp_test_towardzero): Likewise.
42779         (exp_test_downward): Likewise.
42780         (exp_test_upward): Likewise.
42781         (exp10_test): Likewise.
42782         (exp10_test_tonearest): Likewise.
42783         (exp10_test_towardzero): Likewise.
42784         (exp10_test_downward): Likewise.
42785         (exp10_test_upward): Likewise.
42786         (pow10_test): Likewise.
42787         (exp2_test): Likewise.
42788         (expm1_test): Likewise.
42789         (expm1_test_tonearest): Likewise.
42790         (expm1_test_towardzero): Likewise.
42791         (expm1_test_downward): Likewise.
42792         (expm1_test_upward): Likewise.
42793         (fabs_test): Likewise.
42794         (fdim_test): Likewise.
42795         (floor_test): Likewise.
42796         (fma_test): Likewise.
42797         (fma_test_towardzero): Likewise.
42798         (fma_test_downward): Likewise.
42799         (fma_test_upward): Likewise.
42800         (fmax_test): Likewise.
42801         (fmin_test): Likewise.
42802         (fmod_test): Likewise.
42803         (fpclassify_test): Likewise.
42804         (frexp_test): Likewise.
42805         (hypot_test): Likewise.
42806         (ilogb_test): Likewise.
42807         (isfinite_test): Likewise.
42808         (finite_test): Likewise.
42809         (isgreater_test): Likewise.
42810         (isgreaterequal_test): Likewise.
42811         (isinf_test): Likewise.
42812         (isless_test): Likewise.
42813         (islessequal_test): Likewise.
42814         (islessgreater_test): Likewise.
42815         (isnan_test): Likewise.
42816         (isnormal_test): Likewise.
42817         (issignaling_test): Likewise.
42818         (isunordered_test): Likewise.
42819         (j0_test): Likewise.
42820         (j1_test): Likewise.
42821         (jn_test): Likewise.
42822         (ldexp_test): Likewise.
42823         (lgamma_test): Likewise.
42824         (gamma_test): Likewise.
42825         (lrint_test): Likewise.
42826         (lrint_test_tonearest): Likewise.
42827         (lrint_test_towardzero): Likewise.
42828         (lrint_test_downward): Likewise.
42829         (lrint_test_upward): Likewise.
42830         (llrint_test): Likewise.
42831         (llrint_test_tonearest): Likewise.
42832         (llrint_test_towardzero): Likewise.
42833         (llrint_test_downward): Likewise.
42834         (llrint_test_upward): Likewise.
42835         (log_test): Likewise.
42836         (log10_test): Likewise.
42837         (log1p_test): Likewise.
42838         (log2_test): Likewise.
42839         (logb_test): Likewise.
42840         (logb_test_downward): Likewise.
42841         (lround_test): Likewise.
42842         (llround_test): Likewise.
42843         (modf_test): Likewise.
42844         (nearbyint_test): Likewise.
42845         (nextafter_test): Likewise.
42846         (nexttoward_test): Likewise.
42847         (pow_test): Likewise.
42848         (pow_test_tonearest): Likewise.
42849         (pow_test_towardzero): Likewise.
42850         (pow_test_downward): Likewise.
42851         (pow_test_upward): Likewise.
42852         (remainder_test): Likewise.
42853         (drem_test): Likewise.
42854         (remainder_test_tonearest): Likewise.
42855         (drem_test_tonearest): Likewise.
42856         (remainder_test_towardzero): Likewise.
42857         (drem_test_towardzero): Likewise.
42858         (remainder_test_downward): Likewise.
42859         (drem_test_downward): Likewise.
42860         (remainder_test_upward): Likewise.
42861         (drem_test_upward): Likewise.
42862         (remquo_test): Likewise.
42863         (rint_test): Likewise.
42864         (rint_test_tonearest): Likewise.
42865         (rint_test_towardzero): Likewise.
42866         (rint_test_downward): Likewise.
42867         (rint_test_upward): Likewise.
42868         (round_test): Likewise.
42869         (scalb_test): Likewise.
42870         (scalbn_test): Likewise.
42871         (scalbln_test): Likewise.
42872         (signbit_test): Likewise.
42873         (sin_test): Likewise.
42874         (sin_test_tonearest): Likewise.
42875         (sin_test_towardzero): Likewise.
42876         (sin_test_downward): Likewise.
42877         (sin_test_upward): Likewise.
42878         (sincos_test): Likewise.
42879         (sinh_test): Likewise.
42880         (sinh_test_tonearest): Likewise.
42881         (sinh_test_towardzero): Likewise.
42882         (sinh_test_downward): Likewise.
42883         (sinh_test_upward): Likewise.
42884         (sqrt_test): Likewise.
42885         (sqrt_test_tonearest): Likewise.
42886         (sqrt_test_towardzero): Likewise.
42887         (sqrt_test_downward): Likewise.
42888         (sqrt_test_upward): Likewise.
42889         (tan_test): Likewise.
42890         (tan_test_tonearest): Likewise.
42891         (tan_test_towardzero): Likewise.
42892         (tan_test_downward): Likewise.
42893         (tan_test_upward): Likewise.
42894         (tanh_test): Likewise.
42895         (tgamma_test): Likewise.
42896         (trunc_test): Likewise.
42897         (y0_test): Likewise.
42898         (y1_test): Likewise.
42899         (yn_test): Likewise.
42900         (significand_test): Likewise.
42901
42902         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
42903         individual tests in comment.
42904         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
42905         (prev_max_error): New variable.
42906         (prev_real_max_error): Likewise.
42907         (prev_imag_max_error): Likewise.
42908         (compare_ulp_data): Don't refer to test names in comment.
42909         (find_test_ulps): Remove function.
42910         (find_function_ulps): Likewise.
42911         (find_complex_function_ulps): Likewise.
42912         (init_max_error): Take function name as argument.  Look up ulps
42913         for that function.
42914         (print_ulps): Remove function.
42915         (print_max_error): Use prev_max_error instead of calling
42916         find_function_ulps.
42917         (print_complex_max_error): Use prev_real_max_error and
42918         prev_imag_max_error instead of calling find_complex_function_ulps.
42919         (check_float_internal): Take max_ulp parameter instead of calling
42920         find_test_ulps.  Don't call print_ulps.
42921         (check_float): Update call to check_float_internal.
42922         (check_complex): Update calls to check_float_internal.
42923         (START): Pass argument to init_max_error.
42924         * math/gen-libm-test.pl (%results): Don't include "kind"
42925         information.
42926         (parse_ulps): Don't handle ulps of individual tests.
42927         (print_ulps_file): Likewise.
42928         (output_ulps): Likewise.
42929         * math/README.libm-test: Update.
42930         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
42931         individual tests.
42932         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
42933         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
42934         * sysdeps/arm/libm-test-ulps: Likewise.
42935         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
42936         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
42937         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
42938         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
42939         * sysdeps/microblaze/libm-test-ulps: Likewise.
42940         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
42941         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42942         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
42943         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
42944         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
42945         * sysdeps/sh/libm-test-ulps: Likewise.
42946         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
42947         * sysdeps/tile/libm-test-ulps: Likewise.
42948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42949
42950 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
42951
42952         * math/libm-test.inc (print_complex_max_error): Check separately
42953         whether real and imaginary errors are within allowed range and
42954         pass 0 to print_complex_function_ulps instead of value within
42955         allowed range.
42956
42957 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42958
42959         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
42960         formatting.
42961         (get_handles_fopen): Likewise.
42962         (do_write_test): Likewise.
42963
42964         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
42965
42966         * libio/fileops.c (do_ftell): Use cached offset when
42967         available.
42968         * libio/iofwide.c (do_ftell_wide): Likewise.
42969         * libio/iofdopen.c (_IO_new_fdopen): Don't use
42970         _IO_file_attach.
42971         * libio/wfileops.c (_IO_fwide): Don't cache offset.
42972
42973         [BZ #16532]
42974         * libio/libioP.h (get_file_offset): New function.
42975         * libio/fileops.c (get_file_offset): Likewise.
42976         (do_ftell): Likewise.
42977         (_IO_new_file_seekoff): Split out ftell logic.
42978         * libio/wfileops.c (do_ftell_wide): Likewise.
42979         (_IO_wfile_seekoff): Split out ftell logic.
42980         * libio/tst-ftell-active-handler.c: New test case.
42981         * libio/Makefile (tests): Add it.
42982
42983 2014-03-03  Roland McGrath  <roland@hack.frob.com>
42984
42985         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
42986         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
42987
42988 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
42989
42990         [BZ #16639]
42991         * nscd/connections.c (nscd_init): Call do_exit.
42992         (start_threads): Call do_exit and notify_parent.
42993         (begin_drop_privileges): Call do_exit.
42994         (finish_drop_privileges): Likewise.
42995         * nscd/selinux.c (preserve_capabilities): Likewise.
42996         (install_real_capabilities): Likewise.
42997         (nscd_selinux_enabled): Likewise.
42998         (avc_create_thread): Likewise.
42999         (avc_alloc_lock): Likewise.
43000         (nscd_avc_init): Likewise.
43001         * nscd/nscd.c (parent_fd): New static variable.
43002         (main): Create a pipe between parent and child processes.
43003         Skip closing parent_fd.
43004         (monitor_child): New function.
43005         (do_exit): Likewise.
43006         (notify_parent): Likewise.
43007         * nscd/nscd.h (notify_parent): Likewise.
43008         (do_exit): Likewise.
43009
43010 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
43011
43012         * malloc/malloc.c (__libc_calloc): Revert last change.
43013
43014 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43015
43016         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43017
43018 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
43019
43020         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
43021         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
43022         implementation.
43023         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43024         (__libc_ifunc_impl_list): Likewise.
43025         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
43026         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
43027         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
43028         * string/strrchr.c: Define STRRCHR.
43029
43030 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
43031
43032         * benchtest/bench-strtok.c (simple_strtok): Delete.
43033         (strtok_string): Use as benchmark.
43034         * string/strtok (STRTOK): New macro.
43035
43036 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
43037
43038         * manual/threads.texi: Add header and standard comments to all
43039         functions.
43040
43041         * elf/dl-lookup.c (check_match): New function.
43042         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
43043         (do_lookup_x): Remove nested function check_match. Use non-nested
43044         function check_match.
43045
43046 2014-02-28  Roland McGrath  <roland@hack.frob.com>
43047
43048         * csu/Makefile (generated, before-compile): Use += rather than =.
43049         * catgets/Makefile (generated, generated-dirs): Likewise.
43050         * debug/Makefile (generated): Likewise.
43051         * dlfcn/Makefile (generated): Likewise.
43052         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
43053         * iconvdata/Makefile (before-compile, generated): Likewise.
43054         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
43055         * libio/Makefile (generated): Likewise.
43056         * malloc/Makefile (generated): Likewise.
43057         * manual/Makefile (generated, generated-dirs): Likewise.
43058         * misc/Makefile (generated): Likewise.
43059         * posix/Makefile (generated): Likewise.
43060         * resolv/Makefile (generated): Likewise.
43061         * sunrpc/Makefile (generated, generated-dirs): Likewise.
43062         * timezone/Makefile (generated, generated-dirs): Likewise.
43063
43064         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
43065
43066 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43067
43068         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43069         power8 implementation.
43070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
43071         file: POWER8 llround ifunc implementation.
43072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
43073         (__lllround): Add POWER8 implementation.
43074         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
43075         POWER8 llround implementation.
43076
43077         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
43078         power8 implementation.
43079         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
43080         file: POWER8 llrint ifunc implementation.
43081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
43082         Add POWER8 implementation.
43083         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
43084         POWER8 llrint implementation.
43085
43086         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
43087         power8 implementation.
43088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
43089         file: POWER8 finite ifunc implementation.
43090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
43091         Add POWER8 implementation.
43092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
43093         Likewise.
43094         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
43095         POWER8 finite implementation.
43096         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
43097
43098         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
43099         power8 implementation.
43100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
43101         file: POWER8 isinf ifunc implementation.
43102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
43103         POWER8 implementation.
43104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
43105         Likewise.
43106         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
43107         isinf implementation.
43108         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
43109
43110         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
43111         (INIT_ARCH): Add hwcap2 initialization.
43112         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43113         power8 implementation.
43114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
43115         file: POWER8 isnan ifunc implementation.
43116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
43117         POWER8 implementation.
43118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
43119         Likewise.
43120         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
43121         isnan implementation.
43122         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
43123
43124 2014-02-27  Joey Ye  <joey.ye@arm.com>
43125
43126         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
43127         (_FP_NANFRAC_Q): Set to zero.
43128
43129 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
43130
43131         [BZ #16623]
43132         * math/auto-libm-test-in: New test inputs.
43133         * math/auto-libm-test-out: Regenerate.
43134         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
43135         and DA.
43136         (__cos): Likewise.
43137         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
43138
43139 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
43140
43141         * scripts/evaluate-test.sh: Take new argument indicating whether
43142         failure is expected.
43143         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
43144         indicating whether failure is expected.
43145         * conform/Makefile (test-xfail-run-conformtest): New variable.
43146         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
43147         level.
43148         * posix/Makefile (test-xfail-annexc): New variable.
43149         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
43150
43151 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
43152
43153         * argp/Makefile: Include Makeconfig immediately after defining
43154         subdir.
43155         * assert/Makefile: Likewise.
43156         * benchtests/Makefile: Likewise.
43157         * catgets/Makefile: Likewise.
43158         * conform/Makefile: Likewise.
43159         * crypt/Makefile: Likewise.
43160         * csu/Makefile: Likewise.
43161         (all): Remove target.
43162         * ctype/Makefile: Include Makeconfig immediately after defining
43163         subdir.
43164         * debug/Makefile: Likewise.
43165         * dirent/Makefile: Likewise.
43166         * dlfcn/Makefile: Likewise.
43167         * gmon/Makefile: Likewise.
43168         * gnulib/Makefile: Likewise.
43169         * grp/Makefile: Likewise.
43170         * gshadow/Makefile: Likewise.
43171         * hesiod/Makefile: Likewise.
43172         * hurd/Makefile: Likewise.
43173         (all): Remove target.
43174         * iconvdata/Makefile: Include Makeconfig immediately after
43175         defining subdir.
43176         * inet/Makefile: Likewise.
43177         * intl/Makefile: Likewise.
43178         * io/Makefile: Likewise.
43179         * libio/Makefile: Likewise.
43180         (all): Remove target.
43181         * locale/Makefile: Include Makeconfig immediately after defining
43182         subdir.
43183         * login/Makefile: Likewise.
43184         * mach/Makefile: Likewise.
43185         (all): Remove target.
43186         * malloc/Makefile: Include Makeconfig immediately after defining
43187         subdir.
43188         (all): Remove target.
43189         * manual/Makefile: Include Makeconfig immediately after defining
43190         subdir.
43191         * math/Makefile: Likewise.
43192         * misc/Makefile: Likewise.
43193         * nis/Makefile: Likewise.
43194         * nss/Makefile: Likewise.
43195         * po/Makefile: Likewise.
43196         (all): Remove target.
43197         * posix/Makefile: Include Makeconfig immediately after defining
43198         subdir.
43199         * pwd/Makefile: Likewise.
43200         * resolv/Makefile: Likewise.
43201         * resource/Makefile: Likewise.
43202         * rt/Makefile: Likewise.
43203         * setjmp/Makefile: Likewise.
43204         * shadow/Makefile: Likewise.
43205         * signal/Makefile: Likewise.
43206         * socket/Makefile: Likewise.
43207         * soft-fp/Makefile: Likewise.
43208         * stdio-common/Makefile: Likewise.
43209         * stdlib/Makefile: Likewise.
43210         * streams/Makefile: Likewise.
43211         * string/Makefile: Likewise.
43212         * sunrpc/Makefile: Likewise.
43213         (all): Remove target.
43214         * sysvipc/Makefile: Include Makeconfig immediately after defining
43215         subdir.
43216         * termios/Makefile: Likewise.
43217         * time/Makefile: Likewise.
43218         * timezone/Makefile: Likewise.
43219         (all): Remove target.
43220         * wcsmbs/Makefile: Include Makeconfig immediately after defining
43221         subdir.
43222         * wctype/Makefile: Likewise.
43223
43224 2014-02-26  Steve Ellcey  <sellcey@mips.com>
43225
43226         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
43227         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
43228         (libc_feholdexcept_setround_mips): Ditto.
43229         (libc_feholdsetround): New.
43230         (libc_feholdsetroundf): New.
43231         (libc_feholdsetroundl): New.
43232         (libc_feupdateenv_test_mips): New.
43233         (libc_feupdateenv_test): New.
43234         (libc_feupdateenv_testf): New.
43235         (libc_feupdateenv_testl): New.
43236         (libc_feresetround): New.
43237         (libc_feresetroundf): New.
43238         (libc_feresetroundl): New.
43239         (libc_fetestexcept_mips): New.
43240         (libc_fetestexcept): New.
43241         (libc_fetestexceptf): New.
43242         (libc_fetestexceptl): New.
43243         (HAVE_RM_CTX): New.
43244         (libc_feholdexcept_setround_mips_ctx): New.
43245         (libc_feholdexcept_setround_ctx): New.
43246         (libc_feholdexcept_setroundf_ctx): New.
43247         (libc_feholdexcept_setroundl_ctx): New.
43248         (libc_fesetenv_mips_ctx): New.
43249         (libc_fesetenv_ctx): New.
43250         (libc_fesetenv_ctxf): New.
43251         (libc_fesetenv_ctxl): New.
43252         (libc_feupdateenv_mips_ctx): New.
43253         (libc_feupdateenv_ctx): New.
43254         (libc_feupdateenvf_ctx): New.
43255         (libc_feupdateenvl_ctx): New.
43256         (libc_feholdsetround_mips_ctx): New.
43257         (libc_feholdsetround_ctx): New.
43258         (libc_feholdsetroundf_ctx): New.
43259         (libc_feholdsetroundl_ctx): New.
43260         (libc_feresetround_mips_ctx): New.
43261         (libc_feresetround_ctx): New.
43262         (libc_feresetroundf_ctx): New.
43263         (libc_feresetroundl_ctx): New.
43264
43265 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
43266
43267         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
43268
43269         * manual/ipc.texi: New file.
43270         * manual/Makefile (chapters): Add ipc.
43271         * manual/job.texi: Add "Inter-Process Communication" to next.
43272         * manual/process.texi: Add "Inter-Process Communication" to prev.
43273
43274 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43275
43276         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43277
43278 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
43279
43280         * malloc/malloc.c (__libc_calloc): Simplify implementation.
43281
43282         * manual/arith.texi: Fix spaces after sentences.
43283         * manual/charset.texi: Likewise.
43284         * manual/errno.texi: Likewise.
43285         * manual/install.texi: Likewise.
43286         * manual/llio.texi: Likewise.
43287         * manual/locale.texi: Likewise.
43288         * manual/maint.texi: Likewise.
43289         * manual/math.texi: Likewise.
43290         * manual/memory.texi: Likewise.
43291         * manual/message.texi: Likewise.
43292         * manual/probes.texi: Likewise.
43293         * manual/resource.texi: Likewise.
43294         * manual/signal.texi: Likewise.
43295         * manual/socket.texi: Likewise.
43296         * manual/stdio.texi: Likewise.
43297         * manual/string.texi: Likewise.
43298         * manual/time.texi: Likewise.
43299         * manual/users.texi: Likewise.
43300
43301 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
43302
43303         [BZ #16632]
43304         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
43305         _DEFAULT_SOURCE is defined.
43306
43307 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
43308             Carlos O'Donell  <carlos@redhat.com>
43309
43310         [BZ #16613]
43311         * elf/dl-tls.c (_dl_count_modids): New function.
43312         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
43313         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
43314         audit library and increment generation counter.
43315         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
43316         * elf/tst-audit9.c: New file.
43317         * elf/tst-auditmod9a.c: New file.
43318         * elf/tst-auditmod9b.c: New file.
43319         * elf/Makefile: Add rules to build and run tst-audit9.
43320
43321 2014-02-25  Florian Weimer  <fweimer@redhat.com>
43322
43323         [BZ #15347]
43324         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
43325
43326 2014-02-25  Will Newton  <will.newton@linaro.org>
43327
43328         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
43329         (__longjmp): Restore sp and lr before restoring callee
43330         saved registers.  Add longjmp and longjmp_target
43331         SystemTap probe point.
43332         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
43333         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
43334         Define to zero to match jmpbuf layout.
43335         * sysdeps/arm/setjmp.S: Include stap-probe.h.
43336         (__sigsetjmp): Save sp and lr before saving callee
43337         saved registers.  Add setjmp SystemTap probe point.
43338
43339 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
43340
43341         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
43342
43343 2014-02-24  Andreas Schwab  <schwab@suse.de>
43344
43345         [BZ #15804]
43346         * elf/pldd.c (wait_for_ptrace_stop): New function.
43347         (main): Call it after attaching.
43348
43349 2014-02-22  Roland McGrath  <roland@hack.frob.com>
43350
43351         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
43352         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
43353         Versions files is now verboten.
43354         * hurd/Versions (libc: GLIBC_2.0):
43355         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
43356         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
43357         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
43358         * mach/Versions: Likewise.
43359
43360         * csu/Versions: Remove unused %include.
43361         * resolv/Versions: Likewise.
43362
43363 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
43364
43365         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
43366         ($(objpfx)check-local-headers.out): Likewise.
43367         ($(objpfx)begin-end-check.out): Likewise.
43368         * Makerules (check-abi-%.out): Likewise.
43369         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
43370         ($(objpfx)test2.cat): Likewise.
43371         ($(objpfx)de/libc.cat): Likewise.
43372         ($(objpfx)test-gencat.out): Likewise.
43373         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
43374         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
43375         ($(objpfx)noload-mem): Likewise.
43376         ($(objpfx)tst-pathopt.out): Likewise.
43377         ($(objpfx)tst-rtld-load-self.out): Likewise.
43378         ($(objpfx)tst-array1-cmp.out): Likewise.
43379         ($(objpfx)tst-array1-static-cmp.out): Likewise.
43380         ($(objpfx)tst-array2-cmp.out): Likewise.
43381         ($(objpfx)tst-array3-cmp.out): Likewise.
43382         ($(objpfx)tst-array4-cmp.out): Likewise.
43383         ($(objpfx)tst-array5-cmp.out): Likewise.
43384         ($(objpfx)tst-array5-static-cmp.out): Likewise.
43385         ($(objpfx)check-textrel.out): Likewise.
43386         ($(objpfx)check-execstack.out): Likewise.
43387         ($(objpfx)check-localplt.out): Likewise.
43388         ($(objpfx)order2-cmp.out): Likewise.
43389         ($(objpfx)tst-leaks1-mem): Likewise.
43390         ($(objpfx)tst-leaks1-static-mem): Likewise.
43391         ($(objpfx)tst-initorder-cmp.out): Likewise.
43392         ($(objpfx)tst-initorder2-cmp.out): Likewise.
43393         ($(objpfx)tst-unused-dep.out): Likewise.
43394         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
43395         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
43396         * iconv/Makefile (test-iconvconfig): Likewise.
43397         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
43398         ($(objpfx)iconv-test.out): Likewise.
43399         ($(objpfx)tst-tables.out): Likewise.
43400         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
43401         ($(objpfx)tst-gettext.out): Likewise.
43402         ($(objpfx)tst-translit.out): Likewise.
43403         ($(objpfx)tst-gettext2.out): Likewise.
43404         ($(objpfx)tst-gettext4.out): Likewise.
43405         ($(objpfx)tst-gettext6.out): Likewise.
43406         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
43407         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
43408         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
43409         ($(objpfx)tst-fopenloc-mem.out): Likewise.
43410         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
43411         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
43412         * posix/Makefile ($(objpfx)globtest.out): Likewise.
43413         ($(objpfx)wordexp-tst.out): Likewise.
43414         ($(objpfx)annexc.out): Likewise.
43415         ($(objpfx)tst-fnmatch-mem): Likewise.
43416         ($(objpfx)bug-regex2-mem): Likewise.
43417         ($(objpfx)bug-regex14-mem): Likewise.
43418         ($(objpfx)bug-regex21-mem): Likewise.
43419         ($(objpfx)bug-regex31-mem): Likewise.
43420         ($(objpfx)tst-vfork3-mem): Likewise.
43421         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43422         ($(objpfx)tst-pcre-mem): Likewise.
43423         ($(objpfx)tst-boost-mem): Likewise.
43424         ($(objpfx)tst-getconf.out): Likewise.
43425         ($(objpfx)bug-ga2-mem): Likewise.
43426         ($(objpfx)bug-glob2-mem): Likewise.
43427         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
43428         ($(objpfx)mtrace-tst-leaks2): Likewise.
43429         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
43430         ($(objpfx)tst-printf.out): Likewise.
43431         ($(objpfx)tst-setvbuf1.out): Likewise.
43432         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
43433         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
43434         ($(objpfx)tst-fmtmsg.out): Likewise.
43435         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
43436         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
43437
43438         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
43439         * bits/sigaction.h [__USE_MISC]: Likewise.
43440         * bits/waitstatus.h: Update #endif comments.
43441         * ctype/ctype.h: Likewise.
43442         * dirent/dirent.h: Likewise.
43443         [__USE_MISC]: Remove redundant conditionals.
43444         * grp/grp.h: Update #endif comments.
43445         [__USE_GNU]: Remove redundant conditionals.
43446         [__USE_MISC]: Likewise.
43447         * inet/netinet/in.h [__USE_GNU]: Likewise.
43448         * io/sys/stat.h [__USE_MISC]: Likewise.
43449         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
43450         * libio/bits/stdio.h: Update #endif comments.
43451         [__USE_MISC]: Remove redundant conditionals.
43452         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
43453         * libio/stdio.h: Update #endif comments.
43454         [__USE_MISC]: Remove redundant conditionals.
43455         * math/bits/math-finite.h [__USE_MISC]: Likewise.
43456         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
43457         * math/math.h: Update #else and #endif comments.
43458         [__USE_MISC]: Remove redundant conditionals.
43459         * misc/sys/uio.h: Update #endif comments.
43460         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
43461         * posix/glob.h [__USE_MISC]: Likewise.
43462         * posix/sys/types.h: Update #endif comments.
43463         [__USE_MISC]: Remove redundant conditionals.
43464         * posix/sys/wait.h: Update #endif comments.
43465         [__USE_MISC]: Remove redundant conditionals.
43466         * posix/unistd.h: Update #endif comments.
43467         [__USE_MISC]: Remove redundant conditionals.
43468         * pwd/pwd.h [__USE_GNU]: Likewise.
43469         [__USE_MISC]: Likewise.
43470         * resolv/netdb.h [__USE_GNU]: Likewise.
43471         * signal/signal.h: Update #endif comments.
43472         [__USE_MISC]: Remove redundant conditionals.
43473         * stdlib/stdlib.h: Update #else and #endif comments.
43474         [__USE_MISC]: Remove redundant conditionals.
43475         [__USE_GNU]: Likewise.
43476         * string/bits/string2.h [__USE_MISC]: Likewise.
43477         * string/string.h: Update #endif comments.
43478         [__USE_MISC]: Remove redundant conditionals.
43479         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
43480         Likewise.
43481         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
43482         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
43483         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
43484         Likewise.
43485         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
43486         Likewise.
43487         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
43488         comments.
43489         [__USE_MISC]: Remove redundant conditionals.
43490         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
43491         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
43492         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
43493         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
43494         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
43495         Likewise.
43496         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
43497         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
43498         Likewise.
43499         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
43500         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
43501         Likewise.
43502         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
43503         Likewise.
43504         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
43505         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
43506         Likewise.
43507         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
43508         Likewise.
43509         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
43510         * sysdeps/x86/bits/string.h: Update #endif comments.
43511         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
43512         conditionals.
43513         * time/sys/time.h: Update #endif comments.
43514         * time/time.h: Likewise.
43515         [__USE_MISC]: Remove redundant conditionals.
43516
43517 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
43518
43519         [BZ #16600]
43520         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
43521
43522 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
43523
43524         * Versions.def (librt): Add GLIBC_2.17.
43525
43526 2014-02-21  Adam Conrad  <adconrad@0c3.net>
43527
43528         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
43529         synonym for _SYS_AUXV_H to allow direct inclusion.
43530         * sysdeps/sparc/bits/hwcap.h: Likewise.
43531         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
43532         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
43533         * sysdeps/sparc/sysdep.h: Likewise.
43534
43535 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
43536
43537         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
43538
43539 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43540
43541         * benchtests/bench-strrchr.c: Print length instead of position.
43542
43543 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
43544
43545         [BZ #16611]
43546         * sysdeps/unix/sysv/linux/kernel-features.h
43547         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
43548         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
43549         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
43550         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
43551         Likewise.
43552         [__i386__ || __powerpc__ || __sh__ || __sparc__]
43553         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43554         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
43555         (__ASSUME_SENDMMSG): Define instead of using previous
43556         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
43557         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43558         (__ASSUME_SENDMMSG_SYSCALL): Define.
43559         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43560         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
43561         Likewise.
43562         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43563         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43564         Likewise.
43565         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43566         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43567         Likewise.
43568         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
43569         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43570         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43571         [__ASSUME_SENDMMSG]: Change conditionals to
43572         [__ASSUME_SENDMMSG_SOCKETCALL].
43573         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43574         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
43575         Define.
43576         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43577         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
43578         Likewise.
43579         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
43580         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43581         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43582         [!__ASSUME_SENDMMSG]: Change conditional to
43583         [!__ASSUME_SENDMMSG_SOCKETCALL].
43584         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43585         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43586         Define.
43587
43588         [BZ #16610]
43589         * sysdeps/unix/sysv/linux/kernel-features.h
43590         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
43591         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
43592         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
43593         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
43594         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
43595         [__i386__ || __sparc__]
43596         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43597         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
43598         (__ASSUME_RECVMMSG): Define instead of using previous
43599         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
43600         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43601         (__ASSUME_RECVMMSG_SYSCALL): Define.
43602         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43603         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43604         Likewise.
43605         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43606         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43607         Likewise.
43608         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43609         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43610         Likewise.
43611         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
43612         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43613         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43614         [__ASSUME_RECVMMSG]: Change condition to
43615         [__ASSUME_RECVMMSG_SOCKETCALL].
43616         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43617         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43618         Define.
43619         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43620         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43621         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43622         Likewise.
43623         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
43624         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43625         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43626         [!__ASSUME_RECVMMSG]: Change condition to
43627         [!__ASSUME_RECVMMSG_SOCKETCALL].
43628         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43629         (__ASSUME_RECVMMSG_SYSCALL): Define.
43630
43631         [BZ #16609]
43632         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
43633         __powerpc__ || __s390__ || __sh__ || __sparc__]
43634         (__ASSUME_SOCKETCALL): Define.
43635         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
43636         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
43637         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
43638         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
43639         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
43640         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
43641         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
43642         (__ASSUME_ACCEPT4): Define instead of using previous
43643         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
43644         __powerpc__ || __sparc__ || __s390__)] condition.
43645         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43646         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43647         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
43648         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43649         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43650         [!__ASSUME_ACCEPT4]: Change condition to
43651         [!__ASSUME_ACCEPT4_SOCKETCALL].
43652         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43653         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
43654         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
43655         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43656         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
43657         __ASSUME_ACCEPT4_SYSCALL.
43658         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
43659         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
43660         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43661         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
43662         __ASSUME_ACCEPT4_SYSCALL.
43663         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
43664         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43665         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43666         [__ASSUME_ACCEPT4]: Change condition to
43667         [__ASSUME_ACCEPT4_SOCKETCALL].
43668         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
43669         (__ASSUME_SOCKETCALL): Define.
43670         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
43671         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43672         (__ASSUME_SOCKETCALL): Define.
43673         (__ASSUME_ACCEPT4): Remove.
43674         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
43675         Define.
43676         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43677         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
43678         Likewise.
43679         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43680         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43681
43682         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
43683         macro.
43684         (HWCAP_ARM_LPAE): Likewise.
43685         (HWCAP_ARM_EVTSTRM): Likewise.
43686         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
43687         Add vpfd32, lpae and evtstrm.
43688         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
43689         Increase to 22.
43690
43691 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
43692
43693         * math/auto-libm-test-in: Add tests of clog10.
43694         * math/auto-libm-test-out: Regenerated.
43695         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
43696         * sysdeps/i386/fpu/libm-test-ulps: Update.
43697         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43698
43699 2014-02-18  Andreas Schwab  <schwab@suse.de>
43700
43701         [BZ #16574]
43702         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
43703         Store non-zero if the second buffer was newly allocated.
43704         (send_dg): Likewise.
43705         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
43706         to send_vc and send_dg.
43707         (res_nsend): Pass NULL for ansp2_malloced.
43708         * resolv/res_query.c (__libc_res_nquery): Add parameter
43709         answerp2_malloced and pass it down to __libc_res_nsend.
43710         (res_nquery): Pass additional NULL to __libc_res_nquery.
43711         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
43712         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
43713         second answer buffer if answerp2_malloced was set.
43714         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
43715         (__libc_res_nquerydomain): Add parameter
43716         answerp2_malloced and pass it down to __libc_res_nquery.
43717         (res_nquerydomain): Pass additional NULL to
43718         __libc_res_nquerydomain.
43719         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
43720         additional NULL to __libc_res_nsend and __libc_res_nquery.
43721         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
43722         additional NULL to __libc_res_nsearch.
43723         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
43724         parameter of __libc_res_nsearch to check for separately allocated
43725         second buffer.
43726         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
43727         __libc_res_nquery.
43728         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
43729         additional NULL to __libc_res_nquery.
43730         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
43731         __libc_res_nsearch.
43732         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
43733         * include/resolv.h: Update prototypes of __libc_res_nquery,
43734         __libc_res_nsearch, __libc_res_nsend.
43735
43736 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
43737
43738         * math/auto-libm-test-in: Add tests of fma.
43739         * math/auto-libm-test-out: Regenerated.
43740         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
43741         (fma_towardzero_test_data): Likewise.
43742         (fma_downward_test_data): Likewise.
43743         (fma_upward_test_data): Likewise.
43744         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
43745         mpc_mode.
43746         (rounding_modes): Add values for new field.
43747         (func_calc_method): Add value mpfr_fff_f.
43748         (func_calc_desc): Add mpfr_fff_f union field.
43749         (test_function): Add field exact_args.
43750         (FUNC): Add macro argument EXACT_ARGS.
43751         (FUNC_mpfr_f_f): Update call to FUNC.
43752         (FUNC_mpfr_f_f): Likewise.
43753         (FUNC_mpfr_ff_f): Likewise.
43754         (FUNC_mpfr_if_f): Likewise.
43755         (FUNC_mpc_c_f): Likewise.
43756         (FUNC_mpc_c_c): Likewise.
43757         (test_functions): Add fma.  Update calls to FUNC.
43758         (handle_input_arg): Add argument exact_args.
43759         (add_test): Update call to handle_input_arg.
43760         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
43761         (output_for_one_input_case): Update call to calc_generic_results.
43762         Recalculate exact zero results in each rounding mode.
43763
43764         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
43765         non-negative before setting low bit.
43766         * math/auto-libm-test-in: Mark one asin test possibly having
43767         spurious underflow.
43768         * math/auto-libm-test-out: Regenerated.
43769         * sysdeps/i386/fpu/libm-test-ulps: Update.
43770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43771
43772 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
43773
43774         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
43775         * sysdeps/unix/sysv/linux/microblaze: Move directory from
43776         ports/sysdeps/unix/sysv/linux/microblaze.
43777         * README: Add missing listing for microblaze*-*-linux-gnu.
43778
43779 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
43780
43781         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
43782         duplicate code
43783
43784 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
43785
43786         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
43787         * sysdeps/unix/sysv/linux/ia64: Move directory from
43788         ports/sysdeps/unix/sysv/linux/ia64.
43789         * README: Update listing for ia64-*-linux-gnu.
43790
43791 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
43792             Joseph Myers  <joseph@codesourcery.com>
43793
43794         * Makeconfig (test-name): New variable.
43795         (evaluate-test): Likewise.
43796         * Makerules (do-test-clean): Remove .test-result files.
43797         (common-mostlyclean): Likewise.
43798         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
43799         * scripts/evaluate-test.sh: New file.
43800
43801 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
43802
43803         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
43804         separate $(objpfx)tst-fopenloc-cmp.out and
43805         $(objpfx)tst-fopenloc-mem.out targets.
43806         (tests): Update dependencies.
43807         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
43808         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
43809         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
43810         (tst-rxspencer-no-utf8-ARGS): New variable.
43811         (tst-rxspencer-no-utf8-ENV): Likewise.
43812         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
43813         instead of $(objpfx)tst-rxspencer-mem.
43814         ($(objpfx)tst-rxspencer-mem): Change target to
43815         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
43816         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
43817         * posix/tst-rxspencer-no-utf8.c: New file.
43818
43819         * elf/Makefile ($(objpfx)order.out): Remove rule.
43820         [$(run-built-tests) = yes] (tests): Depend on
43821         $(objpfx)order-cmp.out.
43822         ($(objpfx)order-cmp.out): New rule.
43823         [$(run-built-tests) = yes] (tests): Depend on
43824         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
43825         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
43826         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
43827         $(objpfx)tst-array5-static-cmp.out.
43828         ($(objpfx)tst-array1.out): Remove rule.
43829         ($(objpfx)tst-array1-cmp.out): New rule.
43830         ($(objpfx)tst-array1-static.out): Remove rule.
43831         ($(objpfx)tst-array1-static-cmp.out): New rule.
43832         ($(objpfx)tst-array2.out): Remove rule.
43833         ($(objpfx)tst-array2-cmp.out): New rule.
43834         ($(objpfx)tst-array3.out): Remove rule.
43835         ($(objpfx)tst-array3-cmp.out): New rule.
43836         ($(objpfx)tst-array4.out): Remove rule.
43837         ($(objpfx)tst-array4-cmp.out): New rule.
43838         ($(objpfx)tst-array5.out): Remove rule.
43839         ($(objpfx)tst-array5-cmp.out): New rule.
43840         ($(objpfx)tst-array5-static.out): Remove rule.
43841         ($(objpfx)tst-array5-static-cmp.out): New rule.
43842         [$(run-built-tests) = yes] (tests): Depend on
43843         $(objpfx)order2-cmp.out.
43844         ($(objpfx)order2.out): Remove rule.
43845         ($(objpfx)order2-cmp.out): New rule.
43846         ($(objpfx)tst-initorder.out): Remove rule.
43847         [$(run-built-tests) = yes] (tests): Depend on
43848         $(objpfx)tst-initorder-cmp.out.
43849         ($(objpfx)tst-initorder-cmp.out): New rule.
43850         ($(objpfx)tst-initorder2.out): Remove rule.
43851         [$(run-built-tests) = yes] (tests): Depend on
43852         $(objpfx)tst-initorder2-cmp.out.
43853         ($(objpfx)tst-initorder2-cmp.out): New rule.
43854         [$(run-built-tests) = yes] (tests): Depend on
43855         $(objpfx)tst-unused-dep-cmp.out.
43856         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
43857         ($(objpfx)tst-unused-dep-cmp.out): New rule.
43858         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
43859         on $(objpfx)tst-setvbuf1-cmp.out.
43860         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
43861         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
43862         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
43863         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
43864         ($(objpfx)tst-svc.out): Remove rule.
43865         ($(objpfx)tst-svc-cmp.out): New rule.
43866
43867 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
43868
43869         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
43870         * ctype/ctype.h [__USE_MISC]: Likewise.
43871         * dirent/dirent.h [__USE_MISC]: Likewise.
43872         * grp/grp.h [__USE_MISC]: Likewise.
43873         * io/fcntl.h [__USE_MISC]: Likewise.
43874         * io/sys/stat.h [__USE_MISC]: Likewise.
43875         * libio/stdio.h [__USE_MISC]: Likewise.
43876         * posix/unistd.h [__USE_MISC]: Likewise.
43877         * pwd/pwd.h [__USE_MISC]: Likewise.
43878         * stdlib.h [__USE_MISC]: Likewise.
43879         * string/bits/string2.h [__USE_MISC]: Likewise.
43880         * string/string.h [__USE_MISC]: Likewise.
43881         * time/time.h [__USE_MISC]: Likewise.
43882
43883 2014-02-13  Andreas Schwab  <schwab@suse.de>
43884
43885         [BZ #16574]
43886         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
43887         second answer buffer if it was separately allocated.
43888
43889 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
43890
43891         * sysdeps/mips/math-tests.h: Include <features.h>.
43892         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43893         (ROUNDING_TESTS_long_double): Do not define.
43894         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43895         (EXCEPTION_TESTS_long_double): Likewise.
43896         * sysdeps/mips/mips64/libm-test-ulps: Update.
43897
43898         * include/features.h (__USE_BSD): Remove macro definitions.
43899         (__USE_SVID): Likewise.
43900         (_BSD_SOURCE): Likewise.
43901         (_SVID_SOURCE): Likewise.
43902         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
43903         from definition of _DEFAULT_SOURCE.
43904         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
43905         [_DEFAULT_SOURCE].
43906         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
43907         * bits/mman.h [__USE_BSD]: Likewise.
43908         * bits/termios.h [__USE_BSD]: Likewise.
43909         * bits/waitstatus.h [__USE_BSD]: Likewise.
43910         * ctype/ctype.h [__USE_SVID]: Likewise.
43911         * dirent/dirent.h [__USE_BSD]: Likewise.
43912         * grp/grp.h [__USE_SVID]: Likewise.
43913         [__USE_BSD]: Likewise.
43914         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
43915         * io/fcntl.h [__USE_BSD]: Likewise.
43916         * io/ftw.h [__USE_BSD]: Likewise.
43917         * io/sys/stat.h [__USE_BSD]: Likewise.
43918         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
43919         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
43920         * libio/stdio.h [__USE_SVID]: Likewise.
43921         [__USE_BSD]: Likewise.
43922         * math/math.h [__USE_SVID]: Likewise.
43923         [__USE_BSD]: Likewise.
43924         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
43925         * misc/bits/syslog.h [__USE_BSD]: Likewise.
43926         * misc/search.h [__USE_SVID]: Likewise.
43927         * misc/sys/mman.h [__USE_BSD]: Likewise.
43928         * misc/sys/syslog.h [__USE_BSD]: Likewise.
43929         * misc/sys/uio.h [__USE_BSD]: Likewise.
43930         * posix/bits/unistd.h [__USE_BSD]: Likewise.
43931         * posix/glob.h [__USE_BSD]: Likewise.
43932         * posix/regex.h [__USE_BSD]: Likewise.
43933         * posix/sys/types.h [__USE_BSD]: Likewise.
43934         [__USE_SVID]: Likewise.
43935         * posix/sys/utsname.h [__USE_SVID]: Likewise.
43936         * posix/sys/wait.h [__USE_BSD]: Likewise.
43937         [__USE_SVID]: Likewise.
43938         * posix/unistd.h [__USE_BSD]: Likewise.
43939         [__USE_SVID]: Likewise.
43940         * pwd/pwd.h [__USE_SVID]: Likewise.
43941         * resolv/netdb.h [__USE_BSD]: Likewise.
43942         * setjmp/setjmp.h [__USE_BSD]: Likewise.
43943         * signal/signal.h [__USE_BSD]: Likewise.
43944         [__USE_SVID]: Likewise.
43945         * socket/sys/socket.h [__USE_BSD]: Likewise.
43946         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
43947         * stdlib/stdlib.h [__USE_BSD]: Likewise.
43948         [__USE_SVID]: Likewise.
43949         * string/bits/string2.h [__USE_BSD]: Likewise.
43950         [__USE_SVID]: Likewise.
43951         * string/bits/string3.h [__USE_BSD]: Likewise.
43952         * string/endian.h [__USE_BSD]: Likewise.
43953         * string/string.h [__USE_SVID]: Likewise.
43954         [__USE_BSD]: Likewise.
43955         * string/strings.h [__USE_BSD]: Likewise.
43956         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
43957         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
43958         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
43959         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
43960         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
43961         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
43962         Likewise.
43963         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
43964         Likewise.
43965         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
43966         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
43967         Likewise.
43968         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
43969         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
43970         Likewise.
43971         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
43972         Likewise.
43973         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
43974         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
43975         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
43976         Likewise.
43977         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
43978         Likewise.
43979         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
43980         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
43981         * termios/termios.h [__USE_BSD]: Likewise.
43982         * time/sys/time.h [__USE_BSD]: Likewise.
43983         * time/time.h [__USE_BSD]: Likewise.
43984         [__USE_SVID]: Likewise.
43985
43986         * Makefile (subdir_targets): Remove subdir_lint.out.
43987
43988         * stdio-common/Makefile (do-tst-unbputc): Remove target.
43989         (do-tst-printf): Likewise.
43990         (tests): Depend directly on $(objpfx)tst-unbputc.out and
43991         $(objpfx)tst-printf.out.
43992
43993         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
43994
43995         * Makerules (check-abi-%): Change target to
43996         $(objpfx)check-abi-%.out.
43997         (check-abi target): Update dependencies.
43998         (check-abi-pattern variable): Redirect output of diff to $@.
43999         (check-abi variable): Likewise.
44000         * elf/Makefile (check-abi): Update dependencies.
44001
44002         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
44003         unused.
44004         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
44005         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
44006         subnormal range.
44007         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
44008         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
44009         value has largest subnormal exponent.
44010         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
44011         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
44012         * sysdeps/aarch64/soft-fp/sfp-machine.h
44013         (_FP_TININESS_AFTER_ROUNDING): New macro.
44014         * sysdeps/alpha/soft-fp/sfp-machine.h
44015         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44016         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44017         Likewise.
44018         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
44019         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44020         * sysdeps/mips/soft-fp/sfp-machine.h
44021         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44022         * sysdeps/powerpc/soft-fp/sfp-machine.h
44023         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44024         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44025         Likewise.
44026         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
44027         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44028         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
44029         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44030         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44031         Likewise.
44032
44033 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
44034
44035         [BZ #16545]
44036         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
44037         model 1.
44038
44039 2014-02-12  Richard Henderson  <rth@redhat.com>
44040
44041         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
44042         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
44043         * sysdeps/unix/sysv/linux/alpha: Move directory from
44044         ports/sysdeps/unix/sysv/linux/alpha.
44045         * README: Update listing for alpha-*-linux-gnu.
44046
44047 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
44048
44049         * include/features.h: Update comment documenting feature test
44050         macros.
44051         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
44052         _DEFAULT_SOURCE.
44053         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
44054         (_SVID_SOURCE): Likewise.
44055         (_DEFAULT_SOURCE): Update description of default features.
44056         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
44057         with _GNU_SOURCE.
44058         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
44059         (S_ISVTX): Likewise.
44060         * manual/math.texi (Mathematical Constants): Likewise.
44061         * manual/signal.texi (Interrupted Primitives): Likewise.
44062         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
44063         * math/test-matherr.c (_SVID_SOURCE): Do not define.
44064         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
44065         Don't refer to _SVID_SOURCE in warning text.
44066
44067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44068
44069         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
44070         already defined.
44071         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
44072         * sysdeps/mips/dl-lookup.c: Remove.
44073         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
44074
44075 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
44076
44077         [BZ #16447]
44078         * math/auto-libm-test-in: Add testcase for expl.
44079         * math/auto-libm-test-out: Regenerate.
44080         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
44081         calculation of unsafe.
44082         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
44083
44084 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44085
44086         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
44087         * sysdeps/unix/sysv/linux/aarch64: Move directory from
44088         ports/sysdeps/unix/sysv/linux/aarch64.
44089         * README: Update listing for aarch64*-*-linux-gnu.
44090
44091 2014-02-11  Will Newton  <will.newton@linaro.org>
44092
44093         * manual/probes.texi (Mathematical Function Probes): Use
44094         "triggered" instead of "hit".
44095
44096         * manual/probes.texi (Internal Probes): Add documentation
44097         of setjmp, longjmp and longjmp_target probes.
44098
44099         * include/stap-probe.h: Add comment about probe argument
44100         format.
44101
44102         * malloc/mtrace.c (attribute_hidden): Remove unused macro
44103         definition.  (tr_where, tr_freehook, tr_mallochook,
44104         tr_reallochook, tr_memalignhook): Use ANSI protoype.
44105
44106 2014-02-11  David S. Miller  <davem@davemloft.net>
44107
44108         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
44109         processing int_tests.
44110
44111 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
44112
44113         * sysdeps/mips: Move directory from ports/sysdeps/mips.
44114         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
44115         * sysdeps/unix/sysv/linux/mips: Move directory from
44116         ports/sysdeps/unix/sysv/linux/mips.
44117         * README: Update listing for mips-*-linux-gnu and
44118         mips64-*-linux-gnu.
44119
44120 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
44121
44122         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
44123         * sysdeps/unix/sysv/linux/m68k: Move directory from
44124         ports/sysdeps/unix/sysv/linux/m68k.
44125         * README: Update listing for m68k-*-linux-gnu.
44126
44127 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
44128
44129         * sysdeps/tile: Move directory from ports/sysdeps/tile.
44130         * sysdeps/unix/sysv/linux/generic: Move directory from
44131         ports/sysdeps/unix/sysv/linux/generic.
44132         * sysdeps/unix/sysv/linux/tile: Move directory from
44133         ports/sysdeps/unix/sysv/linux/tile.
44134         * README: Update listing for tile*-*-linux-gnu.
44135
44136 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
44137
44138         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
44139         __builtin_expect.
44140         * benchtests/bench-memmem.c (simple_memmem): Likewise.
44141         * catgets/open_catalog.c (__open_catalog): Likewise.
44142         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
44143         * debug/confstr_chk.c: Likewise.
44144         * debug/fread_chk.c (__fread_chk): Likewise.
44145         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
44146         * debug/getgroups_chk.c: Likewise.
44147         * debug/mbsnrtowcs_chk.c: Likewise.
44148         * debug/mbsrtowcs_chk.c: Likewise.
44149         * debug/mbstowcs_chk.c: Likewise.
44150         * debug/memcpy_chk.c: Likewise.
44151         * debug/memmove_chk.c: Likewise.
44152         * debug/mempcpy_chk.c: Likewise.
44153         * debug/memset_chk.c: Likewise.
44154         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
44155         * debug/strcat_chk.c (__strcat_chk): Likewise.
44156         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
44157         * debug/strncat_chk.c (__strncat_chk): Likewise.
44158         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
44159         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
44160         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
44161         * debug/wcpncpy_chk.c: Likewise.
44162         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
44163         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
44164         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
44165         * debug/wcsncpy_chk.c: Likewise.
44166         * debug/wcsnrtombs_chk.c: Likewise.
44167         * debug/wcsrtombs_chk.c: Likewise.
44168         * debug/wcstombs_chk.c: Likewise.
44169         * debug/wmemcpy_chk.c: Likewise.
44170         * debug/wmemmove_chk.c: Likewise.
44171         * debug/wmempcpy_chk.c: Likewise.
44172         * debug/wmemset_chk.c: Likewise.
44173         * dirent/scandirat.c (SCANDIRAT): Likewise.
44174         * dlfcn/dladdr1.c (dladdr1): Likewise.
44175         * dlfcn/dladdr.c (dladdr): Likewise.
44176         * dlfcn/dlclose.c (dlclose_doit): Likewise.
44177         * dlfcn/dlerror.c (__dlerror): Likewise.
44178         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
44179         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
44180         * dlfcn/dlopen.c (dlopen_doit): Likewise.
44181         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
44182         * dlfcn/dlsym.c (dlsym_doit): Likewise.
44183         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
44184         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
44185         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
44186         Likewise.
44187         * elf/dl-conflict.c: Likewise.
44188         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
44189         * elf/dl-dst.h: Likewise.
44190         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
44191         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
44192         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
44193         * elf/dl-init.c (call_init, _dl_init): Likewise.
44194         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
44195         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
44196         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
44197         Likewise.
44198         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
44199         Likewise.
44200         * elf/dl-minimal.c (__libc_memalign): Likewise.
44201         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
44202         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
44203         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
44204         * elf/dl-sym.c (do_sym): Likewise.
44205         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
44206         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
44207         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
44208         * elf/dl-writev.h (_dl_writev): Likewise.
44209         * elf/ldconfig.c (search_dir): Likewise.
44210         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
44211         (dl_main): Likewise.
44212         * elf/setup-vdso.h (setup_vdso): Likewise.
44213         * grp/compat-initgroups.c (compat_call): Likewise.
44214         * grp/fgetgrent.c (fgetgrent): Likewise.
44215         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
44216         * grp/putgrent.c (putgrent): Likewise.
44217         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
44218         Likewise.
44219         * hurd/hurdinit.c: Likewise.
44220         * iconvdata/8bit-gap.c (struct): Likewise.
44221         * iconvdata/ansi_x3.110.c : Likewise.
44222         * iconvdata/big5.c : Likewise.
44223         * iconvdata/big5hkscs.c : Likewise.
44224         * iconvdata/cp1255.c: Likewise.
44225         * iconvdata/cp1258.c : Likewise.
44226         * iconvdata/cp932.c : Likewise.
44227         * iconvdata/euc-cn.c: Likewise.
44228         * iconvdata/euc-jisx0213.c : Likewise.
44229         * iconvdata/euc-jp.c: Likewise.
44230         * iconvdata/euc-jp-ms.c : Likewise.
44231         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
44232         * iconvdata/gb18030.c : Likewise.
44233         * iconvdata/gbbig5.c (const): Likewise.
44234         * iconvdata/gbgbk.c: Likewise.
44235         * iconvdata/gbk.c : Likewise.
44236         * iconvdata/ibm1364.c : Likewise.
44237         * iconvdata/ibm930.c : Likewise.
44238         * iconvdata/ibm932.c: Likewise.
44239         * iconvdata/ibm933.c : Likewise.
44240         * iconvdata/ibm935.c : Likewise.
44241         * iconvdata/ibm937.c : Likewise.
44242         * iconvdata/ibm939.c : Likewise.
44243         * iconvdata/ibm943.c: Likewise.
44244         * iconvdata/iso_11548-1.c: Likewise.
44245         * iconvdata/iso-2022-cn.c : Likewise.
44246         * iconvdata/iso-2022-cn-ext.c : Likewise.
44247         * iconvdata/iso-2022-jp-3.c: Likewise.
44248         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
44249         * iconvdata/iso-2022-kr.c : Likewise.
44250         * iconvdata/iso646.c (gconv_end): Likewise.
44251         * iconvdata/iso_6937-2.c : Likewise.
44252         * iconvdata/iso_6937.c : Likewise.
44253         * iconvdata/iso8859-1.c: Likewise.
44254         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
44255         * iconvdata/shift_jisx0213.c : Likewise.
44256         * iconvdata/sjis.c : Likewise.
44257         * iconvdata/t.61.c : Likewise.
44258         * iconvdata/tcvn5712-1.c : Likewise.
44259         * iconvdata/tscii.c: Likewise.
44260         * iconvdata/uhc.c : Likewise.
44261         * iconvdata/unicode.c (gconv_end): Likewise.
44262         * iconvdata/utf-16.c (gconv_end): Likewise.
44263         * iconvdata/utf-32.c (gconv_end): Likewise.
44264         * iconvdata/utf-7.c (base64): Likewise.
44265         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
44266         * iconv/gconv_close.c (__gconv_close): Likewise.
44267         * iconv/gconv_open.c (__gconv_open): Likewise.
44268         * iconv/gconv_simple.c (internal_ucs4_loop_single)
44269         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
44270         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
44271         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
44272         (ucs4le_internal_loop_single): Likewise.
44273         * iconv/iconv.c (iconv): Likewise.
44274         * iconv/iconv_close.c: Likewise.
44275         * iconv/loop.c (SINGLE): Likewise.
44276         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
44277         * include/atomic.h: Likewise.
44278         * inet/inet6_option.c (option_alloc): Likewise.
44279         * intl/bindtextdom.c (set_binding_values): Likewise.
44280         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
44281         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
44282         * intl/localealias.c (read_alias_file): Likewise.
44283         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
44284         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
44285         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
44286         * libio/fmemopen.c (fmemopen): Likewise.
44287         * libio/iofgets.c (_IO_fgets): Likewise.
44288         * libio/iofgets_u.c (fgets_unlocked): Likewise.
44289         * libio/iofgetws.c (fgetws): Likewise.
44290         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
44291         * libio/iogetdelim.c (_IO_getdelim): Likewise.
44292         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
44293         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
44294         * locale/findlocale.c (_nl_find_locale): Likewise.
44295         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
44296         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
44297         Likewise.
44298         * locale/setlocale.c (setlocale): Likewise.
44299         * login/programs/pt_chown.c (main): Likewise.
44300         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
44301         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
44302         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
44303         (mmap, mmap64, mremap, munmap): Likewise.
44304         * math/e_exp2l.c: Likewise.
44305         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
44306         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
44307         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
44308         * math/s_catan.c (__catan): Likewise.
44309         * math/s_catanf.c (__catanf): Likewise.
44310         * math/s_catanh.c (__catanh): Likewise.
44311         * math/s_catanhf.c (__catanhf): Likewise.
44312         * math/s_catanhl.c (__catanhl): Likewise.
44313         * math/s_catanl.c (__catanl): Likewise.
44314         * math/s_ccosh.c (__ccosh): Likewise.
44315         * math/s_ccoshf.c (__ccoshf): Likewise.
44316         * math/s_ccoshl.c (__ccoshl): Likewise.
44317         * math/s_cexp.c (__cexp): Likewise.
44318         * math/s_cexpf.c (__cexpf): Likewise.
44319         * math/s_cexpl.c (__cexpl): Likewise.
44320         * math/s_clog10.c (__clog10): Likewise.
44321         * math/s_clog10f.c (__clog10f): Likewise.
44322         * math/s_clog10l.c (__clog10l): Likewise.
44323         * math/s_clog.c (__clog): Likewise.
44324         * math/s_clogf.c (__clogf): Likewise.
44325         * math/s_clogl.c (__clogl): Likewise.
44326         * math/s_csin.c (__csin): Likewise.
44327         * math/s_csinf.c (__csinf): Likewise.
44328         * math/s_csinh.c (__csinh): Likewise.
44329         * math/s_csinhf.c (__csinhf): Likewise.
44330         * math/s_csinhl.c (__csinhl): Likewise.
44331         * math/s_csinl.c (__csinl): Likewise.
44332         * math/s_csqrt.c (__csqrt): Likewise.
44333         * math/s_csqrtf.c (__csqrtf): Likewise.
44334         * math/s_csqrtl.c (__csqrtl): Likewise.
44335         * math/s_ctan.c (__ctan): Likewise.
44336         * math/s_ctanf.c (__ctanf): Likewise.
44337         * math/s_ctanh.c (__ctanh): Likewise.
44338         * math/s_ctanhf.c (__ctanhf): Likewise.
44339         * math/s_ctanhl.c (__ctanhl): Likewise.
44340         * math/s_ctanl.c (__ctanl): Likewise.
44341         * math/w_pow.c: Likewise.
44342         * math/w_powf.c: Likewise.
44343         * math/w_powl.c: Likewise.
44344         * math/w_scalb.c (sysv_scalb): Likewise.
44345         * math/w_scalbf.c (sysv_scalbf): Likewise.
44346         * math/w_scalbl.c (sysv_scalbl): Likewise.
44347         * misc/error.c (error_tail): Likewise.
44348         * misc/pselect.c (__pselect): Likewise.
44349         * nis/nis_callback.c (__nis_create_callback): Likewise.
44350         * nis/nis_call.c (__nisfind_server): Likewise.
44351         * nis/nis_creategroup.c (nis_creategroup): Likewise.
44352         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
44353         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
44354         * nis/nis_getservlist.c (nis_getservlist): Likewise.
44355         * nis/nis_lookup.c (nis_lookup): Likewise.
44356         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
44357         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
44358         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
44359         * nis/nis_xdr.c (xdr_endpoint): Likewise.
44360         * nis/nss_compat/compat-grp.c (getgrent_next_file)
44361         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
44362         * nis/nss_compat/compat-initgroups.c (add_group)
44363         (internal_getgrent_r): Likewise.
44364         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
44365         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
44366         * nis/nss_compat/compat-spwd.c (getspent_next_file)
44367         (internal_getspnam_r): Likewise.
44368         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
44369         (_nss_nis_getaliasbyname_r): Likewise.
44370         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
44371         (_nss_nis_getntohost_r): Likewise.
44372         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
44373         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
44374         (_nss_nis_getgrgid_r): Likewise.
44375         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
44376         (internal_nis_gethostent_r, internal_gethostbyname2_r)
44377         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
44378         (_nss_nis_gethostbyname4_r): Likewise.
44379         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
44380         (initgroups_netid): Likewise.
44381         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
44382         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
44383         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
44384         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
44385         (_nss_nis_getprotobynumber_r): Likewise.
44386         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
44387         (_nss_nis_getsecretkey): Likewise.
44388         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
44389         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
44390         (_nss_nis_getpwuid_r): Likewise.
44391         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
44392         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
44393         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
44394         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
44395         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
44396         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
44397         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
44398         Likewise.
44399         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
44400         (_nss_nisplus_getntohost_r): Likewise.
44401         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
44402         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
44403         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
44404         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
44405         Likewise.
44406         * nis/nss_nisplus/nisplus-initgroups.c
44407         (_nss_nisplus_initgroups_dyn): Likewise.
44408         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
44409         (_nss_nisplus_getnetbyaddr_r): Likewise.
44410         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
44411         (_nss_nisplus_getprotobynumber_r): Likewise.
44412         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
44413         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
44414         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
44415         Likewise.
44416         * nis/nss_nisplus/nisplus-service.c
44417         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
44418         (_nss_nisplus_getservbyport_r): Likewise.
44419         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
44420         (_nss_nisplus_getspnam_r): Likewise.
44421         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
44422         Likewise.
44423         * nscd/aicache.c (addhstaiX): Likewise.
44424         * nscd/cache.c (cache_search, prune_cache): Likewise.
44425         * nscd/connections.c (register_traced_file, send_ro_fd)
44426         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
44427         (main_loop_epoll): Likewise.
44428         * nscd/grpcache.c (addgrbyX): Likewise.
44429         * nscd/hstcache.c (addhstbyX): Likewise.
44430         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44431         * nscd/mem.c (gc, mempool_alloc): Likewise.
44432         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
44433         (addinnetgrX): Likewise.
44434         * nscd/nscd-client.h (__nscd_acquire_maplock)
44435         (__nscd_drop_map_ref): Likewise.
44436         * nscd/nscd_getai.c (__nscd_getai): Likewise.
44437         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44438         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
44439         Likewise.
44440         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
44441         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44442         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
44443         (__nscd_get_map_ref): Likewise.
44444         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
44445         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
44446         Likewise.
44447         * nscd/pwdcache.c (addpwbyX): Likewise.
44448         * nscd/selinux.c (preserve_capabilities): Likewise.
44449         * nscd/servicescache.c (addservbyX): Likewise.
44450         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
44451         * posix/fnmatch.c (fnmatch): Likewise.
44452         * posix/getopt.c (_getopt_internal_r): Likewise.
44453         * posix/glob.c (glob, glob_in_dir): Likewise.
44454         * posix/wordexp.c (exec_comm_child): Likewise.
44455         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
44456         (getanswer_r, gaih_getanswer_slice): Likewise.
44457         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
44458         * resolv/res_init.c: Likewise.
44459         * resolv/res_mkquery.c (res_nmkquery): Likewise.
44460         * resolv/res_query.c (__libc_res_nquery): Likewise.
44461         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
44462         Likewise.
44463         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
44464         * stdio-common/perror.c (perror): Likewise.
44465         * stdio-common/printf_fp.c (___printf_fp): Likewise.
44466         * stdio-common/tmpnam.c (tmpnam): Likewise.
44467         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
44468         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
44469         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
44470         Likewise.
44471         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
44472         * stdlib/putenv.c (putenv): Likewise.
44473         * stdlib/setenv.c (__add_to_environ): Likewise.
44474         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
44475         * stdlib/strtol_l.c (INTERNAL): Likewise.
44476         * string/memmem.c (memmem): Likewise.
44477         * string/strerror.c (strerror): Likewise.
44478         * string/strnlen.c (__strnlen): Likewise.
44479         * string/test-memmem.c (simple_memmem): Likewise.
44480         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
44481         * sunrpc/pm_getport.c (__get_socket): Likewise.
44482         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
44483         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
44484         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
44485         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
44486         Likewise.
44487         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
44488         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
44489         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
44490         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
44491         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
44492         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
44493         Likewise.
44494         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
44495         Likewise.
44496         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
44497         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
44498         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
44499         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
44500         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
44501         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
44502         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
44503         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
44504         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
44505         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
44506         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
44507         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
44508         Likewise.
44509         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
44510         Likewise.
44511         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
44512         Likewise.
44513         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
44514         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
44515         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
44516         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
44517         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
44518         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
44519         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
44520         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
44521         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
44522         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
44523         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
44524         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44525         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
44526         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
44527         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44528         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
44529         Likewise.
44530         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
44531         Likewise.
44532         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
44533         Likewise.
44534         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
44535         Likewise.
44536         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44537         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44538         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
44539         Likewise.
44540         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
44541         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
44542         * sysdeps/posix/opendir.c (__opendirat): Likewise.
44543         * sysdeps/posix/sleep.c: Likewise.
44544         * sysdeps/posix/tempname.c: Likewise.
44545         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
44546         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
44547         Likewise.
44548         * sysdeps/powerpc/powerpc32/dl-machine.h
44549         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
44550         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44551         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
44552         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
44553         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
44554         Likewise.
44555         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
44556         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
44557         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44558         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
44559         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44560         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
44561         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
44562         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
44563         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44564         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
44565         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
44566         (elf_machine_lazy_rel): Likewise.
44567         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44568         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
44569         (elf_machine_lazy_rel): Likewise.
44570         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
44571         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
44572         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
44573         * sysdeps/unix/grantpt.c (grantpt): Likewise.
44574         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
44575         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
44576         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
44577         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44578         Likewise.
44579         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
44580         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
44581         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
44582         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
44583         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
44584         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
44585         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
44586         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
44587         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
44588         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
44589         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
44590         Likewise.
44591         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
44592         (__posix_fallocate64_l64): Likewise.
44593         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
44594         (posix_fallocate): Likewise.
44595         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
44596         Likewise.
44597         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44598         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
44599         (getifaddrs_internal): Likewise.
44600         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
44601         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
44602         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
44603         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
44604         * sysdeps/unix/sysv/linux/posix_fallocate64.c
44605         (__posix_fallocate64_l64): Likewise.
44606         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
44607         Likewise.
44608         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
44609         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
44610         (__get_clockfreq): Likewise.
44611         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
44612         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
44613         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
44614         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44615         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44616         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
44617         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
44618         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
44619         Likewise.
44620         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
44621         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
44622         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
44623         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
44624         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44625         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
44626         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
44627         Likewise.
44628         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
44629         (posix_fallocate): Likewise.
44630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44631         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
44632         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
44633         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
44634         (elf_machine_rela, elf_machine_rela_relative)
44635         (elf_machine_lazy_rel): Likewise.
44636         * time/asctime.c (asctime_internal): Likewise.
44637         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
44638         * time/tzset.c (__tzset_parse_tz): Likewise.
44639         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44640         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44641         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
44642         * wcsmbs/wcsmbsload.h: Likewise.
44643
44644         [BZ #15894]
44645         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
44646
44647         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
44648         (arena_get2): Remove THREAD_STATS conditionals.
44649         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
44650         (__malloc_stats, int): Likewise.
44651
44652 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
44653
44654         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
44655         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
44656
44657         * manual/setjmp.texi: Fix typos/grammar errors.
44658
44659         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
44660         Only return early when n is <= 0.  Delete unused return statement.
44661
44662         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
44663         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
44664         * debug/tst-longjmp_chk3.c: New file.
44665
44666         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
44667         (test_main): Replace code with set_fortify_handler call.
44668         * debug/test-strcpy_chk.c: Likewise.
44669         * debug/tst-chk1.c: Likewise.
44670         * debug/tst-longjmp_chk.c: Likewise.
44671         * test-skeleton.c: Include fcntl.h & paths.h
44672         (set_fortify_handler): Define.
44673
44674         * debug/tst-longjmp_chk.c: Add header comment and include
44675         ../test-skeleton.c.
44676         (do_test): Mark static.
44677         (TEST_FUNCTION): Define.
44678
44679         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
44680         (IP_PMTUDISC_INTERFACE): Likewise.
44681         (IP_MULTICAST_IF): Likewise.
44682         (IP_MULTICAST_TTL): Likewise.
44683         (IP_MULTICAST_LOOP): Likewise.
44684         (IP_ADD_MEMBERSHIP): Likewise.
44685         (IP_DROP_MEMBERSHIP): Likewise.
44686         (IP_UNBLOCK_SOURCE): Likewise.
44687         (IP_BLOCK_SOURCE): Likewise.
44688         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
44689         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
44690         (IP_MSFILTER): Likewise.
44691         (MCAST_JOIN_GROUP): Likewise.
44692         (MCAST_BLOCK_SOURCE): Likewise.
44693         (MCAST_UNBLOCK_SOURCE): Likewise.
44694         (MCAST_LEAVE_GROUP): Likewise.
44695         (MCAST_JOIN_SOURCE_GROUP): Likewise.
44696         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44697         (MCAST_MSFILTER): Likewise.
44698         (IP_MULTICAST_ALL): Likewise.
44699         (IP_UNICAST_IF): Likewise.
44700
44701         * timezone/Makefile: Delete $(have-ksh) check.
44702         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
44703         * timezone/tzselect.ksh: Add +x mode bits.
44704
44705         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
44706         (ANON_INODE_FS_MAGIC): Likewise.
44707         (BDEVFS_MAGIC): Likewise.
44708         (BINFMTFS_MAGIC): Likewise.
44709         (BTRFS_TEST_MAGIC): Likewise.
44710         (CRAMFS_MAGIC_WEND): Likewise.
44711         (DEBUGFS_MAGIC): Likewise.
44712         (ECRYPTFS_SUPER_MAGIC): Likewise.
44713         (EXT3_SUPER_MAGIC): Likewise.
44714         (EXT4_SUPER_MAGIC): Likewise.
44715         (FUTEXFS_SUPER_MAGIC): Likewise.
44716         (HOSTFS_SUPER_MAGIC): Likewise.
44717         (HUGETLBFS_MAGIC): Likewise.
44718         (MINIX3_SUPER_MAGIC): Likewise.
44719         (MTD_INODE_FS_MAGIC): Likewise.
44720         (NILFS_SUPER_MAGIC): Likewise.
44721         (OPENPROM_SUPER_MAGIC): Likewise.
44722         (PIPEFS_MAGIC): Likewise.
44723         (PSTOREFS_MAGIC): Likewise.
44724         (QNX6_SUPER_MAGIC): Likewise.
44725         (RAMFS_MAGIC): Likewise.
44726         (REISERFS_SUPER_MAGIC_STRING): Likewise.
44727         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
44728         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
44729         (SECURITYFS_MAGIC): Likewise.
44730         (SELINUX_MAGIC): Likewise.
44731         (SMACK_MAGIC): Likewise.
44732         (SOCKFS_MAGIC): Likewise.
44733         (SQUASHFS_MAGIC): Likewise.
44734         (STACK_END_MAGIC): Likewise.
44735         (TMPFS_MAGIC): Likewise.
44736         (USBDEVICE_SUPER_MAGIC): Likewise.
44737         (V9FS_MAGIC): Likewise.
44738         (XENFS_SUPER_MAGIC): Likewise.
44739         (CRAMFS_MAGIC): Fix typo in comment.
44740         (EXT2_SUPER_MAGIC): Update comment.
44741         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
44742
44743 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
44744
44745         * sysdeps/arm: Move directory from ports/sysdeps/arm.
44746         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
44747         * sysdeps/unix/sysv/linux/arm: Move directory from
44748         ports/sysdeps/unix/sysv/linux/arm.
44749         * README: Update listing for arm-*-linux-gnueabi.
44750
44751         * README: Remove mention of am33.
44752
44753 2014-02-07  Roland McGrath  <roland@hack.frob.com>
44754
44755         * bits/sigset.h (__sigemptyset): Use a statement expression rather
44756         than the comma operator, to avoid "rhs of comma has no effect"
44757         compiler warnings.
44758         (__sigfillset, __sigandset, __sigorset): Likewise.
44759         * include/signal.h (__sigemptyset): Likewise.
44760         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
44761
44762 2014-02-07  Allan McRae  <allan@archlinux.org>
44763
44764         * version.h (RELEASE): Set to "development".
44765         (VERSION): Set to "2.19.90"
44766         * NEWS: Add 2.20 section.
44767
44768 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
44769
44770         [BZ #16529]
44771         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
44772
44773 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44774
44775         * manual/contrib.texi: Update entry for Carlos O'Donell,
44776         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
44777
44778 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
44779
44780         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
44781
44782         * sysdeps/unix/sysv/linux/kernel-features.h
44783         [__LINUX_KERNEL_VERSION >= 0x020621]
44784         (__ASSUME_PROC_PID_TASK_COMM): Define.
44785
44786 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44787
44788         [BZ #16398]
44789         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
44790         conversion when destination buffer does not have enough space.
44791         * libio/tst-ftell-partial-wide.c: New test case.
44792         * libio/Makefile (tests): Add tst-ftell-partial-wide.
44793
44794         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
44795         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
44796         Leonard and Allan McRae.
44797
44798 2014-02-04  David S. Miller  <davem@davemloft.net>
44799
44800         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
44801         32-bit.
44802
44803 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44804
44805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44806         New file
44807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44808         New file
44809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44810         New file.
44811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44812         New file.
44813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44814         New file.
44815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44816         New file.
44817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44818         New file.
44819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44820         New file.
44821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44822         New file.
44823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44824         New file.
44825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44826         New file.
44827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44828         New file.
44829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44830         New file.
44831
44832 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44833
44834         * nptl/shlib-versions: Change powerpc*le start to 2.17.
44835         * shlib-versions: Likewise.
44836
44837 2014-02-04  Roland McGrath  <roland@hack.frob.com>
44838             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44839
44840         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
44841         (abilist-pattern): New variable, set to %-le.abilist.
44842
44843         * Makerules (abilist-pattern): New variable.
44844         (vpath): Use $(abilist-pattern) in place of %.abilist.
44845         (check-abi-% pattern rule): Likewise.
44846         (check-abi, update-abi): Likewise.
44847
44848 2014-02-04  Eric Wong  <normalperson@yhbt.net>
44849
44850         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44851
44852 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
44853
44854         * manual/startup.texi: Add next, previous, and top entries for
44855         the `Program Arguments' and `Environment Variables' nodes.
44856
44857 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
44858
44859         * manual/macros.texi: Add comments before MTASC-safety macros.
44860
44861         * manual/users.texi: Document MTASC-safety properties.
44862
44863         * manual/threads.texi (pthread_key_create, pthread_key_delete)
44864         (pthread_getspecific, pthread_setspecific): Format with
44865         @deftypefun, and add @safety note.
44866         * manual/signal.texi: Move comments that analyze the above
44867         functions to their home place.
44868
44869 2014-02-03  Allan McRae  <allan@archlinux.org>
44870
44871         * po/sl.po: Update Slovenian translation from translation project.
44872
44873 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
44874
44875         * manual/time.texi (timegm): Add missing blank after @c.
44876         Reported by Joseph Myers <joseph@codesourcery.com>.
44877
44878 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
44879
44880         * manual/check-safety.sh: New.
44881         * manual/Makefile ($(objpfx)stamp-summary): Run it.
44882
44883         * manual/terminal.texi: Document MTASC-safety properties.
44884
44885         * manual/filesys.texi: Document MTASC-safety properties.
44886
44887         * manual/errno.texi: Document MTASC-safety properties.
44888
44889         * manual/intro.texi: Document safety identifiers and
44890         conditionals.
44891
44892         * manual/string.texi (wcstok): Fix prototype.
44893         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
44894
44895         * manual/time.texi: Document MTASC-safety properties.
44896
44897         * manual/string.texi: Document MTASC-safety properties.
44898
44899         * manual/threads.texi: Document MTASC-safety properties.
44900
44901         * manual/stdio.texi: Document MTASC-safety properties.
44902
44903         * manual/syslog.texi: Document MTASC-safety properties.
44904
44905         * manual/sysinfo.texi: Document MTASC-safety properties.
44906
44907         * manual/startup.texi: Document MTASC-safety properties.
44908
44909         * manual/socket.texi: Document MTASC-safety properties.
44910
44911         * manual/signal.texi: Document MTASC-safety properties.
44912
44913 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
44914
44915         * manual/setjmp.texi: Document MTASC-safety properties.
44916
44917         * manual/search.texi: Document MTASC-safety properties.
44918
44919         * manual/resource.texi: Document MTASC-safety properties.
44920
44921         * manual/process.texi: Document MTASC-safety properties.
44922
44923         * manual/platform.texi: Document MTASC-safety properties.
44924
44925         * manual/pipe.texi: Document MTASC-safety properties.
44926
44927         * manual/pattern.texi: Document MTASC-safety properties.
44928
44929         * manual/message.texi: Document MTASC-safety properties.
44930
44931         [BZ #12751]
44932         * manual/memory.texi: Document MTASC-safety properties.
44933
44934         * manual/math.texi: Document MTASC-safety properties.
44935
44936         * manual/locale.texi: Document MTASC-safety properties.
44937
44938         * manual/llio.texi: Document MTASC-safety properties.
44939
44940         * manual/libdl.texi: New.
44941
44942         * manual/lang.texi: Document MTASC-safety properties.
44943
44944         * manual/job.texi: Document MTASC-safety properties.
44945
44946         * manual/getopt.texi: Document MTASC-safety properties.
44947
44948         * manual/ctype.texi: Document MTASC-safety properties.
44949
44950 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
44951
44952         [BZ #16046]
44953         * csu/libc-tls.c (static_map): Remove variable.
44954         (__libc_setup_tls): Use main executable's link map for TLS data.
44955         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
44956         casing for LM_ID_BASE and GL(dl_nns).
44957         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
44958         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
44959         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
44960         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
44961         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
44962         member.
44963         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
44964         l_phnum members.
44965
44966 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
44967
44968         * manual/debug.texi: Document MTASC-safety properties.
44969
44970 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
44971
44972         [BZ #16510]
44973         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
44974         of __x86_64__ when disabling x87 inline functions.
44975
44976 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
44977
44978         * manual/charset.texi: Document MTASC-safety properties.
44979
44980         * manual/crypt.texi: Document MTASC-safety properties.
44981
44982         * manual/conf.texi: Document MTASC-safety properties.
44983
44984         * manual/arith.texi: Document MTASC-safety properties.
44985
44986         * manual/argp.texi: Document MTASC-safety properties.
44987
44988         * manual/macros.texi: Introduce macros to document multi
44989         thread, asynchronous signal and asynchronous cancellation
44990         safety properties.
44991         * manual/intro.texi: Introduce the properties themselves.
44992
44993 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44994
44995         * sysdeps/sh/sh4/Makefile: New file.
44996
44997 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
44998
44999         * math/gen-libm-test.pl ($srcdir): New variable.
45000         ($auto_input): Use it.
45001
45002 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45003
45004         [BZ #16506]
45005         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
45006         access beyond array bounds when parsing netgroups file.
45007
45008         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
45009         the old buffer before realloc.
45010
45011 2014-01-27  Allan McRae  <allan@archlinux.org>
45012
45013         * po/fr.po: Update French translation from translation project.
45014
45015 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45016
45017         * sysdeps/sh/libm-test-ulps: Regenerate.
45018
45019 2014-01-24  David S. Miller  <davem@davemloft.net>
45020
45021         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
45022
45023 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45024
45025         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
45026         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
45027
45028 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45029
45030         [BZ #16474]
45031         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
45032         string pointers after reallocation.
45033
45034 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45035
45036         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
45037         __SH4A__ instead of __SH_FPU_ANY__.
45038
45039 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45040
45041         * sysdeps/sh/fpu_control.h: New file.
45042         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
45043         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
45044         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
45045         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
45046         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
45047         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
45048         * sysdeps/sh/sys/ucontext.h: Remove.
45049         * sysdeps/sh/sys: Remove directory.
45050
45051 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45052
45053         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
45054         s390/sys/ucontext.h.
45055         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
45056         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
45057
45058 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
45059
45060         [BZ #15605]
45061         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
45062
45063 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45064
45065         [BZ#16431]
45066         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
45067         Adjust the vDSO correctly for internal calls.
45068         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
45069
45070 2014-01-20  Allan McRae  <allan@archlinux.org>
45071
45072         * po/ca.po: Update Catalan translation from translation project.
45073
45074 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
45075
45076         * sysdeps/s390/sotruss-lib.c: New file.
45077
45078 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45079
45080         [BZ#16430]
45081         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
45082         (__GI___gettimeofday): Alias for a different internal symbol to avoid
45083         local calls issues by not having a PLT stub required for IFUNC calls.
45084         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
45085
45086 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
45087
45088         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
45089         * math/test-fpucw-static.c: Likewise.
45090
45091 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45092
45093         [BZ #16453]
45094         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
45095
45096 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45097
45098         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
45099         implementation for powerpc.
45100
45101 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
45102
45103         [BZ #14782]
45104         * sysdeps/posix/system.c (__libc_system): Do not enable
45105         asynchronous cancellation.
45106
45107 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45108
45109         [BZ #16427]
45110         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
45111         handling only for numbers special also in the IEEE case.
45112
45113 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45114
45115         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45116
45117 2014-01-11  Allan McRae  <allan@archlinux.org>
45118
45119         * po/bg.po: Update Bulgarian translation from translation project.
45120
45121         * po/de.po: Update German translation from translation project.
45122
45123 2014-01-10  Roland McGrath  <roland@hack.frob.com>
45124
45125         * sysdeps/generic/gcc-compat.h: New file.
45126
45127 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45128
45129         * benchtests/asin-inputs: Correct slow inputs.
45130         * benchtests/acos-inputs: Likewise.
45131
45132 2014-01-10  Allan McRae  <allan@archlinux.org>
45133
45134         * po:sv.po: Update Swedish translation from translation project.
45135
45136         * po/vi.po: Update Vietnamese translation from translation project.
45137
45138         * po/eo.po: Update Esperanto translation from translation project.
45139
45140         * po/cs.po: Update Czech translation from translation project.
45141
45142         * po/nl.po: Update Dutch translation from translation project.
45143
45144         * po/pl.po: Update Polish translation from translation project.
45145
45146         * po/ru.po: Update Russian translation from translation project.
45147
45148         * po/uk.po: Update Ukrainian translation from translation project.
45149
45150 2014-01-08  Brooks Moses  <bmoses@google.com>
45151
45152         * elf/dl-load.c: Fix comment typo.
45153
45154 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
45155
45156         * po/header.pot: Rename to...
45157         * po/pot.header: ... this.
45158         * po/Makefile: Use pot.header.
45159
45160 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
45161             Maxim Kuvyrkov  <maxim@kugelworks.com>
45162
45163         [BZ #16394]
45164         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
45165         SRC and DEST against LEN.
45166
45167 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45168
45169         [BZ #16414]
45170         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
45171         implementation.
45172         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
45173
45174 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45175
45176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45177
45178 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
45179
45180         [BZ #16408]
45181         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
45182         for large positive arguments.
45183
45184 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
45185
45186         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45187
45188         * math/auto-libm-test-in: Mark various tests with
45189         xfail-rounding:ldbl-128ibm.
45190         * math/auto-libm-test-out: Regenerated.
45191
45192         [BZ #16407]
45193         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
45194         Increase overflow threshold.
45195
45196 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
45197
45198         [BZ #14286]
45199         * stdio-common/vfprintf.c: Check for integer overflow.
45200
45201 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45202
45203         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
45204         the first argument and return value of __tls_get_addr_internal.
45205
45206 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45207
45208         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
45209         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
45210
45211 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45212
45213         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
45214         * sysdeps/s390/rtld-global-offsets.sym: New file.
45215         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
45216         GLIBC_2.19 symbol.
45217         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
45218         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
45219         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
45220         ... this.
45221         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
45222         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
45223         ... this.
45224         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45225         Regenerate.
45226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45227         Regenerate.
45228         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
45229         halfs of GPRs for high_gprs contexts.
45230         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
45231         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
45232         field.
45233         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
45234         uc_flags field.
45235         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
45236         64 bit versions:
45237         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
45238         for high GPRs (uc_high_gprs) and for future extensions
45239         (__reserved).
45240         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
45241         for future extensions (__reserved).
45242         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
45243         64 bit versions:
45244         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
45245         SC_HIGHGPRS offset definition.
45246         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
45247         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
45248
45249         * Versions.def: Add GLIBC_2.19 for libpthread.
45250         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
45251         siglongjmp for libpthread with GLIBC_2.19 symver.
45252         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
45253         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
45254         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
45255         * sysdeps/s390/__longjmp.c: New file.
45256         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
45257         * sysdeps/s390/longjmp.c: New file.
45258         * sysdeps/s390/setjmp.S: New file.
45259         * sysdeps/s390/sigjmp.S: New file.
45260         * sysdeps/s390/v1-longjmp.c: New file.
45261         * sysdeps/s390/v1-setjmp.h: New file.
45262         * sysdeps/s390/v1-sigjmp.c: New file.
45263         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
45264         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
45265         GLIBC_2.19 version.
45266         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
45267         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
45268         versioned symbols for ____longjmp_chk.
45269         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
45270         Likewise.
45271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45272         Regenerate.
45273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45274         Regenerate.
45275         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45276         Regenerate.
45277         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45278         Regenerate.
45279         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
45280         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
45281         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
45282         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
45283         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
45284         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
45285         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
45286         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
45287         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
45288         * sysdeps/s390/rtld-__longjmp.c: New file.
45289         * sysdeps/s390/rtld-setjmp.S: New file.
45290
45291 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
45292
45293         [BZ #16400]
45294         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45295         Return -__logl (x) for small positive arguments without evaluating
45296         a polynomial.
45297
45298 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
45299
45300         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
45301         Rename to ...
45302         (__ptrace_peeksiginfo_args): ... this.
45303         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45304         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45305         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45306
45307 2014-01-06  Allan McRae  <allan@archlinux.org>
45308
45309         * inet/netinet/in.h: Fix typo in comment.
45310
45311 2014-01-05  Andreas Jaeger  <aj@suse.de>
45312
45313         * sysdeps/i386/fpu/libm-test-ulps: Update.
45314
45315 2014-01-05  Allan McRae  <allan@archlinux.org>
45316
45317         * po/libc.pot: Regenerated.
45318
45319         * malloc/memusagestat.c: Fix gettext call formatting.
45320
45321 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
45322
45323         * nscd/nscd.c: Improve usage() output.
45324
45325 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
45326
45327         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
45328         * sysdeps/unix/sysv/linux/configure: Regenerated.
45329         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
45330         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
45331
45332 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45333
45334         [BZ #16390]
45335         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
45336         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
45337
45338 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45339
45340         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
45341         extra tokens at end of #undef directive.
45342         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
45343         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
45344         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
45345
45346 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45347
45348         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45349
45350         * math/auto-libm-test-in: Mark various tests with
45351         xfail-rounding:ldbl-128ibm.
45352         * math/auto-libm-test-out: Regenerated.
45353
45354 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
45355
45356         [BZ #16386]
45357         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
45358         numbers with subnormal high part when calculating exponent.
45359
45360         [BZ #16385]
45361         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
45362         fabs.
45363
45364         [BZ #16384]
45365         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
45366         M_LN2l.
45367         (__ieee754_acoshl): Use __log1pl not __log1p.
45368
45369 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
45370
45371         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
45372         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
45373         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
45374         (grow_heap, heap_trim, _int_new_arena, get_free_list)
45375         (reused_arena, arena_get2): Convert to GNU style.
45376         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
45377         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
45378         (memalign_check, __malloc_set_state): Likewise.
45379         * malloc/mallocbug.c (main): Likewise.
45380         * malloc/malloc.c (__malloc_assert, malloc_init_state)
45381         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
45382         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
45383         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
45384         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
45385         (__posix_memalign, malloc_info): Likewise.
45386         * malloc/malloc.h: Likewise.
45387         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
45388         (mallochook, memalignhook, reallochook, mabort): Likewise.
45389         * malloc/mcheck.h: Likewise.
45390         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
45391         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
45392         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
45393         * malloc/morecore.c (__default_morecore): Likewise.
45394         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
45395         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
45396         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
45397         (print_and_abort): Likewise.
45398         * malloc/obstack.h: Likewise.
45399         * malloc/set-freeres.c (__libc_freeres): Likewise.
45400         * malloc/tst-mallocstate.c (main): Likewise.
45401         * malloc/tst-mtrace.c (main): Likewise.
45402         * malloc/tst-realloc.c (do_test): Likewise.
45403
45404 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45405
45406         [BZ #16366]
45407         * nscd/netgroupcache.c (do_notfound): New function.
45408         (addgetnetgrentX): Use it.
45409
45410         [BZ # 16365]
45411         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
45412         NSS_STATUS_NOTFOUND.
45413
45414 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
45415
45416         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45418
45419 2014-01-01  Allan McRae  <allan@archlinux.org>
45420
45421         * scripts/update-copyrights: Update configure input file suffix.
45422
45423         * NEWS: Update copyright year.
45424         * catgets/gencat.c: Likewise.
45425         * csu/version.c: Likewise.
45426         * debug/catchsegv.sh: Likewise.
45427         * debug/pcprofiledump.c: Likewise.
45428         * debug/xtrace.sh: Likewise.
45429         * elf/ldconfig.c: Likewise.
45430         * elf/ldd.bash.in: Likewise.
45431         * elf/pldd.c: Likewise.
45432         * elf/sotruss.ksh: Likewise.
45433         * elf/sprof.c: Likewise.
45434         * iconv/iconv_prog.c: Likewise.
45435         * iconv/iconvconfig.c: Likewise.
45436         * locale/programs/locale.c: Likewise.
45437         * locale/programs/localedef.c: Likewise.
45438         * login/programs/pt_chown.c: Likewise.
45439         * malloc/memusage.sh: Likewise.
45440         * malloc/memusagestat.c: Likewise.
45441         * malloc/mtrace.pl: Likewise.
45442         * manual/libc.texinfo: Likewise.
45443         * nscd/nscd.c: Likewise.
45444         * nss/getent.c: Likewise.
45445         * nss/makedb.c: Likewise.
45446         * posix/getconf.c: Likewise.
45447         * scripts/test-installation.pl: Likewise.
45448
45449         * All files with FSF copyright notices: Update copyright dates
45450         using scripts/update-copyrights.
45451         * intl/plural.c: Regenerated.
45452         * locale/programs/charmap-kw.h: Likewise.
45453         * locale/programs/locfile-kw.h: Likewise.
45454
45455 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
45456
45457         * sysdeps/unix/sysv/linux/configure: Regenerated.
45458         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
45459         the linux/fanotify.h header.
45460         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
45461         HAVE_LINUX_FANOTIFY_H is defined.
45462
45463 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
45464
45465         * benchtests/cos-inputs: New inputs.
45466         * benchtests/sin-inputs: Likewise.
45467
45468         * benchtests/atan-inputs: New inputs. Fix name of multiple
45469         precision fallback inputs.
45470
45471         * benchtests/atanh-inputs: New inputs.
45472         * benchtests/tanh-inputs: Likewise.
45473
45474         * benchtests/acosh-inputs: New inputs.
45475         * benchtests/asinh-inputs: Likewise.
45476
45477         * benchtests/cosh-inputs: New inputs.
45478         * benchtests/sinh-inputs: Likewise.
45479
45480         * benchtests/acos-inputs: Add more inputs.
45481         * benchtests/asin-inputs: Likewise.
45482
45483 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
45484
45485         [BZ #16375]
45486         * manual/arith.texi: Fix spelling.
45487         * manual/charset.texi: Likewise.
45488         * manual/errno.texi: Likewise.
45489         * manual/filesys.texi: Likewise.
45490         * manual/lang.texi: Likewise.
45491         * manual/llio.texi: Likewise.
45492         * manual/locale.texi: Likewise.
45493         * manual/message.texi: Likewise.
45494         * manual/resource.texi: Likewise.
45495         * manual/search.texi: Likewise.
45496         * manual/setjmp.texi: Likewise.
45497         * manual/stdio.texi: Likewise.
45498         * manual/string.texi: Likewise.
45499         * manual/sysinfo.texi: Likewise.
45500         * manual/time.texi: Likewise.
45501
45502 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
45503
45504         * po/sl.po: New file.
45505
45506 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
45507
45508         * .gitignore: Add core/.gdbinit/.gdb_history.
45509
45510 2013-12-27  Allan McRae  <allan@archlinux.org>
45511
45512         [BZ #16369]
45513         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
45514         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
45515
45516 2013-12-24  Brooks Moses  <bmoses@google.com>
45517
45518         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
45519         all compilers that claim C++98 compliance, not just GCC.
45520         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
45521         Likewise.
45522
45523 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45524
45525         * NEWS: Restore accidentally deleted bug-fix entries.
45526
45527 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45528             Ondřej Bílka  <neleai@seznam.cz>
45529
45530         [BZ #15073]
45531         * malloc/malloc.c (_int_free): Perform sanity check only if we
45532         have_lock.
45533
45534 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
45535
45536         [BZ #12986]
45537         * manual/stdio.texi (String Input Conversions): Clarify that character
45538         classes are not supported.
45539
45540 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45541
45542         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45543
45544 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
45545
45546         [BZ #16337]
45547         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45548         Calculate results for small negative arguments directly rather
45549         than using reflection formula with special underflow handling.
45550
45551         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
45552         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
45553         sysdeps/unix/bsd/bsd4.4/syscalls.list.
45554         (fchflags): Likewise.
45555         (revoke): Likewise.
45556         (setlogin): Likewise.
45557         (sigaltstack): Likewise.
45558         (wait4): Likewise.
45559         (sigblock): Remove.
45560         (sigsetmask): Likewise.
45561         (wait3): Likewise.
45562         (waitpid): Likewise.
45563         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
45564         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
45565         file.
45566         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
45567         * sysdeps/unix/bsd/Makefile: ... here.
45568         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
45569         * sysdeps/unix/bsd/Versions: ... here.
45570         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
45571         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
45572         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
45573         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
45574         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
45575         * sysdeps/unix/bsd/sigblock.c: ... here.
45576         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
45577         * sysdeps/unix/bsd/sigsetmask.c: ... here.
45578         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
45579         * sysdeps/unix/bsd/sigvec.c: ... here.
45580         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
45581         * sysdeps/unix/bsd/tcdrain.c: ... here.
45582         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
45583         * sysdeps/unix/bsd/tcgetattr.c: ... here.
45584         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
45585         * sysdeps/unix/bsd/tcsetattr.c: ... here.
45586         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
45587         * sysdeps/unix/bsd/wait.c: ... here.
45588         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
45589         * sysdeps/unix/bsd/wait3.c: ... here.
45590         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
45591         * sysdeps/unix/bsd/waitpid.c: ... here.
45592
45593 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
45594
45595         [BZ #16356]
45596         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
45597         round-to-nearest for [!USE_AS_EXPM1L].
45598         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
45599         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
45600         more tests of exp and exp10.  Expect some exp10 tests to miss
45601         exceptions or fail in directed rounding modes.
45602         * math/auto-libm-test-out: Regenerated.
45603         * math/libm-test.inc (exp10_tonearest_test_data): New array.
45604         (exp10_test_tonearest): New function.
45605         (exp10_towardzero_test_data): New array.
45606         (exp10_test_towardzero): New function.
45607         (exp10_downward_test_data): New array.
45608         (exp10_test_downward): New function.
45609         (exp10_upward_test_data): New array.
45610         (exp10_test_upward): New function.
45611         (main): Call the new functions.
45612         * sysdeps/i386/fpu/libm-test-ulps: Update.
45613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45614
45615 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
45616
45617         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
45618         asinh, atan, atan2, atanh, cbrt, cos and cosh.
45619         * math/auto-libm-test-out: Regenerated.
45620         * math/libm-test.inc (acosh_test_data): Add more tests.
45621         (atanh_test_data): Likewise.
45622         (ceil_test_data): Likewise.
45623         (copysign_test_data): Likewise.
45624         * sysdeps/i386/fpu/libm-test-ulps: Update.
45625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45626
45627         * timezone/checktab.awk: Update from tzcode 2013i.
45628         * timezone/private.h: Likewise.
45629         * timezone/scheck.c: Likewise.
45630         * timezone/tzfile.h: Likewise.
45631         * timezone/tzselect.ksh: Likewise.
45632         * timezone/zdump.c: Likewise.
45633         * timezone/zic.c: Likewise.
45634
45635         * math/auto-libm-test-in: Add tests of cpow.
45636         * math/auto-libm-test-out: Regenerated.
45637         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
45638         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45639         mpc_cc_c.
45640         (func_calc_desc): Add mpc_cc_c union field.
45641         (test_functions): Add cpow.
45642         (special_fill_2pi): New function.
45643         (special_real_inputs): Add 2pi.
45644         (calc_generic_results): Handle mpc_cc_c.
45645         * sysdeps/i386/fpu/libm-test-ulps: Update.
45646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45647
45648         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
45649         csqrt, ctan and ctanh.
45650         * math/auto-libm-test-out: Regenerated.
45651         * math/libm-test.inc (TEST_COND_x86_64): New macro.
45652         (TEST_COND_x86): Likewise.
45653         (ccos_test_data): Use AUTO_TESTS_c_c.
45654         (ccosh_test_data): Likewise.
45655         (cexp_test_data): Likewise.
45656         (clog_test_data): Likewise.
45657         (csqrt_test_data): Likewise.
45658         (ctan_test_data): Likewise.
45659         (ctan_tonearest_test_data): Likewise.
45660         (ctan_towardzero_test_data): Likewise.
45661         (ctan_downward_test_data): Likewise.
45662         (ctan_upward_test_data): Likewise.
45663         (ctanh_test_data): Likewise.
45664         (ctanh_tonearest_test_data): Likewise.
45665         (ctanh_towardzero_test_data): Likewise.
45666         (ctanh_downward_test_data): Likewise.
45667         (ctanh_upward_test_data): Likewise.
45668         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45669         mpc_c_c.
45670         (func_calc_desc): Add mpc_c_c union field.
45671         (FUNC_mpc_c_c): New macro.
45672         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
45673         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
45674         ctanh.
45675         (special_fill_min_subnorm_p120): New function.
45676         (special_real_inputs): Add min_subnorm_p120.
45677         (calc_generic_results): Handle mpc_c_c.
45678         * sysdeps/i386/fpu/libm-test-ulps: Update.
45679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45680
45681 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45682
45683         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
45684         (do_sin_slow): New functions.
45685         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
45686         (cslow2, csloww1, csloww2): Use the new functions.
45687
45688         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
45689         Use M to change sign of result instead of X.  Assume X is
45690         positive.
45691         (csloww1): Likewise.
45692         (__sin): Adjust.
45693         (__cos): Adjust.
45694
45695         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
45696         arguments A and DA.
45697         (__sin): Adjust.
45698         (__cos): Likewise.
45699
45700         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
45701         (__cos): Likewise.
45702         (sloww1): Don't adjust sign of DX.
45703         (csloww1): Likewise.
45704         (sloww2): Use X directly and don't adjust sign of DX.
45705         (csloww2): Likewise.
45706
45707 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45708
45709         * math/auto-libm-test-in: Add tests of cabs and carg.
45710         * math/auto-libm-test-out: Regenerated.
45711         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
45712         (carg_test_data): Likewise.
45713         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45714         mpc_c_f.
45715         (func_calc_desc): Add mpc_c_f union field.
45716         (test_functions): Add cabs and carg.
45717         (calc_generic_results): Handle mpc_c_f.
45718
45719         * sysdeps/powerpc/powerpc32/libgcc-compat.S
45720         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
45721         as a macro and a compat symbol.
45722         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
45723         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
45724         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
45725         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
45726         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
45727         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
45728         not use .hidden.
45729         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
45730         Likewise.
45731         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
45732         Likewise.
45733         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
45734         Likewise.
45735         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
45736         Likewise.
45737         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
45738         Likewise.
45739         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
45740         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
45741         from GLIBC_2.3.2.
45742
45743 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45744
45745         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45746
45747 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45748
45749         * manual/texinfo.tex: Update to version 2013-11-26.10 with
45750         trailing whitespace removed.
45751         * scripts/config.guess: Update to version 2013-11-29.
45752         * scripts/config.sub: Update to version 2013-10-01.
45753
45754         * math/auto-libm-test-in: Add tests of sincos.
45755         * math/auto-libm-test-out: Regenerated.
45756         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
45757         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45758         mpfr_f_11.
45759         (func_calc_desc): Add mpfr_f_11 union field.
45760         (test_functions): Add sincos.
45761         (calc_generic_results): Handle mpfr_f_11.
45762         * sysdeps/i386/fpu/libm-test-ulps: Update.
45763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45764
45765 2013-12-19  Andreas Schwab  <schwab@suse.de>
45766
45767         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
45768         CALL_MCOUNT.
45769         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
45770         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
45771         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
45772
45773 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45774
45775         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
45776         * sysdeps/i386/fpu/libm-test-ulps: Update.
45777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45778
45779         [BZ #16293]
45780         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
45781         round-to-nearest mode when using frndint.
45782         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
45783         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
45784         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
45785         Likewise.
45786         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
45787         sinh test to fail.
45788         * math/auto-libm-test-out: Regenerated.
45789         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
45790         (TEST_COND_x86): Likewise.
45791         (expm1_tonearest_test_data): New array.
45792         (expm1_test_tonearest): New function.
45793         (expm1_towardzero_test_data): New array.
45794         (expm1_test_towardzero): New function.
45795         (expm1_downward_test_data): New array.
45796         (expm1_test_downward): New function.
45797         (expm1_upward_test_data): New array.
45798         (expm1_test_upward): New function.
45799         (main): Run the new test functions.
45800         * sysdeps/i386/fpu/libm-test-ulps: Update.
45801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45802
45803         * include/features.h: Update comment documenting feature test
45804         macros.  Mention _DEFAULT_SOURCE in comment.
45805         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
45806         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
45807         _BSD_SOURCE and _SVID_SOURCE.
45808         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
45809         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
45810         !_SVID_SOURCE]: Likewise.
45811         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45812         (__USE_POSIX_IMPLICITLY): Define.
45813         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45814         (_POSIX_SOURCE): Undefine and redefine.
45815         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45816         (_POSIX_C_SOURCE): Likewise.
45817         * manual/creature.texi (_DEFAULT_SOURCE): Document.
45818         (Feature Test Macros): Update documentation of default features.
45819
45820 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45821
45822         * benchtests/Makefile: Add bench-strtok.
45823         * benchtests/bench-strtok.c: New file: strtok benchtest.
45824
45825 2013-12-19  Allan McRae  <allan@archlinux.org>
45826
45827         * manual/install.texi: Suppress menu for plain text output.
45828         * INSTALL: Regenerated.
45829
45830 2013-12-18  Brooks Moses  <bmoses@google.com>
45831
45832         [BZ #15846]
45833         * misc/getauxval.c: Include errno.h.
45834         (__getauxval): Set errno to ENOENT if the requested type is not
45835         found.
45836         * misc/sys/auxv.h (getauxval): Document that it may set errno;
45837         don't declare with __attribute_const__.
45838         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
45839         * manual/startup.texi: Document that getauxval sets errno.
45840
45841 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45842
45843         * math/auto-libm-test-in: Add tests of jn and yn.
45844         * math/auto-libm-test-out: Regenerated.
45845         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
45846         (yn_test_data): Likewise.
45847         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45848         mpfr_if_f.
45849         (func_calc_desc): Add mpfr_if_f union field.
45850         (FUNC_mpfr_if_f): New macro.
45851         (test_functions): Add jn and yn.
45852         (calc_generic_results): Assert type of second input for
45853         mpfr_ff_f.  Handle mpfr_if_f.
45854         (output_for_one_input_case): Disable all checking for arguments
45855         fitting floating-point types in case of an integer argument.
45856         * sysdeps/i386/fpu/libm-test-ulps: Update.
45857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45858
45859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
45860         Don't expect fegetround reference in libm.so.
45861
45862 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45863
45864         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
45865         $(config-cflags-nofma).
45866
45867 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45868
45869         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
45870         * math/auto-libm-test-out: Regenerated.
45871
45872         [BZ #16338]
45873         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
45874         to determine exponent and adjust argument to have exponent of -1.
45875         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
45876         log2.
45877         * math/auto-libm-test-out: Regenerated.
45878         * sysdeps/i386/fpu/libm-test-ulps: Update.
45879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45880
45881 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
45882
45883         * manual/probes.texi: Remove cases when per-thread arenas are
45884         disabled.
45885
45886 2013-12-18  Andreas Schwab  <schwab@suse.de>
45887
45888         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
45889         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
45890         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
45891         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
45892         * sysdeps/i386/i686/multiarch/Makefile: Update.
45893         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
45894
45895 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45896
45897         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
45898         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
45899
45900 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
45901
45902         [BZ #15968]
45903         Support TZ transition times < 00:00:00.
45904         This is needed for version-3 tz-format files; it supports time
45905         stamps past 2037 for America/Godthab (the only entry in the tz
45906         database for which this change is relevant).
45907         * manual/time.texi (TZ Variable): Document transition times
45908         from -167:59:59 through -00:00:01.
45909         * time/tzset.c (tz_rule): Time of day is now signed.
45910         (__tzset_parse_tz): Parse negative time of day.
45911
45912         Document TZ transition times >= 25:00:00.
45913         * manual/time.texi (TZ Variable): Document transition times from
45914         25:00:00 through 167:59:59.  These are already supported, and this
45915         support will help with version-3 tz-format files.
45916
45917         * manual/time.texi (TZ Variable): Modernize North America example
45918         to reflect current (i.e., 2007-and-later) daylight saving rules.
45919
45920         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
45921
45922 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45923
45924         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
45925         * sysdeps/unix/bsd/bits/stat.h: Likewise.
45926         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
45927         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
45928         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
45929         * sysdeps/unix/bsd/bsdstat.h: Likewise.
45930         * sysdeps/unix/bsd/clock.c: Likewise.
45931         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
45932         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
45933         * sysdeps/unix/bsd/init-posix.c: Likewise.
45934         * sysdeps/unix/bsd/poll.c: Likewise.
45935         * sysdeps/unix/bsd/ptsname.c: Likewise.
45936         * sysdeps/unix/bsd/seekdir.c: Likewise.
45937         * sysdeps/unix/bsd/setegid.c: Likewise.
45938         * sysdeps/unix/bsd/seteuid.c: Likewise.
45939         * sysdeps/unix/bsd/setgid.c: Likewise.
45940         * sysdeps/unix/bsd/setrgid.c: Likewise.
45941         * sysdeps/unix/bsd/setruid.c: Likewise.
45942         * sysdeps/unix/bsd/setsid.c: Likewise.
45943         * sysdeps/unix/bsd/setuid.c: Likewise.
45944         * sysdeps/unix/bsd/sigaction.c: Likewise.
45945         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
45946         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
45947         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
45948         * sysdeps/unix/bsd/telldir.c: Likewise.
45949         * sysdeps/unix/bsd/times.c: Likewise.
45950         * sysdeps/unix/bsd/usleep.c: Likewise.
45951
45952         * misc/Makefile (install-lib): Remove libbsd-compat.a.
45953         ($(objpfx)libbsd-compat.a): Remove rule.
45954
45955         * include/features.h (__FAVOR_BSD): Do not define.
45956         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
45957         features conflicting with POSIX.
45958         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
45959         (_BSD_SOURCE): Remove description of not being a subset of other
45960         feature test macros.
45961         * manual/job.texi (getpgrp): Do not document BSD version.
45962         (getpgid): Do not document by reference to BSD getpgrp.
45963         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
45964         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
45965         * signal/signal.h [__FAVOR_BSD]: Likewise.
45966         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
45967         instead of making contents conditional on [__FAVOR_BSD].
45968         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
45969
45970 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45971
45972         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45973
45974 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45975
45976         [BZ #16314]
45977         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
45978         values below 2**-450, not 2**-500.
45979         * math/auto-libm-test-in: Don't allow spurious underflow from
45980         hypot.
45981         * math/auto-libm-test-out: Regenerated.
45982
45983         [BZ #16316]
45984         [BZ #16330]
45985         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
45986         values of ha and hb and sort them after adjusting subnormal
45987         arguments.
45988         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
45989         Likewise.
45990         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
45991         values of ea and eb and sort them after adjusting subnormal
45992         arguments.
45993         * math/auto-libm-test-in: Do not expect some hypot tests of
45994         subnormals to fail.  Add more hypot tests.
45995         * math/auto-libm-test-out: Regenerated.
45996
45997 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45998
45999         [BZ #13304]
46000         * sysdeps/sh/s_fma.c: New file.
46001         * sysdeps/sh/s_fmaf.c: New file.
46002         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
46003         version.
46004         * sysdeps/sh/Implies: Add sh/soft-fp.
46005
46006 2013-12-16  Roland McGrath  <roland@hack.frob.com>
46007
46008         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
46009         level of indirection to members `objname', `errstring', `malloced'.
46010         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
46011         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
46012         it as the __longjmp argument (just pass 1 instead).
46013         (_dl_catch_error): Initialize C with argument pointers and address of
46014         volatile local ERRCODE rather than copying values out of C at return.
46015
46016 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
46017
46018         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
46019         * math/auto-libm-test-out: Regenerated.
46020         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
46021         (hypot_test_data): Likewise.
46022         (pow_test_data): Likewise.
46023         (pow_tonearest_test_data): Likewise.
46024         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46025         mpfr_ff_f.
46026         (func_calc_desc): Add mpfr_ff_f union field.
46027         (FUNC_mpfr_ff_f): New macro.
46028         (test_functions): Add atan2, hypot and pow.
46029         (special_fill_min): New function.
46030         (special_fill_minus_min): Likewise.
46031         (special_fill_min_subnorm): Likewise.
46032         (special_fill_minus_min_subnorm): Likewise.
46033         (special_real_inputs): Add min, -min, min_subnorm and
46034         -min_subnorm.
46035         (calc_generic_results): Handle mpfr_ff_f.
46036         * sysdeps/i386/fpu/libm-test-ulps: Update.
46037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46038
46039 2013-12-16  Will Newton  <will.newton@linaro.org>
46040
46041         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
46042         (Aligned Memory Blocks): Add documentation for aligned_alloc
46043         and suggest it as an alternative to posix_memalign.
46044         (Hooks for Malloc): Document __memalign_hook is also called
46045         for aligned_alloc.  (Summary of Malloc): Add summary for
46046         aligned alloc.  Document __memalign_hook is also called
46047         for aligned_alloc.
46048
46049 2013-12-16  Will Newton  <will.newton@linaro.org>
46050
46051         * manual/memory.texi (Malloc Examples): Clarify default
46052         alignment documentation.  Suggest posix_memalign rather
46053         than memalign or valloc.
46054         (Aligned Memory Blocks): Remove suggestion to use memalign
46055         or valloc.  Remove obsolete comment about BSD.
46056         Document memalign errno values and mark the function obsolete.
46057         Document posix_memalign returned error codes.  Mark valloc
46058         as obsolete.  (Hooks for Malloc): __memalign_hook is also
46059         called for posix_memalign and valloc.
46060         (Summary of Malloc): Add posix_memalign to function summary.
46061         __memalign_hook is also called for posix_memalign and valloc.
46062
46063 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
46064
46065         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
46066         TAYLOR_SIN.
46067         (__sin): Adjust.
46068         (__cos): Likewise.
46069         (sloww): Use mynumber union.  Expand ternary operator into
46070         if-else statements.
46071         (cslow): use mynumber union.
46072
46073 2013-12-16  Allan McRae  <allan@archlinux.org>
46074
46075         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
46076         * configure: Regenerated.
46077
46078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
46079
46080         [BZ #14120]
46081         * configure.ac: Added --enable-maintainer-mode. Check for
46082         autoconf when enabled.
46083         * configure: Regenerated.
46084
46085         * nscd/nscd.service: New file.
46086         * nscd/nscd.tmpfiles: New file.
46087
46088 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
46089
46090         [BZ #12100]
46091         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
46092         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
46093         * sysdeps/x86_64/multiarch/strstr.c: ... here.
46094         (strstr): Add __strstr_sse2_unaligned ifunc.
46095         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
46096         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
46097         (strcasestr): Remove __strcasestr_sse42 ifunc.
46098         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
46099         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
46100         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
46101
46102 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46103
46104         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
46105         * sysdeps/sh/bits/fenv.h: ... here.
46106         * sysdeps/sh/sh4/fpu/bits: Remove directory.
46107
46108 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46109
46110         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
46111
46112         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
46113         hypotf multiarch implementations.
46114         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
46115         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
46116         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
46117         multiarch hypot for PPC64.
46118         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
46119         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
46120         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
46121         multiarch hypotf for PPC64.
46122
46123         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
46124         modff multiarch implementations.
46125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
46126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
46127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
46128         multiarch modf for PPC64.
46129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
46130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
46131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
46132         multiarch modff for PPC64.
46133
46134         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
46135         and logl multiarch implementations.
46136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
46137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
46138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
46139         multiarch logb for PPC64.
46140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
46141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
46142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
46143         multiarch logb for PPC64.
46144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
46145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
46146         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
46147         multiarch logb for PPC64.
46148
46149         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
46150         isinff multiarch implementation.
46151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
46152         file.
46153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
46154         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
46155         multiarch isinf for PPC64.
46156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
46157         file.
46158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
46159         multiarch isinff for PPC64.
46160
46161         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
46162         finitef multiarch implementation.
46163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
46164         file.
46165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
46166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
46167         multiarch finite for PPC64.
46168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
46169         file.
46170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
46171         multiarch finitef for PPC64.
46172
46173         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
46174         lrint multiarch implementation.
46175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
46176         file.
46177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
46178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
46179         multiarch llrint for PPC64.
46180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
46181         multiarch lrint for PPC64.
46182
46183         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
46184         copysignf multiarch implementation.
46185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
46186         file.
46187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
46188         file.
46189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
46190         multiarch copysign for PPC64.
46191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
46192         multiarch copysignf for PPC64.
46193
46194         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
46195         multiarch implementation.
46196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
46197         file.
46198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
46199         file.
46200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
46201         file.
46202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
46203         file.
46204         multiarch llround for PPC64.
46205         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
46206         multiarch trunc for PPC64.
46207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
46208         multiarch truncf for PPC64.
46209
46210         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
46211         multiarch implementation.
46212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
46213         file.
46214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
46215         file.
46216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
46217         file.
46218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
46219         file.
46220         multiarch llround for PPC64.
46221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
46222         multiarch round for PPC64.
46223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
46224         multiarch roundf for PPC64.
46225
46226         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
46227         multiarch implementation.
46228         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
46229         file.
46230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
46231         file.
46232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
46233         file.
46234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
46235         file.
46236         multiarch llround for PPC64.
46237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
46238         multiarch floor for PPC64.
46239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
46240         multiarch floorf for PPC64.
46241
46242         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
46243         multiarch implementation.
46244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
46245         file.
46246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
46247         file.
46248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
46249         file.
46250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
46251         file.
46252         multiarch llround for PPC64.
46253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
46254         multiarch ceil for PPC64.
46255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
46256         multiarch ceilf for PPC64.
46257
46258         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
46259         multiarch implementation.
46260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
46261         file.
46262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
46263         file.
46264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
46265         file.
46266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
46267         multiarch llround for PPC64.
46268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
46269         multiarch lround for PPC64.
46270
46271         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
46272         multiarch implementation.
46273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
46274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
46275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
46276         file.
46277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
46278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
46279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
46280         multiarch isnan for PPC64.
46281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
46282         multiarch isnanf for PPC64.
46283
46284         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
46285         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
46286         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
46287         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
46288         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
46289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
46290
46291         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
46292         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
46293         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46294         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46295
46296         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
46297         multiarch implementations.
46298         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46299         (__libc_ifunc_impl_list): Likewise.
46300         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
46301         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
46302         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
46303         multiarch stpcpy for PPC64.
46304
46305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
46306         multiarch implementations.
46307         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46308         (__libc_ifunc_impl_list): Likewise.
46309         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
46310         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
46311         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
46312         multiarch strcpy for PPC64.
46313
46314         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
46315         redefine function name.
46316         (_wordcopy_fwd_dest_aligned): Likewise.
46317         (_wordcopy_bwd_aligned): Likewise.
46318         (_wordcopy_bwd_dest_aligned): Likewise.
46319         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
46320         multiarch implementations.
46321         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46322         (__libc_ifunc_impl_list): Likewise.
46323         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
46324         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
46325         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
46326         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
46327         multiarch wcscpy for PPC64.
46328
46329         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
46330         multiarch implementations.
46331         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46332         (__libc_ifunc_impl_list): Likewise.
46333         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
46334         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
46335         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
46336         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
46337         multiarch wcscpy for PPC64.
46338
46339         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
46340         multiarch implementations.
46341         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46342         (__libc_ifunc_impl_list): Likewise.
46343         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
46344         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
46345         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
46346         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
46347         multiarch wcsrchr for PPC64.
46348
46349         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
46350         multiarch implementations.
46351         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46352         (__libc_ifunc_impl_list): Likewise.
46353         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
46354         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
46355         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
46356         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
46357         multiarch wcschr for PPC64.
46358
46359         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
46360         multiarch implementations.
46361         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46362         (__libc_ifunc_impl_list): Likewise.
46363         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
46364         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
46365         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
46366         multiarch strchrnul for PPC64.
46367
46368         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
46369         implementations.
46370         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46371         (__libc_ifunc_impl_list): Likewise.
46372         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
46373         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
46374         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
46375         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
46376         strchr for PPC64.
46377
46378         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
46379         implementations.
46380         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46381         (__libc_ifunc_impl_list): Likewise.
46382         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
46383         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
46384         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
46385         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
46386         strncmp for PPC64.
46387
46388         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
46389         multiarch implementations.
46390         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46391         (__libc_ifunc_impl_list): Likewise.
46392         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
46393         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
46394         strncasecmp for PPC64.
46395         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
46396         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
46397         multiarch strncasecmp_l for PPC64.
46398
46399         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
46400         multiarch implementations.
46401         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46402         (__libc_ifunc_impl_list): Likewise.
46403         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
46404         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
46405         multiarch strcasecmp for PPC64.
46406         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
46407         file.
46408         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
46409         multiarch strcasecmp_l for PPC64.
46410
46411         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
46412         implementations.
46413         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46414         (__libc_ifunc_impl_list): Likewise.
46415         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
46416         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
46417         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
46418         strnlen for PPC64.
46419
46420         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
46421         implementations.
46422         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46423         (__libc_ifunc_impl_list): Likewise.
46424         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
46425         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
46426         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
46427         strlen for PPC64.
46428
46429         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
46430         implementations.
46431         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46432         (__libc_ifunc_impl_list): Likewise.
46433         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
46434         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
46435         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
46436         rawmemrchr for PPC64.
46437
46438         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
46439         implementation.
46440         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46441         (__libc_ifunc_impl_list): Likewise.
46442         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
46443         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
46444         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
46445         memrchr for PPC64.
46446
46447         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
46448         implementation.
46449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46450         (__libc_ifunc_impl_list): Likewise.
46451         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
46452         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
46453         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
46454         memchr for PPC64.
46455
46456         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
46457         implementation.
46458         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46459         (__libc_ifunc_impl_list): Likewise.
46460         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
46461         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
46462         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
46463         mempcpy for PPC64.
46464
46465         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
46466         avoid cretion of __bzero symbol.
46467         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
46468         Likewise.
46469         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
46470         Likewise.
46471         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
46472         Likewise.
46473         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
46474         multiarch implementations.
46475         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46476         (__libc_ifunc_impl_list): Likewise.
46477         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
46478         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
46479         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
46480         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
46481         bzero for PPC32.
46482         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
46483         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
46484         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
46485         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
46486         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
46487         memset for PPC64.
46488         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
46489
46490         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
46491         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
46492         implementations.
46493         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46494         (__libc_ifunc_impl_list): Likewise.
46495         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
46496         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
46497         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
46498         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
46499         memcmp for PPC64.
46500
46501         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
46502         multiarch for POWER/PPC64.
46503         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
46504         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
46505         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
46506         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
46507         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
46508         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
46509         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
46510         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
46511         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
46512         memcpy for PPC64.
46513
46514         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
46515         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
46516         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
46517         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
46518         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
46519         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
46520         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
46521         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
46522         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
46523         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
46524         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
46525         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
46526         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
46527         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
46528         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
46529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
46530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
46531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
46532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
46533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
46534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
46535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
46536
46537 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46538
46539         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
46540
46541 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46542
46543         * benchtests/Makefile (bench): Add exp2 and log2.
46544         (LDLIBS-bench-exp2): Add -lm.
46545         (LDLIBS-bench-log2): Likewise.
46546         * benchtests/exp2-inputs: New inputs file.
46547         * benchtests/log2-inputs: New inputs file.
46548         * benchtests/log-inputs: Add new inputs.
46549         * benchtests/tan-inputs: Likewise.
46550
46551 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46552
46553         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
46554         definition...
46555         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
46556         (csloww2): ... from here.
46557
46558         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
46559         instead of structures.
46560         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
46561         (POLYNOMIAL): Likewise.
46562         (TAYLOR_SLOW): Likewise.
46563         (__sin): Likewise.
46564         (__cos): Likewise.
46565         (slow1): Likewise.
46566         (slow2): Likewise.
46567         (sloww): Likewise.
46568         (sloww1); Likewise.
46569         (sloww2): Likewise.
46570         (bsloww1): Likewise.
46571         (bsloww2): Likewise.
46572         (cslow2): Likewise.
46573         (csloww): Likewise.
46574         (csloww1): Likewise.
46575         (csloww2): Likewise.
46576
46577 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
46578
46579         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
46580         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
46581         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
46582         * malloc/hooks.c (realloc_check): Likewise.
46583
46584         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
46585         * malloc/arena.c: Remove PER_THREAD conditional.
46586         [!PER_THREAD]: Remove code.
46587         (ptmalloc_unlock_all2): Likewise.
46588         (ptmalloc_init): Likewise.
46589         (_int_new_arena): Likewise.
46590         (arena_get2): Likewise.
46591         * malloc/hooks.c (__malloc_get_state): Likewise.
46592         (__malloc_set_state): Likewise.
46593         * malloc/malloc.c: Likewise.
46594         (struct malloc_state): Likewise.
46595         (struct malloc_par): Likewise.
46596         (__libc_realloc): Likewise.
46597         (__libc_mallopt): Likewise.
46598
46599 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46600
46601         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
46602
46603 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
46604
46605         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
46606         macro to a function.  Check for zero perturb_byte.
46607         (_int_malloc, _int_free): Remove zero perturb_byte checks.
46608
46609         * malloc/malloc.c: (force_reg): Remove.
46610         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
46611         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
46612         force_reg by atomic_forced_read.
46613         * malloc/arena.c (ptmalloc_init): Likewise.
46614         * malloc/hooks.c (top_check): Likewise.
46615
46616 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46617
46618         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46619
46620 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
46621
46622         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46623
46624 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
46625
46626         * math/auto-libm-test-in: Add tests of lgamma.
46627         * math/auto-libm-test-out: Regenerated.
46628         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
46629         (M_LOG_2_SQRT_PIl): Likewise.
46630         (lgamma_test_data): Use AUTO_TESTS_f_f1.
46631         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46632         mpfr_f_f1.
46633         (func_calc_desc): Add mpfr_f_f1 union field.
46634         (ARGS1): New macro.
46635         (ARGS2): Likewise.
46636         (ARGS3): Likewise.
46637         (ARGS4): Likewise.
46638         (RET1): Likewise.
46639         (RET2): Likewise.
46640         (CALC): Likewise.
46641         (FUNC): Likewise.
46642         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
46643         (test_functions): Add lgamma.
46644         (calc_generic_results): Handle mpfr_f_f1.
46645         * sysdeps/i386/fpu/libm-test-ulps: Update.
46646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46647
46648 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46649
46650         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
46651         __mpn_add_n for PowerPC64/POWER7.
46652         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
46653         __mpn_sub_n for PowerPC64/POWER7.
46654
46655         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
46656         __mpn_addmul_1 for PowerPC64.
46657         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
46658         __mpn_submul_1 for PowerPC64.
46659         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
46660         for PowerPC64.
46661         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
46662         for PowerPC64.
46663
46664 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
46665
46666         [BZ #15089]
46667         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
46668
46669 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46670
46671         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
46672
46673         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
46674         add multiarch folders.
46675         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
46676         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
46677         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
46678         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
46679         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
46680         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
46681         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
46682         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
46683         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
46684         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
46685         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
46686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
46687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
46688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
46689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
46690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
46691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
46692
46693         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46694         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
46695         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
46696         New file.
46697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
46698         New file.
46699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
46700         multiarch __ieee754_hypot for PowerPC32.
46701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
46702         New file.
46703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
46704         New file.
46705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
46706         multiarch __ieee754_hypotf for PowerPC32.
46707
46708         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
46709         long_double_symbol only if __logbl is defined.
46710         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
46711         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
46712         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
46713         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
46714         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
46715         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
46716         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
46717         path for implementation.
46718         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
46719         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
46720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
46721         logb, and logbl multiarch implementations for PowerPC32.
46722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
46723         file.
46724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
46725         file.
46726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
46727         multiarch logb for PowerPC32.
46728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
46729         file.
46730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
46731         file.
46732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
46733         multiarch logbf for PowerPC32.
46734         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
46735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
46736         file.
46737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
46738         multiarch logbl implementation for PowerPC32.
46739
46740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
46741         and modff multiarch implementations.
46742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
46743         New file.
46744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
46745         New file.
46746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
46747         multiarch modf for PowerPC32.
46748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
46749         New file.
46750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
46751         New file.
46752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
46753         multiarch modff for PowerPC32.
46754
46755         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
46756         and lrintf multiarch implementations.
46757         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
46758         New file.
46759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
46760         New file.
46761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
46762         multiarch lrint for PowerPC32.
46763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
46764         file: multiarch lrintf for PowerPC32.
46765
46766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
46767         and lroundf multiarch implementations.
46768         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
46769         New file.
46770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
46771         New file.
46772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
46773         New file.
46774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
46775         multiarch lround for PowerPC32.
46776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
46777         file: multiarch lroundf for PowerPC32.
46778
46779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46780         copysign and copysignf multiarch implementations.
46781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
46782         New file.
46783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
46784         New file.
46785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
46786         file: multiarch copysign for PowerPC32.
46787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
46788         file: multiarch copysignf for PowerPC32.
46789
46790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
46791         and truncf multiarch implementations.
46792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
46793         New file.
46794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
46795         file.
46796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
46797         multiarch trunc for PowerPC32.
46798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
46799         New file.
46800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
46801         New file.
46802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
46803         multiarch truncf for PowerPC32.
46804
46805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
46806         and roundf multiarch implementations.
46807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
46808         New file.
46809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
46810         file.
46811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
46812         multiarch round for PowerPC32.
46813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
46814         New file.
46815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
46816         New file.
46817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
46818         multiarch roundf for PowerPC32.
46819
46820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
46821         and floorf multiarch implementations.
46822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
46823         New file.
46824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
46825         file.
46826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
46827         multiarch floor for PowerPC32.
46828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
46829         New file.
46830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
46831         New file.
46832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
46833         multiarch floorf for PowerPC32.
46834
46835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
46836         and ceilf multiarch implementations.
46837         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
46838         New file.
46839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
46840         file.
46841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
46842         multiarch ceil for PowerPC32.
46843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
46844         New file.
46845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
46846         file.
46847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
46848         multiarch ceilf for PowerPC32.
46849
46850         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
46851         is defined.
46852         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
46853         FINITEF is defined.
46854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
46855         and finitef multiarch implementations.
46856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
46857         New file.
46858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
46859         file.
46860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
46861         multiarch finite for PowerPC32.
46862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
46863         New file.
46864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
46865         file: multiarch finitef for PowerPC32.
46866
46867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
46868         and isinff multiarch implementations.
46869         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
46870         file.
46871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
46872         file.
46873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
46874         multiarch isinf for PowerPC32.
46875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
46876         New file.
46877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
46878         multiarch isinff for PowerPC32.
46879
46880         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
46881         alias when __isnan is defined.
46882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
46883         and isnanf multiarch implementations.
46884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
46885         file.
46886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
46887         file.
46888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
46889         file.
46890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
46891         file.
46892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
46893         multiarch isnan for PowerPC32.
46894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
46895         New file.
46896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
46897         New file.
46898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
46899         multiarch isnanf for PowerPC32.
46900
46901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
46902         and sqrtf multiarch implementations.
46903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
46904         file.
46905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
46906         file.
46907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
46908         multiarch sqrt for PowerPC32.
46909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
46910         file.
46911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
46912         file.
46913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
46914         multiarch sqrtf for PowerPC32.
46915
46916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
46917         and llroundf multiarch implementations.
46918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
46919         New file.
46920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
46921         New file.
46922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
46923         New file.
46924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
46925         file: multiarch llround for PowerPC32.
46926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
46927         file: multiarch llroundf for PowerPC32.
46928
46929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
46930         multiarch PowerPC32 fpu implementations.
46931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
46932         New file.
46933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
46934         New file.
46935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
46936         multiarch llrint for PowerPC32.
46937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
46938         New file.
46939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
46940         New file.
46941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
46942         file.
46943
46944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
46945
46946         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
46947         file.
46948         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
46949         file.
46950         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
46951         file.
46952         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
46953         multiarch wordcopy for PPC32.
46954         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46955         wordcopy objects.
46956         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46957         (__libc_ifunc_impl_list): Likewise.
46958         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
46959         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
46960         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
46961         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
46962         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
46963         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
46964
46965         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
46966         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
46967         file.
46968         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
46969         file.
46970         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
46971         file.
46972         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
46973         multiarch wcscpy for PPC32.
46974         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46975         multiarch objects.
46976         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46977         (__libc_ifunc_impl_list): Likewise.
46978         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46979         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46980         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
46981         sysdeps/powerpc/power6/wcscpy.c.
46982
46983         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
46984         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
46985         file.
46986         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
46987         file.
46988         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
46989         file.
46990         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
46991         multiarch wcsrchr for PPC32.
46992         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
46993         multiarch objects.
46994         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46995         (__libc_ifunc_impl_list): Likewise.
46996         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46997         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46998         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
46999         sysdeps/powerpc/power6/wcsrchr.c.
47000
47001         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
47002         file.
47003         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
47004         file.
47005         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
47006         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
47007         multiarch wcschr for PPc32.
47008         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47009         multiarch objects.
47010         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47011         (__libc_ifunc_impl_list): Likewise.
47012         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
47013         * sysdeps/powerpc/power6/wcschr.c: ... to here.
47014         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
47015         sysdeps/powerpc/power6/wcschr.c.
47016
47017         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
47018         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
47019         file.
47020         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
47021         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
47022         file: multiarch strchr for PPC32.
47023         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
47024         multiarch objects.
47025         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47026         (__libc_ifunc_impl_list): Likewise.
47027
47028         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
47029         name.
47030         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
47031         file.
47032         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
47033         file.
47034         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
47035         multiarch strchrnul for PPC32.
47036         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
47037         multiarch objects.
47038         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47039         (__libc_ifunc_impl_list): Likewise.
47040
47041         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
47042         file.
47043         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
47044         multiarch strncasecmp for PPC32.
47045         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
47046         file.
47047         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
47048         multiarch strncasecmp_l for PPC32.
47049         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
47050         strncasecmp multiarch objects.
47051         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47052         (__libc_ifunc_impl_list): Likewise.
47053
47054         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
47055         file.
47056         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
47057         multiarch strncasecmp for PPC32.
47058         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
47059         New file.
47060         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
47061         multiarch strcasecmp_l for PPC32.
47062         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
47063         multiarch objects.
47064         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47065         (__libc_ifunc_impl_list): Likewise.
47066
47067         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
47068         file.
47069         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
47070         file.
47071         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
47072         multiarch strncmp for PPC32.
47073         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
47074         multiarch objects.
47075         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47076         (__libc_ifunc_impl_list): Likewise.
47077
47078         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
47079         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
47080         file.
47081         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
47082         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
47083         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
47084         multiarch objects.
47085         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47086         (__libc_ifunc_impl_list): Likewise.
47087
47088         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
47089         file.
47090         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
47091         file.
47092         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
47093         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
47094         multiarch objects.
47095         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47096         (__libc_ifunc_impl_list): Likewise.
47097
47098         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
47099         file.
47100         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
47101         file.
47102         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
47103         multiarch rawmemchr for PPC32.
47104         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
47105         multiarch objects.
47106         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47107         (__libc_ifunc_impl_list): Likewise.
47108
47109         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
47110         file.
47111         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
47112         file.
47113         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
47114         file: memrchr multiarch for PPC32.
47115         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
47116         multiarch objects.
47117         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47118         (__libc_ifunc_impl_list): Likewise.
47119
47120         * string/memchr.c (__memchr): Using macro to redefine symbol name.
47121         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
47122         file.
47123         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
47124         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
47125         multiarch memchr for PPC32.
47126         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
47127         multiarch objects.
47128         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47129         (__libc_ifunc_impl_list): Likewise.
47130
47131         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
47132         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
47133         file.
47134         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
47135         file.
47136         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
47137         file: multiarch mempcpy for PPC32.
47138         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
47139         multiarch objects.
47140         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47141         (__libc_ifunc_impl_list): Likewise.
47142
47143         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
47144         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
47145         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
47146         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
47147         multiarch bzero for PPC32.
47148         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
47149         file.
47150         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
47151         file.
47152         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
47153         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
47154         file: multiarch memset for PPC32.
47155         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
47156         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
47157         memset multiarch objects.
47158         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47159         (__libc_ifunc_impl_list): Likewise.
47160
47161         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
47162         file.
47163         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
47164         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
47165         memcmp for PPC32.
47166         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
47167         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
47168         multiarch objects.
47169         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47170         (__libc_ifunc_impl_list): Likewise.
47171
47172         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
47173         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
47174         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
47175         file.
47176         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
47177         file.
47178         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
47179         file.
47180         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
47181         multiarch memcpy for PPC32.
47182         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
47183         multiarch objects.
47184         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47185         (__libc_ifunc_impl_list): Likewise.
47186
47187         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
47188         support multiarch for POWER/PPC32.
47189         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
47190         Likewise.
47191         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
47192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
47193         Implies file to make multiarch folder appers before the fpu and
47194         default folder for power4 configuration.
47195
47196 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
47197
47198         * scripts/bench.pl: Append volatile keyword to type.
47199
47200 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47201
47202         * sysdeps/sh/sotruss-lib.c: New file.
47203         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
47204
47205 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47206
47207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47208
47209 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
47210
47211         [BZ #6810]
47212         * math/w_tgamma.c: Include <errno.h>.
47213         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
47214         * math/w_tgammaf.c: Include <errno.h>.
47215         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
47216         * math/w_tgammal.c: Include <errno.h>.
47217         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
47218         * math/auto-libm-test-in: Do not allow missing errno on tgamma
47219         underflow.  Add more tgamma tests.
47220         * math/auto-libm-test-out: Regenerated.
47221         * sysdeps/i386/fpu/libm-test-ulps: Update.
47222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47223
47224         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
47225         sin, sinh, tan, tanh, tgamma, y0 and y1.
47226         * math/auto-libm-test-out: Regenerated.
47227         * math/libm-test.inc (TEST_COND_x86_64): New macro.
47228         (TEST_COND_x86): Likewise.
47229         (M_E2l): Remove macro.
47230         (M_E3l): Likewise.
47231         (M_2_SQRT_PIl): Likewise.
47232         (M_SQRT_PIl): Likewise.
47233         (M_1_DIV_El): Likewise.
47234         (log_test_data): Use AUTO_TESTS_f_f.
47235         (log10_test_data): Likewise.
47236         (log1p_test_data): Likewise.
47237         (log2_test_data): Likewise.
47238         (sin_test_data): Likewise.
47239         (sin_tonearest_test_data): Likewise.
47240         (sin_towardzero_test_data): Likewise.
47241         (sin_downward_test_data): Likewise.
47242         (sin_upward_test_data): Likewise.
47243         (sinh_test_data): Likewise.
47244         (sinh_tonearest_test_data): Likewise.
47245         (sinh_towardzero_test_data): Likewise.
47246         (sinh_downward_test_data): Likewise.
47247         (sinh_upward_test_data): Likewise.
47248         (tan_test_data): Likewise.
47249         (tan_tonearest_test_data): Likewise.
47250         (tan_towardzero_test_data): Likewise.
47251         (tan_downward_test_data): Likewise.
47252         (tan_upward_test_data): Likewise.
47253         (tanh_test_data): Likewise.
47254         (tgamma_test_data): Likewise.
47255         (y0_test_data): Likewise.
47256         (y1_test_data): Likewise.
47257         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
47258         (special_real_inputs): Add pi/4.
47259         * sysdeps/i386/fpu/libm-test-ulps: Update.
47260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47261
47262 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47263
47264         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
47265         "longjmp_target" static probes.
47266         (__longjmp): Rename to __longjmp_symbol.
47267         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
47268         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
47269         on which longjmp to generate.
47270         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
47271         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
47272         probe.
47273         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47274         (__sigjmp_save): Rename to __sigjmp_save_symbol.
47275         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
47276         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
47277         and __sigjmp_save_symbol based on which sigsetjmp to generated.
47278         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
47279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
47280         __longjmp_symbol based on which __longjmp to generate.
47281         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
47282         probe.
47283         (setjmp): Rename to setjmp_symbol.
47284         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47285         (_setjmp): Rename to _setjmp_symbol.
47286         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47287         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
47288         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
47289         which setjmp to generate.
47290         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
47291         "longjmp_target" static probes.
47292
47293 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
47294
47295         * benchtests/README: Add note about output arguments.
47296         * benchtests/bench-sincos.c: Remove file.
47297         * benchtests/sincos-inputs: New file.
47298         * scripts/bench.pl: Identify output arguments and define
47299         static variables for them.
47300
47301         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
47302
47303         [BZ #15941]
47304         * Makefile (INSTALL): Add install-plain.texi as the primary
47305         dependency.
47306         * manual/install-plain.texi: New file.
47307         * manual/install.texi: Include node directive only for
47308         non-plaintext output.
47309
47310 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
47311
47312         * stdlib/longlong.h: Update from GCC.
47313
47314         [BZ #6807]
47315         [BZ #15901]
47316         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
47317         * math/w_j0f.c (y0f): Likewise.
47318         * math/w_j0l.c (__y0l): Likewise.
47319         * math/w_j1.c (y1): Likewise.
47320         * math/w_j1f.c (y1f): Likewise.
47321         * math/w_j1l.c (__y1l): Likewise.
47322         * math/w_jn.c (yn): Likewise.
47323         * math/w_jnf.c (ynf): Likewise.
47324         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
47325         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
47326         value for Bessel function domain errors outside _SVID_ mode.
47327         Adjust sign of return value for yn (negative integer, 0).
47328         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
47329         by zero in return for negative x and set sign appropriately for
47330         negative n.
47331         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
47332         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
47333         * math/libm-test.inc (y0_test_data): Add more tests and adjust
47334         expectations in error cases.
47335         (y1_test_data): Likewise.
47336         (yn_test_data): Likewise.
47337         * sysdeps/i386/fpu/libm-test-ulps: Update.
47338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47339
47340 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47341
47342         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
47343         "64" to "64-v1".  Add "64-v2".
47344         (abi-64-options): Rename to ...
47345         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
47346         (abi-64-condition): Rename to ...
47347         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
47348         (abi-64-ld-soname): Rename to ...
47349         (abi-64-v1-ld-soname): ... this.
47350         (abi-64-v2-options): Define.
47351         (abi-64-v2-condition): Likewise.
47352         (abi-64-v2-ld-soname): Likewise.
47353         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
47354         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
47355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
47356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
47357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
47358
47359 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47360             Alan Modra  <amodra@gmail.com>
47361
47362         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
47363         New versions for use with the ELFv2 ABI.
47364         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
47365         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
47366         declaration.
47367         (struct La_ppc64v2_retval): Likewise.
47368         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
47369         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
47370         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
47371         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
47372         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
47373         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47374         Do not save or restore CR.
47375         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
47376         (_dl_profile_resolve): Do no save or restore CR.  Support extended
47377         return values for ELFv2 ABI.  Fix location of FPR return registers.
47378         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
47379         updated values for _CALL_ELF == 2.
47380         (La_regs, La_retval, int_retval): Likewise.
47381
47382 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47383
47384         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
47385         (FRAME_MIN_SIZE_PARM): Likewise.
47386         (FRAME_BACKCHAIN): Likewise.
47387         (FRAME_CR_SAVE): Likewise.
47388         (FRAME_LR_SAVE): Likewise.
47389         (FRAME_TOC_SAVE): Likewise.
47390         (FRAME_PARM_SAVE): Likewise.
47391         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
47392         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
47393         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47394         (call_mcount_parm_offset): New macro.
47395         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
47396         (PROF): Use symbolic stack frame offsets.
47397         (TAIL_CALL_SYSCALL_ERROR): Likewise.
47398         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
47399         Redefine in terms of FRAME_MIN_SIZE.
47400         (_dl_runtime_resolve): Use symbolic stack frame offsets.
47401         (_dl_profile_resolve): Likewise.  Update comment.
47402         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
47403         symbols stack frame offsets.
47404         (__sigsetjmp): Likewise.
47405         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
47406         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
47407         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
47408         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
47409
47410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
47411         (FRAME_BACKCHAIN): Remove.
47412         (FRAME_CR_SAVE): Likewise.
47413         (FRAME_LR_SAVE): Likewise.
47414         (FRAME_COMPILER_DW): Likewise.
47415         (FRAME_LINKER_DW): Likewise.
47416         (FRAME_TOC_SAVE): Likewise.
47417         (FRAME_PARM_SAVE): Likewise.
47418         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
47419         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
47420         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
47422         (CHECK_SP): Use symbolic stack frame offsets.
47423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
47424         zone" instead of caller's parameter save area for temp storage.
47425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47426         Likewise.  Also, use symbolic stack frame offsets.
47427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
47428         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
47429         our own stack frame instead of the caller's.
47430         (__socket): Use symbolic stack frame offsets.
47431
47432 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47433             Alan Modra  <amodra@gmail.com>
47434
47435         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
47436         Define.
47437         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
47438         (PPC64_LOCAL_ENTRY_OFFSET): Define.
47439         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
47440         New function.
47441         (elf_machine_fixup_plt): Call it.
47442         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
47443         reloc arguments.
47444         (elf_machine_rela): Update call to elf_machine_plt_conflict.
47445         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47446         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
47447         r2 before calling target.
47448
47449 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47450             Alan Modra  <amodra@gmail.com>
47451
47452         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
47453         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
47454         versions of macros to support ELFv2 ABI.
47455         (LOCALENTRY): New macro.
47456         (ENTRY, EALIGN): Use it.
47457         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
47458         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
47459         fall through into ENTRY entry point.
47460         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
47461         Only define if _CALL_ELF != 2.
47462
47463         (elf_machine_matches_host): Verify ABI version matches.
47464         (RTLD_START): Use LOCALENTRY.
47465         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
47466         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
47467         (PLT_ENTRY_WORDS): New macro.
47468         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
47469         (elf_machine_runtime_setup): Support ELFv2 ABI.
47470         (elf_machine_fixup_plt): Likewise.
47471         (elf_machine_plt_conflict): Likewise.
47472         (resolve_ifunc): Likewise.
47473         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
47474         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
47475         Likewise.
47476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
47477         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
47478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47479         (makecontext): Support ELFv2 ABI.
47480         * elf/elf.h (EF_PPC64_ABI): Define.
47481
47482 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47483
47484         * sysdeps/powerpc/powerpc64/sysdep.h
47485         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
47486         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
47487         (ENTRY) [ASSEMBLER]: ... but instead here ...
47488         (EALIGN) [ASSEMBLER]: ... and here.
47489         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
47490         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
47491         (ENTRY_2) [!ASSEMBLER]: Use it.
47492         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
47493         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
47494         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47495         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
47496         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
47497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
47498         Use PPC64_LOAD_FUNCPTR.
47499
47500         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
47501
47502 2013-12-04  Alan Modra  <amodra@gmail.com>
47503
47504         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
47505         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
47506         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
47507         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
47508
47509         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
47510         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
47511         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
47512         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
47513         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
47514         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
47515
47516 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47517
47518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47519         (__makecontext): Fix incorrect CFI when backtracing out of
47520         context created via makecontext.
47521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
47522         (__setcontext): Fix incorrect CFI during switch to new context.
47523         (__novec_setcontext): Likewise.
47524
47525 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47526
47527         [BZ #4772]
47528         * time/strptime_l.c (__strptime_internal): Allow modifiers
47529         in strptime.
47530         * time/tst-strptime.c (day_tests): Add testcase.
47531
47532 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
47533
47534         * scripts/bench.pl: Skip over blank lines.
47535
47536 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         [BZ #926]
47539         * manual/time.texi (Calendar Time): Clarify what timezone functions
47540         use.
47541
47542 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47543
47544         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47545
47546 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47547
47548         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
47549         implementation.
47550         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
47551         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
47552         * debug/memset_chk.c (__memset_chk): Likewise.
47553         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
47554         * debug/strncpy_chk.c: Likewise.
47555
47556 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47557
47558         [BZ #15268]
47559         [BZ #15425]
47560         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
47561         (__ieee754_exp): For possibly underflowing results, check size of
47562         result and force underflow exception if required.
47563         * math/auto-libm-test-in: Add more tests of exp.
47564         * math/auto-libm-test-out: Regenerated.
47565         * sysdeps/i386/fpu/libm-test-ulps: Update.
47566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47567
47568         [BZ #16283]
47569         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
47570         * math/w_exp2f.c (__exp2f): Likewise.
47571         * math/w_exp2l.c (__exp2l): Likewise.
47572         * math/auto-libm-test-in: Do not allow missing errno on exp2
47573         underflow.
47574         * math/auto-libm-test-out: Regenerated.
47575
47576 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
47577
47578         [BZ #16274]
47579         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
47580         handle filename validation.
47581         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
47582         (do_open): Delete.
47583
47584 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47585
47586         [BZ #6786]
47587         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
47588         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
47589         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
47590         <float.h>.
47591         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
47592         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
47593         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47594         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
47595         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47596         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
47597         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47598         * math/auto-libm-test-in: Don't allow missing errno from erfc.
47599         Add more erfc tests.
47600         * math/auto-libm-test-out: Regenerated.
47601         * sysdeps/i386/fpu/libm-test-ulps: Update.
47602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47603
47604         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
47605         exp2, expm1, j0 and j1.
47606         * math/auto-libm-test-out: Regenerated.
47607         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
47608         (erfc_test_data): Likewise.
47609         (exp_test_data): Likewise.
47610         (exp_tonearest_test_data): Likewise.
47611         (exp_towardzero_test_data): Likewise.
47612         (exp_downward_test_data): Likewise.
47613         (exp_upward_test_data): Likewise.
47614         (exp10_test_data): Likewise.
47615         (exp2_test_data): Likewise.
47616         (expm1_test_data): Likewise.
47617         (j0_test_data): Likewise.
47618         (j1_test_data): Likewise.
47619         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
47620         (input_flag_type): Add flag_xfail_rounding.
47621         (input_flags): Add xfail-rounding.
47622         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
47623         (output_for_one_input_case): Handle flag_xfail_rounding.
47624         * sysdeps/i386/fpu/libm-test-ulps: Update.
47625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47626
47627 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
47628
47629         [BZ #16289]
47630         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
47631         division by 0.
47632
47633 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
47634
47635         [BZ #16195]
47636         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
47637         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
47638         (STAP_PROBE0): New macro.
47639         (STAP_PROBE1): Likewise.
47640         (STAP_PROBE2): Likewise.
47641         (STAP_PROBE3): Likewise.
47642         (STAP_PROBE4): Likewise.
47643
47644 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
47645
47646         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
47647
47648 2013-12-02  Steve Ellcey  <sellcey@mips.com>
47649
47650         * benchtests/Makefile (bench): Add sqrt.
47651         (LDLIBS-bench-sqrt): New.
47652         * benchtests/sqrt-input: New.
47653
47654 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
47655
47656         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
47657         (GAIH_EAI): Likewise.
47658         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
47659         (gaih_inet): Likewise.
47660         (getaddrinfo): Don't use GAIH_EAI.
47661
47662         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
47663         (struct gaih): Remove definition.
47664
47665 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
47666
47667         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
47668         Use HERRNOP directly.
47669
47670 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47671
47672         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47673
47674 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
47675
47676         * math/gen-auto-libm-tests.c (test_functions): Add more
47677         single-argument functions.
47678         (special_fill_pi_2): New function.
47679         (special_fill_minus_pi_2): Likewise.
47680         (special_fill_pi_6): Likewise.
47681         (special_fill_minus_pi_6): Likewise.
47682         (special_fill_pi_3): Likewise.
47683         (special_fill_2pi_3): Likewise.
47684         (special_fill_e): Likewise.
47685         (special_fill_1_e): Likewise.
47686         (special_fill_e_minus_1): Likewise.
47687         (special_real_inputs): Add more special inputs.
47688         (output_for_one_input_case): Do not require ERANGE on underflow to
47689         zero if round-to-nearest result does not underflow to zero, unless
47690         exact results required.
47691         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
47692         atan, atanh, cbrt, cos and cosh.
47693         * math/auto-libm-test-out: Regenerated.
47694         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
47695         (acos_tonearest_test_data): Likewise.
47696         (acos_towardzero_test_data): Likewise.
47697         (acos_downward_test_data): Likewise.
47698         (acos_upward_test_data): Likewise.
47699         (acosh_test_data): Likewise.
47700         (asin_test_data): Likewise.
47701         (asin_tonearest_test_data): Likewise.
47702         (asin_towardzero_test_data): Likewise.
47703         (asin_upward_test_data): Likewise.
47704         (asinh_test_data): Likewise.
47705         (atan_test_data): Likewise.
47706         (atanh_test_data): Likewise.
47707         (cbrt_test_data): Likewise.
47708         (cos_test_data): Likewise.
47709         (cos_tonearest_test_data): Likewise.
47710         (cos_towardzero_test_data): Likewise.
47711         (cos_downward_test_data): Likewise.
47712         (cos_upward_test_data): Likewise.
47713         (cosh_test_data): Likewise.
47714         (cosh_tonearest_test_data): Likewise.
47715         (cosh_towardzero_test_data): Likewise.
47716         (cosh_downward_test_data): Likewise.
47717         (cosh_upward_test_data): Likewise.
47718         * sysdeps/i386/fpu/libm-test-ulps: Update.
47719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47720
47721 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
47722
47723         [BZ #6787]
47724         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
47725         * math/w_exp10f.c (__exp10f): Likewise.
47726         * math/w_exp10l.c (__exp10l): Likewise.
47727         * math/libm-test.inc (exp10_test_data): Add more tests and expect
47728         errno settings in existing tests.
47729
47730         [BZ #14032]
47731         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
47732         precision control set to double precision.
47733         * sysdeps/i386/fpu/w_sqrt.c: New file.
47734         * math/auto-libm-test-in: Add more tests.
47735         * math/auto-libm-test-out: Update.
47736
47737         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
47738         (sqrt_test_tonearest): New function.
47739         (sqrt_towardzero_test_data): New variable.
47740         (sqrt_test_towardzero): New function.
47741         (sqrt_downward_test_data): New variable.
47742         (sqrt_test_downward): New function.
47743         (sqrt_upward_test_data): New variable.
47744         (sqrt_test_upward): New function.
47745         (main): Call the new functions.
47746
47747         * math/gen-auto-libm-tests.c: New file.
47748         * math/auto-libm-test-in: Likewise.
47749         * math/auto-libm-test-out: New generated file.
47750         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
47751         variables.
47752         (%beautify): Add generated representations of zero.
47753         (top level): Set $auto_input and call parse_auto_input.
47754         (beautify): Remove trailing "f" from hex float constants.
47755         (parse_args): Handle XFAIL_TEST.
47756         (convert_condition): New function.
47757         (or_value): Likewise.
47758         (or_cond_value): Likewise.
47759         (generate_testfile): Handle AUTO_TESTS_* lines.
47760         (parse_auto_input): New function.
47761         * math/libm-test.inc (XFAIL_TEST): New macro.
47762         (ERRNO_UNCHANGED): Update value.
47763         (ERRNO_EDOM): Likewise.
47764         (ERRNO_ERANGE): Likewise.
47765         (IGNORE_RESULT): Likewise.
47766         (TEST_COND_flt_32): New macro.
47767         (TEST_COND_dbl_64): Likewise.
47768         (TEST_COND_ldbl_96_intel): Likewise.
47769         (TEST_COND_ldbl_96_m68k): Likewise.
47770         (TEST_COND_ldbl_128): Likewise.
47771         (TEST_COND_ldbl_128ibm): Likewise.
47772         (TEST_COND_long32): Likewise.
47773         (TEST_COND_long64): Likewise.
47774         (TEST_COND_before_rounding): Likewise.
47775         (TEST_COND_after_rounding): Likewise.
47776         (enable_test): Handle XFAIL_TEST flag.
47777         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
47778         with finite results.
47779         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
47780         auto-libm-test-out.
47781
47782 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47783             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47784
47785         [BZ #16214]
47786         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
47787         __tls_get_addr_internal instead of __tls_get_offset in order to
47788         avoid GOT pointer dependency.  Make rtld export
47789         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
47790         __tls_get_addr since we are a __tls_get_offset platform.
47791         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
47792         GOT pointer being set up before.
47793         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
47794
47795 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
47796
47797         * manual/math.texi (Errors in Math Functions): Document accuracy
47798         goals.
47799
47800         [BZ #15004]
47801         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
47802         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
47803         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
47804         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
47805         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
47806         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
47807         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
47808         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
47809         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
47810         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
47811         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
47812         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
47813         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
47814         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
47815         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
47816         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
47817
47818         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
47819         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
47820         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
47821         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
47822         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
47823         Likewise.
47824         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
47825         Likewise.
47826         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
47827         Likewise.
47828         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
47829         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
47830         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
47831         atomic-feupdateenv and flt-rounds.
47832         * sysdeps/powerpc/nofpu/Versions (libc): Add
47833         __atomic_feholdexcept, __atomic_feclearexcept,
47834         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
47835         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
47836         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
47837         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
47838         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
47839         here.
47840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
47841         Update.
47842
47843         * manual/arith.texi (FP Exceptions): Document that exceptions may
47844         not be raised when matherr is used.
47845         (Math Error Reporting): Document overflow in directed rounding
47846         modes.  Document that errno may not be set when finite values are
47847         returned on overflow.  Document intent to set errno on underflow
47848         only for underflow to zero.
47849
47850         [BZ #16271]
47851         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
47852         round-to-nearest then adjust result for other rounding modes.
47853         * include/fenv.h (fegetround): Use libm_hidden_proto.
47854         * math/fegetround.c (fegetround): Use libm_hidden_def.
47855         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
47856         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
47857         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47858         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
47859         Likewise.
47860         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
47861         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
47862         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
47863         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
47864
47865 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
47866
47867         [BZ #16077]
47868         * nss/Versions (libnss_files): Add
47869         _nss_files_gethostbyname3_r.
47870         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
47871         New function.
47872         (HOST_DB_LOOKUP): Remove macro.
47873         (_nss_files_gethostbyname_r): Implement function without the
47874         HOST_DB_LOOKUP macro.
47875         (_nss_files_gethostbyname2_r): Likewise.
47876
47877 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
47878
47879         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
47880
47881 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
47882
47883         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
47884         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
47885         warning.
47886
47887 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47888
47889         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
47890         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
47891         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47892         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
47893         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
47894         __fe_nomask_env_priv and attribute_hidden.
47895         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
47896         (libc_feupdateenv_test_ppc): Likewise.
47897         (libc_feresetround_ppc): Likewise.
47898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
47899         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
47900         compat_symbol macro.
47901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
47902         (__fe_nomask_env): Likewise.
47903         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
47904
47905 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47906
47907         * string/Makefile: Remove ifunc tests.
47908         * string/test-string.h: Define TEST_IFUNC.
47909         * string/test-bcopy-ifunc.c: Remove.
47910         * string/test-bzero-ifunc.c: Likewise.
47911         * string/test-memccpy-ifunc.c: Likewise.
47912         * string/test-memchr-ifunc.c: Likewise.
47913         * string/test-memcmp-ifunc.c: Likewise.
47914         * string/test-memcpy-ifunc.c: Likewise.
47915         * string/test-memmem-ifunc.c: Likewise.
47916         * string/test-memmove-ifunc.c: Likewise.
47917         * string/test-mempcpy-ifunc.c: Likewise.
47918         * string/test-memrchr-ifunc.c: Likewise.
47919         * string/test-memset-ifunc.c: Likewise.
47920         * string/test-rawmemchr-ifunc.c: Likewise.
47921         * string/test-stpcpy-ifunc.c: Likewise.
47922         * string/test-stpncpy-ifunc.c: Likewise.
47923         * string/test-strcasecmp-ifunc.c: Likewise.
47924         * string/test-strcasestr-ifunc.c: Likewise.
47925         * string/test-strcat-ifunc.c: Likewise.
47926         * string/test-strchr-ifunc.c: Likewise.
47927         * string/test-strchrnul-ifunc.c: Likewise.
47928         * string/test-strcmp-ifunc.c: Likewise.
47929         * string/test-strcpy-ifunc.c: Likewise.
47930         * string/test-strcspn-ifunc.c: Likewise.
47931         * string/test-strlen-ifunc.c: Likewise.
47932         * string/test-strncasecmp-ifunc.c: Likewise.
47933         * string/test-strncat-ifunc.c: Likewise.
47934         * string/test-strncmp-ifunc.c: Likewise.
47935         * string/test-strncpy-ifunc.c: Likewise.
47936         * string/test-strnlen-ifunc.c: Likewise.
47937         * string/test-strpbrk-ifunc.c: Likewise.
47938         * string/test-strrchr-ifunc.c: Likewise.
47939         * string/test-strspn-ifunc.c: Likewise.
47940         * string/test-strstr-ifunc.c: Likewise.
47941
47942 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47943
47944         * benchtests/Makefile: Remove ifunc tests.
47945         * benchtests/bench-string.h: Define TEST_IFUNC.
47946         * benchtests/bench-bcopy-ifunc.c: Remove.
47947         * benchtests/bench-bzero-ifunc.c: Likewise.
47948         * benchtests/bench-memccpy-ifunc.c: Likewise.
47949         * benchtests/bench-memchr-ifunc.c: Likewise.
47950         * benchtests/bench-memcmp-ifunc.c: Likewise.
47951         * benchtests/bench-memcpy-ifunc.c: Likewise.
47952         * benchtests/bench-memmem-ifunc.c: Likewise.
47953         * benchtests/bench-memmove-ifunc.c: Likewise.
47954         * benchtests/bench-mempcpy-ifunc.c: Likewise.
47955         * benchtests/bench-memrchr-ifunc.c: Likewise.
47956         * benchtests/bench-memset-ifunc.c: Likewise.
47957         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
47958         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
47959         * benchtests/bench-stpcpy-ifunc.c: Likewise.
47960         * benchtests/bench-stpncpy-ifunc.c: Likewise.
47961         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
47962         * benchtests/bench-strcasestr-ifunc.c: Likewise.
47963         * benchtests/bench-strcat-ifunc.c: Likewise.
47964         * benchtests/bench-strchr-ifunc.c: Likewise.
47965         * benchtests/bench-strchrnul-ifunc.c: Likewise.
47966         * benchtests/bench-strcmp-ifunc.c: Likewise.
47967         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
47968         * benchtests/bench-strcpy-ifunc.c: Likewise.
47969         * benchtests/bench-strcspn-ifunc.c: Likewise.
47970         * benchtests/bench-strlen-ifunc.c: Likewise.
47971         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
47972         * benchtests/bench-strncat-ifunc.c: Likewise.
47973         * benchtests/bench-strncmp-ifunc.c: Likewise.
47974         * benchtests/bench-strncpy-ifunc.c: Likewise.
47975         * benchtests/bench-strnlen-ifunc.c: Likewise.
47976         * benchtests/bench-strpbrk-ifunc.c: Likewise.
47977         * benchtests/bench-strrchr-ifunc.c: Likewise.
47978         * benchtests/bench-strsep-ifunc.c: Likewise.
47979         * benchtests/bench-strspn-ifunc.c: Likewise.
47980         * benchtests/bench-strstr-ifunc.c: Likewise.
47981
47982 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47983
47984         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
47985
47986 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47987
47988         * resolv/netdb.h: Use __glibc_reserved instead __unused.
47989         * rt/aio.h: Likewise.
47990         * sysdeps/gnu/bits/utmp.h: Likewise.
47991         * sysdeps/gnu/bits/utmpx.h: Likewise.
47992         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
47993         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
47994         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
47995         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
47996         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
47997         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
47998         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
47999         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
48000         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
48001         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
48002         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
48003         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
48004         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
48005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
48006         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
48007         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
48008         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
48009         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
48010         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
48011         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
48012         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
48013         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
48014         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
48015         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
48016         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
48017         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
48018         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
48019         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
48020         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
48021         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
48022         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
48023         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
48024         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
48025         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
48026         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
48027         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
48028         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
48029         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
48030         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
48031         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
48032         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
48033         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48034
48035 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
48036
48037         [BZ #16245]
48038         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
48039         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
48040
48041 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
48042
48043         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
48044         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
48045         Likewise.
48046
48047 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48048
48049         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
48050         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
48051         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
48052         (__fesetround): Remove define.
48053         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
48054         rounding and exceptions handling.
48055         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
48056         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
48057         (__fe_nomask_env): Likewise.
48058         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
48059         __fegetround instead of fegetround.
48060         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
48061         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
48062
48063 2013-11-21  Roland McGrath  <roland@hack.frob.com>
48064
48065         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
48066         it's there.
48067
48068         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
48069
48070 2013-11-21  Meador Inge  <meadori@codesourcery.com>
48071
48072         [BZ #11157]
48073         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
48074         (encrypt_r): Likewise.
48075         * malloc/obstack.h (obstack_free): Likewise.
48076         * posix/unistd.h (encrypt): Likewise.
48077
48078 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
48079
48080         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
48081         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
48082         DL_CALL_DT_FINI() that call the functions directly.
48083         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
48084         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
48085         * elf/dl-fini.c: Likewise.
48086
48087 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
48088
48089         * malloc/hooks.c (memalign_check): Add alignment rounding.
48090         * malloc/malloc.c (_mid_memalign): New function.
48091         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
48092         Implement by calling _mid_memalign.
48093         * manual/probes.texi (Memory Allocation Probes): Remove
48094         memory_valloc_retry and memory_pvalloc_retry.
48095
48096 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48097
48098         * locale/programs/locarchive.c (open_archive): Add const
48099         qualifier to ARCHIVEFNAME and copy default fname to
48100         DEFAULT_FNAME.
48101
48102         [BZ #15601]
48103         * libio/tst-widetext.input: Rename Oriya to Odia.
48104         * locale/iso-639.def: Likewise.
48105
48106         * manual/probes.texi (Mathematical Function Probes): Add
48107         documentation for sin, cos, asin and acos probes.
48108         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
48109         (__sin32): Add slowasin probe.
48110         (__cos32): Add slowacos probe.
48111         (__mpsin): Add slowsin probe.
48112         (__mpcos): Add slowcos probe.
48113
48114 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
48115
48116         [BZ #15483]
48117         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
48118         thread-local __sim_exceptions_thread and global
48119         __sim_exceptions_global.
48120         (__sim_disabled_exceptions): Change to thread-local
48121         __sim_disabled_exceptions_thread and global
48122         __sim_disabled_exceptions_global.
48123         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48124         and global __sim_round_mode_global.
48125         (__simulate_exceptions): Use thread-local floating-point state and
48126         set global state from it as needed.
48127         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
48128         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
48129         __sim_round_mode_thread.
48130         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
48131         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
48132         and global __sim_exceptions_global.
48133         (__sim_disabled_exceptions): Change to thread-local
48134         __sim_disabled_exceptions_thread and global
48135         __sim_disabled_exceptions_global.
48136         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48137         and global __sim_round_mode_global.
48138         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
48139         (SIM_SET_GLOBAL): Likewise.
48140         * sysdeps/powerpc/soft-fp/sfp-machine.h
48141         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
48142         __sim_round_mode_thread.
48143         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
48144         __sim_disabled_exceptions_thread.
48145         (__sim_exceptions): Change to __sim_exceptions_thread.
48146         (__sim_disabled_exceptions): Change to
48147         __sim_disabled_exceptions_thread.
48148         (__sim_round_mode): Change to __sim_round_mode_thread.
48149         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
48150         thread-local floating-point state and set global state from it as
48151         needed.
48152         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
48153         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
48154         (__sim_disabled_exceptions): Remove extern declaration.
48155         (feenableexcept): Use thread-local floating-point state and set
48156         global state from it as needed.
48157         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
48158         extern declaration.
48159         (__sim_disabled_exceptions): Likewise.
48160         (__sim_round_mode): Likewise.
48161         (__fegetenv): Use thread-local floating-point state.
48162         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
48163         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
48164         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
48165         floating-point state and set global state from it as needed.
48166         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
48167         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
48168         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
48169         Likewise.
48170         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
48171         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
48172         Likewise.
48173         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
48174         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
48175         Use __sim_round_mode_thread.
48176         * math/test-fenv-tls.c: New file.
48177         * math/Makefile (tests): Add test-fenv-tls.
48178         ($(objpfx)test-fenv-tls): Depend on
48179         $(common-objpfx)nptl/libpthread.so.
48180
48181 2013-11-19  Andreas Schwab  <schwab@suse.de>
48182
48183         * locale/programs/locale.c (show_info): Decode wordarray elements.
48184         * locale/categories.def (LC_MONETARY): Add element for
48185         _NL_MONETARY_CRNCYSTR.
48186         * locale/C-monetary.c (conversion_rate): New variable.
48187         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
48188         element.
48189
48190 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
48191
48192         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
48193         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
48194
48195 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
48196
48197         * elf/Makefile (tst-auxv): New test.
48198         * elf/tst-auxv.c: New
48199         * elf/rtld.c (dl_main): Adjust AT_EXECFN
48200
48201 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
48202
48203         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
48204         (hidden_proto): Caller changed.
48205         (hidden_tls_proto): New macro.
48206         (libc_hidden_tls_proto): Likewise.
48207         (rtld_hidden_tls_proto): Likewise.
48208         (libm_hidden_tls_proto): Likewise.
48209         (libresolv_hidden_tls_proto): Likewise.
48210         (librt_hidden_tls_proto): Likewise.
48211         (libdl_hidden_tls_proto): Likewise.
48212         (libnss_files_hidden_tls_proto): Likewise.
48213         (libnsl_hidden_tls_proto): Likewise.
48214         (libnss_nisplus_hidden_tls_proto): Likewise.
48215         (libutil_hidden_tls_proto): Likewise.
48216
48217 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
48218
48219         [BZ #10253]
48220         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
48221         (decompose_rpath): Defer expansion to fillin_rpath.
48222         (_dl_init_paths): Pass linkmap to fillin_rpath.
48223
48224 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
48225
48226         * benchtests/Makefile: Add strsep.
48227         * benchtests/bench-strsep.c: New file: strsep benchtest.
48228         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
48229
48230 2013-11-18  Andreas Schwab  <schwab@suse.de>
48231
48232         * locale/programs/locale.c (show_info) [case byte]: Check for
48233         '\377' instead of '\177'.
48234         * locale/C-monetary.c (not_available): Always use "\377".
48235         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
48236         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
48237         detect unavailable sign_posn locale elements.
48238         * locale/localeconv.c (__localeconv): For grouping and
48239         mon_grouping handle "\177" and "\377" like no grouping.
48240         (INT_ELEM): New macro.  Use it to set all numeric members.
48241         * locale/programs/ld-monetary.c (monetary_read)
48242         <tok_mon_grouping>: Normalize single -1 to the empty string.
48243         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
48244         Likewise.
48245
48246 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48247
48248         [BZ #16055]
48249         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
48250         when we match (nil).
48251         * stdio-common/tst-sscanf.c (struct test): Add testcase.
48252
48253 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
48254
48255         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
48256         (NO_TEST_INLINE): Update value.
48257         (ERRNO_UNCHANGED): Likewise.
48258         (ERRNO_EDOM): Likewise.
48259         (ERRNO_ERANGE): Likewise.
48260         (IGNORE_RESULT): Likewise.
48261         (check_float_internal): Check signs of NaN results if
48262         TEST_NAN_SIGN used.
48263         (check_complex): Pass TEST_NAN_SIGN flag through to second
48264         check_float_internal call.
48265         (copysign_test_data): Add tests with quiet NaNs as second
48266         argument.  Use TEST_NAN_SIGN.
48267         (fabs_test_data): Add test of negative quiet NaN argument.  Use
48268         TEST_NAN_SIGN.
48269         (signbit_test_data): Add tests of quiet NaN argument.
48270         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
48271
48272         * math/gen-libm-test.pl (show_exceptions): Take extra argument
48273         $ignore_result.
48274         (parse_args): Handle function results specified as IGNORE.
48275         * math/libm-test.inc (IGNORE_RESULT): New macro.
48276         (check_float_internal): Do not check numerical result if flag
48277         IGNORE_RESULT set.
48278         (check_complex): Pass through IGNORE_RESULT to second
48279         check_float_internal call.
48280         (check_int): Do not check numerical result if flag IGNORE_RESULT
48281         set.
48282         (check_long): Likewise.
48283         (check_bool): Likewise.
48284         (check_longlong): Likewise.
48285         (lrint_test_data): Add tests of infinite and NaN arguments.
48286         (lrint_tonearest_test_data): Likewise.
48287         (lrint_towardzero_test_data): Likewise.
48288         (lrint_downward_test_data): Likewise.
48289         (lrint_upward_test_data): Likewise.
48290         (llrint_test_data): Likewise.
48291         (llrint_tonearest_test_data): Likewise.
48292         (llrint_towardzero_test_data): Likewise.
48293         (llrint_downward_test_data): Likewise.
48294         (llrint_upward_test_data): Likewise.
48295         (lround_test_data): Likewise.
48296         (llround_test_data): Likewise.
48297
48298         * math/libm-test.inc (NO_TEST_INLINE): New macro.
48299         (ERRNO_UNCHANGED): Update value.
48300         (ERRNO_EDOM): Likewise.
48301         (ERRNO_ERANGE): Likewise.
48302         (NO_TEST_INLINE_FLOAT): New macro.
48303         (NO_TEST_INLINE_DOUBLE): Likewise.
48304         (enable_test): New function.
48305         (RUN_TEST_f_f): Check enable_test before running test.
48306         (RUN_TEST_2_f): Likewise.
48307         (RUN_TEST_fff_f): Likewise.
48308         (RUN_TEST_c_f): Likewise.
48309         (RUN_TEST_f_f1): Likewise.
48310         (RUN_TEST_fF_f1): Likewise.
48311         (RUN_TEST_fI_f1): Likewise.
48312         (RUN_TEST_ffI_f1): Likewise.
48313         (RUN_TEST_c_c): Likewise.
48314         (RUN_TEST_cc_c): Likewise.
48315         (RUN_TEST_f_i): Likewise.
48316         (RUN_TEST_f_i_tg): Likewise.
48317         (RUN_TEST_ff_i_tg): Likewise.
48318         (RUN_TEST_f_b): Likewise.
48319         (RUN_TEST_f_b_tg): Likewise.
48320         (RUN_TEST_f_l): Likewise.
48321         (RUN_TEST_f_L): Likewise.
48322         (RUN_TEST_fFF_11): Likewise.
48323         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
48324         conditionals.
48325         (cosh_test_data): Likewise.
48326         (exp_test_data): Likewise.
48327         (expm1_test_data): Likewise.
48328         (hypot_test_data): Likewise.
48329         (pow_test_data): Likewise.
48330         (sinh_test_data): Likewise.
48331         (tanh_test_data): Likewise.
48332         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
48333         flags argument.
48334
48335         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
48336         tests with quiet NaN input and output.
48337         (acosh_test_data): Likewise.
48338         (asin_test_data): Likewise.
48339         (asinh_test_data): Likewise.
48340         (atan_test_data): Likewise.
48341         (atanh_test_data): Likewise.
48342         (atan2_test_data): Likewise.
48343         (cbrt_test_data): Likewise.
48344         (cos_test_data): Likewise.
48345         (cosh_test_data): Likewise.
48346         (erf_test_data): Likewise.
48347         (erfc_test_data): Likewise.
48348         (exp_test_data): Likewise.
48349         (exp10_test_data): Likewise.
48350         (exp2_test_data): Likewise.
48351         (expm1_test_data): Likewise.
48352         (hypot_test_data): Likewise.
48353         (j0_test_data): Likewise.
48354         (j1_test_data): Likewise.
48355         (jn_test_data): Likewise.
48356         (lgamma_test_data): Likewise.
48357         (log_test_data): Likewise.
48358         (log10_test_data): Likewise.
48359         (log1p_test_data): Likewise.
48360         (log2_test_data): Likewise.
48361         (pow_test_data): Likewise.
48362         (scalb_test_data): Likewise.
48363         (sin_test_data): Likewise.
48364         (sincos_test_data): Likewise.
48365         (sinh_test_data): Likewise.
48366         (tan_test_data): Likewise.
48367         (tanh_test_data): Likewise.
48368         (tgamma_test_data): Likewise.
48369         (y0_test_data): Likewise.
48370         (y1_test_data): Likewise.
48371         (yn_test_data): Likewise.
48372
48373         [BZ #16167]
48374         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
48375         argument being NaN and avoid computations with second argument in
48376         that case.
48377         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
48378         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
48379         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
48380
48381 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
48382
48383         * locale/iso-639.def: Add Chitwani Tharu (the).
48384
48385 2013-11-14  Andreas Schwab  <schwab@suse.de>
48386
48387         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
48388         word instead of empty string.
48389
48390 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48391
48392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48393         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
48394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48395         (__fe_nomask_env): Likewise.
48396
48397 2013-11-13  Steve Ellcey  <sellcey@mips.com>
48398
48399         * benchtests/bench-timing.h: Include time.h.
48400
48401 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
48402
48403         [BZ #15997]
48404         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
48405         to 3.4.0 for x32.
48406         * sysdeps/unix/sysv/linux/configure: Regenerated.
48407
48408 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
48409
48410         [BZ #16151]
48411         * stdlib/strtod_l.c (round_and_return): Do not consider
48412         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
48413         exponent one less than half the least subnormal exponent.
48414         * stdlib/test-strtod-round-data: Add more tests.
48415         * stdlib/tst-strtod-round.c (tests): Regenerated.
48416
48417 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48418
48419         [BZ #14143]
48420         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
48421         (__fe_mask_env): Likewise.
48422         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
48423         libm_hidden_proto and add function prototype.
48424         (__fe_mask_env): Add function prototype.
48425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48426         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
48427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
48428         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
48429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48430         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
48431
48432 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48433
48434         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
48435         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
48436
48437 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48438
48439         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
48440         of htab_find_slot().
48441
48442 2013-11-11  David S. Miller  <davem@davemloft.net>
48443
48444         [BZ #16150]
48445         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
48446         symbol in the non-vis3 case in static builds.
48447         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
48448         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
48449         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
48450         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
48451
48452 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
48453
48454         [BZ #387]
48455         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
48456         it is empty.
48457
48458 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48459
48460         * benchtests/Makefile: Add bench-strtod.
48461         * benchtests/bench-strtod.c: New file: strtod benchtest
48462
48463 2013-11-11  Andreas Schwab  <schwab@suse.de>
48464
48465         [BZ #16153]
48466         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
48467         terminating NUL in key length.
48468
48469 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48470
48471         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48472         Add artificial ODP entry for vDSO symbol for PPC64.
48473         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
48474         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
48475
48476 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48477
48478         [BZ #15374]
48479         * nss/getent.c (services_keys): Recognize services starting with digit.
48480
48481 2013-11-06  David S. Miller  <davem@davemloft.net>
48482
48483         [BZ #15985]
48484         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
48485         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
48486
48487 2013-11-06  Will Newton  <will.newton@linaro.org>
48488
48489         * manual/memory.texi (Malloc Examples): Remove register
48490         keyword from examples.
48491
48492 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
48493
48494         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
48495
48496 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
48497
48498         [BZ #6981]
48499         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
48500         depending on [__GCC_IEC_559 > 0].
48501         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
48502         depending on [__GCC_IEC_559_COMPLEX > 0].
48503
48504 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
48505
48506         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
48507         to iso-639.def.
48508
48509 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
48510
48511         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
48512
48513 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
48514
48515         [BZ #16112]
48516         * malloc/malloc (malloc_info): Do not handle first bin as
48517         special case.
48518
48519 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
48520
48521         * locale/iso-639.def: Add Central Nahuatl (nhn).
48522
48523 2013-11-01  Bruno Haible  <bruno@clisp.org>
48524
48525         [BZ #7003]
48526         * manual/math.texi (BSD Random): Specify range upper bound as
48527         in POSIX.
48528
48529 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
48530
48531         * locale/iso-639.def: Add Meadow Mari (mhr).
48532
48533 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
48534
48535         [BZ #14752], [BZ #15763]
48536         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
48537         Validate name.
48538         * rt/tst_shm.c: Add test for escaping directory.
48539
48540 2013-10-31  Andreas Schwab  <schwab@suse.de>
48541
48542         [BZ #15917]
48543         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
48544         followed by 'x' as part of digit sequence.
48545         * stdio-common/tst-sscanf.c (double_tests2): New tests.
48546
48547 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
48548
48549         [BZ #16037]
48550         * configure.ac: allow GNU Make 4.0 and greater.
48551         * configure: Regenerated.
48552
48553 2013-10-30  Will Newton  <will.newton@linaro.org>
48554
48555         [BZ #16038]
48556         * malloc/hooks.c (memalign_check): Limit alignment to the
48557         maximum representable power of two.
48558         * malloc/malloc.c (__libc_memalign): Likewise.
48559         * malloc/tst-memalign.c (do_test): Add test for very
48560         large alignment values.
48561         * malloc/tst-posix_memalign.c (do_test): Likewise.
48562
48563 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48564
48565         [BZ #11087]
48566         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
48567         (munmap_chunk): Likewise.
48568         (mremap_chunk): Likewise.
48569
48570 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48571
48572         [BZ #15799]
48573         * stdlib/div.c (div): Remove obsolete code.
48574         * stdlib/ldiv.c (ldiv): Likewise.
48575         * stdlib/lldiv.c (lldiv): Likewise.
48576
48577 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48578
48579         [BZ #16071]
48580         * nss/nss_files/files-XXX.c (get_contents_ret): New
48581         enumerator.
48582         (get_contents): New function.
48583         (internal_getent): Use it.  Expand size of LINEBUFLEN.
48584
48585 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
48586
48587         * configure.in: Moved to ...
48588         * configure.ac: ... here. Change reference to configure.in
48589         to configure.ac.
48590         * sysdeps/arm/preconfigure.ac: ... here.
48591         configure.in to configure.ac.
48592         * sysdeps/gnu/configure.in: Moved to ...
48593         * sysdeps/gnu/configure.ac: ... here.
48594         * sysdeps/i386/configure.in: Moved to ...
48595         * sysdeps/i386/configure.ac: ... here.
48596         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
48597         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
48598         * sysdeps/mach/configure.in: Moved to ...
48599         * sysdeps/mach/configure.ac: ... here.
48600         * sysdeps/mach/hurd/configure.in: Moved to ...
48601         * sysdeps/mach/hurd/configure.ac: ... here.
48602         * sysdeps/powerpc/configure.in: Moved to ...
48603         * sysdeps/powerpc/configure.ac: ... here.
48604         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
48605         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
48606         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
48607         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
48608         * sysdeps/s390/s390-32/configure.in: Moved to ...
48609         * sysdeps/s390/s390-32/configure.ac: ... here.
48610         * sysdeps/s390/s390-64/configure.in: Moved to ...
48611         * sysdeps/s390/s390-64/configure.ac: ... here.
48612         * sysdeps/sh/configure.in: Moved to ...
48613         * sysdeps/sh/configure.ac: ... here.
48614         * sysdeps/sparc/configure.in: Moved to ...
48615         * sysdeps/sparc/configure.ac: ... here.
48616         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
48617         * sysdeps/unix/sysv/linux/configure.ac: ... here.
48618         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
48619         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
48620         * sysdeps/x86_64/configure.in: Moved to ...
48621         * sysdeps/x86_64/configure.ac: ... here.
48622         * sysdeps/x86_64/preconfigure.in: Moved to ...
48623         * sysdeps/x86_64/preconfigure.ac: ... here.
48624         * aclocal.m4: Change reference to configure.in to configure.ac.
48625         * config.h.in: Likewise.
48626         * manual/install.texi: Likewise.
48627         * manual/maint.texi: Likewise.
48628         * Makefile: Likewise.
48629         * malloc/Makefile: Likewise.
48630         * nscd/Makefile: Likewise.
48631         * Makeconfig: Change reference to configure.in and
48632         preconfigure.in to configure.ac and preconfigure.ac
48633         respectively.
48634         * INSTALL: Regenerated.
48635         * configure: Likewise.
48636         * sysdeps/gnu/configure: Likewise.
48637         * sysdeps/i386/configure: Likewise.
48638         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
48639         * sysdeps/mach/configure: Likewise.
48640         * sysdeps/mach/hurd/configure: Likewise.
48641         * sysdeps/powerpc/configure: Likewise.
48642         * sysdeps/powerpc/powerpc32/configure: Likewise.
48643         * sysdeps/powerpc/powerpc64/configure: Likewise.
48644         * sysdeps/s390/s390-32/configure: Likewise.
48645         * sysdeps/s390/s390-64/configure: Likewise.
48646         * sysdeps/sh/configure: Likewise.
48647         * sysdeps/sparc/configure: Likewise.
48648         * sysdeps/unix/sysv/linux/configure: Likewise.
48649         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
48650         * sysdeps/x86_64/configure: Likewise.
48651         * sysdeps/x86_64/preconfigure: Likewise.
48652
48653 2013-10-29  Andreas Schwab  <schwab@suse.de>
48654
48655         * stdio-common/Makefile (tst-swscanf-ENV): Define.
48656
48657 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48658
48659         * benchtests/pow-inputs: Add new inputs.
48660
48661         * benchtests/exp-inputs: Add new inputs.
48662
48663         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
48664         conditional check for return value.
48665         (__cos32): Likewise.
48666
48667 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48668
48669         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
48670         to provide a boost for large inputs with word alignment.
48671         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
48672         implementation based on optimized PPC64 strcpy.
48673         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
48674         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
48675         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
48676         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
48677
48678 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48679
48680         [BZ #2801]
48681         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
48682
48683 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48684
48685         [BZ #14876]
48686         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
48687         * time/tst-strptime.c (day_tests): Add testcase.
48688
48689 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48690
48691         [BZ #14029]
48692         * manual/pattern.texi: Acknowledge that fnmatch can fail.
48693
48694 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
48695
48696         [BZ #16074]
48697         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
48698         MAP_FAILED on error.
48699
48700 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48701
48702         [BZ #16072]
48703         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
48704         heap for large requests.
48705
48706 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
48707
48708         [BZ #9954]
48709         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
48710         result if the result has no associated interface.
48711         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
48712         interface for all 127.X.Y.Z addresses.
48713
48714 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
48715
48716         * locale/iso-639.def: Add Ligurian (lij)
48717
48718 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
48719
48720         [BZ #15825]
48721         * sunrpc/rpc_main.c: Document rpcgen -5.
48722
48723 2013-10-19  Michael Stahl  <mstahl@redhat.com>
48724
48725         * elf/rtld.c (do_preload): Print the reason why preloading failed.
48726
48727 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48728
48729         [BZ #10278]
48730         * posix/glob.c: Match only directories when trailing slash is present.
48731         * posix/tst-gnuglob.c (my_opendir): Do not open files.
48732         (main): Add testcase.
48733
48734 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48735
48736         [BZ #15670]
48737         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
48738
48739 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
48740
48741         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
48742         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
48743         AUTH_DES and cindex for FIPS 140-2.
48744         (DES Encryption): Add cindex FIPS 46-3.
48745
48746         * locale/locarchive.h (struct locarhandle): Add fname.
48747         * locale/programs/localedef.c (main): Pass ARGV[remaining]
48748         if an optional argument was specified to --list-archive,
48749         otherwise NULL.
48750         * locale/programs/locarchive.c (show_archive_content): Take new
48751         argument fname and pass it via ah.fname to open_archive.
48752         * locale/programs/localedef.h: Update decl.
48753         (open_archive): If AH->fname is non-null, open that file
48754         rather than the default file name, and don't ignore ENOENT.
48755         (create_archive): Set AH.fname to NULL.
48756         (delete_locales_from_archive): Likewise.
48757         (add_locales_to_archive): Likewise.
48758         * locale/programs/locfile.c (write_all_categories): Likewise.
48759
48760 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
48761             Aldy Hernandez  <aldyh@redhat.com>
48762
48763         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
48764         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
48765         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
48766         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
48767         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
48768         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
48769         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
48770         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
48771         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
48772         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
48773         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
48774         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
48775         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
48776         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
48777         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
48778         Likewise.
48779         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
48780         Likewise.
48781         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
48782         Likewise.
48783         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
48784         Likewise.
48785         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
48786         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
48787         Likewise.
48788         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
48789         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
48790         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
48791         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
48792         Likewise.
48793         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
48794         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
48795         * sysdeps/powerpc/preconfigure: Likewise.
48796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
48797         Likewise.
48798         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
48799         Replace contents of file by #include of <fenv_libc.h>.
48800         * sysdeps/powerpc/soft-fp/sfp-machine.h
48801         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
48802         and <sys/prctl.h>.
48803         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
48804         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
48805         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
48806         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
48807         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
48808         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
48809         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
48810         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
48811         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
48812         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
48813         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
48814         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
48815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
48816         Allow copysignl PLT reference to be missing.
48817
48818 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
48819             Joseph Myers  <joseph@codesourcery.com
48820
48821         [BZ #15948]
48822         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
48823         single character.
48824         (add_to_tablewc): Assert sequence of wide characters is nonempty.
48825
48826 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
48827
48828         * elf/tst-tls-dlinfo.c: Don't include tls.h.
48829         * elf/tst-tls1.c: Likewise.
48830         * elf/tst-tls10.h: Likewise.
48831         * elf/tst-tls14.c: Likewise.
48832         * elf/tst-tls2.c: Likewise.
48833         * elf/tst-tls3.c: Likewise.
48834         * elf/tst-tls4.c: Likewise.
48835         * elf/tst-tls5.c: Likewise.
48836         * elf/tst-tls6.c: Likewise.
48837         * elf/tst-tls7.c: Likewise.
48838         * elf/tst-tls8.c: Likewise.
48839         * elf/tst-tls9.c: Likewise.
48840         * elf/tst-tlsmod1.c: Likewise.
48841         * elf/tst-tlsmod13.c: Likewise.
48842         * elf/tst-tlsmod13a.c: Likewise.
48843         * elf/tst-tlsmod14a.c: Likewise.
48844         * elf/tst-tlsmod16a.c: Likewise.
48845         * elf/tst-tlsmod16b.c: Likewise.
48846         * elf/tst-tlsmod2.c: Likewise.
48847         * elf/tst-tlsmod3.c: Likewise.
48848         * elf/tst-tlsmod4.c: Likewise.
48849         * elf/tst-tlsmod5.c: Likewise.
48850         * elf/tst-tlsmod6.c: Likewise.
48851
48852 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
48853
48854         [BZ #12486]
48855         * malloc/malloc.c: remove checks for statistics.
48856
48857 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48858
48859         [BZ #15277]
48860         * inet/inet_net.c (inet_network): Detect additional invalid strings.
48861         * inet/tst-network.c: Add testcase.
48862
48863 2013-10-17  Andreas Schwab  <schwab@suse.de>
48864
48865         [BZ #15218]
48866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
48867         to determine canonical name.
48868
48869 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48870
48871         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
48872         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
48873         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48874         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
48875         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48876         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
48877         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48878         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
48879         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
48880         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
48881         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
48882         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48883         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
48884         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
48885         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
48886         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
48887         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48888         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
48889         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
48890         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
48891         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48892         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48893         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
48894         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
48895         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
48896         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
48897         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
48898         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
48899         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
48900         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
48901         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
48902         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48903         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
48904         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
48905         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
48906         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
48907         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
48908         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
48909         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
48910         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48911         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
48912         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
48913         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
48914         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
48915         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
48916         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
48917         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
48918         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
48919         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
48920         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
48921         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
48922         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
48923         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
48924         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
48925         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
48926         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
48927         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48928         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
48929
48930 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
48931
48932         [BZ #16041]
48933         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
48934         make result into a quiet NaN.
48935
48936 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
48937
48938         * soft-fp/adddf3.c: Fix horizontal whitespace.
48939         * soft-fp/addsf3.c: Likewise.
48940         * soft-fp/addtf3.c: Likewise.
48941         * soft-fp/divdf3.c: Likewise.
48942         * soft-fp/divsf3.c: Likewise.
48943         * soft-fp/divtf3.c: Likewise.
48944         * soft-fp/double.h: Likewise.
48945         * soft-fp/eqdf2.c: Likewise.
48946         * soft-fp/eqsf2.c: Likewise.
48947         * soft-fp/eqtf2.c: Likewise.
48948         * soft-fp/extenddftf2.c: Likewise.
48949         * soft-fp/extended.h: Likewise.
48950         * soft-fp/extendsfdf2.c: Likewise.
48951         * soft-fp/extendsftf2.c: Likewise.
48952         * soft-fp/extendxftf2.c: Likewise.
48953         * soft-fp/fixdfdi.c: Likewise.
48954         * soft-fp/fixdfsi.c: Likewise.
48955         * soft-fp/fixdfti.c: Likewise.
48956         * soft-fp/fixsfdi.c: Likewise.
48957         * soft-fp/fixsfsi.c: Likewise.
48958         * soft-fp/fixsfti.c: Likewise.
48959         * soft-fp/fixtfdi.c: Likewise.
48960         * soft-fp/fixtfsi.c: Likewise.
48961         * soft-fp/fixtfti.c: Likewise.
48962         * soft-fp/fixunsdfdi.c: Likewise.
48963         * soft-fp/fixunsdfsi.c: Likewise.
48964         * soft-fp/fixunsdfti.c: Likewise.
48965         * soft-fp/fixunssfdi.c: Likewise.
48966         * soft-fp/fixunssfsi.c: Likewise.
48967         * soft-fp/fixunssfti.c: Likewise.
48968         * soft-fp/fixunstfdi.c: Likewise.
48969         * soft-fp/fixunstfsi.c: Likewise.
48970         * soft-fp/fixunstfti.c: Likewise.
48971         * soft-fp/floatdidf.c: Likewise.
48972         * soft-fp/floatdisf.c: Likewise.
48973         * soft-fp/floatditf.c: Likewise.
48974         * soft-fp/floatsidf.c: Likewise.
48975         * soft-fp/floatsisf.c: Likewise.
48976         * soft-fp/floatsitf.c: Likewise.
48977         * soft-fp/floattidf.c: Likewise.
48978         * soft-fp/floattisf.c: Likewise.
48979         * soft-fp/floattitf.c: Likewise.
48980         * soft-fp/floatundidf.c: Likewise.
48981         * soft-fp/floatundisf.c: Likewise.
48982         * soft-fp/floatunditf.c: Likewise.
48983         * soft-fp/floatunsidf.c: Likewise.
48984         * soft-fp/floatunsisf.c: Likewise.
48985         * soft-fp/floatunsitf.c: Likewise.
48986         * soft-fp/floatuntidf.c: Likewise.
48987         * soft-fp/floatuntisf.c: Likewise.
48988         * soft-fp/floatuntitf.c: Likewise.
48989         * soft-fp/fmadf4.c: Likewise.
48990         * soft-fp/fmasf4.c: Likewise.
48991         * soft-fp/fmatf4.c: Likewise.
48992         * soft-fp/gedf2.c: Likewise.
48993         * soft-fp/gesf2.c: Likewise.
48994         * soft-fp/getf2.c: Likewise.
48995         * soft-fp/ledf2.c: Likewise.
48996         * soft-fp/lesf2.c: Likewise.
48997         * soft-fp/letf2.c: Likewise.
48998         * soft-fp/muldf3.c: Likewise.
48999         * soft-fp/mulsf3.c: Likewise.
49000         * soft-fp/multf3.c: Likewise.
49001         * soft-fp/negdf2.c: Likewise.
49002         * soft-fp/negsf2.c: Likewise.
49003         * soft-fp/negtf2.c: Likewise.
49004         * soft-fp/op-1.h: Likewise.
49005         * soft-fp/op-2.h: Likewise.
49006         * soft-fp/op-4.h: Likewise.
49007         * soft-fp/op-8.h: Likewise.
49008         * soft-fp/op-common.h: Likewise.
49009         * soft-fp/quad.h: Likewise.
49010         * soft-fp/single.h: Likewise.
49011         * soft-fp/soft-fp.h: Likewise.
49012         * soft-fp/sqrtdf2.c: Likewise.
49013         * soft-fp/sqrtsf2.c: Likewise.
49014         * soft-fp/sqrttf2.c: Likewise.
49015         * soft-fp/subdf3.c: Likewise.
49016         * soft-fp/subsf3.c: Likewise.
49017         * soft-fp/subtf3.c: Likewise.
49018         * soft-fp/truncdfsf2.c: Likewise.
49019         * soft-fp/trunctfdf2.c: Likewise.
49020         * soft-fp/trunctfsf2.c: Likewise.
49021         * soft-fp/trunctfxf2.c: Likewise.
49022         * soft-fp/unorddf2.c: Likewise.
49023         * soft-fp/unordsf2.c: Likewise.
49024         * soft-fp/unordtf2.c: Likewise.
49025
49026 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
49027
49028         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
49029         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
49030
49031 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
49032
49033         * elf/dl-libc.c: Clear initfini list after freeing.
49034
49035 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
49036
49037         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
49038         * soft-fp/addsf3.c: Likewise.
49039         * soft-fp/addtf3.c: Likewise.
49040         * soft-fp/divdf3.c: Likewise.
49041         * soft-fp/divsf3.c: Likewise.
49042         * soft-fp/divtf3.c: Likewise.
49043         * soft-fp/double.h: Likewise.
49044         * soft-fp/eqdf2.c: Likewise.
49045         * soft-fp/eqsf2.c: Likewise.
49046         * soft-fp/eqtf2.c: Likewise.
49047         * soft-fp/extenddftf2.c: Likewise.
49048         * soft-fp/extended.h: Likewise.
49049         * soft-fp/extendsfdf2.c: Likewise.
49050         * soft-fp/extendsftf2.c: Likewise.
49051         * soft-fp/extendxftf2.c: Likewise.
49052         * soft-fp/fixdfdi.c: Likewise.
49053         * soft-fp/fixdfsi.c: Likewise.
49054         * soft-fp/fixdfti.c: Likewise.
49055         * soft-fp/fixsfdi.c: Likewise.
49056         * soft-fp/fixsfsi.c: Likewise.
49057         * soft-fp/fixsfti.c: Likewise.
49058         * soft-fp/fixtfdi.c: Likewise.
49059         * soft-fp/fixtfsi.c: Likewise.
49060         * soft-fp/fixtfti.c: Likewise.
49061         * soft-fp/fixunsdfdi.c: Likewise.
49062         * soft-fp/fixunsdfsi.c: Likewise.
49063         * soft-fp/fixunsdfti.c: Likewise.
49064         * soft-fp/fixunssfdi.c: Likewise.
49065         * soft-fp/fixunssfsi.c: Likewise.
49066         * soft-fp/fixunssfti.c: Likewise.
49067         * soft-fp/fixunstfdi.c: Likewise.
49068         * soft-fp/fixunstfsi.c: Likewise.
49069         * soft-fp/fixunstfti.c: Likewise.
49070         * soft-fp/floatdidf.c: Likewise.
49071         * soft-fp/floatdisf.c: Likewise.
49072         * soft-fp/floatditf.c: Likewise.
49073         * soft-fp/floatsidf.c: Likewise.
49074         * soft-fp/floatsisf.c: Likewise.
49075         * soft-fp/floatsitf.c: Likewise.
49076         * soft-fp/floattidf.c: Likewise.
49077         * soft-fp/floattisf.c: Likewise.
49078         * soft-fp/floattitf.c: Likewise.
49079         * soft-fp/floatundidf.c: Likewise.
49080         * soft-fp/floatundisf.c: Likewise.
49081         * soft-fp/floatunsidf.c: Likewise.
49082         * soft-fp/floatunsisf.c: Likewise.
49083         * soft-fp/floatuntidf.c: Likewise.
49084         * soft-fp/floatuntisf.c: Likewise.
49085         * soft-fp/floatuntitf.c: Likewise.
49086         * soft-fp/fmadf4.c: Likewise.
49087         * soft-fp/fmasf4.c: Likewise.
49088         * soft-fp/fmatf4.c: Likewise.
49089         * soft-fp/gedf2.c: Likewise.
49090         * soft-fp/gesf2.c: Likewise.
49091         * soft-fp/getf2.c: Likewise.
49092         * soft-fp/ledf2.c: Likewise.
49093         * soft-fp/lesf2.c: Likewise.
49094         * soft-fp/letf2.c: Likewise.
49095         * soft-fp/muldf3.c: Likewise.
49096         * soft-fp/mulsf3.c: Likewise.
49097         * soft-fp/multf3.c: Likewise.
49098         * soft-fp/negdf2.c: Likewise.
49099         * soft-fp/negsf2.c: Likewise.
49100         * soft-fp/negtf2.c: Likewise.
49101         * soft-fp/op-1.h: Likewise.
49102         * soft-fp/op-2.h: Likewise.
49103         * soft-fp/op-4.h: Likewise.
49104         * soft-fp/op-8.h: Likewise.
49105         * soft-fp/op-common.h: Likewise.
49106         * soft-fp/quad.h: Likewise.
49107         * soft-fp/single.h: Likewise.
49108         * soft-fp/soft-fp.h: Likewise.
49109         * soft-fp/sqrtdf2.c: Likewise.
49110         * soft-fp/sqrtsf2.c: Likewise.
49111         * soft-fp/sqrttf2.c: Likewise.
49112         * soft-fp/subdf3.c: Likewise.
49113         * soft-fp/subsf3.c: Likewise.
49114         * soft-fp/subtf3.c: Likewise.
49115         * soft-fp/truncdfsf2.c: Likewise.
49116         * soft-fp/trunctfdf2.c: Likewise.
49117         * soft-fp/trunctfsf2.c: Likewise.
49118         * soft-fp/trunctfxf2.c: Likewise.
49119         * soft-fp/unorddf2.c: Likewise.
49120         * soft-fp/unordsf2.c: Likewise.
49121         * soft-fp/unordtf2.c: Likewise.
49122
49123 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
49124
49125         [BZ #15672]
49126         * misc/error.c (error_tail): Fix possible buffer overflow.
49127
49128 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
49129
49130         [BZ #13028]
49131         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
49132         address.
49133
49134 2013-10-14  P. J. McDermott  <pj@pehjota.net>
49135
49136         [BZ #832]
49137         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
49138         testing pipefail option.
49139
49140 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49141
49142         * soft-fp/double.h: Indent preprocessor directives inside #if.
49143         * soft-fp/extended.h: Likewise.
49144         * soft-fp/op-2.h: Likewise.
49145         * soft-fp/op-4.h: Likewise.
49146         * soft-fp/op-common.h: Likewise.
49147         * soft-fp/quad.h: Likewise.
49148         * soft-fp/single.h: Likewise.
49149         * soft-fp/soft-fp.h: Likewise.
49150
49151 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
49152
49153         * iconv/iconv_prog.c: Fix typos.
49154         * stdio-common/psiginfo-data.h: Likewise.
49155
49156 2013-10-12   Reuben Thomas <rrt@sc3d.org>
49157
49158         [BZ #15764]
49159         * locale/setlocale.c: Fix typo.
49160
49161 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49162
49163         [BZ #16036]
49164         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
49165         signaling NaN arguments.
49166         * soft-fp/unordsf2.c (__unordsf2): Likewise.
49167         * soft-fp/unordtf2.c (__unordtf2): Likewise.
49168
49169         [BZ #14910]
49170         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
49171         unordered operands.
49172         * soft-fp/gesf2.c (__gesf2): Likewise.
49173         * soft-fp/getf2.c (__getf2): Likewise.
49174         * soft-fp/ledf2.c (__ledf2): Likewise.
49175         * soft-fp/lesf2.c (__lesf2): Likewise.
49176         * soft-fp/letf2.c (__letf2): Likewise.
49177
49178         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
49179         * soft-fp/eqsf2.c (__eqsf2): Likewise.
49180         * soft-fp/eqtf2.c (__eqtf2): Likewise.
49181         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
49182         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
49183         * soft-fp/fixdfti.c (__fixdfti): Likewise.
49184         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
49185         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
49186         * soft-fp/fixsfti.c (__fixsfti): Likewise.
49187         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
49188         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
49189         * soft-fp/fixtfti.c (__fixtfti): Likewise.
49190         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
49191         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
49192         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
49193         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
49194         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
49195         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
49196         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
49197         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
49198         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
49199         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
49200         * soft-fp/floatdisf.c (__floatdisf): Likewise.
49201         * soft-fp/floatsisf.c (__floatsisf): Likewise.
49202         * soft-fp/floattidf.c (__floattidf): Likewise.
49203         * soft-fp/floattisf.c (__floattisf): Likewise.
49204         * soft-fp/floattitf.c (__floattitf): Likewise.
49205         * soft-fp/floatundidf.c (__floatundidf): Likewise.
49206         * soft-fp/floatundisf.c (__floatundisf): Likewise.
49207         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
49208         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
49209         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
49210         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
49211         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
49212         * soft-fp/gesf2.c (__gesf2): Likewise.
49213         * soft-fp/getf2.c (__getf2): Likewise.
49214         * soft-fp/ledf2.c (__ledf2): Likewise.
49215         * soft-fp/lesf2.c (__lesf2): Likewise.
49216         * soft-fp/letf2.c (__letf2): Likewise.
49217
49218         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
49219         Undefine and redefine.
49220         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
49221         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
49222         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
49223         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
49224         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49225         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
49226         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49227         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
49228         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49229         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
49230         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49231         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
49232         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49233         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
49234         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49235
49236         [BZ #16032]
49237         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
49238         without decrementing exponent if mantissa >= that for the
49239         denominator, not >.
49240         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
49241         denominator, not >.  Decrement exponent in < case instead of
49242         incrementing in >= case.
49243         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
49244         without decrementing exponent if mantissa >= that for the
49245         denominator, not >.
49246
49247         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
49248         computing saturated result for unsigned overflow.
49249
49250 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49251             Jeff Law  <law@redhat.com>
49252
49253         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
49254         (atan2Mp): Add systemtap probe marker.
49255         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
49256         (__ieee754_log): Add systemtap probe marker.
49257         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
49258         (atanMp): Add systemtap probe marker.
49259         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
49260         (tanMp): Add systemtap probe marker.
49261         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
49262         (__slowexp): Add systemtap probe marker.
49263         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
49264         (__slowpow): Add systemtap probe marker.
49265         * manual/probes.texi: Document probes.
49266
49267 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
49268
49269         [BZ #15362]
49270         * libio/fileops.c (_IO_new_file_write): Return count of bytes
49271         written.
49272         (_IO_new_file_xsputn): Don't return EOF if nothing has been
49273         written.
49274         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
49275         written to buffer but not flushed.
49276         * libio/iofwrite_u.c:  Likewise.
49277         * libio/iopadn.c:  Return bytes returned even if EOF was
49278         encountered.
49279         * libio/iowpadn.c:  Likewise.
49280         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
49281         if _IO_padn does not write the whole buffer.
49282         [!COMPILE_WPRINTF] (PAD): Likewise.
49283
49284 2013-10-10  David S. Miller  <davem@davemloft.net>
49285
49286         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
49287         directory block.
49288
49289 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49290
49291         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
49292         instead of FSF address.
49293         * soft-fp/fixdfti.c: Likewise.
49294         * soft-fp/fixsfti.c: Likewise.
49295         * soft-fp/fixtfti.c: Likewise.
49296         * soft-fp/fixunsdfti.c: Likewise.
49297         * soft-fp/fixunssfti.c: Likewise.
49298         * soft-fp/fixunstfti.c: Likewise.
49299         * soft-fp/floattidf.c: Likewise.
49300         * soft-fp/floattisf.c: Likewise.
49301         * soft-fp/floattitf.c: Likewise.
49302         * soft-fp/floatuntidf.c: Likewise.
49303         * soft-fp/floatuntisf.c: Likewise.
49304         * soft-fp/floatuntitf.c: Likewise.
49305         * soft-fp/trunctfxf2.c: Likewise.
49306
49307         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
49308         * soft-fp/fixdfti.c: Likewise.
49309         * soft-fp/fixsfti.c: Likewise.
49310         * soft-fp/fixtfti.c: Likewise.
49311         * soft-fp/fixunsdfti.c: Likewise.
49312         * soft-fp/fixunssfti.c: Likewise.
49313         * soft-fp/fixunstfti.c: Likewise.
49314         * soft-fp/floattidf.c: Likewise.
49315         * soft-fp/floattisf.c: Likewise.
49316         * soft-fp/floattitf.c: Likewise.
49317         * soft-fp/floatuntidf.c: Likewise.
49318         * soft-fp/floatuntisf.c: Likewise.
49319         * soft-fp/floatuntitf.c: Likewise.
49320         * soft-fp/trunctfxf2.c: Likewise.
49321
49322 2013-10-10  David S. Miller  <davem@davemloft.net>
49323
49324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49325
49326 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
49327
49328         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
49329         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
49330         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
49331         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
49332         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
49333         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
49334         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
49335
49336         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
49337         for NaNs before doing comparisons on argument.
49338         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
49339         Likewise.
49340
49341 2013-10-10  Will Newton  <will.newton@linaro.org>
49342
49343         * malloc/hooks.c (memalign_check): Ensure the value of bytes
49344         passed to _int_memalign does not overflow.
49345
49346 2013-10-10  Torvald Riegel  <triegel@redhat.com>
49347
49348         * scripts/bench.pl: Add include-sources directive.
49349         * benchtests/README: Update documentation.
49350
49351 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49352
49353         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
49354         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
49355         instead of FP_INIT_ROUNDMODE.
49356         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
49357         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
49358
49359         [BZ #16034]
49360         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
49361         copy class of input value.
49362         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
49363         not handle exceptions.
49364         * soft-fp/negsf2.c (__negsf2): Likewise.
49365         * soft-fp/negtf2.c (__negtf2): Likewise.
49366         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
49367
49368 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
49369
49370         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
49371         semicolon.  From Linux kernel.
49372
49373 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
49374
49375         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
49376
49377 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
49378
49379         [BZ #156]
49380         * manual/socket.texi: Added statement about buffer
49381         for gethostbyname2_r.
49382
49383 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
49384
49385         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
49386         Use .p2align directive instead, throughout.
49387         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
49388         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
49389         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
49390         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
49391         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
49392         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
49393         * sysdeps/x86_64/strchr.S: Likewise.
49394         * sysdeps/x86_64/strrchr.S: Likewise.
49395
49396 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49397
49398         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
49399
49400         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
49401
49402         * sysdeps/generic/math_private.h (__mpsin1): Remove
49403         declaration.
49404         (__mpcos1): Likewise.
49405         (__mpsin): New argument __range_reduce.
49406         (__mpcos): Likewise.
49407         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49408         (slow): Use __mpsin and __mpcos.
49409         (slow1): Likewise.
49410         (slow2): Likewise.
49411         (sloww): Likewise.
49412         (sloww1): Likewise.
49413         (sloww2): Likewise.
49414         (bsloww): Likewise.
49415         (bsloww1): Likewise.
49416         (bsloww2): Likewise.
49417         (cslow2): Likewise.
49418         (csloww): Likewise.
49419         (csloww1): Likewise.
49420         (csloww2): Likewise.
49421         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
49422         range_reduce.  Merge in __mpsin1.
49423         (__mpcos): Likewise.
49424         (__mpsin1): Remove.
49425         (__mpcos1): Likewise.
49426
49427 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
49428
49429         * locale/loadlocale.c (_nl_intern_locale_data): Use
49430         LOCFILE_ALIGNED_P.
49431         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
49432         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
49433         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
49434         obstack data is appropriately aligned.
49435         (obstack_int32_grow_fast): Likewise.
49436         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
49437         * locale/programs/locfile.c (add_locale_uint32): Likewise.
49438         (add_locale_uint32_array): Likewise.
49439
49440 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49441
49442         * benchtests/Makefile: Remove ARGLIST and RET variables.
49443         ($(objpfx)bench-%.c): Pass only function name to the script.
49444         * benchtests/README: Update documentation.
49445         * benchtests/acos-inputs: Add new directives.
49446         * benchtests/acosh-inputs: Likewise.
49447         * benchtests/asin-inputs: Likewise.
49448         * benchtests/asinh-inputs: Likewise.
49449         * benchtests/atan-inputs: Likewise.
49450         * benchtests/atanh-inputs: Likewise.
49451         * benchtests/cos-inputs: Likewise.
49452         * benchtests/cosh-inputs: Likewise.
49453         * benchtests/exp-inputs: Likewise.
49454         * benchtests/log-inputs: Likewise.
49455         * benchtests/pow-inputs: Likewise.
49456         * benchtests/rint-inputs: Likewise.
49457         * benchtests/sin-inputs: Likewise.
49458         * benchtests/sinh-inputs: Likewise.
49459         * benchtests/tan-inputs: Likewise.
49460         * benchtests/tanh-inputs: Likewise.
49461         * scripts/bench.pl: Add support for new directives.
49462
49463 2013-10-07  Alan Modra  <amodra@gmail.com>
49464
49465         * README: Fix careless merge.
49466
49467 2013-10-05  Alan Modra  <amodra@gmail.com>
49468
49469         * NEWS: Mention powerpc64le support and bugs fixed.
49470         * README: Both big-endian and little-endian powerpc64 supported.
49471
49472 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49473
49474         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
49475         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
49476         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
49477         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
49478
49479 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
49480
49481         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
49482         match prototype.
49483
49484 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
49485
49486         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
49487         Move -mhard-float appending from
49488         ports/sysdeps/powerpc/powerpc32/Makefile.
49489         [$(with-fp) = yes] (ASFLAGS): Likewise.
49490         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
49491         * sysdeps/powerpc/nofpu: Move directory from
49492         ports/sysdeps/powerpc/nofpu.
49493         * sysdeps/powerpc/soft-fp: Move directory from
49494         ports/sysdeps/powerpc/soft-fp.
49495         * sysdeps/powerpc/powerpc32/405: Move directory from
49496         ports/sysdeps/powerpc/powerpc32/405.
49497         * sysdeps/powerpc/powerpc32/440: Move directory from
49498         ports/sysdeps/powerpc/powerpc32/440.
49499         * sysdeps/powerpc/powerpc32/464: Move directory from
49500         ports/sysdeps/powerpc/powerpc32/464.
49501         * sysdeps/powerpc/powerpc32/476: Move directory from
49502         ports/sysdeps/powerpc/powerpc32/476.
49503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
49504         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
49505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
49506         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
49507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
49508         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
49509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
49510         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
49512         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
49513         * README: Update for powerpc-*-linux-gnu software floating point
49514         support in libc.
49515
49516         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
49517         case to powerpc/powerpc32*.
49518         * sysdeps/unix/sysv/linux/configure: Regenerated.
49519
49520         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
49521         (_FPU_MASK_OM): Define as 0x04.
49522         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
49523         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
49524         0x00c10080.
49525         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
49526         0x0000003c.
49527         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
49528
49529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
49530         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49531         getcontext_e500.
49532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
49533         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49534         setcontext_e500.
49535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
49536         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
49537         and setcontext_e500.
49538
49539 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
49540
49541         * locale/iso-3166.def: Update iso-1366.def and related occurrences
49542
49543 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49544
49545         * manual/threads.texi (Default Thread Attributes): Fix typo.
49546
49547 2013-10-04  Will Newton  <will.newton@linaro.org>
49548
49549         * malloc/Makefile: Add tst-memalign.
49550         * malloc/tst-memalign.c: New file.
49551
49552         * malloc/tst-posix_memalign.c: Add comments.
49553         (do_test): Add comments and call free on all potentially
49554         allocated pointers. Add space after cast.
49555
49556         * malloc/tst-pvalloc.c: Add comments.
49557         (do_test): Add comments and call free on all potentially
49558         allocated pointers. Remove duplicate check for NULL pointer.
49559         Add space after cast.
49560
49561         * malloc/tst-valloc.c: Add comments.
49562         (do_test): Add comments and call free on all potentially
49563         allocated pointers. Remove duplicate check for NULL pointer.
49564         Add space after cast.
49565
49566 2013-10-04  Alan Modra  <amodra@gmail.com>
49567
49568         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49569         Use stdint types in rather than __attribute__((mode())).
49570         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49571
49572 2013-10-04  Alan Modra  <amodra@gmail.com>
49573
49574         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49575         Correct handling of unaligned relocs for little-endian.
49576         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49577
49578 2013-10-04  Alan Modra  <amodra@gmail.com>
49579
49580         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
49581         * configure: Regenerate.
49582         * nptl/shlib-versions: Powerpc*le starts at 2.18.
49583         * shlib-versions: Likewise.
49584
49585 2013-10-04  Alan Modra  <amodra@gmail.com>
49586
49587         * string/tester.c (test_memrchr): Increment reported test cycle.
49588
49589 2013-10-04  Alan Modra  <amodra@gmail.com>
49590
49591         * string/test-memcpy.c (do_one_test): When reporting errors, print
49592         string address and don't overrun end of string.
49593
49594 2013-10-04  Alan Modra  <amodra@gmail.com>
49595
49596         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
49597         insrdi.  Make better use of reg selection to speed exit slightly.
49598         Schedule entry path a little better.  Remove useless "are we done"
49599         checks on entry to main loop.  Handle wrapping around zero address.
49600         Correct main loop count.  Handle single left-over word from main
49601         loop inline rather than by using loop_small.  Remove extra word
49602         case in loop_small caused by wrong loop count.  Add little-endian
49603         support.
49604         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
49605         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
49606         cache hint.
49607         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
49608         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
49609         support.  Avoid rlwimi.
49610         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
49611
49612 2013-10-04  Alan Modra  <amodra@gmail.com>
49613
49614         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
49615         insrdi.  Formatting.
49616         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
49617         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
49618         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
49619         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49620         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
49621         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
49622
49623 2013-10-04  Alan Modra  <amodra@gmail.com>
49624
49625         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
49626         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49627         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
49628         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
49629         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
49630         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49631         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49632         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49633         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
49634         use of regs.  Use power7 mtocrf.  Tidy function tails.
49635
49636 2013-10-04  Alan Modra  <amodra@gmail.com>
49637
49638         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
49639         Formatting.  Consistently use rXXX register defines or rN defines.
49640         Use early exit labels that avoid restoring unused non-volatile regs.
49641         Make cr field use more consistent with rWORDn compares.  Rename
49642         regs used as shift registers for unaligned loop, using rN defines
49643         for short lifetime/multiple use regs.
49644         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49645         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
49646         addi 1,1,64 to pop stack frame.  Simplify return value code.
49647         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49648
49649 2013-10-04  Alan Modra  <amodra@gmail.com>
49650
49651         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
49652         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
49653         rather than rlwimi.
49654         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
49655         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
49656         little-endian support.  Correct typos.
49657         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
49658         rather than rlwimi.
49659         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
49660         in loop and entry code to keep "and." results.
49661         (strchr): Add little-endian support.  Comment.  Move cntlzd
49662         earlier in tail.
49663         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
49664
49665 2013-10-04  Alan Modra  <amodra@gmail.com>
49666
49667         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
49668         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
49669         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
49670         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
49671
49672 2013-10-04  Alan Modra  <amodra@gmail.com>
49673
49674         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
49675         (rTMP): Define as r11.
49676         (strcmp): Add little-endian support.  Optimise tail.
49677         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
49678         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49679         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
49680         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
49681         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
49682         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49683         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
49684
49685 2013-10-04  Alan Modra  <amodra@gmail.com>
49686
49687         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
49688         little-endian support.  Remove unnecessary "are we done" tests.
49689         Handle "s" wrapping around zero and extremely large "size".
49690         Correct main loop count.  Handle single left-over word from main
49691         loop inline rather than by using small_loop.  Correct comments.
49692         Delete "zero" tail, use "end_max" instead.
49693         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
49694
49695 2013-10-04  Alan Modra  <amodra@gmail.com>
49696
49697         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
49698         support.  Don't branch over align.
49699         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
49700         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
49701         support.  Rearrange tmp reg use to suit.  Comment.
49702         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
49703
49704 2013-10-04  Alan Modra  <amodra@gmail.com>
49705
49706         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
49707
49708 2013-10-04  Alan Modra  <amodra@gmail.com>
49709
49710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
49711         conditional form of branch and link when obtaining pc.
49712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
49713
49714 2013-10-04  Alan Modra  <amodra@gmail.com>
49715
49716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
49717         HIWORD/LOWORD.
49718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
49719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
49720
49721 2013-10-04  Alan Modra  <amodra@gmail.com>
49722
49723         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
49724         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
49725         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
49726         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
49727         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
49728         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
49729         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
49730         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
49731         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
49732         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
49733
49734 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49735             Alistair Popple <alistair@ozlabs.au.ibm.com>
49736             Alan Modra <amodra@gmail.com>
49737
49738         [BZ #15723]
49739         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
49740         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
49741         _dl_hwcap access for little-endian.
49742         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
49743         destroy vmx regs when saving unaligned.
49744         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
49745         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
49746         destroy vmx regs when saving unaligned.
49747
49748 2013-10-04  Alan Modra  <amodra@gmail.com>
49749
49750         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
49751         Don't use a union to pack hi/low value.
49752
49753 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49754
49755         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
49756         for little-endian.
49757         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49758         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
49759         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49760         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49761         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49762
49763 2013-10-04  Alan Modra  <amodra@gmail.com>
49764
49765         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
49766         constants to usual value for .cst8 section, and remove redundant
49767         high address load.
49768         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
49769         constant for 0x1p52.  Load little-endian words of double from
49770         correct stack offsets.
49771
49772 2013-10-04  Alan Modra  <amodra@gmail.com>
49773
49774         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
49775         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
49776         words of double from correct stack offsets.
49777         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
49778         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
49779         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49780         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49781         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49782         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49783         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49784         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
49785         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
49786         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49787         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49788         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49789         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
49790         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
49791         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
49792         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
49793         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
49794
49795 2013-10-04  Alan Modra  <amodra@gmail.com>
49796
49797         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
49798         64-bit int/double union.
49799         (_FPU_SETCW): Likewise.
49800         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
49801         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
49802
49803 2013-10-04  Alan Modra  <amodra@gmail.com>
49804
49805         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
49806         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
49807
49808 2013-10-04  Alan Modra  <amodra@gmail.com>
49809
49810         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
49811         use vector int constants.
49812         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
49813
49814 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49815
49816         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
49817         array with long long.
49818         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
49819         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
49820         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
49821         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
49822         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
49823         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
49824         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
49825         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
49826         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
49827         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
49828         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
49829         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
49830         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
49831
49832 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49833
49834         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
49835         (__signbit): Likewise.  Correct for little-endian.
49836         (__signbitl): Call __signbit.
49837         (lrint): Correct for little-endian.
49838         (lrintf): Call lrint.
49839
49840 2013-10-04  Alan Modra  <amodra@gmail.com>
49841
49842         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
49843         union 32-bit int array member with 64-bit int array.
49844         (t515, tm256): Double rather than long double.
49845         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
49846
49847 2013-10-04  Alan Modra  <amodra@gmail.com>
49848
49849         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
49850         Delete.
49851         (IEEE854_LONG_DOUBLE_BIAS): Delete.
49852         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
49853         version of math_ldbl.h.
49854
49855 2013-10-04  Alan Modra  <amodra@gmail.com>
49856
49857         [BZ #15734], [BZ #15735]
49858         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
49859         all uses of ieee875 long double macros and unions.  Simplify test
49860         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
49861         ldbl_extract_mantissa value for ix,iy exponents.  Properly
49862         normalize after ldbl_extract_mantissa, and don't add hidden bit
49863         already handled.  Don't treat low word of ieee854 mantissa like
49864         low word of IBM long double and mask off bit when testing for
49865         zero.
49866         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
49867         all uses of ieee875 long double macros and unions.  Simplify tests
49868         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
49869         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
49870         two1022, instead use their values.  Recognise that tests for large
49871         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
49872         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
49873         Rewrite all uses of ieee875 long double macros and unions.  Simplify
49874         test for 0.0L and nan.  Correct negation.
49875         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
49876         ieee875 long double macros and unions.  Correct output for large
49877         magnitude x.  Correct absolute value calculation.
49878         (__erfcl): Likewise.
49879         * math/libm-test.inc: Add tests for errors discovered in IBM long
49880         double versions of fmodl, remainderl, erfl and erfcl.
49881
49882 2013-10-04  Alan Modra  <amodra@gmail.com>
49883
49884         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
49885         all uses of ieee854 long double macros and unions.  Simplify tests
49886         for long doubles that are fully specified by the high double.
49887         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
49888         Likewise.
49889         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
49890         Remove dead code too.
49891         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
49892         (__ieee754_ynl): Likewise.
49893         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
49894         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
49895         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
49896         Remove dead code too.
49897         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
49898         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
49899         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
49900         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
49901         Simplify.
49902         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
49903         Simplify.
49904         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
49905         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
49906         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
49907         Comment on variable precision.
49908         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
49909         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
49910         Likewise.
49911         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
49912         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
49913         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
49914         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
49915         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
49916
49917 2013-10-04  Alan Modra  <amodra@gmail.com>
49918
49919         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
49920         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
49921         all uses of ieee854 long double macros and unions.
49922         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
49923         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
49924         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
49925         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
49926         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
49927         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
49928         Likewise.
49929         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
49930         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
49931         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
49932         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
49933         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
49934         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
49935         Simplify sign and nan test too.
49936         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
49937         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
49938         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
49939         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
49940         Likewise.
49941         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
49942         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
49943         Likewise.
49944         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
49945         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
49946         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
49947         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
49948         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
49949         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
49950
49951 2013-10-04  Alan Modra  <amodra@gmail.com>
49952
49953         * stdio-common/printf_size.c (__printf_size): Don't use
49954         union ieee854_long_double in fpnum union.
49955         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
49956         signbit macro to retrieve sign from long double.
49957         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
49958         retrieve sign from long double.
49959         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
49960         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
49961         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
49962         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
49963         * math/test-misc.c (main): Don't use union ieee854_long_double.
49964
49965 2013-10-04  Alan Modra  <amodra@gmail.com>
49966
49967         [BZ #15680]
49968         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
49969         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
49970         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
49971         calculation.  Remove unnecessary test for denormal exponent.
49972         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
49973         Correct handling of denormals.  Avoid undefined shift behaviour.
49974         Correct normalisation of low mantissa when low double is denormal.
49975         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
49976         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
49977         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
49978         Correct normalisation of low mantissa.  Test for overflow of high
49979         mantissa and normalise.
49980         (ldbl_nearbyint): Use more readable constant for two52.
49981         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
49982         (__mpn_construct_long_double): Fix test for overflow of high
49983         mantissa and correct normalisation.  Avoid undefined shift.
49984
49985 2013-10-04  Alan Modra  <amodra@gmail.com>
49986
49987         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
49988         (union ibm_extended_long_double): Define as an array of ieee754_double.
49989         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
49990         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
49991         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
49992         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
49993         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
49994         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
49995         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
49996         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
49997         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
49998         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
49999         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
50000
50001 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
50002
50003         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
50004         page size instead of calling getpagesize.
50005
50006         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
50007         (LOCFILE_ALIGN_MASK): Likewise.
50008         (LOCFILE_ALIGN_UP): Likewise.
50009         (LOCFILE_ALIGNED_P): Likewise.
50010         * locale/programs/ld-collate.c (collate_output): Use the new
50011         macros instead of __alignof__ (int32_t).
50012         * locale/weight.h (findidx): Likewise.
50013
50014 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
50015
50016         [BZ #431]
50017         * manual/string.texi: Fix strncat and wcsncat.
50018
50019 2013-10-03  Brooks Moses  <bmoses@google.com>
50020
50021         [BZ #15915]
50022         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
50023         * Makerules: ...here, and adjust associated comments.
50024
50025 2013-10-02  Will Newton  <will.newton@linaro.org>
50026
50027         * malloc/Makefile: Add tst-pvalloc.
50028         * malloc/tst-pvalloc.c: New file.
50029
50030 2013-10-02  Will Newton  <will.newton@linaro.org>
50031
50032         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
50033         improve test coverage.
50034
50035 2013-10-02  Will Newton  <will.newton@linaro.org>
50036
50037         * malloc/Makefile: Add tst-posix_memalign.
50038         * malloc/tst-posix_memalign.c: New file.
50039
50040 2013-10-01  Eric Blake  <eblake@redhat.com>
50041
50042         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
50043         Use __THROWNL rather than __THROW on static functions.
50044
50045 2013-09-30  Petr Machata  <pmachata@redhat.com>
50046
50047         * elf/elf.h (R_AARCH64_ABS16): New macro.
50048         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
50049         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
50050         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
50051         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
50052         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
50053         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
50054         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
50055         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
50056         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
50057         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
50058         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
50059         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
50060         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
50061         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
50062         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
50063         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
50064         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
50065         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
50066         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
50067         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
50068         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
50069         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
50070         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
50071         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
50072         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
50073         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
50074         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
50075         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
50076         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
50077         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
50078         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
50079         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
50080         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
50081         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
50082         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
50083         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
50084         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
50085         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
50086         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
50087         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
50088         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
50089         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
50090         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
50091         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
50092         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
50093         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
50094         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
50095         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
50096         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
50097         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
50098         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
50099         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
50100         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
50101         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
50102         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
50103         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
50104         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
50105         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
50106         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
50107         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
50108         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
50109         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
50110         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
50111         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
50112         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
50113         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
50114         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
50115         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
50116         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
50117         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
50118         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
50119         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
50120         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
50121         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
50122         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
50123         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
50124         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
50125         (R_AARCH64_TLSDESC_LDR): Likewise.
50126         (R_AARCH64_TLSDESC_ADD): Likewise.
50127         (R_AARCH64_TLSDESC_CALL): Likewise.
50128
50129 2013-09-30  Andreas Schwab  <schwab@suse.de>
50130
50131         [BZ #15048]
50132         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
50133         the nss database lookup.
50134         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50135         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50136
50137 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
50138
50139         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
50140
50141 2013-09-28  P. J. McDermott  <pj@pehjota.net>
50142
50143         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
50144         ${Bash-specific parameter/pattern/string} parameter expansion.
50145         * sysdeps/unix/make-syscalls.sh: Likewise.
50146
50147 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
50148
50149         * sysdeps/sh/stackguard-macros.h: New file.
50150
50151 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
50152
50153         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
50154         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
50155         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
50156         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
50157         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
50158         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
50159
50160 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50161
50162         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
50163         Fix thread ID register.
50164
50165 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
50166
50167         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
50168         [POSIX || UNIX98]: Require rather than permitting all symbols from
50169         <time.h>.
50170         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
50171         element of struct sched_param.
50172         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
50173         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
50174         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
50175         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
50176         constant.
50177
50178 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
50179
50180         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
50181         argument calculation.
50182
50183 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50184
50185         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
50186         Expect macro.
50187         [POSIX] (pthread_attr_t): Do not require type.
50188         [POSIX] (pthread_cond_t): Likewise.
50189         [POSIX] (pthread_condattr_t): Likewise.
50190         [POSIX] (pthread_key_t): Likewise.
50191         [POSIX] (pthread_mutex_t): Likewise.
50192         [POSIX] (pthread_mutexattr_t): Likewise.
50193         [POSIX] (pthread_once_t): Likewise.
50194         [POSIX] (pthread_t): Likewise.
50195         [POSIX-based standards] (pthread_atfork): Expect function.
50196
50197 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50198             Richard Sandiford  <richard@codesourcery.com>
50199
50200         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
50201         (swap_endianness_p): New extern variable.
50202         (set_big_endian): New inline function.
50203         (maybe_swap_uint32): Likewise.
50204         (maybe_swap_uint32_array): Likewise.
50205         (maybe_swap_uint32_obstack): Likewise.
50206         * locale/programs/locfile.c: Include <stdbool.h>.
50207         (swap_endianness_p): New variable.
50208         (add_locale_uint32): Call maybe_swap_uint32.
50209         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
50210         (write_locale_data): Call maybe_swap_uint32_array.
50211         * locale/programs/ld-collate.c (obstack_int32_grow): Call
50212         maybe_swap_uint32.
50213         (obstack_int32_grow_fast): Likewise.
50214         (output_weightwc): Call maybe_swap_uint32_obstack.
50215         (collate_output): Likewise.
50216         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
50217         (OPT_LITTLE_ENDIAN): Likewise.
50218         (options): Add --little-endian and --big-endian options.
50219         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
50220         * locale/programs/locarchive.c: Include "locfile.h".
50221         (GET): New macro.
50222         (SET): Likewise.
50223         (INC): Likewise.
50224         (create_archive): Use the new macros to access fields of
50225         structures directly mapped from or written to locale archives.
50226         (oldlocrecentcmp): Likewise.
50227         (enlarge_archive): Likewise.
50228         (insert_name): Likewise.
50229         (add_alias): Likewise.
50230         (add_locale): Likewise.
50231         (delete_locales_from_archive): Likewise.
50232         (show_archive_content): Likewise.
50233         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
50234         locale data.
50235
50236 2013-09-24  Roland McGrath  <roland@hack.frob.com>
50237
50238         * manual/freemanuals.texi: Updated from (newly) canonical copy at
50239         http://www.gnu.org/doc/freemanuals.texi.
50240         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
50241
50242 2013-09-24  Will Newton  <will.newton@linaro.org>
50243
50244         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
50245         macro.
50246
50247 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
50248
50249         * locale/hashval.h (compute_hashval): Interpret bytes of key as
50250         unsigned char.
50251
50252 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
50253
50254         * manual/threads.texi (POSIX Threads): Fix a typo.
50255
50256 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
50257
50258         [BZ #14547]
50259         * string/tst-strcoll-overflow.c: New test case.
50260         * string/Makefile (xtests): Add tst-strcoll-overflow.
50261         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
50262         cache if string sizes may cause integer overflow.
50263
50264         [BZ #14547]
50265         * string/strcoll_l.c (coll_seq): New members rule, idx,
50266         save_idx and back_us.
50267         (get_next_seq_nocache): New function.
50268         (do_compare_nocache): New function.
50269         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
50270         when malloc fails.
50271
50272 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
50273
50274         [BZ #15754]
50275         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
50276         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
50277         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
50278
50279         [BZ #15754]
50280         * elf/Makefile (tests): Add tst-ptrguard1.
50281         (tests-static): Add tst-ptrguard1-static.
50282         (tst-ptrguard1-ARGS): Define.
50283         (tst-ptrguard1-static-ARGS): Define.
50284         * elf/tst-ptrguard1.c: New file.
50285         * elf/tst-ptrguard1-static.c: New file.
50286         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
50287         * sysdeps/i386/stackguard-macros.h: Likewise.
50288         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
50289         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
50290         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
50291         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
50292         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
50293         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
50294
50295 2013-09-23  Hector Marco  <hecmargi@upv.es>
50296             Ismael Ripoll  <iripoll@disca.upv.es>
50297             Carlos O'Donell  <carlos@redhat.com>
50298
50299         [BZ #15754]
50300         * sysdeps/generic/stackguard-macros.h: Define
50301         __pointer_chk_guard_local and POINTER_CHK_GUARD.
50302         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
50303         Define __pointer_chk_guard_local.
50304         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
50305         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
50306
50307 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
50308
50309         [BZ #15859]
50310         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
50311
50312 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
50313
50314         * include/string.h (__ffs): Declare as hidden.
50315         * string/ffs.c (__ffs): Define as hidden.
50316         * sysdeps/i386/ffs.c (__ffs): Likewise.
50317         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
50318         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
50319         * sysdeps/s390/ffs.c (__ffs): Likewise.
50320         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
50321
50322 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
50323
50324         * NEWS: Mention malloc probes.
50325
50326         * malloc/arena.c (new_heap): New memory_heap_new probe.
50327         (grow_heap): New memory_heap_more probe.
50328         (shrink_heap): New memory_heap_less probe.
50329         (heap_trim): New memory_heap_free probe.
50330         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
50331         (systrim): New memory_sbrk_less probe.
50332         * manual/probes.texi: Document them.
50333
50334         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
50335         * manual/probes.texi: Document it.
50336
50337         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
50338         (__libc_realloc): Add memory_realloc_retry probe.
50339         (__libc_memalign): Add memory_memalign_retry probe.
50340         (__libc_valloc): Add memory_valloc_retry probe.
50341         (__libc_pvalloc): Add memory_pvalloc_retry probe.
50342         (__libc_calloc): Add memory_calloc_retry probe.
50343         * manual/probes.texi: Document them.
50344
50345         * malloc/arena.c (get_free_list): Add probe
50346         memory_arena_reuse_free_list.
50347         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
50348         and memory_arena_reuse.
50349         (arena_get2) [!PER_THREAD]: Likewise.
50350         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
50351         memory_arena_reuse_realloc.
50352         * manual/probes.texi: Document them.
50353
50354         * malloc/malloc.c (__libc_free): Add
50355         memory_mallopt_free_dyn_thresholds probe.
50356         (__libc_mallopt): Add multiple memory_mallopt probes.
50357         * manual/probes.texi: Document them.
50358
50359         * malloc/malloc.c: Include stap-probe.h.
50360         (__libc_mallopt): Add memory_mallopt probe.
50361         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
50362         * manual/probes.texi: New.
50363         * manual/Makefile (chapters): Add probes.
50364         * manual/threads.texi: Set next node.
50365
50366 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
50367
50368         [BZ #15963, #13985]
50369         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
50370         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
50371         Add `Chinese' to `nan' entry name.
50372
50373 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50374
50375         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
50376         (POLYNOMIAL): Likewise.
50377         (TAYLOR_SINCOS): Likewise.
50378         (TAYLOR_SLOW): Likewise.
50379         (__sin): Use TAYLOR_SINCOS.
50380         (__cos): Likewise.
50381         (slow): Use TAYLOR_SLOW.
50382         (sloww): Likewise.
50383         (bsloww): Likewise.
50384         (csloww): Likewise.
50385
50386 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50387
50388         * stdlib/strtod_l.c: Fix buffer overrun.
50389
50390 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50391
50392         * benchtests/Makefile (bench): Add sincos.
50393         * benchtests/bench-sincos.c: New file.
50394
50395         * math/libm-test.inc (cos_test_data): New test inputs.
50396         (sin_test_data): Likewise.
50397
50398         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
50399         macro.
50400         (__sin): Use it.
50401         (__cos): Likewise.
50402         (slow1): Likewise.
50403         (slow2): Likewise.
50404         (sloww1): Likewise.
50405         (sloww2): Likewise.
50406         (bsloww1): Likewise.
50407         (bsloww2): Likewise.
50408         (cslow2): Likewise.
50409         (csloww1): Likewise.
50410         (csloww2): Likewise.
50411
50412         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
50413         function.
50414         (__sin): Use it.
50415         (__cos): Likewise.
50416
50417         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
50418         gotos.
50419         (__cos): Likewise.
50420
50421 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
50422
50423         * config.h.in (HAVE_MIPS_NAN2008): New macro.
50424         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
50425         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
50426         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
50427         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
50428         * elf/cache.c (print_entry): Handle the new cache flags.
50429
50430 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50431             Aldy Hernandez  <aldyh@redhat.com>
50432
50433         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
50434         Change condition to [_SOFT_FLOAT].
50435         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
50436         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
50437         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
50438         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
50439         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
50440         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
50441         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
50442         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
50443         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
50444         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
50445         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
50446         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
50447         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
50448         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
50449         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
50450         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
50451         declaration.
50452
50453 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50454
50455         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
50456         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50457         (__longjmp): Use LOAD_GP to load saved GPRs.
50458         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
50459         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50460         (__sigsetjmp): Use SAVE_GP to save GPRs.
50461
50462         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
50463         Do not append -msoft-float.
50464         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
50465
50466 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50467
50468         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
50469
50470 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
50471
50472         [BZ #15966]
50473         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
50474         (_FPU_GETCW): Use initial "__" on variable and field names but not
50475         on macro parameter name.
50476         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
50477         parentheses around reference to macro parameter.
50478
50479 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
50480
50481         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
50482         prototype.
50483         (ctype_startup): Use uint32_t in cast and sizeof for
50484         ctype->charnames.
50485
50486 2013-09-11  Jia Liu  <proljc@gmail.com>
50487
50488         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
50489         __daddr_t_defined.
50490         [__FreeBSD__]: Likewise.
50491
50492 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
50493
50494         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
50495         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
50496         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
50497         (strchr): Remove __strchr_sse42 ifunc selection.
50498         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
50499         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
50500
50501 2013-09-11  Will Newton  <will.newton@linaro.org>
50502
50503         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
50504         parameter to RES. Remove hardcoded 1000 value.
50505         * benchtests/bench-skeleton.c (main): Pass RES parameter
50506         to TIMING_INIT and multiply result by 1000.
50507
50508 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50509
50510         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50511
50512 2013-09-11  Andreas Schwab  <schwab@suse.de>
50513
50514         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
50515         if not defined.
50516         (O_TMPFILE) [__USE_GNU]: Define.
50517         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
50518         Define.
50519
50520 2013-09-11  Will Newton  <will.newton@linaro.org>
50521
50522         [BZ #15857]
50523         * malloc/malloc.c (__libc_memalign): Check the value of bytes
50524         does not overflow.
50525
50526 2013-09-11  Will Newton  <will.newton@linaro.org>
50527
50528         [BZ #15856]
50529         * malloc/malloc.c (__libc_valloc): Check the value of bytes
50530         does not overflow.
50531
50532 2013-09-11  Will Newton  <will.newton@linaro.org>
50533
50534         [BZ #15855]
50535         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
50536         does not overflow.
50537
50538 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
50539
50540         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
50541         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
50542         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
50543         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
50544         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
50545
50546 2013-09-10  Allan McRae  <allan@archlinux.org>
50547
50548         [BZ #15748]
50549         * manual/arith.texi (Parsing of Floats): Clarify
50550         cross-reference.
50551
50552         [BZ #15849]
50553         * manual/install.texi (Running make install): Mention
50554         --enable-pt-chown.
50555         * INSTALL: Regenerated.
50556
50557 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
50558
50559         * csu/init-first.c (_init): Remove the !SHARED condition around
50560         FPU control word initialization.
50561         * elf/dl-support.c (_dl_fpu_control): New variable.
50562         (_dl_aux_init) <AT_FPUCW>: Initialize it.
50563         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
50564         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
50565         * math/test-fpucw-static.c: New file.
50566         * math/test-fpucw-ieee.c: New file.
50567         * math/test-fpucw-ieee-static.c: New file.
50568         * math/Makefile (tests): Add `test-fpucw-ieee' and
50569         `$(tests-static)'.
50570         (tests-static): New variable.
50571         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
50572         dependency to...
50573         [($(build-shared),yes)]
50574         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
50575         ... this.
50576         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
50577         New dependency.
50578
50579 2013-09-09  Allan McRae  <allan@archlinux.org>
50580
50581         [BZ #15939]
50582         * manual/string.texi (Collation Functions): Fix typo in
50583         strcoll example.
50584         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
50585
50586         [BZ #15893]
50587         * stdlib/isomac.c (get_null_defines): Fix memory leak.
50588
50589         [BZ #15892]
50590         * libio/memstream.c (open_memstream): Fix memory leak.
50591         * libio/wmemstream.c (open_wmemstream): Likewise.
50592
50593         [BZ #15895]
50594         * nscd/netgroupcache.c: Fix nesting of ifdefs.
50595
50596 2013-09-09  Will Newton  <will.newton@linaro.org>
50597
50598         * malloc/Makefile: Add tst-realloc to tests.
50599         * malloc/tst-realloc.c: New file.
50600
50601 2013-09-09  Allan McRae  <allan@archlinux.org>
50602
50603         [BZ #15844]
50604         * COPYING: Update from GNU website to fix FSF address.
50605         * COPYING.LIB: Likewise.
50606
50607 2013-09-06  David S. Miller  <davem@davemloft.net>
50608
50609         * po/zh_TW.po: Update Chinese (traditional) translation from
50610         translation project.
50611
50612 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
50613             Joseph Myers  <joseph@codesourcery.com>
50614
50615         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
50616         "localeinfo.h".
50617         (obstack_chunk_alloc): New macro.
50618         (obstack_chunk_free): Likewise.
50619         (record_offset): New function.
50620         (init_locale_data): Likewise.
50621         (align_locale_data): Likewise.
50622         (add_locale_empty): Likewise.
50623         (add_locale_raw_data): Likewise.
50624         (add_locale_raw_obstack): Likewise.
50625         (add_locale_string): Likewise.
50626         (add_locale_wstring): Likewise.
50627         (add_locale_uint32): Likewise.
50628         (add_locale_uint32_array): Likewise.
50629         (add_locale_char): Likewise.
50630         (start_locale_structure): Likewise.
50631         (end_locale_structure): Likewise.
50632         (start_locale_prelude): Likewise.
50633         (end_locale_prelude): Likewise.
50634         (write_locale_data): Take locale_file structure rather than an
50635         iovec.
50636         * locale/programs/locfile.h: Include "obstack.h".
50637         (struct locale_file): Change to store locale file contents instead
50638         of header.
50639         (init_locale_data): New prototype.
50640         (align_locale_data): Likewise.
50641         (add_locale_empty): Likewise.
50642         (add_locale_raw_data): Likewise.
50643         (add_locale_raw_obstack): Likewise.
50644         (add_locale_string): Likewise.
50645         (add_locale_wstring): Likewise.
50646         (add_locale_uint32): Likewise.
50647         (add_locale_uint32_array): Likewise.
50648         (add_locale_char): Likewise.
50649         (start_locale_structure): Likewise.
50650         (end_locale_structure): Likewise.
50651         (start_locale_prelude): Likewise.
50652         (end_locale_prelude): Likewise.
50653         (write_locale_data): Update prototype.
50654         * locale/programs/3level.h (struct TABLE): Remove result field.
50655         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
50656         Use new locale_file interface.
50657         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
50658         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
50659         * locale/programs/ld-address.c (address_output): Use new
50660         locale_file interface.
50661         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
50662         NO_ADD_LOCALE.
50663         (collate_finish): Don't call collseq_table_finalize.
50664         (collate_output): Use new locale_file interface.
50665         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
50666         in file.
50667         (NO_FINALIZE): Change to NO_ADD_LOCALE.
50668         (TABLE): Move defines earlier in file.
50669         (ELEMENT): Likewise.
50670         (DEFAULT): Likewise.
50671         (wctrans_table_add): Move macro and inline function earlier in
50672         file.
50673         (struct wctype_table): Move type earlier in file.
50674         (add_locale_wctype_table): New static prototype.
50675         (struct locale_ctype_t): Use logical types instead of struct iovec
50676         pointers for members.
50677         (ctype_output): Use new locale_file interface.
50678         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
50679         new locale_file interface.
50680         (allocate_arrays): Update for use of new locale_file interface.
50681         * locale/programs/ld-identification.c (identification_output): Use
50682         new locale_file interface.
50683         * locale/programs/ld-measurement.c (measurement_output): Likewise.
50684         * locale/programs/ld-messages.c (messages_output): Likewise.
50685         * locale/programs/ld-monetary.c (monetary_output): Likewise.
50686         * locale/programs/ld-name.c (name_output): Likewise.
50687         * locale/programs/ld-numeric.c (numeric_output): Likewise.
50688         * locale/programs/ld-paper.c (paper_output): Likewise.
50689         * locale/programs/ld-telephone.c (telephone_output): Likewise.
50690         * locale/programs/ld-time.c (time_output): Likewise.
50691
50692 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50693
50694         * benchtests/Makefile: Add memrchr benchmark.
50695         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
50696         benchmark as memrchr.
50697         * benchtests/bench-memrchr-ifunc.c: New file.
50698         * benchtests/bench-memrchr.c: New file.
50699
50700 2013-09-06   Will Newton  <will.newton@linaro.org>
50701
50702         * benchtests/Makefile (string-bench): Add memcpy.
50703
50704 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
50705             Cong Wang  <amwang@redhat.com>
50706
50707         [BZ #15850]
50708         * sysdeps/unix/sysv/linux/bits/in.h
50709         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
50710         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
50711         before __USE_KERNEL_IPV6_DEFS uses.
50712         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
50713         IPPROTO_BEETPH.
50714         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
50715         sockaddr_in6, or ipv6_mreq.
50716
50717 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50718
50719         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
50720         memory access for final bytes in some large inputs.
50721         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
50722
50723 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50724
50725         * string/test-memrchr.c: New file.
50726         * string/test-memrchr-ifunc.c: New file.
50727         * string/Makefile: Add new memrchr testcase.
50728
50729 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
50730
50731         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
50732         fanotify_init returns EPERM.
50733
50734 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50735
50736         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
50737         errors.
50738         (top level): Treat second token from macro or constant entries for
50739         allowed headers as allowed.
50740         * include/complex.h: Condition internal declarations on
50741         [!_ISOMAC].
50742         * include/fenv.h: Condition include of <stdbool.h> and internal
50743         declarations on [!_ISOMAC].
50744
50745 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
50746
50747         [BZ #15923]
50748         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
50749
50750 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50751
50752         * configure.in (--enable-versioning): Remove configure option.
50753         (libc_cv_asm_symver_directive): Remove configure test.
50754         (libc_cv_ld_version_script_option): Likewise.
50755         (VERSIONING): Remove variable and AC_SUBST.
50756         (DO_VERSIONING): Remove AC_DEFINE.
50757         * configure: Regenerated.
50758         * config.h.in (DO_VERSIONING): Remove macro.
50759         * Makerules [$(versioning) = yes]: Change conditionals to
50760         [$(build-shared) = yes].
50761         * config.make.in (versioning): Remove variable.
50762         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
50763         [$(build-shared) = yes].
50764         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
50765         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
50766         * elf/Makefile [$(versioning) = yes]: Change conditionals to
50767         [$(build-shared) = yes].
50768         * extra-lib.mk [$(versioning) = yes]: Likewise.
50769         * hurd/Makefile [$(versioning) = yes]: Likewise.
50770         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
50771         [SHARED].
50772         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
50773         [SHARED].
50774         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50775         [SHARED && !NO_HIDDEN].
50776         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
50777         [SHARED].
50778         [SHARED && DO_VERSIONING]: Likewise..
50779         * libio/Makefile [$(versioning) = yes]: Change conditionals to
50780         [$(build-shared) = yes].
50781         * manual/install.texi (--disable-versioning): Remove
50782         documentation.
50783         * INSTALL: Regenerated.
50784         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
50785         to [SHARED].
50786         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
50787         [$(build-shared) = yes].
50788         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
50789         * sysdeps/i386/i686/multiarch/strstr-c.c
50790         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50791         [SHARED && !NO_HIDDEN].
50792         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
50793         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
50794         * sysdeps/powerpc/powerpc32/dl-machine.c
50795         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
50796         * sysdeps/powerpc/powerpc32/sysdep.h
50797         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
50798         to [SHARED && PIC && !NO_HIDDEN].
50799         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
50800         conditional to [SHARED].
50801
50802 2013-09-04   Will Newton  <will.newton@linaro.org>
50803
50804         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
50805         * benchtests/bench-string.h: Include bench-timing.h instead
50806         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
50807         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
50808         call to HP_TIMING_DIFF_INIT.
50809         * benchtests/bench-memccpy.c: Use bench-timing.h macros
50810         instead of hp-timing.h macros.
50811         * benchtests/bench-memchr.c: Likewise.
50812         * benchtests/bench-memcmp.c: Likewise.
50813         * benchtests/bench-memcpy.c: Likewise.
50814         * benchtests/bench-memmem.c: Likewise.
50815         * benchtests/bench-memmove.c: Likewise.
50816         * benchtests/bench-memset.c: Likewise.
50817         * benchtests/bench-rawmemchr.c: Likewise.
50818         * benchtests/bench-strcasecmp.c: Likewise.
50819         * benchtests/bench-strcasestr.c: Likewise.
50820         * benchtests/bench-strcat.c: Likewise.
50821         * benchtests/bench-strchr.c: Likewise.
50822         * benchtests/bench-strcmp.c: Likewise.
50823         * benchtests/bench-strcpy.c: Likewise.
50824         * benchtests/bench-strcpy_chk.c: Likewise.
50825         * benchtests/bench-strlen.c: Likewise.
50826         * benchtests/bench-strncasecmp.c: Likewise.
50827         * benchtests/bench-strncat.c: Likewise.
50828         * benchtests/bench-strncmp.c: Likewise.
50829         * benchtests/bench-strncpy.c: Likewise.
50830         * benchtests/bench-strnlen.c: Likewise.
50831         * benchtests/bench-strpbrk.c: Likewise.
50832         * benchtests/bench-strrchr.c: Likewise.
50833         * benchtests/bench-strspn.c: Likewise.
50834         * benchtests/bench-strstr.c: Likewise.
50835
50836 2013-09-04  Will Newton  <will.newton@linaro.org>
50837
50838         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
50839
50840 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
50841
50842         [BZ #15427]
50843         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
50844         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
50845         * math/libm-test.inc (lgamma_test_data): Add more tests.
50846         * sysdeps/i386/fpu/libm-test-ulps: Update.
50847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50848
50849 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
50850
50851         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
50852         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50853         Add ifunc.
50854         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50855         Add strcmp-sse2-unaligned
50856         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
50857
50858 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50859
50860         * Versions.def (libc): Add GLIBC_2.19.
50861
50862 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50863
50864         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
50865         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
50866
50867 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
50868
50869         [BZ #14155]
50870         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
50871         intermediate calculations in recurrence.
50872         (__ieee754_ynf): Likewise.
50873         * math/libm-test.inc (jn_test_data): Do not allow spurious
50874         underflow exception.  Add more tests.
50875         (yn_test_data): Add more tests.
50876         * sysdeps/i386/fpu/libm-test-ulps: Update.
50877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50878
50879 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
50880
50881         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
50882
50883 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50884
50885         * csu/init-first.c: Fix then/than typos.
50886         * locale/programs/ld-collate.c: Likewise.
50887         * locale/programs/linereader.h: Likewise.
50888         * manual/charset.texi: Likewise.
50889         * manual/filesys.texi: Likewise.
50890         * manual/stdio.texi: Likewise.
50891         * manual/string.texi: Likewise.
50892         * stdlib/fmtmsg.c: Likewise.
50893         * sysdeps/i386/stpncpy.S: Likewise.
50894         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
50895         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
50896         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
50897         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
50898
50899 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50900
50901         * elf/dl-open.c: Fix typos.
50902         * iconvdata/gbbig5.c: Likewise.
50903         * iconvdata/iso-2022-jp.c: Likewise.
50904         * iconv/gconv_int.h: Likewise.
50905         * iconv/loop.c: Likewise.
50906         * nis/rpcsvc/nis.h: Likewise.
50907         * resolv/ns_name.c: Likewise.
50908         * stdio-common/vfscanf.c: Likewise.
50909         * streams/stropts.h: Likewise.
50910         * sunrpc/rpc_thread.c: Likewise.
50911         * sysdeps/i386/strpbrk.S: Likewise.
50912         * sysdeps/ieee754/k_standard.c: Likewise.
50913         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
50914         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50915         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
50916         * sysdeps/mach/hurd/profil.c: Likewise.
50917         * sysdeps/s390/dl-procinfo.h: Likewise.
50918         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
50919         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
50920         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
50921         * sysdeps/x86_64/dl-trampoline.S: Likewise.
50922         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
50923
50924 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
50925
50926         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
50927         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
50928
50929 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
50930
50931         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
50932         aix specific files.
50933         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
50934         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
50935         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
50936         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
50937         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
50938         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
50939         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
50940         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
50941
50942 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50943             Roland McGrath  <roland@hack.frob.com>
50944
50945         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
50946         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
50947
50948 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50949
50950         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
50951         __executable_start symbol instead of _start.
50952
50953 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50954
50955         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
50956         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
50957         Move macros to...
50958         * sysdeps/gnu/ldsodefs.h: ... this new file.
50959
50960         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
50961         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
50962         instead of ELFOSABI_LINUX.
50963
50964         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
50965         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
50966         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
50967         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
50968         Likewise.
50969         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
50970         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
50971         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
50972         Likewise.
50973         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50974         (ibm_extended_long_double): Add ieee_nan member.
50975         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
50976         (do_test): New function.
50977
50978         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
50979         TEST_TRUNC.
50980         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
50981         functions, renamed from truncdfsf_test, trunctfsf_test,
50982         trunctfdf_test.
50983         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
50984         functions.
50985         (do_test): Run all these.
50986
50987 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
50988
50989         * argp/argp-help.c: Fix typos.
50990         * argp/argp-parse.c: Likewise.
50991         * debug/backtracesyms.c: Likewise.
50992         * elf/elf.h: Likewise.
50993         * malloc/malloc.c: Likewise.
50994         * nis/nis_print.c: Likewise.
50995         * resolv/res_comp.c: Likewise.
50996         * stdlib/stdlib.h: Likewise.
50997         * sunrpc/clnt_tcp.c: Likewise.
50998         * sunrpc/clnt_udp.c: Likewise.
50999         * sunrpc/clnt_unix.c: Likewise.
51000         * sysdeps/unix/bsd/ptsname.c: Likewise.
51001         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
51002         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
51003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
51004         Likewise.
51005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
51006         Likewise.
51007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
51008         Likewise.
51009         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
51010
51011 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51012
51013         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
51014         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
51015
51016 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
51017
51018         [BZ #15897]
51019         * dlfcn/Makefile (tests): Add bug-dl-leaf.
51020         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
51021         ($(objpfx)bug-dl-leaf): New rule.
51022         ($(objpfx)bug-dl-leaf.so): Likewise.
51023         ($(objpfx)bug-dl-leaf.out): Likewise.
51024         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
51025         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
51026         * dlfcn/bug-dl-leaf.c: New test.
51027         * dlfcn/bug-dl-leaf-lib.c: Likewise.
51028         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
51029         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
51030         (dlclose): Likewise.
51031         (dlmopen): Likewise.
51032
51033 2013-08-27  Roland McGrath  <roland@hack.frob.com>
51034
51035         * include/netdb.h [!_ISOMAC]:
51036         Don't include <tls.h>.
51037         (h_errno, __libc_h_errno): Move declaration and macros out of
51038         [_LIBC_REENTRANT].
51039
51040         * include/resolv.h [_RESOLV_H_]:
51041         Don't include <tls.h>.
51042         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
51043         * resolv/res_libc.c: Don't include <tls.h>.
51044         (_res): Use __attribute__ ((nocommon)) in place of
51045         __attribute__ ((section (".bss"))).
51046
51047         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
51048         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
51049
51050         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
51051
51052         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
51053         only under [SIOCGIFCONF && SIOCGIFNETMASK].
51054
51055         * resolv/res_mkquery.c: Include <sys/time.h>.
51056
51057         * inet/ifreq.c: Moved to ...
51058         * sysdeps/unix/ifreq.c: ... here.
51059         * inet/ifreq.c: New file, true stub version.
51060
51061         * socket/sa_len.c: New file.
51062         * socket/Makefile (aux): Add it.
51063         * sysdeps/unix/sysv/linux/Makefile
51064         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
51065         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
51066         and #include <socket/sa_len.c>.
51067         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
51068         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
51069
51070         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
51071         * bits/socket.h: ... here.
51072
51073         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
51074         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
51075         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
51076
51077 2013-08-27  Andreas Schwab  <schwab@suse.de>
51078
51079         [BZ #15736]
51080         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
51081         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
51082         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
51083         * string/test-strcasecmp.c (test_main): Run tests in several
51084         locales.
51085         * string/test-strncasecmp.c (test_main): Likewise.
51086
51087         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
51088         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
51089         to __strcasecmp_nonascii and __strncasecmp_nonascii.
51090         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
51091         (__strncasecmp_ssse3) [PIC]: Likewise.
51092
51093 2013-08-26  Roland McGrath  <roland@hack.frob.com>
51094
51095         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
51096
51097         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
51098         instead of explicitly declaring xdecrypt.
51099         * nis/nss_nis/nis-publickey.c: Likewise.
51100
51101 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51102
51103         [BZ #15890]
51104         * nscd/aicache.c: Include res_hconf.h.
51105         (addhstaiX): Initialize res_hconf.
51106
51107 2013-08-26  Andreas Schwab  <schwab@suse.de>
51108
51109         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
51110         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
51111
51112 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51113
51114         * nscd/aicache.c (addhstaiX): Fix indentation.
51115
51116 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
51117
51118         * configure.ac: Quote $build_pt_chown test.
51119         * configure: Regenerated.
51120
51121 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
51122
51123         [BZ #15532]
51124         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
51125         * math/s_cexpf.c (__cexpf): Likewise.
51126         * math/s_cexpl.c (__cexpl): Likewise.
51127         * math/libm-test.inc (cexp_test_data): Correct expected return
51128         value for NaN + i0.  Add another test.
51129
51130 2013-08-22  David S. Miller  <davem@davemloft.net>
51131
51132         * po/ca.po: Update Catalan translation from translation project.
51133         * po/uk.po: Add Ukrainian translations from translation project.
51134
51135 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
51136
51137         [BZ #15797]
51138         * math/s_fdim.c (__fdim): Check for infinite arguments if result
51139         is infinite, not alongside NaN test.
51140         * math/s_fdimf.c (__fdimf): Likewise.
51141         * math/s_fdiml.c (__fdiml): Likewise.
51142         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
51143         errno is unchanged.
51144
51145 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
51146
51147         * argp/argp-help.c: Fix typos.
51148         * crypt/speeds.c: Likewise.
51149         * csu/check_fds.c: Likewise.
51150         * elf/dl-load.c: Likewise.
51151         * elf/dl-open.c: Likewise.
51152         * elf/reldep3.c: Likewise.
51153         * elf/reldep.c: Likewise.
51154         * elf/sprof.c: Likewise.
51155         * iconv/iconv_charmap.c: Likewise.
51156         * iconv/skeleton.c: Likewise.
51157         * iconv/strtab.c: Likewise.
51158         * io/lockf64.c: Likewise.
51159         * libio/libioP.h: Likewise.
51160         * resolv/gai_notify.c: Likewise.
51161         * resolv/ns_name.c: Likewise.
51162         * resolv/ns_samedomain.c: Likewise.
51163         * resolv/res_send.c: Likewise.
51164         * stdlib/random.c: Likewise.
51165         * sunrpc/rpc/xdr.h: Likewise.
51166         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
51167         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
51168         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
51169         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
51170         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
51171         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
51172         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
51173         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
51174         * sysdeps/mach/hurd/check_fds.c: Likewise.
51175         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
51176         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
51177         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
51178         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
51179         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
51180         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
51181         * sysdeps/pthread/aio_notify.c: Likewise.
51182         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
51183         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
51184         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
51185         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
51186         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
51187
51188 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51189
51190         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
51191         version if bit_Slow_SSE4_2 is set.
51192         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
51193         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
51194
51195 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51196
51197         [BZ #15867]
51198         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
51199         trampoline stack frame information.
51200         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
51201         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
51202         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
51203         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
51204         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
51205         * sysdeps/unix/sysv/linux/powerpc/init-first.c
51206         (_libc_vdso_platform_setup): Initialize the signal trampolines.
51207         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
51208         sa_flags value.
51209         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
51210         interrupting a syscall and set with option SA_SIGINFO.
51211
51212 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51213
51214         [BZ #15531]
51215         * math/s_cproj.c (__cproj): Only return an infinity if one part of
51216         argument is infinite.
51217         * math/s_cprojf.c (__cprojf): Likewise.
51218         * math/s_cprojl.c (__cprojl): Likewise.
51219         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
51220         * math/libm-test.inc (cproj_test_data): Add more tests.
51221
51222         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
51223
51224         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
51225         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
51226         size.  Use __ffs to determine corresponding shift.
51227
51228 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51229             Roland McGrath  <roland@hack.frob.com>
51230
51231         * Makefile (INSTALL): Remove trailing blank lines from output of
51232         makeinfo.
51233
51234 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51235
51236         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
51237         Align 32 bit compat elf_greg to 8 bytes.
51238
51239 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
51240
51241         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
51242
51243 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51244
51245         * string/strcoll_l.c (coll_seq): New structure.
51246         (get_next_seq_cached): New function.
51247         (get_next_seq): New function.
51248         (do_compare): New function.
51249         (STRCOLL): Use GNU style definition.  Simplify implementation
51250         by using get_next_seq, get_next_seq_cached and do_compare.
51251
51252 2013-08-16  Florian Weimer  <fweimer@redhat.com>
51253
51254         [BZ #14699]
51255         CVE-2013-4237
51256         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
51257         member.
51258         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
51259         member.
51260         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
51261         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
51262         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
51263         conditional.
51264         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
51265         GETDENTS_64BIT_ALIGNED.
51266         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
51267         * manual/filesys.texi (Reading/Closing Directory): Document
51268         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
51269         strongly.
51270         * manual/conf.texi (Limits for Files): Add portability note to
51271         NAME_MAX, PATH_MAX.
51272         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
51273
51274 2013-08-13  Andreas Schwab  <schwab@suse.de>
51275
51276         [BZ #15749]
51277         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
51278         of fabs.
51279         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
51280         LDBL_MAX_EXP >= 16384]: Add tests for it.
51281
51282 2013-08-12  David S. Miller  <davem@davemloft.net>
51283
51284         * version.h (RELEASE): Set to "development".
51285         (VERSION): Set to "2.18.90".
51286         * NEWS: Add 2.19 section.
51287
51288 2013-08-03  David S. Miller  <davem@davemloft.net>
51289
51290         * po/ko.po: Update Korean translation from translation project.
51291
51292 2013-08-01  David S. Miller  <davem@davemloft.net>
51293
51294         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
51295         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
51296         Bilka.
51297
51298 2013-07-30  David S. Miller  <davem@davemloft.net>
51299
51300         * po/fr.po: Update French translation from translation project.
51301
51302 2013-07-28  David S. Miller  <davem@davemloft.net>
51303
51304         * po/cs.po: Update Czech translation from translation project.
51305
51306         * po/sv.po: Update Swedish translation from translation project.
51307
51308 2013-07-27  David S. Miller  <davem@davemloft.net>
51309
51310         * po/eo.po: Update Esperanto translation from translation project.
51311
51312         * po/vi.po: Update Vietnamese translation from translation project.
51313
51314         * po/de.po: Update German translation from translation project.
51315
51316 2013-07-26  David S. Miller  <davem@davemloft.net>
51317
51318         * po/bg.po: Update Bulgarian translation from translation project.
51319
51320         * po/nl.po: Update Dutch translation from translation project.
51321         * po/pl.po: Update Polish translation from translation project.
51322         * po/ru.po: Update Russian translation from translation project.
51323
51324 2013-07-24  David S. Miller  <davem@davemloft.net>
51325
51326         * po/libc.pot: Update.
51327
51328 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51329
51330         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
51331         variable page size.
51332         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
51333         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
51334         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
51335
51336 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51337
51338         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
51339
51340 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51341             Andreas Schwab  <schwab@suse.de>
51342             Roland McGrath  <roland@hack.frob.com>
51343             Joseph Myers  <joseph@codesourcery.com>
51344             Carlos O'Donell  <carlos@redhat.com>
51345
51346         [BZ #15755]
51347         * config.h.in: Define HAVE_PT_CHOWN.
51348         * config.make.in (build-pt-chown): New variable.
51349         * configure.in (--enable-pt_chown): New configure option.
51350         * configure: Regenerate.
51351         * login/Makefile: Include Makeconfig.  Build pt_chown only if
51352         build-pt-chown is enabled.
51353         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
51354         pt_chown to fix pty ownership.
51355         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
51356         CLOSE_ALL_FDS.
51357         * manual/install.texi (Configuring and compiling): Mention
51358         --enable-pt_chown. Add @findex for grantpt.
51359         * INSTALL: Regenerate.
51360
51361 2013-07-20  David S. Miller  <davem@davemloft.net>
51362
51363         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
51364         difference between 32-bit and 64-bit.
51365
51366 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
51367
51368         [BZ #15711]
51369         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
51370         Avoid system header dependency with -ffreestanding.
51371         ($(objpfx)bits/syscall%d): Likewise.
51372
51373 2013-07-13  David S. Miller  <davem@davemloft.net>
51374
51375         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
51376         underflows from atanl/atan2l due to bug 15319.
51377         (casinh_test_data): Likewise.
51378
51379 2013-07-07  David S. Miller  <davem@davemloft.net>
51380
51381         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
51382
51383 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
51384
51385         * sysdeps/i386/fpu/libm-test-ulps: Update.
51386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51387
51388 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
51389
51390         * configure.in (--enable-lock-elision): Fix message text.
51391         * INSTALL: Regenerate.
51392         * configure: Regenerate.
51393
51394 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51395
51396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51397
51398 2013-07-03  Andreas Jaeger  <aj@suse.de>
51399
51400         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
51401         define.
51402         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
51403         (ptrace_peeksiginfo_args): Add.
51404         (__ptrace_peeksiginfo_flags): Add.
51405         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51406         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51407         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51408
51409 2013-07-03  Allan McRae  <allan@archlinux.org>
51410
51411         * sysdeps/i386/fpu/libm-test-ulps: Update.
51412
51413 2013-07-02  David S. Miller  <davem@davemloft.net>
51414
51415         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51416
51417 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
51418
51419         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51420
51421 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51422
51423         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51425
51426 2013-07-02  Andi Kleen <ak@linux.intel.com>
51427
51428         * config.h.in (ENABLE_LOCK_ELISION): Add.
51429         * configure.in (--enable-lock-elision): Add option.
51430         * manual/install.texi: Document --enable lock elision.
51431         * configure: Regenerate
51432         * INSTALL: Regenerate.
51433
51434 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
51435
51436         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
51437         SSE4.2 strcasecmp for libc.a.
51438         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
51439
51440 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51441
51442         [BZ #13304]
51443         * soft-fp/op-common.h (_FP_FMA): New macro.
51444         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
51445         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
51446         (_FP_MUL_MEAT_1_imm): ... here.
51447         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
51448         (_FP_MUL_MEAT_1_wide): ... here.
51449         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
51450         (_FP_MUL_MEAT_1_hard): ... here.
51451         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
51452         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
51453         (_FP_MUL_MEAT_2_wide): ... here.
51454         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
51455         (_FP_MUL_MEAT_2_wide_3mul): ... here.
51456         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
51457         (_FP_MUL_MEAT_2_gmp): ... here.
51458         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
51459         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
51460         (_FP_MUL_MEAT_4_wide): ... here.
51461         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
51462         (_FP_MUL_MEAT_4_gmp): ... here.
51463         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
51464         (_FP_WFRACBITS_DW_S): Likewise.
51465         (_FP_WFRACXBITS_DW_S): Likewise.
51466         (_FP_HIGHBIT_DW_S): Likewise.
51467         (FP_FMA_S): Likewise.
51468         (_FP_FRAC_HIGH_DW_S): Likewise.
51469         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
51470         (_FP_WFRACBITS_DW_D): Likewise.
51471         (_FP_WFRACXBITS_DW_D): Likewise.
51472         (_FP_HIGHBIT_DW_D): Likewise.
51473         (FP_FMA_D): Likewise.
51474         (_FP_FRAC_HIGH_DW_D): Likewise.
51475         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
51476         (_FP_WFRACBITS_DW_E): Likewise.
51477         (_FP_WFRACXBITS_DW_E): Likewise.
51478         (_FP_HIGHBIT_DW_E): Likewise.
51479         (FP_FMA_E): Likewise.
51480         (_FP_FRAC_HIGH_DW_E): Likewise.
51481         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
51482         (_FP_WFRACBITS_DW_Q): Likewise.
51483         (_FP_WFRACXBITS_DW_Q): Likewise.
51484         (_FP_HIGHBIT_DW_Q): Likewise.
51485         (FP_FMA_Q): Likewise.
51486         (_FP_FRAC_HIGH_DW_Q): Likewise.
51487         * soft-fp/fmasf4.c: New file.
51488         * soft-fp/fmadf4.c: Likewise.
51489         * soft-fp/fmatf4.c: Likewise.
51490
51491 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51492
51493         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
51494         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
51495         Silvermont.
51496         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
51497         macro.
51498         (index_Slow_SSE4_2): Likewise.
51499         (index_Prefer_PMINUB_for_stringop): Likewise.
51500         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
51501         bit_Slow_SSE4_2 is set.
51502         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51503         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
51504
51505 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51506
51507         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
51508         rtld_global._dl_hwcap2.
51509         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
51510         POWER8.
51511         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
51512         POWER8 feature descriptions defined in _dl_hwcap2.
51513         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
51514         string handling for POWER8 feature bits.
51515         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
51516         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
51517         _dl_powerpc_cap_flags.
51518         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
51519         * sysdeps/powerpc/rtld-global-offsets.sym
51520         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
51521         _dl_hwcap2 in the rtld_global_ro structure.
51522
51523 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51524
51525         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
51526         hardware capabilities in support of AT_HWCAP2.
51527         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
51528         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
51529         GLRO(dl_hwcap2).
51530         (_dl_show_auxv): Add support for calling _dl_procinfo to display
51531         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
51532         explicitly the unknown a_type display mechanism is used.
51533         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
51534         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
51535         struct member.
51536         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
51537         to macro prototype for AT_HWCAP2 support.
51538         * sysdeps/i386/dl-procinfo.h: Likewise.
51539         * sysdeps/s390/dl-procinfo.h: Likewise.
51540         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
51541         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
51542         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
51543         return -1 for unknown a_type display fallback.
51544         * sysdeps/sparc/dl-procinfo.h: Likewise.
51545         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
51546         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
51547
51548 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
51549
51550         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
51551         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
51552
51553 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
51554
51555         [BZ #12492]
51556         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
51557         mprotect making __stack_prot writable.
51558
51559 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
51560             Joseph Myers  <joseph@codesourcery.com>
51561
51562         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
51563         as being properly aligned.
51564
51565 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
51566
51567         * dlfcn/modstatic5.c: New file.
51568         * dlfcn/tststatic5.c: New file.
51569         * dlfcn/Makefile (tests): Add tststatic5.
51570         (tests-static): Likewise.
51571         (modules-names): Add modstatic5.
51572         (tststatic5-ENV): New variable.
51573         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
51574
51575         [BZ #15022]
51576         * elf/dl-support.c (_dl_main_map): New variable.
51577         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
51578         (_dl_nns, _dl_load_adds): Set to 1.
51579         (_dl_initial_searchlist): Refer to _dl_main_map.
51580         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
51581         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
51582         call to _dl_get_origin.
51583         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
51584         around call_map.
51585         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
51586         * dlfcn/modstatic3.c: New file.
51587         * dlfcn/tststatic3.c: New file.
51588         * dlfcn/tststatic4.c: New file.
51589         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
51590         (tests-static): Likewise.
51591         (modules-names): Add modstatic3.
51592         (tststatic3-ENV, tststatic4-ENV): New variables.
51593         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
51594         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
51595
51596 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
51597
51598         * configure.in (CC): Require GCC version 4.4 or later.
51599         * configure: Regenerated.
51600         * manual/install.texi (Tools for Compilation): Update GCC version
51601         requirement.
51602         * INSTALL: Regenerated.
51603
51604 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51605
51606         [BZ #15674]
51607         * string/test-memcmp.c (check2): New.
51608         (main): Call check2.
51609
51610         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
51611
51612 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
51613
51614         [BZ #15022]
51615         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
51616         over to...
51617         (dl_open_worker) [!SHARED]: ... here.
51618
51619 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51620
51621         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
51622
51623 2013-06-25  Richard Henderson  <rth@redhat.com>
51624
51625         * locale/programs/locarchive.c: Include <libc-internal.h>
51626
51627 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
51628
51629         * manual/texinfo.tex: Update to version 2013-06-21.17, with
51630         trailing whitespace removed.
51631
51632 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51633
51634         [BZ #10283]
51635         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
51636         * locale/programs/locarchive.c: Include libc-mmap.h.
51637         (prepare_address_space): Take two new outputs (the mmap base and len).
51638         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
51639         values.
51640         (create_archive): Declare new mmap base and len values for
51641         prepare_address_space, and store the result in ah.
51642         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
51643         (enlarge_archive): If ah->mmap_base is not NULL, use that and
51644         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51645         Declare new mmap base and len values for
51646         prepare_address_space, and store the result in new_ah.
51647         (open_archive): Declare new mmap base and len values for
51648         prepare_address_space, and store the result in ah.
51649         (close_archive): If ah->mmap_base is not NULL, use that and
51650         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51651         * sysdeps/generic/libc-mmap.h: New file.
51652
51653 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51654
51655         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
51656         (ALIGN_UP): Likewise.
51657         (PTR_ALIGN_DOWN): Likewise.
51658         (PTR_ALIGN_UP): Likewise.
51659
51660 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51661
51662         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
51663         entry mapped to PPC_PLATFORM_POWER8.
51664         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
51665         POWER8.
51666         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
51667         (_dl_string_platform): Add case for exporting platform position for
51668         POWER8.
51669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
51670         search path to sysdeps/powerpc/powerpc32/power8 directory.
51671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
51672         search path to sysdeps/powerpc/powerpc64/power8 directory.
51673         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
51674         power7 directories.
51675         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
51676         power7 directories.
51677
51678 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51679
51680         * INSTALL: Regenerate.
51681
51682         * nscd/connections.c (nscd_init): Fix comment.
51683
51684 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
51685
51686         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
51687
51688         [BZ #15667]
51689         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
51690         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
51691
51692 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51693
51694         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
51695         DL_DST_REQ_STATIC.
51696         (DL_DST_REQ_STATIC): Remove macro.
51697
51698 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
51699
51700         [BZ #7006]
51701         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
51702         with a shift of 0 bits.
51703
51704 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51705
51706         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
51707         $(tststatic-ENV).
51708
51709 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51710
51711         [BZ #15655]
51712         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
51713
51714 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51715
51716         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
51717         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
51718         accepts -fno-tree-loop-distribute-patterns.
51719         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
51720         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
51721         recursive call.
51722         * string/memset.c (memset): Likewise.
51723         * string/test-memmove.c (simple_memmove): Disable loop transformation
51724         to library calls.
51725         * string/test-memset.c (simple_memset): Likewise.
51726         * benchtests/bench-memmove.c (simple_memmove): Likewise.
51727         * benchtests/bench-memset.c (simple_memset): Likewise.
51728         * configure: Regenerated.
51729
51730 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
51731
51732         * math/test-misc.c (main): Ignore fesetround failure when failures
51733         of subsequent rounding tests would be ignored.
51734
51735         [BZ #15654]
51736         * math/fedisblxcpt.c (fedisableexcept): Return 0.
51737         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
51738         * math/fegetenv.c (__fegetenv): Return 0.
51739         * math/fegetexcept.c (fegetexcept): Return 0.
51740         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
51741         FE_TONEAREST.
51742         * math/feholdexcpt.c (feholdexcept): Return 0.
51743         * math/fesetenv.c (__fesetenv): Return 0.
51744         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
51745         argument FE_TONEAREST.
51746         * math/feupdateenv.c (__feupdateenv): Return 0.
51747         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
51748
51749 2013-06-18  Roland McGrath  <roland@hack.frob.com>
51750
51751         * elf/rtld-Rules (rtld-compile-command.S): New variable.
51752         (rtld-compile-command.s, rtld-compile-command.c): New variables.
51753         ($(objpfx)rtld-%.os rules): Use them.
51754
51755 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51756
51757         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
51758         fields.
51759
51760 2013-06-17  Roland McGrath  <roland@hack.frob.com>
51761
51762         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
51763         length of target pattern, then descending length of dependency pattern.
51764         * configure.in (AWK): Require gawk 3.1.2 or newer.
51765         * manual/install.texi (Tools for Compilation): Say that we do.
51766         * configure: Regenerated.
51767
51768         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
51769         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
51770         * scripts/sysd-rules.awk: ... this new script.
51771         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
51772         than a glob-style pattern.
51773
51774 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
51775
51776         * math/test-misc.c (main): Do not treat incorrectly rounded
51777         conversions as failure unless ROUNDING_TESTS passes.
51778
51779 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
51780
51781         [BZ #15631]
51782         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
51783         restore exception state around main square root computation, then
51784         check for inexactness explicitly.
51785
51786         * math/libm-test.inc (fma_test_data): Add another test.
51787
51788 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51789
51790         * manual/threads.texi (Non-POSIX Extensions): New document
51791         node.  Document pthread_getattr_default_np and
51792         pthread_setattr_default_np.
51793
51794         * Versions.def (libpthread): Add GLIBC_2.18.
51795         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
51796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
51797         Likewise.
51798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
51799         Likewise.
51800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
51801         Likewise.
51802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
51803         Likewise.
51804         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
51805         Likewise.
51806         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
51807         Likewise.
51808         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
51809         Likewise.
51810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
51811         Likewise.
51812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
51813         Likewise.
51814
51815 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51816
51817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51818         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
51819
51820 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51821             H.J. Lu  <hjl.tools@gmail.com>
51822
51823         [BZ #15627]
51824         * sysdeps/x86_64/rtld-memset.c: Remove file.
51825         * sysdeps/x86_64/rtld-memset.S: New file.
51826
51827 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
51828
51829         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
51830         (test_in_one_mode): Take arguments for whether the rounding mode
51831         is supported for each floating-point type.
51832         (do_test): Pass new arguments to test_in_one_mode using
51833         ROUNDING_TESTS.
51834
51835 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51836
51837         * posix/tst-waitid.c (do_test): Distinguish different instances of
51838         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
51839         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
51840         before entering the kernel for waitpid.
51841
51842 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51843
51844         * NEWS: Fix note on clock function precision.  Text by Roland
51845         McGrath.
51846
51847 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51848
51849         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
51850         it into place only when and if the sanity check passes.
51851
51852 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
51853
51854         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
51855         output for whether conversion result is exact.  Take argument
51856         indicating whether type is IBM long double.
51857         (round_for_all): Change need_exact field to ibm_ld.
51858         * stdlib/tst-strtod-round.c (struct exactness): New type.
51859         (struct test): Change bool ld_ok field to struct exactness exact.
51860         (TEST): Update all definitions for change to field.
51861         (tests): Regenerate array contents.
51862         (test_in_one_mode): Take pointer to new field instead of old ld_ok
51863         field value.  Check for IBM long double here.
51864         (do_test): Update calls to test_in_one_mode.
51865
51866 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51867
51868         [BZ #12515]
51869         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
51870         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
51871
51872 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51873
51874         [BZ #15605]
51875         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
51876         generated by the compiler on loop optimizations.
51877         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
51878         general definitions.
51879
51880 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
51881
51882         * math/bug-nextafter.c: Include <math-tests.h>.
51883         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51884         the relevant type.
51885         * math/bug-nexttoward.c: Include <math-tests.h>.
51886         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51887         the relevant type.
51888         * math/test-misc.c: Include <math-tests.h>.
51889         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51890         the relevant type.
51891
51892 2013-06-12  Andreas Jaeger  <aj@suse.de>
51893
51894         * po/ia.po: Update Interlingua translation from translation
51895         project.
51896
51897 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
51898
51899         * include/fenv.h: Include stdbool.h.
51900         (struct rm_ctx): New structure.
51901         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
51902         Define macro.
51903         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
51904         (SET_RESTORE_ROUNDF): Likewise.
51905         (SET_RESTORE_ROUNDL): Likewise.
51906         (SET_RESTORE_ROUND_NOEX): Likewise.
51907         (SET_RESTORE_ROUND_NOEXF): Likewise.
51908         (SET_RESTORE_ROUND_NOEXL): Likewise.
51909         (SET_RESTORE_ROUND_53BIT): Likewise.
51910         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
51911         (libc_feresetround_noexf_ctx): Likewise.
51912         (libc_feresetround_noexl_ctx): Likewise.
51913         (libc_feholdsetround_53bit_ctx): Likewise.
51914         (libc_feresetround_53bit_ctx): Likewise.
51915         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
51916         (libc_feholdexcept_setround_sse_ctx): New function.
51917         (libc_fesetenv_sse_ctx): Likewise.
51918         (libc_feupdateenv_sse_ctx): Likewise.
51919         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
51920         (libc_feholdexcept_setround_387_ctx): Likewise.
51921         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
51922         (libc_feholdsetround_387_prec_ctx): Likewise.
51923         (libc_feholdsetround_387_ctx): Likewise.
51924         (libc_feholdsetround_387_53bit_ctx): Likewise.
51925         (libc_feholdsetround_sse_ctx): Likewise.
51926         (libc_feresetround_sse_ctx): Likewise.
51927         (libc_feresetround_387_ctx): Likewise.
51928         (libc_feupdateenv_387_ctx): Likewise.
51929         (libc_feholdexcept_setroundf_ctx): Define macro.
51930         (libc_fesetenvf_ctx): Likewise.
51931         (libc_feupdateenvf_ctx): Likewise.
51932         (libc_feholdsetroundf_ctx): Likewise.
51933         (libc_feresetroundf_ctx): Likewise.
51934         (libc_feholdexcept_setround_ctx): Likewise.
51935         (libc_fesetenv_ctx): Likewise.
51936         (libc_feupdateenv_ctx): Likewise.
51937         (libc_feholdsetround_ctx): Likewise.
51938         (libc_feresetround_ctx): Likewise.
51939         (libc_feholdexcept_setroundl_ctx): Likewise.
51940         (libc_feupdateenvl_ctx): Likewise.
51941         (libc_feholdsetroundl_ctx): Likewise.
51942         (libc_feresetroundl_ctx): Likewise.
51943         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
51944         (libc_feresetround_53bit_ctx): Likewise.
51945
51946 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51947
51948         * locale/iso-639.def: Convert to UTF-8.
51949
51950 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
51951
51952         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
51953         (EXCEPTION_TESTS_double): Likewise.
51954         (EXCEPTION_TESTS_long_double): Likewise.
51955         (EXCEPTION_TESTS): Likewise.
51956         * math/libm-test.inc (test_exceptions): Only test exceptions if
51957         EXCEPTION_TESTS (FLOAT).
51958
51959 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51960
51961         * benchtests/Makefile (string-bench): Add strcpy_chk and
51962         stpcpy_chk.
51963         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
51964         * benchtests/bench-stpcpy_chk.c: New file.
51965         * benchtests/bench-strcpy_chk-ifunc.c: New file.
51966         * benchtests/bench-strcpy_chk.c: New file.
51967         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
51968         code.
51969         (do_test): Likewise.
51970
51971 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51972
51973         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
51974         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
51975         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
51976         with tabs where appropriate.
51977         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
51978         dl-procinfo.h.
51979         [PPC_PLATFORM_PPC440]: Likewise.
51980         [PPC_PLATFORM_PPC464]: Likewise.
51981         [PPC_PLATFORM_PPC476]: Likewise.
51982         (_dl_string_platform): Add support for detecting ppc405, ppc440,
51983         ppc464, and ppc476 platform strings merging from ports/
51984         dl-procinfo.h.
51985
51986 2013-06-11  Andreas Schwab  <schwab@suse.de>
51987
51988         [BZ #14991]
51989         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
51990         (from_ucs4_idx): Regenerate.
51991         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
51992         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
51993         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
51994         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
51995         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
51996         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
51997         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
51998         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
51999         from FROM_LOOP and TO_LOOP specific macros.
52000         (BODY): Handle combining characters.
52001         * iconvdata/BIG5HKSCS.irreversible: Update.
52002         * iconvdata/BIG5HKSCS.precomposed: New file.
52003         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
52004         characters.
52005         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
52006
52007 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52008
52009         * include/sys/time.h: Fix indentation and add copyright header.
52010
52011         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
52012         (do_test): Likewise.
52013         * string/test-memchr.c (do_one_test): Likewise.
52014         (do_test): Likewise.
52015         * string/test-memcmp.c (do_one_test): Likewise.
52016         (do_test): Likewise.
52017         * string/test-memcpy.c (do_one_test): Likewise.
52018         (do_test): Likewise.
52019         * string/test-memmem.c (do_one_test): Likewise.
52020         (do_test): Likewise.
52021         (do_random_tests): Likewise.
52022         * string/test-memmove.c (do_one_test): Likewise.
52023         (do_test): Likewise.
52024         * string/test-memset.c (do_one_test): Likewise.
52025         (do_test): Likewise.
52026         * string/test-rawmemchr.c (do_one_test): Likewise.
52027         (do_test): Likewise.
52028         * string/test-strcasecmp.c (do_one_test): Likewise.
52029         (do_test): Likewise.
52030         * string/test-strcasestr.c (do_one_test): Likewise.
52031         (do_test): Likewise.
52032         * string/test-strcat.c (do_one_test): Likewise.
52033         (do_test): Likewise.
52034         * string/test-strchr.c (do_one_test): Likewise.
52035         (do_test): Likewise.
52036         * string/test-strcmp.c (do_one_test): Likewise.
52037         (do_test): Likewise.
52038         * string/test-strcpy.c (do_one_test): Likewise.
52039         (do_test): Likewise.
52040         * string/test-string.h: Likewise.
52041         (test_init): Likewise.
52042         * string/test-strlen.c (do_one_test): Likewise.
52043         (do_test): Likewise.
52044         * string/test-strncasecmp.c (do_one_test): Likewise.
52045         (do_test): Likewise.
52046         * string/test-strncat.c (do_one_test): Likewise.
52047         (do_test): Likewise.
52048         * string/test-strncmp.c (do_one_test): Likewise.
52049         (do_test_limit): Likewise.
52050         (do_test): Likewise.
52051         * string/test-strncpy.c (do_one_test): Likewise.
52052         (do_test): Likewise.
52053         * string/test-strnlen.c (do_one_test): Likewise.
52054         (do_test): Likewise.
52055         * string/test-strpbrk.c (do_one_test): Likewise.
52056         (do_test): Likewise.
52057         * string/test-strrchr.c (do_one_test): Likewise.
52058         (do_test): Likewise.
52059         * string/test-strspn.c (do_one_test): Likewise.
52060         (do_test): Likewise.
52061         * string/test-strstr.c (do_one_test): Likewise.
52062         (do_test): Likewise.
52063
52064         * benchtests/Makefile (string-bench): Add string benchmarks.
52065         * benchtests/bench-bcopy-ifunc.c: New file.
52066         * benchtests/bench-bcopy.c: New file.
52067         * benchtests/bench-bzero-ifunc.c: New file.
52068         * benchtests/bench-bzero.c: New file.
52069         * benchtests/bench-memccpy-ifunc.c: New file.
52070         * benchtests/bench-memccpy.c: New file.
52071         * benchtests/bench-memchr-ifunc.c: New file.
52072         * benchtests/bench-memchr.c: New file.
52073         * benchtests/bench-memcmp-ifunc.c: New file.
52074         * benchtests/bench-memcmp.c: New file.
52075         * benchtests/bench-memmem-ifunc.c: New file.
52076         * benchtests/bench-memmem.c: New file.
52077         * benchtests/bench-memmove-ifunc.c: New file.
52078         * benchtests/bench-memmove.c: New file.
52079         * benchtests/bench-mempcpy-ifunc.c: New file.
52080         * benchtests/bench-mempcpy.c: New file.
52081         * benchtests/bench-memset-ifunc.c: New file.
52082         * benchtests/bench-memset.c: New file.
52083         * benchtests/bench-rawmemchr-ifunc.c: New file.
52084         * benchtests/bench-rawmemchr.c: New file.
52085         * benchtests/bench-stpcpy-ifunc.c: New file.
52086         * benchtests/bench-stpcpy.c: New file.
52087         * benchtests/bench-stpncpy-ifunc.c: New file.
52088         * benchtests/bench-stpncpy.c: New file.
52089         * benchtests/bench-strcasecmp-ifunc.c: New file.
52090         * benchtests/bench-strcasecmp.c: New file.
52091         * benchtests/bench-strcasestr-ifunc.c: New file.
52092         * benchtests/bench-strcasestr.c: New file.
52093         * benchtests/bench-strcat-ifunc.c: New file.
52094         * benchtests/bench-strcat.c: New file.
52095         * benchtests/bench-strchr-ifunc.c: New file.
52096         * benchtests/bench-strchr.c: New file.
52097         * benchtests/bench-strchrnul-ifunc.c: New file.
52098         * benchtests/bench-strchrnul.c: New file.
52099         * benchtests/bench-strcmp-ifunc.c: New file.
52100         * benchtests/bench-strcmp.c: New file.
52101         * benchtests/bench-strcpy-ifunc.c: New file.
52102         * benchtests/bench-strcpy.c: New file.
52103         * benchtests/bench-strcspn-ifunc.c: New file.
52104         * benchtests/bench-strcspn.c: New file.
52105         * benchtests/bench-strlen-ifunc.c: New file.
52106         * benchtests/bench-strlen.c: New file.
52107         * benchtests/bench-strncasecmp-ifunc.c: New file.
52108         * benchtests/bench-strncasecmp.c: New file.
52109         * benchtests/bench-strncat-ifunc.c: New file.
52110         * benchtests/bench-strncat.c: New file.
52111         * benchtests/bench-strncmp-ifunc.c: New file.
52112         * benchtests/bench-strncmp.c: New file.
52113         * benchtests/bench-strncpy-ifunc.c: New file.
52114         * benchtests/bench-strncpy.c: New file.
52115         * benchtests/bench-strnlen-ifunc.c: New file.
52116         * benchtests/bench-strnlen.c: New file.
52117         * benchtests/bench-strpbrk-ifunc.c: New file.
52118         * benchtests/bench-strpbrk.c: New file.
52119         * benchtests/bench-strrchr-ifunc.c: New file.
52120         * benchtests/bench-strrchr.c: New file.
52121         * benchtests/bench-strspn-ifunc.c: New file.
52122         * benchtests/bench-strspn.c: New file.
52123         * benchtests/bench-strstr-ifunc.c: New file.
52124         * benchtests/bench-strstr.c: New file.
52125
52126         * benchtests/Makefile: Disable parallel execution of targets.
52127         (string-bench): Add memcpy.
52128         (benchset): New variable to store a list of benchmark sets.
52129         (bench-func): Renamed from bench.
52130         (bench-set): New target.
52131         (bench): Depend on bench-func and bench-set.
52132         * benchtests/README: Add section on benchmark sets.
52133         * benchtests/bench-memcpy-ifunc.c: New file.
52134         * benchtests/bench-memcpy.c: New file.
52135         * benchtests/bench-string.h: New file.
52136
52137 2013-06-11  Andreas Schwab  <schwab@suse.de>
52138
52139         [BZ #15577]
52140         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
52141         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
52142         values in the triple.
52143         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
52144         terminator in the group key.
52145
52146 2013-06-11  Andreas Jaeger  <aj@suse.de>
52147
52148         * po/zh_TW.po: Update Chinese (traditional) translation from
52149         translation project.
52150
52151 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52152
52153         * include/time.h (__clock_gettime): Add libc_hidden_proto.
52154         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
52155         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
52156         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
52157         (clock_getcpuclockid): Likewise.
52158         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
52159         Add weak_alias and libc_hidden_def.
52160         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
52161         * rt/clock_gettime.c (clock_gettime): Rename to
52162         __clock_gettime.  Add weak_alias and libc_hidden_def.
52163         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
52164         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
52165         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
52166         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
52167         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
52168         Likewise.
52169         * rt/clock_settime.c (clock_settime): Rename to
52170         __clock_settime.  Add weak_alias and libc_hidden_def.
52171         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
52172
52173 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
52174
52175         * mach/err_boot.sub: Remove trailing whitespace.
52176         * mach/err_ipc.sub: Likewise.
52177         * mach/err_mach.sub: Likewise.
52178
52179         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
52180         (ROUNDING_TESTS_double): Likewise.
52181         (ROUNDING_TESTS_long_double): Likewise.
52182         (ROUNDING_TESTS): Likewise.
52183         * math/libm-test.inc: Include <math-tests.h>.
52184         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
52185         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
52186         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
52187         (IF_ROUND_INIT_FE_UPWARD): Likewise.
52188
52189 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52190
52191         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
52192         of assigning.
52193
52194 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
52195
52196         * sysdeps/gnu/errlist.awk: Do not generate space at end of
52197         otherwise empty TRANS lines.
52198         * sysdeps/gnu/errlist.c: Regenerated.
52199
52200         * catgets/gencat.c (error_print): Use (void) in function
52201         definition.
52202         * crypt/crypt_util.c (__init_des): Likewise.
52203         * crypt/speeds.c (Stop): Likewise.
52204         (main): Likewise.
52205         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
52206         * inet/ruserpass.c (token): Likewise.
52207         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
52208         * intl/localealias.c (extend_alias_table): Likewise.
52209         * intl/plural-exp.c (init_germanic_plural): Likewise.
52210         * libio/fcloseall.c (__fcloseall): Likewise.
52211         * libio/genops.c (_IO_flush_all): Likewise.
52212         (_IO_flush_all_linebuffered): Likewise.
52213         (_IO_cleanup): Likewise.
52214         (_IO_iter_begin): Likewise.
52215         (_IO_iter_end): Likewise.
52216         (_IO_list_lock): Likewise.
52217         (_IO_list_unlock): Likewise.
52218         (_IO_list_resetlock): Likewise.
52219         * libio/getchar.c (getchar): Likewise.
52220         * libio/getchar_u.c (getchar_unlocked): Likewise.
52221         * libio/getwchar.c (getwchar): Likewise.
52222         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
52223         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
52224         * login/getpt.c (__getpt): Likewise.
52225         * login/tst-utmp.c (main): Likewise.
52226         * malloc/hooks.c (__malloc_check_init): Likewise.
52227         * malloc/malloc.c (__malloc_stats): Likewise.
52228         * malloc/mtrace.c (tr_break): Likewise.
52229         (mtrace): Likewise.
52230         (muntrace): Likewise.
52231         * misc/fstab.c (endfsent): Likewise.
52232         * misc/getclktck.c (__getclktck): Likewise.
52233         * misc/getdtsz.c (__getdtablesize): Likewise.
52234         * misc/gethostid.c (gethostid): Likewise.
52235         * misc/getpagesize.c (__getpagesize): Likewise.
52236         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
52237         (__get_nprocs): Likewise.
52238         (__get_phys_pages): Likewise.
52239         (__get_avphys_pages): Likewise.
52240         * misc/getttyent.c (getttyent): Likewise.
52241         (setttyent): Likewise.
52242         (endttyent): Likewise.
52243         * misc/getusershell.c (getusershell): Likewise.
52244         (endusershell): Likewise.
52245         (setusershell): Likewise.
52246         (initshells): Likewise.
52247         * misc/hsearch.c (__hdestroy): Likewise.
52248         * misc/sync.c (sync): Likewise.
52249         * misc/syslog.c (closelog_internal): Likewise.
52250         (closelog): Likewise.
52251         * misc/ttyslot.c (ttyslot): Likewise.
52252         * misc/vhangup.c (vhangup): Likewise.
52253         * posix/fork.c (__fork): Likewise.
52254         * posix/getegid.c (__getegid): Likewise.
52255         * posix/geteuid.c (__geteuid): Likewise.
52256         * posix/getgid.c (__getgid): Likewise.
52257         * posix/getpid.c (__getpid): Likewise.
52258         * posix/getppid.c (__getppid): Likewise.
52259         * posix/getuid.c (__getuid): Likewise.
52260         * posix/pause.c (pause): Likewise.
52261         * posix/setpgrp.c (setpgrp): Likewise.
52262         * posix/setsid.c (__setsid): Likewise.
52263         * posix/test-vfork.c (noop): Likewise.
52264         * resolv/gethnamaddr.c (_endhtent): Likewise.
52265         (_gethtent): Likewise.
52266         (ht_endhostent): Likewise.
52267         (gethostent): Likewise.
52268         (dns_service): Likewise.
52269         * stdlib/drand48.c (drand48): Likewise.
52270         * stdlib/lrand48.c (lrand48): Likewise.
52271         * stdlib/mrand48.c (mrand48): Likewise.
52272         * stdlib/rand.c (rand): Likewise.
52273         * stdlib/random.c (__random): Likewise.
52274         * stdlib/setenv.c (clearenv): Likewise.
52275         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
52276         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
52277         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
52278         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
52279         (__get_nprocs): Likewise.
52280         (__get_phys_pages): Likewise.
52281         (__get_avphys_pages): Likewise.
52282         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
52283         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
52284         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
52285         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
52286         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
52287         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
52288         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
52289         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
52290         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
52291         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
52292         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
52293         * sysdeps/mach/hurd/sync.c (sync): Likewise.
52294         * sysdeps/posix/clock.c (clock): Likewise.
52295         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
52296         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
52297         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
52298         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
52299         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
52300         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
52301         (__get_nprocs_conf): Likewise.
52302         (__get_phys_pages): Likewise.
52303         (__get_avphys_pages): Likewise.
52304         * time/clock.c (clock): Likewise.
52305         * time/tzset.c (__tzname_max): Likewise.
52306
52307 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
52308
52309         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
52310         (__bswap_32): Do not use "register".
52311         * crypt/crypt.c (_ufc_doit_r): Likewise.
52312         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52313         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52314         * gmon/gmon.c (__monstartup): Likewise.
52315         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
52316         * hurd/hurdmalloc.c (more_memory): Likewise.
52317         (malloc): Likewise.
52318         (free): Likewise.
52319         (realloc): Likewise.
52320         (malloc_fork_prepare): Likewise.
52321         (malloc_fork_parent): Likewise.
52322         (malloc_fork_child): Likewise.
52323         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
52324         (_svcauth_des): Likewise.
52325         * inet/inet_lnaof.c (inet_lnaof): Likewise.
52326         * inet/inet_net.c (inet_network): Likewise.
52327         * inet/inet_netof.c (inet_netof): Likewise.
52328         * inet/rcmd.c (__validuser2_sa): Likewise.
52329         * io/fts.c (fts_open): Likewise.
52330         (fts_load): Likewise.
52331         (fts_close): Likewise.
52332         (fts_read): Likewise.
52333         (fts_children): Likewise.
52334         (fts_build): Likewise.
52335         (fts_stat): Likewise.
52336         (fts_sort): Likewise.
52337         (fts_alloc): Likewise.
52338         (fts_lfree): Likewise.
52339         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
52340         (_IO_file_xsgetn): Likewise.
52341         (_IO_file_xsgetn_mmap): Likewise.
52342         * libio/iofopncook.c (_IO_cookie_read): Likewise.
52343         (_IO_cookie_write): Likewise.
52344         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
52345         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
52346         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
52347         * malloc/obstack.c (_obstack_begin): Likewise.
52348         (_obstack_begin_1): Likewise.
52349         (_obstack_newchunk): Likewise.
52350         (_obstack_allocated_p): Likewise.
52351         (obstack_free): Likewise.
52352         (_obstack_memory_used): Likewise.
52353         * misc/getttyent.c (getttynam): Likewise.
52354         (getttyent): Likewise.
52355         (skip): Likewise.
52356         (value): Likewise.
52357         * misc/getusershell.c (initshells): Likewise.
52358         * misc/syslog.c (__vsyslog_chk): Likewise.
52359         * misc/ttyslot.c (ttyslot): Likewise.
52360         * nis/nis_hash.c (__nis_hash): Likewise.
52361         * posix/fnmatch_loop.c (FCT): Likewise.
52362         * posix/getconf.c (print_all): Likewise.
52363         (main): Likewise.
52364         * posix/getopt.c (exchange): Likewise.
52365         * posix/glob.c (globfree): Likewise.
52366         (prefix_array): Likewise.
52367         (__glob_pattern_type): Likewise.
52368         * resolv/arpa/nameser.h (NS_GET16): Likewise.
52369         (NS_GET32): Likewise.
52370         (NS_PUT16): Likewise.
52371         (NS_PUT32): Likewise.
52372         * resolv/gethnamaddr.c (getanswer): Likewise.
52373         (gethostbyname2): Likewise.
52374         (gethostbyaddr): Likewise.
52375         (_gethtent): Likewise.
52376         (_gethtbyname2): Likewise.
52377         (_gethtbyaddr): Likewise.
52378         * resolv/ns_print.c (dst_s_get_int16): Likewise.
52379         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
52380         * resolv/res_init.c (__res_vinit): Likewise.
52381         (net_mask): Likewise.
52382         * resolv/res_mkquery.c (outchar): Likewise.
52383         (PRINT): Likewise.
52384         * stdio-common/printf_fp.c (outchar): Likewise.
52385         (PRINT): Likewise.
52386         * stdio-common/printf_fphex.c (outchar): Likewise.
52387         (PRINT): Likewise.
52388         * stdio-common/printf_size.c (outchar): Likewise.
52389         (PRINT): Likewise.
52390         * stdio-common/test_rdwr.c (main): Likewise.
52391         * stdio-common/tfformat.c (matches): Likewise.
52392         * stdio-common/vfprintf.c (outchar): Likewise.
52393         (printf_unknown): Likewise.
52394         (buffered_vfprintf): Likewise.
52395         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52396         * stdio-common/xbug.c (AppendToBuffer): Likewise.
52397         (ReadFile): Likewise.
52398         * stdlib/qsort.c (SWAP): Likewise.
52399         (_quicksort): Likewise.
52400         * stdlib/setenv.c (__add_to_environ): Likewise.
52401         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52402         * stdlib/strtol_l.c (__strtol_l): Likewise.
52403         * stdlib/tst-strtod.c (main): Likewise.
52404         * stdlib/tst-strtol.c (main): Likewise.
52405         * stdlib/tst-strtoll.c (main): Likewise.
52406         * string/bits/string2.h (__strcmp_cc): Likewise.
52407         (__strcmp_cg): Likewise.
52408         (__strcspn_c1): Likewise.
52409         (__strcspn_c2): Likewise.
52410         (__strcspn_c3): Likewise.
52411         (__strspn_c1): Likewise.
52412         (__strspn_c2): Likewise.
52413         (__strspn_c3): Likewise.
52414         (__strsep_1c): Likewise.
52415         (__strsep_2c): Likewise.
52416         (__strsep_3c): Likewise.
52417         * string/memccpy.c (__memccpy): Likewise.
52418         * string/stpcpy.c (__stpcpy): Likewise.
52419         * string/strcmp.c (strcmp): Likewise.
52420         * string/strrchr.c (strrchr): Likewise.
52421         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
52422         Likewise.
52423         * sysdeps/mach/hurd/getcwd.c
52424         (_hurd_canonicalize_directory_name_internal): Likewise.
52425         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
52426         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
52427         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
52428         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
52429         Likewise, in both definitions.
52430         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
52431         definitions.
52432         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
52433         64] (__bswap_64): Likewise.
52434         * time/test_time.c (main): Likewise.
52435         * time/tzfile.c (__tzfile_read): Likewise.
52436         (__tzfile_compute): Likewise.
52437         * time/tzset.c (__tzset_parse_tz): Likewise.
52438         (tzset_internal): Likewise.
52439         (compute_change): Likewise.
52440         * wcsmbs/wcscat.c (__wcscat): Likewise.
52441         * wcsmbs/wcschr.c (wcschr): Likewise.
52442         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
52443         * wcsmbs/wcscspn.c (wcscspn): Likewise.
52444         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
52445         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
52446         * wcsmbs/wcsspn.c (wcsspn): Likewise.
52447         * wcsmbs/wcsstr.c (wcsstr): Likewise.
52448         * wcsmbs/wmemchr.c (wmemchr): Likewise.
52449         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
52450         * wcsmbs/wmemset.c (wmemset): Likewise.
52451
52452 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
52453
52454         * scripts/config.guess: Update to version 2013-05-16.
52455         * scripts/config.sub: Update to version 2013-04-24.
52456         * scripts/install-sh: Update to version 2011-11-20.07.
52457         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
52458         * scripts/move-if-change: Update to version 2012-01-06 07:23.
52459
52460 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
52461
52462         * debug/fgetws_u_chk.c: Fix leading whitespaces.
52463         * elf/sln.c: Likewise.
52464         * hurd/hurd/ioctl.h: Likewise.
52465         * hurd/hurdmalloc.c: Likewise.
52466         * hurd/xattr.c: Likewise.
52467         * include/shlib-compat.h: Likewise.
52468         * inet/ruserpass.c: Likewise.
52469         * libio/iofgets_u.c: Likewise.
52470         * libio/iofgetws_u.c: Likewise.
52471         * locale/programs/ld-identification.c: Likewise.
52472         * locale/programs/ld-time.c: Likewise.
52473         * mach/msg-destroy.c: Likewise.
52474         * nss/nss_files/files-netgrp.c: Likewise.
52475         * resolv/res_data.c: Likewise.
52476         * soft-fp/op-1.h: Likewise.
52477         * soft-fp/op-2.h: Likewise.
52478         * soft-fp/op-4.h: Likewise.
52479         * soft-fp/op-common.h: Likewise.
52480         * stdio-common/printf_fphex.c: Likewise.
52481         * stdlib/strtod_l.c: Likewise.
52482         * sunrpc/rpc/clnt.h: Likewise.
52483         * sysdeps/generic/framestate.c: Likewise.
52484         * sysdeps/i386/bsd-_setjmp.S: Likewise.
52485         * sysdeps/i386/bsd-setjmp.S: Likewise.
52486         * sysdeps/i386/__longjmp.S: Likewise.
52487         * sysdeps/i386/setjmp.S: Likewise.
52488         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
52489         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
52490         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52491         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
52492         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
52493         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
52494         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
52495         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
52496         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
52497         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
52498         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
52499         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
52500         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
52501         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
52502         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
52503         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
52504         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
52505         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
52506         * sysdeps/ieee754/support.c: Likewise.
52507         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52508         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
52509         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
52510         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
52511         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
52512         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
52513         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
52514         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
52515         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
52516         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
52517         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
52518         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
52519         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
52520         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
52521         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
52522         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
52523         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
52524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
52525
52526 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
52527
52528         * posix/transbug.c: Remove executable mode.
52529
52530 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
52531
52532         * crypt/speeds.c: Remove trailing whitespace.
52533         * dlfcn/default.c: Likewise.
52534         * elf/ifuncdep2.c: Likewise.
52535         * elf/ifuncmain1.c: Likewise.
52536         * elf/ifuncmain1vis.c: Likewise.
52537         * elf/testobj.h: Likewise.
52538         * elf/tst-stackguard1.c: Likewise.
52539         * gmon/sys/gmon.h: Likewise.
52540         * hurd/hurdmsg.c: Likewise.
52541         * hurd/new-fd.c: Likewise.
52542         * hurd/ports-get.c: Likewise.
52543         * iconvdata/ibm1008_420.c: Likewise.
52544         * inet/tst-getni1.c: Likewise.
52545         * inet/tst-getni2.c: Likewise.
52546         * libio/ioungetc.c: Likewise.
52547         * libio/wfiledoalloc.c: Likewise.
52548         * manual/libm-err-tab.pl: Likewise.
52549         * math/w_dremf.c: Likewise.
52550         * misc/ftruncate.c: Likewise.
52551         * posix/bug-glob2.c: Likewise.
52552         * posix/tst-pcre.c: Likewise.
52553         * posix/wait4.c: Likewise.
52554         * resolv/README: Likewise.
52555         * resolv/res_debug.h: Likewise.
52556         * resolv/tst-inet_ntop.c: Likewise.
52557         * setjmp/bug269-setjmp.c: Likewise.
52558         * soft-fp/extended.h: Likewise.
52559         * soft-fp/op-1.h: Likewise.
52560         * soft-fp/op-2.h: Likewise.
52561         * soft-fp/op-4.h: Likewise.
52562         * soft-fp/op-8.h: Likewise.
52563         * soft-fp/testit.c: Likewise.
52564         * stdio-common/bug16.c: Likewise.
52565         * stdlib/random.c: Likewise.
52566         * sunrpc/rpcsvc/rquota.x: Likewise.
52567         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
52568         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
52569         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52570         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
52571         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
52572         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
52573         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
52574         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
52575         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
52576         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
52577         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
52578         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
52579         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
52580         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
52581         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
52582         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
52583         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
52584         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
52585         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
52586         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
52587         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
52588         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
52589         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
52590         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
52591         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
52592         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
52593         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
52594         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
52595         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
52596         * sysdeps/ieee754/s_lib_version.c: Likewise.
52597         * sysdeps/mach/hurd/check_fds.c: Likewise.
52598         * sysdeps/mach/hurd/getsockname.c: Likewise.
52599         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
52600         * sysdeps/mach/hurd/recvfrom.c: Likewise.
52601         * sysdeps/powerpc/bits/link.h: Likewise.
52602         * sysdeps/powerpc/dl-procinfo.c: Likewise.
52603         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
52604         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
52605         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
52606         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52607         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
52608         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
52609         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52610         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
52611         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
52612         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
52613         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
52614         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
52615         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
52616         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
52617         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
52618         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
52619         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
52620         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
52621         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52622         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52623         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
52624         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52625         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
52626         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
52627         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
52628         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
52629         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52630         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52631         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
52632         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
52633         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
52634         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52635         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
52636         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
52637         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52638         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
52639         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
52640         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
52641         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
52642         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
52643         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
52644         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
52645         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
52646         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
52647         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
52648         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
52649         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
52650         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
52651         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
52652         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52653         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52654         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52655         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52656         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
52657         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
52658         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
52659         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52660         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
52661         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
52662         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
52663         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
52664         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
52665         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52666         * sysdeps/powerpc/sysdep.h: Likewise.
52667         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
52668         * sysdeps/s390/s390-64/sub_n.S: Likewise.
52669         * sysdeps/sh/dl-trampoline.S: Likewise.
52670         * sysdeps/sh/memset.S: Likewise.
52671         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
52672         * sysdeps/sh/strlen.S: Likewise.
52673         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
52674         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
52675         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
52676         * sysdeps/sparc/sparc32/rem.S: Likewise.
52677         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
52678         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
52679         * sysdeps/sparc/sparc32/strchr.S: Likewise.
52680         * sysdeps/sparc/sparc32/udiv.S: Likewise.
52681         * sysdeps/sparc/sparc32/urem.S: Likewise.
52682         * sysdeps/sparc/sparc64/add_n.S: Likewise.
52683         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
52684         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
52685         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
52686         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
52687         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
52688         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
52689         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
52690         * sysdeps/unix/bsd/times.c: Likewise.
52691         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
52692         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
52693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
52694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
52695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
52696         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
52697         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
52698         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
52699         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
52700         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
52701         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
52702         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
52703         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
52704         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
52705         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
52706         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52707         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
52708         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
52709         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
52710         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
52711         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
52712         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
52713         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
52714         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
52715         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
52716         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
52717         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
52718         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
52719         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
52720         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
52721         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
52722         * sysdeps/x86_64/strcspn.S: Likewise.
52723
52724 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52725
52726         * locale/C-translit.h: Revert #include <stdint.h> because this is a
52727         generated file.  Regenerate properly from gen-translit.pl.
52728         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
52729         locale/C-translit.h.
52730
52731 2013-06-05  Andreas Schwab  <schwab@suse.de>
52732
52733         [BZ #15100]
52734         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
52735         week as 6 instead of -1.
52736         * time/tst-strptime.c (day_tests): Add test case.
52737
52738 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52739
52740         * sysdeps/generic/math_private.h
52741         (libc_feholdexcept_setround_53bit): Replace with
52742         libc_feholdsetround_53bit.
52743         (libc_feupdateenv_53bit): Replace with
52744         libc_feresetround_53bit.
52745         (SET_RESTORE_ROUND_53BIT): Adjust.
52746
52747 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52748
52749         * string/test-strchrnul.c: Add copyright header.
52750
52751         * posix/tst-getaddrinfo4.c: Increase test timeout.
52752
52753 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
52754
52755         [BZ #15536]
52756         * math/libm-test.inc (MAX_EXP): Remove
52757         (MIN_EXP): Define.
52758         (ulp): Use MIN_EXP - MANT_DIG.
52759         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
52760
52761 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
52762
52763         * po/be.po: Revert last change.
52764         * po/zh_CN.po: Likewise.
52765         * po/header.pot: Likewise.
52766
52767 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
52768
52769         * Makefile ($(common-objpfx)linkobj/libc.so): Define
52770         link-libc-deps to empty as target-specific variable.
52771         * Makerules (link-libc-args): New variable.
52772         (libc-for-link): Likewise.
52773         (link-libc-deps): Likewise.
52774         (lib%.so): Depend on $(link-libc-deps).  Link with
52775         $(link-libc-args).
52776         (build-module): Link with $(link-libc-args).
52777         (build-module-asneeded): Likewise.
52778         (build-module-helper-objlist): Filter out $(link-libc-deps) from
52779         list of objects.
52780         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
52781         target-specific variable.
52782         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
52783         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
52784         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
52785         libc.
52786         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
52787         libc and ld.so.
52788         ($(objpfx)libpcprofile.so): Likewise.
52789         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
52790         libc_nonshared.a.
52791         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
52792         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
52793         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
52794         $(link-libc-deps).
52795         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
52796         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
52797         * login/Makefile ($(objpfx)libutil.so): Likewise.
52798         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
52799         * math/Makefile ($(objpfx)libm.so): Likewise.
52800         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
52801         $(objpfx)libnsl.so): Define libc-for-link as target-specific
52802         variable instead of depending directly on libc.
52803         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
52804         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
52805         $(link-libc-deps).
52806         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
52807         libc.
52808         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
52809         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
52810         ($(objpfx)libanl.so): Likewise.
52811         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
52812         ld.so.
52813         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
52814         $(link-libc-deps).
52815         * sysdeps/i386/fpu/Makefile: Remove file.
52816         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
52817         ($(objpfx)libm.so): Remove dependency on ld.so.
52818
52819 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
52820
52821         [BZ # 15553]
52822         * nis/yp_xdr.c (XDRMAXNAME): Define.
52823         (XDRMAXRECORD): Define.
52824         (xdr_domainname): Use XDRMAXNAME.
52825         (xdr_mapname): Likewise.
52826         (xdr_peername): Likewise.
52827         (xdr_keydat): Use XDRMAXRECORD.
52828         (xdr_valdat): Likewise.
52829
52830 2013-05-30  Jeff Law  <law@redhat.com>
52831
52832         [BZ #14256]
52833         * manual/errno.texi (ESTALE): Update to account for more than
52834         just NFS file systems.
52835         * sysdeps/gnu/errlist.c: Regenerated.
52836
52837 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
52838
52839         [BZ #15465]
52840         * elf/Makefile (tests): Add tst-null-argv.
52841         (modules-names):  Add tst-null-argv-lib.
52842         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
52843         (tst-null-argv-ENV): Set environment for tst-null-argv.
52844         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
52845         (RTLD_PROGNAME): New macro.
52846         * elf/tst-null-argv.c: New test case.
52847         * elf/tst-null-argv-lib.c: Library for test case.
52848         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
52849         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
52850         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
52851         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
52852         * elf/dl-init.c (call_init): Likewise.
52853         (_dl_init): Likewise.
52854         * elf/dl-load.c (print_search_path): Likewise.
52855         (_dl_map_object): Likewise.
52856         * elf/dl-lookup.c (do_lookup_x): Likewise.
52857         (add_dependency): Likewise.
52858         (_dl_lookup_symbol_x): Likewise.
52859         (_dl_debug_bindings): Likewise.
52860         * elf/dl-open.c (_dl_show_scope): Likewise.
52861         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
52862         * elf/dl-version.c (match_symbol): Likewise.
52863         (_dl_check_map_versions): Likewise.
52864         * elf/rtld.c (dl_main): Likewise.
52865         (print_unresolved): Use RTLD_PROGNAME.
52866         (print_missing_version): Likewise.
52867         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
52868         (elf_machine_rela): Likewise.
52869         * sysdeps/powerpc/powerpc32/dl-machine.c
52870         (__process_machine_rela): Likewise.
52871         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
52872         Likewise.
52873         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
52874         Likewise.
52875         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
52876         Likewise.
52877         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52878         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
52879         Likewise.
52880         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
52881         Likewise.
52882         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
52883
52884 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
52885
52886         * po/be.po: Add descriptive title.
52887         * po/zh_CN.po: Likewise.
52888         * po/header.pot: Likewise.
52889
52890 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
52891
52892         * locale/programs/locarchive.c (create_archive): Inlucde fname in
52893         error message.
52894         (enlarge_archive): Likewise.
52895
52896 2013-05-28  Ben North  <ben@redfrontdoor.org>
52897
52898         * manual/arith.texi (frexp): It is the magnitude of the return
52899         value which lies in [0.5, 1), not the return value itself.
52900
52901 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52902
52903         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52904
52905 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
52906
52907         * stdio-common/bug26.c (main): Correct fscanf template.
52908
52909         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
52910         declare _dl_skip_args.
52911
52912         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
52913         Don't declare.
52914
52915         * manual/platform.texi: Add missing @end deftypefun.
52916
52917 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52918
52919         [BZ #15529]
52920         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
52921         bit of mantissa of 2^16382.
52922         * math/libm-test.inc (hypot_test_data): Add more tests.
52923
52924         * math/libm-test.inc: Add drem and pow10 to list of tested
52925         functions.
52926         (pow10_test): New function.
52927         (drem_test): Likewise.
52928         (drem_test_tonearest): Likewise.
52929         (drem_test_towardzero): Likewise.
52930         (drem_test_downward): Likewise.
52931         (drem_test_upward): Likewise.
52932         (main): Call the new functions.
52933
52934         * math/libm-test.inc (finite_test_data): Remove.
52935         (finite_test): Run tests from isfinite_test_data.
52936         (gamma_test_data): Remove.
52937         (gamma_test): Run tests from lgamma_test_data.
52938         * sysdeps/i386/fpu/libm-test-ulps: Update.
52939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52940
52941 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52942
52943         * manual/platform.texi: Add PowerPC PPR function set documentation.
52944         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
52945         implementation.
52946
52947 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
52948
52949         * math/libm-test.inc (MAX_EXP): Define.
52950         (ULPDIFF): Define.
52951         (ulp): New function.
52952         (check_float_internal): Use ULPDIFF.
52953         (cpow_test): Disable failing test.
52954         (check_ulp): Test ulp() implemetnation.
52955         (main): Call check_ulp before starting tests.
52956
52957 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52958
52959         * math/gen-libm-test.pl (generate_testfile): Do not handle
52960         START_DATA and END_DATA.
52961         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
52962         END_DATA.
52963         (acos_tonearest_test_data): Likewise.
52964         (acos_towardzero_test_data): Likewise.
52965         (acos_downward_test_data): Likewise.
52966         (acos_upward_test_data): Likewise.
52967         (acosh_test_data): Likewise.
52968         (asin_test_data): Likewise.
52969         (asin_tonearest_test_data): Likewise.
52970         (asin_towardzero_test_data): Likewise.
52971         (asin_downward_test_data): Likewise.
52972         (asin_upward_test_data): Likewise.
52973         (asinh_test_data): Likewise.
52974         (atan_test_data): Likewise.
52975         (atanh_test_data): Likewise.
52976         (atan2_test_data): Likewise.
52977         (cabs_test_data): Likewise.
52978         (cacos_test_data): Likewise.
52979         (cacosh_test_data): Likewise.
52980         (carg_test_data): Likewise.
52981         (casin_test_data): Likewise.
52982         (casinh_test_data): Likewise.
52983         (catan_test_data): Likewise.
52984         (catanh_test_data): Likewise.
52985         (cbrt_test_data): Likewise.
52986         (ccos_test_data): Likewise.
52987         (ccosh_test_data): Likewise.
52988         (ceil_test_data): Likewise.
52989         (cexp_test_data): Likewise.
52990         (cimag_test_data): Likewise.
52991         (clog_test_data): Likewise.
52992         (clog10_test_data): Likewise.
52993         (conj_test_data): Likewise.
52994         (copysign_test_data): Likewise.
52995         (cos_test_data): Likewise.
52996         (cos_tonearest_test_data): Likewise.
52997         (cos_towardzero_test_data): Likewise.
52998         (cos_downward_test_data): Likewise.
52999         (cos_upward_test_data): Likewise.
53000         (cosh_test_data): Likewise.
53001         (cosh_tonearest_test_data): Likewise.
53002         (cosh_towardzero_test_data): Likewise.
53003         (cosh_downward_test_data): Likewise.
53004         (cosh_upward_test_data): Likewise.
53005         (cpow_test_data): Likewise.
53006         (cproj_test_data): Likewise.
53007         (creal_test_data): Likewise.
53008         (csin_test_data): Likewise.
53009         (csinh_test_data): Likewise.
53010         (csqrt_test_data): Likewise.
53011         (ctan_test_data): Likewise.
53012         (ctan_tonearest_test_data): Likewise.
53013         (ctan_towardzero_test_data): Likewise.
53014         (ctan_downward_test_data): Likewise.
53015         (ctan_upward_test_data): Likewise.
53016         (ctanh_test_data): Likewise.
53017         (ctanh_tonearest_test_data): Likewise.
53018         (ctanh_towardzero_test_data): Likewise.
53019         (ctanh_downward_test_data): Likewise.
53020         (ctanh_upward_test_data): Likewise.
53021         (erf_test_data): Likewise.
53022         (erfc_test_data): Likewise.
53023         (exp_test_data): Likewise.
53024         (exp_tonearest_test_data): Likewise.
53025         (exp_towardzero_test_data): Likewise.
53026         (exp_downward_test_data): Likewise.
53027         (exp_upward_test_data): Likewise.
53028         (exp10_test_data): Likewise.
53029         (exp2_test_data): Likewise.
53030         (expm1_test_data): Likewise.
53031         (fabs_test_data): Likewise.
53032         (fdim_test_data): Likewise.
53033         (finite_test_data): Likewise.
53034         (floor_test_data): Likewise.
53035         (fma_test_data): Likewise.
53036         (fma_towardzero_test_data): Likewise.
53037         (fma_downward_test_data): Likewise.
53038         (fma_upward_test_data): Likewise.
53039         (fmax_test_data): Likewise.
53040         (fmin_test_data): Likewise.
53041         (fmod_test_data): Likewise.
53042         (fpclassify_test_data): Likewise.
53043         (frexp_test_data): Likewise.
53044         (gamma_test_data): Likewise.
53045         (hypot_test_data): Likewise.
53046         (ilogb_test_data): Likewise.
53047         (isfinite_test_data): Likewise.
53048         (isgreater_test_data): Likewise.
53049         (isgreaterequal_test_data): Likewise.
53050         (isinf_test_data): Likewise.
53051         (isless_test_data): Likewise.
53052         (islessequal_test_data): Likewise.
53053         (islessgreater_test_data): Likewise.
53054         (isnan_test_data): Likewise.
53055         (isnormal_test_data): Likewise.
53056         (issignaling_test_data): Likewise.
53057         (isunordered_test_data): Likewise.
53058         (j0_test_data): Likewise.
53059         (j1_test_data): Likewise.
53060         (jn_test_data): Likewise.
53061         (ldexp_test_data): Likewise.
53062         (lgamma_test_data): Likewise.
53063         (lrint_test_data): Likewise.
53064         (lrint_tonearest_test_data): Likewise.
53065         (lrint_towardzero_test_data): Likewise.
53066         (lrint_downward_test_data): Likewise.
53067         (lrint_upward_test_data): Likewise.
53068         (llrint_test_data): Likewise.
53069         (llrint_tonearest_test_data): Likewise.
53070         (llrint_towardzero_test_data): Likewise.
53071         (llrint_downward_test_data): Likewise.
53072         (llrint_upward_test_data): Likewise.
53073         (log_test_data): Likewise.
53074         (log10_test_data): Likewise.
53075         (log1p_test_data): Likewise.
53076         (log2_test_data): Likewise.
53077         (logb_test_data): Likewise.
53078         (logb_downward_test_data): Likewise.
53079         (lround_test_data): Likewise.
53080         (llround_test_data): Likewise.
53081         (modf_test_data): Likewise.
53082         (nearbyint_test_data): Likewise.
53083         (nextafter_test_data): Likewise.
53084         (nexttoward_test_data): Likewise.
53085         (pow_test_data): Likewise.
53086         (pow_tonearest_test_data): Likewise.
53087         (pow_towardzero_test_data): Likewise.
53088         (pow_downward_test_data): Likewise.
53089         (pow_upward_test_data): Likewise.
53090         (remainder_test_data): Likewise.
53091         (remainder_tonearest_test_data): Likewise.
53092         (remainder_towardzero_test_data): Likewise.
53093         (remainder_downward_test_data): Likewise.
53094         (remainder_upward_test_data): Likewise.
53095         (remquo_test_data): Likewise.
53096         (rint_test_data): Likewise.
53097         (rint_tonearest_test_data): Likewise.
53098         (rint_towardzero_test_data): Likewise.
53099         (rint_downward_test_data): Likewise.
53100         (rint_upward_test_data): Likewise.
53101         (round_test_data): Likewise.
53102         (scalb_test_data): Likewise.
53103         (scalbn_test_data): Likewise.
53104         (scalbln_test_data): Likewise.
53105         (signbit_test_data): Likewise.
53106         (sin_test_data): Likewise.
53107         (sin_tonearest_test_data): Likewise.
53108         (sin_towardzero_test_data): Likewise.
53109         (sin_downward_test_data): Likewise.
53110         (sin_upward_test_data): Likewise.
53111         (sincos_test_data): Likewise.
53112         (sinh_test_data): Likewise.
53113         (sinh_tonearest_test_data): Likewise.
53114         (sinh_towardzero_test_data): Likewise.
53115         (sinh_downward_test_data): Likewise.
53116         (sinh_upward_test_data): Likewise.
53117         (sqrt_test_data): Likewise.
53118         (tan_test_data): Likewise.
53119         (tan_tonearest_test_data): Likewise.
53120         (tan_towardzero_test_data): Likewise.
53121         (tan_downward_test_data): Likewise.
53122         (tan_upward_test_data): Likewise.
53123         (tanh_test_data): Likewise.
53124         (tgamma_test_data): Likewise.
53125         (trunc_test_data): Likewise.
53126         (y0_test_data): Likewise.
53127         (y1_test_data): Likewise.
53128         (yn_test_data): Likewise.
53129         (significand_test_data): Likewise.
53130
53131         * math/gen-libm-test.pl (@functions): Remove variable.
53132         (generate_testfile): Don't handle START and END lines.
53133         * math/libm-test.inc (START): New macro.
53134         (END): Likewise.
53135         (END_COMPLEX): Likewise.
53136         (acos_test): Use END macro without arguments.
53137         (acos_test_tonearest): Likewise.
53138         (acos_test_towardzero): Likewise.
53139         (acos_test_downward): Likewise.
53140         (acos_test_upward): Likewise.
53141         (acosh_test): Likewise.
53142         (asin_test): Likewise.
53143         (asin_test_tonearest): Likewise.
53144         (asin_test_towardzero): Likewise.
53145         (asin_test_downward): Likewise.
53146         (asin_test_upward): Likewise.
53147         (asinh_test): Likewise.
53148         (atan_test): Likewise.
53149         (atanh_test): Likewise.
53150         (atan2_test): Likewise.
53151         (cabs_test): Likewise.
53152         (cacos_test): Use END_COMPLEX macro without arguments.
53153         (cacosh_test): Likewise.
53154         (carg_test): Use END macro without arguments.
53155         (casin_test): Use END_COMPLEX macro without arguments.
53156         (casinh_test): Likewise.
53157         (catan_test): Likewise.
53158         (catanh_test): Likewise.
53159         (cbrt_test): Use END macro without arguments.
53160         (ccos_test): Use END_COMPLEX macro without arguments.
53161         (ccosh_test): Likewise.
53162         (ceil_test): Use END macro without arguments.
53163         (cexp_test): Use END_COMPLEX macro without arguments.
53164         (cimag_test): Use END macro without arguments.
53165         (clog_test): Use END_COMPLEX macro without arguments.
53166         (clog10_test): Likewise.
53167         (conj_test): Likewise.
53168         (copysign_test): Use END macro without arguments.
53169         (cos_test): Likewise.
53170         (cos_test_tonearest): Likewise.
53171         (cos_test_towardzero): Likewise.
53172         (cos_test_downward): Likewise.
53173         (cos_test_upward): Likewise.
53174         (cosh_test): Likewise.
53175         (cosh_test_tonearest): Likewise.
53176         (cosh_test_towardzero): Likewise.
53177         (cosh_test_downward): Likewise.
53178         (cosh_test_upward): Likewise.
53179         (cpow_test): Use END_COMPLEX macro without arguments.
53180         (cproj_test): Likewise.
53181         (creal_test): Use END macro without arguments.
53182         (csin_test): Use END_COMPLEX macro without arguments.
53183         (csinh_test): Likewise.
53184         (csqrt_test): Likewise.
53185         (ctan_test): Likewise.
53186         (ctan_test_tonearest): Likewise.
53187         (ctan_test_towardzero): Likewise.
53188         (ctan_test_downward): Likewise.
53189         (ctan_test_upward): Likewise.
53190         (ctanh_test): Likewise.
53191         (ctanh_test_tonearest): Likewise.
53192         (ctanh_test_towardzero): Likewise.
53193         (ctanh_test_downward): Likewise.
53194         (ctanh_test_upward): Likewise.
53195         (erf_test): Use END macro without arguments.
53196         (erfc_test): Likewise.
53197         (exp_test): Likewise.
53198         (exp_test_tonearest): Likewise.
53199         (exp_test_towardzero): Likewise.
53200         (exp_test_downward): Likewise.
53201         (exp_test_upward): Likewise.
53202         (exp10_test): Likewise.
53203         (exp2_test): Likewise.
53204         (expm1_test): Likewise.
53205         (fabs_test): Likewise.
53206         (fdim_test): Likewise.
53207         (finite_test): Likewise.
53208         (floor_test): Likewise.
53209         (fma_test): Likewise.
53210         (fma_test_towardzero): Likewise.
53211         (fma_test_downward): Likewise.
53212         (fma_test_upward): Likewise.
53213         (fmax_test): Likewise.
53214         (fmin_test): Likewise.
53215         (fmod_test): Likewise.
53216         (fpclassify_test): Likewise.
53217         (frexp_test): Likewise.
53218         (gamma_test): Likewise.
53219         (hypot_test): Likewise.
53220         (ilogb_test): Likewise.
53221         (isfinite_test): Likewise.
53222         (isgreater_test): Likewise.
53223         (isgreaterequal_test): Likewise.
53224         (isinf_test): Likewise.
53225         (isless_test): Likewise.
53226         (islessequal_test): Likewise.
53227         (islessgreater_test): Likewise.
53228         (isnan_test): Likewise.
53229         (isnormal_test): Likewise.
53230         (issignaling_test): Likewise.
53231         (isunordered_test): Likewise.
53232         (j0_test): Likewise.
53233         (j1_test): Likewise.
53234         (jn_test): Likewise.
53235         (ldexp_test): Likewise.
53236         (lgamma_test): Likewise.
53237         (lrint_test): Likewise.
53238         (lrint_test_tonearest): Likewise.
53239         (lrint_test_towardzero): Likewise.
53240         (lrint_test_downward): Likewise.
53241         (lrint_test_upward): Likewise.
53242         (llrint_test): Likewise.
53243         (llrint_test_tonearest): Likewise.
53244         (llrint_test_towardzero): Likewise.
53245         (llrint_test_downward): Likewise.
53246         (llrint_test_upward): Likewise.
53247         (log_test): Likewise.
53248         (log10_test): Likewise.
53249         (log1p_test): Likewise.
53250         (log2_test): Likewise.
53251         (logb_test): Likewise.
53252         (logb_test_downward): Likewise.
53253         (lround_test): Likewise.
53254         (llround_test): Likewise.
53255         (modf_test): Likewise.
53256         (nearbyint_test): Likewise.
53257         (nextafter_test): Likewise.
53258         (nexttoward_test): Likewise.
53259         (pow_test): Likewise.
53260         (pow_test_tonearest): Likewise.
53261         (pow_test_towardzero): Likewise.
53262         (pow_test_downward): Likewise.
53263         (pow_test_upward): Likewise.
53264         (remainder_test): Likewise.
53265         (remainder_test_tonearest): Likewise.
53266         (remainder_test_towardzero): Likewise.
53267         (remainder_test_downward): Likewise.
53268         (remainder_test_upward): Likewise.
53269         (remquo_test): Likewise.
53270         (rint_test): Likewise.
53271         (rint_test_tonearest): Likewise.
53272         (rint_test_towardzero): Likewise.
53273         (rint_test_downward): Likewise.
53274         (rint_test_upward): Likewise.
53275         (round_test): Likewise.
53276         (scalb_test): Likewise.
53277         (scalbn_test): Likewise.
53278         (scalbln_test): Likewise.
53279         (signbit_test): Likewise.
53280         (sin_test): Likewise.
53281         (sin_test_tonearest): Likewise.
53282         (sin_test_towardzero): Likewise.
53283         (sin_test_downward): Likewise.
53284         (sin_test_upward): Likewise.
53285         (sincos_test): Likewise.
53286         (sinh_test): Likewise.
53287         (sinh_test_tonearest): Likewise.
53288         (sinh_test_towardzero): Likewise.
53289         (sinh_test_downward): Likewise.
53290         (sinh_test_upward): Likewise.
53291         (sqrt_test): Likewise.
53292         (tan_test): Likewise.
53293         (tan_test_tonearest): Likewise.
53294         (tan_test_towardzero): Likewise.
53295         (tan_test_downward): Likewise.
53296         (tan_test_upward): Likewise.
53297         (tanh_test): Likewise.
53298         (tgamma_test): Likewise.
53299         (trunc_test): Likewise.
53300         (y0_test): Likewise.
53301         (y1_test): Likewise.
53302         (yn_test): Likewise.
53303         (significand_test): Likewise.
53304
53305 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
53306
53307         [BZ #15381]
53308         * libio/genops.c (_IO_no_init): Initialize wide struct info.
53309
53310 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53311
53312         [BZ #14894]
53313         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
53314         __ppc_mdoio and __ppc_mdoom.
53315         * manual/platform.texi: Document new functions __ppc_yield,
53316         __ppc_mdoio and __ppc_mdoom.
53317
53318 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
53319
53320         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
53321         (main): Mention "tls" pseudo-hwcap is legacy.
53322         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
53323
53324 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53325
53326         * math/gen-libm-test.pl (parse_args): Output only string of
53327         arguments as text for test name, not full call or descriptions of
53328         tests for extra outputs.
53329         (generate_testfile): Do not pass function name to parse_args.
53330         Generate this_func variable from START.
53331         * math/libm-test.inc (struct test_f_f_data): Rename test_name
53332         field to arg_str.
53333         (struct test_ff_f_data): Likewise.
53334         (test_ff_f_data_nexttoward): Likewise.
53335         (struct test_fi_f_data): Likewise.
53336         (struct test_fl_f_data): Likewise.
53337         (struct test_if_f_data): Likewise.
53338         (struct test_fff_f_data): Likewise.
53339         (struct test_c_f_data): Likewise.
53340         (struct test_f_f1_data): Likewise.  Remove field extra_name.
53341         (struct test_fF_f1_data): Likewise.
53342         (struct test_ffI_f1_data): Likewise.
53343         (struct test_c_c_data): Rename test_name field to arg_str.
53344         (struct test_cc_c_data): Likewise.
53345         (struct test_f_i_data): Likewise.
53346         (struct test_ff_i_data): Likewise.
53347         (struct test_f_l_data): Likewise.
53348         (struct test_f_L_data): Likewise.
53349         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
53350         and extra2_name.
53351         (COMMON_TEST_SETUP): New macro.
53352         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
53353         (COMMON_TEST_CLEANUP): Likewise.
53354         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
53355         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
53356         macros.
53357         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
53358         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
53359         macros.
53360         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
53361         (RUN_TEST_fff_f): Take argument string.  Call new setup and
53362         cleanup macros.
53363         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
53364         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
53365         macros.
53366         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
53367         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
53368         macros.
53369         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53370         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
53371         cleanup macros.
53372         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53373         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
53374         cleanup macros.
53375         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53376         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
53377         cleanup macros.
53378         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53379         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
53380         macros.
53381         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
53382         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
53383         macros.
53384         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
53385         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
53386         macros.
53387         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
53388         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
53389         cleanup macros.
53390         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
53391         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
53392         cleanup macros.
53393         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
53394         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
53395         macros.
53396         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
53397         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
53398         cleanup macros.
53399         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
53400         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
53401         macros.
53402         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
53403         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
53404         macros.
53405         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
53406         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
53407         cleanup macros.
53408         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
53409
53410 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
53411
53412         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
53413         to _sifields.sigfault.
53414         (si_addr_lsb): Define new macro.
53415         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53416         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
53417         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
53418
53419 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
53420
53421         [BZ #15441]
53422         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
53423         returns -1.
53424         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
53425         null return -1.
53426         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
53427         loading the domain.
53428
53429 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53430
53431         * math/gen-libm-test.pl (parse_args): Do not include expected
53432         result in test name.
53433         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
53434         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53435         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53436         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53437         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53439
53440 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
53441
53442         * benchtests/Makefile: Sort function entries.
53443
53444         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
53445         tanh, asinh, acosh, atanh.
53446         * benchtests/acos-inputs: New file.
53447         * benchtests/acosh-inputs: New file.
53448         * benchtests/asin-inputs: New file.
53449         * benchtests/asinh-inputs: New file.
53450         * benchtests/atanh-inputs: New file.
53451         * benchtests/cosh-inputs: New file.
53452         * benchtests/log-inputs: New file.
53453         * benchtests/sinh-inputs: New file.
53454         * benchtests/tanh-inputs: New file.
53455
53456 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
53457
53458         [BZ #15339]
53459         * posix/tst-getaddrinfo4.c: New test.
53460         * posix/Makefile (tests): Add it.
53461
53462 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53463
53464         [BZ #15339]
53465         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
53466         when no services were used.
53467         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
53468         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
53469
53470 2013-05-21  Andreas Schwab  <schwab@suse.de>
53471
53472         [BZ #15014]
53473         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
53474         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
53475         successful.
53476         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
53477         redundant variable declarations and reallocation of buffer when
53478         parsing as IPv6 address.  Always set NSS status when called from
53479         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
53480         buffer too small.  Correct computation of needed size.
53481         * nss/Makefile (tests): Add test-digits-dots.
53482         * nss/test-digits-dots.c: New test.
53483
53484 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53485
53486         * benchtests/Makefile: Remove instructions for adding
53487         benchmark tests.
53488         * benchtests/README: New file to explain how to execute and
53489         enhance the benchmark tests.
53490
53491 2013-05-21  Andreas Schwab  <schwab@suse.de>
53492
53493         [BZ #15493]
53494         * setjmp/Makefile (tests): Add tst-sigsetjmp.
53495         * setjmp/tst-sigsetjmp.c: New test.
53496
53497 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53498
53499         * sysdeps/x86_64/memset.S (memset): New implementation.
53500         (__bzero): Likewise.
53501         (__memset_tail): New function.
53502
53503 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53504
53505         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
53506         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
53507         __memcpy_sse2_unaligned ifunc selection.
53508         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53509         Add memcpy-sse2-unaligned.S.
53510         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53511         Add: __memcpy_sse2_unaligned.
53512
53513 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
53514
53515         [BZ #15490]
53516         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53517         math_force_eval before restoring floating-point envrionment.
53518         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
53519         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
53520         Likewise.
53521         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53522         <math_private.h>.
53523         (__nearbyintl): Use math_force_eval before restoring
53524         floating-point environment.
53525         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
53526
53527         * math/gen-libm-test.pl (special_functions): Remove.
53528         (parse_args): Don't handle TEST_extra.  Handle functions with no
53529         return value.
53530         * math/libm-test.inc (struct test_sincos_data): Replace with
53531         struct test_fFF_11_data.
53532         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
53533         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
53534         (sincos_test_data): Change element type to struct
53535         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
53536         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
53537         RUN_TEST_LOOP_sincos.
53538         * math/README.libm-test: Don't mention special handling of
53539         individual functions.
53540         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
53541         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53542         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53543         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53544         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53546
53547         * math/gen-libm-test.pl (get_variable): Remove function.
53548         (parse_args): Don't show pointer parameters to call in test
53549         names.  Use "extra output N" in test names for extra outputs
53550         rather than naming variables.
53551
53552 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
53553
53554         [BZ #15488]
53555         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
53556         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
53557         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
53558         double tests.
53559         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
53560         disable.
53561         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
53562         check_long_double.
53563
53564         * math/gen-libm-test.pl (@tests): Remove variable.
53565         ($count): Likewise.
53566         (new_test): Remove function.
53567         (show_exceptions): New function.
53568         (special_functions): Use show_exceptions instead of new_test.
53569         (parse_args): Likewise.
53570         (generate_testfile): Pass only function name in generated call to
53571         print_max_error or print_complex_max_error.
53572         (get_ulps): Do not handle complex tests specially.
53573         (output_test): Rename to ...
53574         (get_all_ulps_for_test): ... this.  Return a string rather than
53575         printing to a file.  Require ulps to be present.
53576         (output_ulps): Generate arrays rather than #defines.
53577         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
53578         (struct ulp_data): New type.
53579         (BUILD_COMPLEX_ULP): Remove macro.
53580         (compare_ulp_data): New function.
53581         (find_ulps): Likewise.
53582         (find_test_ulps): Likewise.
53583         (find_function_ulps): Likewise.
53584         (find_complex_function_ulps): Likewise.
53585         (print_max_error): Determine allowed ulps using
53586         find_function_ulps.
53587         (print_complex_max_error): Determine allowed ulps using
53588         find_complex_function_ulps.
53589         (check_float_internal): Determine max ulps using find_test_ulps.
53590         (check_float): Do not take max_ulp parameter.  Update call to
53591         check_float_internal.
53592         (check_complex): Likewise.
53593         (check_int): Do not take max_ulp parameter.
53594         (check_long): Likewise.
53595         (check_bool): Likewise.
53596         (check_longlong): Likewise.
53597         (struct test_f_f_data): Remove max_ulp field.
53598         (struct test_ff_f_data): Likewise.
53599         (struct test_ff_f_data_nexttoward): Likewise.
53600         (struct test_fi_f_data): Likewise.
53601         (struct test_fl_f_data): Likewise.
53602         (struct test_if_f_data): Likewise.
53603         (struct test_fff_f_data): Likewise.
53604         (struct test_c_f_data): Likewise.
53605         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
53606         (struct test_fF_f1_data): Likewise.
53607         (struct test_ffI_f1_data): Likewise.
53608         (struct test_c_c_data): Remove max_ulp field.
53609         (struct test_cc_c_data): Likewise.
53610         (struct test_f_i_data): Likewise.
53611         (struct test_ff_i_data): Likewise.
53612         (struct test_f_l_data): Likewise.
53613         (struct test_f_L_data): Likewise.
53614         (struct test_sincos_data): Likewise.
53615         (RUN_TEST_f_f): Do not handle ulps.
53616         (RUN_TEST_LOOP_f_f): Likewise.
53617         (RUN_TEST_2_f): Likewise.
53618         (RUN_TEST_LOOP_2_f): Likewise.
53619         (RUN_TEST_fff_f): Likewise.
53620         (RUN_TEST_LOOP_fff_f): Likewise.
53621         (RUN_TEST_c_f): Likewise.
53622         (RUN_TEST_LOOP_c_f): Likewise.
53623         (RUN_TEST_f_f1): Likewise.
53624         (RUN_TEST_LOOP_f_f1): Likewise.
53625         (RUN_TEST_fF_f1): Likewise.
53626         (RUN_TEST_LOOP_fF_f1): Likewise.
53627         (RUN_TEST_fI_f1): Likewise.
53628         (RUN_TEST_LOOP_fI_f1): Likewise.
53629         (RUN_TEST_ffI_f1): Likewise.
53630         (RUN_TEST_LOOP_ffI_f1): Likewise.
53631         (RUN_TEST_c_c): Likewise.
53632         (RUN_TEST_LOOP_c_c): Likewise.
53633         (RUN_TEST_cc_c): Likewise.
53634         (RUN_TEST_LOOP_cc_c): Likewise.
53635         (RUN_TEST_f_i): Likewise.
53636         (RUN_TEST_LOOP_f_i): Likewise.
53637         (RUN_TEST_f_i_tg): Likewise.
53638         (RUN_TEST_LOOP_f_i_tg): Likewise.
53639         (RUN_TEST_ff_i_tg): Likewise.
53640         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53641         (RUN_TEST_f_b): Likewise.
53642         (RUN_TEST_LOOP_f_b): Likewise.
53643         (RUN_TEST_f_b_tg): Likewise.
53644         (RUN_TEST_LOOP_f_b_tg): Likewise.
53645         (RUN_TEST_f_l): Likewise.
53646         (RUN_TEST_LOOP_f_l): Likewise.
53647         (RUN_TEST_f_L): Likewise.
53648         (RUN_TEST_LOOP_f_L): Likewise.
53649         (RUN_TEST_sincos): Likewise.
53650         (RUN_TEST_LOOP_sincos): Likewise.
53651
53652 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
53653
53654         [BZ #15480]
53655         [BZ #15485]
53656         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
53657         main case of finite arguments, set rounding mode to FE_TONEAREST
53658         and discard exceptions.
53659         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
53660         exceptions.
53661         (remainder_tonearest_test_data): New variable.
53662         (remainder_test_tonearest): New function.
53663         (remainder_towardzero_test_data): New variable.
53664         (remainder_test_towardzero): New function.
53665         (remainder_downward_test_data): New variable.
53666         (remainder_test_downward): New function.
53667         (remainder_upward_test_data): New variable.
53668         (remainder_test_upward): New function.
53669         (main): Call the new test functions.
53670
53671         * math/libm-test.inc (struct test_f_f1_data): Remove field
53672         extra_init.
53673         (struct test_fF_f1_data): Likewise.
53674         (struct test_ffI_f1_data): Likewise.
53675         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
53676         based on value of EXTRA_EXPECTED.
53677         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53678         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
53679         EXTRA_VAR based on value of EXTRA_EXPECTED.
53680         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53681         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
53682         EXTRA_VAR based on value of EXTRA_EXPECTED.
53683         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53684         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
53685         EXTRA_VAR based on value of EXTRA_EXPECTED.
53686         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53687         * math/gen-libm-test.pl (parse_args): Don't output initializers
53688         for extra output values.
53689
53690         * math/libm-test.inc (check_int): Expect result to be exactly
53691         equal to expected value and do not handle ulps.
53692         (check_long): Likewise.
53693         (check_longlong): Likewise.
53694
53695         * math/libm-test.inc (ceil_test_data): Test for "inexact"
53696         exceptions.
53697         (cimag_test_data): Likewise.
53698         (conj_test_data): Likewise.
53699         (copysign_test_data): Likewise.
53700         (cproj_test_data): Likewise.
53701         (creal_test_data): Likewise.
53702         (fabs_test_data): Likewise.
53703         (fdim_test_data): Likewise.
53704         (finite_test_data): Likewise.
53705         (floor_test_data): Likewise.
53706         (fmax_test_data): Likewise.
53707         (fmin_test_data): Likewise.
53708         (fmod_test_data): Likewise.
53709         (fpclassify_test_data): Likewise.
53710         (frexp_test_data): Likewise.
53711         (ilogb_test_data): Likewise.
53712         (isfinite_test_data): Likewise.
53713         (isgreater_test_data): Likewise.
53714         (isgreaterequal_test_data): Likewise.
53715         (isinf_test_data): Likewise.
53716         (isless_test_data): Likewise.
53717         (islessequal_test_data): Likewise.
53718         (islessgreater_test_data): Likewise.
53719         (isnan_test_data): Likewise.
53720         (isnormal_test_data): Likewise.
53721         (issignaling_test_data): Likewise.
53722         (isunordered_test_data): Likewise.
53723         (ldexp_test_data): Likewise.
53724         (lrint_test_data): Likewise.
53725         (lrint_test_data) [TEST_FLOAT]: Disable one test.
53726         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
53727         (lrint_tonearest_test_data): Test for "inexact" exceptions.
53728         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53729         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
53730         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53731         test input.
53732         (lrint_towardzero_test_data): Test for "inexact" exceptions.
53733         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53734         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
53735         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
53736         that test input.
53737         (lrint_downward_test_data): Test for "inexact" exceptions.
53738         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53739         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53740         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53741         test input.
53742         (lrint_upward_test_data): Test for "inexact" exceptions.
53743         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
53744         test input.
53745         (llrint_test_data): Test for "inexact" exceptions.
53746         (llrint_test_data) [TEST_FLOAT]: Disable one test.
53747         (llrint_tonearest_test_data): Test for "inexact" exceptions.
53748         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53749         (llrint_towardzero_test_data): Test for "inexact" exceptions.
53750         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53751         (llrint_downward_test_data): Test for "inexact" exceptions.
53752         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53753         (llrint_upward_test_data): Test for "inexact" exceptions.
53754         (logb_test_data): Likewise.
53755         (logb_downward_test_data): Likewise.
53756         (nextafter_test_data): Likewise.
53757         (nexttoward_test_data): Likewise.
53758         (remainder_test_data): Likewise.
53759         (remquo_test_data): Likewise.
53760         (scalbn_test_data): Likewise.
53761         (scalbln_test_data): Likewise.
53762         (signbit_test_data): Likewise.
53763         (sqrt_test_data): Likewise.
53764         (significand_test_data): Likewise.
53765
53766 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53767
53768         [BZ #15424]
53769         * benchtests/bench-modf.c (struct args): Mark arg0 as
53770         volatile.
53771         * scripts/bench.pl: Mark members of struct args as volatile.
53772
53773 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53774
53775         [BZ # 15497]
53776         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
53777         negative infinity on POWER6 or lower.
53778         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
53779
53780 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
53781
53782         [BZ #15442]
53783         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
53784         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
53785         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
53786         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
53787         (_FP_SETQNAN): New macro.
53788         (_FP_SETQNAN_SEMIRAW): Likewise.
53789         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
53790         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
53791         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
53792         (FP_EXTEND): Use _FP_FRAC_SNANP.
53793         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
53794         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
53795         into account.
53796         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53797         New macro.
53798         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53799         Likewise.
53800
53801 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53802
53803         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
53804         with DIVIDE_BY_ZERO_EXCEPTION.
53805         (gamma_test_data): Likewise.
53806         (lgamma_test_data): Likewise.
53807         (log_test_data): Likewise.
53808         (log10_test_data): Likewise.
53809         (log2_test_data): Likewise.
53810         (tgamma_test_data): Likewise.
53811
53812         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
53813         (acos_test_tonearest): Likewise.
53814         (acos_test_towardzero): Likewise.
53815         (acos_test_downward): Likewise.
53816         (acos_test_upward): Likewise.
53817         (acosh_test): Likewise.
53818         (asin_test): Likewise.
53819         (asin_test_tonearest): Likewise.
53820         (asin_test_towardzero): Likewise.
53821         (asin_test_downward): Likewise.
53822         (asin_test_upward): Likewise.
53823         (asinh_test): Likewise.
53824         (atan_test): Likewise.
53825         (atanh_test): Likewise.
53826         (atan2_test): Likewise.
53827         (cabs_test): Likewise.
53828         (cacos_test): Likewise.
53829         (cacosh_test): Likewise.
53830         (casin_test): Likewise.
53831         (casinh_test): Likewise.
53832         (catan_test): Likewise.
53833         (catanh_test): Likewise.
53834         (cbrt_test): Likewise.
53835         (ccos_test): Likewise.
53836         (ccosh_test): Likewise.
53837         (cexp_test): Likewise.
53838         (clog_test): Likewise.
53839         (clog10_test): Likewise.
53840         (cos_test): Likewise.
53841         (cos_test_tonearest): Likewise.
53842         (cos_test_towardzero): Likewise.
53843         (cos_test_downward): Likewise.
53844         (cos_test_upward): Likewise.
53845         (cosh_test): Likewise.
53846         (cosh_test_tonearest): Likewise.
53847         (cosh_test_towardzero): Likewise.
53848         (cosh_test_downward): Likewise.
53849         (cosh_test_upward): Likewise.
53850         (cpow_test): Likewise.
53851         (csin_test): Likewise.
53852         (csinh_test): Likewise.
53853         (csqrt_test): Likewise.
53854         (ctan_test): Likewise.
53855         (ctan_test_tonearest): Likewise.
53856         (ctan_test_towardzero): Likewise.
53857         (ctan_test_downward): Likewise.
53858         (ctan_test_upward): Likewise.
53859         (ctanh_test): Likewise.
53860         (ctanh_test_tonearest): Likewise.
53861         (ctanh_test_towardzero): Likewise.
53862         (ctanh_test_downward): Likewise.
53863         (ctanh_test_upward): Likewise.
53864         (erf_test): Likewise.
53865         (erfc_test): Likewise.
53866         (exp_test): Likewise.
53867         (exp_test_tonearest): Likewise.
53868         (exp_test_towardzero): Likewise.
53869         (exp_test_downward): Likewise.
53870         (exp_test_upward): Likewise.
53871         (exp10_test): Likewise.
53872         (exp2_test): Likewise.
53873         (expm1_test): Likewise.
53874         (fmod_test): Likewise.
53875         (gamma_test): Likewise.
53876         (hypot_test): Likewise.
53877         (j0_test): Likewise.
53878         (j1_test): Likewise.
53879         (jn_test): Likewise.
53880         (lgamma_test): Likewise.
53881         (log_test): Likewise.
53882         (log10_test): Likewise.
53883         (log1p_test): Likewise.
53884         (log2_test): Likewise.
53885         (logb_test_downward): Likewise.
53886         (pow_test): Likewise.
53887         (pow_test_tonearest): Likewise.
53888         (pow_test_towardzero): Likewise.
53889         (pow_test_downward): Likewise.
53890         (pow_test_upward): Likewise.
53891         (remainder_test): Likewise.
53892         (remquo_test): Likewise.
53893         (sin_test): Likewise.
53894         (sin_test_tonearest): Likewise.
53895         (sin_test_towardzero): Likewise.
53896         (sin_test_downward): Likewise.
53897         (sin_test_upward): Likewise.
53898         (sincos_test): Likewise.
53899         (sinh_test): Likewise.
53900         (sinh_test_tonearest): Likewise.
53901         (sinh_test_towardzero): Likewise.
53902         (sinh_test_downward): Likewise.
53903         (sinh_test_upward): Likewise.
53904         (sqrt_test): Likewise.
53905         (tan_test): Likewise.
53906         (tan_test_tonearest): Likewise.
53907         (tan_test_towardzero): Likewise.
53908         (tan_test_downward): Likewise.
53909         (tan_test_upward): Likewise.
53910         (tanh_test): Likewise.
53911         (tgamma_test): Likewise.
53912         (y0_test): Likewise.
53913         (y1_test): Likewise.
53914         (yn_test): Likewise.
53915
53916         * math/gen-libm-test.pl (adjust_arg): Remove function.
53917         (special_function): Remove argument $in_func.  Only handle
53918         generating output for tables of tests, not inside functions.
53919         (parse_args): Likewise.
53920         (generate_testfile): Remove variable $in_func.  Update call to
53921         parse_args.
53922         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
53923         (MINUS_ZERO_INIT): Rename macro to minus_zero.
53924         (PLUS_INFTY_INIT): Rename macro to plus_infty.
53925         (MINUS_INFTY_INIT): Rename macro to minus_infty.
53926         (QNAN_VALUE_INIT): Rename macro to qnan_value.
53927         (MAX_VALUE_INIT): Rename macro to max_value.
53928         (MIN_VALUE_INIT): Rename macro to min_value.
53929         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
53930         (plus_zero): Remove variable.
53931         (minus_zero): Likewise.
53932         (plus_infty): Likewise.
53933         (minus_infty): Likewise.
53934         (qnan_value): Likewise.
53935         (max_value): Likewise.
53936         (min_value): Likewise.
53937         (min_subnorm_value): Likewise.
53938
53939 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53940
53941         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
53942         uint64_t or uint32_t usage.
53943         * crypt/sha256-block.c: Likewise.
53944         * crypt/sha256-crypt.c: Likewise.
53945         * crypt/sha256.c: Likewise.
53946         * crypt/sha512-block.c: Likewise.
53947         * crypt/sha512-crypt.c: Likewise.
53948         * crypt/sha512.c: Likewise.
53949         * debug/backtrace-tst.c: Likewise.
53950         * debug/pcprofiledump.c: Likewise.
53951         * elf/cache.c: Likewise.
53952         * elf/dl-cache.c: Likewise.
53953         * elf/dl-misc.c: Likewise.
53954         * elf/dl-profile.c: Likewise.
53955         * elf/dl-support.c: Likewise.
53956         * elf/ldconfig.c: Likewise.
53957         * elf/sprof.c: Likewise.
53958         * iconv/dummy-repertoire.c: Likewise.
53959         * iconv/iconv_charmap.c: Likewise.
53960         * iconv/skeleton.c: Likewise.
53961         * iconvdata/8bit-generic.c: Likewise.
53962         * iconvdata/cp737.h: Likewise.
53963         * iconvdata/cp775.h: Likewise.
53964         * iconvdata/ibm1008.h: Likewise.
53965         * iconvdata/ibm1025.h: Likewise.
53966         * iconvdata/ibm1046.h: Likewise.
53967         * iconvdata/ibm1097.h: Likewise.
53968         * iconvdata/ibm1112.h: Likewise.
53969         * iconvdata/ibm1122.h: Likewise.
53970         * iconvdata/ibm1123.h: Likewise.
53971         * iconvdata/ibm1124.h: Likewise.
53972         * iconvdata/ibm1129.h: Likewise.
53973         * iconvdata/ibm1130.h: Likewise.
53974         * iconvdata/ibm1132.h: Likewise.
53975         * iconvdata/ibm1133.h: Likewise.
53976         * iconvdata/ibm1137.h: Likewise.
53977         * iconvdata/ibm1140.h: Likewise.
53978         * iconvdata/ibm1141.h: Likewise.
53979         * iconvdata/ibm1142.h: Likewise.
53980         * iconvdata/ibm1143.h: Likewise.
53981         * iconvdata/ibm1144.h: Likewise.
53982         * iconvdata/ibm1145.h: Likewise.
53983         * iconvdata/ibm1146.h: Likewise.
53984         * iconvdata/ibm1147.h: Likewise.
53985         * iconvdata/ibm1148.h: Likewise.
53986         * iconvdata/ibm1149.h: Likewise.
53987         * iconvdata/ibm1153.h: Likewise.
53988         * iconvdata/ibm1154.h: Likewise.
53989         * iconvdata/ibm1155.h: Likewise.
53990         * iconvdata/ibm1156.h: Likewise.
53991         * iconvdata/ibm1157.h: Likewise.
53992         * iconvdata/ibm1158.h: Likewise.
53993         * iconvdata/ibm1160.h: Likewise.
53994         * iconvdata/ibm1161.h: Likewise.
53995         * iconvdata/ibm1162.h: Likewise.
53996         * iconvdata/ibm1163.h: Likewise.
53997         * iconvdata/ibm1164.h: Likewise.
53998         * iconvdata/ibm1166.h: Likewise.
53999         * iconvdata/ibm1167.h: Likewise.
54000         * iconvdata/ibm12712.h: Likewise.
54001         * iconvdata/ibm1390.h: Likewise.
54002         * iconvdata/ibm1399.h: Likewise.
54003         * iconvdata/ibm16804.h: Likewise.
54004         * iconvdata/ibm4517.h: Likewise.
54005         * iconvdata/ibm4899.h: Likewise.
54006         * iconvdata/ibm4909.h: Likewise.
54007         * iconvdata/ibm4971.h: Likewise.
54008         * iconvdata/ibm5347.h: Likewise.
54009         * iconvdata/ibm803.h: Likewise.
54010         * iconvdata/ibm856.h: Likewise.
54011         * iconvdata/ibm901.h: Likewise.
54012         * iconvdata/ibm902.h: Likewise.
54013         * iconvdata/ibm9030.h: Likewise.
54014         * iconvdata/ibm9066.h: Likewise.
54015         * iconvdata/ibm921.h: Likewise.
54016         * iconvdata/ibm922.h: Likewise.
54017         * iconvdata/ibm9448.h: Likewise.
54018         * iconvdata/isiri-3342.h: Likewise.
54019         * iconvdata/jis0201.h: Likewise.
54020         * include/link.h: Likewise.
54021         * include/netdb.h: Likewise.
54022         * inet/check_native.c: Likewise.
54023         * inet/check_pf.c: Likewise.
54024         * inet/getipv4sourcefilter.c: Likewise.
54025         * inet/getnameinfo.c: Likewise.
54026         * inet/getsourcefilter.c: Likewise.
54027         * inet/htonl.c: Likewise.
54028         * inet/setipv4sourcefilter.c: Likewise.
54029         * inet/setsourcefilter.c: Likewise.
54030         * inet/test-inet6_opt.c: Likewise.
54031         * inet/tst-network.c: Likewise.
54032         * locale/C-collate.c: Likewise.
54033         * locale/C-ctype.c: Likewise.
54034         * locale/C-time.c: Likewise.
54035         * locale/C-translit.h: Likewise.
54036         * locale/loadarchive.c: Likewise.
54037         * locale/programs/3level.h: Likewise.
54038         * locale/programs/charmap.c: Likewise.
54039         * locale/programs/charmap.h: Likewise.
54040         * locale/programs/ld-address.c: Likewise.
54041         * locale/programs/ld-collate.c: Likewise.
54042         * locale/programs/ld-ctype.c: Likewise.
54043         * locale/programs/ld-identification.c: Likewise.
54044         * locale/programs/ld-measurement.c: Likewise.
54045         * locale/programs/ld-messages.c: Likewise.
54046         * locale/programs/ld-monetary.c: Likewise.
54047         * locale/programs/ld-name.c: Likewise.
54048         * locale/programs/ld-numeric.c: Likewise.
54049         * locale/programs/ld-paper.c: Likewise.
54050         * locale/programs/ld-telephone.c: Likewise.
54051         * locale/programs/ld-time.c: Likewise.
54052         * locale/programs/linereader.c: Likewise.
54053         * locale/programs/locale.c: Likewise.
54054         * locale/programs/locarchive.c: Likewise.
54055         * locale/programs/locfile.h: Likewise.
54056         * locale/programs/repertoire.c: Likewise.
54057         * locale/programs/simple-hash.c: Likewise.
54058         * locale/programs/simple-hash.h: Likewise.
54059         * malloc/memusage.c: Likewise.
54060         * malloc/memusagestat.c: Likewise.
54061         * nis/nis_defaults.c: Likewise.
54062         * nis/nis_hash.c: Likewise.
54063         * nis/nis_print.c: Likewise.
54064         * nis/nis_xdr.c: Likewise.
54065         * nscd/connections.c: Likewise.
54066         * nscd/hstcache.c: Likewise.
54067         * nscd/nscd_gethst_r.c: Likewise.
54068         * nscd/nscd_getserv_r.c: Likewise.
54069         * nscd/nscd_helper.c: Likewise.
54070         * nscd/servicescache.c: Likewise.
54071         * nss/makedb.c: Likewise.
54072         * nss/nss_db/db-XXX.c: Likewise.
54073         * nss/nss_db/db-initgroups.c: Likewise.
54074         * nss/nss_db/db-netgrp.c: Likewise.
54075         * nss/nss_files/files-network.c: Likewise.
54076         * nss/nss_files/files-parse.c: Likewise.
54077         * posix/bug-regex5.c: Likewise.
54078         * posix/fnmatch_loop.c: Likewise.
54079         * posix/regcomp.c: Likewise.
54080         * posix/regexec.c: Likewise.
54081         * posix/tst-rfc3484-2.c: Likewise.
54082         * posix/tst-rfc3484-3.c: Likewise.
54083         * posix/tst-rfc3484.c: Likewise.
54084         * resolv/nss_dns/dns-canon.c: Likewise.
54085         * resolv/nss_dns/dns-network.c: Likewise.
54086         * resolv/res_init.c: Likewise.
54087         * resolv/res_mkquery.c: Likewise.
54088         * resolv/tst-aton.c: Likewise.
54089         * stdlib/cxa_atexit.c: Likewise.
54090         * stdlib/cxa_finalize.c: Likewise.
54091         * stdlib/gen-fpioconst.c: Likewise.
54092         * stdlib/strtol_l.c: Likewise.
54093         * string/tst-endian.c: Likewise.
54094         * sunrpc/auth_des.c: Likewise.
54095         * sunrpc/clnt_udp.c: Likewise.
54096         * sunrpc/rtime.c: Likewise.
54097         * sunrpc/svcauth_des.c: Likewise.
54098         * sunrpc/xdr.c: Likewise.
54099         * sunrpc/xdr_intXX_t.c: Likewise.
54100         * sunrpc/xdr_rec.c: Likewise.
54101         * sysdeps/generic/ldconfig.h: Likewise.
54102         * sysdeps/generic/ldsodefs.h: Likewise.
54103         * sysdeps/generic/memusage.h: Likewise.
54104         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
54105         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
54106         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
54107         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
54108         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
54109         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
54110         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
54111         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
54112         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
54113         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
54114         * sysdeps/posix/getaddrinfo.c: Likewise.
54115         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
54116         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54117         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
54118         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
54119         * sysdeps/powerpc/test-gettimebase.c: Likewise.
54120         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
54121         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
54122         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
54123         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
54124         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
54125         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
54126         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
54127         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
54128         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
54129         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
54130         * sysdeps/x86_64/dl-tls.h: Likewise.
54131         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
54132         * time/alt_digit.c: Likewise.
54133         * time/era.c: Likewise.
54134         * wcsmbs/tst-c16c32-1.c: Likewise.
54135
54136 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54137
54138         * math/libm-test.inc (struct test_sincos_data): New type.
54139         (RUN_TEST_LOOP_sincos): New macro.
54140         (sincos_test_data): New variable.
54141         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
54142
54143 2013-05-16  Richard Henderson  <rth@redhat.com>
54144
54145         * math/atest-exp2.c (LIMB64): New macro.
54146         (CONSTSZ): New macro.
54147         (mp_exp1, mp_exp_m1, mp_log2): New variables.
54148         (hexdig): Move ...
54149         (print_mpn_fp): ... to function scope.
54150         (read_mpn_hex): Remove.
54151         (get_log2): Remove.
54152         (exp2_mpn): Use mp_log2.
54153         (main): Use mp_exp1.
54154
54155 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54156
54157         * math/libm-test.inc: Remove comment about not testing "inexact"
54158         exceptions.
54159         (INEXACT_EXCEPTION): New macro.
54160         (NO_INEXACT_EXCEPTION): Likewise.
54161         (INVALID_EXCEPTION_OK): Update value.
54162         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
54163         (OVERFLOW_EXCEPTION_OK): Likewise.
54164         (UNDERFLOW_EXCEPTION_OK): Likewise.
54165         (IGNORE_ZERO_INF_SIGN): Likewise.
54166         (ERRNO_UNCHANGED): Likewise.
54167         (ERRNO_EDOM): Likewise.
54168         (ERRNO_ERANGE): Likewise.
54169         (test_exceptions): Handle testing "inexact" exceptions.
54170         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
54171         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
54172         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
54173         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
54174         INEXACT_EXCEPTION.
54175         (rint_towardzero_test_data): Likewise.
54176         (rint_downward_test_data): Likewise.
54177         (rint_upward_test_data): Likewise.
54178
54179         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
54180         with OVERFLOW_EXCEPTION.
54181         (exp10_test_data): Likewise.
54182         (exp2_test_data): Likewise.
54183         (expm1_test_data): Likewise.
54184         (lgamma_test_data): Likewise.
54185         (pow_test_data): Likewise.
54186         (tgamma_test_data): Likewise.
54187         (yn_test_data): Remove duplicate test of overflow.
54188
54189         * math/libm-test.inc (struct test_cc_c_data): New type.
54190         (RUN_TEST_LOOP_cc_c): New macro.
54191         (cpow_test_data): New variable.
54192         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
54193
54194         * math/libm-test.inc (struct test_f_L_data): New type.
54195         (RUN_TEST_LOOP_f_L): New macro.
54196         (llrint_test_data): New variable.
54197         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
54198         (llrint_tonearest_test_data): New variable.
54199         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
54200         (llrint_towardzero_test_data): New variable.
54201         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
54202         (llrint_downward_test_data): New variable.
54203         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
54204         (llrint_upward_test_data): New variable.
54205         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
54206         (llround_test_data): New variable.
54207         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
54208
54209 2013-05-13  Peter Collingbourne  <pcc@google.com>
54210
54211         * math/atest-exp2.c (get_log2): Remove const attribute.
54212
54213 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54214
54215         * math/libm-test.inc (struct test_f_l_data): New type.
54216         (RUN_TEST_LOOP_f_l): New macro.
54217         (lrint_test_data): New variable.
54218         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
54219         (lrint_tonearest_test_data): New variable.
54220         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
54221         (lrint_towardzero_test_data): New variable.
54222         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
54223         (lrint_downward_test_data): New variable.
54224         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
54225         (lrint_upward_test_data): New variable.
54226         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
54227         (lround_test_data): New variable.
54228         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
54229
54230 2013-05-15  Peter Collingbourne  <pcc@google.com>
54231
54232         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
54233         (EXTRACT_WORDS64) Use where appropriate.
54234         (INSERT_WORDS64) Likewise.
54235
54236         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
54237         constraints with x constraints.
54238         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
54239
54240         * malloc/obstack.c (_obstack_compat): Add initializer.
54241
54242 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
54243
54244         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
54245         si_trapno and add si_addr_lsb to _sifields.sigfault.
54246         (si_trapno): Remove macro.
54247         (si_addr_lsb): Define new macro.
54248         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
54249
54250 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54251
54252         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
54253         instead of TEST_f_l.
54254         (llrint_test_tonearest): Likewise.
54255         (llrint_test_towardzero): Likewise.
54256         (llrint_test_downward): Likewise.
54257         (llrint_test_upward): Likewise.
54258         (llround_test): Likewise.
54259
54260         * math/libm-test.inc (struct test_f_i_data): Add comment.
54261         (RUN_TEST_LOOP_f_b): New macro.
54262         (RUN_TEST_LOOP_f_b_tg): Likewise.
54263         (finite_test_data): New variable.
54264         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
54265         (isfinite_test_data): New variable.
54266         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54267         (isinf_test_data): New variable.
54268         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54269         (isnan_test_data): New variable.
54270         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54271         (isnormal_test_data): New variable.
54272         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54273         (issignaling_test_data): New variable.
54274         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54275         (signbit_test_data): New variable.
54276         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54277
54278         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
54279         with INVALID_EXCEPTION.
54280         (acosh_test_data): Likewise.
54281         (asin_test_data): Likewise.
54282         (atanh_test_data): Likewise.
54283         (fmod_test_data): Likewise.
54284         (log_test_data): Likewise.
54285         (log10_test_data): Likewise.
54286         (log2_test_data): Likewise.
54287         (pow_test_data): Likewise.
54288         (sqrt_test_data): Likewise.
54289         (y0_test_data): Likewise.
54290         (y1_test_data): Likewise.
54291         (yn_test_data): Likewise.
54292
54293         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
54294         function contents.
54295
54296         * math/libm-test.inc (struct test_ff_i_data): New type.
54297         (RUN_TEST_LOOP_ff_i_tg): New macro.
54298         (isgreater_test_data): New variable.
54299         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54300         (isgreaterequal_test_data): New variable.
54301         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54302         (isless_test_data): New variable.
54303         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54304         (islessequal_test_data): New variable.
54305         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54306         (islessgreater_test_data): New variable.
54307         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54308         (isunordered_test_data): New variable.
54309         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54310
54311 2013-05-14  David S. Miller  <davem@davemloft.net>
54312
54313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54314
54315 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
54316
54317         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
54318
54319         * math/libm-test.inc (struct test_fF_f1_data): Change type of
54320         extra_test to int.
54321         (struct test_f_i_data): Change type of max_ulp to int.
54322
54323         * math/libm-test.inc (test_ffI_f1_data): New type.
54324         (RUN_TEST_LOOP_ffI_f1): New macro.
54325         (remquo_test_data): New variable.
54326         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
54327
54328         * setjmp/tst-setjmp-fp.c: New file.
54329         * setjmp/Makefile (tests): Add tst-setjmp-fp.
54330         (link-libm): New variable.
54331         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
54332
54333         * math/libm-test.inc (struct test_f_i_data): New type.
54334         (RUN_TEST_LOOP_f_i): New macro.
54335         (RUN_TEST_LOOP_f_i_tg): Likewise.
54336         (fpclassify_test_data): New variable.
54337         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
54338         (ilogb_test_data): New variable.
54339         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
54340
54341         * math/libm-test.inc (scalbln_test): Correct function name in END
54342         call.
54343
54344         * math/libm-test.inc (struct test_f_f1_data): Add comment.
54345         (RUN_TEST_LOOP_fI_f1): New macro.
54346         (frexp_test_data): New variable.
54347         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
54348
54349         * math/libm-test.inc (struct test_fF_f1_data): New type.
54350         (RUN_TEST_LOOP_fF_f1): New macro.
54351         (modf_test_data): New variable.
54352         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
54353
54354         * math/libm-test.inc (struct test_f_f1_data): New type.
54355         (RUN_TEST_LOOP_f_f1): New macro.
54356         (gamma_test_data): New variable.
54357         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54358         (lgamma_test_data): New variable.
54359         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54360
54361 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
54362
54363         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
54364         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
54365         (main): Comment "tls" pseudo-hwcap.
54366
54367 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54368
54369         * math/libm-test.inc (struct test_fl_f_data): New type.
54370         (RUN_TEST_LOOP_fl_f): New variable.
54371         (scalbln_test_data): New variable.
54372         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
54373
54374         * math/libm-test.inc (struct test_fi_f_data): New type.
54375         (RUN_TEST_LOOP_fi_f): New macro.
54376         (ldexp_test_data): New variable.
54377         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
54378         (scalbn_test_data): New variable.
54379         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
54380
54381         * math/libm-test.inc (struct test_c_f_data): New type.
54382         (RUN_TEST_LOOP_c_f): New macro.
54383         (cabs_test_data): New variable.
54384         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
54385         (carg_test_data): New variable.
54386         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
54387         (cimag_test_data): New variable.
54388         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
54389         (creal_test_data): New variable.
54390         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
54391
54392         * math/libm-test.inc (struct test_if_f_data): New type.
54393         (RUN_TEST_LOOP_if_f): New macro.
54394         (jn_test_data): New variable.
54395         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
54396         (yn_test_data): New variable.
54397         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
54398
54399         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
54400
54401 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54402
54403         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
54404         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
54405
54406 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
54407
54408         * benchtests/Makefile (CPPFLAGS-nonlib): Add
54409         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
54410         (bench-deps): Add bench-timing.h.
54411         * benchtests-bench-skeleton.c: Include bench-timing.h.
54412         (main): Use TIMING_* macros instead of clock_gettime.
54413         * benchtests/bench-timing.h: New file.
54414
54415         [BZ #14582]
54416         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
54417         Renamed from _LIB_VERSION.
54418         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
54419
54420 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
54421
54422         * math/libm-test.inc (struct test_fff_f_data): New type.
54423         (RUN_TEST_LOOP_fff_f): New macro.
54424         (fma_test_data): New variable.
54425         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
54426         (fma_towardzero_test_data): New variable.
54427         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
54428         (fma_downward_test_data): New variable.
54429         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
54430         (fma_upward_test_data): New variable.
54431         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
54432
54433         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
54434         (struct test_c_c_data): New type.
54435         (RUN_TEST_LOOP_c_c): New macro.
54436         (cacos_test_data): New variable.
54437         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
54438         (cacosh_test_data): New variable.
54439         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
54440         (casin_test_data): New variable.
54441         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
54442         (casinh_test_data): New variable.
54443         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
54444         (catan_test_data): New variable.
54445         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
54446         (catanh_test_data): New variable.
54447         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
54448         (ccos_test_data): New variable.
54449         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
54450         (ccosh_test_data): New variable.
54451         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
54452         (cexp_test_data): New variable.
54453         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54454         (clog_test_data): New variable.
54455         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
54456         (clog10_test_data): New variable.
54457         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
54458         (conj_test_data): New variable.
54459         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
54460         (cproj_test_data): New variable.
54461         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
54462         (csin_test_data): New variable.
54463         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
54464         (csinh_test_data): New variable.
54465         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
54466         (csqrt_test_data): New variable.
54467         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
54468         (ctan_test_data): New variable.
54469         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
54470         (ctan_tonearest_test_data): New variable.
54471         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54472         (ctan_towardzero_test_data): New variable.
54473         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54474         (ctan_downward_test_data): New variable.
54475         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54476         (ctan_upward_test_data): New variable.
54477         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54478         (ctanh_test_data): New variable.
54479         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
54480         (ctanh_tonearest_test_data): New variable.
54481         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54482         (ctanh_towardzero_test_data): New variable.
54483         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54484         (ctanh_downward_test_data): New variable.
54485         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54486         (ctanh_upward_test_data): New variable.
54487         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54488         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
54489         of BUILD_COMPLEX.
54490
54491         * math/libm-test.inc (struct test_ff_f_data): New type.
54492         (struct test_ff_f_data_nexttoward): Likewise.
54493         (RUN_TEST_LOOP_2_f): New macro.
54494         (RUN_TEST_LOOP_ff_f): Likewise.
54495         (atan2_test_data): New variable.
54496         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
54497         (copysign_test_data): New variable.
54498         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
54499         (fdim_test_data): New variable.
54500         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
54501         (fmax_test_data): New variable.
54502         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
54503         (fmin_test_data): New variable.
54504         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
54505         (fmod_test_data): New variable.
54506         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
54507         (hypot_test_data): New variable.
54508         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
54509         (nextafter_test_data): New variable.
54510         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
54511         (nexttoward_test_data): New variable.
54512         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
54513         (pow_test_data): New variable.
54514         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
54515         (pow_tonearest_test_data): New variable.
54516         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
54517         (pow_towardzero_test_data): New variable.
54518         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
54519         (pow_downward_test_data): New variable.
54520         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
54521         (pow_upward_test_data): New variable.
54522         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
54523         (remainder_test_data): New variable.
54524         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
54525         (scalb_test_data): New variable.
54526         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
54527         * sysdeps/i386/fpu/libm-test-ulps: Update.
54528
54529 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
54530
54531         * math/libm-test.inc (fma_test): Use max_value instead of local
54532         variable fltmax.
54533         (nextafter_test): Likewise.
54534
54535         * math/libm-test.inc (acos_towardzero_test_data): New variable.
54536         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54537         (acos_downward_test_data): New variable.
54538         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54539         (acos_upward_test_data): New variable.
54540         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54541         (acosh_test_data): New variable.
54542         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
54543         (asin_test_data): New variable.
54544         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
54545         (asin_tonearest_test_data): New variable.
54546         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54547         (asin_towardzero_test_data): New variable.
54548         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54549         (asin_downward_test_data): New variable.
54550         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54551         (asin_upward_test_data): New variable.
54552         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54553         (asinh_test_data): New variable.
54554         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
54555         (atan_test_data): New variable.
54556         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
54557         (atanh_test_data): New variable.
54558         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
54559         (cbrt_test_data): New variable.
54560         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
54561         (ceil_test_data): New variable.
54562         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
54563         (cos_test_data): New variable.
54564         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
54565         (cos_tonearest_test_data): New variable.
54566         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54567         (cos_towardzero_test_data): New variable.
54568         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54569         (cos_downward_test_data): New variable.
54570         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54571         (cos_upward_test_data): New variable.
54572         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54573         (cosh_test_data): New variable.
54574         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
54575         (cosh_tonearest_test_data): New variable.
54576         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54577         (cosh_towardzero_test_data): New variable.
54578         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54579         (cosh_downward_test_data): New variable.
54580         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54581         (cosh_upward_test_data): New variable.
54582         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54583         (erf_test_data): New variable.
54584         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
54585         (erfc_test_data): New variable.
54586         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
54587         (exp_test_data): New variable.
54588         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
54589         (exp_tonearest_test_data): New variable.
54590         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54591         (exp_towardzero_test_data): New variable.
54592         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54593         (exp_downward_test_data): New variable.
54594         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54595         (exp_upward_test_data): New variable.
54596         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54597         (exp10_test_data): New variable.
54598         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
54599         (exp2_test_data): New variable.
54600         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
54601         (expm1_test_data): New variable.
54602         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
54603         (fabs_test_data): New variable.
54604         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
54605         (floor_test_data): New variable.
54606         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
54607         (j0_test_data): New variable.
54608         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
54609         (j1_test_data): New variable.
54610         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
54611         (log_test_data): New variable.
54612         (log_test): Run tests with RUN_TEST_LOOP_f_f.
54613         (log10_test_data): New variable.
54614         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
54615         (log1p_test_data): New variable.
54616         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
54617         (log2_test_data): New variable.
54618         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
54619         (logb_test_data): New variable.
54620         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
54621         (logb_downward_test_data): New variable.
54622         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54623         (nearbyint_test_data): New variable.
54624         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
54625         (rint_test_data): New variable.
54626         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
54627         (rint_tonearest_test_data): New variable.
54628         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54629         (rint_towardzero_test_data): New variable.
54630         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54631         (rint_downward_test_data): New variable.
54632         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54633         (rint_upward_test_data): New variable.
54634         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54635         (round_test_data): New variable.
54636         (round_test): Run tests with RUN_TEST_LOOP_f_f.
54637         (sin_test_data): New variable.
54638         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
54639         (sin_tonearest_test_data): New variable.
54640         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54641         (sin_towardzero_test_data): New variable.
54642         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54643         (sin_downward_test_data): New variable.
54644         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54645         (sin_upward_test_data): New variable.
54646         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54647         (sinh_test_data): New variable.
54648         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
54649         (sinh_tonearest_test_data): New variable.
54650         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54651         (sinh_towardzero_test_data): New variable.
54652         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54653         (sinh_downward_test_data): New variable.
54654         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54655         (sinh_upward_test_data): New variable.
54656         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54657         (sqrt_test_data): New variable.
54658         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
54659         (tan_test_data): New variable.
54660         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
54661         (tan_tonearest_test_data): New variable.
54662         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54663         (tan_towardzero_test_data): New variable.
54664         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54665         (tan_downward_test_data): New variable.
54666         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54667         (tan_upward_test_data): New variable.
54668         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54669         (tanh_test_data): New variable.
54670         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
54671         (tgamma_test_data): New variable.
54672         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
54673         (trunc_test_data): New variable.
54674         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
54675         (y0_test_data): New variable.
54676         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
54677         (y1_test_data): New variable.
54678         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
54679         (significand_test_data): New variable.
54680         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
54681
54682 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
54683
54684         [BZ #12387]
54685         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
54686
54687 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
54688
54689         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
54690
54691 2013-05-10  Andreas Jaeger  <aj@suse.de>
54692
54693         [BZ #15448]
54694         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
54695         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
54696
54697 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54698
54699         * math/gen-libm-test.pl (adjust_arg): New function.
54700         (special_functions): Handle generating output in both functions
54701         and arrays.
54702         (parse_args): Likewise.
54703         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
54704         $in_func argument to parse_args.
54705         * math/libm-test.inc (struct test_f_f_data): New type.
54706         (IF_ROUND_INIT_): New macro.
54707         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
54708         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
54709         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
54710         (IF_ROUND_INIT_FE_UPWARD): Likewise.
54711         (ROUND_RESTORE_): Likewise.
54712         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
54713         (ROUND_RESTORE_FE_TONEAREST): Likewise.
54714         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
54715         (ROUND_RESTORE_FE_UPWARD): Likewise.
54716         (RUN_TEST_LOOP_f_f): New macro.
54717         (acos_test_data): New variable.
54718         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
54719         (acos_tonearest_test_data): New variable.
54720         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54721
54722 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
54723
54724         * benchtests/bench-skeleton.c (startup): Fix coding style.
54725
54726 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54727
54728         [BZ #6809]
54729         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
54730         negative infinity argument.
54731         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
54732         negative infinity argument.
54733         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
54734         negative infinity argument.
54735         * math/libm-test.inc (tgamma_test): Expect errno to be set for
54736         domain errors.
54737
54738 2013-05-10  Florian Weimer  <fweimer@redhat.com>
54739
54740         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
54741         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
54742         * iconv/iconv_prog.c (main): Likewise.
54743         * locale/programs/charmap-dir.c (charmap_readdir)
54744         (fopen_uncompressed): Likewise.
54745         * locale/programs/locfile.c (siblings_uncached)
54746         (write_locale_data): Use lstat64 instead of lstat.
54747         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
54748         stat.
54749
54750 2013-05-10  Andreas Jaeger  <aj@suse.de>
54751
54752         [BZ #15395]
54753         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
54754         localization.
54755         Include <locale.h>.
54756
54757 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
54758
54759         * elf/dl-close.c (_dl_close_worker): Add comments.
54760
54761 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
54762
54763         [BZ #15359]
54764         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
54765         high part of pi/2.
54766         (__ieee754_rem_pio2l): Update comments.
54767
54768         [BZ #15429]
54769         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
54770         high part of pi/2.
54771         (__ieee754_rem_pio2l): Update comments.
54772
54773         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
54774         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
54775
54776         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
54777         M_PI_4l.
54778
54779         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
54780         (M_PI_34_LOG10El): Likewise.
54781         (M_PI2_LOG10El): Likewise.
54782         (M_PI4_LOG10El): Likewise.
54783         (M_PI_LOG10El): Likewise.
54784
54785 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54786
54787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54788
54789 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
54790
54791         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
54792         (MINUS_ZERO_INIT): Likewise.
54793         (PLUS_INFTY_INIT): Likewise.
54794         (MINUS_INFTY_INIT): Likewise.
54795         (QNAN_VALUE_INIT): Likewise.
54796         (MAX_VALUE_INIT): Likewise.
54797         (MIN_VALUE_INIT): Likewise.
54798         (MIN_SUBNORM_VALUE_INIT): Likewise.
54799         (plus_zero): Initialize with PLUS_ZERO_INIT.
54800         (minus_zero): Initialize with MINUS_ZERO_INIT.
54801         (plus_infty): Initialize with PLUS_INFTY_INIT.
54802         (minus_infty): Initialize with MINUS_INFTY_INIT.
54803         (qnan_value): Initialize with QNAN_VALUE_INIT.
54804         (max_value): Initialize with MAX_VALUE_INIT.
54805         (min_value): Initialize with MIN_VALUE_INIT.
54806         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
54807
54808         * math/libm-test.inc (RUN_TEST_if_f): New macro.
54809         (jn_test): Use TEST_if_f instead of TEST_ff_f.
54810         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
54811         (yn_test): Use TEST_if_f instead of TEST_ff_f.
54812
54813         * math/libm-test.inc (RUN_TEST_f_f): New macro.
54814         (RUN_TEST_2_f): Likewise.
54815         (RUN_TEST_ff_f): Likewise.
54816         (RUN_TEST_fi_f): Likewise.
54817         (RUN_TEST_fl_f): Likewise.
54818         (RUN_TEST_fff_f): Likewise.
54819         (RUN_TEST_c_f): Likewise.
54820         (RUN_TEST_f_f1): Likewise.
54821         (RUN_TEST_fF_f1): Likewise.
54822         (RUN_TEST_fI_f1): Likewise.
54823         (RUN_TEST_ffI_f1): Likewise.
54824         (RUN_TEST_c_c): Likewise.
54825         (RUN_TEST_cc_c): Likewise.
54826         (RUN_TEST_f_i): Likewise.
54827         (RUN_TEST_f_i_tg): Likewise.
54828         (RUN_TEST_ff_i_tg): Likewise.
54829         (RUN_TEST_f_b): Likewise.
54830         (RUN_TEST_f_b_tg): Likewise.
54831         (RUN_TEST_f_l): Likewise.
54832         (RUN_TEST_f_L): Likewise.
54833         (RUN_TEST_sincos): Likewise.
54834         * math/gen-libm-test.pl (new_test): Take new argument to indicate
54835         whether to show exceptions.  Do not include ");\n" in return
54836         value.
54837         (special_functions): Output call to RUN_TEST_sincos instead of
54838         check_float calls.  Update calls to new_test.
54839         (parse_args): Output call to single RUN_TEST_* macro instead of
54840         check_* calls and other assignments.  Update calls to new_test.
54841
54842         [BZ #2546]
54843         [BZ #2560]
54844         [BZ #5159]
54845         [BZ #15426]
54846         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
54847         input to result for tgamma overflow.
54848         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
54849         (gamma_coeff): New variable.
54850         (NCOEFF): New macro.
54851         (gamma_positive): New function.
54852         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
54853         underflow here.  Use gamma_positive instead of exp (lgamma) for
54854         other arguments.
54855         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
54856         (gamma_coeff): New variable.
54857         (NCOEFF): New macro.
54858         (gammaf_positive): New function.
54859         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
54860         underflow here.  Use gamma_positive instead of exp (lgamma) for
54861         other arguments.
54862         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
54863         (gamma_coeff): New variable.
54864         (NCOEFF): New macro.
54865         (gammal_positive): New function.
54866         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
54867         underflow here.  Use gamma_positive instead of exp (lgamma) for
54868         other arguments.
54869         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
54870         (gamma_coeff): New variable.
54871         (NCOEFF): New macro.
54872         (gammal_positive): New function.
54873         (__ieee754_gammal_r): Handle positive infinity, overflow and
54874         underflow here.  Handle NaN the same as positive infinity.  Remove
54875         check x < 0xffffffff for negative integers.  Use gamma_positive
54876         instead of exp (lgamma) for other arguments.
54877         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
54878         (gamma_coeff): New variable.
54879         (NCOEFF): New macro.
54880         (gammal_positive): New function.
54881         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
54882         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
54883         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
54884         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
54885         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
54886         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
54887         * sysdeps/generic/math_private.h (__gamma_productf): New
54888         prototype.
54889         (__gamma_product): Likewise.
54890         (__gamma_productl): Likewise.
54891         * math/Makefile (libm-calls): Add gamma_product.
54892         * math/libm-test.inc (tgamma_test): Add more tests.
54893         * sysdeps/i386/fpu/libm-test-ulps: Update.
54894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54895
54896 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
54897
54898         * benchtests/bench-skeleton.c (main): Preheat CPU.
54899
54900 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
54901
54902         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
54903
54904 2013-05-07  Roland McGrath  <roland@hack.frob.com>
54905
54906         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
54907         and _dl_skip_args_internal.
54908
54909 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
54910
54911         * manual/message.texi (Message Translation): Talk about users.
54912         Message to key mapping impacts design.
54913
54914 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54915
54916         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
54917
54918         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
54919
54920         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
54921         * sysdeps/wordsize-64/glob64.c: ... here.
54922
54923         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
54924         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
54925         New macros.
54926
54927         * debug/getlogin_r_chk.c: Moved to ...
54928         * login/getlogin_r_chk.c: ... here.
54929         * debug/Makefile (routines): Move getlogin_r_chk to ...
54930         * login/Makefile (routines): ... here.
54931         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
54932         * login/Versions (libc: GLIBC_2.4): ... here.
54933
54934         * io/poll.c (__poll): Renamed from poll.
54935         Add libc_hidden_def.
54936         (poll): Define as weak alias.
54937
54938         * debug/ptsname_r_chk.c: Moved to ...
54939         * login/ptsname_r_chk.c: ... here.
54940         * debug/Makefile (routines): Move ptsname_r_chk to ...
54941         * login/Makefile (routines): ... here.
54942         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
54943         * login/Versions (libc: GLIBC_2.4): ... here.
54944
54945         * posix/getlogin.c: Moved to ...
54946         * login/getlogin.c: ... here.
54947         * posix/getlogin_r.c: Moved to ...
54948         * login/getlogin_r.c: ... here.
54949         * posix/getlogin_r.c: Moved to ...
54950         * login/getlogin_r.c: ... here.
54951         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
54952         * login/Makefile (routines): ... here.
54953         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
54954         * login/Versions (libc: GLIBC_2.0): ... here.
54955
54956         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
54957         (setrlimit): Define as weak alias.
54958
54959         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
54960         Call __ names for open, ftruncate, and close.
54961         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
54962         (truncate): Define as weak alias.
54963
54964 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
54965
54966         * math/gen-libm-test.pl (parse_args): Initialize x before each
54967         test of frexp, modf and remquo.
54968
54969         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
54970         test signgam value.
54971
54972 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54973
54974         [BZ #15418]
54975         [BZ #15419]
54976         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
54977         internal tests.
54978         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54979
54980 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54981
54982         * elf/dl-writev.h: New file.
54983         * elf/dl-misc.c: Include it.
54984         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
54985         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
54986
54987 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
54988
54989         * math/libm-test.inc (noXFails): Remove variable.
54990         (noXPasses): Likewise.
54991         (BUILD_COMPLEX_INT): Remove macro.
54992         (print_screen): Remove xfail argument.
54993         (print_screen_max_error): Likewise.
54994         (update_stats): Likewise.
54995         (print_max_error): Likewise.  Update calls to other affected
54996         functions.
54997         (print_complex_max_error): Likewise.
54998         (test_single_exception): Update calls to print_screen.
54999         (test_single_errno): Likewise.
55000         (check_float_internal): Remove xfail argument.  Update calls to
55001         other affected functions.
55002         (check_float): Likewise.
55003         (check_complex): Likewise.
55004         (check_int): Likewise.
55005         (check_long): Likewise.
55006         (check_bool): Likewise.
55007         (check_longlong): Likewise.
55008         (main): Don't print noXFails and noXPasses.
55009         * math/gen-libm-test.pl (top level): Don't mention expected
55010         failure handling in comment.
55011         (new_test): Don't handle expected failures.
55012         (parse_args): Don't mention expected failure handling in comment.
55013         (generate_testfile): Don't handle expected failures.
55014         (parse_ulps): Likewise.
55015         (print_ulps_file): Likewise.
55016         (get_failure): Remove function.
55017         (output_test): Don't handle expected failures.
55018         * make/README.libm-test: Don't mention expected failure handling.
55019
55020         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
55021         (minus_zero): Likewise.
55022         (plus_infty): Likewise.
55023         (minus_infty): Likewise.
55024         (qnan_value): Likewise.
55025         (max_value): Likewise.
55026         (min_value): Likewise.
55027         (min_subnorm_value): Likewise.
55028         (initialize): Do not initialize those variables dynamically.
55029
55030 2013-05-03  Roland McGrath  <roland@hack.frob.com>
55031
55032         * io/open.c (__open_2): Moved to ...
55033         * io/open_2.c: ... this new file.
55034         * io/open64.c (__open64_2): Moved to ...
55035         * io/open64_2.c: ... this new file.
55036         * io/openat.c (__openat_2): Moved to ...
55037         * io/openat_2.c: ... this new file.
55038         * io/openat64.c (__openat64_2): Moved to ...
55039         * io/openat64_2.c: ... this new file.
55040         * io/Makefile (routines): Add them.
55041         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
55042         * sysdeps/unix/sysv/linux/open_2.c: File removed.
55043         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
55044         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
55045         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
55046         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
55047         (__openat64): Add hidden_ver.
55048         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
55049         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
55050
55051         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
55052         Separately conditionalize setting of GLRO(dl_sysinfo) so
55053         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
55054         as well, but the actual setting is only under [NEED_DL_SYSINFO].
55055
55056 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55057
55058         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
55059         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
55060         definition.
55061         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
55062         * sysdeps/unix/sysv/linux/powerpc/init-first.c
55063         (_libc_vdso_platform_setup): Add __vdso_time initialization.
55064         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
55065         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
55066
55067 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
55068
55069         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
55070         test signgam value.
55071
55072         * math/libm-test.inc (hypot_test): Do not use
55073         IGNORE_ZERO_INF_SIGN.
55074
55075 2013-05-03  Andreas Jaeger  <aj@suse.de>
55076
55077         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
55078         Linux 3.9.
55079         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
55080         (PF_MAX): Adjust for VSOCK change.
55081
55082 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55083
55084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55085
55086 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
55087
55088         [BZ #15264]
55089         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
55090         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
55091         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
55092
55093 2013-05-02  David S. Miller  <davem@davemloft.net>
55094
55095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55096
55097 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
55098
55099         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
55100
55101 2013-05-01  Roland McGrath  <roland@hack.frob.com>
55102
55103         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
55104
55105 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
55106
55107         [BZ #14952]
55108         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
55109         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55110         Use __attribute__ ((__gnu_inline__)).
55111         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55112         Don't use __attribute__ ((__gnu_inline__)).
55113
55114 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
55115
55116         [BZ #15423]
55117         * math/s_catan.c (__catan): Handle small real or imaginary part of
55118         input specially to avoid spurious underflow.
55119         * math/s_catanf.c (__catanf): Likewise.
55120         * math/s_catanh.c (__catanh): Likewise.
55121         * math/s_catanhf.c (__catanhf): Likewise.
55122         * math/s_catanhl.c (__catanhl): Likewise.
55123         * math/s_catanl.c (__catanl): Likewise.
55124         * math/libm-test.inc (catan_test): Add more tests.
55125         (catanh_test): Likewise.
55126         * sysdeps/i386/fpu/libm-test-ulps: Update.
55127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55128
55129 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55130
55131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55132
55133 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
55134
55135         [BZ #15416]
55136         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
55137         accurately for denominator in atan2.
55138         * math/s_catanf.c (__catanf): Likewise.
55139         * math/s_catanh.c (__catanh): Likewise.
55140         * math/s_catanhf.c (__catanhf): Likewise.
55141         * math/s_catanhl.c (__catanhl): Likewise.
55142         * math/s_catanl.c (__catanl): Likewise.
55143         * math/libm-test.inc (catan_test): Add more tests.
55144         (catanh_test): Likewise.
55145         * sysdeps/i386/fpu/libm-test-ulps: Update.
55146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55147
55148 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55149
55150         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
55151
55152         * benchtests/Makefile (bench): Remove slow benchmarks.
55153         * benchtests/atan-inputs: Add slow benchmark inputs.
55154         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
55155         (BENCH_FUNC): Accept variant offset.
55156         (VARIANT): Define.
55157         * benchtests/bench-skeleton.c (main): Run benchmark for each
55158         variant.
55159         * benchtests/cos-inputs: Add slow benchmark inputs.
55160         * benchtests/exp-inputs: Likewise.
55161         * benchtests/pow-inputs: Likewise.
55162         * benchtests/sin-inputs: Likewise.
55163         * benchtests/slowatan-inputs: Remove.
55164         * benchtests/slowatan.c: Remove.
55165         * benchtests/slowcos-inputs: Remove.
55166         * benchtests/slowcos.c: Remove.
55167         * benchtests/slowexp-inputs: Remove.
55168         * benchtests/slowexp.c: Remove.
55169         * benchtests/slowpow-inputs: Remove.
55170         * benchtests/slowpow.c: Remove.
55171         * benchtests/slowsin-inputs: Remove.
55172         * benchtests/slowsin.c: Remove.
55173         * benchtests/slowtan-inputs: Remove.
55174         * benchtests/slowtan.c: Remove.
55175         * benchtests/tan-inputs: Add slow benchmark inputs.
55176         * scripts/bench.pl: Parse comments and directives.
55177
55178         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
55179         in CPPFLAGS.
55180         ($(objpfx)bench-%.c): Remove *-ITER.
55181         * benchtests/bench-modf.c: Remove definition of ITER.
55182         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
55183         (main): Loop for DURATION seconds instead of fixed number of
55184         iterations.
55185         * scripts/bench.pl: Don't expect iterations in parameters.
55186
55187 2013-04-29  Roland McGrath  <roland@hack.frob.com>
55188
55189         * io/fchdir.c (__fchdir): Renamed from fchdir.
55190         (fchdir): Define as weak alias.
55191
55192 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55193
55194         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
55195         (ERRNO_EDOM): Likewise.
55196         (ERRNO_ERANGE): Likewise.
55197         (noErrnoTests): New variable.
55198         (init_max_error): Set errno to 0.
55199         (test_single_errno): New function.
55200         (test_errno): Likewise.
55201         (check_float_internal): Call test_errno.  Set errno to 0.
55202         (check_complex): Refer to errno tests in comment.
55203         (check_int): Call test_errno.  Set errno to 0.
55204         (check_long): Likewise.
55205         (check_bool): Likewise.
55206         (check_longlong): Likewise.
55207         (cos_test): Use ERRNO_* flags for errno tests instead of
55208         check_int.
55209         (expm1_test): Likewise.
55210         (fmod_test): Likewise.
55211         (ilogb_test): Likewise.
55212         (lgamma_test): Likewise.
55213         (pow_test): Likewise.
55214         (remainder_test): Likewise.
55215         (sin_test): Likewise.
55216         (tan_test): Likewise.
55217         (yn_test): Likewise.
55218         (initialize): Set errno to 0.
55219         (main): Print number of errno tests.
55220         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
55221
55222 2013-04-29  Andreas Jaeger  <aj@suse.de>
55223
55224         [BZ #15084]
55225         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
55226         and RES_USEVC.
55227
55228         [BZ #15085]
55229         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
55230         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
55231         unimplemented.
55232
55233         [BZ #15380]
55234         * stdlib/random.c (__initstate): Return NULL if
55235         __initstate fails.
55236
55237         [BZ #15086]
55238         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
55239         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
55240         RES_SNGLKUPREOP.
55241
55242 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55243
55244         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55245
55246 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55247
55248         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
55249         of individual tests.
55250         (casin_test): Likewise.
55251         (casinh_test): Likewise.
55252
55253 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
55254
55255         [BZ #15409]
55256         * math/s_catan.c (__catan): Handle arguments with large real or
55257         imaginary part separately without squaring.
55258         * math/s_catanf.c (__catanf): Likewise.
55259         * math/s_catanh.c (__catanh): Likewise.
55260         * math/s_catanhf.c (__catanhf): Likewise.
55261         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55262         and redefine.
55263         (__catanhl): Handle arguments with large real or imaginary part
55264         separately without squaring.
55265         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55266         and redefine.
55267         (__catanl): Handle arguments with large real or imaginary part
55268         separately without squaring.
55269         * math/libm-test.inc (catan_test): Add more tests.
55270         (catanh_test): Likewise.
55271         * sysdeps/i386/fpu/libm-test-ulps: Update.
55272         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55273
55274 2013-04-27  Andreas Jaeger  <aj@suse.de>
55275
55276         [BZ #15007]
55277         * stdlib/stdlib.h: Update guards for qecvt.
55278         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
55279         <stdlib.h>.
55280
55281 2013-04-27  Allan McRae  <allan@archlinux.org>
55282
55283         * sysdeps/i386/fpu/libm-test-ulps: Update.
55284
55285 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
55286
55287         [BZ #15406]
55288         * math/s_catan.c: Include <float.h>.
55289         (__catan): Ensure underflow exception occurs for underflowed
55290         result.
55291         * math/s_catanf.c: Include <float.h>.
55292         (__catanf): Ensure underflow exception occurs for underflowed
55293         result.
55294         * math/s_catanh.c: Include <float.h>.
55295         (__catanh): Ensure underflow exception occurs for underflowed
55296         result.
55297         * math/s_catanhf.c: Include <float.h>.
55298         (__catanhf): Ensure underflow exception occurs for underflowed
55299         result.
55300         * math/s_catanhl.c: Include <float.h>.
55301         (__catanhl): Ensure underflow exception occurs for underflowed
55302         result.
55303         * math/s_catanl.c: Include <float.h>.
55304         (__catanl): Ensure underflow exception occurs for underflowed
55305         result.
55306         * math/libm-test.inc (catan_test): Add more tests.
55307         (catanh_test): Likewise.
55308
55309         [BZ #15405]
55310         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
55311         underflowed result.
55312         * math/s_ccoshf.c (__ccoshf): Likewise.
55313         * math/s_ccoshl.c (__ccoshl): Likewise.
55314         * math/s_csin.c (__csin): Likewise.
55315         * math/s_csinf.c (__csinf): Likewise.
55316         * math/s_csinh.c (__csinh): Likewise.
55317         * math/s_csinhf.c (__csinhf): Likewise.
55318         * math/s_csinhl.c (__csinhl): Likewise.
55319         * math/s_csinl.c (__csinl): Likewise.
55320         * math/libm-test.inc (ccos_test): Add more tests.
55321         (ccosh_test): Likewise.
55322         (csin_test): Likewise.
55323         (csinh_test): Likewise.
55324
55325 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55326
55327         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
55328         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
55329         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
55330         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
55331         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
55332         powerpc/power5+/fpu folders.
55333         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
55334
55335
55336 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
55337
55338         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55339
55340 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
55341
55342         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
55343         additions to variable.
55344         [$(config-machine) = x86_64] (modules-names): Likewise.
55345         ($(objpfx)tst-audit3): Remove dependency.
55346         ($(objpfx)tst-audit3.out): Likewise.
55347         ($(objpfx)tst-audit4): Likewise.
55348         ($(objpfx)tst-audit4.out): Likewise.
55349         ($(objpfx)tst-audit5): Likewise.
55350         ($(objpfx)tst-audit5.out): Likewise.
55351         ($(objpfx)tst-audit6): Likewise.
55352         ($(objpfx)tst-audit6.out): Likewise.
55353         ($(objpfx)tst-audit7): Likewise.
55354         ($(objpfx)tst-audit7.out): Likewise.
55355         (tst-audit3-ENV): Remove variable.
55356         (tst-audit4-ENV): Likewise.
55357         (tst-audit5-ENV): Likewise.
55358         (tst-audit6-ENV): Likewise.
55359         (tst-audit7-ENV): Likewise.
55360         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
55361         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
55362         addition to variable.
55363         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
55364         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
55365         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
55366         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
55367         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
55368         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
55369         tst-audit3, tst-audit4 and tst-audit5.
55370         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
55371         tst-audit6 and tst-audit7.
55372         [$(subdir) = elf] (modules-names): Add audit modules for those
55373         tests.
55374         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
55375         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
55376         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
55377         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
55378         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
55379         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
55380         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
55381         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
55382         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
55383         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
55384         [$(subdir) = elf] (tst-audit3-ENV): New variable.
55385         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
55386         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
55387         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
55388         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
55389         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
55390         Likewise.
55391         [$(subdir) = elf && $(config-cflags-avx) = yes]
55392         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
55393         [$(subdir) = elf && $(config-cflags-avx) = yes]
55394         (CFLAGS-tst-auditmod4a.c): Likewise.
55395         [$(subdir) = elf && $(config-cflags-avx) = yes]
55396         (CFLAGS-tst-auditmod4b.c): Likewise.
55397         [$(subdir) = elf && $(config-cflags-avx) = yes]
55398         (CFLAGS-tst-auditmod6b.c): Likewise.
55399         [$(subdir) = elf && $(config-cflags-avx) = yes]
55400         (CFLAGS-tst-auditmod6c.c): Likewise.
55401         [$(subdir) = elf && $(config-cflags-avx) = yes]
55402         (CFLAGS-tst-auditmod7b.c): Likewise.
55403         * elf/tst-audit3.c: Move to ...
55404         * sysdeps/x86_64/tst-audit3.c: ... here.
55405         * elf/tst-audit4.c: Move to ...
55406         * sysdeps/x86_64/tst-audit4.c: ... here.
55407         * elf/tst-audit5.c: Move to ...
55408         * sysdeps/x86_64/tst-audit5.c: ... here.
55409         * elf/tst-audit6.c: Move to ...
55410         * sysdeps/x86_64/tst-audit6.c: ... here.
55411         * elf/tst-audit7.c: Move to ...
55412         * sysdeps/x86_64/tst-audit7.c: ... here.
55413         * elf/tst-auditmod3a.c: Move to ...
55414         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
55415         * elf/tst-auditmod3b.c: Move to ...
55416         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
55417         * elf/tst-auditmod4a.c: Move to ...
55418         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
55419         * elf/tst-auditmod4b.c: Move to ...
55420         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
55421         * elf/tst-auditmod5a.c: Move to ...
55422         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
55423         * elf/tst-auditmod5b.c: Move to ...
55424         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
55425         * elf/tst-auditmod6a.c: Move to ...
55426         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
55427         * elf/tst-auditmod6b.c: Move to ...
55428         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
55429         * elf/tst-auditmod6c.c: Move to ...
55430         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
55431         * elf/tst-auditmod7a.c: Move to ...
55432         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
55433         * elf/tst-auditmod7b.c: Move to ...
55434         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
55435
55436 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
55437
55438         [BZ #15366]
55439         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
55440         define unconditionally.
55441         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
55442         define unconditionally.
55443         (INT8_C, INT16_C, etc.): Likewise.
55444
55445 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
55446
55447         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
55448         __ehdr_start with hidden visibility.
55449
55450         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
55451
55452 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
55453
55454         * math/libm-test.inc (cos_test): Use accurate hex constants.
55455         (sincost_test): Likewise.
55456
55457 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
55458
55459         * math/libm-test.inc (catan_test): Add more tests.
55460         (catanh_test): Likewise.
55461
55462         * math/s_catanf.c (__catanf): Use suffixed floating-point
55463         constants.
55464         * math/s_catanhf.c (__catanhf): Likewise.
55465         * math/s_catanhl.c (__catanhl): Likewise.
55466         * math/s_catanl.c (__catanl): Likewise.
55467
55468         [BZ #15394]
55469         * math/s_catan.c (__catan): Calculate imaginary part of result
55470         with log1p not log unless computing log of number close to 0.
55471         * math/s_catanf.c (__catanf): Likewise.
55472         * math/s_catanl.c (__catanl): Likewise.
55473         * math/s_catanh.c (__catanh): Calculate real part of result with
55474         log1p not log unless computing log of number close to 0.
55475         * math/s_catanhf.c (__catanhf): Likewise.
55476         * math/s_catanhl.c (__catanhl): Likewise.
55477         * math/libm-test.inc (catan_test): Add more tests.
55478         (catanh_test): Likewise.
55479         * sysdeps/i386/fpu/libm-test-ulps: Update.
55480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55481
55482 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55483
55484         * benchtests/Makefile: Mention files in which fast and slow
55485         paths of math functions are implemented.
55486
55487 2013-04-23  Roland McGrath  <roland@hack.frob.com>
55488
55489         * sysdeps/posix/timespec_get.c: New file.
55490
55491 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55492
55493         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
55494         POWER.
55495         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
55496         for POWER.
55497         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
55498         powerpc/power5/fpu folders.
55499         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
55500         * benchtests/Makefile: Add modf testcase.
55501         * benchtests/bench-modf.c: New file: Benchmark test for mo
55502
55503 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
55504
55505         [BZ #14888]
55506         * time/Makefile (tests): Add tst-strptime-whitespace.
55507         * time/strptime_l.c (get_number): Use ISSPACE.
55508         (__strptime_internal): Likewise.
55509         * time/tst-strptime-whitespace.c: New test case.
55510
55511 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
55512
55513         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
55514         member.
55515         (_nss_files_init): Set it here.
55516
55517 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
55518
55519         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
55520         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
55521         unsigned.
55522
55523 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
55524
55525         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
55526
55527 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
55528
55529         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
55530         size just once.
55531
55532 2013-04-21  David S. Miller  <davem@davemloft.net>
55533
55534         * po/ru.po: Update Russion translation from translation project.
55535
55536 2013-04-17  Adam Conrad  <adconrad@0c3.net>
55537
55538         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
55539         and setfsgid.
55540
55541 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
55542
55543         * configure.in: Remove i386 configure warning. Remove i386 case.
55544         * configure: Regenerate.
55545         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
55546         Add example to error message.
55547         * sysdeps/i386/configure: Regenerate.
55548
55549 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55550
55551         * benchtests/Makefile (bench): Add cos, tan, slowcos and
55552         slowtan.
55553         * benchtests/cos-inputs: New file.
55554         * benchtests/slowcos-inputs: New file.
55555         * benchtests/slowcos.c: New file.
55556         * benchtests/slowtan-inputs: New file.
55557         * benchtests/slowtan.c: New file.
55558         * benchtests/tan-inputs: New file.
55559
55560 2013-04-16  Roland McGrath  <roland@hack.frob.com>
55561
55562         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
55563         considered kosher.
55564
55565 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55566
55567         * benchtests/Makefile: Include cppflags-iterator.mk to add
55568         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
55569
55570         * Makefile.in (bench-clean): New target.
55571         * benchtests/Makefile (bench-clean): Likewise.
55572
55573 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
55574
55575         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
55576
55577 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
55578
55579         * stdio-common/tstdiomisc.c: Fix coding-style violation.
55580
55581 2013-04-15  Andreas Schwab  <schwab@suse.de>
55582
55583         * nscd/grpcache.c (cache_addgr): Properly check for short write.
55584         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55585         * nscd/pwdcache.c (cache_addpw): Likewise.
55586         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
55587         more than recsize.
55588
55589 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55590
55591         * benchtests/Makefile (bench): Write all output to
55592         bench-out.tmp together.
55593
55594 2013-04-15  Andreas Schwab  <schwab@suse.de>
55595
55596         * nscd/nscd.c (main): Don't fork again after closing files.
55597
55598 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55599
55600         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
55601
55602         * benchtests/Rules (bench-deps): Collect dependencies into a
55603         single variable.  Add Makefile to dependencies.
55604         ($(objpfx)bench-%.c): Depend on bench-deps.
55605
55606 2013-04-12  Roland McGrath  <roland@hack.frob.com>
55607             Xavier Roche  <roche+kml2@exalead.com>
55608
55609         [BZ #15361]
55610         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
55611         just that it's a file descriptor.
55612         * manual/llio.texi (Synchronizing AIO Operations): Update description
55613         for EBADF error from aio_fsync.
55614
55615 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
55616
55617         * Rules (bench): Move target definition...
55618         * benchtests/Makefile: ... here.
55619
55620 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
55621
55622         * math/libm-test.inc (cos_test): Fix PI/2 test.
55623         (sincos_test): Likewise.
55624         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
55625         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
55626
55627 2013-04-11  Andreas Schwab  <schwab@suse.de>
55628
55629         [BZ #13988]
55630         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
55631         accept exponent character only when digits were seen.
55632         * stdio-common/Makefile (tests): Add bug26.
55633         * stdio-common/bug26.c: New file.
55634
55635         [BZ #14293]
55636         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
55637         non-freeable.
55638
55639 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55640
55641         * Makeconfig (rtld-prefix): Define built linker prefix.
55642         * Rules (run-bench): Use it.
55643         * math/Makefile (run-regen-ulps): Likewise.
55644
55645         * Rules (bench): Remove eval.
55646
55647 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55648             Roland McGrath  <roland@hack.frob.com>
55649             Ondrej Bilka  <neleai@seznam.cz>
55650
55651         [BZ #15346]
55652         * time/getdate.c: Include ctype.h and alloca.h.
55653         (__getdate_r): Trim leading and trailing spaces of input.
55654         * time/tst-getdate.c (tests): Add tests with leading and
55655         trailing spaces.
55656
55657 2013-04-08  Roland McGrath  <roland@hack.frob.com>
55658
55659         [BZ #14280]
55660         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
55661         when computing value.
55662
55663 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55664
55665         * math/README.libm-test (How can I generate "libm-test-ulps"?):
55666         Use testrun.sh to run libm tests.
55667
55668         [BZ #15309]
55669         * elf/dl-open.c (dl_open_worker): memset all of seen array.
55670
55671 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
55672
55673         [BZ #15264]
55674         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
55675
55676 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55677
55678         * Makefile.in (regen-ulps): New target.
55679         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
55680         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
55681         [ifneq (no,$(PERL)] (regen-ulps): New target.
55682         [ifeq (no,$(PERL)] (regen-ulps): New target.
55683         * math/libm-test.inc (ulps_file_name): Define.
55684         (output_dir): New variable.
55685         (options): Add "output-dir" option.
55686         (parse_opt): Handle 'o' case.
55687         (main): If output_dir is non-NULL use it as a prefix
55688         otherwise use "".
55689         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
55690
55691 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55692
55693         [BZ #10060, #10062]
55694         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
55695         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
55696         fail configure if __sync_val_compare_and_swap is not inlined.
55697         * sysdeps/i386/configure: Regenerate.
55698         * configure.in: Build for i686 when configured for i386.
55699         * configure: Regenerate.
55700         * README: Remove i386 reference.
55701
55702 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55703
55704         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
55705         * sysdeps/s390/s390-64/sysdep.h: Likewise.
55706
55707 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
55708
55709         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
55710         (lmsnanval): New variables.
55711         (F): Add conversion tests.
55712         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
55713         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
55714
55715         * stdio-common/tstdiomisc.c (F): Properly collect individual
55716         tests' results.
55717
55718         [BZ #14686, #15336]
55719         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
55720         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
55721         Instead, use input NaN values or generate a qNaN by arithmetic
55722         operation.  Also fix bugs to comply with the standard.
55723         * math/libm-test.inc (remainder_test): Add more tests.
55724
55725         [BZ #15335, #15342]
55726         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
55727         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
55728         input NaN values or generate a qNaN by arithmetic operation.
55729
55730         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
55731         unreachable code.
55732
55733         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
55734         definitions.
55735
55736 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
55737
55738         [BZ #14478]
55739         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
55740         underflowed result.
55741         * math/s_cexpf.c (__cexpf): Likewise.
55742         * math/s_cexpl.c (__cexpl): Likewise.
55743         * math/libm-test.inc (cexp_test): Add more tests.
55744
55745 2013-04-03  Andreas Schwab  <schwab@suse.de>
55746
55747         [BZ #15330]
55748         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
55749         order arrays from heap if bigger than alloca cutoff.
55750
55751 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
55752
55753         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
55754         (SNAN_TESTS_double): Refer to GCC PR56831.
55755         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
55756         GCC PR56828.
55757
55758 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55759
55760         * Rules (bench): Move bench.out after the run is complete.
55761
55762         * Rules (bench): Echo currently running benchmark.
55763
55764         * benchtests/Makefile (bench): Add atan and slowatan.
55765         * benchtests/atan-inputs: New file.
55766         * benchtests/slowatan-inputs: New file.
55767         * benchtests/slowatan.c: New file.
55768
55769         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
55770         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
55771         its value.
55772
55773         [BZ #15305]
55774         * sysdeps/unix/sysv/linux/kernel-features.h
55775         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
55776         __ASSUME_XFS_RESTRICTED_CHOWN.
55777         * sysdeps/unix/sysv/linux/pathconf.c
55778         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
55779         Save and restore errno.
55780
55781 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
55782
55783         [BZ #15327]
55784         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
55785         arguments using __kernel_casinh.
55786         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
55787         arguments using __kernel_casinhf.
55788         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
55789         arguments using __kernel_casinhl.
55790         * math/libm-test.inc (cacosh_test): Add more tests.
55791         * sysdeps/i386/fpu/libm-test-ulps: Update.
55792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55793
55794 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55795
55796         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
55797         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
55798
55799         * bench/Makefile (bench): Add sin and slowsin.
55800         * benchtests/sin-inputs: New file.
55801         * benchtests/slowsin-inputs: New file.
55802         * benchtests/slowsin.c: New file.
55803
55804         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
55805         (bench): Add slowexp and slowpow.
55806         (exp-ITER): Increase iterations.
55807         (pow-ITER): Likewise.
55808         * benchtests/exp-inputs: Change input.
55809         * benchtests/pow-inputs: Likewise.
55810         * benchtests/slowexp-inputs: New file.
55811         * benchtests/slowexp.c: New file.
55812         * benchtests/slowpow-inputs: New file.
55813         * benchtests/slowpow.c: New file.
55814
55815 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55816
55817         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
55818         instructions.
55819         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
55820         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
55821         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
55822         * benchtests/Makefile: Add rint benchtest.
55823         * benchtests/rint-inputs: Input for rint benchtest.
55824
55825 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
55826
55827         * Versions.def (libm): Add GLIBC_2.18.
55828         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
55829         hidden libm prototypes.
55830         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
55831         * math/Makefile (libm-calls): Add s_issignaling.
55832         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
55833         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
55834         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
55835         declaration.
55836         * math/math.h [__USE_GNU] (issignaling): New macro.
55837         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
55838         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
55839         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
55840         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
55841         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
55842         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
55843         * manual/arith.texi (issignaling): New section.
55844         * manual/libm-err-tab.pl (@all_functions): Update comment.
55845         * math/gen-libm-test.pl (parse_args): Apply special handling for
55846         issignaling.
55847         * math/libm-test.inc (print_float, issignaling_test): New
55848         functions.
55849         (check_float_internal): Add issignaling checks.
55850         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
55851         default definition.
55852         * sysdeps/powerpc/math-tests.h: New file.
55853         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
55854         tests.
55855         * math/test-snan.c (TEST_FUNC): Likewise.
55856
55857 2013-03-30  David S. Miller  <davem@davemloft.net>
55858
55859         * po/de.po: Update from translation team.
55860
55861 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
55862
55863         [BZ #10357]
55864         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55865         imaginary part less than 1.0 and real part less than 0.5
55866         specially.
55867         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55868         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55869         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
55870         (cacos_test): Add more tests.
55871         (casin_test): Likewise.
55872         (casinh_test): Likewise.
55873         * sysdeps/i386/fpu/libm-test-ulps: Update.
55874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55875
55876 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55877
55878         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
55879         ONE with its value.
55880
55881         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
55882         (__pow_mp): Replace ONE and MONE with their values.
55883         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55884         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
55885         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55886         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
55887         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55888         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55889
55890         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
55891
55892         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
55893         (__pow_mp): Replace ZERO and MZERO with their values.
55894         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55895         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55896         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55897         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
55898         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55899         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
55900         (__sqr): Likewise.
55901
55902         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
55903
55904         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
55905
55906 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55907
55908         * include/stdlib.h [!SHARED] (__call_tls_dtors):
55909         Declare with __attribute__ ((weak)).
55910         * stdlib/exit.c (__libc_atexit) [!SHARED]:
55911         Call __call_tls_dtors only if it's not NULL.
55912
55913 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55914
55915         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
55916         didn't do it already, then set _dl_phdr and _dl_phnum based on the
55917         magic __ehdr_start linker symbol if it's defined.
55918         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
55919         them up here if it was already done.
55920
55921         * elf/dl-support.c (_dl_phdr): Make pointer to const.
55922         (_dl_aux_init): Use const in cast when setting it.
55923         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
55924         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
55925         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
55926
55927         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
55928         Declare them here.
55929         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
55930         * csu/libc-tls.c: Nor here.
55931         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
55932
55933         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
55934         (__libc_message): Never call vsyslog.
55935
55936 2013-03-28  Alan Modra  <amodra@gmail.com>
55937
55938         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
55939         Define as empty.
55940         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
55941         Likewise.
55942
55943 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55944
55945         [BZ #15214]
55946         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
55947         underflow.
55948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55949
55950 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55951
55952         [BZ #15304]
55953         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
55954         Don't add gid passed as argument.
55955
55956         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
55957
55958 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
55959
55960         [BZ #15307]
55961         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55962         imaginary part between 1.0 and 1.5 and real part less than 0.5
55963         specially.
55964         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55965         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55966         * math/libm-test.inc (cacos_test): Add more tests.
55967         (casin_test): Likewise.
55968         (casinh_test): Likewise.
55969         * sysdeps/i386/fpu/libm-test-ulps: Update.
55970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55971
55972 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
55973
55974         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
55975         constants.
55976         (norm): Likewise.
55977         (denorm): Likewise.
55978         (__dbl_mp): Likewise.
55979         (add_magnitudes): Likewise.
55980         (sub_magnitudes): Likewise.
55981         (__add): Likewise.
55982         (__sub): Likewise.
55983         (__mul): Likewise.
55984         (__sqr): Likewise.
55985         (__inv): Likewise.
55986         (__dvd): Likewise.
55987
55988         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
55989         commented code.
55990         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
55991         (__dubcos): Likewise.
55992         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
55993         (__ieee754_acos): Likewise.
55994         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55995         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
55996         (__exp1): Likewise.
55997         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55998         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
55999         (log1): Likewise.
56000         (my_log2): Likewise.
56001         (checkint): Likewise.
56002         * sysdeps/ieee754/dbl-64/e_remainder.c
56003         (__ieee754_remainder): Likewise.
56004         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56005         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
56006         (bsloww): Likewise.
56007         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56008
56009         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56010         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
56011         MANTISSA_STORE_T to store computations on mantissa.  Use
56012         macros for rounding and division.
56013         (denorm): Likewise.
56014         (__dbl_mp): Likewise.
56015         (add_magnitudes): Likewise.
56016         (sub_magnitudes): Likewise.
56017         (__mul): Likewise.
56018         (__sqr): Likewise.
56019         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56020         powers of two in terms of TWOPOW macro.
56021         (mp_no): Make type of mantissa as MANTISSA_T.
56022         [!RADIXI]: Define RADIXI.
56023         [!TWO52]: Define TWO52.
56024         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56025
56026 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56027
56028         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
56029         llroundl symbol when building for PPC32.
56030
56031 2013-03-24  Mark H Weaver  <mhw@netris.org>
56032
56033         * manual/arith.texi (Normalization Functions): Fix prototypes for
56034         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
56035
56036 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56037
56038         [BZ #13889]
56039         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
56040         high value to check if expl overflow.
56041         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
56042         to check for underflow and overflow.
56043         * math/libm-test.inc: Add exp test.
56044
56045 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
56046
56047         [BZ #11120]
56048         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
56049         with NOT_IN_libc.
56050
56051 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56052
56053         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
56054         symbol.
56055
56056 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
56057
56058         * math/gen-libm-test.pl (parse_args, special_functions): Properly
56059         wrap blocks consisting of several statements.
56060
56061         * sysdeps/generic/math-tests.h: New file.
56062         * sysdeps/i386/fpu/math-tests.h: Likewise.
56063         * math/test-snan.c: Include it.
56064         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
56065
56066 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56067
56068         [BZ #15285]
56069         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
56070         (__ieee754_j0l): Do not improve calculations using cos of twice
56071         input for inputs above LDBL_MAX / 2.0L.
56072         (__ieee754_y0l): Likewise.
56073         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
56074         (__ieee754_j1l): Do not improve calculations using cos of twice
56075         input for inputs above LDBL_MAX / 2.0L.
56076         (__ieee754_y1l): Likewise.
56077         * math/libm-test.inc (j0_test): Add another test.
56078         (j1_test): Likewise.
56079         (y0_test): Likewise.
56080         (y1_test): Likewise.
56081         * sysdeps/i386/fpu/libm-test-ulps: Update.
56082
56083 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56084
56085         * Rules ($(objpfx)bench-%.c): Include code from a C source
56086         file.
56087
56088 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56089
56090         [BZ #15287]
56091         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56092         imaginary part 1.0 and real part less than 0.5 specially.
56093         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56094         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56095         * math/libm-test.inc (cacos_test): Add more tests.
56096         (casin_test): Likewise.
56097         (casinh_test): Likewise.
56098         * sysdeps/i386/fpu/libm-test-ulps: Update.
56099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56100
56101 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56102
56103         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
56104         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
56105
56106 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
56107
56108         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
56109         * config.make.in (config-cflags-sse4): Remove variable.
56110         (config-cflags-avx): Likewise.
56111         (config-cflags-sse2avx): Likewise.
56112         (config-cflags-novzeroupper): Likewise.
56113         (config-asflags-i686): Likewise.
56114         (have-mfma4): Likewise.
56115         (have-as-vis3): Likewise.
56116         (MIG): Likewise.
56117         * configure.in (MIG): Do not AC_SUBST.
56118         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
56119         (libc_cv_cc_sse4): Do not AC_SUBST.
56120         (libc_cv_cc_avx): Likewise.
56121         (libc_cv_cc_sse2avx): Likewise.
56122         (libc_cv_cc_novzeroupper): Likewise.
56123         (libc_cv_cc_fma4): Likewise.
56124         (libc_cv_as_i686): Likewise.
56125         (libc_cv_sparc_as_vis3): Likewise.
56126         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
56127         LIBC_CONFIG_VAR.
56128         (config-asflags-i686): Likewise.
56129         (config-cflags-avx): Likewise.
56130         (config-cflags-sse2avx): Likewise.
56131         (have-mfma4): Likewise.
56132         (config-cflags-novzeroupper): Likewise.
56133         * sysdeps/mach/configure.in (MIG): Likewise.
56134         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
56135         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
56136         LIBC_CONFIG_VAR.
56137         (config-cflags-avx): Likewise.
56138         (config-cflags-sse2avx): Likewise.
56139         (have-mfma4): Likewise.
56140         (config-cflags-novzeroupper): Likewise.
56141         * configure: Regenerated.
56142         * sysdeps/i386/configure: Likewise.
56143         * sysdeps/mach/configure: Likewise.
56144         * sysdeps/sparc/configure: Likewise.
56145         * sysdeps/x86_64/configure: Likewise.
56146
56147 2013-03-20  Roland McGrath  <roland@hack.frob.com>
56148
56149         [BZ #14812]
56150         * locale/programs/localedef.c (options): Put N_ translation marker
56151         on argument names, not just descriptions.
56152
56153 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56154
56155         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
56156
56157 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
56158
56159         [BZ #14176]
56160         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
56161
56162 2013-03-19  Roland McGrath  <roland@hack.frob.com>
56163
56164         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
56165         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
56166         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
56167         [!BEFORE_ABORT] (before_abort): New function.
56168         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
56169         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
56170         (writev_for_fatal): New function.
56171         (WRITEV_FOR_FATAL): New macro; call that.
56172         (backtrace_and_maps): New function.
56173         (BEFORE_ABORT): New macro; call that.
56174         (struct str_list): Type removed.
56175         (__libc_message, __libc_fatal): Functions removed.
56176         Include <sysdeps/posix/libc_fatal.c> instead.
56177
56178 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
56179
56180         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
56181         constants.
56182         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
56183         double constants.
56184
56185 2013-03-19  Andreas Schwab  <schwab@suse.de>
56186
56187         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
56188         * sysdeps/gnu/configure: Regenerate.
56189
56190         * configure.in: Substitute libc_cv_rtlddir.
56191         * configure: Regenerate.
56192         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
56193         * Makeconfig (rtlddir, inst_rtlddir): New variables.
56194         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
56195         * elf/Makefile (install-others, CFLAGS-interp.c)
56196         (ldso_install, common-ldd-rewrite): Likewise.
56197         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
56198         $(inst_slibdir)/$(rtld-installed-name).
56199         * scripts/rellns-sh: Add -p option.
56200         * Makerules (make-shlib-link): Use rellns-sh to get relative name
56201         for source.
56202
56203 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56204
56205         * manual/nptl.texi: Renamed to ...
56206         * manual/threads.texi: ... this.
56207         * manual/Makefile (chapters): Update.
56208
56209 2013-03-18  Roland McGrath  <roland@hack.frob.com>
56210
56211         [BZ #14812]
56212         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
56213         on argument names, not just descriptions.
56214         * malloc/memusagestat.c (options): Likewise.
56215         * nss/getent.c (options): Likewise.
56216
56217 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
56218
56219         [BZ #14812]
56220         * iconv/iconv_prog.c (options): Put N_ translation marker
56221         on argument names, not just descriptions.
56222         * iconv/iconvconfig.c (options): Likewise.
56223
56224 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
56225
56226         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
56227         implementation which is faster on all x86_64 architectures.
56228         Tested on AMD, Intel Nehalem, SNB, IVB.
56229         * sysdeps/x86_64/strnlen.S: Likewise.
56230
56231         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
56232         Remove all multiarch strlen and strnlen versions.
56233         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
56234         Remove strlen and strnlen related parts.
56235
56236         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
56237         Inline strlen part.
56238         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
56239
56240         * sysdeps/x86_64/multiarch/strlen.S: Remove.
56241         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
56242         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
56243         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
56244         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56245         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
56246
56247 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
56248
56249         * manual/memory.texi (Malloc Tunable Parameters):
56250         Sort parameters alphabetically. Add comments for missing entries.
56251
56252 2013-03-17  David S. Miller  <davem@davemloft.net>
56253
56254         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56255
56256 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
56257
56258         [BZ #15283]
56259         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
56260         for arguments at most half maximum finite value.
56261         * math/libm-test.inc (j0_test): Add more tests.
56262         (j1_test): Likewise.
56263         (y0_test): Likewise.
56264         (y1_test): Likewise.
56265         * sysdeps/i386/fpu/libm-test-ulps: Update.
56266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56267
56268         [BZ #14155]
56269         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
56270         1 / x and functions P and Q for arguments above 0x1p256L.
56271         (__ieee754_y0l): Likewise.
56272         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
56273         (__ieee754_y1l): Likewise.
56274         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
56275         (j1_test): Likewise.
56276         (y0_test): Likewise.
56277         (y1_test): Likewise.
56278
56279 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
56280
56281         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
56282         variable.
56283
56284 2013-03-15  Roland McGrath  <roland@hack.frob.com>
56285
56286         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
56287         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
56288         zero since it's initialized to EXEC_PAGESIZE.
56289
56290         * sysdeps/unix/sysv/linux/ldsodefs.h
56291         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
56292         * sysdeps/generic/ldsodefs.h: ... here.
56293
56294 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
56295
56296         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
56297
56298         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
56299         math/test-snan.c.
56300         * math/test-snan.c: Renamed from
56301         sysdeps/powerpc/fpu/test-powerpc-snan.c.
56302         * math/Makefile (tests): Add test-snan.
56303         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
56304         test-powerpc-snan.
56305
56306         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
56307         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
56308         functions.
56309         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
56310         __builtin_nan family of functions.
56311         * math/libm-test.inc (initialize): Initialize qnan_value with
56312         __builtin_nan family of functions.
56313         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
56314         Remove variables.
56315         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
56316         Remove functions.
56317         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
56318         storage class.  Initialize qNaN_var and sNaN_var with
56319         __builtin_nan and __builtin_nans families of functions,
56320         respectively.
56321
56322         * math/libm-test.inc (acosh_test): Also test with qNaN input.
56323         (sqrt_test): Remove duplicate test with qNaN input.
56324         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
56325         (round_test, signbit_test, significand_test): Note missing +/-Inf
56326         as well as qNaN tests.
56327
56328         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
56329         qNaN_var.  Fix a few strings, too.
56330         * math/libm-test.inc (nan_value): Rename to qnan_value.
56331         * math/gen-libm-test.pl (%beautify): Adjust to that.
56332         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
56333         * math/test-misc.c (main): Likewise.
56334         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
56335         to __qnan_bytes, and __qnan_union, respectively.
56336         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
56337         Likewise.
56338         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
56339         and lqnanval, respectively.
56340         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
56341         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
56342         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
56343         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
56344
56345         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
56346         * math/test-misc.c (main) [__x86_64__]: Enable test for long
56347         doubles.
56348
56349         * math/test-misc.c (main): Fix copy'n'pastos.
56350         * misc/tst-efgcvt.c (special): Likewise.
56351
56352         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
56353         Remove declarations.
56354
56355 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56356
56357         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
56358         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
56359         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
56360         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
56361
56362 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56363
56364         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
56365         macro to return vdso values correctly in IFUNC implementations.
56366         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
56367         Optimization by using IFUNC.
56368
56369 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56370             Richard Henderson  <rth@redhat.com>
56371             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56372
56373         * Makefile.in (bench): New target.
56374         * NEWS: Mention the benchmark framework.
56375         * Rules (bench): Likewise.
56376         (binaries-bench): Generate binaries for functions to
56377         benchmark.
56378         * benchtests/Makefile: New makefile for benchmark tests.
56379         * benchtests/bench-skeleton.c: New skeleton file for benchmark
56380         programs.
56381         * benchtests/exp-inputs: New input file for EXP function.
56382         * benchtests/pow-inputs: New input file for POW function.
56383         * scripts/bench.pl: New script to generate source files for
56384         benchmark programs.
56385
56386 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56387
56388         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56389         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
56390         computations on mantissa.  Use macros for rounding and
56391         division.
56392         (denorm): Likewise.
56393         (__dbl_mp): Likewise.
56394         (add_magnitudes): Likewise.
56395         (sub_magnitudes): Likewise.
56396         (__mul): Likewise.
56397         (__sqr): Likewise.
56398         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56399         powers of two in terms of TWOPOW macro.
56400         (mp_no): Make type of mantissa as MANTISSA_T.
56401         [!RADIXI]: Define RADIXI.
56402         [!TWO52]: Define TWO52.
56403         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56404
56405         * manual/nptl.texi (cindex): Modify threads to pthreads.
56406
56407 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
56408
56409         * sysdeps/x86_64/preconfigure: Regenerated.
56410
56411 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
56412
56413         [BZ #14155]
56414         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
56415         0x1p28 and above.
56416         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
56417         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
56418         0x1p28 and above.
56419         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
56420         * math/libm-test.inc (j0_test): Do not allow one spurious
56421         underflow exception.
56422         (y1_test): Likewise.
56423
56424 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56425
56426         * manual/Makefile (chapters): Add nptl.
56427         * manual/debug.texi (Debugging Support): Add link to Threads
56428         chapter.
56429         * manual/nptl.texi: New file.
56430
56431         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
56432
56433 2013-03-14  Petr Baudis  <pasky@ucw.cz>
56434
56435         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
56436         for non-NULL pointer before the memory validity test. Pointed
56437         out by Holger Brunck <holger.brunck@keymile.com>.
56438
56439 2013-03-13  Andreas Schwab  <schwab@suse.de>
56440
56441         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
56442         instead of .os.
56443
56444 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
56445
56446         * timezone/zic.c: Update from tzcode 2013b.
56447
56448 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
56449
56450         * manual/install.texi (Configuring and compiling):
56451         Mention i686 and i586.
56452         * INSTALL: Regenerate.
56453
56454 2013-03-12  Roland McGrath  <roland@hack.frob.com>
56455
56456         * sysdeps/init_array/elf-init.c: New file.
56457         * csu/elf-init.c
56458         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
56459         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
56460
56461         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
56462         __gmon_start__ as global, but as static with a .preinit_array pointer.
56463         * sysdeps/init_array/gmon-start.c: New file.  Use that.
56464         * sysdeps/init_array/crti.S: New file, empty except for comments.
56465         * sysdeps/init_array/crtn.S: Likewise.
56466
56467 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
56468
56469         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
56470         definining bcopy.
56471         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56472         Remove Prefer_SSE_for_memop.
56473         * sysdeps/x86_64/multiarch/init-arch.h: Remove
56474         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
56475         HAS_PREFER_SSE_FOR_MEMOP.
56476         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
56477         memset-x86-64.
56478         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
56479         Remove bzero, memset ifunc support.
56480         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
56481         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
56482         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56483         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56484
56485 2013-03-11  Andreas Schwab  <schwab@suse.de>
56486
56487         [BZ #15234]
56488         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
56489         by SHLIB_COMPAT.
56490         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
56491         (GLIBC_2.16): Remove pthread_atfork.
56492
56493 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
56494
56495         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
56496         (ptestcases.h): Likewise.
56497
56498 2013-03-08  Roland McGrath  <roland@hack.frob.com>
56499
56500         * Makeconfig ($(common-objpfx)config.status): Depend on
56501         sysdeps/*/preconfigure{,.in} too.
56502
56503 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
56504
56505         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
56506         (__free_hook): Use void * instead of __malloc_ptr_t.
56507         (__malloc_hook): Likewise.
56508         (__realloc_hook): Likewise.
56509         (__memalign_hook): Likewise.
56510         (__after_morecore_hook): Likewise.
56511         * malloc/arena.c (save_malloc_hook): Likewise.
56512         (save_free_hook): Likewise.
56513         * malloc/hooks.c (malloc_hook_ini): Likewise.
56514         (realloc_hook_ini): Likewise.
56515         (memalign_hook_ini): Likewise.
56516         * malloc/malloc.c (malloc_hook_ini): Likewise.
56517         (realloc_hook_ini): Likewise.
56518         (memalign_hook_ini): Likewise.
56519         (__free_hook): Likewise.
56520         (__malloc_hook): Likewise.
56521         (__realloc_hook): Likewise.
56522         (__memalign_hook): Likewise.
56523         (__libc_malloc): Likewise.
56524         (__libc_free): Likewise.
56525         (__libc_realloc): Likewise.
56526         (__libc_memalign): Likewise.
56527         (__libc_valloc): Likewise.
56528         (__libc_pvalloc): Likewise.
56529         (__libc_calloc): Likewise.
56530         (__posix_memalign): Likewise.
56531         * malloc/morecore.c (__sbrk): Likewise.
56532         (__default_morecore): Likewise.
56533
56534         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
56535
56536         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
56537         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
56538         __malloc_ptrdiff_t.
56539
56540         * malloc/malloc.h (__malloc_size_t): Remove macro.
56541         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
56542         __malloc_size_t.
56543         (old_memalign_hook): Likewise.
56544         (old_realloc_hook): Likewise.
56545         (struct hdr): Likewise.
56546         (flood): Likewise.
56547         (mallochook): Likewise.
56548         (memalignhook): Likewise.
56549         (reallochook): Likewise.
56550         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
56551         (tr_old_realloc_hook): Likewise.
56552         (tr_old_memalign_hook): Likewise.
56553         (tr_mallochook): Likewise.
56554         (tr_reallochook): Likewise.
56555         (tr_memalignhook): Likewise.
56556
56557 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56558
56559         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
56560         default_ldbl_pack and using as default implementation.
56561         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
56562         implementation.
56563         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
56564         redundant definition.
56565         (ldbl_insert_mantissa): Likewise.
56566         (ldbl_canonicalize): Likewise.
56567         (ldbl_nearbyint): Likewise.
56568         (ldbl_pack): Rename to ldbl_pack_ppc.
56569         (ldbl_unpack): Rename to ldbl_unpack_ppc.
56570         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
56571         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
56572
56573 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56574
56575         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
56576         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
56577         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
56578         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
56579         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
56580         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
56581         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
56582         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
56583
56584 2013-03-07  Andreas Jaeger  <aj@suse.de>
56585
56586         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56587         bits/mman-linux.h.
56588
56589 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56590
56591         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
56592         Include mpa.h and declare __MPEXP.
56593         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
56594         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56595         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56596         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
56597         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56598         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56599         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
56600
56601         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
56602         (__slowpow): Use long double EXPL and LOGL functions to
56603         compute POW.
56604         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56605         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56606         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
56607         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56608         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56609         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
56610
56611         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
56612         intermediate variable to calculate exponent.
56613         (__sqr): Likewise.
56614         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
56615         Likewise.
56616         (__sqr): Likewise.
56617
56618         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
56619         [!NO__SQR]: Define __sqr.
56620         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
56621         and NO__SQR.  Remove all code except __mul and __sqr.  Include
56622         sysdeps/ieee754/dbl-64/mpa.c.
56623         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56624
56625         [BZ #12723]
56626         * posix/Makefile (tests): Add tst-pathconf.
56627         * posix/tst-pathconf.c: New test case.
56628         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
56629         _PC_PIPE_BUF.
56630         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
56631
56632 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
56633
56634         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
56635
56636 2013-03-06  Andreas Jaeger  <aj@suse.de>
56637
56638         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
56639         definition via __MAP_ANONYMOUS.
56640
56641         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
56642         it's not part of Linux headers.
56643
56644         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
56645         (MAP_HUGE_MASK): Define.
56646
56647         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56648         Define.
56649         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56650         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56651         Define.
56652         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56653         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56654         Define.
56655         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56656         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
56657         Define.
56658         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56659
56660         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
56661         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
56662         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
56663         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
56664         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
56665         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
56666
56667         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
56668         Handle f2fs.
56669
56670         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
56671         Handle f2fs and efivarfs.
56672
56673         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
56674         f2fs.
56675
56676         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
56677         (EFIVARFS_MAGIC): Add.
56678         (F2FS_LINK_MAX): Add.
56679
56680 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
56681
56682         * stdio-common/vfprintf.c: Replace __builtin_expect with
56683         __glibc_unlikely.
56684
56685 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
56686
56687         [BZ #13550]
56688         * sysdeps/generic/bp-sym.h: Remove file.
56689         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
56690         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
56691         <bp-sym.h> and <bp-asm.h>.
56692         (__longjmp): Don't use BP_SYM.
56693         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
56694         and <bp-asm.h>.
56695         (memcpy): Don't use BP_SYM.
56696         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
56697         <bp-sym.h> and <bp-asm.h>.
56698         (memcpy): Don't use BP_SYM.
56699         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
56700         <bp-asm.h>.
56701         (memcpy): Don't use BP_SYM.
56702         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
56703         <bp-asm.h>.
56704         (memset): Don't use BP_SYM.
56705         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56706         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56707         (__bzero): Don't use BP_SYM.
56708         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56709         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56710         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
56711         <bp-sym.h> and <bp-asm.h>.
56712         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56713         pointers.
56714         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
56715         <bp-sym.h> and <bp-asm.h>.
56716         (memcpy): Don't use BP_SYM.
56717         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
56718         <bp-sym.h> and <bp-asm.h>.
56719         (memset): Don't use BP_SYM.
56720         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56721         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56722         (__bzero): Don't use BP_SYM.
56723         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56724         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56725         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
56726         <bp-sym.h> and <bp-asm.h>.
56727         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56728         pointers.
56729         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
56730         <bp-sym.h> and <bp-asm.h>.
56731         (memcpy): Don't use BP_SYM.
56732         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
56733         <bp-sym.h> and <bp-asm.h>.
56734         (memset): Don't use BP_SYM.
56735         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56736         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56737         (__bzero): Don't use BP_SYM.
56738         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56739         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56740         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
56741         <bp-sym.h> and <bp-asm.h>.
56742         (__memchr): Don't use BP_SYM.
56743         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
56744         <bp-sym.h> and <bp-asm.h>.
56745         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56746         pointers.
56747         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
56748         <bp-sym.h> and <bp-asm.h>.
56749         (memcpy): Don't use BP_SYM.
56750         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
56751         <bp-sym.h> and <bp-asm.h>.
56752         (__mempcpy): Don't use BP_SYM.
56753         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
56754         <bp-sym.h> and <bp-asm.h>.
56755         (__memrchr): Don't use BP_SYM.
56756         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
56757         <bp-sym.h> and <bp-asm.h>.
56758         (memset): Don't use BP_SYM.
56759         (__bzero): Likewise.
56760         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
56761         <bp-sym.h> and <bp-asm.h>.
56762         (__rawmemchr): Don't use BP_SYM.
56763         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
56764         <bp-sym.h> and <bp-asm.h>.
56765         (__STRCMP): Don't use BP_SYM.
56766         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
56767         <bp-sym.h> and <bp-asm.h>.
56768         (strchr): Don't use BP_SYM.
56769         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
56770         <bp-sym.h> and <bp-asm.h>.
56771         (__strchrnul): Don't use BP_SYM.
56772         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
56773         <bp-sym.h> and <bp-asm.h>.
56774         (strlen): Don't use BP_SYM.
56775         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
56776         <bp-sym.h> and <bp-asm.h>.
56777         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56778         pointers.
56779         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
56780         <bp-sym.h> and <bp-asm.h>.
56781         (__strnlen): Don't use BP_SYM.
56782         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
56783         <bp-sym.h> and <bp-asm.h>.
56784         (__GI__setjmp): Don't use BP_SYM.
56785         (_setjmp): Likewise.
56786         (__sigsetjmp): Likewise.
56787         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
56788         (L(start_addresses)): Don't use BP_SYM.
56789         (_start): Likewise.
56790         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
56791         <bp-asm.h>.
56792         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
56793         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
56794         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56795         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56796         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
56797         <bp-asm.h>.
56798         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
56799         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
56800         about bounded pointers.
56801         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56802         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56803         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
56804         <bp-asm.h>.
56805         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56806         about bounded pointers.  Remove GKM FIXME comments.
56807         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56808         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
56809         <bp-asm.h>.
56810         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
56811         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
56812         Remove GKM FIXME comments.
56813         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56814         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56815         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
56816         <bp-asm.h>.
56817         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56818         about bounded pointers.  Remove GKM FIXME comment.
56819         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
56820         and <bp-asm.h>.
56821         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56822         pointers.
56823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
56824         <bp-sym.h> and <bp-asm.h>.
56825         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
56827         <bp-sym.h> and <bp-asm.h>.
56828         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56829         comment.
56830
56831 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
56832
56833         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
56834         call free(NULL).
56835
56836 2013-03-05  David S. Miller  <davem@davemloft.net>
56837
56838         * po/es.po: Update from translation team.
56839
56840 2013-03-05  Andreas Jaeger  <aj@suse.de>
56841
56842         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
56843         <bits/mman-linux.h>.
56844         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56845         is fine.
56846         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
56847         <bits/mman-linux.h> to end of file.
56848         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56849         is fine.
56850         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
56851         <bits/mman-linux.h> to end of file.
56852         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56853         is fine.
56854         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
56855         <bits/mman-linux.h> to end of file.
56856
56857         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
56858         (MCL_CURRENT, MCL_FUTURE): Define here.
56859
56860 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56861
56862         [BZ #15232]
56863         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
56864         attribute_hidden.
56865         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
56866
56867 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56868
56869         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
56870         fourth parameter needed for rt_sigprocmask syscall.
56871         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
56872         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
56873         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
56874         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
56875         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
56876         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
56877
56878 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
56879
56880         [BZ #13550]
56881         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
56882         comment about bounded pointers.
56883         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
56884         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
56885
56886 2013-03-04  Andreas Jaeger  <aj@suse.de>
56887
56888         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
56889         common definitions.
56890
56891         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
56892         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
56893         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
56894         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
56895         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
56896         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
56897
56898 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56899
56900         [BZ #15055]
56901         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
56902         __ieee754_sqrl instead of __sqrl.
56903
56904 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
56905
56906         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
56907         * sysdeps/powerpc/fpu_control.h: ... here.
56908         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
56909         * sysdeps/powerpc/bits/fenvinline.h: ... here.
56910         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
56911         * sysdeps/powerpc/bits/mathinline.h: ... here.
56912
56913 2013-03-01  Roland McGrath  <roland@hack.frob.com>
56914
56915         * elf/dl-hwcaps.c (_dl_important_hwcaps):
56916         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
56917         to just [NEED_DL_SYSINFO_DSO].
56918         * elf/dl-support.c: Likewise.
56919         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
56920         * elf/rtld.c (dl_main): Likewise.
56921         * elf/setup-vdso.h (setup_vdso): Likewise.
56922         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
56923         * sysdeps/unix/sysv/linux/dl-sysdep.c
56924         (_dl_discover_osversion): Likewise.
56925
56926 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
56927
56928         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
56929         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56930
56931 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
56932
56933         * NEWS: Mention libm performance improvements and non-x86 PI
56934         futex support.
56935
56936         * csu/libc-start.c (__pthread_initialize_minimal): Change
56937         function arguments.
56938         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56939
56940 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
56941
56942         [BZ #13550]
56943         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
56944         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
56945         <bp-sym.h> and <bp-asm.h>.
56946         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56947         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
56948         and <bp-asm.h>.
56949         (memcpy): Don't use BP_SYM.
56950         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
56951         <bp-asm.h>.
56952         (__mpn_add_n): Don't use BP_SYM.
56953         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
56954         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
56955         and <bp-asm.h>.
56956         (__mpn_addmul_1): Don't use BP_SYM.
56957         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56958         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
56959         <bp-sym.h>.
56960         (_setjmp): Don't use BP_SYM.
56961         (__novmx_setjmp): Likewise.
56962         (__GI__setjmp): Likewise.
56963         (__vmx_setjmp): Likewise.
56964         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
56965         <bp-sym.h>.
56966         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
56967         (__bzero): Don't use BP_SYM.
56968         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56969         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56970         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
56971         <bp-sym.h> and <bp-asm.h>.
56972         (memcpy): Don't use BP_SYM.
56973         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
56974         <bp-sym.h> and <bp-asm.h>.
56975         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56976         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
56977         <bp-sym.h> and <bp-asm.h>.
56978         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56979         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
56980         <bp-asm.h>.
56981         (__mpn_lshift): Don't use BP_SYM.
56982         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
56983         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
56984         <bp-asm.h>.
56985         (memset): Don't use BP_SYM.
56986         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56987         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56988         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
56989         <bp-asm.h>.
56990         (__mpn_mul_1): Don't use BP_SYM.
56991         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56992         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
56993         <bp-sym.h> and <bp-asm.h>.
56994         (memcmp): Don't use BP_SYM.
56995         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
56996         <bp-sym.h> and <bp-asm.h>.
56997         (memcpy): Don't use BP_SYM.
56998         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
56999         <bp-sym.h> and <bp-asm.h>.
57000         (memset): Don't use BP_SYM.
57001         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
57002         <bp-sym.h> and <bp-asm.h>.
57003         (strncmp): Don't use BP_SYM.
57004         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
57005         <bp-sym.h> and <bp-asm.h>.
57006         (memcpy): Don't use BP_SYM.
57007         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
57008         <bp-sym.h> and <bp-asm.h>.
57009         (memset): Don't use BP_SYM.
57010         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
57011         <bp-sym.h> and <bp-asm.h>.
57012         (__memchr): Don't use BP_SYM.
57013         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
57014         <bp-sym.h> and <bp-asm.h>.
57015         (memcmp): Don't use BP_SYM.
57016         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
57017         <bp-sym.h> and <bp-asm.h>.
57018         (memcpy): Don't use BP_SYM.
57019         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
57020         <bp-sym.h> and <bp-asm.h>.
57021         (__mempcpy): Don't use BP_SYM.
57022         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
57023         <bp-sym.h> and <bp-asm.h>.
57024         (__memrchr): Don't use BP_SYM.
57025         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
57026         <bp-sym.h> and <bp-asm.h>.
57027         (memset): Don't use BP_SYM.
57028         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
57029         <bp-sym.h> and <bp-asm.h>.
57030         (__rawmemchr): Don't use BP_SYM.
57031         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
57032         <bp-sym.h> and <bp-asm.h>.
57033         (__STRCMP): Don't use BP_SYM.
57034         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
57035         <bp-sym.h> and <bp-asm.h>.
57036         (strchr): Don't use BP_SYM.
57037         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
57038         <bp-sym.h> and <bp-asm.h>.
57039         (__strchrnul): Don't use BP_SYM.
57040         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
57041         <bp-sym.h> and <bp-asm.h>.
57042         (strlen): Don't use BP_SYM.
57043         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
57044         <bp-sym.h> and <bp-asm.h>.
57045         (strncmp): Don't use BP_SYM.
57046         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
57047         <bp-sym.h> and <bp-asm.h>.
57048         (__strnlen): Don't use BP_SYM.
57049         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
57050         <bp-asm.h>.
57051         (__mpn_rshift): Don't use BP_SYM.
57052         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57053         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
57054         <bp-sym.h> and <bp-asm.h>.
57055         (__sigsetjmp): Don't use BP_SYM.
57056         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
57057         (L(start_addresses)): Don't use BP_SYM.
57058         (_start): Likewise.
57059         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
57060         <bp-asm.h>.
57061         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
57062         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57063         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57064         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
57065         <bp-asm.h>.
57066         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
57067         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57068         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57069         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
57070         <bp-asm.h>.
57071         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57072         comments.
57073         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57074         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
57075         <bp-asm.h>.
57076         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
57077         FIXME comments.
57078         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57079         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57080         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
57081         <bp-asm.h>.
57082         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57083         comment.
57084         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
57085         and <bp-asm.h>.
57086         (strncmp): Don't use BP_SYM,
57087         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
57088         <bp-asm.h>.
57089         (__mpn_sub_n): Don't use BP_SYM.
57090         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57091         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
57092         and <bp-asm.h>.
57093         (__mpn_submul_1): Don't use BP_SYM.
57094         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
57096         <bp-sym.h> and <bp-asm.h>.
57097         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
57099         <bp-sym.h> and <bp-asm.h>.
57100         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57101         comment.
57102
57103 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57104
57105         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
57106         Use ZK to minimize writes to Z.
57107         (sub_magnitudes): Simplify code a bit.
57108         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
57109         Use ZK to minimize writes to Z.
57110         (sub_magnitudes): Simplify code a bit.
57111
57112 2013-02-27  Roland McGrath  <roland@hack.frob.com>
57113
57114         * csu/gmon-start.c: Add special exception to license text.
57115
57116 2013-02-27  Richard Henderson  <rth@redhat.com>
57117
57118         * scripts/config.guess: Update from config.git.
57119         * scripts/config.sub: Likewise.
57120
57121 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57122
57123         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
57124
57125         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
57126
57127         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
57128
57129         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
57130
57131         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
57132
57133 2013-02-26  Roland McGrath  <roland@hack.frob.com>
57134
57135         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
57136         [$(build-shared = yes].
57137
57138 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57139
57140         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
57141         (__mul): Reduce iterations for calculating mantissa.
57142
57143         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
57144         MPTWO.
57145         (__mpranred): Likewise.
57146
57147         [BZ #15160]
57148         * malloc/memusagestat.c (main): Draw graphs for heap and stack
57149         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
57150
57151 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57152
57153         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
57154         Define __attribute__.
57155
57156 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57157
57158         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
57159         unused.
57160         * posix/regex_internal.h (__attribute): Remove.
57161         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
57162         (re_string_context_at): Likewise.
57163         (bitset_not): Use __attribute__ and mark function as possibly
57164         unused.
57165         (bitset_merge): Likewise.
57166         (bitset_mask): Likewise.
57167         (re_string_char_size_at): Likewise.
57168         (re_string_wchar_at): Likewise.
57169         (re_string_elem_size_at): Likewise.
57170
57171 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57172
57173         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
57174         code.
57175         (cc32): Likewise.
57176
57177         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
57178         (__acr): Likewise.
57179         (__cpy): Likewise.
57180         (norm): Likewise.
57181         (denorm): Likewise.
57182         (__dbl_mp): Likewise.
57183         (add_magnitudes): Likewise.
57184         (sub_magnitudes): Likewise.
57185         (__mul): Likewise.
57186         (__inv): Likewise.
57187
57188         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
57189         style.
57190
57191         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
57192         style.
57193
57194         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
57195         code.
57196
57197         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
57198         up changes with default code.
57199         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
57200         Likewise.
57201
57202 2013-02-24  Allan McRae  <allan@archlinux.org>
57203
57204         * manual/socket.texi (The Internet Namespace): Order menu items
57205         to match that in the file.
57206
57207         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
57208         node listing of the info page menu.
57209
57210 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
57211
57212         [BZ #13550]
57213         * sysdeps/i386/bp-asm.h: Remove file.
57214         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57215         (PARMS): Do not use macros from bp-asm.h.
57216         (S1): Likewise.
57217         (S2): Likewise.
57218         (SIZE): Likewise.
57219         (__mpn_add_n): Do not use BP_SYM
57220         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
57221         "bp-asm.h".
57222         (PARMS): Do not use macros from bp-asm.h.
57223         (S1): Likewise.
57224         (SIZE): Likewise.
57225         (__mpn_addmul_1): Do not use BP_SYM
57226         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
57227         "bp-asm.h".
57228         (PARMS): Do not use macros from bp-asm.h.
57229         (SIGMSK): Likewise.
57230         (_setjmp): Likewise.  Do not use BP_SYM.
57231         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
57232         "bp-asm.h".
57233         (PARMS): Do not use macros from bp-asm.h.
57234         (SIGMSK): Likewise.
57235         (setjmp): Likewise.  Do not use BP_SYM.
57236         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
57237         "bp-asm.h".
57238         (PARMS): Do not use macros from bp-asm.h.
57239         (__frexp): Do not use BP_SYM.
57240         (frexp): Likewise.
57241         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
57242         "bp-asm.h".
57243         (PARMS): Do not use macros from bp-asm.h.
57244         (__frexpf): Do not use BP_SYM.
57245         (frexpf): Likewise.
57246         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
57247         "bp-asm.h".
57248         (PARMS): Do not use macros from bp-asm.h.
57249         (__frexpl): Do not use BP_SYM.
57250         (frexpl): Likewise.
57251         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
57252         "bp-asm.h".
57253         (PARMS): Do not use macros from bp-asm.h.
57254         (__remquo): Do not use BP_SYM.
57255         (remquo): Likewise.
57256         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
57257         "bp-asm.h".
57258         (PARMS): Do not use macros from bp-asm.h.
57259         (__remquof): Do not use BP_SYM.
57260         (remquof): Likewise.
57261         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
57262         "bp-asm.h".
57263         (PARMS): Do not use macros from bp-asm.h.
57264         (__remquol): Do not use BP_SYM.
57265         (remquol): Likewise.
57266         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
57267         "bp-asm.h".
57268         (PARMS): Do not use macros from bp-asm.h.
57269         (DEST): Likewise.
57270         (SRC): Likewise.
57271         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
57272         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
57273         "bp-asm.h".
57274         (PARMS): Do not use macros from bp-asm.h.
57275         (strlen): Do not use BP_SYM.
57276         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
57277         "bp-asm.h".
57278         (PARMS): Do not use macros from bp-asm.h.
57279         (S1): Likewise.
57280         (S2): Likewise.
57281         (SIZE): Likewise.
57282         (__mpn_add_n): Do not use BP_SYM.
57283         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
57284         "bp-asm.h".
57285         (PARMS): Do not use macros from bp-asm.h.
57286         (S1): Likewise.
57287         (SIZE): Likewise.
57288         (__mpn_addmul_1): Do not use BP_SYM.
57289         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
57290         weak_alias.
57291         (bzero): Likewise.
57292         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
57293         "bp-asm.h".
57294         (PARMS): Do not use macros from bp-asm.h.
57295         (S): Likewise.
57296         (SIZE): Likewise.
57297         (__mpn_lshift): Do not use BP_SYM.
57298         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
57299         "bp-asm.h".
57300         (PARMS): Do not use macros from bp-asm.h.
57301         (DEST): Likewise.
57302         (SRC): Likewise.
57303         (LEN): Likewise.
57304         (memcpy): Likewise.  Do not use BP_SYM.
57305         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
57306         libc_hidden_def and weak_alias.
57307         (mempcpy): Do not use BP_SYM in weak_alias.
57308         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
57309         "bp-asm.h".
57310         (PARMS): Do not use macros from bp-asm.h.
57311         (DEST): Likewise.
57312         (LEN): Likewise.
57313         [!BZERO_P] (CHR): Likewise.
57314         (memset): Likewise.  Do not use BP_SYM.
57315         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
57316         "bp-asm.h".
57317         (PARMS): Do not use macros from bp-asm.h.
57318         (S1): Likewise.
57319         (SIZE): Likewise.
57320         (__mpn_mul_1): Do not use BP_SYM.
57321         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
57322         "bp-asm.h".
57323         (PARMS): Do not use macros from bp-asm.h.
57324         (S): Likewise.
57325         (SIZE): Likewise.
57326         (__mpn_rshift): Do not use BP_SYM.
57327         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
57328         "bp-asm.h".
57329         (PARMS): Do not use macros from bp-asm.h.
57330         (STR): Likewise.
57331         (CHR): Likewise.
57332         (strchr): Likewise.  Do not use BP_SYM.
57333         (index): Do not use BP_SYM in weak_alias.
57334         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
57335         "bp-asm.h".
57336         (PARMS): Do not use macros from bp-asm.h.
57337         (DEST): Likewise.
57338         (SRC): Likewise.
57339         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
57340         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
57341         "bp-asm.h".
57342         (PARMS): Do not use macros from bp-asm.h.
57343         (strlen): Do not use BP_SYM.
57344         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
57345         "bp-asm.h".
57346         (PARMS): Do not use macros from bp-asm.h.
57347         (S1): Likewise.
57348         (S2): Likewise.
57349         (SIZE): Likewise.
57350         (__mpn_sub_n): Do not use BP_SYM.
57351         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
57352         "bp-asm.h".
57353         (PARMS): Do not use macros from bp-asm.h.
57354         (S1): Likewise.
57355         (SIZE): Likewise.
57356         (__mpn_submul_1): Do not use BP_SYM.
57357         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
57358         "bp-asm.h".
57359         (PARMS): Do not use macros from bp-asm.h.
57360         (S1): Likewise.
57361         (S2): Likewise.
57362         (SIZE): Likewise.
57363         (__mpn_add_n): Do not use BP_SYM.
57364         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
57365         weak_alias.
57366         (bzero): Likewise.
57367         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
57368         "bp-asm.h".
57369         (PARMS): Do not use macros from bp-asm.h.
57370         (BLK2): Likewise.
57371         (LEN): Likewise.
57372         (memcmp): Do not use BP_SYM.
57373         (bcmp): Do not use BP_SYM in weak_alias.
57374         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
57375         "bp-asm.h".
57376         (PARMS): Do not use macros from bp-asm.h.
57377         (DEST): Likewise.
57378         (SRC): Likewise.
57379         (LEN): Likewise.
57380         (memcpy): Likewise.  Do not use BP_SYM.
57381         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
57382         "bp-asm.h".
57383         (PARMS): Do not use macros from bp-asm.h.
57384         (DEST): Likewise.
57385         (SRC): Likewise.
57386         (LEN): Likewise.
57387         (memmove): Likewise.  Do not use BP_SYM.
57388         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
57389         "bp-asm.h".
57390         (PARMS): Do not use macros from bp-asm.h.
57391         (DEST): Likewise.
57392         (SRC): Likewise.
57393         (LEN): Likewise.
57394         (__mempcpy): Likewise.  Do not use BP_SYM.
57395         (mempcpy): Do not use BP_SYM in weak_alias.
57396         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
57397         "bp-asm.h".
57398         (PARMS): Do not use macros from bp-asm.h.
57399         (DEST): Likewise.
57400         (LEN): Likewise.
57401         [!BZERO_P] (CHR): Likewise.
57402         (memset): Likewise.  Do not use BP_SYM.
57403         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
57404         "bp-asm.h".
57405         (PARMS): Do not use macros from bp-asm.h.
57406         (STR2): Likewise.
57407         (strcmp): Do not use BP_SYM.
57408         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
57409         "bp-asm.h".
57410         (PARMS): Do not use macros from bp-asm.h.
57411         (STR): Likewise.
57412         (DELIM): Likewise.
57413         [USE_AS_STRTOK_R] (SAVE): Likewise.
57414         (FUNCTION): Likewise.  Do not use BP_SYM.
57415         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
57416         aliases.
57417         (strtok_r): Likewise.
57418         (__GI___strtok_r): Likewise.
57419         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57420         (PARMS): Do not use macros from bp-asm.h.
57421         (S): Likewise.
57422         (SIZE): Likewise.
57423         (__mpn_lshift): Do not use BP_SYM.
57424         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57425         (PARMS): Do not use macros from bp-asm.h.
57426         (STR): Likewise.
57427         (CHR): Likewise.
57428         (__memchr): Do not use BP_SYM.
57429         (memchr): Do not use BP_SYM in weak_alias.
57430         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57431         (PARMS): Do not use macros from bp-asm.h.
57432         (BLK2): Likewise.
57433         (LEN): Likewise.
57434         (memcmp): Do not use BP_SYM.
57435         (bcmp): Do not use BP_SYM in weak_alias.
57436         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
57437         (PARMS): Do not use macros from bp-asm.h.
57438         (S1): Likewise.
57439         (SIZE): Likewise.
57440         (__mpn_mul_1): Do not use BP_SYM.
57441         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
57442         "bp-asm.h".
57443         (PARMS): Do not use macros from bp-asm.h.
57444         (STR): Likewise.
57445         (CHR): Likewise.
57446         (__rawmemchr): Do not use BP_SYM.
57447         (rawmemchr): Do not use BP_SYM in weak_alias.
57448         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57449         (PARMS): Do not use macros from bp-asm.h.
57450         (S): Likewise.
57451         (SIZE): Likewise.
57452         (__mpn_rshift): Do not use BP_SYM.
57453         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57454         (PARMS): Do not use macros from bp-asm.h.
57455         (SIGMSK): Likewise.
57456         (__sigsetjmp): Likewise.  Do not use BP_SYM.
57457         * sysdeps/i386/start.S: Do not include "bp-sym.h".
57458         (_start): Do not use BP_SYM.
57459         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
57460         (PARMS): Do not use macros from bp-asm.h.
57461         (DEST): Likewise.
57462         (SRC): Likewise.
57463         (__stpcpy): Likewise.  Do not use BP_SYM.
57464         (stpcpy): Do not use BP_SYM in weak_alias.
57465         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
57466         "bp-asm.h".
57467         (PARMS): Do not use macros from bp-asm.h.
57468         (DEST): Likewise.
57469         (SRC): Likewise.
57470         (LEN): Likewise.
57471         (__stpncpy): Likewise.  Do not use BP_SYM.
57472         (stpncpy): Do not use BP_SYM in weak_alias.
57473         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57474         (PARMS): Do not use macros from bp-asm.h.
57475         (STR): Likewise.
57476         (CHR): Likewise.
57477         (strchr): Likewise.  Do not use BP_SYM.
57478         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
57479         "bp-asm.h".
57480         (PARMS): Do not use macros from bp-asm.h.
57481         (STR): Likewise.
57482         (CHR): Likewise.
57483         (__strchrnul): Likewise.  Do not use BP_SYM.
57484         (strchrnul): Do not use BP_SYM in weak_alias.
57485         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
57486         "bp-asm.h".
57487         (PARMS): Do not use macros from bp-asm.h.
57488         (STOP): Likewise.
57489         (strcspn): Do not use BP_SYM.
57490         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
57491         "bp-asm.h".
57492         (PARMS): Do not use macros from bp-asm.h.
57493         (STR): Likewise.
57494         (STOP): Likewise.
57495         (strpbrk): Likewise.  Do not use BP_SYM.
57496         * sysdeps/i386/strrchr.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         (strrchr): Likewise.  Do not use BP_SYM.
57502         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
57503         (PARMS): Do not use macros from bp-asm.h.
57504         (SKIP): Likewise.
57505         (strspn): Do not use BP_SYM.
57506         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
57507         (PARMS): Do not use macros from bp-asm.h.
57508         (STR): Likewise.
57509         (DELIM): Likewise.
57510         (SAVE): Likewise.
57511         (FUNCTION): Likewise.  Do not use BP_SYM.
57512         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
57513         aliases.
57514         (strtok_r): Likewise.
57515         (__GI___strtok_r): Likewise.
57516         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57517         (PARMS): Do not use macros from bp-asm.h.
57518         (S1): Likewise.
57519         (S2): Likewise.
57520         (SIZE): Likewise.
57521         (__mpn_sub_n): Do not use BP_SYM.
57522         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
57523         "bp-asm.h".
57524         (PARMS): Do not use macros from bp-asm.h.
57525         (S1): Likewise.
57526         (SIZE): Likewise.
57527         (__mpn_submul_1): Do not use BP_SYM.
57528         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
57529         <bp-sym.h>.
57530         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
57531         and <bp-asm.h>.
57532         (PARMS): Do not use macros from bp-asm.h.
57533         (FLAGS): Likewise.
57534         (PTID): Likewise.
57535         (TLS): Likewise.
57536         (CTID): Likewise.
57537         (__clone): Do not use BP_SYM.
57538         (clone): Do not use BP_SYM in weak_alias.
57539         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
57540         and <bp-asm.h>.
57541         (PARMS): Do not use macros from bp-asm.h.
57542         (LEN): Likewise.
57543         (__mmap64): Do not use BP_SYM.
57544         (mmap64): Do not use BP_SYM in weak_alias.
57545         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57546         <bp-sym.h> and <bp-asm.h>.
57547         (PARMS): Do not use macros from bp-asm.h.
57548         (__posix_fadvise64_l64): Do not use BP_SYM.
57549         * sysdeps/unix/sysv/linux/i386/semtimedop.S
57550         (PARMS): Do not use macros from bp-asm.h.
57551         (NSOPS): Likewise.
57552         (semtimedop): Do not use BP_SYM.
57553         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
57554         and <bp-asm.h>.
57555
57556 2013-02-21  Allan McRae  <allan@archlinux.org>
57557
57558         * manual/message.texi (Charset conversion in gettext):
57559         Move @end statement to beginning of line.
57560
57561 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57562
57563         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
57564         static.
57565         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
57566         Likewise.
57567
57568         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
57569         (denorm): Likewise.
57570         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
57571         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
57572
57573 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57574
57575         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
57576         tail-call to the resolved function if pltexit isn't needed.
57577
57578 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57579
57580         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
57581         or Y being zero as being unlikely.
57582         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57583         Likewise.
57584
57585 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
57586
57587         * manual/nss.texi (System Databases and Name Service Switch):
57588         Remove frobnicate @pxref.
57589
57590 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57591
57592         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57593         __attribute__ ((unused)) to __attribute__ ((__unused__)).
57594
57595 2013-02-20  Petr Machata  <pmachata@redhat.com>
57596
57597         * elf/elf.h (R_ARM_TARGET1): New macro.
57598         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
57599         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
57600         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
57601         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
57602         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
57603         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
57604         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
57605         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
57606         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
57607         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
57608         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
57609         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
57610         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
57611         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
57612         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
57613         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
57614         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
57615         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
57616         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
57617         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
57618         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
57619         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
57620         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
57621         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
57622         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
57623         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
57624         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
57625         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
57626         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
57627         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
57628         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
57629         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
57630         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
57631         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
57632         (R_ARM_THM_GOT_BREL12): Likewise.
57633         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
57634         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
57635         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
57636         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
57637         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
57638         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
57639         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
57640         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57641         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
57642
57643 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57644
57645         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57646         __attribute_used__ to __attribute__ ((unused)).
57647
57648 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57649
57650         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
57651         powerpc mpa.c.
57652         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
57653         comment formatting.
57654         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
57655
57656 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
57657
57658         [BZ #13550]
57659         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
57660         Remove macro.
57661         (ENTER): Remove both macro definitions.
57662         (LEAVE): Likewise.
57663         (CHECK_BOUNDS_LOW): Likewise.
57664         (CHECK_BOUNDS_HIGH): Likewise.
57665         (CHECK_BOUNDS_BOTH): Likewise.
57666         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
57667         (RETURN_BOUNDED_POINTER): Likewise.
57668         (RETURN_NULL_BOUNDED_POINTER): Likewise.
57669         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
57670         (POP_ERRNO_LOCATION_RETURN): Likewise.
57671         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
57672         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57673         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
57674         macros.
57675         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57676         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
57677         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
57678         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
57679         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
57680         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
57681         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
57682         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
57683         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
57684         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
57685         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
57686         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
57687         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57688         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
57689         removed macros.
57690         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57691         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
57692         macros.
57693         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57694         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
57695         * sysdeps/i386/i586/memset.S (memset): Likewise.
57696         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
57697         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57698         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
57699         macros.
57700         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57701         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
57702         Change uses of L(2) to L(out).
57703         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
57704         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
57705         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
57706         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57707         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
57708         removed macros.
57709         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57710         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
57711         macros.
57712         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57713         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
57714         (RETURN): Do not use macro LEAVE.
57715         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
57716         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
57717         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
57718         * sysdeps/i386/i686/memset.S (memset): Likewise.
57719         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
57720         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
57721         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57722         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
57723         Likewise.
57724         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57725         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
57726         L(1_2) and L(1_3) into L(1).
57727         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57728         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
57729         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57730         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
57731         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57732         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
57733         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
57734         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57735         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
57736         macros.
57737         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
57738         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57739         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
57740         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
57741         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
57742         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57743         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
57744         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
57745         * sysdeps/i386/strcspn.S (strcspn): Likewise.
57746         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
57747         * sysdeps/i386/strrchr.S (strrchr): Likewise.
57748         * sysdeps/i386/strspn.S (strspn): Likewise.
57749         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
57750         conditional code.
57751         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57752         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
57753         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57754         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
57755         L(1_3) into L(1_1).
57756         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
57757         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57758         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
57759         macros.
57760         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57761
57762 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
57763
57764         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
57765         macro.
57766
57767 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57768
57769         * math/atest-exp.c (exp_mpn): Remove ROUND.
57770         * math/atest-exp2.c (exp_mpn): Likewise.
57771         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
57772
57773         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
57774         * stdlib/tst-tls-atexit-lib.c: Likewise.
57775         * stdlib/tst-tls-atexit.c: Likewise.
57776
57777 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57778
57779         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
57780         and __attribute_alloc_size__.
57781
57782 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57783
57784         * include/programs/xmalloc.h: Change __attribute_alloc_size to
57785         __attribute_alloc_size__.
57786         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
57787         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
57788
57789 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57790
57791         * include/programs/xmalloc.h: New file.
57792         * catgets/gencat.c: Include it.
57793         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
57794         * elf/pldd.c: Likewise.
57795         * iconv/iconv_charmap.c: Likewise.
57796         * iconv/iconvconfig.c: Likewise.
57797         * iconv/strtab.c: Likewise.
57798         * locale/programs/locale.c: Likewise.
57799         * locale/programs/localedef.h: Likewise.
57800         * locale/programs/simple-hash.c: Likewise.
57801         * nscd/nscd.h: Likewise.
57802         * nss/makedb.c: Likewise.
57803         * sysdeps/generic/ldconfig.h: Likewise.
57804
57805 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57806
57807         * Versions.def: Add GLIBC_2.18.
57808         * include/link.h (struct link_map): New member l_tls_dtor_count.
57809         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
57810         (__call_tls_dtors): Likewise.
57811         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
57812         __cxa_thread_atexit_impl.
57813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
57814         Likewise.
57815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
57816         Likewise.
57817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
57818         Likewise.
57819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
57820         Likewise.
57821         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
57822         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
57823         Likewise.
57824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
57825         Likewise.
57826         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
57827         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
57828         Likewise.
57829         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
57830         (tests): Add test case tst-tls-atexit.
57831         (modules-names): Add shared library for tst-tls-atexit.
57832         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
57833         (GLIBC_PRIVATE): Add __call_tls_dtors.
57834         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
57835         for libstdc++.
57836         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
57837         * stdlib/tst-tls-atexit.c: New test case.
57838         * stdlib/tst-tls-atexit-lib.c: New test case.
57839
57840         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
57841
57842         * elf/Versions (ld): Add _dl_find_dso_for_object.
57843         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
57844         * elf/dl-open.c (_dl_find_dso_for_object): New function.
57845         (dl_open_worker): Use _dl_find_dso_for_object.
57846         * elf/dl-sym.c (do_sym): Likewise.
57847         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
57848
57849 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57850
57851         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
57852         Syntactic changes only.
57853         (_dl_runtime_profile): Do a tail-call to the resolved function.
57854
57855 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
57856
57857         [BZ #13550]
57858         * sysdeps/x86_64/bp-asm.h: Remove file.
57859         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
57860         <bp-sym.h> and <bp-asm.h>.
57861         (__clone): Do not use BP_SYM.
57862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
57863         <bp-sym.h> and <bp-asm.h>.
57864         * sysdeps/unix/x86_64/sysdep.S: Likewise.
57865         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
57866         "bp-asm.h".
57867         (_setjmp): Do not use BP_SYM.
57868         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
57869         "bp-asm.h".
57870         (setjmp): Do not use BP_SYM.
57871         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
57872         libc_hidden_def.
57873         (mempcpy): Do not use BP_SYM in weak_alias.
57874         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
57875         "bp-asm.h".
57876         (strchr): Do not use BP_SYM.
57877         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
57878         "bp-asm.h".
57879         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
57880         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
57881         (_start): Do not use BP_SYM.
57882         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
57883         "bp-asm.h".
57884         (strcat): Do not use BP_SYM.
57885         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
57886         "bp-asm.h".
57887         (STRCMP): Do not use BP_SYM.
57888         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
57889         "bp-asm.h".
57890         (STRCPY): Do not use BP_SYM.
57891         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
57892         "bp-asm.h".
57893         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
57894         "bp-asm.h".
57895         (FUNCTION): Do not use BP_SYM.
57896         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
57897         weak_alias.
57898         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
57899
57900 2013-02-17  Andreas Jaeger  <aj@suse.de>
57901
57902         * time/Versions: Sort entries.
57903         * string/Versions: Likewise.
57904         * resolv/Versions: Likewise.
57905         * posix/Versions: Likewise.
57906         * iconv/Versions: Likewise.
57907         * elf/Versions: Likewise.
57908         * wcsmbs/Versions: Likewise.
57909
57910 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57911
57912         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
57913         loop termination condition.
57914
57915         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
57916         variable to calculate EZ.
57917         (__sqr): Likewise.
57918
57919         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
57920         the lower precision input.
57921
57922 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
57923
57924         [BZ #13550]
57925         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
57926         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
57927         (run-via-rtld-prefix): Do not handle %-bp tests.
57928         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
57929         (all-object-suffixes): Remove .ob.
57930         (bppfx): Remove variable.
57931         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
57932         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
57933         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
57934         [$(build-bounded) = yes] (libtype.ob): Likewise.
57935         * Makerules (elide-routines.ob): Remove variable.
57936         (do-tests-clean): Do not handle *-bp.out.
57937         (common-mostlyclean): Do not handle *-bp and *-bp.out.
57938         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
57939         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
57940         (tests): Do not include $(tests-bp.out).
57941         (xtests): Do not include $(xtests-bp.out).
57942         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
57943         [$(build-bounded) = yes] ($(addprefix
57944         $(objpfx),$(binaries-bounded))): Remove rule.
57945         ($(objpfx)%-bp.out): Remove rule.
57946         * config.make.in (build-bounded): Remove variable.
57947         * crypt/Makefile [$(build-bounded) = yes]
57948         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
57949         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
57950         append to variable.
57951         [$(build-bounded) = yes] (install-lib): Likewise.
57952         [$(build-bounded) = yes] (generated): Likewise.
57953         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
57954         Remove rule.
57955         * intl/Makefile [$(build-bounded) = yes]
57956         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
57957         * math/Makefile [$(build-bounded) = yes]
57958         ($(tests:%=$(objpfx)%-bp): Likewise.
57959         * misc/Makefile [$(build-bounded) = yes]
57960         ($(objpfx)tst-tsearch-bp): Likewise.
57961         * nptl/Makeconfig (bounded-thread-library): Remove variable.
57962         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
57963         Remove dependency.
57964         * string/Makefile (o-objects.ob): Remove variable.
57965         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
57966         (CFLAGS-.ob): Remove variable.
57967         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
57968         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
57969         both definitions of variable.
57970         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
57971         (ASFLAGS-.ob): Remove variable.
57972
57973 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
57974
57975         [BZ #13550]
57976         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
57977         Remove __BOUNDED_POINTERS__ from condition.
57978         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
57979         * string/bits/string2.h [!__NO_STRING_INLINES &&
57980         !__BOUNDED_POINTERS__]: Likewise.
57981         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
57982         Likewise.
57983         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
57984         Remove conditional code.
57985         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
57986         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
57987         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
57988         condition.
57989
57990         [BZ #13550]
57991         * csu/libc-start.c: Do not include <bp-sym.h>.
57992         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
57993         * elf/dl-open.c: Do not include <bp-sym.h>.
57994         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
57995         * math/fegetenv.c: Do not include <bp-sym.h>.
57996         (fegetenv): Do not use BP_SYM in versioned symbols.
57997         * nptl/sysdeps/pthread/bits/libc-lockP.h
57998         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
57999         <bp-sym.h>.
58000         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58001         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
58002         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58003         (__pthread_mutex_destroy): Likewise.
58004         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58005         (__pthread_mutex_lock): Likewise.
58006         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58007         (__pthread_mutex_trylock): Likewise.
58008         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58009         (__pthread_mutex_unlock): Likewise.
58010         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58011         (__pthread_mutexattr_init): Likewise.
58012         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58013         (__pthread_mutexattr_destroy): Likewise.
58014         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58015         (__pthread_mutexattr_settype): Likewise.
58016         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58017         (__pthread_rwlock_init): Likewise.
58018         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58019         (__pthread_rwlock_destroy): Likewise.
58020         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58021         (__pthread_rwlock_rdlock): Likewise.
58022         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58023         (__pthread_rwlock_tryrdlock): Likewise.
58024         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58025         (__pthread_rwlock_wrlock): Likewise.
58026         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58027         (__pthread_rwlock_trywrlock): Likewise.
58028         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58029         (__pthread_rwlock_unlock): Likewise.
58030         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58031         (__pthread_key_create): Likewise.
58032         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58033         (__pthread_setspecific): Likewise.
58034         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58035         (__pthread_getspecific): Likewise.
58036         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
58037         Likewise.
58038         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58039         (_pthread_cleanup_push_defer): Likewise.
58040         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58041         (_pthread_cleanup_pop_restore): Likewise.
58042         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58043         (pthread_setcancelstate): Likewise.
58044         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
58045         <bp-sym.h>.
58046         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
58047         (memchr): Do not use BP_SYM in weak_alias.
58048         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
58049         (fegetenv): Do not use BP_SYM in versioned symbols.
58050         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
58051         (fesetenv): Do not use BP_SYM in versioned symbols.
58052         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58053         (feupdateenv): Do not use BP_SYM in versioned symbols.
58054         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58055         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58056         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
58057         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
58058         (open64): Do not use BP_SYM in weak_alias.
58059         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
58060         (fegetenv): Do not use BP_SYM in versioned symbols.
58061         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
58062         (fesetenv): Do not use BP_SYM in versioned symbols.
58063         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58064         (feupdateenv): Do not use BP_SYM in versioned symbols.
58065         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
58066         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
58067         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
58068         (feraiseexcept): Do not use BP_SYM in versioned symbols.
58069         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58070         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58071         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
58072         <bp-sym.h>.
58073         (__libc_start_main): Do not use BP_SYM.
58074
58075 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58076
58077         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
58078         redundant return line.
58079         (norm): Likewise.
58080         (denorm): Likewise.
58081         (dbl_mp): Likewise.
58082         (sub_magnitudes): Likewise.
58083         (__add): Likewise.
58084         (__sub): Likewise.
58085         (__mul): Likewise.
58086         (__inv): Likewise.
58087         (__dvd): Likewise.
58088         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
58089         (norm): Likewise.
58090         (denorm): Likewise.
58091         (dbl_mp): Likewise.
58092         (sub_magnitudes): Likewise.
58093         (__add): Likewise.
58094         (__sub): Likewise.
58095         (__mul): Likewise.
58096         (__inv): Likewise.
58097         (__dvd): Likewise.
58098
58099         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
58100         instead of __mul.
58101         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
58102         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
58103         (cc32): Likewise.
58104
58105         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
58106         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
58107         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
58108         of __mul for squares.
58109         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
58110         function
58111         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
58112         Likewise.
58113         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
58114         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
58115
58116 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
58117
58118         [BZ #13550]
58119         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
58120         code.
58121         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
58122         prototype or function definition.  Rename ubp_* variables and
58123         parameters.  Remove argv definitions conditional on
58124         [__BOUNDED_POINTERS__].
58125         * debug/backtrace.c (__backtrace): Do not use __unbounded.
58126         * elf/dl-runtime.c (_dl_fixup): Likewise.
58127         * include/set-hooks.h (RUN_HOOK): Likewise.
58128         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
58129         definition.
58130         * string/strcpy.c (strcpy): Do not use __unbounded.
58131         * sysdeps/generic/frame.h (struct layout): Likewise.
58132         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
58133         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
58134         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
58135         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
58136         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
58137         (__backtrace): Likewise.
58138         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
58139         use __ptrvalue.
58140         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
58141         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
58142         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
58143         Likewise.
58144         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
58145         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
58146         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
58147         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58148         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
58149         Do not use __unbounded.
58150         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
58151         Rename __unboundedrlimits parameter to rlimits in prototype.
58152         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
58153         Do not use __unbounded.
58154         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
58155         not use __ptrvalue.
58156         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58157         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
58158         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58159         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
58160         __ptrvalue or __unbounded.
58161         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
58162         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
58163         use __unbounded.
58164         (__new_msgctl): Do not use __ptrvalue.
58165         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
58166         __unbounded.
58167         (__libc_msgrcv): Do not use __ptrvalue.
58168         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
58169         startup_info): Do not use __unbounded.
58170         (__libc_start_main): Likewise.  Rename ubp_* variables and
58171         parameters.  Remove argv definitions conditional on
58172         [__BOUNDED_POINTERS__].
58173         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
58174         __ptrvalue.
58175         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
58176         use __unbounded.
58177         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
58178         or __ptrvalue.
58179         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
58180         use __unbounded.
58181         (__new_shmctl): Do not use __ptrvalue.
58182         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
58183         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
58184         Likewise.
58185         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
58186         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
58187         (__libc_sigaction): Likewise.
58188         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
58189         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
58190         Likewise.
58191         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58192
58193 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
58194
58195         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
58196
58197         * string/mempcpy.c: Implement by calling memcpy.
58198
58199 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58200
58201         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
58202
58203         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
58204         evaluation.
58205
58206         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
58207         values in the mantissa.
58208
58209         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
58210         minimize writes to Z.
58211         (sub_magnitudes): Simplify code a bit.
58212
58213 2013-02-12  Roland McGrath  <roland@hack.frob.com>
58214
58215         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
58216         from the message.  The linker prefixes all warnings with that already.
58217
58218 2013-02-12  Andreas Schwab  <schwab@suse.de>
58219
58220         [BZ #15078]
58221         * posix/regexec.c (extend_buffers): Add parameter min_len.
58222         (check_matching): Pass minimum needed length.
58223         (clean_state_log_if_needed): Likewise.
58224         (get_subexp): Likewise.
58225         * posix/Makefile (tests): Add bug-regex34.
58226         (bug-regex34-ENV): Define.
58227         * posix/bug-regex34.c: New file.
58228
58229         [BZ #11561]
58230         * posix/regcomp.c (parse_bracket_exp): When looking up collating
58231         elements compare against the byte sequence of it, not its name.
58232         * posix/Makefile (tests): Add bug-regex35.
58233         (bug-regex35-ENV): Define.
58234         * posix/bug-regex35.c: New file.
58235
58236 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58237
58238         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
58239         comment.
58240         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
58241         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
58242         (CHECK_EOL): Add undef.
58243
58244 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
58245
58246         * bits/stdlib-bsearch.h: New file.
58247         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
58248         * stdlib/stdlib.h: Likewise.
58249
58250 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58251
58252         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
58253         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
58254         declaration.
58255         * manual/search.texi (Array Search Function): Add missing const in
58256         lfind prototype.
58257         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
58258         declaration to use rlim_t.
58259         (Basic Scheduling Functions): Remove erroneous const from
58260         sched_getparam prototype.  Remove erroneous * from
58261         sched_get_priority_max and sched_get_priority_min prototypes.
58262         (Resource Usage): Fix summary @comment on vtimes to refer to
58263         sys/vtimes.h rather than vtimes.h.
58264         Add missing *s in vtimes prototype.
58265         (Limits on Resources): Fix ulimit prototype to return long int.
58266         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
58267         prototypes to use long int rather than double.
58268         (BSD Random): Fix initstate and setstate to use char *, not void *.
58269         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
58270         prototype to make second argument 'struct aiocb64 *const[]'.
58271         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
58272         (Status of AIO Operations): Remove erroneous const in aio_return and
58273         aio_return64 prototypes.
58274         (Synchronizing I/O): Fix sync prototype to return void.
58275         * manual/startup.texi (Suboptions): Remove an erroneous const in
58276         getsubopt prototype.
58277         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
58278         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
58279         use size_t rather than int.
58280         (Scanning All Users): Likewise for getpwent_r.
58281         (Setting Groups): Add missing const to setgroups prototype.
58282         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
58283         * manual/socket.texi (Host Names): Fix gethostbyaddr and
58284         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
58285         'const void *' rather than 'const char *'.
58286         (Host Address Functions): Likewise for inet_ntop.
58287         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
58288         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
58289         ssize_t for return value.
58290         (Sending Data): Likewise for send, sendto, sendmsg.
58291         (Socket Option Functions): Add a missing const in setsockopt prototype.
58292         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
58293         use wchar_t for the argument.
58294         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
58295         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
58296         take no arguments.
58297         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
58298         double/float/long double for second argument.
58299         Fix return types of significand, significandf, significandl.
58300         * manual/filesys.texi (Setting Permissions): Use mode_t for second
58301         argument in fchmod prototype.
58302         (File Owner): Use uid_t and gid_t in fchown prototype.
58303         (File Times): Add const to utimes, futimes, and lutimes prototypes.
58304         (Making Special Files): Use mode_t and dev_t in mknod prototype.
58305         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
58306         use 'const struct dirent **' as argument types to CMP function pointer
58307         argument.
58308         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
58309         (File Times): Fix summary magic @comment for struct utimbuf and utime
58310         to refer to utime.h, not time.h.
58311         * manual/string.texi (Argz Functions): Add missing const in
58312         argz_extract and argz_next prototypes.
58313         (Finding Tokens in a String): Likewise for basename.
58314         (String/Array Comparison): Fix typo in wcscasecmp prototype.
58315         (Copying and Concatenation): Fix typo in wmemmove prototype.
58316         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
58317         (Signal Stack): Remove erroneous const in sigstack prototype.
58318         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
58319         prototype.
58320         (Simple Calendar Time): Likewise for stime.
58321         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
58322         prototype.
58323         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
58324         say sys/sysctl.h instead.
58325         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
58326         and vsyslog prototypes.
58327
58328 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58329
58330         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
58331         Remove.
58332
58333 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58334
58335         * misc/sys/mman.h: Fix typo in mremap comment.
58336
58337 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58338
58339         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
58340         the '\0' terminator.
58341
58342 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58343
58344         [BZ #13550]
58345         * debug/segfault.c: Don't include <bp-checks.h>.
58346         * sysdeps/generic/bp-checks.h: Remove file.
58347         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
58348         (__GETDENTS): Don't use CHECK_N.
58349         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
58350         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
58351         (__getgroups): Don't use CHECK_N.
58352         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
58353         (setgroups): Don't use CHECK_N.
58354         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
58355         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
58356         (__libc_msgrcv): Don't use CHECK_N.
58357         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
58358         (__libc_msgsnd): Don't use CHECK_N.
58359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
58360         <bp-checks.h>.
58361         (__libc_pread): Don't use CHECK_N.
58362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
58363         include <bp-checks.h>.
58364         (__libc_pread64): Don't use CHECK_N.
58365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
58366         include <bp-checks.h>.
58367         (__libc_pwrite): Don't use CHECK_N.
58368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
58369         include <bp-checks.h>.
58370         (__libc_pwrite64): Don't use CHECK_N.
58371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
58372         <bp-checks.h>.
58373         (__libc_pread): Don't use CHECK_N.
58374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
58375         include <bp-checks.h>.
58376         (__libc_pread64): Don't use CHECK_N.
58377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
58378         include <bp-checks.h>.
58379         (__libc_pwrite): Don't use CHECK_N.
58380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
58381         include <bp-checks.h>.
58382         (__libc_pwrite64): Don't use CHECK_N.
58383         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
58384         (do_pread): Don't use CHECK_N.
58385         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
58386         (do_pread64): Don't use CHECK_N.
58387         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
58388         (do_pwrite): Don't use CHECK_N.
58389         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
58390         (do_pwrite64): Don't use CHECK_N.
58391         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
58392         (__libc_readv): Don't use CHECK_N.
58393         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
58394         (semop): Don't use CHECK_N.
58395         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
58396         <bp-checks.h>.
58397         (semtimedop): Don't use CHECK_N.
58398         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
58399         (__libc_pread): Don't use CHECK_N.
58400         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
58401         <bp-checks.h>.
58402         (__libc_pread64): Don't use CHECK_N.
58403         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
58404         <bp-checks.h>.
58405         (__libc_pwrite): Don't use CHECK_N.
58406         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
58407         <bp-checks.h>.
58408         (__libc_pwrite64): Don't use CHECK_N.
58409         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
58410         <bp-checks.h>.
58411         (__libc_msgrcv): Don't use CHECK_N.
58412         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
58413         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
58414         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
58415         (__libc_writev): Don't use CHECK_N.
58416
58417 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58418
58419         * string/strcpy.c: Removed unused variable.
58420
58421         * Makeconfig (+sysdep-includes): Define with := rather than =.
58422         Use an existing include/ subdir of each sysdeps dir before it.
58423
58424 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58425
58426         * nscd/connection.c (register_traced_file): Comment function.
58427         [HAVE_INOTIFY] (union __inev): Define.
58428         [HAVE_INOTIFY] (inotify_check_files): New function.
58429         [HAVE_INOTIFY] (clear_db_cache): Likewise.
58430         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
58431         clear_db_cache.
58432         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
58433
58434 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58435
58436         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
58437         loaded if not already and that a failure is permanent.
58438
58439 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58440
58441         [BZ #15006]
58442         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
58443         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
58444
58445 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58446
58447         [BZ #13550]
58448         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
58449         (CHECK_1_NULL_OK): Likewise.
58450         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
58451         (__fxstat): Do not use CHECK_1.
58452         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
58453         <bp-checks.h>.
58454         (___fxstat64): Do not use CHECK_1.
58455         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
58456         <bp-checks.h>.
58457         (__fxstatat): Do not use CHECK_1.
58458         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
58459         <bp-checks.h>.
58460         (__fxstatat64): Do not use CHECK_1.
58461         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
58462         <bp-checks.h>.
58463         (__fxstat): Do not use CHECK_1.
58464         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
58465         <bp-checks.h>.
58466         (__fxstatat): Do not use CHECK_1.
58467         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
58468         <bp-checks.h>.
58469         (__getresgid): Do not use CHECK_1.
58470         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
58471         <bp-checks.h>.
58472         (__getresuid): Do not use CHECK_1.
58473         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
58474         <bp-checks.h>.
58475         (__lxstat): Do not use CHECK_1.
58476         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
58477         <bp-checks.h>.
58478         (__old_msgctl): Do not use CHECK_1.
58479         (__new_msgctl): Likewise.
58480         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
58481         <bp-checks.h>.
58482         (__new_setrlimit): Do not use CHECK_1.
58483         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
58484         <bp-checks.h>.
58485         (__old_shmctl): Do not use CHECK_1.
58486         (__new_shmctl): Likewise.
58487         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
58488         <bp-checks.h>.
58489         (__xstat): Do not use CHECK_1.
58490         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
58491         (__lxstat): Do not use CHECK_1.
58492         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
58493         <bp-checks.h>.
58494         (___lxstat64): Do not use CHECK_1.
58495         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
58496         (__old_msgctl): Do not use CHECK_1.
58497         (__new_msgctl): Likewise.
58498         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
58499         <bp-checks.h>.
58500         (__gettimeofday): Do not use CHECK_1.
58501         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
58502         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
58503         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
58504         <bp-checks.h>.
58505         (__gettimeofday): Do not use CHECK_1.
58506         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
58507         (__old_shmctl): Do not use CHECK_1_NULL_OK.
58508         (__new_shmctl): Do not use CHECK_1.
58509         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
58510         <bp-checks.h>.
58511         (do_sigtimedwait): Do not use CHECK_1.
58512         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
58513         <bp-checks.h>.
58514         (do_sigwaitinfo): Do not use CHECK_1.
58515         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
58516         <bp-checks.h>.
58517         (msgctl): Do not use CHECK_1.
58518         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
58519         <bp-checks.h>.
58520         (shmctl): Do not use CHECK_1.
58521         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
58522         (ustat): Do not use CHECK_1.
58523         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
58524         <bp-checks.h>.
58525         (__fxstat): Do not use CHECK_1.
58526         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
58527         <bp-checks.h>.
58528         (__fxstatat): Do not use CHECK_1.
58529         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
58530         <bp-checks.h>.
58531         (__lxstat): Do not use CHECK_1.
58532         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
58533         <bp-checks.h>.
58534         (__xstat): Do not use CHECK_1.
58535         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
58536         (__xstat): Do not use CHECK_1.
58537         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
58538         (___xstat64): Do not use CHECK_1.
58539
58540         [BZ #13550]
58541         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
58542         definitions.
58543         (CHECK_BOUNDS_HIGH): Likewise.
58544         * string/strcpy.c: Do not include <bp-checks.h>.
58545         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
58546
58547 2013-02-07  Roland McGrath  <roland@hack.frob.com>
58548
58549         * nscd/nscd-client.h (__nscd_drop_map_ref):
58550         Add __attribute__ ((unused)).
58551         * nis/nss-nisplus.h (niserr2nss): Likewise.
58552
58553         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
58554         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
58555
58556         * csu/libc-tls.c (init_static_tls, init_slotinfo):
58557         Remove inline keyword.
58558         * include/rounding-mode.h (round_away): Likewise.
58559         * libio/wfileops.c (adjust_wide_data): Likewise.
58560         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
58561         (__m128i_strloadu_tolower): Likewise.
58562         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
58563         (__m128i_strloadu_tolower): Likewise.
58564         * time/mktime.c (ydhms_diff): Likewise.
58565         * locale/elem-hash.h (elem_hash): Likewise.
58566         * locale/setlocale.c (setdata): Likewise.
58567         * posix/regex_internal.h (re_string_char_size_at): Likewise.
58568         (re_string_wchar_at): Likewise.
58569         (bitset_not, bitset_merge, bitset_mask): Likewise.
58570         [!(__GNUC__ > 3)] (inline): Remove macro.
58571         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
58572         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
58573         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
58574         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
58575         * string/memcmp.c (memcmp_bytes): Likewise.
58576         * locale/programs/locarchive.c (compute_hashval): Likewise.
58577         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
58578         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
58579         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
58580         * nss/getent.c (print_rpc, print_protocols): Likewise.
58581         (print_passwd, print_group, print_aliases): Likewise.
58582         * nis/nss-nisplus.h (niserr2nss): Likewise.
58583         * nscd/connections.c (restart_p): Likewise.
58584         Change return type to bool.
58585
58586 2013-02-05  Roland McGrath  <roland@hack.frob.com>
58587
58588         * Makeconfig (all-Depend-files): Add existing
58589         $(sorted-subdirs:=/Depend) files.
58590         (all-subdirs): Remove nss.
58591         * sysdeps/unix/inet/Subdirs: Add it here instead.
58592         * hesiod/Depend: New file.
58593
58594         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
58595         instead of calling alloca.
58596
58597         * io/lseek.c (__lseek): Rename to __libc_lseek.
58598         Define __lseek as an alias.
58599
58600         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
58601
58602 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
58603
58604         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
58605         else clause and remove check for non-standard endianness.
58606
58607 2013-02-04  David S. Miller  <davem@davemloft.net>
58608
58609         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58610
58611 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
58612
58613         [BZ #13550]
58614         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
58615         (__ubp_memchr): Remove prototype.
58616         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
58617         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58618         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
58619         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58620         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
58621         Remove alias.
58622         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
58623         (__ubp_memchr): Likewise.
58624         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
58625         (__ubp_memchr): Likewise.
58626         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
58627         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
58628         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
58629         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
58630         CHECK_STRING.
58631         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
58632         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
58633         (__getcwd): Do not use CHECK_STRING.
58634         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
58635         <bp-checks.h>.
58636         (__real_chown): Do not use CHECK_STRING.
58637         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
58638         <bp-checks.h>.
58639         (fchownat): Do not use CHECK_STRING.
58640         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
58641         CHECK_STRING.
58642         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
58643         <bp-checks.h>.
58644         (__lchown): Do not use CHECK_STRING.
58645         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58646         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58647         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58648         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
58649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
58650         include <bp-checks.h>.
58651         (truncate64): Do not use CHECK_STRING.
58652         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
58653         <bp-checks.h>.
58654         (__real_chown): Do not use CHECK_STRING.
58655         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
58656         <bp-checks.h>.
58657         (__lchown): Do not use CHECK_STRING.
58658         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
58659         <bp-checks.h>.
58660         (__chown): Do not use CHECK_STRING.
58661         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
58662         <bp-checks.h>.
58663         (truncate64): Do not use CHECK_STRING.
58664         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
58665         Likewise.
58666         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
58667         (__xmknod): Do not use CHECK_STRING.
58668         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
58669         <bp-checks.h>.
58670         (__xmknodat): Do not use CHECK_STRING.
58671         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58672         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
58673
58674 2013-02-04  Andreas Schwab  <schwab@suse.de>
58675
58676         [BZ #14142]
58677         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
58678         * include/netdb.h: Likewise for h_errno.
58679         * elf/tst-stackguard1.c: Include <tls.h>.
58680
58681 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
58682
58683         * elf/link.h (struct link_map): Extend the l_addr comment.
58684         * include/link.h (struct link_map): Likewise.
58685
58686 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
58687
58688         [BZ #13550]
58689         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
58690         (BOUNDED_1): Remove macro.
58691         * debug/backtrace.c: Don't include <bp-checks.h>.
58692         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
58693         (__backtrace): Likewise.
58694         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
58695         <bp-checks.h>.
58696         (__backtrace): Don't use BOUNDED_1.
58697         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
58698         <bp-checks.h>.
58699         (__backtrace): Don't use BOUNDED_1.
58700         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
58701         (__backtrace): Don't use BOUNDED_1.
58702         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
58703         (shmat): Don't use BOUNDED_N.
58704
58705 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
58706
58707         [BZ #13550]
58708         * sysdeps/generic/bp-start.h: Remove file.
58709         * csu/libc-start.c: Don't include <bp-start.h>.
58710         (LIBC_START_MAIN): Set up __environ directly instead of using
58711         INIT_ARGV_and_ENVIRON.
58712         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
58713         <bp-start.h>.
58714
58715         [BZ #13550]
58716         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
58717         definitions.
58718         (CHECK_FCNTL): Likewise.
58719         (CHECK_N_PAGES): Likewise.
58720
58721         [BZ #13550]
58722         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
58723         definitions.
58724         (CHECK_SIGSET_NULL_OK): Likewise.
58725         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
58726         <bp-checks.h>.
58727         (sigpending): Don't use CHECK_SIGSET.
58728         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
58729         <bp-checks.h>.
58730         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58731         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
58732         <bp-checks.h>.
58733         (do_sigsuspend): Don't use CHECK_SIGSET.
58734         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
58735         use CHECK_SIGSET.
58736         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
58737         (do_sigwait): Don't use CHECK_SIGSET.
58738         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
58739         use CHECK_SIGSET.
58740         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
58741         include <bp-checks.h>.
58742         (sigpending): Don't use CHECK_SIGSET.
58743         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
58744         include <bp-checks.h>.
58745         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58746         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
58747         <bp-checks.h>.
58748         (sigpending): Don't use CHECK_SIGSET.
58749         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
58750         <bp-checks.h>.
58751         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58752
58753         [BZ #13550]
58754         * sysdeps/generic/bp-semctl.h: Remove file.
58755         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
58756         <bp-checks.h> and <bp-semctl.h>.
58757         (__old_semctl): Don't use CHECK_SEMCTL.
58758         (__new_semctl): Likewise.
58759         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
58760         and <bp-semctl.h>.
58761         (__old_semctl): Don't use CHECK_SEMCTL.
58762         (__new_semctl): Likewise.
58763         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
58764         <bp-checks.h> and <bp-semctl.h>.
58765         (__old_semctl): Don't use CHECK_SEMCTL.
58766         (__new_semctl): Likewise.
58767         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
58768         <bp-checks.h> and <bp-semctl.h>.
58769         (semctl): Don't use CHECK_SEMCTL.
58770
58771         [BZ #13550]
58772         * Makerules (elide-bp-thunks): Remove variable.
58773         (elide-routines.oS): Don't use $(elide-bp-thunks).
58774         (elide-routines.os): Likewise.
58775         (elide-routines.o): Likewise.
58776         (elide-routines.op): Likewise.
58777         (elide-routines.og): Likewise.
58778         (objects): Don't use $(bp-thunks).
58779         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
58780         include.
58781         (common-generated): Do not add s-proto-bp.d.
58782         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
58783         (int): Likewise.
58784         (typ): Likewise.
58785         Do not generate makefile rules for bounded-pointer thunks.
58786         * sysdeps/generic/bp-thunks.h: Remove file.
58787         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
58788         * sysdeps/unix/s-proto-bp.S: Likewise.
58789
58790         [BZ #15062]
58791         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
58792         parts of result separately when argument is not close to line from
58793         -i to i and one part of argument is small.
58794         * math/k_casinhf.c (__kernel_casinhf): Likewise.
58795         * math/k_casinhl.c (__kernel_casinhl): Likewise.
58796         * math/libm-test.inc (cacos_test): Add more tests.
58797         (casin_test): Likewise.
58798         (casinh_test): Likewise.
58799         * sysdeps/i386/fpu/libm-test-ulps: Update.
58800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58801
58802 2013-01-31  David S. Miller  <davem@davemloft.net>
58803
58804         * po/de.po: Update from translation team.
58805
58806 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
58807
58808         * time/tzfile.c: Include stdint.h for SIZE_MAX.
58809
58810 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
58811
58812         * configure.in (_AC_PROG_CC_C89): New definition.
58813         * configure: Regenerate.
58814
58815         * configure.in (AC_PROG_CPP): New definition.
58816         * configure: Regenerate.
58817
58818 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58819
58820         * debug/tst-backtrace.h: New file.
58821         * debug/tst-backtrace2.c: Include tst-backtrace.h.
58822         (ret): Remove variable.
58823         (x): Likewise.
58824         (FAIL): Remove macro.
58825         (NO_INLINE): Likewise.
58826         (fn1): Use match function instead of strstr.
58827         * debug/tst-backtrace3.c: Include tst-backtrace.h.
58828         (ret): Remove variable.
58829         (x): Likewise.
58830         (FAIL): Remove macro.
58831         (NO_INLINE): Likewise.
58832         (fn): Use match function instead of strstr.
58833         * debug/tst-backtrace4.c: Include tst-backtrace.h.
58834         (ret): Remove variable.
58835         (x): Likewise.
58836         (FAIL): Remove macro.
58837         (NO_INLINE): Likewise.
58838         (handle_signal): Use match function instead of strstr.
58839         * debug/tst-backtrace5.c: Include tst-backtrace.h.
58840         (ret): Remove variable.
58841         (x): Likewise.
58842         (FAIL): Remove macro.
58843         (NO_INLINE): Likewise.
58844         (handle_signal): Use match function instead of strstr.
58845
58846 2013-01-23  Roland McGrath  <roland@hack.frob.com>
58847
58848         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
58849
58850 2013-01-23  David S. Miller  <davem@davemloft.net>
58851
58852         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
58853         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
58854         argument of CAS if possible.
58855         * sysdeps/sparc/sparc64/bits/atomic.h
58856         (__arch_compare_and_exchange_val_32_acq): Likewise.
58857         (__arch_compare_and_exchange_val_64_acq): Likewise.
58858
58859 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
58860
58861         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
58862         * sysdeps/posix/ulimit.c: ... this.
58863         Include <limits.h>.
58864         * sysdeps/unix/bsd/ulimit.c: Remove file.
58865
58866 2013-01-23  Adam Conrad  <adconrad@0c3.net>
58867
58868         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
58869         (LDFLAGS-tst-array5): Likewise.
58870
58871 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58872
58873         [BZ #15036]
58874         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
58875         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
58876         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
58877         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
58878
58879 2013-01-21  David S. Miller  <davem@davemloft.net>
58880
58881         * sysdeps/sparc/backtrace.c: New file.
58882         * sysdeps/sparc/sparc32/backtrace.h: New file.
58883         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
58884         * sysdeps/sparc/sparc64/backtrace.h: New file.
58885         * sysdeps/sparc/sparc64/backtrace.c: Delete.
58886         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
58887         -funwind-tables.
58888
58889 2013-01-21  Andreas Schwab  <schwab@suse.de>
58890
58891         [BZ #15020]
58892         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
58893         closed its stdout.
58894
58895 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
58896
58897         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
58898         "mpa2.h".
58899         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58900
58901 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
58902             Mark Mitchell  <mark@codesourcery.com>
58903             Tom de Vries  <tom@codesourcery.com>
58904             Paul Pluzhnikov  <ppluzhnikov@google.com>
58905
58906         * debug/tst-backtrace2.c: New file.
58907         * debug/tst-backtrace3.c: Likewise.
58908         * debug/tst-backtrace4.c: Likewise.
58909         * debug/tst-backtrace5.c: Likewise.
58910         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
58911         (CFLAGS-tst-backtrace3.c): Likewise.
58912         (CFLAGS-tst-backtrace4.c): Likewise.
58913         (CFLAGS-tst-backtrace5.c): Likewise.
58914         (LDFLAGS-tst-backtrace2): Likewise.
58915         (LDFLAGS-tst-backtrace3): Likewise.
58916         (LDFLAGS-tst-backtrace4): Likewise.
58917         (LDFLAGS-tst-backtrace5): Likewise.
58918         (tests): Add new tests tst-backtrace2, tst-backtrace3,
58919         tst-backtrace4 and tst-backtrace5.
58920
58921 2013-01-18  Anton Blanchard  <anton@samba.org>
58922             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58923
58924         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
58925         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
58926         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
58927         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
58928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
58929         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
58930         "+r" and remove output regs list as redundant.  Add explicit inline
58931         asm to specify register of return val to work around compiler codegen
58932         bug.  Remove (int) cast on return value.  Add return type parameter to
58933         use in macro so that this macro does not truncate return value for
58934         64-bit values.
58935         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
58936         pass to INTERNAL_VSYSCALL_NCS.
58937         (INLINE_VSYSCALL): Add 'long int' as return type to
58938         INTERNAL_VSYSCALL_NCS macro invocation.
58939         (INTERNAL_VSYSCALL): Add 'long int' as return type to
58940         INTERNAL_VSYSCALL_NCS macro invocation.
58941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
58942
58943 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58944
58945         [BZ #14496]
58946         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
58947         Fix application of SIMD FP exception mask.
58948
58949         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
58950         mp_no from a power of two.
58951         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
58952         __mpexp_twomm1.  Use __pow_mp.
58953
58954         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
58955         multiplication.
58956
58957 2013-01-17  David S. Miller  <davem@davemloft.net>
58958
58959         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58960
58961 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
58962
58963         [BZ #15023]
58964         * include/complex.h: Condition contents on [!_COMPLEX_H].
58965         (__kernel_casinhf): New prototype.
58966         (__kernel_casinh): Likewise.
58967         (__kernel_casinhl): Likewise.
58968         * math/Makefile (libm_calls): Add k_casinh.
58969         * math/k_casinh.c: New file.
58970         * math/k_casinhf.c: Likewise.
58971         * math/k_casinhl.c: Likewise.
58972         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
58973         finite nonzero arguments.
58974         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
58975         finite nonzero arguments.
58976         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
58977         finite nonzero arguments.
58978         * math/s_casinh.c: Do not include <float.h>.
58979         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
58980         * math/s_casinhf.c: Do not include <float.h>.
58981         (__casinhf): Move code for finite nonzero arguments to
58982         k_casinhf.c.
58983         * math/s_casinhl.c: Do not include <float.h>.
58984         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
58985         redefine.
58986         (__casinhl): Move code for finite nonzero arguments to
58987         k_casinhl.c.
58988         * math/libm-test.inc (cacos_test): Add more tests.
58989         * sysdeps/i386/fpu/libm-test-ulps: Update.
58990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58991
58992 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
58993
58994         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
58995         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
58996         [!HAVE_MREMAP]: Remove [defined linux] case.
58997         * malloc/arena.c: Do not include <malloc-sysdep.h>.
58998
58999 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
59000
59001         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
59002
59003 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
59004
59005         * elf/elf.h (R_386_SIZE32): New relocation.
59006         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
59007         R_386_SIZE32.
59008         (elf_machine_rela): Likewise.
59009         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
59010         R_X86_64_SIZE64 and R_X86_64_SIZE32.
59011
59012 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59013
59014         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
59015         (FP_FAST_FMA): Do not define.
59016         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
59017         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
59018         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
59019         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
59020         !_SOFT_FLOAT]: Likewise.
59021         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
59022         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
59023         value.
59024         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
59025         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
59026         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
59027         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
59028         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
59029         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
59030         file.
59031
59032 2013-01-16  Andreas Schwab  <schwab@suse.de>
59033
59034         [BZ #14327]
59035         * include/stdlib.h (__mktemp): Add declaration.
59036         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
59037         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
59038
59039 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
59040
59041         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
59042         definitions.
59043         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59044         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
59045         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
59046         definitions here.
59047         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
59048         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
59049         definitions.
59050         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
59051         and ONE.
59052         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
59053         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
59054         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
59055         definitions.
59056         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
59057         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
59058         definitions.
59059         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59060
59061         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
59062
59063 2013-01-15  David S. Miller  <davem@davemloft.net>
59064
59065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59066         trunc{,f} to libm-sysdep_routes.
59067         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
59069         file.
59070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
59071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
59072         file.
59073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
59074         file.
59075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
59076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
59077         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
59078         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
59079         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
59080         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
59081         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
59082         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
59083
59084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59085         nearbyint{,f} to libm-sysdep_routes.
59086         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
59088         New file.
59089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
59090         file.
59091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
59092         New file.
59093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
59094         file.
59095         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
59096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
59097         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
59098         file.
59099         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
59100         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
59101         file.
59102         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
59103         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
59104         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
59105
59106         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
59107         libc_feholdexcept and libc_fesetenv.
59108
59109 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
59110
59111         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
59112
59113 2013-01-14  David S. Miller  <davem@davemloft.net>
59114
59115         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
59116         (SPARC_ASM_VIS2_IFUNC): Likewise.
59117         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
59118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
59119         use of 'siam' instruction.
59120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
59121         Likewise.
59122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
59123         Likewise.
59124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
59125         Likewise.
59126         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
59127         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
59128         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
59129         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
59130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
59131         file.
59132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
59133         file.
59134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
59135         file.
59136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
59137         file.
59138         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
59139         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
59140         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
59141         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
59142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
59143         new VIS2 routines.
59144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
59145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
59146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
59147         Likewise.
59148         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
59149         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
59150         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
59151         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
59152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
59153         routines to libm-sysdep_routines.
59154         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59155
59156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59157         fdim/fdimf to libm-sysdep_routines.
59158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
59159         file.
59160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
59161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
59162         file.
59163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
59164         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
59165         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
59166         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
59167         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
59168         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
59169         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
59170
59171 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59172
59173         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
59174         to optimize copies.
59175
59176         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
59177         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59178         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59179
59180         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
59181         local variable MPTWO.
59182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
59183         Likewise.
59184
59185 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59186
59187         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
59188         GLOB_NOESCAPE.
59189
59190 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59191
59192         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
59193
59194 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59195
59196         * manual/pattern.texi (glob_t): Document gl_flags.
59197         (glob64_t): Likewise.
59198
59199 2013-01-11  David S. Miller  <davem@davemloft.net>
59200
59201         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
59202         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
59203         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
59204         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
59205         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
59206         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
59207         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
59208         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
59209         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
59210         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
59211         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
59212         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
59213         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
59214
59215         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59216         sparc V9 rather than using V8 code.
59217         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59218         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59219
59220         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
59221         Move to...
59222         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
59223         Here.
59224
59225 2013-01-11  Roland McGrath  <roland@hack.frob.com>
59226
59227         [BZ #14941]
59228         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
59229         not in the main loop.
59230         * configure: Regenerated.
59231
59232 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
59233
59234         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
59235         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
59236         to just #else.
59237         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
59238         [!__GLIBC_HAVE_LONG_LONG] case.
59239         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
59240         condition to just #else.
59241         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
59242         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
59243         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
59244         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
59245         unconditional.
59246         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
59247         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59248         #elif condition to just #else.
59249         * sysdeps/unix/sysv/linux/sys/sysmacros.h
59250         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
59251         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59252         #elif condition to just #else.
59253
59254 2013-01-11  Steve Ellcey  <sellcey@mips.com>
59255
59256         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
59257         (EF_MIPS_ARCH_64): Fix value.
59258         (EF_MIPS_ARCH_32R2): New.
59259         (EF_MIPS_ARCH_64R2): New.
59260
59261 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
59262
59263         * Makeconfig (+link-pie-before-libc): New.
59264         (+link-pie-after-libc): Likewise.
59265         (+link-pie-tests): Likewise.
59266         (+link-pie): Rewritten.
59267         (link-before-libc): Remove $(config-LDFLAGS).
59268         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
59269         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
59270         (config-LDFLAGS): Renamed to ...
59271         (rtld-LDFLAGS): This.
59272         (rtld-tests-LDFLAGS): New macro.
59273         (link-libc-rpath-link): Likewise.
59274         (link-libc-tests-rpath-link): Likewise.
59275         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
59276         (link-libc): Prepand $(link-libc-rpath-link).
59277         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
59278         (test-program-prefix): New macro.
59279         (test-via-rtld-prefix): Likewise.
59280         (test-program-cmd): Likewise.
59281         (host-test-program-cmd): Likewise.
59282         * Makefile ($(common-objpfx)testrun.sh): Replace
59283         $(run-program-prefix) with $(test-program-prefix).
59284         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
59285         $(rtld-LDFLAGS).
59286         ($(common-objpfx)shlib.lds): Likewise.
59287         (build-module-helper): Likewise.
59288         ($(common-objpfx)format.lds): Likewise.
59289         * Rules (binaries-pie-tests): New.
59290         (binaries-pie-notests): Likewise.
59291         (binaries-pie): Rewritten.
59292         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
59293         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
59294         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
59295         (make-test-out): Replace $(host-built-program-cmd) with
59296         $(host-test-program-cmd).
59297         * config.make.in (build-hardcoded-path-in-tests): New variable.
59298         * configure.in (--enable-hardcoded-path-in-tests): New configure
59299         option.
59300         (hardcoded_path_in_tests): New AC_SUBST.
59301         * configure: Regenerated.
59302         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
59303         $(built-program-cmd) with $(test-program-cmd).
59304         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
59305         (test_program_cmd): This.
59306         * elf/Makefile ($(objpfx)order.out): Run test with
59307         $(test-program-prefix).
59308         ($(objpfx)order2.out): Likewise.
59309         ($(objpfx)tst-initorder.out): Likewise.
59310         ($(objpfx)tst-initorder2.out): Likewise.
59311         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
59312         $(test-program-cmd).
59313         ($(objpfx)tst-array1-static.out): Likewise.
59314         ($(objpfx)tst-array2.out): Likewise.
59315         ($(objpfx)tst-array3.out): Likewise.
59316         ($(objpfx)tst-array4.out): Likewise.
59317         ($(objpfx)tst-array5.out): Likewise.
59318         ($(objpfx)tst-array5-static.out): Likewise.
59319         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
59320         $(test-program-cmd).
59321         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
59322         $(run-program-prefix) with $(test-program-prefix).
59323         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
59324         (test_program_prefix): This.
59325         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
59326         $(run-program-prefix) with $(test-program-prefix).
59327         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
59328         (test_program_prefix): This.
59329         * iconvdata/tst-tables.sh: Likewise.
59330         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
59331         $(run-program-prefix) with $(test-program-prefix).
59332         ($(objpfx)tst-translit.out): Likewise.
59333         ($(objpfx)tst-gettext2.out): Likewise.
59334         ($(objpfx)tst-gettext4.out): Likewise.
59335         ($(objpfx)tst-gettext6.out): Likewise.
59336         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
59337         (test_program_prefix): This.
59338         * intl/tst-gettext2.sh: Likewise.
59339         * intl/tst-gettext4.sh  Likewise.
59340         * intl/tst-gettext6.sh: Likewise.
59341         * intl/tst-translit.sh: Likewise.
59342         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
59343         with $(test-program-cmd).
59344         * libio/Makefile ($(objpfx)test-freopen.out): Replace
59345         $(run-program-prefix) with $(test-program-prefix).
59346         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
59347         (test_program_prefix): This.
59348         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
59349         $(run-program-prefix) with $(test-program-prefix).
59350         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
59351         (test_program_prefix): This.
59352         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
59353         * posix/Makefile ($(objpfx)globtest.out): Replace
59354         $(run-via-rtld-prefix) and $(test-wrapper) with
59355         $(test-program-prefix) and $(test-via-rtld-prefix).
59356         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
59357         $(test-program-prefix).
59358         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
59359         $(host-test-program-cmd).
59360         (tst-spawn-ARGS): Likewise.
59361         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
59362         $(test-program-prefix).
59363         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
59364         (test_via_rtld_prefix): This.
59365         (test_wrapper): Renamed to ...
59366         (test_program_prefix): This.
59367         (run_program_prefix): Replaced by test_program_prefix.
59368         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
59369         (test_program_prefix): This.
59370         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
59371         with $(host-test-program-cmd).
59372         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
59373         $(run-program-prefix) with $(test-program-prefix).
59374         ($(objpfx)tst-printf.out): Likewise.
59375         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
59376         $(test-program-cmd).
59377         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
59378         (test_program_prefix): This.
59379         * stdio-common/tst-unbputc.sh: Likewise.
59380         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
59381         $(run-program-prefix) with $(test-program-prefix).
59382         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
59383         (test_program_prefix): This.
59384         * string/Makefile ($(objpfx)tst-svc.out):  Replace
59385         $(built-program-cmd) with $(test-program-cmd).
59386
59387 2013-01-11  Andreas Jaeger  <aj@suse.de>
59388
59389         [BZ #15003]
59390         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
59391         value. Sync with Linux 3.7.
59392
59393 2013-01-10  David S. Miller  <davem@davemloft.net>
59394
59395         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
59396         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59397         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59398
59399 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59400
59401         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
59402         never set.
59403         * configure: Regenerated.
59404
59405 2013-01-10  David S. Miller  <davem@davemloft.net>
59406
59407         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59408         sparc V9 rather than using V8 code.
59409         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59410         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59411
59412 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59413
59414         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
59415         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
59416         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
59417         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
59418         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
59419         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
59420         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
59421         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
59422         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
59423         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
59424         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
59425         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
59426         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
59427         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
59428         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
59429         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
59430         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
59431         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
59432         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
59433         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
59434         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
59435         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
59436         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
59437         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
59438         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
59439         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
59440         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
59441
59442 2013-01-10  David S. Miller  <davem@davemloft.net>
59443
59444         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59445
59446 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59447
59448         * posix/Makefile (tests-static): New variable.
59449         (tests): Add $(tests-static).
59450         (tst-exec-static-ARGS): New variable.
59451         (tst-spawn-static-ARGS): Likewise.
59452         * posix/tst-exec-static.c: New file.
59453         * posix/tst-spawn-static.c: Likewise.
59454         * posix/tst-exec.c: Support run directly.
59455         * posix/tst-spawn.c: Likewise.
59456
59457 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
59458
59459         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
59460         long.
59461         * math/bits/mathcalls.h (llrint): Likewise.
59462         (llround): Likewise.
59463         * stdlib/stdlib.h (struct drand48_data): Likewise.
59464         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
59465         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
59466         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
59467         Likewise.
59468         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
59469         Likewise.
59470         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
59471         (elf_greg_t): Likewise.
59472         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
59473         (__jmp_buf): Likewise.
59474         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
59475         definitions.
59476         (llrint): Likewise, for all definitions.
59477         (llrintl): Likewise.
59478
59479         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
59480         Remove [__GNUC__] condition.
59481         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
59482         condition to just [__USE_ISOC99].
59483         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
59484
59485 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59486
59487         [BZ #14200]
59488         * sysdeps/unix/sysv/linux/x86/bits/environments.h
59489         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
59490         defined.
59491         (_POSIX_V6_ILP32_OFF32): Likewise.
59492         (_XBS5_ILP32_OFF32): Likewise.
59493         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
59494         (__ILP32_OFFBIG_LDFLAGS): Likewise.
59495
59496 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59497
59498         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
59499
59500         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
59501         doubles __mpexp_twomm1.  Adjust usage.
59502         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
59503         Remove.
59504
59505 2013-01-10  Andreas Schwab  <schwab@suse.de>
59506
59507         [BZ #14964]
59508         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
59509         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
59510
59511 2013-01-09  David S. Miller  <davem@davemloft.net>
59512
59513         [BZ #15003]
59514         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
59515         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
59516         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
59517         (TCP_FASTOPEN): Define.
59518         (tcp_repair_opt): New structure.
59519         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
59520         enum values.
59521         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
59522         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
59523         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
59524         (tcp_cookie_transactions): New structure.
59525
59526 2013-01-09  Anton Blanchard  <anton@samba.org>
59527
59528         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
59529         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
59530         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
59531         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
59532
59533 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
59534
59535         * include/features.h (__USE_ANSI): Remove.
59536
59537 2013-01-09  Roland McGrath  <roland@hack.frob.com>
59538
59539         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
59540
59541         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
59542
59543 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
59544
59545         * sysdeps/s390/fpu/libm-test-ulps: Update.
59546
59547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59548
59549         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
59550         (__acr): Likewise.
59551         (__cpy): Likewise.
59552         (norm): Likewise.
59553         (denorm): Likewise.
59554         (__mp_dbl): Likewise.
59555         (__dbl_mp): Likewise.
59556         (add_magnitudes): Likewise.
59557         (sub_magnitudes): Likewise.
59558         (__add): Likewise.
59559         (__sub): Likewise.
59560         (__mul): Likewise.
59561         (__inv): Likewise.
59562         (__dvd): Likewise.
59563         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
59564         (__acr): Likewise.
59565         (__cpy): Likewise.
59566         (norm): Likewise.
59567         (denorm): Likewise.
59568         (__mp_dbl): Likewise.
59569         (__dbl_mp): Likewise.
59570         (add_magnitudes): Likewise.
59571         (sub_magnitudes): Likewise.
59572         (__add): Likewise.
59573         (__sub): Likewise.
59574         (__mul): Likewise.
59575         (__inv): Likewise.
59576         (__dvd): Likewise.
59577         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
59578         (__acr): Likewise.
59579         (__cpy): Likewise.
59580         (norm): Likewise.
59581         (denorm): Likewise.
59582         (__mp_dbl): Likewise.
59583         (__dbl_mp): Likewise.
59584         (add_magnitudes): Likewise.
59585         (sub_magnitudes): Likewise.
59586         (__add): Likewise.
59587         (__sub): Likewise.
59588         (__mul): Likewise.
59589         (__inv): Likewise.
59590         (__dvd): Likewise.
59591
59592 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
59593
59594         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
59595         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
59596         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
59597         2 && __USE_EXTERN_INLINES]: Likewise.
59598
59599 2013-01-08  Andreas Jaeger  <aj@suse.de>
59600
59601         [BZ# 14985]
59602         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
59603         Remove.
59604         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59605         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59606
59607 2013-01-07  Anton Blanchard  <anton@samba.org>
59608
59609         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
59610         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59611         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
59612         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59613         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59614         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59615         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
59616         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59617         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59618         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59619         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59620         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59621         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
59622         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59623         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
59624         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59625         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59626         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59627         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
59628         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59629         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
59630         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
59631         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
59632         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
59633         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
59634         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59635         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
59636         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59637         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
59638         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
59639         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
59640         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59641         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59642         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59643         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59644         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
59645         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59646         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59647         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
59648         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
59649         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
59650         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
59651         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59652
59653 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
59654
59655         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
59656         (__MALLOC_PMT): Likewise.
59657         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
59658         [__GNUC__], only on [_LIBC].
59659         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59660         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
59661         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59662         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
59663         forward declaration.
59664         (realloc_hook_ini): Likewise.
59665         (memalign_hook_ini): Likewise.
59666         (__libc_memalign): Do not use __MALLOC_PMT in variable
59667         declaration.
59668         (__libc_valloc): Likewise.
59669         (__libc_pvalloc): Likewise.
59670         (__libc_calloc): Likewise.
59671         (__posix_memalign): Likewise.
59672
59673         [BZ #14996]
59674         * math/s_casinh.c: Include <float.h>.
59675         (__casinh): Do not do computation with squaring and square root
59676         for large arguments.
59677         * math/s_casinhf.c: Include <float.h>.
59678         (__casinhf): Do not do computation with squaring and square root
59679         for large arguments.
59680         * math/s_casinhl.c: Include <float.h>.
59681         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
59682         (__casinhl): Do not do computation with squaring and square root
59683         for large arguments.
59684         * math/libm-test.inc (casin_test): Add more tests.
59685         (casinh_test): Likewise.
59686         * sysdeps/i386/fpu/libm-test-ulps: Update.
59687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59688
59689 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
59690
59691         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
59692         (__x86_64_raw_data_cache_size): Likewise.
59693         (__x86_64_data_cache_size_half): Likewise.
59694         (__x86_64_raw_data_cache_size_half): Likewise.
59695         (__x86_64_shared_cache_size): Likewise.
59696         (__x86_64_raw_shared_cache_size): Likewise.
59697         (__x86_64_shared_cache_size_half): Likewise.
59698         (__x86_64_raw_shared_cache_size_half): Likewise.
59699         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
59700         to ...
59701         (__x86_data_cache_size): This.
59702         (__x86_64_raw_data_cache_size): Renamed to ...
59703         (__x86_raw_data_cache_size): This.
59704         (__x86_64_data_cache_size_half): Renamed to ...
59705         (__x86_data_cache_size_half): This.
59706         (__x86_64_raw_data_cache_size_half): Renamed to ...
59707         (__x86_raw_data_cache_size_half): This.
59708         (__x86_64_shared_cache_size): Renamed to ...
59709         (__x86_shared_cache_size): This.
59710         (__x86_64_raw_shared_cache_size): Renamed to ...
59711         (__x86_raw_shared_cache_size): This.
59712         (__x86_64_shared_cache_size_half): Renamed to ...
59713         (__x86_shared_cache_size_half): This.
59714         (__x86_64_raw_shared_cache_size_half): Renamed to ...
59715         (__x86_raw_shared_cache_size_half): This.
59716         * sysdeps/x86_64/memcpy.S: Updated.
59717         * sysdeps/x86_64/memset.S: Likewise.
59718         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
59719         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
59720         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
59721
59722 2013-01-04  David S. Miller  <davem@davemloft.net>
59723
59724         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59725
59726 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
59727
59728         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
59729         1 to avoid redefinition warning.
59730         (__USE_GNU): Don't define.
59731         (init_signaling_nan): Protoize.
59732
59733         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59734
59735 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59736
59737         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
59738         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
59739         (__cpymn): Likewise.
59740         (norm): Remove commented code.
59741         (denorm): Likewise.
59742         (__mp_dbl): Likewise.
59743         (__inv): Likewise.
59744         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
59745         (__cpymn): Likewise.
59746         (norm): Remove commented code.
59747         (denorm): Likewise.
59748         (__mp_dbl): Likewise.
59749         (__inv): Likewise.
59750
59751         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
59752         mp_no value for 1.0 and 2.0.
59753         (norm): Use RADIXI instead of radixi.d.
59754         (denorm): Likewise.
59755         (__mul): Use 0.0 instead of zero.d.
59756         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
59757         mp_no value for 1.0 and 2.0.
59758         (norm): Use RADIXI instead of radixi.d.
59759         (denorm): Likewise.
59760         (__mul): Use 0.0 instead of zero.d.
59761
59762 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
59763
59764         [BZ #14994]
59765         * math/s_casinh.c (__casinh): Reduce finite argument to first
59766         quadrant then set signs of results at the end.
59767         * math/s_casinhf.c (__casinhf): Likewise.
59768         * math/s_casinhl.c (__casinhl): Likewise.
59769         * math/libm-test.inc (casin_test): Add more tests.
59770         (casinh_test): Likewise.
59771         * sysdeps/i386/fpu/libm-test-ulps: Update.
59772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59773
59774 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59775
59776         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
59777
59778         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
59779
59780         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
59781         declarations.
59782         (denorm): Likewise.
59783         (__mp_dbl): Likewise.
59784         (__inv): Likewise.
59785
59786         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
59787         and adjust the header comment.
59788
59789         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
59790         variable name from declaration.
59791
59792 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
59793
59794         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59795         Initialize COMMON_CPUID_INDEX_7 element.
59796         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
59797         (CPUID_RTM): Likewise.
59798         (HAS_RTM): Likewise.
59799         (COMMON_CPUID_INDEX_7): New enum.
59800
59801 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
59802
59803         [BZ #14981]
59804         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
59805         size is zero, record memory as freed.
59806
59807 2013-01-03  Andreas Jaeger  <aj@suse.de>
59808
59809         * po/ia.po: Add new Interlingua translation.
59810
59811 2012-01-03  Allan McRae  <allan@archlinux.org>
59812
59813         * locale/programs/localedef.c: Fix description of '--posix' flag.
59814
59815 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
59816
59817         * NEWS: Update dates in second copyright notice.
59818         * README: Update copyright dates in example.
59819         * manual/libc.texinfo: Update copyright dates.
59820         * scripts/test-installation.pl: Update copyright date in --version
59821         output.
59822
59823         * hurd/ctty-input.c: Fix copyright notice formatting.
59824         * hurd/ctty-output.c: Likewise.
59825         * hurd/dtable.c: Likewise.
59826         * hurd/hurd-raise.c: Likewise.
59827         * hurd/hurdprio.c: Likewise.
59828         * hurd/msgportdemux.c: Likewise.
59829         * misc/sys/file.h: Likewise.
59830         * misc/sys/ioctl.h: Likewise.
59831         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
59832         * sysdeps/mach/hurd/chdir.c: Likewise.
59833         * sysdeps/mach/hurd/fchdir.c: Likewise.
59834         * sysdeps/mach/hurd/rename.c: Likewise.
59835         * sysdeps/mach/hurd/rmdir.c: Likewise.
59836         * sysdeps/mach/hurd/seekdir.c: Likewise.
59837         * sysdeps/mach/hurd/setsid.c: Likewise.
59838         * sysdeps/posix/wait3.c: Likewise.
59839
59840         * All files with FSF copyright notices: Update copyright dates
59841         using scripts/update-copyrights.
59842         * intl/plural.c: Regenerated.
59843         * locale/programs/charmap-kw.h: Likewise.
59844         * locale/programs/locfile-kw.h: Likewise.
59845
59846 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
59847
59848         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
59849         four values.
59850
59851         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
59852         calculation loop and add branch prediction.
59853
59854         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
59855         check access beyond bounds of m1np.
59856
59857         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59858         MPTWO.
59859         (__inv): Remove local variable MPTWO to use the global
59860         constant.
59861         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
59862         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59863         variable MPTWO.
59864         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
59865         MP3HALFS static const.
59866
59867 2013-01-01  David S. Miller  <davem@davemloft.net>
59868
59869         * po/ca.po: Update from translation team.
59870
59871 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
59872
59873         * scripts/update-copyrights: New file.
59874         * Makeconfig: Reformat copyright notice.
59875         * ctype/ctype.h: Likewise.
59876         * debug/swprintf_chk.c: Likewise.
59877         * elf/dl-cache.c: Likewise.
59878         * elf/dl-debug.c: Likewise.
59879         * elf/dl-object.c: Likewise.
59880         * grp/initgroups.c: Likewise.
59881         * hurd/Makefile: Likewise.
59882         * hurd/hurd/signal.h: Likewise.
59883         * hurd/hurdfault.c: Likewise.
59884         * hurd/hurdioctl.c: Likewise.
59885         * hurd/hurdlookup.c: Likewise.
59886         * hurd/intr-msg.c: Likewise.
59887         * iconv/gconv_open.c: Likewise.
59888         * libio/swprintf.c: Likewise.
59889         * locale/lc-ctype.c: Likewise.
59890         * locale/nl_langinfo.c: Likewise.
59891         * mach/Machrules: Likewise.
59892         * mach/Makefile: Likewise.
59893         * malloc/obstack.h: Likewise.
59894         * manual/Makefile: Likewise.
59895         * manual/tsort.awk: Likewise.
59896         * misc/bits/stab.def: Likewise.
59897         * nis/nis_print_group_entry.c: Likewise.
59898         * nis/nis_table.c: Likewise.
59899         * nis/nss_compat/compat-pwd.c: Likewise.
59900         * nis/nss_compat/compat-spwd.c: Likewise.
59901         * po/Makefile: Likewise.
59902         * posix/fnmatch.c: Likewise.
59903         * posix/regex.h: Likewise.
59904         * resolv/Makefile: Likewise.
59905         * resolv/nss_dns/dns-network.c: Likewise.
59906         * resolv/res_hconf.c: Likewise.
59907         * scripts/gen-sorted.awk: Likewise.
59908         * soft-fp/soft-fp.h: Likewise.
59909         * stdio-common/printf.h: Likewise.
59910         * stdlib/monetary.h: Likewise.
59911         * stdlib/random.c: Likewise.
59912         * stdlib/random_r.c: Likewise.
59913         * sysdeps/generic/Makefile: Likewise.
59914         * sysdeps/gnu/Makefile: Likewise.
59915         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
59916         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
59917         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
59918         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
59919         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
59920         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
59921         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
59922         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
59923         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
59924         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
59925         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
59926         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
59927         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
59928         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
59929         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
59930         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
59931         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
59932         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
59933         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
59934         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
59935         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
59936         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
59937         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
59938         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59939         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
59940         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
59941         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
59942         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
59943         * sysdeps/mach/hurd/errnos.awk: Likewise.
59944         * sysdeps/mach/hurd/fork.c: Likewise.
59945         * sysdeps/mach/hurd/getcwd.c: Likewise.
59946         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
59947         * sysdeps/mach/hurd/mmap.c: Likewise.
59948         * sysdeps/mach/hurd/utimes.c: Likewise.
59949         * sysdeps/mach/hurd/xmknod.c: Likewise.
59950         * sysdeps/posix/profil.c: Likewise.
59951         * sysdeps/posix/readdir_r.c: Likewise.
59952         * sysdeps/powerpc/bits/mathdef.h: Likewise.
59953         * sysdeps/powerpc/bits/setjmp.h: Likewise.
59954         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
59955         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59956         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59957         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
59958         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59959         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59960         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59961         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
59962         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59963         * sysdeps/pthread/lio_listio.c: Likewise.
59964         * sysdeps/sparc/dl-procinfo.h: Likewise.
59965         * sysdeps/unix/i386/sysdep.S: Likewise.
59966         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
59967         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
59968         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
59969         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
59970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
59971         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
59972         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
59973         * sysdeps/unix/sysv/linux/speed.c: Likewise.
59974         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
59975         * sysdeps/wordsize-32/divdi3.c: Likewise.
59976         * time/sys/time.h: Likewise.
59977         * wcsmbs/Makefile: Likewise.
59978
59979 2013-01-01  David S. Miller  <davem@davemloft.net>
59980
59981         * po/fr.po: Update from translation team.
59982
59983         * catgets/gencat.c: Update copyright year.
59984         * csu/version.c: Likewise.
59985         * debug/catchsegv.sh: Likewise.
59986         * debug/pcprofiledump.c: Likewise.
59987         * debug/xtrace.sh: Likewise.
59988         * elf/ldconfig.c: Likewise.
59989         * elf/ldd.bash.in: Likewise.
59990         * elf/pldd.c: Likewise.
59991         * elf/sotruss.ksh: Likewise.
59992         * elf/sprof.c: Likewise.
59993         * iconv/iconv_prog.c: Likewise.
59994         * iconv/iconvconfig.c: Likewise.
59995         * locale/programs/locale.c: Likewise.
59996         * locale/programs/localedef.c: Likewise.
59997         * login/programs/pt_chown.c: Likewise.
59998         * malloc/memusage.sh: Likewise.
59999         * malloc/memusagestat.c: Likewise.
60000         * malloc/mtrace.pl: Likewise.
60001         * nscd/nscd.c: Likewise.
60002         * nss/getent.c: Likewise.
60003         * nss/makedb.c: Likewise.
60004         * posix/getconf.c: Likewise.
60005
60006 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
60007
60008         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
60009         numbers.
60010
60011 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
60012
60013         * math/bits/mathcalls.h (modf): Use __nonnull.
60014
60015 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60016
60017         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
60018         (split): Use macro CN instead of the bare value.
60019         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
60020         could be used.
60021         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
60022         instead of the bare value.
60023         (power1): Likewise.
60024
60025 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60026
60027         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
60028         __ATAN_TWOM.
60029         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60030
60031         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
60032         their values.
60033         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
60034         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
60035         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
60036         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
60037
60038 2012-12-28  Andreas Jaeger  <aj@suse.de>
60039
60040         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
60041         values are from Linux 3.7.
60042
60043         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
60044         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
60045
60046 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60047
60048         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
60049         TRUE case.
60050
60051         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
60052         (norm): Likewise.
60053         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
60054         variables with preprocessor constants.
60055         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60056         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
60057         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
60058
60059 2012-12-27  Bruno Haible  <bruno@clisp.org>
60060
60061         [BZ #14317]
60062         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
60063         only if needed.
60064
60065 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60066
60067         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
60068         and use variable directly.
60069         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
60070
60071         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60072         MPONE.
60073         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
60074         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60075         variable MPONE.
60076         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
60077         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
60078         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
60079         include directive.  Remove local variable MPONE.
60080         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
60081         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
60082         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
60083
60084 2012-12-25  David S. Miller  <davem@davemloft.net>
60085
60086         * version.h (RELEASE): Set to "development".
60087         (VERSION): Set to "2.17.90".
60088         * NEWS: Add 2.18 section.
60089
60090 2012-12-21  David S. Miller  <davem@davemloft.net>
60091
60092         * po/hr.po: Update from translation team.
60093
60094 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60095
60096         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
60097
60098 2012-12-19  Steve Ellcey  <sellcey@mips.com>
60099
60100         * NEWS:  Mention new memcpy for MIPS.
60101
60102 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60103
60104         * manual/contrib.texi (Contributors): Spelling correction.
60105
60106 2012-12-15  David S. Miller  <davem@davemloft.net>
60107
60108         * po/ru.po: Update from translation team.
60109
60110 2012-12-13  David S. Miller  <davem@davemloft.net>
60111
60112         * NEWS: Mention IFUNC testsuite enhancements.
60113
60114         * po/pl.po: Update from translation team.
60115         * po/bg.po: Likewise.
60116
60117         * manual/contrib.texi (Contributors): Update entries for Hongjiu
60118         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
60119
60120 2012-12-11  David S. Miller  <davem@davemloft.net>
60121
60122         * po/sv.po: Update from translation team.
60123
60124         * po/vi.po: Update from translation team.
60125
60126         * po/cs.po: Update from translation team.
60127
60128         * po/de.po: Update from translation team.
60129         * po/eo.po: Likewise.
60130         * po/nl.po: Likewise.
60131
60132 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60133
60134         [BZ #14246]
60135         * manual/argp.texi (Argp Helper Functions): Move node to follow
60136         Argp Parsing State.
60137
60138         [BZ #14872]
60139         * manual/conf.texi (Limits on File System Capacity): Mention if
60140         terminating null is included in the max size.
60141
60142 2012-12-10  Andreas Jaeger  <aj@suse.de>
60143
60144         * po/cs.po: Update from translation team.
60145
60146 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
60147
60148         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
60149         void pointer and cast to uintptr_t.
60150         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
60151         path.
60152         * sysdeps/s390/s390-64/memcpy.S: Likewise.
60153         * sysdeps/s390/s390-64/memset.S: Likewise.
60154
60155 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
60156
60157         [BZ #14833]
60158         * menual/message.texi (Message Translation): Fix typos.
60159         (Helper programs for gettext): Likewise.
60160
60161 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
60162
60163         [BZ #14898]
60164         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
60165         Change to -1.
60166
60167 2012-12-07  David S. Miller  <davem@davemloft.net>
60168
60169         * po/libc.pot: Update.
60170
60171 2012-12-07  Richard Henderson  <rth@redhat.com>
60172
60173         [BZ #10114]
60174         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
60175         normal/normal case to before the switch.
60176         (_FP_DIV): Likewise.
60177
60178 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
60179             Mike Frysinger  <vapier@gentoo.org>
60180
60181         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
60182         check for __NR_fadvise64_64.
60183
60184 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
60185
60186         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
60187         0, not just to plain "0" as a statement.
60188         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
60189         with cw.
60190
60191 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
60192
60193         * NEWS: Use sourceware.org in Bugzilla URL.
60194
60195 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60196
60197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
60198         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60199
60200         * stdio-common/tst-put-error.c (do_test): Add newline to the
60201         padded test to ensure flush.
60202
60203 2012-12-05  Jeff Law  <law@redhat.com>
60204
60205         * sunrpc/etc.rpc (fedfs_admin): Add entry.
60206
60207 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
60208
60209         * README: Don't refer to ports add-on as distributed separately.
60210         Mention AArch64 in list of systems supported in the ports add-on.
60211
60212         * LICENSES: Add more non-FSF copyright and license notices.
60213
60214         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
60215         ((unused)).
60216
60217         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
60218
60219         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
60220         10000 as width of padded output.
60221
60222 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60223
60224         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
60225
60226         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
60227         variable LX with __attribute__ ((unused)).
60228         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
60229         Likewise.
60230         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
60231         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60232         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
60233         with __attribute__ ((unused)).
60234
60235 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
60236
60237         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
60238
60239 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60240
60241         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
60242         (CFLAGS-nldbl-acos.c): New variable.
60243         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
60244         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
60245         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
60246         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
60247         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
60248         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
60249         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
60250         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
60251         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
60252         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
60253         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
60254         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
60255         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
60256         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
60257         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
60258         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
60259         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
60260         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
60261         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
60262         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
60263         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
60264         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
60265         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
60266         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
60267         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
60268         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
60269         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
60270         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
60271         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
60272         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
60273         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
60274         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
60275         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
60276         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
60277         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
60278         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
60279         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
60280         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
60281         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
60282         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
60283         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
60284         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
60285         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
60286         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
60287         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
60288         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
60289         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
60290         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
60291         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
60292         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
60293         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
60294         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
60295         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
60296         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
60297         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
60298         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
60299         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
60300         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
60301         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
60302         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
60303         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
60304         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
60305         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
60306         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
60307         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
60308         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
60309         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
60310         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
60311         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
60312         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
60313         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
60314         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
60315         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
60316         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
60317         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
60318         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
60319         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
60320         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
60321         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
60322         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
60323         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
60324         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
60325         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
60326         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
60327         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
60328         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
60329         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
60330         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
60331         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
60332         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
60333         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
60334         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
60335         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
60336         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
60337         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
60338         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
60339         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
60340
60341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
60342         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60343
60344         [BZ #14914]
60345         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
60346         whole low double instead of just low 47 bits when splitting values
60347         into two parts.
60348
60349 2012-12-03  Allan McRae  <allan@archlinux.org>
60350
60351         * manual/stdio.texi (Predefined Printf Handlers): Remove
60352         @hsep and @vsep usage.
60353
60354 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
60355
60356         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
60357         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
60358
60359 2012-12-03  Jeff Law  <law@redhat.com>
60360
60361         * time/sys/time.h (settimeofday): Do not mark TV argument
60362         as __nonnull.
60363
60364 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
60365
60366         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
60367         when currently writing and seek to current position when not.
60368         * libio/Makefile (tests): Remove bug-fclose1.
60369         * libio/bug-fclose1.c: Delete.
60370
60371 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
60372
60373         * manual/arith.texi (feenableexcept): Fix typo.
60374         (fedisableexcept): Likewise.
60375
60376 2012-11-30  Roland McGrath  <roland@hack.frob.com>
60377
60378         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
60379         second, differently-typed declaration, rather than a cast.
60380
60381 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
60382
60383         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
60384         * include/rpc/svc.h: ... here.
60385
60386 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
60387
60388         [BZ #13013]
60389         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
60390         depending n and resplen2 to catch cases where answer
60391         equals answerp2.
60392
60393 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
60394
60395         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
60396         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
60397
60398 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
60399
60400         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
60401
60402 2012-11-29  Roland McGrath  <roland@hack.frob.com>
60403
60404         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
60405
60406 2012-11-28  Jeff Law  <law@redhat.com>
60407
60408         [BZ #13761]
60409         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
60410         dataset_temporary.  Track alloca usage into alloca_used.
60411         If dataset is large allocate and release it via malloc/free.
60412
60413 2012-06-04  Florian Weimer  <fweimer@redhat.com>
60414
60415         [BZ #14197]
60416         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
60417
60418 2012-11-28  David S. Miller  <davem@davemloft.net>
60419
60420         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60421
60422 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60423
60424         [BZ #14803]
60425         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
60426         of pi/2 rounded to nearest to 64 bits.
60427         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
60428         nearest to 64 bits.
60429         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
60430         bits.
60431
60432 2012-11-28  Jeff Law <law@redhat.com>
60433             Martin Osvald <mosvald@redhat.com>
60434
60435         [BZ #14889]
60436         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
60437         * sunrpc/svc.c: Include time.h.
60438         (__svc_accept_failed): New function.
60439         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
60440         any reason other than EINTR, call __svc_accept_failed.
60441         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
60442         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
60443
60444 2012-11-28  Andreas Schwab  <schwab@suse.de>
60445
60446         * scripts/abilist.awk: Also handle indirect functions in .opd
60447         section.
60448
60449 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60450
60451         [BZ #13881]
60452         * sysdeps/x86/fpu/powl_helper.c: New file.
60453         * sysdeps/x86/fpu/Makefile: Likewise.
60454         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
60455         (p3): New object.
60456         (__ieee754_powl): Use __powl_helper for finite arguments except
60457         integer exponents below 8.
60458         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
60459         (p3): New object.
60460         (__ieee754_powl): Use __powl_helper for finite arguments except
60461         integer exponents below 8.
60462         * math/libm-test.inc (pow_test): Add more tests and enable some
60463         previously disabled tests.
60464         * sysdeps/i386/fpu/libm-test-ulps: Update.
60465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60466
60467 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60468             Carlos O'Donell  <carlos_odonell@mentor.com>
60469
60470         * nss/makedb.c (is_prime): Assert that input is odd and greater
60471         than 4.  Note that fact in a comment too.
60472         (next_prime): Add 4 to input.
60473
60474 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60475
60476         [BZ #11741]
60477         * libio/Makefile (tests): Add test case tst-fwrite-error.
60478         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
60479         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
60480         * libio/tst-fwrite-error.c: New test case.
60481
60482 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
60483
60484         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
60485         before casting to void *.
60486         * include/libc-internal.h (__pointer_type): New macro.
60487         (__integer_if_pointer_type_sub): Likewise.
60488         (__integer_if_pointer_type): Likewise.
60489         (cast_to_integer): Likewise.
60490         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
60491         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
60492         before casting to atomic64_t.
60493         (atomic_exchange_acq): Likewise.
60494         (__arch_exchange_and_add_body): Likewise.
60495         (__arch_add_body): Likewise.
60496         (atomic_add_negative): Likewise.
60497         (atomic_add_zero): Likewise.
60498
60499 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
60500
60501         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
60502         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
60503         (add_fdes): Likewise.
60504         (linear_search_fdes): Likewise.
60505         (binary_search_unencoded_fdes): Likewise.
60506
60507 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
60508
60509         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
60510
60511 2012-11-24  Adam Conrad  <adconrad@0c3.net>
60512
60513         * configure.in: Autodetect C++ header directories.
60514         * configure: Regenerated.
60515
60516 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
60517
60518         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
60519
60520 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
60521
60522         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60523
60524 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
60525
60526         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
60527         LDBL_MANT_DIG == 106]: Disable some tests.
60528         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60529         Likewise.
60530         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60531         Likewise.
60532
60533         [BZ #14871]
60534         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
60535         input for small inputs.  Return +/- pi/2 for large inputs.
60536         * math/libm-test.inc (atan_test): Add more tests.
60537
60538         * sysdeps/generic/unwind-dw2-fde-glibc.c
60539         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
60540         __attribute__ ((unused)).
60541
60542         [BZ #14645]
60543         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
60544         x * y if x and y are nonzero and z is zero.
60545
60546         [BZ #14811]
60547         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
60548         nonzero exponents with absolute value below 0x1p-117 to +/-
60549         0x1p-117.
60550
60551         [BZ #14869]
60552         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
60553         up arguments below 2**-450, not just those below 2**-500.
60554         * math/libm-test.inc (hypot_test): Add another test.
60555
60556         [BZ #14868]
60557         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
60558         Return a+b for ratio over 2**120, not 2**60.
60559         * math/libm-test.inc (hypot_test): Add another test.
60560
60561         * math/libm-test.inc (clog_test): Use
60562         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
60563         (clog10_test): Likewise.
60564
60565         [BZ #6778]
60566         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
60567
60568 2012-11-22  Andreas Schwab  <schwab@suse.de>
60569
60570         * sysdeps/i386/fpu/libm-test-ulps: Update.
60571
60572 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
60573
60574         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
60575         printf output with newline.
60576
60577 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60578
60579         [BZ #14865]
60580         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
60581         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
60582         -z nodlopen, -z initfirst and -z execstack support.
60583         * configure: Regenerated.
60584
60585         * elf/elf.h (DF_1_NODIRECT): New macro.
60586         (DF_1_IGNMULDEF): Likewise.
60587         (DF_1_NOKSYMS): Likewise.
60588         (DF_1_NOHDR): Likewise.
60589         (DF_1_EDITED): Likewise.
60590         (DF_1_NORELOC): Likewise.
60591         (DF_1_SYMINTPOSE): Likewise.
60592         (DF_1_GLOBAUDIT): Likewise.
60593         (DF_1_SINGLETON): Likewise.
60594         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
60595         DT_1_SUPPORTED_MASK bits.
60596         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
60597
60598 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
60599
60600         * sysdeps/unix/make-syscalls.sh: Document prefixes.
60601
60602 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
60603
60604         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
60605         macro.
60606
60607         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
60608         (sendmmsg): Move declarations...
60609         * socket/sys/socket.h: ... here.
60610         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
60611         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
60612         include it from...
60613         * socket/recvmmsg.c: ... this new file.
60614         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
60615         (sendmmsg): Rename to __sendmmsg, create weak alias and make
60616         definition of __sendmmsg hidden.
60617         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
60618         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
60619         Move ENOSYS stub into and include it from...
60620         * socket/sendmmsg.c: ... this new file.
60621         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
60622         (sysdep_routines): Move recvmmsg and sendmmsg...
60623         * socket/Makefile (routines): ... here.
60624         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
60625         (GLIBC_PRIVATE): Add __sendmmsg.
60626         * include/sys/socket.h (__sendmmsg): Add declarations.
60627         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
60628         sendmmsg.
60629
60630 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
60631
60632         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
60633         variable I1 with __attribute__ ((unused)).
60634         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
60635
60636 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60637
60638         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
60639         DUMMY variables with __attribute__ ((unused)).
60640
60641         * bits/byteswap.h: Include <bits/types.h>.
60642         (__bswap_64): Use __uint64_t instead of unsigned long long int.
60643
60644 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60645
60646         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
60647         string_t.  Do not manually set errno.
60648         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
60649         length with __strnlen.  Make sure to both set errno and return it on
60650         failure.
60651
60652 2012-11-19  David S. Miller  <davem@davemloft.net>
60653
60654         With help from Joseph Myers.
60655         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
60656         very large arguments properly.
60657         * math/libm-test.inc (atan_test): New tests.
60658         (atan2_test): New tests.
60659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60661
60662 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60663
60664         [BZ #14856]
60665         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
60666         Define to 3.
60667
60668         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
60669         [POSIX] (EADDRNOTAVAIL): Likewise.
60670         [POSIX] (EAFNOSUPPORT): Likewise.
60671         [POSIX] (EALREADY): Likewise.
60672         [POSIX] (ECONNABORTED): Likewise.
60673         [POSIX] (ECONNREFUSED): Likewise.
60674         [POSIX] (ECONNRESET): Likewise.
60675         [POSIX] (EDESTADDRREQ): Likewise.
60676         [POSIX] (EDQUOT): Likewise.
60677         [POSIX] (EHOSTUNREACH): Likewise.
60678         [POSIX] (EIDRM): Likewise.
60679         [POSIX] (EISCONN): Likewise.
60680         [POSIX] (ELOOP): Likewise.
60681         [POSIX] (EMULTIHOP): Likewise.
60682         [POSIX] (ENETDOWN): Likewise.
60683         [POSIX] (ENETUNREACH): Likewise.
60684         [POSIX] (ENOBUFS): Likewise.
60685         [POSIX] (ENODATA): Likewise.
60686         [POSIX] (ENOLINK): Likewise.
60687         [POSIX] (ENOMSG): Likewise.
60688         [POSIX] (ENOPROTOOPT): Likewise.
60689         [POSIX] (ENOSR): Likewise.
60690         [POSIX] (ENOSTR): Likewise.
60691         [POSIX] (ENOTCONN): Likewise.
60692         [POSIX] (ENOTSOCK): Likewise.
60693         [POSIX] (EOPNOTSUPP): Likewise.
60694         [POSIX] (EOVERFLOW): Likewise.
60695         [POSIX] (EPROTO): Likewise.
60696         [POSIX] (EPROTONOSUPPORT): Likewise.
60697         [POSIX] (EPROTOTYPE): Likewise.
60698         [POSIX] (ESTALE): Likewise.
60699         [POSIX] (ETIME): Likewise.
60700         [POSIX] (ETXTBSY): Likewise.
60701         [POSIX] (EWOULDBLOCK): Likewise.
60702         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
60703         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
60704         [POSIX] (SEEK_CUR): Likewise.
60705         [POSIX] (SEEK_END): Likewise.
60706         [POSIX || UNIX98] (mode_t): Do not require.
60707         [POSIX] (off_t): Likewise.
60708         [POSIX] (pid_t): Likewise.
60709         [POSIX] (sys/stat.h): Do not allow header.
60710         [POSIX] (unistd.h): Likewise.
60711         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
60712         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
60713         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
60714         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
60715         require.
60716         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
60717         sigevent): Specify elements.
60718         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
60719         entry.
60720         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
60721         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
60722
60723         * conform/data/cpio.h-data [POSIX]: Disable whole file.
60724         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
60725         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
60726         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
60727         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
60728         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
60729         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
60730         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
60731         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
60732         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
60733         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
60734         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
60735         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
60736         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
60737         Likewise.
60738         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
60739         Likewise.
60740         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
60741         Likewise.
60742         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
60743         Likewise.
60744         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
60745         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
60746         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
60747         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
60748         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
60749         Specify lower bound on value.
60750         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
60751         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
60752         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
60753         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
60754         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
60755         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
60756         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
60757         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
60758         value.
60759         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
60760         as optional.
60761         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
60762         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
60763         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
60764         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
60765         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
60766         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
60767         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
60768         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
60769         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
60770         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
60771         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
60772         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
60773         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
60774         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
60775         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
60776         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
60777         entry.
60778         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
60779         optional.
60780         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
60781         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
60782         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
60783         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
60784         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
60785         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
60786         Likewise.
60787         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
60788         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
60789         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
60790         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
60791         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
60792         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
60793         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
60794         as optional.
60795         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
60796         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
60797         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
60798         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
60799         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
60800         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
60801         specify as optional.
60802         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
60803         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
60804         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
60805         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
60806         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
60807         [XPG3] (NL_LANGMAX): Likewise.
60808         [POSIX || XPG3] (NL_MSGMAX): Likewise.
60809         [POSIX || XPG3] (NL_NMAX): Likewise.
60810         [POSIX || XPG3] (NL_SETMAX): Likewise.
60811         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
60812         [XPG3] (NZERO): Likewise.
60813         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
60814         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
60815         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
60816         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
60817         (REG_ERANGE): Expect.
60818         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
60819         optional-constant.
60820         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
60821         Use (void) in prototype.
60822         [POSIX] (*_t): Allow.
60823         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
60824         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
60825         (WRDE_BADVAL): Expect.
60826
60827         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
60828         expect.
60829         [XPG3 || XPG4] (O_RSYNC): Likewise.
60830         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
60831         Likewise.
60832         [XPG3 || XPG4] (pthread_sigmask): Likewise.
60833         [XPG3 || XPG4] (sigqueue): Likewise.
60834         [XPG3 || XPG4] (sigtimedwait): Likewise.
60835         [XPG3 || XPG4] (sigwaitinfo): Likewise.
60836         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
60837         [XPG3 || XPG4] (vsnprintf): Likewise.
60838         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
60839         Likewise.
60840         [XPG3 || XPG4] (blksize_t): Likewise.
60841         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
60842         Likewise.
60843         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
60844         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
60845         [XPG3 || XPG4] (struct itimerspec): Likewise.
60846         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
60847         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
60848         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
60849         [XPG3 || XPG4] (clockid_t): Likewise.
60850         [XPG3 || XPG4] (timer_t): Likewise.
60851         [XPG3 || XPG4] (clock_getres): Likewise.
60852         [XPG3 || XPG4] (clock_gettime): Likewise.
60853         [XPG3 || XPG4] (clock_settime): Likewise.
60854         [XPG3 || XPG4] (nanosleep): Likewise.
60855         [XPG3 || XPG4] (timer_create): Likewise.
60856         [XPG3 || XPG4] (timer_delete): Likewise.
60857         [XPG3 || XPG4] (timer_gettime): Likewise.
60858         [XPG3 || XPG4] (timer_getoverrun): Likewise.
60859         [XPG3 || XPG4] (timer_settime): Likewise.
60860         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
60861         [XPG3 || XPG4] (getlogin_r): Likewise.
60862         [XPG3 || XPG4] (pread): Likewise.
60863         [XPG3 || XPG4] (pthread_atfork): Likewise.
60864         [XPG3 || XPG4] (pwrite): Likewise.
60865
60866         [BZ #14835]
60867         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
60868         <bits/siginfo.h>.
60869
60870 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60871
60872         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
60873         finalizing MALLSTREAM.
60874
60875         * sysdeps/mach/hurd/syncfs.c: New file.
60876
60877 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
60878
60879         [BZ #14719]
60880         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
60881         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
60882         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
60883         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
60884         (_nss_dns_gethostbyname4_r): Likewise.
60885         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
60886         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
60887
60888 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
60889
60890         [BZ #13763]
60891         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
60892
60893 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
60894
60895         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
60896         * elf/cache.c (print_entry): Print ",AArch64" for
60897         FLAG_AARCH64_LIB64
60898
60899         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
60900         * elf/cache.c (print_entry): Print ",hard-float" for
60901         FLAG_ARM_LIBHF.
60902
60903 2012-11-18  David S. Miller  <davem@davemloft.net>
60904
60905         With help from Joseph Myers.
60906         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
60907         cutoff to 2**-13.
60908         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
60909         cutoff to 2**-25.
60910         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
60911         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
60912         small.
60913         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
60914         * math/libm-test.inc (y0_test): New tests.
60915         (y1_test): New tests.
60916         * sysdeps/i386/fpu/libm-test-ulps: Update.
60917         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60918         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60919
60920 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
60921
60922         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
60923         64-bit targets.
60924         * configure: Regenerated.
60925
60926 2012-11-17  David S. Miller  <davem@davemloft.net>
60927
60928         [BZ #14811]
60929         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
60930         nonzero exponents with absolute value below 0x1p-128 to +/-
60931         0x1p-128.
60932
60933 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
60934
60935         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
60936
60937         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
60938
60939         * posix/getconf-speclist.c: New file.
60940         * posix/posix-envs.def: Likewise.
60941         * posix/confstr.c (START_ENV_GROUP): New macro.
60942         (END_ENV_GROUP): Likewise.
60943         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60944         (KNOWN_PRESENT_ENV_STRING): Likewise.
60945         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60946         (UNKNOWN_ENVIRONMENT): Likewise.
60947         (confstr): Include posix-envs.def instead of handling
60948         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
60949         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
60950         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
60951         (END_ENV_GROUP): Likewise.
60952         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60953         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60954         (UNKNOWN_ENVIRONMENT): Likewise.
60955         (__sysconf): Include posix-envs.def instead of handling associated
60956         cases directly here.
60957         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
60958         preprocessing getconf-speclist.c rather than running getconf or
60959         generating empty file.
60960
60961 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
60962
60963         * scripts/check-local-headers.sh: Ignore 'mach' headers.
60964
60965 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
60966
60967         [BZ #14672]
60968         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
60969
60970 2012-11-16  David S. Miller  <davem@davemloft.net>
60971
60972         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
60973         smaller than LDBL_EPSILON/2.0L, just return xm1.
60974
60975 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
60976
60977         * elf/tst-array1.c (init): Set constructor priority to 1000.
60978         (fini): Set destructor priority to 1000.
60979         * elf/tst-array2dep.c: Likewise.
60980
60981 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60982
60983         [BZ #11741]
60984         * libio/fileops.c (_IO_new_file_write): Correctly return error.
60985         (_IO_new_file_xsputn): Also return EOF if none of the input
60986         data was written when overflow failed.
60987         * libio/iopadn.c (_IO_padn): Likewise.
60988         * libio/iowpadn.c (_IO_wpadn): Likewise.
60989         * stdio-common/tst-put-error.c: Add copyright notice.
60990         (do_test): Add case for printing padded string.
60991         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
60992         _IO_padn returned error.
60993         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
60994         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
60995         return EOF.
60996
60997 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60998
60999         * libio/libioP.h: Add comment note that the references to C++
61000         bits are now obsolete.
61001
61002 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61003
61004         * math/libm-test.inc (check_complex): Use asprintf.
61005
61006 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
61007
61008         * debug/pcprofiledump.c (print_version): Update copyright year.
61009         * malloc/memusagestat.c (print_version): Likewise.
61010
61011 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
61012
61013         [BZ #14831]
61014         * elf/Makefile (tests): Add tst-audit8.
61015         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
61016         ($(objpfx)tst-audit8.out): New target.
61017         (tst-audit8-ENV): New variable.
61018         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
61019         audit if l_reloc_result is NULL.
61020         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
61021         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
61022         * elf/tst-audit8.c: New file.
61023
61024 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61025
61026         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
61027         * misc/Makefile (CFLAGS-select.c): Define.
61028         * posix/Makefile (CFLAGS-pause.c): Define.
61029
61030 2012-11-13  David S. Miller  <davem@davemloft.net>
61031
61032         * crypt/Makefile: Move test targets after toplevel Rules
61033         inclusion.  Grab any necessary sysdep routines when linking.
61034         * crypt/md5.c (md5_process_block): Remove define, we will always
61035         name it __md5_process_block.
61036         (md5_finish_ctx): Update md5_process_block call.
61037         (md5_stream): Likewise.
61038         (md5_process_bytes): Likewise.
61039         (md5_process_block): Rename to __md5_process_block and move to ...
61040         * crypt/md5-block.c: ... here.
61041         * crypt/sha256.c (sha256_process_block): Move to ...
61042         * crypt/sha256-block.c: ... here.
61043         * crypt/sha512.c (sha512_process_block): Move to ...
61044         * crypt/sha512-block.c: ... here.
61045         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
61046         path.
61047         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
61048         * sysdeps/sparc/sparc64/multiarch/Makefile
61049         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
61050         crypt subdir.
61051         (localedef-aux): Add md5 crypto assembler when in locale subdir.
61052         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
61053         multiarch changes.
61054         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
61055         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
61056         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
61057         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
61058         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
61059         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
61060         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
61061         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
61062         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
61063         file.
61064         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
61065         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
61066         file.
61067         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
61068
61069 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
61070
61071         * timezone/tzselect.ksh: Update from tzcode git revision
61072         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
61073         * timezone/zdump.c: Likewise.
61074         * timezone/zic.c: Likewise.
61075         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
61076         in TZVERSION setting, not $(PKGVERSION).
61077         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
61078         REPORT_BUGS_TO settings.
61079
61080         [BZ #14838]
61081         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
61082         macro.
61083
61084 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61085
61086         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
61087         detection to immediately after _FP_ROUND().
61088         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
61089         bits are 0.
61090
61091 2012-11-11  David S. Miller  <davem@davemloft.net>
61092
61093         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
61094         inttypes.h
61095         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
61096         __close rather than their public counterparts.
61097
61098 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
61099
61100         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
61101         file.
61102         [UNIX98] (sem_timedwait): Do not expect.
61103         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
61104         [XPG4 || UNIX98] (sockatmark): Do not expect.
61105         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
61106         (clock_getcpuclockid): Do not expect.
61107         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
61108         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
61109         Do not expect.
61110         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
61111         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
61112         [UNIX98] (vwscanf): Likewise.
61113         [UNIX98] (vswscanf): Likewise.
61114
61115 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
61116
61117         * timezone/version.h: Remove file.
61118         * timezone/README: Do not refer to version.h.
61119         * timezone/Makefile ($(objpfx)zic.o): New dependency on
61120         $(objpfx)version.h.
61121         ($(objpfx)zdump.o): Likewise.
61122         ($(objpfx)version.h): New target.
61123
61124         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
61125         2012i.
61126         * timezone/README: Don't mention modification to tzselect.ksh.
61127         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
61128         work on unmodified tzselect.ksh.  Substitute version numbers in
61129         tzselect.ksh.
61130
61131         * Makefile (format-me): Remove.
61132         (INSTALL): Adjust indentation.  Use commands directly instead of
61133         using $(format-me).
61134
61135         * aclocal.m4 (ACX_PKGVERSION): New macro.
61136         (ACX_BUGURL): Likewise.
61137         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
61138         (PKGVERSION): New AC_DEFINE_UNQUOTED.
61139         (REPORT_BUGS_TO): Likewise.
61140         * configure: Regenerated.
61141         * config.h.in (PKGVERSION): New macro.
61142         (REPORT_BUGS_TO): Likewise.
61143         * config.make.in (PKGVERSION): New variable.
61144         (PKGVERSION_TEXI): Likewise.
61145         (REPORT_BUGS_TO): Likewise.
61146         (REPORT_BUGS_TEXI): Likewise.
61147         * Makefile (format-me): Use -I$(common-objpfx)manual.
61148         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
61149         ($(common-objpfx)manual/%): New target.
61150         (manual/%): Remove target.
61151         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
61152         (print_version): Use PKGVERSION.
61153         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
61154         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
61155         and REPORT_BUGS_TO.
61156         ($(objpfx)xtrace): Likewise.
61157         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
61158         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
61159         (print_version): Use PKGVERSION.
61160         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
61161         (do_version): Use PKGVERSION.
61162         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
61163         REPORT_BUGS_TO.
61164         (common-ldd-rewrite): Likewise.
61165         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
61166         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
61167         (print_version): Use PKGVERSION.
61168         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
61169         * elf/pldd.c (argp_program_bug_address): Remove variable.
61170         (more_help): New function.
61171         (argp): Use more_help.
61172         (print_version): Use PKGVERSION.
61173         * elf/sln.c (main): Use PKGVERSION.
61174         (usage): Use REPORT_BUGS_TO.
61175         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
61176         (top level): Use PKGVERSION.
61177         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
61178         (print_version): Use PKGVERSION.
61179         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
61180         (print_version): Use PKGVERSION.
61181         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
61182         (print_version): Use PKGVERSION.
61183         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
61184         (print_version): Use PKGVERSION.
61185         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
61186         (print_version): Use PKGVERSION.
61187         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
61188         (print_version): Use PKGVERSION.
61189         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
61190         and BUGURL.
61191         ($(objpfx)memusage): Likewise.
61192         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
61193         (do_version): Use PKGVERSION.
61194         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
61195         (print_version): Use PKGVERSION.
61196         * malloc/mtrace.pl ($PACKAGE): Remove variable.
61197         ($PKGVERSION): New variable.
61198         ($REPORT_BUGS_TO): Likewise.
61199         (usage): Use $REPORT_BUGS_TO.
61200         (top level): Use $PKGVERSION.
61201         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
61202         ($(objpfx)pkgvers.texi): New rule.
61203         ($(objpfx)stamp-pkgvers): Likewise.
61204         * manual/install.texi: Include pkgvers.texi.
61205         (--with-pkgversion): Document new configure option.
61206         (--with-bugurl): Likewise.
61207         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
61208         than necessarily for this particular distribution.  Use
61209         REPORT_BUGS_TO for where to report bugs.
61210         * INSTALL: Regenerated.
61211         * manual/libc.texinfo: Include pkgvers.texi.
61212         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
61213         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
61214         (print_version): Use PKGVERSION.
61215         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
61216         (print_version): Use PKGVERSION.
61217         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
61218         (print_version): Use PKGVERSION.
61219         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
61220         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
61221         macro.
61222         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
61223         (print_version): Use PKGVERSION.
61224         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
61225         (print_version): Use PKGVERSION.
61226         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
61227         and PKGVERSION.
61228
61229         * timezone/checktab.awk: Update from tzcode 2012i.
61230         * timezone/ialloc.c: Likewise.
61231         * timezone/private.h: Likewise.
61232         * timezone/scheck.c: Likewise.
61233         * timezone/tzfile.h: Likewise.
61234         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
61235         (TZVERSION): Hardcode tzcode version number.
61236         * timezone/zdump.c: Update from tzcode 2012i.
61237         * timezone/zic.c: Likewise.
61238         * timezone/version.h: New file.
61239         * timezone/README: Describe version.h.  Update upstream location.
61240
61241         [BZ #14824]
61242         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
61243         (mktemp): Enable declaration.
61244         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
61245         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
61246         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
61247         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
61248         Likewise.
61249         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
61250         Likewise.
61251         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
61252         Likewise.
61253         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
61254         Likewise.
61255         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
61256         Likewise.
61257         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
61258         Likewise.
61259
61260         [BZ #14821]
61261         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
61262         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
61263         for copies of such integer values.
61264         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
61265         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
61266
61267 2012-11-09  Andreas Jaeger  <aj@suse.de>
61268
61269         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
61270         definitions and declarations that are provided by
61271         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
61272
61273 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61274
61275         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
61276         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
61277         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
61278         definition.
61279
61280 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61281
61282         * elf/elf.h: Update comment before AArch64 relocations.
61283
61284 2012-11-07  David S. Miller  <davem@davemloft.net>
61285
61286         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
61287         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
61288         (__start_context): Declare.
61289         (__makecontext_ret): Delete.
61290         (__makecontext): Hook up __start_context instead of
61291         __makecontext_ret.
61292         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
61293         (sysdep_routines): Add __start_context when in stdlib.
61294
61295 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61296
61297         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
61298         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61299         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
61300         hardcoded "nm".
61301         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
61302         (READELF): New variable.  Use it instead of hardcoded "readelf".
61303
61304 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
61305
61306         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
61307         * sysdeps/x86/Makefile: Here.
61308         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
61309         * sysdeps/x86/tst-xmmymm.sh: This.
61310
61311 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61312
61313         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
61314         expectations.
61315         [UNIX98] (pthread_barrier_t): Do not expect.
61316         [UNIX98] (pthread_barrierattr_t): Likewise.
61317         [UNIX98] (pthread_spinlock_t): Likewise.
61318         [UNIX98] (pthread_barrier_destroy): Likewise.
61319         [UNIX98] (pthread_barrier_init): Likewise.
61320         [UNIX98] (pthread_barrier_wait): Likewise.
61321         [UNIX98] (pthread_barrierattr_destroy): Likewise.
61322         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
61323         [UNIX98] (pthread_barrierattr_init): Likewise.
61324         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
61325         [UNIX98] (pthread_getcpuclockid): Likewise.
61326         [UNIX98] (pthread_mutex_timedlock): Likewise.
61327         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
61328         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
61329         [UNIX98] (pthread_sigmask): Likewise.
61330         [UNIX98] (pthread_spin_destroy): Likewise.
61331         [UNIX98] (pthread_spin_init): Likewise.
61332         [UNIX98] (pthread_spin_lock): Likewise.
61333         [UNIX98] (pthread_spin_trylock): Likewise.
61334         [UNIX98] (pthread_spin_unlock): Likewise.
61335         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
61336         Do not expect.
61337         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
61338         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
61339         [XPG3 || XPG4] (pthread_cond_t): Likewise.
61340         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
61341         [XPG3 || XPG4] (pthread_key_t): Likewise.
61342         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
61343         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
61344         [XPG3 || XPG4] (pthread_once_t): Likewise.
61345         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
61346         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
61347         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
61348         [XPG3 || XPG4] (pthread_t): Likewise.
61349
61350         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
61351         not expect.
61352         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
61353
61354         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
61355         Change function return type to int.
61356
61357         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
61358         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
61359         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
61360         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
61361         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
61362         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
61363         [!POSIX] (posix_madvise): Likewise.
61364         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
61365         && !UNIX98].
61366         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
61367         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
61368         (mode_t): Likewise.
61369         (posix_mem_offset): Likewise.
61370         (posix_typed_mem_get_info): Likewise.
61371         (posix_typed_mem_open): Likewise.
61372
61373         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
61374         Change condition to [XOPEN2K8].
61375
61376         * conform/conformtest.pl: Preprocess allow-header data with -x c
61377         instead of from stdin.
61378         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
61379         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
61380         [C99-based standards] (cerfc): Likewise.
61381         [C99-based standards] (cexp2): Likewise.
61382         [C99-based standards] (cexpm1): Likewise.
61383         [C99-based standards] (clog10): Likewise.
61384         [C99-based standards] (clog1p): Likewise.
61385         [C99-based standards] (clog2): Likewise.
61386         [C99-based standards] (clgamma): Likewise.
61387         [C99-based standards] (ctgamma): Likewise.
61388         [C99-based standards] (cerff): Likewise.
61389         [C99-based standards] (cerfcf): Likewise.
61390         [C99-based standards] (cexp2f): Likewise.
61391         [C99-based standards] (cexpm1f): Likewise.
61392         [C99-based standards] (clog10f): Likewise.
61393         [C99-based standards] (clog1pf): Likewise.
61394         [C99-based standards] (clog2f): Likewise.
61395         [C99-based standards] (clgammaf): Likewise.
61396         [C99-based standards] (ctgammaf): Likewise.
61397         [C99-based standards] (cerfl): Likewise.
61398         [C99-based standards] (cerfcl): Likewise.
61399         [C99-based standards] (cexp2l): Likewise.
61400         [C99-based standards] (cexpm1l): Likewise.
61401         [C99-based standards] (clog10l): Likewise.
61402         [C99-based standards] (clog1pl): Likewise.
61403         [C99-based standards] (clog2l): Likewise.
61404         [C99-based standards] (clgammal): Likewise.
61405         [C99-based standards] (ctgammal): Likewise.
61406         * conform/data/inttypes.h-data [C99-based standards]: Include
61407         stdint.h-data.  Remove all expectations for stdint.h contents.
61408         [C99-based standards] (PRI*): Do not allow.
61409         [C99-based standards] (SCN*): Likewise.
61410         [C99-based standards] (*_t): Likewise.
61411         [C99-based-standards] (PRId8): Expect macro.
61412         [C99-based-standards] (PRIi8): Likewise.
61413         [C99-based-standards] (PRIo8): Likewise.
61414         [C99-based-standards] (PRIu8): Likewise.
61415         [C99-based-standards] (PRIx8): Likewise.
61416         [C99-based-standards] (PRIX8): Likewise.
61417         [C99-based-standards] (SCNd8): Likewise.
61418         [C99-based-standards] (SCNi8): Likewise.
61419         [C99-based-standards] (SCNo8): Likewise.
61420         [C99-based-standards] (SCNu8): Likewise.
61421         [C99-based-standards] (SCNx8): Likewise.
61422         [C99-based-standards] (PRIdLEAST8): Likewise.
61423         [C99-based-standards] (PRIiLEAST8): Likewise.
61424         [C99-based-standards] (PRIoLEAST8): Likewise.
61425         [C99-based-standards] (PRIuLEAST8): Likewise.
61426         [C99-based-standards] (PRIxLEAST8): Likewise.
61427         [C99-based-standards] (PRIXLEAST8): Likewise.
61428         [C99-based-standards] (SCNdLEAST8): Likewise.
61429         [C99-based-standards] (SCNiLEAST8): Likewise.
61430         [C99-based-standards] (SCNoLEAST8): Likewise.
61431         [C99-based-standards] (SCNuLEAST8): Likewise.
61432         [C99-based-standards] (SCNxLEAST8): Likewise.
61433         [C99-based-standards] (PRIdFAST8): Likewise.
61434         [C99-based-standards] (PRIiFAST8): Likewise.
61435         [C99-based-standards] (PRIoFAST8): Likewise.
61436         [C99-based-standards] (PRIuFAST8): Likewise.
61437         [C99-based-standards] (PRIxFAST8): Likewise.
61438         [C99-based-standards] (PRIXFAST8): Likewise.
61439         [C99-based-standards] (SCNdFAST8): Likewise.
61440         [C99-based-standards] (SCNiFAST8): Likewise.
61441         [C99-based-standards] (SCNoFAST8): Likewise.
61442         [C99-based-standards] (SCNuFAST8): Likewise.
61443         [C99-based-standards] (SCNxFAST8): Likewise.
61444         [C99-based-standards] (PRId16): Likewise.
61445         [C99-based-standards] (PRIi16): Likewise.
61446         [C99-based-standards] (PRIo16): Likewise.
61447         [C99-based-standards] (PRIu16): Likewise.
61448         [C99-based-standards] (PRIx16): Likewise.
61449         [C99-based-standards] (PRIX16): Likewise.
61450         [C99-based-standards] (SCNd16): Likewise.
61451         [C99-based-standards] (SCNi16): Likewise.
61452         [C99-based-standards] (SCNo16): Likewise.
61453         [C99-based-standards] (SCNu16): Likewise.
61454         [C99-based-standards] (SCNx16): Likewise.
61455         [C99-based-standards] (PRIdLEAST16): Likewise.
61456         [C99-based-standards] (PRIiLEAST16): Likewise.
61457         [C99-based-standards] (PRIoLEAST16): Likewise.
61458         [C99-based-standards] (PRIuLEAST16): Likewise.
61459         [C99-based-standards] (PRIxLEAST16): Likewise.
61460         [C99-based-standards] (PRIXLEAST16): Likewise.
61461         [C99-based-standards] (SCNdLEAST16): Likewise.
61462         [C99-based-standards] (SCNiLEAST16): Likewise.
61463         [C99-based-standards] (SCNoLEAST16): Likewise.
61464         [C99-based-standards] (SCNuLEAST16): Likewise.
61465         [C99-based-standards] (SCNxLEAST16): Likewise.
61466         [C99-based-standards] (PRIdFAST16): Likewise.
61467         [C99-based-standards] (PRIiFAST16): Likewise.
61468         [C99-based-standards] (PRIoFAST16): Likewise.
61469         [C99-based-standards] (PRIuFAST16): Likewise.
61470         [C99-based-standards] (PRIxFAST16): Likewise.
61471         [C99-based-standards] (PRIXFAST16): Likewise.
61472         [C99-based-standards] (SCNdFAST16): Likewise.
61473         [C99-based-standards] (SCNiFAST16): Likewise.
61474         [C99-based-standards] (SCNoFAST16): Likewise.
61475         [C99-based-standards] (SCNuFAST16): Likewise.
61476         [C99-based-standards] (SCNxFAST16): Likewise.
61477         [C99-based-standards] (PRId32): Likewise.
61478         [C99-based-standards] (PRIi32): Likewise.
61479         [C99-based-standards] (PRIo32): Likewise.
61480         [C99-based-standards] (PRIu32): Likewise.
61481         [C99-based-standards] (PRIx32): Likewise.
61482         [C99-based-standards] (PRIX32): Likewise.
61483         [C99-based-standards] (SCNd32): Likewise.
61484         [C99-based-standards] (SCNi32): Likewise.
61485         [C99-based-standards] (SCNo32): Likewise.
61486         [C99-based-standards] (SCNu32): Likewise.
61487         [C99-based-standards] (SCNx32): Likewise.
61488         [C99-based-standards] (PRIdLEAST32): Likewise.
61489         [C99-based-standards] (PRIiLEAST32): Likewise.
61490         [C99-based-standards] (PRIoLEAST32): Likewise.
61491         [C99-based-standards] (PRIuLEAST32): Likewise.
61492         [C99-based-standards] (PRIxLEAST32): Likewise.
61493         [C99-based-standards] (PRIXLEAST32): Likewise.
61494         [C99-based-standards] (SCNdLEAST32): Likewise.
61495         [C99-based-standards] (SCNiLEAST32): Likewise.
61496         [C99-based-standards] (SCNoLEAST32): Likewise.
61497         [C99-based-standards] (SCNuLEAST32): Likewise.
61498         [C99-based-standards] (SCNxLEAST32): Likewise.
61499         [C99-based-standards] (PRIdFAST32): Likewise.
61500         [C99-based-standards] (PRIiFAST32): Likewise.
61501         [C99-based-standards] (PRIoFAST32): Likewise.
61502         [C99-based-standards] (PRIuFAST32): Likewise.
61503         [C99-based-standards] (PRIxFAST32): Likewise.
61504         [C99-based-standards] (PRIXFAST32): Likewise.
61505         [C99-based-standards] (SCNdFAST32): Likewise.
61506         [C99-based-standards] (SCNiFAST32): Likewise.
61507         [C99-based-standards] (SCNoFAST32): Likewise.
61508         [C99-based-standards] (SCNuFAST32): Likewise.
61509         [C99-based-standards] (SCNxFAST32): Likewise.
61510         [C99-based-standards] (PRId64): Likewise.
61511         [C99-based-standards] (PRIi64): Likewise.
61512         [C99-based-standards] (PRIo64): Likewise.
61513         [C99-based-standards] (PRIu64): Likewise.
61514         [C99-based-standards] (PRIx64): Likewise.
61515         [C99-based-standards] (PRIX64): Likewise.
61516         [C99-based-standards] (SCNd64): Likewise.
61517         [C99-based-standards] (SCNi64): Likewise.
61518         [C99-based-standards] (SCNo64): Likewise.
61519         [C99-based-standards] (SCNu64): Likewise.
61520         [C99-based-standards] (SCNx64): Likewise.
61521         [C99-based-standards] (PRIdLEAST64): Likewise.
61522         [C99-based-standards] (PRIiLEAST64): Likewise.
61523         [C99-based-standards] (PRIoLEAST64): Likewise.
61524         [C99-based-standards] (PRIuLEAST64): Likewise.
61525         [C99-based-standards] (PRIxLEAST64): Likewise.
61526         [C99-based-standards] (PRIXLEAST64): Likewise.
61527         [C99-based-standards] (SCNdLEAST64): Likewise.
61528         [C99-based-standards] (SCNiLEAST64): Likewise.
61529         [C99-based-standards] (SCNoLEAST64): Likewise.
61530         [C99-based-standards] (SCNuLEAST64): Likewise.
61531         [C99-based-standards] (SCNxLEAST64): Likewise.
61532         [C99-based-standards] (PRIdFAST64): Likewise.
61533         [C99-based-standards] (PRIiFAST64): Likewise.
61534         [C99-based-standards] (PRIoFAST64): Likewise.
61535         [C99-based-standards] (PRIuFAST64): Likewise.
61536         [C99-based-standards] (PRIxFAST64): Likewise.
61537         [C99-based-standards] (PRIXFAST64): Likewise.
61538         [C99-based-standards] (SCNdFAST64): Likewise.
61539         [C99-based-standards] (SCNiFAST64): Likewise.
61540         [C99-based-standards] (SCNoFAST64): Likewise.
61541         [C99-based-standards] (SCNuFAST64): Likewise.
61542         [C99-based-standards] (SCNxFAST64): Likewise.
61543         [C99-based-standards] (PRIdMAX): Likewise.
61544         [C99-based-standards] (PRIiMAX): Likewise.
61545         [C99-based-standards] (PRIoMAX): Likewise.
61546         [C99-based-standards] (PRIuMAX): Likewise.
61547         [C99-based-standards] (PRIxMAX): Likewise.
61548         [C99-based-standards] (PRIXMAX): Likewise.
61549         [C99-based-standards] (SCNdMAX): Likewise.
61550         [C99-based-standards] (SCNiMAX): Likewise.
61551         [C99-based-standards] (SCNoMAX): Likewise.
61552         [C99-based-standards] (SCNuMAX): Likewise.
61553         [C99-based-standards] (SCNxMAX): Likewise.
61554         [C99-based-standards] (PRIdPTR): Likewise.
61555         [C99-based-standards] (PRIiPTR): Likewise.
61556         [C99-based-standards] (PRIoPTR): Likewise.
61557         [C99-based-standards] (PRIuPTR): Likewise.
61558         [C99-based-standards] (PRIxPTR): Likewise.
61559         [C99-based-standards] (PRIXPTR): Likewise.
61560         [C99-based-standards] (SCNdPTR): Likewise.
61561         [C99-based-standards] (SCNiPTR): Likewise.
61562         [C99-based-standards] (SCNoPTR): Likewise.
61563         [C99-based-standards] (SCNuPTR): Likewise.
61564         [C99-based-standards] (SCNxPTR): Likewise.
61565         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
61566         allow.
61567         * conform/data/stdint.h-data: Update comments to clarify
61568         requirements.
61569         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
61570         type.
61571         [C99-based standards] (INT8_MAX): Likewise.
61572         [C99-based standards] (INT16_MIN): Likewise.
61573         [C99-based standards] (INT16_MAX): Likewise.
61574         [C99-based standards] (INT32_MIN): Likewise.
61575         [C99-based standards] (INT32_MAX): Likewise.
61576         [C99-based standards] (INT64_MIN): Likewise.
61577         [C99-based standards] (INT64_MAX): Likewise.
61578         [C99-based standards] (UINT8_MAX): Likewise.
61579         [C99-based standards] (UINT16_MAX): Likewise.
61580         [C99-based standards] (UINT32_MAX): Likewise.
61581         [C99-based standards] (UINT64_MAX): Likewise.
61582         [C99-based standards] (INT_LEAST8_MIN): Likewise.
61583         [C99-based standards] (INT_LEAST8_MAX): Likewise.
61584         [C99-based standards] (INT_LEAST16_MIN): Likewise.
61585         [C99-based standards] (INT_LEAST16_MAX): Likewise.
61586         [C99-based standards] (INT_LEAST32_MIN): Likewise.
61587         [C99-based standards] (INT_LEAST32_MAX): Likewise.
61588         [C99-based standards] (INT_LEAST64_MIN): Likewise.
61589         [C99-based standards] (INT_LEAST64_MAX): Likewise.
61590         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
61591         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
61592         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
61593         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
61594         [C99-based standards] (INT_FAST8_MIN): Likewise.
61595         [C99-based standards] (INT_FAST8_MAX): Likewise.
61596         [C99-based standards] (INT_FAST16_MIN): Likewise.
61597         [C99-based standards] (INT_FAST16_MAX): Likewise.
61598         [C99-based standards] (INT_FAST32_MIN): Likewise.
61599         [C99-based standards] (INT_FAST32_MAX): Likewise.
61600         [C99-based standards] (INT_FAST64_MIN): Likewise.
61601         [C99-based standards] (INT_FAST64_MAX): Likewise.
61602         [C99-based standards] (UINT_FAST8_MAX): Likewise.
61603         [C99-based standards] (UINT_FAST16_MAX): Likewise.
61604         [C99-based standards] (UINT_FAST32_MAX): Likewise.
61605         [C99-based standards] (UINT_FAST64_MAX): Likewise.
61606         [C99-based standards] (INTPTR_MIN): Likewise.
61607         [C99-based standards] (INTPTR_MAX): Likewise.
61608         [C99-based standards] (UINTPTR_MAX): Likewise.
61609         [C99-based standards] (INTMAX_MIN): Likewise.
61610         [C99-based standards] (INTMAX_MAX): Likewise.
61611         [C99-based standards] (UINTMAX_MAX): Likewise.
61612         [C99-based standards] (PTRDIFF_MIN): Likewise.
61613         [C99-based standards] (PTRDIFF_MAX): Likewise.
61614         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
61615         [C99-based standards] (SIZE_MAX): Likewise.
61616         [C99-based standards] (WCHAR_MAX): Likewise.
61617         [C99-based standards] (WINT_MAX): Likewise.
61618         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
61619         constraint on value.
61620         [C99-based standards] (WCHAR_MIN): Likewise.
61621         [C99-based standards] (WINT_MIN): Likewise.
61622         [C99-based standards] (*_t): Allow.
61623         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
61624         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
61625         Include math.h-data and complex.h-data.  Remove all expectations
61626         of math.h and complex.h contents.
61627         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
61628         at end of line.
61629         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
61630         (struct tm): Expect tag.
61631         [C99-based-standards] (wcstof): Expect function.
61632         [C99-based-standards] (wcstold): Likewise.
61633         [C99-based-standards] (wcstoll): Likewise.
61634         [C99-based-standards] (wcstoull): Likewise.
61635         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
61636         macro-int-constant.  Specify type.
61637         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
61638         constraint on value.
61639         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61640         Specify type.
61641         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
61642         Specify value.
61643         [ISO C standards]: Do not allow headers.
61644         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
61645         wcs[abcdefghijklmnopqrstuvwxyz]*.
61646         [ISO C standards] (*_t): Do not allow.
61647         * conform/data/wctype.h-data [C99-based standards] (iswblank):
61648         Expect function.
61649         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
61650         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61651         Specify type.
61652         [ISO C standards]: Do not allow headers.
61653         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
61654         is[abcdefghijklmnopqrstuvwxyz]*.
61655         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
61656         to[abcdefghijklmnopqrstuvwxyz]*.
61657         [ISO C standards] (*_t): Do not allow.
61658         * conform/data/stdalign.h-data: New file.
61659         * conform/data/stdbool.h-data: Likewise.
61660         * conform/data/stdnoreturn.h-data: Likewise.
61661
61662 2012-11-07  Roland McGrath  <roland@hack.frob.com>
61663
61664         [BZ #14815]
61665         * manual/filesys.texi (Directory Entries): Typo fix.
61666         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
61667
61668 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61669
61670         * elf/elf.h (EM_AARCH64): New macro.
61671         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
61672         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
61673         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
61674         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
61675         (R_AARCH64_TLSDESC): Likewise.
61676         (NT_ARM_TLS): Likewise.
61677         (NT_ARM_HW_BREAK): Likewise.
61678         (NT_ARM_HW_WATCH): Likewise.
61679
61680 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61681
61682         [BZ #14811]
61683         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
61684         (__ieee754_powl): Saturate nonzero exponents with absolute value
61685         below 0x1p-79 to +/- 0x1p-79.
61686         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
61687         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
61688         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
61689         nonzero exponents with absolute value below 0x1p-32 to +/-
61690         0x1p-32.
61691         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
61692         (__ieee754_powl): Saturate nonzero exponents with absolute value
61693         below 0x1p-79 to +/- 0x1p-79.
61694         * math/libm-test.inc (pow_test): Add more tests.
61695
61696 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61697
61698         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
61699         _dl_s390_cap_flags with kernel. Increase string length.
61700         (_dl_s390_platforms): Add z196 and zEC12.
61701
61702 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61703
61704         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
61705         Change XOPEN21K to XOPEN2K.
61706
61707 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
61708
61709         * string/memmove.c: Use memcpy when possible.
61710
61711 2012-11-06  Andreas Jaeger  <aj@suse.de>
61712
61713         * po/eo.po: Update from translation team.
61714
61715 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
61716
61717         [BZ #14793]
61718         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
61719         exponent and small x and y exponents, scale x or y up.  Increase
61720         by 2 the exponent used in scaling up.
61721         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61722         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61723         * math/libm-test.inc (fma_test): Add more tests.
61724         (fma_test_towardzero): Likewise.
61725         (fma_test_downward): Likewise.
61726         (fma_test_upward): Likewise.
61727
61728 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
61729
61730         [BZ #14805]
61731         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
61732         fenv_t *.
61733
61734         [BZ #14801]
61735         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
61736         namespace for names of struct fields.
61737         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
61738         fenv_t fields.
61739         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
61740         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
61741
61742 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61743
61744         [BZ #3665]
61745         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
61746
61747 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61748
61749         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
61750         PTR_DEMANGLE.
61751
61752         [BZ #5246]
61753         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
61754         PTR_DEMANGLE.
61755
61756 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
61757
61758         [BZ #14797]
61759         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
61760         definitely overflow as x * y not x * y + z.
61761         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61762         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61763         * math/libm-test.inc (fma_test): Add more tests.
61764         (fma_test_towardzero): Likewise.
61765         (fma_test_downward): Likewise.
61766         (fma_test_upward): Likewise.
61767
61768 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61769
61770         [BZ #157]
61771
61772         * include/stub-tag.h: Remove file.
61773         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
61774         '#include' of it.
61775         * manual/maint.texi (Porting): Don't reference it.
61776         * Makerules ($(objpfx)stubs): Likewise.
61777         * dirent/closedir.c: Don't include <stub-tag.h>.
61778         * dirent/dirfd.c: Likewise.
61779         * dirent/fdopendir.c: Likewise.
61780         * dirent/getdents.c: Likewise.
61781         * dirent/getdents64.c: Likewise.
61782         * dirent/opendir.c: Likewise.
61783         * dirent/readdir.c: Likewise.
61784         * dirent/readdir64.c: Likewise.
61785         * dirent/readdir64_r.c: Likewise.
61786         * dirent/readdir_r.c: Likewise.
61787         * dirent/rewinddir.c: Likewise.
61788         * dirent/seekdir.c: Likewise.
61789         * dirent/telldir.c: Likewise.
61790         * gmon/profil.c: Likewise.
61791         * grp/setgroups.c: Likewise.
61792         * inet/if_index.c: Likewise.
61793         * io/access.c: Likewise.
61794         * io/chdir.c: Likewise.
61795         * io/chmod.c: Likewise.
61796         * io/chown.c: Likewise.
61797         * io/close.c: Likewise.
61798         * io/dup.c: Likewise.
61799         * io/dup2.c: Likewise.
61800         * io/dup3.c: Likewise.
61801         * io/euidaccess.c: Likewise.
61802         * io/faccessat.c: Likewise.
61803         * io/fchdir.c: Likewise.
61804         * io/fchmod.c: Likewise.
61805         * io/fchmodat.c: Likewise.
61806         * io/fchown.c: Likewise.
61807         * io/fchownat.c: Likewise.
61808         * io/fcntl.c: Likewise.
61809         * io/flock.c: Likewise.
61810         * io/fstatfs.c: Likewise.
61811         * io/fstatfs64.c: Likewise.
61812         * io/fstatvfs.c: Likewise.
61813         * io/fstatvfs64.c: Likewise.
61814         * io/futimens.c: Likewise.
61815         * io/fxstat.c: Likewise.
61816         * io/fxstat64.c: Likewise.
61817         * io/fxstatat.c: Likewise.
61818         * io/fxstatat64.c: Likewise.
61819         * io/getcwd.c: Likewise.
61820         * io/isatty.c: Likewise.
61821         * io/lchmod.c: Likewise.
61822         * io/lchown.c: Likewise.
61823         * io/link.c: Likewise.
61824         * io/linkat.c: Likewise.
61825         * io/lseek.c: Likewise.
61826         * io/lseek64.c: Likewise.
61827         * io/lxstat64.c: Likewise.
61828         * io/mkdir.c: Likewise.
61829         * io/mkdirat.c: Likewise.
61830         * io/mkfifo.c: Likewise.
61831         * io/mkfifoat.c: Likewise.
61832         * io/open.c: Likewise.
61833         * io/open64.c: Likewise.
61834         * io/openat.c: Likewise.
61835         * io/openat64.c: Likewise.
61836         * io/pipe.c: Likewise.
61837         * io/pipe2.c: Likewise.
61838         * io/poll.c: Likewise.
61839         * io/posix_fadvise.c: Likewise.
61840         * io/posix_fadvise64.c: Likewise.
61841         * io/posix_fallocate.c: Likewise.
61842         * io/posix_fallocate64.c: Likewise.
61843         * io/read.c: Likewise.
61844         * io/readlink.c: Likewise.
61845         * io/readlinkat.c: Likewise.
61846         * io/rmdir.c: Likewise.
61847         * io/sendfile.c: Likewise.
61848         * io/sendfile64.c: Likewise.
61849         * io/statfs.c: Likewise.
61850         * io/statfs64.c: Likewise.
61851         * io/statvfs.c: Likewise.
61852         * io/statvfs64.c: Likewise.
61853         * io/symlink.c: Likewise.
61854         * io/symlinkat.c: Likewise.
61855         * io/ttyname.c: Likewise.
61856         * io/ttyname_r.c: Likewise.
61857         * io/umask.c: Likewise.
61858         * io/unlink.c: Likewise.
61859         * io/unlinkat.c: Likewise.
61860         * io/utime.c: Likewise.
61861         * io/utimensat.c: Likewise.
61862         * io/write.c: Likewise.
61863         * io/xmknod.c: Likewise.
61864         * io/xmknodat.c: Likewise.
61865         * io/xstat.c: Likewise.
61866         * io/xstat64.c: Likewise.
61867         * login/getpt.c: Likewise.
61868         * login/grantpt.c: Likewise.
61869         * login/unlockpt.c: Likewise.
61870         * math/e_acoshl.c: Likewise.
61871         * math/e_acosl.c: Likewise.
61872         * math/e_asinl.c: Likewise.
61873         * math/e_atan2l.c: Likewise.
61874         * math/e_atanhl.c: Likewise.
61875         * math/e_coshl.c: Likewise.
61876         * math/e_expl.c: Likewise.
61877         * math/e_fmodl.c: Likewise.
61878         * math/e_gammal_r.c: Likewise.
61879         * math/e_hypotl.c: Likewise.
61880         * math/e_j0l.c: Likewise.
61881         * math/e_j1l.c: Likewise.
61882         * math/e_jnl.c: Likewise.
61883         * math/e_lgammal_r.c: Likewise.
61884         * math/e_log10l.c: Likewise.
61885         * math/e_log2l.c: Likewise.
61886         * math/e_logl.c: Likewise.
61887         * math/e_powl.c: Likewise.
61888         * math/e_rem_pio2l.c: Likewise.
61889         * math/e_sinhl.c: Likewise.
61890         * math/e_sqrtl.c: Likewise.
61891         * math/fclrexcpt.c: Likewise.
61892         * math/fedisblxcpt.c: Likewise.
61893         * math/feenablxcpt.c: Likewise.
61894         * math/fegetenv.c: Likewise.
61895         * math/fegetexcept.c: Likewise.
61896         * math/fegetround.c: Likewise.
61897         * math/feholdexcpt.c: Likewise.
61898         * math/fesetenv.c: Likewise.
61899         * math/fesetround.c: Likewise.
61900         * math/feupdateenv.c: Likewise.
61901         * math/fgetexcptflg.c: Likewise.
61902         * math/fraiseexcpt.c: Likewise.
61903         * math/fsetexcptflg.c: Likewise.
61904         * math/ftestexcept.c: Likewise.
61905         * math/k_cosl.c: Likewise.
61906         * math/k_rem_pio2l.c: Likewise.
61907         * math/k_sinl.c: Likewise.
61908         * math/k_tanl.c: Likewise.
61909         * math/s_asinhl.c: Likewise.
61910         * math/s_atanl.c: Likewise.
61911         * math/s_cbrtl.c: Likewise.
61912         * math/s_erfl.c: Likewise.
61913         * math/s_expm1l.c: Likewise.
61914         * math/s_log1pl.c: Likewise.
61915         * math/s_tanhl.c: Likewise.
61916         * misc/acct.c: Likewise.
61917         * misc/brk.c: Likewise.
61918         * misc/chflags.c: Likewise.
61919         * misc/chroot.c: Likewise.
61920         * misc/fchflags.c: Likewise.
61921         * misc/fgetxattr.c: Likewise.
61922         * misc/flistxattr.c: Likewise.
61923         * misc/fremovexattr.c: Likewise.
61924         * misc/fsetxattr.c: Likewise.
61925         * misc/fsync.c: Likewise.
61926         * misc/ftruncate.c: Likewise.
61927         * misc/futimes.c: Likewise.
61928         * misc/futimesat.c: Likewise.
61929         * misc/getdomain.c: Likewise.
61930         * misc/getdtsz.c: Likewise.
61931         * misc/gethostid.c: Likewise.
61932         * misc/gethostname.c: Likewise.
61933         * misc/getloadavg.c: Likewise.
61934         * misc/getpagesize.c: Likewise.
61935         * misc/getsysstats.c: Likewise.
61936         * misc/getxattr.c: Likewise.
61937         * misc/gtty.c: Likewise.
61938         * misc/ioctl.c: Likewise.
61939         * misc/lgetxattr.c: Likewise.
61940         * misc/listxattr.c: Likewise.
61941         * misc/llistxattr.c: Likewise.
61942         * misc/lremovexattr.c: Likewise.
61943         * misc/lsetxattr.c: Likewise.
61944         * misc/lutimes.c: Likewise.
61945         * misc/madvise.c: Likewise.
61946         * misc/mincore.c: Likewise.
61947         * misc/mlock.c: Likewise.
61948         * misc/mlockall.c: Likewise.
61949         * misc/mmap.c: Likewise.
61950         * misc/mprotect.c: Likewise.
61951         * misc/msync.c: Likewise.
61952         * misc/munlock.c: Likewise.
61953         * misc/munlockall.c: Likewise.
61954         * misc/munmap.c: Likewise.
61955         * misc/preadv.c: Likewise.
61956         * misc/preadv64.c: Likewise.
61957         * misc/ptrace.c: Likewise.
61958         * misc/pwritev.c: Likewise.
61959         * misc/pwritev64.c: Likewise.
61960         * misc/readv.c: Likewise.
61961         * misc/reboot.c: Likewise.
61962         * misc/remap_file_pages.c: Likewise.
61963         * misc/removexattr.c: Likewise.
61964         * misc/revoke.c: Likewise.
61965         * misc/select.c: Likewise.
61966         * misc/setdomain.c: Likewise.
61967         * misc/setegid.c: Likewise.
61968         * misc/seteuid.c: Likewise.
61969         * misc/sethostid.c: Likewise.
61970         * misc/sethostname.c: Likewise.
61971         * misc/setregid.c: Likewise.
61972         * misc/setreuid.c: Likewise.
61973         * misc/setxattr.c: Likewise.
61974         * misc/sstk.c: Likewise.
61975         * misc/stty.c: Likewise.
61976         * misc/swapoff.c: Likewise.
61977         * misc/swapon.c: Likewise.
61978         * misc/sync.c: Likewise.
61979         * misc/syncfs.c: Likewise.
61980         * misc/syscall.c: Likewise.
61981         * misc/truncate.c: Likewise.
61982         * misc/ualarm.c: Likewise.
61983         * misc/usleep.c: Likewise.
61984         * misc/ustat.c: Likewise.
61985         * misc/utimes.c: Likewise.
61986         * misc/vhangup.c: Likewise.
61987         * misc/writev.c: Likewise.
61988         * posix/_exit.c: Likewise.
61989         * posix/alarm.c: Likewise.
61990         * posix/execve.c: Likewise.
61991         * posix/fexecve.c: Likewise.
61992         * posix/fork.c: Likewise.
61993         * posix/fpathconf.c: Likewise.
61994         * posix/getaddrinfo.c: Likewise.
61995         * posix/getegid.c: Likewise.
61996         * posix/geteuid.c: Likewise.
61997         * posix/getgid.c: Likewise.
61998         * posix/getgroups.c: Likewise.
61999         * posix/getlogin.c: Likewise.
62000         * posix/getlogin_r.c: Likewise.
62001         * posix/getpgid.c: Likewise.
62002         * posix/getpid.c: Likewise.
62003         * posix/getppid.c: Likewise.
62004         * posix/getresgid.c: Likewise.
62005         * posix/getresuid.c: Likewise.
62006         * posix/getsid.c: Likewise.
62007         * posix/getuid.c: Likewise.
62008         * posix/glob64.c: Likewise.
62009         * posix/nanosleep.c: Likewise.
62010         * posix/pathconf.c: Likewise.
62011         * posix/pause.c: Likewise.
62012         * posix/posix_madvise.c: Likewise.
62013         * posix/pread.c: Likewise.
62014         * posix/pread64.c: Likewise.
62015         * posix/pwrite.c: Likewise.
62016         * posix/pwrite64.c: Likewise.
62017         * posix/sched_getaffinity.c: Likewise.
62018         * posix/sched_getp.c: Likewise.
62019         * posix/sched_gets.c: Likewise.
62020         * posix/sched_primax.c: Likewise.
62021         * posix/sched_primin.c: Likewise.
62022         * posix/sched_rr_gi.c: Likewise.
62023         * posix/sched_setaffinity.c: Likewise.
62024         * posix/sched_setp.c: Likewise.
62025         * posix/sched_sets.c: Likewise.
62026         * posix/sched_yield.c: Likewise.
62027         * posix/setgid.c: Likewise.
62028         * posix/setlogin.c: Likewise.
62029         * posix/setpgid.c: Likewise.
62030         * posix/setresgid.c: Likewise.
62031         * posix/setresuid.c: Likewise.
62032         * posix/setsid.c: Likewise.
62033         * posix/setuid.c: Likewise.
62034         * posix/sleep.c: Likewise.
62035         * posix/spawni.c: Likewise.
62036         * posix/sysconf.c: Likewise.
62037         * posix/times.c: Likewise.
62038         * posix/wait.c: Likewise.
62039         * posix/wait3.c: Likewise.
62040         * posix/wait4.c: Likewise.
62041         * posix/waitpid.c: Likewise.
62042         * resolv/gai_sigqueue.c: Likewise.
62043         * resource/getpriority.c: Likewise.
62044         * resource/getrlimit.c: Likewise.
62045         * resource/getrusage.c: Likewise.
62046         * resource/nice.c: Likewise.
62047         * resource/setpriority.c: Likewise.
62048         * resource/setrlimit.c: Likewise.
62049         * resource/ulimit.c: Likewise.
62050         * rt/aio_cancel.c: Likewise.
62051         * rt/aio_fsync.c: Likewise.
62052         * rt/aio_read.c: Likewise.
62053         * rt/aio_sigqueue.c: Likewise.
62054         * rt/aio_suspend.c: Likewise.
62055         * rt/aio_write.c: Likewise.
62056         * rt/clock_getres.c: Likewise.
62057         * rt/clock_gettime.c: Likewise.
62058         * rt/clock_nanosleep.c: Likewise.
62059         * rt/clock_settime.c: Likewise.
62060         * rt/lio_listio.c: Likewise.
62061         * rt/mq_close.c: Likewise.
62062         * rt/mq_getattr.c: Likewise.
62063         * rt/mq_notify.c: Likewise.
62064         * rt/mq_open.c: Likewise.
62065         * rt/mq_receive.c: Likewise.
62066         * rt/mq_send.c: Likewise.
62067         * rt/mq_setattr.c: Likewise.
62068         * rt/mq_timedreceive.c: Likewise.
62069         * rt/mq_timedsend.c: Likewise.
62070         * rt/mq_unlink.c: Likewise.
62071         * rt/shm_open.c: Likewise.
62072         * rt/shm_unlink.c: Likewise.
62073         * rt/timer_create.c: Likewise.
62074         * rt/timer_delete.c: Likewise.
62075         * rt/timer_getoverr.c: Likewise.
62076         * rt/timer_gettime.c: Likewise.
62077         * rt/timer_settime.c: Likewise.
62078         * setjmp/__longjmp.c: Likewise.
62079         * setjmp/setjmp.c: Likewise.
62080         * signal/kill.c: Likewise.
62081         * signal/killpg.c: Likewise.
62082         * signal/raise.c: Likewise.
62083         * signal/sigaction.c: Likewise.
62084         * signal/sigaltstack.c: Likewise.
62085         * signal/sigblock.c: Likewise.
62086         * signal/sigignore.c: Likewise.
62087         * signal/sigintr.c: Likewise.
62088         * signal/signal.c: Likewise.
62089         * signal/sigpause.c: Likewise.
62090         * signal/sigpending.c: Likewise.
62091         * signal/sigqueue.c: Likewise.
62092         * signal/sigreturn.c: Likewise.
62093         * signal/sigset.c: Likewise.
62094         * signal/sigsetmask.c: Likewise.
62095         * signal/sigstack.c: Likewise.
62096         * signal/sigsuspend.c: Likewise.
62097         * signal/sigtimedwait.c: Likewise.
62098         * signal/sigvec.c: Likewise.
62099         * signal/sigwait.c: Likewise.
62100         * signal/sigwaitinfo.c: Likewise.
62101         * signal/sysv_signal.c: Likewise.
62102         * socket/accept.c: Likewise.
62103         * socket/accept4.c: Likewise.
62104         * socket/bind.c: Likewise.
62105         * socket/connect.c: Likewise.
62106         * socket/getpeername.c: Likewise.
62107         * socket/getsockname.c: Likewise.
62108         * socket/getsockopt.c: Likewise.
62109         * socket/isfdtype.c: Likewise.
62110         * socket/listen.c: Likewise.
62111         * socket/recv.c: Likewise.
62112         * socket/recvfrom.c: Likewise.
62113         * socket/recvmsg.c: Likewise.
62114         * socket/send.c: Likewise.
62115         * socket/sendmsg.c: Likewise.
62116         * socket/sendto.c: Likewise.
62117         * socket/setsockopt.c: Likewise.
62118         * socket/shutdown.c: Likewise.
62119         * socket/sockatmark.c: Likewise.
62120         * socket/socket.c: Likewise.
62121         * socket/socketpair.c: Likewise.
62122         * stdio-common/ctermid.c: Likewise.
62123         * stdio-common/cuserid.c: Likewise.
62124         * stdio-common/remove.c: Likewise.
62125         * stdio-common/rename.c: Likewise.
62126         * stdio-common/renameat.c: Likewise.
62127         * stdio-common/tempname.c: Likewise.
62128         * stdlib/getcontext.c: Likewise.
62129         * stdlib/makecontext.c: Likewise.
62130         * stdlib/setcontext.c: Likewise.
62131         * stdlib/swapcontext.c: Likewise.
62132         * stdlib/system.c: Likewise.
62133         * streams/fattach.c: Likewise.
62134         * streams/fdetach.c: Likewise.
62135         * streams/getmsg.c: Likewise.
62136         * streams/getpmsg.c: Likewise.
62137         * streams/putmsg.c: Likewise.
62138         * streams/putpmsg.c: Likewise.
62139         * sysdeps/unix/bsd/getpt.c: Likewise.
62140         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
62141         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
62142         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
62143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
62144         Likewise.
62145         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
62146         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
62147         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
62148         * sysvipc/msgctl.c: Likewise.
62149         * sysvipc/msgget.c: Likewise.
62150         * sysvipc/msgrcv.c: Likewise.
62151         * sysvipc/msgsnd.c: Likewise.
62152         * sysvipc/semctl.c: Likewise.
62153         * sysvipc/semget.c: Likewise.
62154         * sysvipc/semop.c: Likewise.
62155         * sysvipc/semtimedop.c: Likewise.
62156         * sysvipc/shmat.c: Likewise.
62157         * sysvipc/shmctl.c: Likewise.
62158         * sysvipc/shmdt.c: Likewise.
62159         * sysvipc/shmget.c: Likewise.
62160         * termios/tcdrain.c: Likewise.
62161         * termios/tcflow.c: Likewise.
62162         * termios/tcflush.c: Likewise.
62163         * termios/tcgetattr.c: Likewise.
62164         * termios/tcgetpgrp.c: Likewise.
62165         * termios/tcsendbrk.c: Likewise.
62166         * termios/tcsetattr.c: Likewise.
62167         * termios/tcsetpgrp.c: Likewise.
62168         * time/adjtime.c: Likewise.
62169         * time/clock.c: Likewise.
62170         * time/getitimer.c: Likewise.
62171         * time/gettimeofday.c: Likewise.
62172         * time/setitimer.c: Likewise.
62173         * time/settimeofday.c: Likewise.
62174         * time/stime.c: Likewise.
62175         * time/time.c: Likewise.
62176
62177 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
62178
62179         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
62180         /usr/old/bin.
62181
62182         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
62183         instead of spaces.
62184         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
62185
62186 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
62187
62188         [BZ #14796]
62189         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
62190         FE_TONEAREST before applying Dekker multiplication and Knuth
62191         addition.  Clear inexact exceptions and check for exact zero
62192         results afterwards.
62193         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62194         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
62195         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62196         * math/libm-test.inc (fma_test): Add more tests.
62197         (fma_test_towardzero): Likewise.
62198         (fma_test_downward): Likewise.
62199         (fma_test_upward): Likewise.
62200         * sysdeps/generic/math_private.h (default_libc_fesetround): New
62201         function.
62202         (libc_fesetround): New macro.
62203         (libc_fesetroundf): Likewise.
62204         (libc_fesetroundl): Likewise.
62205         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
62206         function.
62207         (libc_fesetround_387): Likewise.
62208         (libc_fesetroundf): New macro.
62209         (libc_fesetround): Likewise.
62210         (libc_fesetroundl): Likewise.
62211         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
62212         function.
62213         (libc_fesetroundf): New macro.
62214         (libc_fesetround): Likewise.
62215         (libc_fesetroundl): Likewise.
62216         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
62217         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
62218         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
62219         libm_hidden_ver.
62220         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
62221         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
62222         libm_hidden_def.
62223         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
62224         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
62225         libm_hidden_ver.
62226         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
62227         libm_hidden_def.
62228
62229         [BZ #3439]
62230         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
62231         integer constant usable in #if and use that to give value to enum
62232         constant.
62233         (FE_DIVBYZERO): Likewise.
62234         (FE_UNDERFLOW): Likewise.
62235         (FE_OVERFLOW): Likewise.
62236         (FE_INVALID): Likewise.
62237         (FE_INVALID_SNAN): Likewise.
62238         (FE_INVALID_ISI): Likewise.
62239         (FE_INVALID_IDI): Likewise.
62240         (FE_INVALID_ZDZ): Likewise.
62241         (FE_INVALID_IMZ): Likewise.
62242         (FE_INVALID_COMPARE): Likewise.
62243         (FE_INVALID_SOFTWARE): Likewise.
62244         (FE_INVALID_SQRT): Likewise.
62245         (FE_INVALID_INTEGER_CONVERSION): Likewise.
62246         (FE_TONEAREST): Likewise.
62247         (FE_TOWARDZERO): Likewise.
62248         (FE_UPWARD): Likewise.
62249         (FE_DOWNWARD): Likewise.
62250         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
62251         (FE_DIVBYZERO): Likewise.
62252         (FE_OVERFLOW): Likewise.
62253         (FE_UNDERFLOW): Likewise.
62254         (FE_INEXACT): Likewise.
62255         (FE_TONEAREST): Likewise.
62256         (FE_DOWNWARD): Likewise.
62257         (FE_UPWARD): Likewise.
62258         (FE_TOWARDZERO): Likewise.
62259         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
62260         (FE_UNDERFLOW): Likewise.
62261         (FE_OVERFLOW): Likewise.
62262         (FE_DIVBYZERO): Likewise.
62263         (FE_INVALID): Likewise.
62264         (FE_TONEAREST): Likewise.
62265         (FE_TOWARDZERO): Likewise.
62266         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
62267         (FE_OVERFLOW): Likewise.
62268         (FE_UNDERFLOW): Likewise.
62269         (FE_DIVBYZERO): Likewise.
62270         (FE_INEXACT): Likewise.
62271         (FE_TONEAREST): Likewise.
62272         (FE_TOWARDZERO): Likewise.
62273         (FE_UPWARD): Likewise.
62274         (FE_DOWNWARD): Likewise.
62275         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
62276         (FE_DIVBYZERO): Likewise.
62277         (FE_OVERFLOW): Likewise.
62278         (FE_UNDERFLOW): Likewise.
62279         (FE_INEXACT): Likewise.
62280         (FE_TONEAREST): Likewise.
62281         (FE_DOWNWARD): Likewise.
62282         (FE_UPWARD): Likewise.
62283         (FE_TOWARDZERO): Likewise.
62284
62285 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
62286
62287         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
62288
62289 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
62290
62291         * scripts/cross-test-ssh.sh (command): Use newlines to separate
62292         commands.  Quote $PWD.
62293         (blacklist_exports): Don't use remove_newlines.  Replace "declare
62294         -x" by "export".
62295         (remove_newlines): Remove.
62296
62297 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
62298
62299         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
62300         * stdlib/stdlib.h (atof): Moved to ...
62301         * include/bits/stdlib-float.h: Here.  New file.
62302         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
62303         * stdlib/bits/stdlib-float.h: New file.
62304         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
62305         -mno-sse -mno-mmx.
62306         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
62307         <xmmintrin.h>.
62308
62309 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62310
62311         * conform/conformtest.pl (@headers): Add fenv.h.
62312         * conform/data/fenv.h-data: New file.
62313         * include/fenv.h [_ISOMAC]: Disable all contents of file except
62314         include of <math/fenv.h>.
62315
62316         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
62317         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
62318         && !UNIX98].  Enables tests for XOPEN2K8.
62319         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
62320         POSIX2008]: Likewise.
62321
62322         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
62323         (struct rusage): Do not expect type or its members.
62324
62325         [BZ #3439]
62326         * math/math.h (FP_NAN): Define macro to integer constant usable in
62327         #if and use that to give value to enum constant.
62328         (FP_INFINITE): Likewise.
62329         (FP_ZERO): Likewise.
62330         (FP_SUBNORMAL): Likewise.
62331         (FP_NORMAL): Likewise.
62332
62333 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
62334
62335         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
62336         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
62337         arguments.
62338
62339 2012-11-02  Roland McGrath  <roland@hack.frob.com>
62340
62341         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
62342         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
62343         autoconf-time if not.
62344         * configure.in: Remove AC_PREREQ.
62345
62346 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62347
62348         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
62349         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
62350         of the internal implementation.
62351
62352 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62353
62354         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
62355         except include of <misc/sys/syslog.h>.
62356
62357 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62358
62359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
62360         function returns with a NULL context exit with zero.
62361
62362 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62363
62364         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
62365
62366 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
62367
62368         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
62369         (run_program_cmd): This.
62370         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
62371         (tst_langinfo): New variable.  Use it.
62372
62373 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
62374
62375         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
62376         floating point opcodes.
62377
62378 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62379
62380         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62381         variable.
62382
62383         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
62384
62385         * sysdeps/mach/hurd/powerpc: Remove directory.
62386         * sysdeps/mach/powerpc: Likewise.
62387
62388 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62389
62390         * scripts/check-local-headers.sh: Ignore c++ headers.
62391
62392 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62393
62394         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
62395         __libc_cleanup_region_start argument.
62396
62397 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
62398
62399         [BZ #14784]
62400         [BZ #14785]
62401         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
62402         x * y using scaling, not as x * y + z.
62403         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62404         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62405         * math/libm-test.inc (fma_test): Add more tests.
62406         (fma_test_towardzero): Likewise.
62407         (fma_test_downward): Likewise.
62408         (fma_test_upward): Likewise.
62409
62410 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62411
62412         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
62413
62414 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62415
62416         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
62417         New variable.
62418
62419 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
62420
62421         * rt/tst-shm.c (worker): Correct checking for mmap failure.
62422
62423 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62424
62425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62426         Fix sort order.
62427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62428         Likewise.
62429
62430 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62431
62432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62433         Fix the order of the list for glibc 2.17.
62434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62435         Likewise.
62436
62437 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62438
62439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62440
62441 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62442
62443         [BZ #14610]
62444         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
62445         for low part of x being zero before using __atanl (y).
62446         * math/libm-test.inc (atan2_test): Add another test.
62447
62448         * manual/install.texi (Configuring and compiling): Document
62449         general use of test-wrapper and test-wrapper-env.
62450         * INSTALL: Regenerated.
62451
62452         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
62453         (__fma): Do not extract and scale down low bits on after-rounding
62454         systems when result rounded to normal precision would have normal
62455         exponent.
62456         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
62457         (__fmal): Do not extract and scale down low bits on after-rounding
62458         systems when result rounded to normal precision would have normal
62459         exponent.
62460         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
62461         (__fmal): Do not extract and scale down low bits on after-rounding
62462         systems when result rounded to normal precision would have normal
62463         exponent.
62464         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
62465         macro.
62466         (fma_test): Add more tests.
62467         (fma_test_towardzero): Likewise.
62468         (fma_test_downward): Likewise.
62469         (fma_test_upward): Likewise.
62470
62471 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
62472
62473         * sysdeps/i386/tininess.h: Renamed to ...
62474         * sysdeps/x86/tininess.h: This.
62475         * sysdeps/x86_64/tininess.h: Removed.
62476
62477 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62478
62479         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
62480         input.  Use $(build-program-cmd).
62481         ($(objpfx)tst-array1-static.out): Likewise.
62482         ($(objpfx)tst-array2.out): Likewise.
62483         ($(objpfx)tst-array3.out): Likewise.
62484         ($(objpfx)tst-array4.out): Likewise.
62485         ($(objpfx)tst-array5.out): Likewise.
62486         ($(objpfx)tst-array5-static.out): Likewise.
62487
62488 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
62489
62490         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
62491         if defined.
62492
62493         * nss/nsswitch.h (nss_interface_function): Provide new
62494         macro for use with NSS functions.
62495         * grp/initgroups.c: Use new macro.
62496         * nss/getXXbyYY.c: Likewise.
62497         * nss/getXXbyYY_r.c: Likewise.
62498         * nss/getXXent.c: Likewise.
62499         * nss/getXXent_r.c: Likewise.
62500         * sysdeps/posix/getaddrinfo.c: Likewise.
62501
62502 2012-10-30  Andreas Jaeger  <aj@suse.de>
62503
62504         * po/ru.po: Update Russion translation from translation project.
62505
62506 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62507
62508         [BZ #14152]
62509         [BZ #14783]
62510         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62511         result and shift together with sticky bit instead of replicating
62512         round-to-nearest rounding.
62513         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62514         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62515         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
62516         missing underflow exceptions.
62517         (fma_test_towardzero): Add more tests.
62518         (fma_test_downward): Likewise.
62519         (fma_test_upward): Likewise.
62520
62521         [BZ #14047]
62522         * sysdeps/generic/tininess.h: New file.
62523         * sysdeps/i386/tininess.h: Likewise.
62524         * sysdeps/sh/tininess.h: Likewise.
62525         * sysdeps/x86_64/tininess.h: Likewise.
62526         * stdlib/tst-strtod-underflow.c: Likewise.
62527         * stdlib/tst-tininess.c: Likewise.
62528         * stdlib/strtod_l.c: Include <tininess.h>.
62529         (round_and_return): Do not set errno for exact underflow cases.
62530         Force an underflow exception when setting errno for underflow.
62531         Determine underflow based on rounding to normal precision if
62532         TININESS_AFTER_ROUNDING.
62533         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
62534         ERANGE for exact underflow cases.
62535         * stdlib/Makefile (tests): Add tst-tininess and
62536         tst-strtod-underflow.
62537         ($(objpfx)tst-tininess): Use $(link-libm).
62538         ($(objpfx)tst-strtod-underflow): Likewise.
62539
62540 2012-10-30  Andreas Jaeger  <aj@suse.de>
62541
62542         [BZ#14767]
62543         * elf/Makefile (tests): Remove conditional for have-initfini-array
62544         since this is now always required and the variable does not exist
62545         anymore.
62546         (tests-static): Likewise.
62547         (modules-names): Likewise.
62548
62549         * po/eo.po: Add Esperanto translation from translation project.
62550
62551         * elf/tst-array1.c (fini_array): Make writeable so that it can be
62552         merged with constructor/destructor.
62553         (init_array): Likewise.
62554         * elf/tst-array2dep.c (fini_array): Likewise.
62555         (init_array): Likewise.
62556
62557 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
62558
62559         * manual/message.texi: Delete @cartouche tags.
62560
62561 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
62562
62563         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
62564         EOPNOTSUPP.
62565         * sysdeps/mach/hurd/fsync.c: Likewise.
62566
62567         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
62568         [_POSIX_REALTIME_SIGNALS]: Change condition to
62569         [_POSIX_REALTIME_SIGNALS > 0].
62570
62571 2012-10-27  Andreas Jaeger  <aj@suse.de>
62572
62573         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
62574         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
62575         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
62576         [__WORDSIZE != 64]: Likewise.
62577
62578 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
62579
62580         *  iconvdata/tst-table.sh: Remove ${SHELL}.
62581         *  iconvdata/tst-tables.sh: Likewise.
62582
62583 2012-10-25  David S. Miller  <davem@davemloft.net>
62584
62585         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62586         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
62587         of strtoull.
62588
62589         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
62590         ifunc-impl-list.c
62591         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
62592         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
62593         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
62594         file.
62595
62596 2012-10-25  Roland McGrath  <roland@hack.frob.com>
62597
62598         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62599         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
62600         __getdirentries.
62601
62602 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62603             Jim Blandy  <jimb@codesourcery.com>
62604
62605         * scripts/cross-test-ssh.sh: New file.
62606         * manual/install.texi (Configuring and compiling): Document use of
62607         cross-test-ssh.sh.
62608         * INSTALL: Regenerated.
62609
62610 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
62611
62612         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
62613         EOPNOTSUPP.
62614
62615 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62616
62617         * Makeconfig (run-program-prefix): Fix comment.
62618
62619 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62620             Jim Blandy  <jimb@codesourcery.com>
62621
62622         * Makeconfig (test-wrapper): New variable,
62623         (test-wrapper-env): Likewise.
62624         [$(cross-compiling) = yes && $(test-wrapper) != ""]
62625         (run-built-tests): Define to yes.
62626         (run-program-prefix): Use $(test-wrapper).
62627         (built-program-cmd): Likewise.
62628         * Rules (make-test-out): Use $(test-wrapper-env) and
62629         $(host-built-program-cmd).
62630         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
62631         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
62632         tst-pathopt.sh.
62633         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
62634         $(test-wrapper-env) to tst-rtld-load-self.sh.
62635         ($(objpfx)order2.out): Use $(test-wrapper).
62636         ($(objpfx)tst-initorder.out): Likewise.
62637         ($(objpfx)tst-initorder2.out): Likewise.
62638         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
62639         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
62640         (test_wrapper_env): New variable.  Use it to run ld.so.
62641         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
62642         Use it to run ld.so.
62643         (test_wrapper_env): Likewise.
62644         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
62645         $(test-wrapper) to run-iconv-test.sh.
62646         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
62647         (ICONV): Use $test_wrapper.
62648         * posix/Makefile ($(objpfx)globtest.out): Pass
62649         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
62650         globtest.sh, not $(run-program-prefix).
62651         * posix/globtest.sh (run_via_rtld_prefix): New variable.
62652         (test_wrapper): Likewise.
62653         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
62654         set together with run_via_rtld_prefix.
62655         (run_program_prefix): Define in terms of test_wrapper and
62656         run_via_rtld_prefix.
62657
62658 2012-10-24  Roland McGrath  <roland@hack.frob.com>
62659
62660         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
62661         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
62662         Targets removed.
62663
62664         [BZ #14743]
62665         * include/time.h: Remove librt_hidden_proto (clock_gettime).
62666         Declare __clock_getres, __clock_gettime, __clock_settime,
62667         __clock_nanosleep, and __clock_getcpuclockid.
62668         * rt/clock_gettime.c: Define __clock_gettime as an alias.
62669         Remove librt_hidden_def (clock_gettime).
62670         * sysdeps/unix/clock_gettime.c: Likewise.
62671         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
62672         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
62673         * rt/clock_getres.c: Define __clock_getres as an alias.
62674         * sysdeps/posix/clock_getres.c: Likewise.
62675         * rt/clock_settime.c: Define __clock_settime as an alias.
62676         * sysdeps/unix/clock_settime.c: Likewise.
62677         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
62678         * sysdeps/unix/clock_nanosleep.c: Likewise.
62679         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
62680         * rt/clock-compat.c: New file.
62681         * rt/Makefile (librt-routines): Add clock-compat and move
62682         $(clock-routines) to ...
62683         (routines): ... here, new variable.
62684         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
62685         Don't add get_clockfreq here.
62686         * rt/Versions (libc: GLIBC_2.17): New version set.
62687         Add clock_* symbols here.
62688         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
62689         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
62690         (GLIBC_2.17): Add clock_* symbols.
62691         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
62692         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
62693         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
62694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62695         Likewise.
62696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62697         Likewise.
62698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
62699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
62700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
62701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
62702         * NEWS: Mention the move.
62703
62704         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
62705         Use __open, __read, __close rather than their public counterparts.
62706         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62707         (__get_clockfreq_via_cpuinfo): Likewise.
62708         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
62709         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
62710
62711         * config.h.in (HAVE_IFUNC): New #undef.
62712         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
62713         was successful.
62714         * configure: Regenerated.
62715
62716 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62717
62718         * configure.in: Move READELF check to start of file.
62719         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
62720         libc_cv_asm_gnu_indirect_function in the process.
62721         * configure: Regenerated.
62722
62723 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62724
62725         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
62726         send the output to /dev/null.
62727         (libc_cv_cc_with_libunwind): Likewise.
62728         (libc_cv_as_noexecstack): Likewise.
62729         * configure: Regenerate.
62730
62731 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62732
62733         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
62734
62735         * posix/globtest.sh (TMPDIR): Do not set.
62736         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
62737         (testout): Likewise.
62738
62739 2012-10-24  Andreas Jaeger  <aj@suse.de>
62740
62741         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
62742         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
62743         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
62744         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
62745         posix_fadvise64, posix_fallocate64.
62746
62747         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
62748         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
62749         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
62750         Likewise.
62751         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
62752         Likewise.
62753         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
62754
62755         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
62756         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
62757         <bits/fcntl-linux.h>.
62758         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
62759
62760         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
62761         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
62762         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
62763         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
62764         [__WORDSIZE != 64]: Likewise.
62765
62766 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62767
62768         * Makeconfig (run-built-tests): New variable.
62769         * Rules [$(cross-compiling) = yes]: Change condition to
62770         [$(run-built-tests) = no].
62771         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
62772         to [$(run-built-tests) = yes].
62773         * elf/Makefile [$(cross-compiling) = no]: Likewise.
62774         * grp/Makefile [$(cross-compiling) = no]: Likewise.
62775         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
62776         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
62777         * intl/Makefile [$(cross-compiling) = no]: Likewise.
62778         * io/Makefile [$(cross-compiling) = no]: Likewise.
62779         * libio/Makefile [$(cross-compiling) = no]: Likewise.
62780         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
62781         * misc/Makefile [$(cross-compiling) = no]: Likewise.
62782         * posix/Makefile [$(cross-compiling) = no]: Likewise.
62783         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
62784         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
62785         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
62786         * string/Makefile [$(cross-compiling) = no]: Likewise.
62787
62788         * posix/Makefile ($(objpfx)globtest.out): Pass
62789         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
62790         $(rtld-installed-name).
62791         * posix/globtest.sh (elf_objpfx): Remove variable.
62792         (rtld_installed_name): Likewise.
62793         (library_path): Likewise.
62794         (run_program_prefix): New variable.  Use for running globtest
62795         binary.
62796
62797 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
62798             Joseph Myers  <joseph@codesourcery.com>
62799
62800         * Makeconfig (host-built-program-cmd): New variable.
62801         * elf/Makefile (tst-stackguard1-ARGS): Use
62802         $(host-built-program-cmd).
62803         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
62804         (tst-spawn-ARGS): Likewise.
62805         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
62806
62807 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62808             Jim Blandy  <jimb@codesourcery.com>
62809
62810         * Makeconfig (run-via-rtld-prefix): New variable.
62811         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
62812         (built-program-cmd): Likewise.
62813
62814 2012-10-22  Andreas Jaeger  <aj@suse.de>
62815
62816         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
62817         __O_RSYNC if it exists, otherwise to O_SYNC.
62818
62819 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
62820             Joseph Myers  <joseph@codesourcery.com>
62821
62822         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
62823         /dev/null.
62824         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
62825         from /dev/null
62826         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
62827         /dev/null.
62828
62829 2012-10-22  Andreas Jaeger  <aj@suse.de>
62830
62831         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
62832         Define always.
62833         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
62834
62835         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
62836         bits/fcntl-linux.h.
62837
62838         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
62839         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
62840
62841         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
62842         to __O_LARGEFILE.
62843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
62844         to __O_LARGEFILE.
62845
62846 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
62847             Joseph Myers  <joseph@codesourcery.com>
62848
62849         * config.make.in (NM): New variable.
62850
62851 2012-10-21  Andreas Jaeger  <aj@suse.de>
62852
62853         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
62854         definitions and declarations that are provided by
62855         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
62856
62857 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62858
62859         [BZ #14683]
62860         * elf/Makefile (tests-static): Add tst-leaks1-static.
62861         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
62862         ($(objpfx)tst-leaks1-static): New rule.
62863         ($(objpfx)tst-leaks1-static-mem): Likewise.
62864         (tst-leaks1-static-ENV): New macro.
62865         * elf/dl-open.c (dl_open_worker): Check the main application
62866         only if SHARED is defined.
62867         * elf/tst-leaks1-static.c: New file.
62868
62869 2012-10-20  Andreas Jaeger  <aj@suse.de>
62870
62871         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
62872         generic values for Linux.
62873         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
62874         and declarations that are provided by <bits/fcntl-linux.h> and
62875         include <bits/fcntl-linux.h>.
62876         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
62877         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
62878
62879 2012-10-20  Roland McGrath  <roland@hack.frob.com>
62880
62881         * io/fcntl.h: Move include of <bits/types.h> to the top and
62882         include it unconditionally.
62883
62884 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62885
62886         * wcsmbs/Makefile (tests-ifunc): New variable.
62887         (tests): Add $(tests-ifunc).
62888         * wcsmbs/test-wcschr-ifunc.c: New file.
62889         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
62890         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
62891         * wcsmbs/test-wcslen-ifunc.c: Likewise.
62892         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
62893         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
62894
62895         * string/Makefile (tests-ifunc): New variable.
62896         (tests): Add $(tests-ifunc).
62897         * string/test-memccpy.c (TEST_NAME): New macro.
62898         * string/test-memchr.c (TEST_NAME): Likewise.
62899         * string/test-memcmp.c (TEST_NAME): Likewise.
62900         * string/test-memcpy.c (TEST_NAME): Likewise.
62901         * string/test-memmem.c (TEST_NAME): Likewise.
62902         * string/test-memmove.c (TEST_NAME): Likewise.
62903         * string/test-memset.c (TEST_NAME): Likewise.
62904         * string/test-rawmemchr.c (TEST_NAME): Likewise.
62905         * string/test-stpcpy.c (TEST_NAME): Likewise.
62906         * string/test-stpncpy.c (TEST_NAME): Likewise.
62907         * string/test-strcasecmp.c (TEST_NAME): Likewise.
62908         * string/test-strcasestr.c (TEST_NAME): Likewise.
62909         * string/test-strcat.c (TEST_NAME): Likewise.
62910         * string/test-strchr.c (TEST_NAME): Likewise.
62911         * string/test-strcmp.c(TEST_NAME): Likewise.
62912         * string/test-strcpy.c (TEST_NAME): Likewise.
62913         * string/test-strcspn.c (TEST_NAME): Likewise.
62914         * string/test-strlen.c (TEST_NAME): Likewise.
62915         * string/test-strncasecmp.c (TEST_NAME): Likewise.
62916         * string/test-strncmp.c (TEST_NAME): Likewise.
62917         * string/test-strncpy.c (TEST_NAME): Likewise.
62918         * string/test-strnlen.c (TEST_NAME): Likewise.
62919         * string/test-strpbrk.c (TEST_NAME): Likewise.
62920         * string/test-strrchr.c (TEST_NAME): Likewise.
62921         * string/test-strspn.c (TEST_NAME): Likewise.
62922         * string/test-strstr.c (TEST_NAME): Likewise.
62923         * string/test-bcopy-ifunc.c: New file.
62924         * string/test-bzero-ifunc.c: Likewise.
62925         * string/test-memccpy-ifunc.c: Likewise.
62926         * string/test-memchr-ifunc.c: Likewise.
62927         * string/test-memcmp-ifunc.c: Likewise.
62928         * string/test-memcpy-ifunc.c: Likewise.
62929         * string/test-memmem-ifunc.c: Likewise.
62930         * string/test-memmove-ifunc.c: Likewise.
62931         * string/test-mempcpy-ifunc.c: Likewise.
62932         * string/test-memset-ifunc.c: Likewise.
62933         * string/test-rawmemchr-ifunc.c: Likewise.
62934         * string/test-stpcpy-ifunc.c: Likewise.
62935         * string/test-stpncpy-ifunc.c: Likewise.
62936         * string/test-strcasecmp-ifunc.c: Likewise.
62937         * string/test-strcasestr-ifunc.c: Likewise.
62938         * string/test-strcat-ifunc.c: Likewise.
62939         * string/test-strchr-ifunc.c: Likewise.
62940         * string/test-strchrnul-ifunc.c: Likewise.
62941         * string/test-strcmp-ifunc.c: Likewise.
62942         * string/test-strcpy-ifunc.c: Likewise.
62943         * string/test-strcspn-ifunc.c: Likewise.
62944         * string/test-strlen-ifunc.c: Likewise.
62945         * string/test-strncasecmp-ifunc.c: Likewise.
62946         * string/test-strncat-ifunc.c: Likewise.
62947         * string/test-strncmp-ifunc.c: Likewise.
62948         * string/test-strncpy-ifunc.c: Likewise.
62949         * string/test-strnlen-ifunc.c: Likewise.
62950         * string/test-strpbrk-ifunc.c: Likewise.
62951         * string/test-strrchr-ifunc.c: Likewise.
62952         * string/test-strspn-ifunc.c: Likewise.
62953         * string/test-strstr-ifunc.c: Likewise.
62954
62955         * debug/Makefile (tests-ifunc): New variable.
62956         (tests): Add $(tests-ifunc).
62957         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
62958         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
62959         * debug/test-stpcpy_chk-ifunc.c: New file.
62960         * debug/test-strcpy_chk-ifunc.c: Likewise.
62961
62962 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
62963
62964         [BZ #13601]
62965         * elf/dl-load.c (open_verify): Retry read if the entire ELF
62966         header is not read in.
62967
62968 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
62969
62970         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
62971         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
62972         directly.  Pass built executable to script as
62973         $(built-program-cmd).
62974         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
62975         $testprogram without using LD_LIBRARY_PATH and $ldso.
62976
62977         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
62978         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
62979         $(rtld-installed-name).
62980         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
62981         (rtld_installed_name): Likewise.
62982         (library_path): Likewise.
62983         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
62984         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
62985         $(run-program-prefix) to tst-tables.sh.
62986         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
62987         it to run tst-table-from and tst-table-to.
62988         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
62989         Pass it to tst-table.sh.
62990         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
62991         $(run-program-prefix) to tst-gettext.sh.
62992         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
62993         tst-translit.sh.
62994         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
62995         tst-gettext2.sh.
62996         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
62997         to run tst-gettext.
62998         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
62999         to run tst-gettext2.
63000         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
63001         to run tst-translit.
63002         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
63003         $(run-program-prefix) to tst-mtrace.sh.
63004         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
63005         to run tst-mtrace.
63006         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
63007         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
63008         $(rtld-installed-name).
63009         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
63010         (rtld_installed_name): Likewise.
63011         (run_program_prefix): New variable.  Use it to run wordexp-test.
63012
63013         * Makeconfig (ARCH): Remove all definitions.
63014         (machine): Likewise.
63015         [ARCH]: Remove conditional code.
63016         [!objdir]: Give error.
63017         [!objdir] (objpfx): Remove.
63018         [!objdir] (common-objpfx): Likewise.
63019         [!objdir] (common-objdir): Likewise.
63020         * configure.in (config_makefile): Remove.  Hardcode Makefile in
63021         AC_CONFIG_FILES call.
63022         * configure: Regenerated.
63023
63024         [BZ #13888]
63025         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
63026         or TMPDIR.
63027         (testout): Likewise.
63028
63029         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
63030         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
63031         $(rtld-installed-name).
63032         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
63033         (rtld_installed_name): Likwise.
63034         (runit): Remove function.
63035         (run_getconf): New variable,  Use it for running getconf binary.
63036
63037 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
63038
63039         [BZ #14716]
63040         * string/test-memmem.c (check_result): New function.
63041         (do_one_test): Use it.
63042         (check1): New function.
63043         (test_main): Use it.
63044
63045 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
63046
63047         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
63048
63049 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
63050
63051         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
63052         (_G_LSEEK64): Likewise.
63053         (_G_MMAP64): Likewise.
63054         (_G_FSTAT64): Likewise.
63055         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
63056         (_G_LSEEK64): Likewise.
63057         (_G_MMAP64): Likewise.
63058         (_G_FSTAT64): Likewise.
63059         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
63060         unconditional.  Call __mmap64 directly.
63061         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
63062         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
63063         __lseek64 directly.
63064         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
63065         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
63066         __mmap64 directly.
63067         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
63068         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63069         __lseek64 directly.
63070         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
63071         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63072         __lseek64 directly.
63073         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
63074         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
63075         __lseek64 directly.
63076         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
63077         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
63078         __fxstat64 directly.
63079         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
63080         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
63081         unconditional.
63082         (freopen64) [!_G_OPEN64]: Remove conditional code.
63083         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
63084         unconditional.
63085         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
63086         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
63087         unconditional.
63088         (ftello64) [!_G_LSEEK64]: Remove conditional code.
63089         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
63090         unconditional.
63091         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63092         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
63093         unconditional.
63094         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
63095         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
63096         unconditional.
63097         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63098         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
63099         unconditional.
63100         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63101         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
63102         unconditional.
63103         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63104
63105 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
63106
63107         [BZ #12140]
63108         * manual/memory.texi (Malloc Tunable Parameters): Add note
63109         about free list pointers overwriting some perturb bytes.
63110         Wording suggested by Roland McGrath.
63111
63112 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
63113
63114         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
63115         (lgamma_test): Likewise.
63116         (tgamma_test): Likewise.
63117
63118 2012-10-16  Florian Weimer  <fweimer@redhat.com>
63119
63120         [BZ #14700]
63121         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
63122         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
63123
63124 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
63125
63126         * NEWS: Mention BZ #14716.
63127         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
63128         when removing AVAILABLE1_USES_J macro.
63129
63130 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
63131
63132         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
63133         (__bswap_64): __uint64_t for unsigned 64-bit int.
63134
63135 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
63136
63137         * include/string.h (memmem): Declare libc hidden alias.
63138         * string/memmem.c (memmem): Define libc hidden alias.
63139         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
63140         __read, __close instead of open, read, close.
63141
63142 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
63143
63144         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
63145         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
63146         global and hidden.
63147         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
63148         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
63149         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
63150         Likewise.
63151         (__rawmemchr_sse2): Likewise.
63152         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
63153         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
63154         (__strchr_sse2): Likewise.
63155         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
63156         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
63157         (__strcasecmp_sse2): Likewise.
63158         (__strncasecmp_sse2): Likewise.
63159         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
63160         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
63161         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
63162         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
63163         (__strrchr_sse2): Likewise.
63164         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
63165         ifunc-impl-list.c.
63166         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
63167         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
63168         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
63169         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
63170         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
63171         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
63172         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63173         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63174         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
63175         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
63176         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
63177         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
63178         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
63179         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
63180         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
63181         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
63182         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
63183         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
63184         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
63185         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
63186         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
63187         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
63188         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
63189         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63190         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
63191         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
63192         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
63193         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
63194         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
63195         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
63196
63197         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
63198         global and hidden.
63199         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
63200         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
63201         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
63202         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
63203         Likewise.
63204         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
63205         Likewise.
63206         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
63207         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
63208         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
63209         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
63210         ifunc-impl-list.c.
63211         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
63212         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
63213         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
63214         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
63215         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
63216         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
63217         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
63218         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
63219         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
63220         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
63221         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
63222         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
63223         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
63224         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
63225         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
63226         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
63227         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
63228         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
63229         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
63230         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
63231         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
63232         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
63233         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
63234         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
63235         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
63236         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
63237         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
63238         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
63239         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
63240         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
63241         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
63242         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
63243         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
63244         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
63245         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
63246         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
63247         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
63248         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
63249         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
63250         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
63251         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
63252
63253         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
63254         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
63255         * include/ifunc-impl-list.h: New file.
63256         * misc/ifunc-impl-list.c: Likewise.
63257         * misc/Makefile (routines): Add ifunc-impl-list.
63258         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
63259         * string/test-string.h: Include <ifunc-impl-list.h>.
63260         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
63261         TEST_NAME]: New variables.
63262         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
63263         are defined.
63264         (test_init): Call __libc_ifunc_impl_list to initialize
63265         func_list if TEST_IFUNC and TEST_NAME are defined.
63266
63267         * string/Makefile (strop-tests): Add bcopy and bzero.
63268         * string/test-bcopy.c: New file.
63269         * string/test-bzero.c: Likewise.
63270         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
63271         defined.
63272         * string/test-memset.c: Support bzero test if TEST_BZERO is
63273         defined.
63274         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
63275         __libc_memmove.
63276         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
63277         __libc_memset.
63278         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
63279         of memset.
63280
63281 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
63282
63283         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
63284         * configure: Regenerated.
63285
63286         * Makeconfig (+link-static-before-libc): Don't include
63287         $(link-static-libc).
63288
63289         * libio/libio.h (_IO_pos_t): Remove.
63290
63291 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63292
63293         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
63294         McGrath.
63295
63296 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63297
63298         * crypt/crypt-entry.c: Include fips-private.h.
63299         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
63300         * crypt/md5c-test.c (main): Tolerate disabled MD5.
63301         * sysdeps/unix/sysv/linux/fips-private.h: New file.
63302         * sysdeps/generic/fips-private.h: New file, dummy fallback.
63303
63304 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63305
63306         * crypt/crypt-private.h: Include stdbool.h.
63307         (_ufc_setup_salt_r): Return bool.
63308         * crypt/crypt-entry.c: Include errno.h.
63309         (__crypt_r): Return NULL with EINVAL for bad salt.
63310         * crypt/crypt_util.c (bad_for_salt): New.
63311         (_ufc_setup_salt_r): Check that salt is long enough and within
63312         the specified alphabet.
63313         * crypt/badsalttest.c: New file.
63314         * crypt/Makefile (tests): Add it.
63315         ($(objpfx)badsalttest): New.
63316
63317 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
63318
63319         * NEWS: Add entry for BZ #14602.
63320
63321 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63322
63323         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
63324         type-generic.
63325         * math/libm-test.inc: Update comment listing what functions and
63326         macros are tested.
63327         (isgreater_test): New function.
63328         (isgreaterequal_test): Likewise.
63329         (isless_test): Likewise.
63330         (islessequal_test): Likewise.
63331         (islessgreater_test): Likewise.
63332         (isunordered_test): Likewise.
63333         (main): Call the new functions.
63334
63335 2012-10-09  Roland McGrath  <roland@hack.frob.com>
63336
63337         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
63338         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
63339         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
63340         * sysdeps/i386/configure: Regenerated.
63341         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
63342         * sysdeps/mach/configure: Regenerated.
63343         * sysdeps/mach/hurd/configure: Regenerated.
63344         * sysdeps/powerpc/configure: Regenerated.
63345         * sysdeps/powerpc/powerpc32/configure: Regenerated.
63346         * sysdeps/powerpc/powerpc64/configure: Regenerated.
63347         * sysdeps/s390/s390-32/configure: Regenerated.
63348         * sysdeps/s390/s390-64/configure: Regenerated.
63349         * sysdeps/sh/configure: Regenerated.
63350         * sysdeps/sparc/configure: Regenerated.
63351         * sysdeps/unix/sysv/linux/configure: Regenerated.
63352         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
63353         * sysdeps/x86_64/configure: Regenerated.
63354
63355         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
63356         defined.  Don't check if MAP is NULL.
63357
63358 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63359
63360         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
63361         (_G_stat64): Likewise.
63362         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
63363         (_G_stat64): Likewise.
63364         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
63365         instead of struct _G_stat64.
63366         * libio/fileops.c (mmap_remap_check): Likewise.
63367         (decide_maybe_mmap): Likewise.
63368         (_IO_new_file_seekoff): Likewise.
63369         (_IO_file_stat): Likewise.
63370         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
63371         _G_off64_t.
63372         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
63373         instead of struct _G_stat64.
63374         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63375
63376 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
63377
63378         [BZ #14602]
63379         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63380         Replace with ...
63381         (CHECK_EOL): New macro.
63382         (two_way_short_needle): Check beginning of haystack for EOL.  Use
63383         CHECK_EOL.
63384         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63385         Replace with CHECK_EOL.
63386         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63387         Replace with CHECK_EOL.
63388
63389 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
63390
63391         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
63392         type-generic.
63393         * math/libm-test.inc: Update comment listing what functions and
63394         macros are tested.
63395         (finite_test): New function.
63396         (isinf_test): Likewise.
63397         (isnan_test): Likewise.
63398         (fpclassify_test): Test subnormal input.
63399         (isfinite_test): Likewise.
63400         (isnormal_test): Likewise.
63401         (main): Call the new functions.
63402
63403 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
63404
63405         [BZ #14660]
63406         * Makerules (%.dynsym): Force C locale when running
63407         $(OBJDUMP) --dynamic-syms.
63408
63409 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
63410
63411         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
63412         <stdint.h>.
63413
63414 2012-10-06  David S. Miller  <davem@davemloft.net>
63415
63416         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
63417         upper 32-bits of the length value in %o2 since we use branch-on-register
63418         tests which consider the entire 64-bit register.
63419
63420 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
63421
63422         * string/test-strstr.c (check2): Add a test for page boundary.
63423
63424 2012-10-05  David S. Miller  <davem@davemloft.net>
63425
63426         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
63427         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
63428         file.
63429         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63430         sysdep_routines.
63431         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63432         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
63433         and bzero when HWCAP_SPARC_CRYPTO is present.
63434
63435 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
63436
63437         [BZ #14602]
63438         * string/test-strstr.c (check2): New function.
63439         (test_main): Call check2.
63440
63441         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
63442         and bug-strchr1.
63443         * string/bug-strcasestr1.c (do_test): Moved to ...
63444         * string/test-strcasestr.c (check1): Here.  New function.
63445         (do_one_test): Break out result checking code into ...
63446         (check_result): This.  New function.
63447         (do_one_test): Call check_result.
63448         (test_main): Call check1.
63449         * string/bug-strchr1.c (do_test): Moved to ...
63450         * string/test-strchr.c (check1): Here.  New function.
63451         (do_one_test): Break out result checking code into ...
63452         (check_result): This.  New function.
63453         (do_one_test): Call check_result.
63454         (test_main): Call check1.
63455         * string/bug-strstr1.c (main): Moved to ...
63456         * string/test-strstr.c (check1): Here.  New function.
63457         (do_one_test): Break out result checking code into ...
63458         (check_result): This.  New function.
63459         (do_one_test): Call check_result.
63460         (test_main): Call check1.
63461         * string/bug-strcasestr1.c: Removed.
63462         * string/bug-strchr1.c: Likewise.
63463         * string/bug-strstr1.c: Likewise.
63464
63465         * elf/Makefile (dl-routines): Add hwcaps.
63466         * elf/dl-support.c (_dl_important_hwcaps): Removed.
63467         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
63468         (_dl_important_hwcaps): Moved to ...
63469         * elf/dl-hwcaps.c: Here.  New file.
63470         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
63471
63472         [BZ #14557]
63473         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
63474         if IS_IN_rtld isn't defined.
63475
63476         * elf/dl-support.c (_dl_sysinfo_map): New.
63477         Include "get-dynamic-info.h" and "setup-vdso.h".
63478         (_dl_non_dynamic_init): Call setup_vdso.
63479         * elf/dynamic-link.h: Don't include <assert.h>.
63480         (elf_get_dynamic_info): Moved to ...
63481         * elf/get-dynamic-info.h: Here.  New file.
63482         * elf/dynamic-link.h: Include "get-dynamic-info.h".
63483         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
63484         * elf/setup-vdso.h: Here.  New file.
63485         * elf/rtld.c: Include "setup-vdso.h".
63486         (dl_main): Call setup_vdso.
63487
63488 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
63489
63490         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
63491         creal in comment listing functions tested.  List finite, isinf,
63492         isnan, isless, islessequal, isgreater, isgreaterequal,
63493         islessgreater, isunordered, lgamma_r and pow10 as functions and
63494         macros not tested.  Mention which functions not tested are aliases
63495         for other functions.  Fix typo.  Note that signs of NaNs are not
63496         tested.
63497
63498         * scripts/config.guess: Update from config.git.
63499         * scripts/config.sub: Likewise.
63500
63501 2012-10-04  Roland McGrath  <roland@hack.frob.com>
63502
63503         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
63504         * misc/madvise.c (madvise): Renamed to __madvise.
63505         Make madvise a weak alias.
63506         * include/sys/mman.h: Declare __madvise.
63507         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
63508         * sysdeps/unix/syscalls.list
63509         (madvise): Make __madvise the strong name, and madvise a weak alias.
63510         * sysdeps/unix/sysv/linux/syscalls.list
63511         (madvise, mmap): Remove redundant entries.
63512         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
63513         * malloc/malloc.c (mtrim): Likewise.
63514         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
63515
63516 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63517
63518         * sysdeps/mach/hurd/dl-cache.c: File removed.
63519         * config.h.in (USE_LDCONFIG): New #undef.
63520         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
63521         * configure: Regenerated.
63522         * elf/Makefile (dl-routines): Add dl-cache only under
63523         [$(use-ldconfig) = yes].
63524         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
63525         cache on [USE_LDCONFIG].
63526         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
63527         [USE_LDCONFIG].
63528         * elf/rtld.c (dl_main): Likewise.
63529
63530 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
63531
63532         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
63533         _SC_LEVEL4_CACHE_LINESIZE.
63534
63535 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63536
63537         * sysdeps/unix/bsd/confstr.h: File removed.
63538
63539 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
63540
63541         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
63542         sys/sdt-config.h.
63543
63544 2012-10-02  Roland McGrath  <roland@hack.frob.com>
63545
63546         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
63547         Make 'mapoff' field ElfW(Off) rather than off_t.
63548
63549 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63550
63551         * nscd/Makefile: Remove nscd-cflags and all its users.
63552         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
63553         (CFLAGS-nonlib): Add compiler flags for nscd modules.
63554
63555         [BZ #10631]
63556         * malloc.c (malloc_printerr): Clarify error message.
63557
63558 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
63559
63560         [BZ #14648]
63561         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63562         Set bit_FMA_Usable if FMA is supported.
63563         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
63564         macro.
63565         (bit_FMA4_Usable): Updated.
63566         (index_FMA_Usable): New macro.
63567         (CPUID_FMA): Likewise.
63568         (HAS_FMA): Defined with bit_FMA_Usable.
63569
63570 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63571
63572         * bits/types.h (__swblk_t): Type removed.
63573         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
63574         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
63575         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63576         (__SWBLK_T_TYPE): Likewise.
63577         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
63578         (__SWBLK_T_TYPE): Likewise.
63579         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63580         (__SWBLK_T_TYPE): Likewise.
63581         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63582         (__SWBLK_T_TYPE): Likewise.
63583
63584 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
63585             Honza Horak <hhorak@redhat.com>
63586
63587         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
63588         (xdr_mapname): Use YPMAXMAP as maxsize.
63589         (xdr_peername): Use YPMAXPEER as maxsize.
63590         (xdr_keydat): Use YPAXRECORD as maxsize.
63591         (xdr_valdat): Use YPMAXRECORD as maxsize.
63592
63593 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63594
63595         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
63596
63597         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
63598         * csu/init-first.c: ... here.
63599         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
63600         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
63601         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63602         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
63603         * sysdeps/i386/init-first.c: File removed.
63604         * sysdeps/sh/init-first.c: File removed.
63605
63606 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
63607
63608         [BZ #14645]
63609         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
63610         if x * y might underflow to zero and z is zero.
63611         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63612         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63613         * math/libm-test.inc (min_subnorm_value): New variable.
63614         (fma_test): Add more tests.
63615         (fma_test_towardzero): Likewise.
63616         (fma_test_downward): Likewise.
63617         (fma_test_upward): Likewise.
63618         (initialize): Set min_subnorm_value.
63619
63620 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
63621
63622         [BZ #14638]
63623         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
63624         0 + 0.
63625         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
63626         mode for addition resulting in exact zero.
63627         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
63628         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
63629         exact 0 + 0.
63630         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63631         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63632         * math/libm-test.inc (fma_test): Add more tests.
63633         (fma_test_towardzero): New function.
63634         (fma_test_downward): Likewise.
63635         (fma_test_upward): Likewise.
63636         (main): Call the new functions.
63637
63638 2012-09-28  David S. Miller  <davem@davemloft.net>
63639
63640         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
63641
63642 2012-09-28  Roland McGrath  <roland@hack.frob.com>
63643
63644         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
63645         instead of SIGALRM.
63646
63647         * sysdeps/gnu/_G_config.h: Moved to ...
63648         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
63649         * sysdeps/mach/hurd/_G_config.h: Moved to ...
63650         * sysdeps/generic/_G_config.h: ... here.
63651
63652         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
63653
63654         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
63655
63656         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
63657         Conditionalize target on [libnss_test1.so-version].
63658
63659         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
63660
63661         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
63662         (elfobjdir): Move out of conditionals.
63663
63664         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
63665         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
63666         (__nss_lookup_function): Conditionalize label remove_from_tree on
63667         [!DO_STATIC_NSS || SHARED], matching its only use.
63668
63669 2012-09-28  David S. Miller  <davem@davemloft.net>
63670
63671         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
63672         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
63673         file.
63674         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63675         sysdep_routines.
63676         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63677         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
63678         when HWCAP_SPARC_CRYPTO is present.
63679
63680 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63681
63682         * io/tst-mknodat.c: Create a FIFO instead of a socket.
63683
63684 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
63685
63686         [BZ #6530]
63687         * stdio-common/vfprintf.c (process_string_arg): Revert
63688         2000-07-22 change.
63689
63690 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
63691
63692         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
63693         for testcase.
63694         * stdio-common/tst-sprintf.c: Include <locale.h>
63695         (main): Test sprintf's handling of incomplete multibyte
63696         characters.
63697
63698 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
63699
63700         * elf/dl-runtime.c (VERSYMIDX): Removed.
63701         * elf/dl-version.c (VERSYMIDX): Likewise.
63702         * elf/do-rel.h (VERSYMIDX): Likewise.
63703         (VALIDX): Likewise.
63704         * elf/dynamic-link.h (VERSYMIDX): Likewise.
63705         * elf/rtld.c (VALIDX): Likewise.
63706         (ADDRIDX): Likewise.
63707         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
63708         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
63709         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
63710         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
63711         (VALIDX): Likewise.
63712         (ADDRIDX): Likewise.
63713
63714 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63715
63716         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
63717
63718 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
63719
63720         [BZ #11438]
63721         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
63722         to global scope.
63723         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63724         addresses are in the same scope as 192.0.2/24.
63725         * posix/gai.conf: Document new scope table defaults.
63726
63727 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63728
63729         [BZ #5298]
63730         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
63731         for ftell.  Compute offsets from write pointers instead.
63732         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63733
63734 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63735
63736         [BZ #14543]
63737         * libio/Makefile (tests): New test case tst-fseek.
63738         * libio/tst-fseek.c: New test case to verify that fseek/ftell
63739         combination works in wide mode.
63740         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
63741         state when the external buffer state changes.
63742
63743 2012-09-27  David S. Miller  <davem@davemloft.net>
63744
63745         [BZ #14376]
63746         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
63747         pass reloc->r_addend in as the 'high' argument to
63748         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
63749
63750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63751
63752 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63753
63754         * rt/tst-aio2.c: Include <pthread.h>.
63755         * rt/tst-aio3.c: Likewise.
63756
63757 2012-09-27  Steve Ellcey  <sellcey@mips.com>
63758
63759         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
63760
63761 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
63762
63763         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
63764         contents on [SHARED].
63765
63766 2012-09-26  Marek Polacek  <polacek@redhat.com>
63767
63768         [BZ #14530]
63769         [BZ #13741]
63770         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
63771         for C++ and GCC <4.3 as well as for non GCC compilers.
63772
63773 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
63774
63775         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63776
63777 2012-09-25  Roland McGrath  <roland@hack.frob.com>
63778
63779         * Makefile.in (all, install): Declare with .PHONY.
63780         Reported by Michael Hope <michael.hope@linaro.org>.
63781
63782 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63783
63784         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
63785         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
63786         system header.
63787         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
63788         Likewise.
63789         (sydep_routines): Add the new and the internal functions.
63790         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
63791         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
63792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
63793         (GLIBC_2.17): Add the new function.
63794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
63795         (GLIBC_2.17): Likewise.
63796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
63797         (GLIBC_2.17): Likewise.
63798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
63799         (GLIBC_2.17): Likewise.
63800         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
63801
63802 2012-09-25  Alan Modra  <amodra@gmail.com>
63803
63804         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
63805         Add release barrier before setting once_control to say
63806         initialisation is done.  Add hints on lwarx.  Use macro in
63807         place of isync.
63808         (clear_once_control): Add release barrier.
63809
63810 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63811
63812         [BZ #13629]
63813         * math/s_clog.c (__clog): Handle more values close to |z| = 1
63814         specially.
63815         * math/s_clog10.c (__clog10): Likewise.
63816         * math/s_clog10f.c (__clog10f): Likewise.
63817         * math/s_clog10l.c (__clog10l): Likewise.
63818         * math/s_clogf.c (__clogf): Likewise.
63819         * math/s_clogl.c (__clogl): Likewise.
63820         * math/Makefile (libm-calls): Add x2y2m1.
63821         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
63822         (__x2y2m1): Likewise.
63823         (__x2y2m1l): Likewise.
63824         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
63825         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
63826         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
63827         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
63828         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
63829         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
63830         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
63831         * sysdeps/i386/fpu/libm-test-ulps: Update.
63832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63833
63834         [BZ #14621]
63835         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
63836         int as type of variable DEPTH.
63837         (glob): Use size_t instead of int as type of variables NEWCOUNT
63838         and OLD_PATHC.
63839
63840 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63841
63842         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
63843         Add s_sincosf-sse2.
63844         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
63845         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
63846         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
63847         macros for using routine as __sincosf_ia32.
63848         Use macro for function declaration and weak_alias.
63849         * sysdeps/i386/fpu/libm-test-ulps: Update.
63850
63851         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
63852         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63853
63854         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
63855         subnormal argument.
63856         * math/s_cexpf.c (__cexpf): Likewise.
63857         * math/s_csinf.c (__csinf): Likewise.
63858         * math/s_csinhf.c (__csinhf): Likewise.
63859         * math/s_ctanf.c (__ctanf): Likewise.
63860         * math/s_ctanhf.c (__ctanhf): Likewise.
63861         * math/s_ccosh.c (__ccoshf): Likewise.
63862         * math/s_cexp.c (__cexpl): Likewise.
63863         * math/s_csin.c (__csin): Likewise.
63864         * math/s_csinh.c (__csinh): Likewise.
63865         * math/s_ctan.c (__ctan): Likewise.
63866         * math/s_ctanh.c (ctanh): Likewise.
63867         * math/s_ccoshl.c (__ccoshl): Likewise.
63868         * math/s_cexpl.c (__cexpl): Likewise.
63869         * math/s_csinl.c (__csinl): Likewise.
63870         * math/s_csinhl.c (__csinhl): Likewise.
63871         * math/s_ctanl.c (__ctanl): Likewise.
63872         * math/s_ctanhl.c (__ctanhl): Likewise.
63873
63874 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63875
63876         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
63877         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
63878         (_IO_off_t): Define to __off_t, not _G_off_t.
63879         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
63880         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
63881         (_IO_wint_t): Define to wint_t, not _G_wint_t.
63882         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
63883         type of __dummy and __dummy2 fields.
63884         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
63885         (_G_ssize_t): Likewise.
63886         (_G_off_t): Likewise.
63887         (_G_pid_t): Likewise.
63888         (_G_uid_t): Likewise.
63889         (_G_wchar_t): Likewise.
63890         (_G_wint_t): Likewise.
63891         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
63892         (_G_ssize_t): Likewise.
63893         (_G_off_t): Likewise.
63894         (_G_pid_t): Likewise.
63895         (_G_uid_t): Likewise.
63896         (_G_wchar_t): Likewise.
63897         (_G_wint_t): Likewise.
63898         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
63899         (_G_ssize_t): Likewise.
63900         (_G_off_t): Likewise.
63901         (_G_pid_t): Likewise.
63902         (_G_uid_t): Likewise.
63903         (_G_wchar_t): Likewise.
63904         (_G_wint_t): Likewise.
63905
63906 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63907
63908         * malloc/arena.c: Include malloc-sysdep.h.
63909         (shrink_heap): Use check_may_shrink_heap to decide if madvise
63910         is sufficient to shrink the heap or an unmap is needed.
63911         * sysdeps/generic/malloc-sysdep.h: New file.  Define
63912         new function check_may_shrink_heap.
63913         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
63914         new function check_may_shrink_heap.
63915
63916 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63917
63918         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
63919         comments.
63920
63921 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
63922
63923         * catgets/test-gencat.sh: Add "set -e".
63924         * elf/tst-pathopt.sh: Likewise.
63925         * grp/tst_fgetgrent.sh: Likewise.
63926         * iconvdata/run-iconv-test.sh: Likewise.
63927         * intl/tst-gettext.sh: Likewise.
63928         * intl/tst-gettext2.sh: Likewise.
63929         * intl/tst-gettext4.sh: Likewise.
63930         * intl/tst-gettext6.sh: Likewise.
63931         * intl/tst-translit.sh: Likewise.
63932         * io/ftwtest-sh: Likewise.
63933         * libio/test-freopen.sh: Likewise.
63934         * malloc/tst-mtrace.sh: Likewise.
63935         * posix/globtest.sh: Likewise.
63936         * posix/tst-getconf.sh: Likewise.
63937         * posix/wordexp-tst.sh: Likewise.
63938         * stdio-common/tst-printf.sh: Likewise.
63939         * stdio-common/tst-unbputc.sh: Likewise.
63940         * stdlib/tst-fmtmsg.sh: Likewise.
63941         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63942         * catgets/Makefile: Do not specify -e option when running
63943         testsuite shell scripts.
63944         * elf/Makefile: Likewise.
63945         * grp/Makefile: Likewise.
63946         * iconvdata/Makefile: Likewise.
63947         * intl/Makefile: Likewise.
63948         * io/Makefile: Likewise.
63949         * libio/Makefile: Likewise.
63950         * malloc/Makefile: Likewise.
63951         * posix/Makefile: Likewise.
63952         * stdio-common/Makefile: Likewise.
63953         * stdlib/Makefile: Likewise.
63954         * sysdeps/x86_64/Makefile: Likewise.
63955
63956         * io/ftwtest-sh: Add copyright header.
63957         * posix/globtest.sh: Likewise.
63958         * posix/tst-getconf.sh: Likewise.
63959         * posix/wordexp-tst.sh: Likewise.
63960         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63961
63962 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
63963
63964         [BZ #13679]
63965         * Makeconfig (+link): Defined as $(+link-static) if
63966         $(build-shared) isn't yes.
63967         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
63968         isn't yes.
63969         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
63970
63971         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
63972
63973         [BZ #14562]
63974         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
63975         new chunk size with MALLOC_ALIGN_MASK.
63976
63977 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
63978
63979         [BZ #5044]
63980         * stdio-common/printf_fphex.c: Include <stdbool.h> and
63981         <rounding-mode.h>.
63982         (__printf_fphex): Determine rounding using get_rounding_mode and
63983         round_away.
63984         * stdio-common/tst-printf-round.c (struct hex_test): New
63985         structure.
63986         (hex_tests): New variable.
63987         (test_hex_in_one_mode): New function.
63988         (do_test): Also run tests for hex float output.
63989
63990 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
63991
63992         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63993         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63994         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
63995         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63996         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63997         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
63998         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
63999         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64000
64001 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
64002
64003         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
64004         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
64005         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
64006         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
64007
64008 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
64009
64010         [BZ #14579]
64011         * elf/rtld.c (dl_main): Limit the check for self loading to normal
64012         mode only.
64013         * elf/tst-rtld-load-self.sh: New test.
64014         * elf/Makefile: Run it.
64015
64016 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
64017
64018         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
64019         (tst-writev-ENV): Remove.
64020         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
64021
64022 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
64023
64024         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
64025
64026 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
64027
64028         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
64029         unconditional.
64030         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
64031         Likewise.
64032         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
64033         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
64034         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
64035         Likewise.
64036
64037 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
64038
64039         [BZ #14587]
64040         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
64041         * config.make.in (have-cpp-asm-debuginfo): Removed.
64042         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
64043         * configure: Regenerated.
64044
64045 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
64046
64047         [BZ #5044]
64048         * stdio-common/printf_fp.c: Include <stdbool.h> and
64049         <rounding-mode.h>.
64050         (___printf_fp): Determine rounding using get_rounding_mode and
64051         round_away.
64052         * stdio-common/tst-printf-round.c: New file.
64053         * stdio-common/Makefile (tests): Add tst-printf-round.
64054         (link-libm): New variable.
64055         ($(objpfx)tst-printf-round): Depend in $(link-libm).
64056
64057 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
64058
64059         [BZ #14576]
64060         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
64061         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
64062         Likewise.
64063         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
64064         Likewise.
64065
64066 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
64067
64068         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
64069         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64070         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64071         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64072
64073 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
64074
64075         [BZ #14518]
64076         * include/rounding-mode.h: New file.
64077         * sysdeps/generic/get-rounding-mode.h: Likewise.
64078         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
64079         * stdlib/strtod_l.c: Include <rounding-mode.h>.
64080         (MAX_VALUE): New macro.
64081         (MIN_VALUE): Likewise.
64082         (overflow_value): New function.
64083         (underflow_value): Likewise.
64084         (round_and_return): Use overflow_value and underflow_value to
64085         determine return values in overflow and underflow cases.  Use
64086         round_away to determine rounding depending on rounding mode.
64087         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
64088         determine return values in overflow and underflow cases.
64089         * stdlib/tst-strtod-round.c: Include <fenv.h>.
64090         (struct test_results): New structure.
64091         (struct test): Use struct test_results to store expected results
64092         for all rounding modes.
64093         (TEST): Include expected results for all rounding modes.
64094         (test_in_one_mode): New function.
64095         (do_test): Use test_in_one_mode to compute and check results.
64096         Check results for all rounding modes.
64097         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
64098         $(link-libm).
64099
64100 2012-12-09  Allan McRae  <allan@archlinux.org>
64101
64102         * sysdeps/i386/fpu/libm-test-ulps: Update
64103
64104 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
64105
64106         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
64107         (_G_int32_t): Likewise.
64108         (_G_uint16_t): Likewise.
64109         (_G_uint32_t): Likewise.
64110         (_G_HAVE_BOOL): Likewise.
64111         (_G_HAVE_ATEXIT): Likewise.
64112         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64113         (_G_HAVE_IO_FILE_OPEN): Likewise.
64114         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
64115         (_G_int32_t): Likewise.
64116         (_G_uint16_t): Likewise.
64117         (_G_uint32_t): Likewise.
64118         (_G_HAVE_BOOL): Likewise.
64119         (_G_HAVE_ATEXIT): Likewise.
64120         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64121         (_G_HAVE_IO_FILE_OPEN): Likewise.
64122         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
64123         (_G_int32_t): Likewise.
64124         (_G_uint16_t): Likewise.
64125         (_G_uint32_t): Likewise.
64126         (_G_HAVE_BOOL): Likewise.
64127         (_G_HAVE_ATEXIT): Likewise.
64128         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64129         (_G_HAVE_IO_FILE_OPEN): Likewise.
64130
64131 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
64132
64133         * csu/libc-tls.c: Update copyright years.
64134
64135 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
64136
64137         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
64138         [!_G_USING_THUNKS]: Remove conditional code.
64139         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
64140         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
64141
64142         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
64143         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
64144         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64145         (_G_VTABLE_LABEL_PREFIX): Likewise.
64146         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64147         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64148         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64149         (_G_VTABLE_LABEL_PREFIX): Likewise.
64150         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64151         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64152         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64153         (_G_VTABLE_LABEL_PREFIX): Likewise.
64154         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64155
64156 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
64157
64158         * libio/Makefile: Include ../Makeconfig before tests.
64159         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
64160         only if $(build-shared) is yes.
64161
64162         * iconv/gconv_db.c: Update copyright years.
64163
64164 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64165
64166         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
64167         unwind info if defined PIC. Fix special cases description.
64168         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
64169
64170         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
64171         DP_HI_MASK entry.
64172         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
64173
64174 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
64175
64176         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
64177
64178         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
64179         is NULL.
64180
64181         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
64182         (LDLIBS-tst-chk4): This.
64183         (LDFLAGS-tst-chk5): Renamed to ...
64184         (LDLIBS-tst-chk5): This.
64185         (LDFLAGS-tst-chk6): Renamed to ...
64186         (LDLIBS-tst-chk6): This.
64187         (LDFLAGS-tst-lfschk4): Renamed to ...
64188         (LDLIBS-tst-lfschk4): This.
64189         (LDFLAGS-tst-lfschk5): Renamed to ...
64190         (LDLIBS-tst-lfschk5): This.
64191         (LDFLAGS-tst-lfschk6): Renamed to ...
64192         (LDLIBS-tst-lfschk6): This.
64193
64194         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
64195         on $(common-objpfx)soversions.mk.
64196
64197 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
64198
64199         [BZ #10014]
64200         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
64201         example host name.
64202
64203 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64204
64205         * malloc/arena.c (arena_get_retry): New function that gets
64206         another arena for the caller to try its request on.
64207         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
64208         current arena cannot fulfill the request.
64209         (__libc_memalign): Likewise.
64210         (__libc_memalign): Likewise.
64211         (__libc_pvalloc): Likewise.
64212         (__libc_calloc): Likewise.
64213
64214 2012-09-05  John Tobey  <john.tobey@gmail.com>
64215
64216         [BZ #13542]
64217         * manual/arith.texi (Operations on Complex): Fix description
64218         of carg branch cut.
64219
64220 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64221
64222         [BZ #10014]
64223         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
64224         host name.
64225
64226         [BZ #10038]
64227         * manual/memory.texi (Memory): Make order of menu items match
64228         order of sections.
64229
64230 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64231
64232         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
64233         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
64234         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
64235
64236 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64237
64238         * csu/libc-tls.c (static_dtv): Renamed to ...
64239         (_dl_static_dtv): This.  Make it global.
64240         (_dl_initial_dtv): Removed.
64241         (__libc_setup_tls): Updated.
64242         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
64243         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
64244         DL_INITIAL_DTV.
64245
64246 2012-09-06  Petr Machata  <pmachata@redhat.com>
64247
64248         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
64249         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
64250         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
64251         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
64252
64253 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64254
64255         [BZ #14545]
64256         * csu/libc-tls.c (_dl_initial_dtv): New variable.
64257         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
64258         freeing dtv[-1].
64259
64260 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64261
64262         [BZ #14544]
64263         * Makeconfig (link-static-before-libc): Replace $(+prector)
64264         with $(+prectorT).
64265         (link-static-after-libc): Replace $(+postctor) with
64266         $(+postctorT).
64267         (link-bounded): Replace $(+prector)/$(+postctor) with
64268         $(+prectorT)/$(+postctorT).
64269         (+prectorT): New macro.
64270         (+postctorT): Likewise.
64271
64272 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64273
64274         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
64275         (round_str): Handle values above the maximum for IBM long double
64276         as inexact.
64277         * stdlib/tst-strtod-round.c (tests): Regenerated.
64278
64279 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64280
64281         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
64282         assembler flag.
64283         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
64284         zarch_nohighgprs around the zarch optimized routines.
64285         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
64286         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
64287         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
64288         for zarch.
64289
64290 2012-09-05  David S. Miller  <davem@davemloft.net>
64291
64292         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64293
64294         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
64295         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
64296         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
64297         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
64298         entries.
64299
64300 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64301
64302         * malloc/arena.c: Fold copyright years.
64303         * malloc/mcheck.c, malloc/memusage.c: Likewise.
64304
64305 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64306
64307         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
64308
64309 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64310
64311         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
64312
64313 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64314
64315         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
64316         change internal state upon failure.
64317
64318 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64319
64320         * malloc/mcheck.c (mcheck_check_all): Fix typo.
64321         * malloc/memusage.c (mmap): Likewise.
64322         (mmap64, mremap): Likewise.  Adjust name in comment.
64323
64324 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64325
64326         * libio/fileops.c: Fix typos in comments.
64327         * libio/oldfileops.c: Likewise.
64328         * libio/wfileops.c: Likewise.
64329
64330 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64331
64332         [BZ #1349]
64333         * malloc/Makefile (tests): Add tst-malloc-usable test case.
64334         (tst-malloc-usable-ENV): Set environment for test case.
64335         * malloc/hooks.c (malloc_check_get_size): New function to get
64336         requested size.
64337         * malloc/malloc.c (musable): Use malloc_check_get_size.
64338         * malloc/tst-malloc-usable.c: New test case.
64339
64340 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64341
64342         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
64343
64344 2012-09-05  Allan McRae  <allan@archlinux.org>
64345
64346         [BZ #13966]
64347         * configure.in (CXX_SYSINCLUDES): Use compiler output to
64348         determine header location.
64349         * configure: Regenerated.
64350
64351 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64352
64353         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
64354         float format.
64355         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
64356         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
64357         format.
64358         (test): Regenerate.
64359
64360 2012-09-04  David S. Miller  <davem@davemloft.net>
64361
64362         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
64363         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
64364         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
64365
64366 2012-09-04  Florian Weimer  <fweimer@redhat.com>
64367
64368         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
64369         failures.
64370
64371         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
64372
64373 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
64374
64375         [BZ #9914]
64376         * libio/iogetdelim.c: Include <limits.h>.
64377         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
64378         + len + 1 would overflow.
64379
64380 2012-09-03  Andreas Jaeger  <aj@suse.de>
64381
64382         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64383         * sysdeps/i386/fpu/libm-test-ulps: Update.
64384
64385 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64386
64387         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64388         Add s_sinf-sse2, s_conf-sse2.
64389
64390         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
64391         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
64392         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
64393         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
64394
64395         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
64396         for using routine as __sinf_ia32.
64397         Use macro for function declaration and weak_alias.
64398         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
64399         for using routine as __cosf_ia32.
64400         Use macro for function declaration and weak_alias.
64401
64402         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
64403         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
64404
64405         * sysdeps/x86_64/fpu/s_sinf.S: New file.
64406         * sysdeps/x86_64/fpu/s_cosf.S: New file.
64407         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64408
64409         * math/libm-test.inc (cos_test): Add more test cases.
64410         (sin_test): Likewise.
64411         (sincos_test): Likewise.
64412
64413 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64414
64415         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
64416         (IFUNC_RESOLVE): Make pointers to the specialized implementations
64417         hidden.
64418         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64419
64420 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
64421
64422         [BZ #14538]
64423         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
64424         first element of the GOT.
64425         (elf_machine_load_address): Return the difference between
64426         the runtime address of _DYNAMIC and elf_machine_dynamic ().
64427
64428 2012-09-01  Allan McRae  <allan@archlinux.org>
64429
64430         [BZ #13412]
64431         * configure.in (AWK): Require gawk version 3.0 or later.
64432         * configure: Regenerated.
64433
64434 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
64435
64436         * sysdeps/unix/sysv/linux/kernel-features.h
64437         (__ASSUME_POSIX_CPU_TIMERS): Remove.
64438         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64439         [__NR_clock_getres]: Make code unconditional.
64440         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
64441         (clock_getcpuclockid): Remove code left unreachable by removal of
64442         conditionals.
64443         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
64444         code unconditional.
64445         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64446         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64447         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
64448         Make code unconditional.
64449         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64450         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64451         * sysdeps/unix/sysv/linux/clock_settime.c
64452         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
64453         conditional code.
64454         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
64455         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64456
64457 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
64458
64459         [BZ #14476]
64460         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
64461         scripts/test-installation.pl.
64462
64463         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
64464         and $ld_so_version if it is set.
64465
64466 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
64467
64468         [BZ #14516]
64469         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
64470         failure if reading from procfs failed.
64471         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
64472
64473 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64474
64475         * sysdeps/unix/sysv/linux/kernel-features.h
64476         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
64477         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64478         Remove conditional code.
64479         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64480         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
64481         Remove conditional code.
64482         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64483         * sysdeps/unix/sysv/linux/i386/fxstat.c
64484         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64485         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64486         * sysdeps/unix/sysv/linux/i386/fxstatat.c
64487         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64488         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64489         * sysdeps/unix/sysv/linux/i386/lxstat.c
64490         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64491         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64492         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
64493         Remove conditional code.
64494         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64495         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64496         Remove conditional code.
64497         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64498         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
64499         <kernel-features.h>.
64500         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
64501         Remove.
64502         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
64503         Remove conditional code.
64504         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64505         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
64506         Remove conditional.
64507
64508 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
64509
64510         [BZ #5400]
64511         * NEWS: Add fixed bug number.
64512
64513 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64514
64515         [BZ #14519]
64516         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
64517         underflowing exponent in case of negative sign.
64518         * stdlib/tst-strtod-round-data: Add more tests.
64519         * stdlib/tst-strtod-round.c (tests): Regenerated.
64520
64521         [BZ #3479]
64522         * stdlib/strtod_l.c (NDIG): Remove.
64523         (HEXNDIG): Likewise.
64524         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
64525         smallest representable value.
64526         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
64527         lie within an exact representation of 1/2 ulp of the result.
64528         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
64529         unconditionally.
64530         (TENS_P9_IDX): Define unconditionally.
64531         (TENS_P9_SIZE): Likewise.
64532         (TENS_P10_IDX): Likewise.
64533         (TENS_P10_SIZE): Likewise.
64534         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
64535         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
64536         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
64537         entries for 10^2^13 and 10^2^14.
64538         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
64539         (TENS_P13_IDX): Define.
64540         (TENS_P13_SIZE): Likewise.
64541         (TENS_P14_IDX): Likewise.
64542         (TENS_P14_SIZE): Likewise.
64543         (_fpioconst_pow10): Change array size to
64544         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
64545         unconditional.
64546         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
64547         1024]: Add entries for 10^2^13 and 10^2^14.
64548         [LAST_POW10 > _LAST_POW10]: Remove #error.
64549         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
64550         (_fpioconst_pow10): Change array size to
64551         FPIOCONST_POW10_ARRAY_SIZE.
64552         * stdlib/gen-fpioconst.c: New file.
64553         * stdlib/gen-tst-strtod-round.c: Likewise.
64554         * stdlib/tst-strtod-round-data: Likewise.
64555         * stdlib/tst-strtod-round.c: Likewise.
64556         * stdlib/Makefile (tests): Add tst-strtod-round.
64557
64558         [BZ #14459]
64559         * stdlib/strtod_l.c: Include <stdint.h>.
64560         (NDEBUG): Do not define.
64561         (round_and_return): Change EXPONENT parameter to type intmax_t.
64562         Rearrange calculations to avoid internal overflow possibilities.
64563         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
64564         Rearrange calculations to avoid internal overflow possibilities.
64565         Assert that number fits inside MPNSIZE limbs.
64566         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
64567         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
64568         calculations and add assertions to avoid internal overflow
64569         possibilities.  Add casts to avoid signed/unsigned operations.
64570         * stdlib/tst-strtod-overflow.c: New file.
64571         * stdlib/Makefile (tests): Add tst-strtod-overflow.
64572
64573 2012-08-25  Marek Polacek  <polacek@redhat.com>
64574
64575         * time/time.h: Fix some typos in comments.
64576
64577 2012-08-23  Roland McGrath  <roland@hack.frob.com>
64578
64579         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
64580         * posix/tst-rfc3484-2.c: Likewise.
64581         * posix/tst-rfc3484-3.c: Likewise.
64582
64583 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
64584
64585         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
64586         (EF_ARM_ABI_FLOAT_HARD): Likewise.
64587
64588 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
64589
64590         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
64591         #include of fxstatat64.c.
64592
64593 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64594
64595         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
64596         * shadow/getspent_r.c: Likewise.
64597         * shadow/getspnam.c: Likewise.
64598         * shadow/getspnam_r.c: Likewise.
64599         * gshadow/getsgent.c: Likewise.
64600         * gshadow/getsgent_r.c: Likewise.
64601         * gshadow/getsgnam.c: Likewise.
64602         * gshadow/getsgnam_r.c: Likewise.
64603         * inet/getnetbyad.c: Likewise.
64604         * inet/getnetbyad_r.c: Likewise.
64605         * inet/getnetbynm.c: Likewise.
64606         * inet/getnetbynm_r.c: Likewise.
64607         * inet/getnetent.c: Likewise.
64608         * inet/getnetent_r.c: Likewise.
64609         * inet/getproto.c: Likewise.
64610         * inet/getproto_r.c: Likewise.
64611         * inet/getprtent.c: Likewise.
64612         * inet/getprtent_r.c: Likewise.
64613         * inet/getprtname.c: Likewise.
64614         * inet/getprtname_r.c: Likewise.
64615         * inet/getrpcbyname.c: Likewise.
64616         * inet/getrpcbyname_r.c: Likewise.
64617         * inet/getrpcbynumber.c: Likewise.
64618         * inet/getrpcbynumber_r.c: Likewise.
64619         * inet/getrpcent.c: Likewise.
64620         * inet/getrpcent_r.c: Likewise.
64621         * inet/getaliasent.c: Likewise.
64622         * inet/getaliasent_r.c: Likewise.
64623         * inet/getaliasname.c: Likewise.
64624         * inet/getaliasname_r.c: Likewise.
64625         * nscd/getgrgid_r.c: Likewise.
64626         * nscd/getgrnam_r.c: Likewise.
64627         * nscd/gethstbyad_r.c: Likewise.
64628         * nscd/gethstbynm3_r.c: Likewise.
64629         * nscd/getpwnam_r.c: Likewise.
64630         * nscd/getpwuid_r.c: Likewise.
64631         * nscd/getsrvbynm_r.c: Likewise.
64632         * nscd/getsrvbypt_r.c: Likewise.
64633         * nscd/gai.c: Likewise.
64634
64635         * configure.in (build_nscd): New substituted variable, set
64636         by --disable-build-nscd and defaults to $use_nscd.
64637         * configure: Regenerated.
64638         * config.make.in (build-nscd): New substituted variable.
64639         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
64640         Change conditional to require [$(build-nscd) = yes] as well.
64641         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
64642
64643         [BZ# 13696]
64644         * configure.in (use_nscd): New substituted variable, set by
64645         --disable-nscd.  If enabled, define USE_NSCD.
64646         * configure: Regenerated.
64647         * config.h.in: Add USE_NSCD.
64648         * config.make.in (use-nscd): New substituted variable.
64649         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
64650         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
64651         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
64652         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
64653         (CFLAGS-getgrnam_r.c): Likewise.
64654         (CFLAGS-initgroups.c): Likewise.
64655         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
64656         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
64657         Variables removed.
64658         * inet/getnetgrent_r.c
64659         (nscd_setnetgrent): New function, broken out of ...
64660         (setnetgrent): ... here.  Call it.
64661         (innetgr): Conditionalize nscd bits on [USE_NSCD].
64662         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
64663         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
64664         * nscd/Makefile (routines, aux): Move definitions after include of
64665         Makeconfig.  Conditionalize on [$(use-nscd) != no].
64666         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
64667         Conditionalize on [USE_NSCD].
64668         (is_nscd, nscd_init_cb): Likewise.
64669         (nss_load_library): Conditionalize init callback on [USE_NSCD].
64670         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
64671         * nss/nss_db/db-init.c: Likewise.
64672         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
64673         [USE_NSCD].
64674         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
64675         (make_request): Use it.
64676         (cache_valid_p): New function.
64677         (__check_pf): Use it.
64678         * NEWS: Add item for --disable-nscd.
64679
64680 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
64681
64682         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
64683         to support sed >= 4.2.1-20-ga9bf076.
64684         * configure: Regenerated.
64685
64686 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64687
64688         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
64689         Conditionalize whole body on [IREL].
64690
64691 2012-08-22  Jeff Law <law@redhat.com>
64692
64693         [BZ #14505]
64694         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
64695         if the family is PF_UNSPEC.
64696
64697 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
64698
64699         * Makerules (lib-version): Rename from V.
64700         (install-lib-nosubdir): Change V to lib-version.
64701
64702 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
64703
64704         [BZ #14252]
64705         * powerpc32/power6/wcschr.c: New file.
64706         * powerpc32/power6/wcscpy.c: New file.
64707         * powerpc32/power6/wcsrchr.c: New file.
64708         * powerpc64/power6/wcschr.c: New file.
64709         * powerpc64/power6/wcscpy.c: New file.
64710         * powerpc64/power6/wcsrchr.c: New file.
64711
64712 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64713
64714         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
64715         (two_way_short_needle): Use it.
64716         * string/strstr.c (AVAILABLE1_USES_J): Define.
64717         * string/strcasestr.c: Likewise.
64718
64719         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
64720         array references.
64721         * string/strcasestr.c (TOLOWER): Make side-effect safe.
64722
64723         [BZ #11607]
64724         * NEWS: Add an entry.
64725         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
64726         define their defaults.
64727         (two_way_short_needle): Detect end-of-string on-the-fly.
64728         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
64729         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
64730         * string/bug-strcasestr1.c: New test.
64731         * string/Makefile: Run it.
64732
64733 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64734
64735         [BZ #11607]
64736         * string/str-two-way.h (two_way_short_needle): Optimize matching of
64737         the first character.
64738
64739 2012-08-21  Roland McGrath  <roland@hack.frob.com>
64740
64741         * csu/elf-init.c (__libc_csu_irel): Function removed.
64742         * csu/libc-start.c (apply_irel): New function.
64743         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
64744
64745 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
64746
64747         * sysdeps/unix/sysv/linux/kernel-features.h
64748         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
64749         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64750         <kernel-features.h>.
64751         [__NR_fadvise64_64]: Make code unconditional.
64752         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
64753         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64754         !__NR_fadvise64_64)]: Likewise.
64755         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64756         !__NR_fadvise64_64))]: Likewise.
64757         [__NR_fadvise64]: Make code unconditional.
64758         [!__NR_fadvise64]: Remove conditional code.
64759         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
64760         <kernel-features.h>.
64761         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64762         unconditional.
64763         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64764         conditional code.
64765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
64766         not include <kernel-features.h>.
64767         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64768         unconditional.
64769         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64770         conditional code.
64771         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
64772         include <kernel-features.h>.
64773         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64774         unconditional.
64775         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64776         conditional code.
64777
64778 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
64779
64780         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
64781         slight instruction rearrangements per scrollpipe analysis.
64782         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
64783
64784 2012-08-20  Roland McGrath  <roland@hack.frob.com>
64785
64786         * manual/syslog.texi (syslog; vsyslog, closelog):
64787         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
64788         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
64789
64790         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
64791         DSOCAPS to match condition on defining it.
64792
64793 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
64794
64795         * sysdeps/unix/sysv/linux/kernel-features.h
64796         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
64797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
64798         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64799         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
64801         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64802         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
64804         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64805         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64806
64807         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
64808         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
64809
64810         * sysdeps/unix/sysv/linux/kernel-features.h
64811         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
64812         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
64813         unconditional.
64814         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64815         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
64816         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64817         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64818         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
64819         Make code unconditional.
64820         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64821         (__mmap64) [!__NR_mmap2]: Likewise.
64822         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
64823         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64824         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64825         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
64826         [__NR_mmap2]: Make code unconditional.
64827         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64828         (__mmap64) [!__NR_mmap2]: Likewise.
64829
64830 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64831
64832         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
64833
64834 2012-08-18  Andreas Jaeger  <aj@suse.de>
64835
64836         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
64837
64838 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64839
64840         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
64841         * include/unistd.h (__have_sock_cloexec): Likewise.
64842         (__have_pipe2): Likewise.
64843         (__have_dup3): Likewise.
64844
64845 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64846
64847         [BZ #9685]
64848         * include/unistd.h (__have_pipe2): Change define into an extern int.
64849         (__have_dup3): Likewise.
64850         * socket/have_sock_cloexec.c: Include fcntl.h.
64851         (__have_pipe2): New variable.
64852         (__have_dup3): Likewise.
64853
64854 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
64855
64856         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
64857
64858 2012-08-17  Marek Polacek  <polacek@redhat.com>
64859
64860         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
64861         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
64862
64863 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64864
64865         * configure.in: Add AC_SUBST for sysheaders.
64866         * configure: Regenerated.
64867         * config.make.in (sysheaders): New substituted variable.
64868
64869         * sysdeps/unix/mkfifo.c: Moved ...
64870         * sysdeps/posix/mkfifo.c: ... here.
64871         * sysdeps/unix/mkfifoat.c: Moved ...
64872         * sysdeps/posix/mkfifoat.c: ... here.
64873
64874         * sysdeps/unix/utime.c: Moved ...
64875         * sysdeps/posix/utime.c: ... here.
64876
64877         * sysdeps/unix/time.c: Moved ...
64878         * sysdeps/posix/time.c: ... here.
64879         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
64880         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
64881
64882         * sysdeps/unix/nice.c: Moved ...
64883         * sysdeps/posix/nice.c: ... here.
64884
64885         * sysdeps/unix/alarm.c: Moved ...
64886         * sysdeps/posix/alarm.c: ... here.
64887
64888         * intl/Makefile ($(codeset_mo)): Depend on the input file.
64889
64890 2012-08-17  Jeff Law <law@redhat.com>
64891
64892         * intl/Makefile (codeset_mo): New variable.
64893         ($(codeset_mo)): New target.
64894         (tst-codeset.out): Depend on that.  Remove explicit rule.
64895         (tst-gettext3.out, tst-gettext5.out): Likewise.
64896         (LOCPATH-ENV, tst-codeset-ENV): New variables.
64897         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
64898         * intl/tst-codeset.sh: Remove.
64899         * intl/tst-gettext3.sh: Likewise.
64900         * intl/tst-gettext5.sh: Likewise.
64901
64902 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64903
64904         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
64905         * sysdeps/unix/syscalls.list: ... here.
64906
64907         * sysdeps/posix/getaddrinfo.c
64908         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
64909         (gaiconf_init, gaiconf_reload): Use them.
64910         [!_STATBUF_ST_NSEC]
64911         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
64912         Define using time_t rather than struct timespec.
64913
64914         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
64915         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
64916         Macros removed.
64917         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
64918         [!NO_THREADS].
64919         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
64920         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
64921         Likewise.
64922
64923         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
64924         __libc_cleanup_push argument.
64925
64926         * bits/param.h: New file.
64927         * misc/sys/param.h: New file.
64928         * include/sys/param.h: New file.
64929         * misc/Makefile (headers): Add bits/param.h.
64930         * sysdeps/generic/sys/param.h: File removed.
64931         * sysdeps/unix/sysv/linux/bits/param.h: New file.
64932         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
64933         * sysdeps/mach/hurd/bits/param.h: New file.
64934         * sysdeps/mach/hurd/sys/param.h: File removed.
64935
64936         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
64937         last change.
64938
64939         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
64940         [_IO_MTSAFE_IO].
64941         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
64942         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
64943         New macros.
64944
64945         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
64946         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
64947         rather than -D_IO_MTSAFE_IO conditionally.
64948         * stdio-common/Makefile (CPPFLAGS): Likewise.
64949         * wcsmbs/Makefile (CPPFLAGS): Likewise.
64950         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
64951         Use $(libio-mtsafe).
64952         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
64953         of -D_IO_MTSAFE_IO.
64954         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
64955         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
64956         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
64957         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
64958         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
64959         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
64960         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
64961         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
64962         (CFLAGS-fread_u_chk.c): Likewise.
64963         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
64964         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
64965         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
64966         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
64967         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
64968         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
64969         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
64970         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
64971         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
64972
64973         * libio/Makefile: Test [$(libc-reentrant) = yes]
64974         instead of [$(filter %REENTRANT, $(defines)) nonempty].
64975
64976         * Makeconfig
64977         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
64978         * sysdeps/pthread/configure: File removed.
64979         * sysdeps/pthread/Makeconfig: New file.
64980         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
64981         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
64982
64983 2012-08-16  Gary Benson  <gbenson@redhat.com>
64984
64985         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
64986         unmapping the first object in a namespace.
64987
64988 2012-08-16  Roland McGrath  <roland@hack.frob.com>
64989
64990         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
64991         (__internal_setnetgrent): ... this.  Add internal_function to
64992         definition.  Add libc_hidden_def.
64993         (setnetgrent): Update caller.
64994         (internal_endnetgrent): Renamed to ...
64995         (__internal_endnetgrent): ... this.  Add internal_function to
64996         definition.  Add libc_hidden_def.
64997         (endnetgrent): Update caller.
64998         (internal_getnetgrent_r): Renamed to ...
64999         (__internal_getnetgrent_r): ... this.  Add internal_function to
65000         definition.  Add libc_hidden_def.
65001         (__getnetgrent_r): Update caller.
65002         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
65003
65004 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65005
65006         * stdlib/longlong.h: Update from GCC.
65007
65008 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65009
65010         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
65011         on _QL, which is set by umul_ppmm but never used.
65012         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
65013         variables, which are set by GMP macros but never used.
65014         * stdio-common/_itowa.c (_itowa): Likewise.
65015         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
65016         * stdlib/mod_1.c (mpn_mod_1): Likewise.
65017
65018 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
65019
65020         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
65021         struct La_sh_regs is not constant.
65022         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
65023         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
65024         and struct La_sparc64_regs are not constant.
65025
65026 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65027
65028         * sysdeps/unix/sysv/linux/kernel-features.h
65029         (__ASSUME_POSIX_TIMERS): Remove.
65030         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
65031         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65032         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
65033         Make code unconditional.
65034         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65035         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
65036         Make code unconditional.
65037         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65038         * sysdeps/unix/sysv/linux/clock_nanosleep.c
65039         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
65040         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65041         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
65042         Make code unconditional.
65043         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65044         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
65045         (__libc_missing_posix_timers): Remove.
65046
65047 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65048
65049         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
65050         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
65051
65052         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
65053
65054         * elf/dl-sym.c: Include <stdlib.h>.
65055
65056         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
65057         constants, which avoids warnings in 32-bit builds.
65058
65059         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
65060         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
65061
65062         * misc/lseek.c: File moved to ...
65063         * io/lseek.c: ... here.
65064
65065         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
65066
65067         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
65068         shifting LEN more than 31 bits at once.
65069
65070 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65071
65072         [BZ #14195]
65073         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
65074         segmentation fault for a case of two empty input strings.
65075         * string/test-strncasecmp.c (check1): Renamed to...
65076         (bz12205): ...this.
65077         (bz14195): Add new testcase for two empty input strings and N > 0.
65078         (test_main): Call new testcase, adapt for renamed function.
65079
65080 2012-08-15  Andreas Jaeger  <aj@suse.de>
65081
65082         [BZ #14090]
65083         * crypt/md5test2.c: New test, based on test supplied by Serge
65084         Belyshev <belyshev@depni.sinp.msu.ru>.
65085         * crypt/Makefile (xtests): Add md5test-giant..
65086         * crypt/Makefile ($(objpfx)md5test-giant): Add.
65087
65088 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65089
65090         [BZ #14090]
65091         * crypt/md5.c (md5_process_block): Don't assume the buffer
65092         length is less than 2**32.
65093         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
65094         length is less than 2**64.
65095
65096 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65097
65098         * string/str-two-way.h: Include <sys/param.h>.
65099         (MAX): Macro removed.
65100
65101         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
65102         Move #define and #undef of memmove to just before and after
65103         including <string.h>.
65104
65105         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
65106         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
65107         and after including <string.h>.  Move declarations of
65108         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
65109         to before #include "string/memmove.c".
65110
65111         * include/dirent.h: Declare __getdirentries.
65112
65113         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
65114         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
65115
65116 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
65117
65118         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
65119         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
65120         * sysdeps/i386/configure: Regenerated.
65121         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
65122         STABS_CURRENT_FILE, and STABS_FUN.
65123         (END): Remove call to STABS_FUN_END.
65124         (STABS_CURRENT_FILE1): Delete.
65125         (STABS_CURRENT_FILE): Likewise.
65126         (STABS_FUN): Likewise.
65127         (STABS_FUN_END): Likewise.
65128         (STABS_FUN2): Likewise.
65129         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
65130         * sysdeps/x86_64/configure: Regenerated.
65131
65132 2012-08-14  Roland McGrath  <roland@hack.frob.com>
65133
65134         * elf/dl-open.c: Include <atomic.h>.
65135         * elf/dl-lookup.c: Likewise.
65136
65137 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
65138
65139         * sysdeps/unix/sysv/linux/kernel-features.h
65140         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
65141         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
65142         unconditionally.
65143         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
65144         unconditionally.
65145         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
65146         condition on __ASSUME_CLONE_THREAD_FLAGS.
65147
65148 2012-08-14  Andreas Jaeger  <aj@suse.de>
65149
65150         * sysdeps/i386/fpu/libm-test-ulps: Update.
65151
65152 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
65153
65154         * include/atomic.h (atomic_exchange_and_add): Split into ...
65155         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
65156         New atomic macros.
65157
65158 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
65159
65160         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65161
65162 2012-08-13  Jeff Law <law@redhat.com>
65163
65164         * manual/stdio.texi (snprintf): Clarify handling of the trailing
65165         null byte in the output string.
65166
65167 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
65168
65169         * sysdeps/unix/sysv/linux/kernel-features.h
65170         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
65171         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
65172         (__ASSUME_ARG_MAX_STACK_BASED): Define.
65173         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
65174         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
65175         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
65176         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
65177
65178 2012-08-09  Jeff Law <law@redhat.com>
65179
65180         [BZ #13939]
65181         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
65182         When avoid_arena is set, don't retry in the that arena.  Pick the
65183         next one, whatever it might be.
65184         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
65185         (arena_lock): Pass in new parameter to arena_get2.
65186         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
65187         arena_get2.
65188         (__libc_malloc): Unify retrying after main arena failure with
65189         __libc_memalign version.
65190         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
65191
65192 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
65193
65194         [BZ #14166]
65195         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
65196         to __redirect_strstr.
65197         (__strstr_sse42): Use typeof __redirect_strstr.
65198         (__strstr_ia32): Likewise.
65199         (__libc_strstr): New prototype.
65200         (strstr): Renamed to ...
65201         (__libc_strstr): This.
65202         (strstr): New strong alias of __libc_strstr.
65203         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
65204         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
65205         __redirect_time.
65206         Include <time.h>.
65207         (__libc_time): New prototype.
65208         (time_ifunc): Replace time with __libc_time.
65209         (time): New strong alias and hidden definition of __libc_time.
65210         (__GI_time): Remove strong alias.
65211         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
65212         Include <stddef.h>.
65213         (memmove): Redefined to __redirect_memmove.
65214         (__memmove_sse2): Use typeof __redirect_memmove.
65215         (__memmove_ssse3): Likewise.
65216         (__memmove_ssse3_back): Likewise.
65217         (__libc_memmove): New prototype.
65218         (memmove): Renamed to ...
65219         (__libc_memmove): This.
65220         (memmove): New strong alias of __libc_memmove.
65221
65222 2012-08-08  Mark Salter  <msalter@redhat.com>
65223
65224         * elf/elf.h
65225         (R_MN10300_TLS_GD): Define.
65226         (R_MN10300_TLS_LD): Likewise.
65227         (R_MN10300_TLS_LDO): Likewise.
65228         (R_MN10300_TLS_GOTIE): Likewise.
65229         (R_MN10300_TLS_IE): Likewise.
65230         (R_MN10300_TLS_LE): Likewise.
65231         (R_MN10300_TLS_DTPMOD): Likewise.
65232         (R_MN10300_TLS_DTPOFF): Likewise.
65233         (R_MN10300_TLS_TPOFF): Likewise.
65234         (R_MN10300_SYM_DIFF): Likewise.
65235         (R_MN10300_ALIGN): Likewise.
65236         (R_MN10300_NUM): Update.
65237
65238 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
65239
65240         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
65241         Remove.
65242
65243 2012-08-08  Roland McGrath  <roland@hack.frob.com>
65244
65245         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
65246
65247         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
65248         sysdeps/unix -> sysdeps/posix move.
65249         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
65250
65251 2012-08-07      Allan McRae     <allan@archlinux.org>
65252
65253         [BZ #14303]
65254         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
65255         (SUNOS_CPP): Likewise.
65256         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
65257         not found.
65258         (open_input): Call CPP using execvp.
65259
65260 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65261
65262         * sysdeps/unix/sysv/linux/kernel-features.h
65263         (__ASSUME_PROT_GROWSUPDOWN): Remove.
65264         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65265         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65266         (__ASSUME_WAITID_SYSCALL): Likewise.
65267         * sysdeps/unix/sysv/linux/dl-execstack.c
65268         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
65269         code unconditional.
65270         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
65271         conditional code.
65272         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
65273         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
65274         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
65275         code.
65276         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
65277         unconditional.
65278         [__ASSUME_WAITID_SYSCALL]: Likewise.
65279         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
65280
65281 2012-08-07  Roland McGrath  <roland@hack.frob.com>
65282
65283         * sysdeps/unix/closedir.c: Renamed to ...
65284         * sysdeps/posix/closedir.c: ... here.
65285         * sysdeps/unix/dirfd.c: Renamed to ...
65286         * sysdeps/posix/dirfd.c: ... here.
65287         * sysdeps/unix/dirstream.h: Renamed to ...
65288         * sysdeps/posix/dirstream.h: ... here.
65289         * sysdeps/unix/fdopendir.c: Renamed to ...
65290         * sysdeps/posix/fdopendir.c: ... here.
65291         * sysdeps/unix/opendir.c: Renamed to ...
65292         * sysdeps/posix/opendir.c: ... here.
65293         * sysdeps/unix/readdir.c: Renamed to ...
65294         * sysdeps/posix/readdir.c: ... here.
65295         * sysdeps/unix/readdir_r.c: Renamed to ...
65296         * sysdeps/posix/readdir_r.c: ... here.
65297         * sysdeps/unix/rewinddir.c: Renamed to ...
65298         * sysdeps/posix/rewinddir.c: ... here.
65299         * sysdeps/unix/seekdir.c: Renamed to ...
65300         * sysdeps/posix/seekdir.c: ... here.
65301         * sysdeps/unix/telldir.c: Renamed to ...
65302         * sysdeps/posix/telldir.c: ... here.
65303         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
65304         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
65305         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
65306         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
65307
65308         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
65309         * bits/fcntl.h: ... here.
65310
65311         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
65312         not 0.
65313         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
65314         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
65315         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
65316         (struct flock): Move l_start, l_len to the beginning.
65317         Use __pid_t for l_pid.
65318         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
65319         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
65320         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
65321         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
65322         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
65323         [__USE_LARGEFILE64] (struct flock64): New type.
65324         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
65325
65326         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
65327         * bits/dirent.h: ... here.
65328
65329         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
65330         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
65331
65332 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65333
65334         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65335         Change from 2.6.0 to 2.6.16.
65336         * sysdeps/unix/sysv/linux/configure: Regenerated.
65337         * sysdeps/unix/sysv/linux/kernel-features.h
65338         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
65339         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
65340         version.
65341         (__ASSUME_UTIMES): Likewise.
65342         (__ASSUME_CLONE_STOPPED): Remove.
65343         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
65344         architectures, not kernel version.
65345         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
65346         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65347         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65348         (__ASSUME_WAITID_SYSCALL): Likewise.
65349         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
65350         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
65351         * README: State 2.6.16 as minimum Linux kernel version.  Do not
65352         refer to older versions.
65353
65354 2012-08-06  Roland McGrath  <roland@hack.frob.com>
65355
65356         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
65357         Define alphasort64 as an alias.
65358         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
65359         Define versionsort64 as an alias.
65360         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
65361         Define scandir64 as an alias.
65362         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
65363         Define scandirat64 as an alias.
65364         * dirent/alphasort64.c (alphasort64):
65365         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
65366         * dirent/versionsort64.c: Likewise.
65367         * dirent/scandir64.c: Likewise.
65368         * dirent/scandirat64.c: Likewise.
65369         * sysdeps/wordsize-64/alphasort.c: File removed.
65370         * sysdeps/wordsize-64/alphasort64.c: File removed.
65371         * sysdeps/wordsize-64/scandir.c: File removed.
65372         * sysdeps/wordsize-64/scandir64.c: File removed.
65373         * sysdeps/wordsize-64/scandirat.c: File removed.
65374         * sysdeps/wordsize-64/scandirat64.c: File removed.
65375         * sysdeps/wordsize-64/versionsort.c: File removed.
65376         * sysdeps/wordsize-64/versionsort64.c: File removed.
65377         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
65378         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
65379         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
65380         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
65381         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
65382         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
65383         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
65384         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
65385
65386         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
65387         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65388         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
65389         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65390         [defined __arch64__ || defined __sparcv9]
65391         (__INO_T_MATCHES_INO64_T): New macro.
65392         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65393         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
65394         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
65395         * sysdeps/unix/sysv/linux/bits/dirent.h
65396         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
65397         (_DIRENT_MATCHES_DIRENT64): New macro.
65398
65399         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
65400         Define lockf64 as an alias.
65401         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
65402         Define fseeko64 as an alias.
65403         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
65404         Define ftello64 as an alias.
65405         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
65406         Define _IO_fgetpos64 and fgetpos64 as aliases.
65407         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
65408         Define _IO_fsetpos64 and fsetpos64 as aliases.
65409         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
65410         Conditionalize body on this.
65411         * libio/fseeko64.c: Likewise.
65412         * libio/ftello64.c: Likewise.
65413         * libio/iofgetpos64.c: Likewise.
65414         * libio/iofsetpos64.c: Likewise.
65415         * sysdeps/wordsize-64/lockf.c: File removed.
65416         * sysdeps/wordsize-64/lockf64.c: File removed.
65417         * sysdeps/wordsize-64/fseeko.c: File removed.
65418         * sysdeps/wordsize-64/fseeko64.c: File removed.
65419         * sysdeps/wordsize-64/ftello.c: File removed.
65420         * sysdeps/wordsize-64/ftello64.c: File removed.
65421         * sysdeps/wordsize-64/iofgetpos.c: File removed.
65422         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
65423         * sysdeps/wordsize-64/iofsetpos.c: File removed.
65424         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
65425         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
65426         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
65427         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
65428         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
65429         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
65430         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
65431         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
65432         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
65433         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
65434         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
65435
65436         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65437         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65438         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
65439         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65440         [defined __arch64__ || defined __sparcv9]
65441         (__OFF_T_MATCHES_OFF64_T): New macro.
65442         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65443         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65444         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65445         (__OFF_T_MATCHES_OFF64_T): New macro.
65446
65447 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65448
65449         * stdlib/secure-getenv.c (__secure_getenv): Replace
65450         GLIBC_2_16 with GLIBC_2_17.
65451
65452 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65453
65454         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
65455         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65456
65457 2012-08-03  David S. Miller  <davem@davemloft.net>
65458
65459         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65460
65461 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65462
65463         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
65464         Remove.
65465         (__ASSUME_CORRECT_SI_PID): Likewise.
65466         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
65467         (__ASSUME_TMPFS_NAME): Likewise.
65468         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
65469         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
65470         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
65471         (HAVE_AUX_SECURE): Make definition unconditional.
65472         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
65473         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
65474
65475 2012-08-03  Roland McGrath  <roland@hack.frob.com>
65476
65477         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
65478         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
65479         * sysdeps/mach/hurd/eloop-threshold.h: New file.
65480         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
65481         __eloop_threshold instead of SYMLOOP_MAX.
65482
65483         * sysdeps/generic/eloop-threshold.h: New file.
65484         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
65485         of MAXSYMLINKS.
65486         * elf/chroot_canon.c (chroot_canon): Likewise.
65487
65488 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65489
65490         [BZ #13717]
65491         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65492         Change to 2.6.0 everywhere.
65493         * sysdeps/unix/sysv/linux/configure: Regenerated.
65494         * sysdeps/unix/sysv/linux/kernel-features.h
65495         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
65496         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
65497         kernel versions.
65498         (__ASSUME_POSIX_TIMERS): Define unconditionally.
65499         (__ASSUME_FUTEX_REQUEUE): Remove.
65500         (__ASSUME_STATFS64): Define unconditionally.
65501         (__ASSUME_AT_SECURE): Likewise.
65502         (__ASSUME_CORRECT_SI_PID): Likewise.
65503         (__ASSUME_TGKILL): Define without depending on kernel version for
65504         i386.
65505         (__ASSUME_UTIMES): Likewise.
65506         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
65507         kernel version.
65508         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
65509         (__ASSUME_TMPFS_NAME): Likewise.
65510         * README: Update reference to Linux kernel versions.
65511
65512 2012-08-02  Marek Polacek  <polacek@redhat.com>
65513
65514         [BZ# 14150]
65515         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
65516         libc_cv_asm_type_prefix with %.
65517         * configure: Regenerated.
65518         * include/libc-symbols.h: Remove comment about
65519         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65520         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
65521         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
65522         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
65523         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
65524         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65525         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
65526         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
65527         * elf/tst-unique2mod1.c: Likewise.
65528         * elf/tst-unique1mod2.c: Likewise.
65529         * elf/tst-unique1mod1.c: Likewise.
65530         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
65531         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
65532         Replace ASM_TYPE_DIRECTIVE with .type.
65533         * sysdeps/s390/s390-64/sysdep.h: Likewise.
65534         * sysdeps/i386/sysdep.h: Likewise.
65535         * sysdeps/x86_64/sysdep.h: Likewise.
65536         * sysdeps/sh/sysdep.h: Likewise.
65537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
65538         Do not define ASM_TYPE_DIRECTIVE.
65539         * sysdeps/powerpc/sysdep.h: Likewise.
65540         * sysdeps/powerpc/powerpc32/sysdep.h:
65541         Replace ASM_TYPE_DIRECTIVE with .type.
65542         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
65543         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
65544         * sysdeps/i386/fpu/e_powf.S: Likewise.
65545         * sysdeps/i386/fpu/e_expl.S: Likewise.
65546         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
65547         * sysdeps/i386/fpu/e_acosh.S: Likewise.
65548         * sysdeps/i386/fpu/e_pow.S: Likewise.
65549         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
65550         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
65551         * sysdeps/i386/fpu/s_expm1.S: Likewise.
65552         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
65553         * sysdeps/i386/fpu/e_log2.S: Likewise.
65554         * sysdeps/i386/fpu/e_log2l.S: Likewise.
65555         * sysdeps/i386/fpu/e_scalb.S: Likewise.
65556         * sysdeps/i386/fpu/e_powl.S: Likewise.
65557         * sysdeps/i386/fpu/e_log10f.S: Likewise.
65558         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
65559         * sysdeps/i386/fpu/e_logl.S: Likewise.
65560         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
65561         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
65562         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
65563         * sysdeps/i386/fpu/e_log2f.S: Likewise.
65564         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
65565         * sysdeps/i386/fpu/e_log.S: Likewise.
65566         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
65567         * sysdeps/i386/fpu/e_logf.S: Likewise.
65568         * sysdeps/i386/fpu/e_log10l.S: Likewise.
65569         * sysdeps/i386/fpu/e_atanh.S: Likewise.
65570         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
65571         * sysdeps/i386/fpu/e_log10.S: Likewise.
65572         * sysdeps/i386/fpu/s_frexp.S: Likewise.
65573         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
65574         * sysdeps/i386/fpu/s_asinh.S: Likewise.
65575         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65576         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
65577         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
65578         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
65579         * sysdeps/i386/i686/strtok.S: Likewise.
65580         * sysdeps/i386/i386-mcount.S: Likewise.
65581         * sysdeps/i386/strtok.S: Likewise.
65582         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
65583         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
65584         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65585         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
65586         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
65587         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
65588         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
65589         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
65590         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
65591         * sysdeps/x86_64/_mcount.S: Likewise.
65592         * sysdeps/x86_64/strtok.S: Likewise.
65593         * sysdeps/sh/_mcount.S: Likewise.
65594
65595 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65596
65597         * libio/iofopen.c: Include <fcntl.h>.
65598         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
65599         (_IO_fopen64, fopen64): Define as aliases.
65600         * libio/iofopen64.c: Include <fcntl.h>.
65601         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
65602         Conditionalize body on this.
65603         * sysdeps/wordsize-64/iofopen.c: File removed.
65604         * sysdeps/wordsize-64/iofopen64.c: File removed.
65605
65606 2012-08-01  Marek Polacek  <polacek@redhat.com>
65607
65608         * libc/Makeconfig: Use elf in place of binfmt-subdir.
65609         Use dlfcn directly instead of a variable.
65610         (binfmt-subdir): Do not define.
65611         (dlfcn): Likewise.
65612
65613 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
65614
65615         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
65616         Remove all definitions.
65617         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
65618         <kernel-features.h>.
65619         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65620         (miss_F_GETOWN_EX): Remove all definitions.
65621         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
65622         macro definition.
65623         [!__ASSUME_FCNTL64]: Remove conditional code.
65624         [__ASSUME_FCNTL64]: Make code unconditional.
65625         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
65626         <kernel-features.h>.
65627         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65628         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
65629         (lockf64) [__NR_fcntl64]: Make code unconditional.
65630         (lockf64) [__ASSUME_FCNTL64]: Likewise.
65631
65632         * sysdeps/unix/sysv/linux/kernel-features.h
65633         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
65634         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
65635         Make code unconditional.
65636         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65637         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
65639         [__NR_vfork]: Make code unconditional.
65640         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65641         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
65643         [__NR_vfork]: Make code unconditional.
65644         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65645         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65646
65647 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65648
65649         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
65650         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
65651
65652         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65653         Define mkstemp64 as an alias.
65654         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65655         Define mkstemps64 as an alias.
65656         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65657         Define mkostemp64 as an alias.
65658         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65659         Define mkostemps64 as an alias.
65660         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
65661         Conditionalize body on this.
65662         * misc/mkostemp64.c: Likewise.
65663         * misc/mkostemps64.c: Likewise.
65664         * misc/mkstemps64.c: Likewise.
65665         * sysdeps/wordsize-64/mkstemp64.c: File removed.
65666         * sysdeps/wordsize-64/mkostemp64.c: File removed.
65667         * sysdeps/wordsize-64/mkostemp.c: File removed.
65668         * sysdeps/wordsize-64/mkstemp.c: File removed.
65669         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
65670         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
65671         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
65672         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
65673
65674         [BZ #14138]
65675         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
65676         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
65677         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
65678         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
65679
65680         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
65681         compat_symbol macros from <shlib-compat.h> rather than the underlying
65682         default_symbol_version and symbol_version macros, so that DEFAULT
65683         lines in shlib-versions are respected.
65684         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
65685
65686 2012-08-01  Florian Weimer  <fweimer@redhat.com>
65687
65688         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
65689         Declare with warn_unused_result.
65690         (setgid, setregid, setegid, setresgid): Likewise.
65691         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
65692         Likewise.
65693         * WUR-REPORT: Remove set*id functions.
65694
65695 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
65696
65697         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
65698
65699 2012-07-31  Roland McGrath  <roland@hack.frob.com>
65700
65701         [BZ #10191]
65702         * include/sys/socket.h (__libc_accept, __libc_accept4):
65703         Add attribute_hidden.
65704         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
65705
65706         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
65707         use of PTR_MANGLE.
65708         * inet/getnetgrent_r.c (setup): Likewise.
65709
65710         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
65711
65712 2012-07-31  David S. Miller  <davem@davemloft.net>
65713
65714         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65715
65716 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
65717
65718         [BZ #13629]
65719         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
65720         value between 1.0 and 2.0 and smaller part has absolute value less
65721         than 1.0.
65722         * math/s_clog10.c (__clog10): Likewise.
65723         * math/s_clog10f.c (__clog10f): Likewise.
65724         * math/s_clog10l.c (__clog10l): Likewise.
65725         * math/s_clogf.c (__clogf): Likewise.
65726         * math/s_clogl.c (__clogl): Likewise.
65727         * math/libm-test.inc (clog_test): Add more tests.
65728         (clog10_test): Likewise.
65729         * sysdeps/i386/fpu/libm-test-ulps: Update.
65730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65731
65732 2012-07-31  Florian Weimer  <fweimer@redhat.com>
65733
65734         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
65735         Exit with zero in case no suitable GID is found, and write a
65736         message to standard error.
65737
65738 2012-07-30  Roland McGrath  <roland@hack.frob.com>
65739
65740         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
65741         rather than to 1.
65742         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
65743         (MAXPATHLEN): Removed.
65744         (NOGROUP, NODEV): New macros.
65745         (setbit, clrbit, isset, isclr): New macros.
65746         (howmany, roundup, powerof2): New macros.
65747         (DEV_BSIZE): New macro.
65748
65749         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
65750         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
65751
65752         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
65753         definition on [!__NO_LONG_DOUBLE_MATH].
65754
65755         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
65756         PTR_MANGLE and PTR_DEMANGLE.
65757
65758         * socket/accept4.c (accept4): Rename to __libc_accept4.
65759         Define accept4 as a weak alias.
65760
65761         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
65762         on [_DIRENT_HAVE_D_TYPE].
65763         * io/ftw.c (ftw_dir): Likewise.
65764
65765         * io/xmknod.c (__xmknod): Don't check PATH for being null.
65766
65767         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
65768
65769         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
65770         Use the BSD numbers rather than the arbitrary ones we had.
65771         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
65772         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
65773         (SIGXCPU, SIGXFSZ): New macros.
65774         (_NSIG): Now 32.
65775
65776         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
65777         initializer on [_LIBC_REENTRANT].
65778
65779         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
65780         definitions inside [_POSIX_MAPPED_FILES].
65781
65782         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
65783
65784         * dirent/opendir.c: Include <fcntl.h>.
65785
65786         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
65787         (__libc_getspecific): Likewise.
65788         (__libc_key_create): Likewise.
65789
65790         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
65791         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
65792         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
65793         (tmpfile64): Define as alias.
65794         * sysdeps/wordsize-64/tmpfile.c: File removed.
65795         * sysdeps/wordsize-64/tmpfile64.c: File removed.
65796         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
65797         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
65798
65799         * stdio-common/vfscanf.c: Include <stdbool.h>.
65800         * nss/makedb.c: Likewise.
65801         * stdio-common/_i18n_number.h: Likewise.
65802         * argp/argp-help.c: Likewise.
65803         * posix/wordexp.c: Likewise.
65804         * sysdeps/posix/spawni.c: Likewise.
65805         * nss/nss_files/files-initgroups.c: Likewise.
65806         * stdio-common/reg-modifier.c: Include <stdlib.h>.
65807         * nss/nss_files/files-initgroups.c: Likewise.
65808         * nss/nss_db/db-netgrp.c: Likewise.
65809         * nss/nss_db/db-initgroups.c: Likewise.
65810         * io/fchmodat.c: Include <sys/stat.h>.
65811
65812         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
65813         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
65814
65815         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
65816         [HAVE_MMAP].
65817
65818         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
65819         Add multiple inclusion protection.
65820
65821 2012-07-27  David S. Miller  <davem@davemloft.net>
65822
65823         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65824
65825 2012-07-27  Gary Benson  <gbenson@redhat.com>
65826
65827         [BZ #14298]
65828         * elf/rtld.c: Include <stap-probe.h>.
65829         (dl_main): Added static probes "init_start" and "init_complete".
65830         * elf/dl-load.c: Include <stap-probe.h>.
65831         (lose): Take new parameter "nsid".
65832         Added static probe "map_failed".
65833         (_dl_map_object_from_fd): Pass namespace id to lose.
65834         Added static probe "map_start".
65835         (open_verify): Pass namespace id to lose.
65836         * elf/dl-open.c: Include <stap-probe.h>.
65837         (dl_open_worker) Added static probes "map_complete", "reloc_start"
65838         and "reloc_complete".
65839         * elf/dl-close.c: Include <stap-probe.h>.
65840         (_dl_close_worker): Added static probes "unmap_start" and
65841         "unmap_complete".
65842         * elf/rtld-debugger-interface.txt: New file documenting the above.
65843
65844 2012-07-26  Roland McGrath  <roland@hack.frob.com>
65845
65846         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
65847         rather than a string variable.
65848         * sunrpc/rpc_main.c (h_output): Likewise.
65849         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
65850
65851 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
65852
65853         * inet/check_native.c: New file.
65854
65855 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
65856
65857         [BZ #13629]
65858         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
65859         if larger part has absolute value 1.0.
65860         * math/s_clog10.c (__clog10): Likewise.
65861         * math/s_clog10f.c (__clog10f): Likewise.
65862         * math/s_clog10l.c (__clog10l): Likewise.
65863         * math/s_clogf.c (__clogf): Likewise.
65864         * math/s_clogl.c (__clogl): Likewise.
65865         * math/libm-test.inc (clog_test): Add more tests.
65866         (clog10_test): Likewise.
65867         * sysdeps/i386/fpu/libm-test-ulps: Update.
65868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65869
65870         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
65871         (pltexit): Likewise.
65872         (La_regs): Likewise.
65873         (La_retval): Likewise.
65874         (int_retval): Likewise.
65875         Update #error for removed macros to refer only to definitions in
65876         tst-audit.h.
65877         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
65878         macro.
65879         (pltexit): Likewise.
65880         (La_regs): Likewise.
65881         (La_retval): Likewise.
65882         (int_retval): Likewise.
65883         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
65884         macro.
65885         (pltexit): Likewise.
65886         (La_regs): Likewise.
65887         (La_retval): Likewise.
65888         (int_retval): Likewise.
65889         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
65890         macro.
65891         (pltexit): Likewise.
65892         (La_regs): Likewise.
65893         (La_retval): Likewise.
65894         (int_retval): Likewise.
65895         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
65896         macro.
65897         (pltexit): Likewise.
65898         (La_regs): Likewise.
65899         (La_retval): Likewise.
65900         (int_retval): Likewise.
65901         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
65902         macro.
65903         (pltexit): Likewise.
65904         (La_regs): Likewise.
65905         (La_retval): Likewise.
65906         (int_retval): Likewise.
65907         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
65908         macro.
65909         (pltexit): Likewise.
65910         (La_regs): Likewise.
65911         (La_retval): Likewise.
65912         (int_retval): Likewise.
65913         * sysdeps/generic/tst-audit.h: Update comment to refer only to
65914         macro definitions in tst-audit.h.
65915         * sysdeps/i386/tst-audit.h: New file.
65916         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
65917         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
65918         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
65919         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
65920         * sysdeps/sh/tst-audit.h: Likewise.
65921         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
65922         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
65923         * sysdeps/x86_64/tst-audit.h: Likewise.
65924
65925 2012-07-26  Andreas Jaeger  <aj@suse.de>
65926
65927         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
65928         ptrace.
65929
65930         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
65931         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
65932         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
65933         PTRACE_O_MASK.
65934         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
65935         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
65936         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
65937
65938         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
65939         value.
65940
65941         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
65942         _sigsys.
65943         (si_call_addr, si_syscall, si_arch): Define new macro.
65944         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
65945         _sigsys.
65946         (si_call_addr, si_syscall, si_arch): Define new marcro.
65947         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
65948         _sigsys.
65949         (si_call_addr, si_syscall, si_arch): Define new macro.
65950         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
65951         _sigsys.
65952         (si_call_addr, si_syscall, si_arch): Define new macro.
65953
65954 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
65955
65956         [BZ #13717]
65957         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65958         Change to 2.4.21 where previously 2.4.1.
65959         * sysdeps/unix/sysv/linux/configure: Regenerated.
65960         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
65961         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
65962         Linux kernel version.
65963         (__ASSUME_STD_AUXV): Remove.
65964         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
65965         kernel version.
65966         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
65967         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
65968         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
65969         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
65970         (__ASSUME_NETLINK_SUPPORT): Likewise.
65971         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
65972         (__no_netlink_support): Remove conditional definition.
65973         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
65974         Remove.
65975         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65976         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
65977         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
65978         (if_nameindex_ioctl): Remove.
65979         (if_nameindex_netlink): Do not handle __no_netlink_support.
65980         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65981         code.
65982         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
65983         Remove conditional code.
65984         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65985         code.
65986         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
65987         unconditional.
65988         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65989         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
65990         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
65991         Remove.
65992         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
65993         [!__ASSUME_STD_AUXV]: Remove conditional code.
65994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
65995         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
65996         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
65997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
65998         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
65999         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66000         code.
66001         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
66003         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
66004         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66005         conditional code.
66006         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
66008         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66009         code.
66010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
66011         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66012         conditional code.
66013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
66014         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66015         code unconditional.
66016         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66017         conditional code.
66018         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66019         unconditional.
66020         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66021         conditional code.
66022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
66023         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66024         unconditional.
66025         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66026         conditional code.
66027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
66028         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66029         code unconditional.
66030         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66031         conditional code.
66032         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66033         unconditional.
66034         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66035         conditional code.
66036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
66037         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66038         code unconditional.
66039         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66040         conditional code.
66041         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66042         unconditional.
66043         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66044         conditional code.
66045
66046 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
66047
66048         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
66049         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
66050         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
66051         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
66052         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
66053         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
66054         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
66055         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
66056         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
66057         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
66058         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
66059         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
66060         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
66061         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
66062         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
66063         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
66064         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
66065         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
66066         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
66067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
66068         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
66069         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
66070         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66071
66072 2012-07-25  Florian Weimer  <fweimer@redhat.com>
66073
66074         * Versions.def: Add GLIBC_2.17.
66075         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
66076         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
66077         Introduce __libc_secure_getenv.
66078         * stdlib/Versions (2.17): Add secure_getenv
66079         (GLIBC_PRIVATE): Add __libc_secure_getenv.
66080         * stdlib/secure-getenv.c: Rename __secure_getenv to
66081         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
66082         symbol __secure_getenv for GLIBC_2.0.
66083         * stdlib/tst-secure-getenv.c: New.
66084         * stdlib/Makefile (tests): Add testcase.
66085         * manual/startup.texi (Environment Access): Document
66086         secure_getenv.
66087         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
66088         __libc_secure_getenv.
66089         * inet/ruserpass.c (ruserpass): Likewise.
66090         * malloc/mtrace.c (mtrace): Likewise.
66091         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
66092         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
66093         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
66094         * sysdeps/posix/tempname.c: Likewise.  Evaluate
66095         HAVE_SECURE_GETENV.
66096         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
66097         __secure_getenv to __libc_secure_getenv.
66098         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
66099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
66100         Likewise.
66101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
66102         Likewise.
66103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
66104         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
66105         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
66106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
66107         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
66108         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
66109         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
66110
66111 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66112
66113         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
66114         (struct La_i86_retval): Likewise.
66115         (struct La_x86_64_regs): Likewise.
66116         (struct La_x86_64_retval): Likewise.
66117         (struct La_x32_regs): Likewise.
66118         (struct La_x32_retval): Likewise.
66119         (struct La_ppc32_regs): Likewise.
66120         (struct La_ppc32_retval): Likewise.
66121         (struct La_ppc64_regs): Likewise.
66122         (struct La_ppc64_retval): Likewise.
66123         (struct La_sh_regs): Likewise.
66124         (struct La_sh_retval): Likewise.
66125         (struct La_s390_32_regs): Likewise.
66126         (struct La_s390_32_retval): Likewise.
66127         (struct La_s390_64_regs): Likewise.
66128         (struct La_s390_64_retval): Likewise.
66129         (struct La_sparc32_regs): Likewise.
66130         (struct La_sparc32_retval): Likewise.
66131         (struct La_sparc64_regs): Likewise.
66132         (struct La_sparc64_retval): Likewise.
66133         (struct audit_ifaces): Remove architecture-specific pltenter and
66134         pltexit members.
66135         * sysdeps/i386/ldsodefs.h: New file.
66136         * sysdeps/powerpc/ldsodefs.h: Likewise.
66137         * sysdeps/s390/ldsodefs.h: Likewise.
66138         * sysdeps/sh/ldsodefs.h: Likewise.
66139         * sysdeps/sparc/ldsodefs.h: Likewise.
66140         * sysdeps/x86_64/ldsodefs.h: Likewise.
66141
66142 2012-07-25  Marek Polacek  <polacek@redhat.com>
66143
66144         [BZ #6808]
66145         * math/libm-test.inc (yn_test): Add another test.
66146         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
66147         to ERANGE when the result is +-Inf.
66148         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
66149         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
66150         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
66151         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
66152
66153 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
66154
66155         * conform/data/time.h-data (NULL): Use macro-constant.  Require
66156         equal to 0.
66157         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
66158         clock_t.
66159         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
66160
66161 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
66162
66163         * configure.in <sysdeps resolving>: Correct printing
66164         Implies_before.
66165         * configure: Regenerate.
66166
66167 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
66168
66169         * math/w_ilogb.c: Include <limits.h>.
66170         * math/w_ilogbl.c: Likewise.
66171
66172 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66173
66174         * manual/lang.texi (__va_copy): Document primarily as ISO C99
66175         va_copy.  Document allowing for unavailable va_copy only as
66176         pre-C99 compatibility.
66177         * manual/string.texi (Copying and Concatenation): Use va_copy
66178         instead of __va_copy in concat example.
66179
66180 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
66181
66182         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
66183         (__sendto): Use create_address_port.  Initialize APORT and deallocate
66184         it if not null.
66185
66186         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
66187         with O_NOLINK passed to __file_name_lookup.
66188
66189         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
66190         with O_NOLINK passed to __file_name_lookup.
66191
66192         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
66193         negative N or less than NGIDS.
66194
66195         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
66196         type to string_t.  Set ERANGE as errno and return it if NAME is not big
66197         enough.  Use memcpy instead of strncpy.
66198
66199 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66200
66201         * elf/Makefile (check-data): Remove.
66202         (localplt.data): New vpath directive.
66203         ($(objpfx)check-localplt.out): Use localplt.data from vpath
66204         instead of $(check-data).
66205         * scripts/data/localplt-generic.data: Move to ...
66206         * sysdeps/generic/localplt.data: ... here.
66207         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
66208         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
66209         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
66210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
66211         ... here.
66212         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
66213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
66214         ... here.
66215         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
66216         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
66217         ... here.
66218         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
66219         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
66220         ... here.
66221         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
66222         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
66223         ... here.
66224         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
66225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
66226         ... here.
66227
66228 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66229
66230         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
66231         PPC32 and PPC64 files.
66232         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
66233         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
66234
66235 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66236
66237         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
66238         __makecontext_ret to ...
66239         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
66240         ... here and call exit if uc_link is NULL.  New file.
66241         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
66242         __makecontext_ret.S.
66243         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
66244         __makecontext_ret to ...
66245         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
66246         ... here and call exit if uc_link is NULL.  New file.
66247         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
66248         __makecontext_ret.S.
66249
66250 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66251
66252         * elf/elf.h (R_390_IRELATIVE): New definition.
66253         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
66254         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
66255         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
66256         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
66257         (elf_machine_lazy_rel): Likewise.
66258         * sysdeps/s390/dl-irel.h: New file.
66259         * sysdeps/s390/s390-64/memcpy.S: New asm code.
66260         * sysdeps/s390/s390-64/memset.S: New asm code.
66261         * sysdeps/s390/s390-64/memcmp.S: New asm code.
66262         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
66263         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
66264         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
66265         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
66266         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
66267         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
66268         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
66269         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
66270         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
66271         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
66272         * sysdeps/s390/s390-32/memcpy.S: New asm code.
66273         * sysdeps/s390/s390-32/memset.S: New asm code.
66274         * sysdeps/s390/s390-32/memcmp.S: New asm code.
66275
66276 2012-07-17  Marek Polacek  <polacek@redhat.com>
66277
66278         [BZ #14349]
66279         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
66280         * sysdeps/s390/s390-64/configure.in: Likewise.
66281         * sysdeps/sparc/configure.in: Likewise.
66282         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
66283         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
66284         * sysdeps/i386/configure.in: Likewise.
66285         * sysdeps/x86_64/configure.in: Likewise.
66286         * sysdeps/sh/configure.in: Likewise.
66287         * sysdeps/s390/s390-32/configure: Regenerated.
66288         * sysdeps/s390/s390-64/configure: Likewise.
66289         * sysdeps/x86_64/configure: Likewise.
66290         * sysdeps/sh/configure: Likewise.
66291         * sysdeps/powerpc/powerpc64/configure: Likewise.
66292         * sysdeps/powerpc/powerpc32/configure: Likewise.
66293         * sysdeps/sparc/configure: Likwise.
66294         * sysdeps/i386/configure: Likewise.
66295
66296         * elf/dl-open.c: Comment fixes.
66297
66298 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
66299
66300         * Makefile [CXX] (check-data): Remove.
66301         [CXX] (c++-types.data): New vpath directive.
66302         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
66303         vpath.  Do not allow for C++ type data being missing.
66304         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
66305         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
66306         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
66307         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
66308         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
66309         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
66310         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
66311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
66312         ... here.
66313         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
66314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
66315         ... here.
66316         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
66317         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
66318         ... here.
66319         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
66320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
66321         ... here.
66322         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
66323         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
66324         ... here.
66325         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
66326         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
66327         ... here.
66328         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
66329         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
66330         ... here.
66331         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
66332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
66333
66334         * elf/tls-macros.h (TLS_LE): Move architecture-specific
66335         definitions to architecture-specific files.
66336         (TLS_IE): Likewise.
66337         (TLS_LD): Likewise.
66338         (TLS_GD): Likewise.
66339         * sysdeps/i386/tls-macros.h: New file.
66340         * sysdeps/powerpc/tls-macros.h: Likewise.
66341         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
66342         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
66343         * sysdeps/sh/tls-macros.h: Likewise.
66344         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
66345         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
66346         * sysdeps/x86_64/tls-macros.h: Likewise.
66347
66348 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66349
66350         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
66351         zero value for regular exit case.
66352
66353         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
66354         (__start_context): Preserve zero value for regular exit case.
66355
66356 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66357             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66358
66359         * manual/setjmp.texi (setcontext): Clarify normal process
66360         termination when uc_link is the null pointer.
66361         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
66362         exit call.
66363
66364 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
66365
66366         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
66367         preprocessor.  Test for each exception mask separately.
66368
66369 2012-07-16  Andreas Jaeger  <aj@suse.de>
66370
66371         * po/ru.po: Update from translation team.
66372
66373 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
66374
66375         * conform/data/string.h-data (NULL): Use macro-constant.  Require
66376         equal to 0.
66377         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
66378         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
66379         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
66380         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
66381         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66382
66383 2012-07-13  Andreas Jaeger  <aj@suse.de>
66384
66385         * po/fr.po: Update from translation team.
66386
66387 2012-07-12  Marek Polacek  <polacek@redhat.com>
66388
66389         [BZ #14173]
66390         * math/libm-test.inc (yn_test): Add test for BZ #14173.
66391         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
66392         loop condition.
66393
66394 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
66395
66396         [BZ #13717]
66397         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66398         Change to 2.4.1 where previously 2.4.0.
66399         * sysdeps/unix/sysv/linux/configure: Regenerated.
66400         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
66401         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
66402         version.
66403         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
66404         (__ASSUME_AT_CLKTCK): Remove.
66405         (__ASSUME_AT_PAGESIZE): Likewise.
66406         (__ASSUME_AT_XID): Likewise.
66407         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
66408         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
66409         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
66410         unconditionally.
66411         (HAVE_AUX_PAGESIZE): Likewise.
66412         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
66413         [__ASSUME_AT_CLKTCK]: Make code unconditional.
66414         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
66415
66416 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
66417
66418         [BZ #14307]
66419         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
66420         the temporary buffer used to invoke __gethostbyname2_r,
66421         __gethostbyaddr_r and gethostbyname4_r to make room for struct
66422         host_data / struct gaih_addrtuple.
66423         * resolv/nss_dns/dns-host.c (global scope): Move definition of
66424         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
66425         header file nss/nsswitch.h.
66426         * nss/nsswitch.h (global scope): Add definition of implementation
66427         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
66428         resolv/nss_dns/dns-host.c).
66429
66430 2012-07-11  Andreas Jaeger  <aj@suse.de>
66431
66432         * po/fr.po: Update from translation team.
66433
66434         * po/sv.po: Update from translation team
66435         * po/fr.po: Another update from translation team.
66436
66437 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66438
66439         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
66440         for subnormals or multiply small sinh result by itself.
66441         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
66442         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66443
66444 2012-07-11  David S. Miller  <davem@davemloft.net>
66445
66446         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66447
66448 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
66449
66450         [BZ #14347]
66451         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66452         (INTERNAL_MARK): Shift it here.
66453
66454 2012-07-10  Marek Polacek  <polacek@redhat.com>
66455
66456         [BZ #14151]
66457         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
66458         libc_cv_asm_global_directive with .globl.
66459         * configure: Regenerated.
66460         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
66461         with .globl.
66462         * sysdeps/i386/configure: Regenerated.
66463         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
66464         with .globl.
66465         * sysdeps/x86_64/configure: Regenerated.
66466         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
66467         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
66468         * elf/tst-unique2mod2.c: Likewise.
66469         * elf/tst-unique2mod1.c: Likewise.
66470         * elf/tst-unique1mod2.c: Likewise.
66471         * elf/tst-unique1mod1.c: Likewise.
66472         * sysdeps/s390/s390-32/sysdep.h: Likewise.
66473         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66474         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66475         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66476         * sysdeps/mach/sysdep.h: Likewise.
66477         * sysdeps/i386/sysdep.h: Likewise.
66478         * sysdeps/i386/i386-mcount.S: Likewise.
66479         * sysdeps/x86_64/_mcount.S: Likewise.
66480         * sysdeps/x86_64/sysdep.h: Likewise.
66481         * sysdeps/sh/_mcount.S: Likewise.
66482         * sysdeps/sh/sysdep.h: Likewise.
66483         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
66484         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
66485         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
66486         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66487         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
66488         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
66489         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
66490         * locale/localeinfo.h: Likewise.
66491         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
66492         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
66493
66494 2012-07-09  Roland McGrath  <roland@hack.frob.com>
66495
66496         [BZ #14336]
66497         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
66498         system".
66499         * manual/message.texi (The Uniforum approach): Likewise.
66500         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
66501         (glibc iconv Implementation): Likewise.
66502
66503 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
66504
66505         [BZ #14337]
66506         * math/s_clog.c (__clog): Avoid scaling a value down where that
66507         could result in underflow.
66508         * math/s_clog10.c (__clog10): Likewise.
66509         * math/s_clog10f.c (__clog10f): Likewise.
66510         * math/s_clog10l.c (__clog10l): Likewise.
66511         * math/s_clogf.c (__clogf): Likewise.
66512         * math/s_clogl.c (__clogl): Likewise.
66513         * math/libm-test.inc (clog_test): Add more tests.
66514         (clog10_test): Likewise.
66515         * sysdeps/i386/fpu/libm-test-ulps: Update.
66516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66517
66518 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
66519
66520         [BZ #14283]
66521         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
66522         by 7 not 8 to examine high bit of fractional part.
66523
66524         [BZ #14042]
66525         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
66526         for call to __mcount_internal.
66527         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
66528         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
66529         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
66530
66531 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
66532
66533         [BZ #14154]
66534         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
66535         approximation for values within 0x1p-13f of an odd multiple of
66536         pi/4.
66537         * math/libm-test.inc (tan_test): Do not allow spurious underflow
66538         exception.  Add more tests.
66539         * sysdeps/i386/fpu/libm-test-ulps: Update.
66540
66541         [BZ #6778]
66542         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
66543         inputs and return -1 for them.  Do not check for +Inf in case not
66544         reachable for +Inf.
66545         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
66546         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
66547         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66548         and return -1 for them.  Do not check for +Inf in case not
66549         reachable for +Inf.
66550         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
66551         define.
66552         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66553         and return -1 for them.  Do not check for +Inf in case not
66554         reachable for +Inf.
66555         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
66556         spurious underflow.
66557         * sysdeps/i386/fpu/libm-test-ulps: Update.
66558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66559
66560 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
66561
66562         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
66563
66564 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
66565
66566         [BZ #14157]
66567         [BZ #14331]
66568         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
66569         could result in spurious underflow.  Scale down values above
66570         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
66571         * math/s_csqrtf.c (__csqrtf): Likewise.
66572         * math/s_csqrtl.c (__csqrtl): Likewise.
66573         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
66574         spurious underflow.
66575         * sysdeps/i386/fpu/libm-test-ulps: Update.
66576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66577
66578 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
66579
66580         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
66581         xopen-msg.sed.
66582         * catgets/xopen-msg.awk: New file.
66583         * catgets/xopen-msg.sed: Removed.
66584
66585         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
66586         po2text.sed.
66587         * intl/po2test.awk: New file.
66588         * intl/po2test.sed: Removed.
66589
66590 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
66591
66592         [BZ #14328]
66593         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
66594         or multiply small sinh result by itself.
66595         * math/s_ctanf.c (__ctanf): Likewise.
66596         * math/s_ctanh.c (__ctanh): Likewise.
66597         * math/s_ctanhf.c (__ctanhf): Likewise.
66598         * math/s_ctanhl.c (__ctanhl): Likewise.
66599         * math/s_ctanl.c (__ctanl): Likewise.
66600         * math/libm-test.inc (ctan_test_tonearest): New function.
66601         (ctan_test_towardzero): Likewise.
66602         (ctan_test_downward): Likewise.
66603         (ctan_test_upward): Likewise.
66604         (ctanh_test_tonearest): Likewise.
66605         (ctanh_test_towardzero): Likewise.
66606         (ctanh_test_downward): Likewise.
66607         (ctanh_test_upward): Likewise.
66608         (main): Call these new functions.
66609         * sysdeps/i386/fpu/libm-test-ulps: Update.
66610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66611
66612 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
66613
66614         * .gitignore: Delete /ports entry.
66615
66616 2012-07-03  Andreas Jaeger  <aj@suse.de>
66617
66618         * po/bg.po: Update from translation team.
66619         * po/cs.po: Likewise.
66620         * po/de.po: Likewise.
66621         * po/hr.po: Likewise.
66622         * po/nl.pl: Likewise.
66623         * po/pl.po: Likewise.
66624         * po/vi.po: Likewise.
66625
66626 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
66627
66628         * Makeconfig [!+link] (+link-before-libc): New variable.
66629         [!+link] (+link-after-libc): Likewise.
66630         [!+link] (+link-tests): Likewise.
66631         [!+link] (+link): Define in terms of $(+link-before-libc) and
66632         $(+link-after-libc).
66633         [!+link-static] (+link-static-before-libc): New variable.
66634         [!+link-static] (+link-static-after-libc): Likewise.
66635         [!+link-static] (+link-static-tests): Likewise.
66636         [!+link-static] (+link-static): Define in terms of
66637         $(+link-static-before-libc) and $(+link-static-after-libc).
66638         [build-shared] (link-libc-before-gnulib): New variable.
66639         [build-shared] (link-libc-tests): Likewise.
66640         [build-shared] (link-libc): Define in terms of
66641         $(link-libc-before-gnulib).
66642         [!build-shared] (link-libc-tests): New variable.
66643         (link-libc-static-tests): New variable.
66644         [!gnulib] (gnulib-arch): New variable.
66645         [!gnulib] (gnulib-tests): Likewise.
66646         [!gnulib] (static-gnulib-arch): Likewise.
66647         [!gnulib] (static-gnulib-tests): Likewise.
66648         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
66649         Define with "=" instead of ":=".
66650         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
66651         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
66652         * Rules (binaries-all-notests): New variable.
66653         (binaries-all-tests): Likewise.
66654         (binaries-static-notests): Likewise.
66655         (binaries-static-tests): Likewise.
66656         (binaries-all): Define using $(binaries-all-notests) and
66657         $(binaries-all-tests).
66658         (binaries-static): Define using $(binaries-static-notests) and
66659         $(binaries-static-tests).
66660         (binaries-shared-tests): New variable.
66661         (binaries-shared-notests): Likewise.
66662         (binaries-shared): Remove variable.
66663         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
66664         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
66665         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
66666         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
66667         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
66668         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
66669         * elf/Makefile (sln-modules): New variable.
66670         (extra-objs): Add $(sln-modules:=.o).
66671         (ldconfig-modules): Add static-stubs.
66672         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
66673         * elf/static-stubs.c: New file.
66674
66675         [BZ #14283]
66676         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
66677         by 7 not 8 to examine high bit of fractional part.  Use volatile
66678         variables when splitting into final array of floats if
66679         __FLT_EVAL_METHOD__ != 0.
66680         * math/libm-test.inc (cos_test): Add another test.
66681         (sin_test): Likewise.
66682         * sysdeps/i386/fpu/libm-test-ulps: Update.
66683
66684         [BZ #14273]
66685         * math/libm-test.inc (cosh_test): Add more tests.
66686
66687         * version.h (RELEASE): Set to "development".
66688         (VERSION): Set to "2.16.90".
66689
66690 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
66691
66692         * NEWS: Update copyright. Remove last-updated date.
66693         Mention math library bug fixes and timezone data changes.
66694         * README: Mention GNU/Hurd, x32, and HPPA support status.
66695
66696 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
66697
66698         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
66699
66700 2012-06-27  Andreas Jaeger  <aj@suse.de>
66701
66702         * manual/contrib.texi (Contributors): Add Samuel Thibault.
66703
66704 2012-06-25  Andreas Jaeger  <aj@suse.de>
66705
66706         * sysdeps/s390/fpu/libm-test-ulps: Update.
66707
66708 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
66709             Thomas Schwinge  <thomas@codesourcery.com>
66710
66711         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
66712         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
66713         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
66714         fanotify_mark.
66715
66716 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
66717
66718         * sysdeps/mach/start.c: Remove file.
66719         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
66720         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
66721         * sysdeps/sh/init-first.c: Likewise.
66722
66723         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
66724         registers for frame unwinding purposes, add CFI directives.
66725         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66726         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
66727         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
66728         Likewise.
66729
66730         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
66731         __fortify_fail returning.
66732         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66733
66734         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
66735         sysdeps/sh/____longjmp_chk.S.
66736         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
66737         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
66738         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
66739         (gen-as-const-headers): Append sigaltstack-offsets.sym.
66740
66741         * sysdeps/sh/abort-instr.h: New file.
66742         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
66743         process in case exit returns.
66744
66745         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
66746         initialize the GOT register before use.
66747
66748         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
66749         calculation of ARGC > 4.
66750
66751         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
66752         meaningful names to some local labels.
66753
66754 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66755             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66756
66757         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
66758         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
66759         (__arch_compare_and_exchange_val_16_acq): Likewise.
66760         (__arch_compare_and_exchange_val_32_acq): Likewise.
66761         (atomic_exchange_and_add): Fix gUSA sequence.
66762         (atomic_add): Likewise.
66763         (atomic_add_negative): Likewise.
66764         (atomic_add_zero): Likewise.
66765         (atomic_bit_test_set): Likewise.
66766
66767 2012-06-22  Andreas Schwab  <schwab@redhat.com>
66768
66769         [BZ #13579]
66770         * include/link.h (struct link_map): Add l_free_initfini.
66771         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
66772         l_initfini.
66773         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
66774         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
66775         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
66776         set.
66777
66778 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
66779
66780         * configure.in: Use AC_LANG_SOURCE.
66781         * configure: Regenerate.
66782
66783 2012-06-22  Roland McGrath  <roland@hack.frob.com>
66784
66785         * configure.in (libc_cv_localstatedir): New substituted variable.
66786         * configure: Regenerated.
66787         * config.make.in (localstatedir): New variable, substituted from
66788         libc_cv_localstatedir.
66789         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
66790         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
66791         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
66792         * sysdeps/gnu/configure: Regenerated.
66793
66794 2012-06-21  Jeff Law  <law@redhat.com>
66795
66796         [BZ #14277]
66797         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
66798         free.  Simplify list management for _LIBC case.
66799
66800 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
66801
66802         [BZ #14273]
66803         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
66804         Clear sign bit of 64-bit integer value before comparing against
66805         overflow value.
66806
66807         * sysdeps/mach/configure: Regenerated.
66808
66809 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
66810
66811         [BZ #14278]
66812         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
66813
66814 2012-06-21  Jeff Law  <law@redhat.com>
66815
66816         [BZ #13882]
66817         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
66818         uint16_t for elements in the "seen" array to avoid char overflows.
66819         * elf/dl-fini.c (_dl_sort_fini): Likewise.
66820         * elf/dl-open.c (dl_open_worker): Likewise.
66821
66822 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
66823
66824         * scripts/list-sources.sh: Scan PORTS for translations.
66825         * po/libc.pot: Regenerated.
66826
66827 2012-06-21  Andreas Jaeger  <aj@suse.de>
66828
66829         [BZ #12194]
66830         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
66831         warning.
66832         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
66833         * bits/byteswap-16.h (__bswap_16): Likewise.
66834         * bits/byteswap.h (__bswap_constant_16): Likewise.
66835
66836 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
66837
66838         [BZ #14117]
66839         * sysdeps/i386/fpu_control.h: Removed.
66840         * sysdeps/x86_64/fpu_control.h: Moved to ...
66841         * sysdeps/x86/fpu_control.h: Here.
66842
66843         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
66844         (_FPU_SETCW): Likewise.
66845
66846 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
66847
66848         [BZ #14117]
66849         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
66850         * sysdeps/x86/fpu/bits/mathinline.h: This.
66851         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
66852
66853         [BZ #14050]
66854         [BZ #14117]
66855         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
66856         functions if __x86_64__ is defined.
66857
66858 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
66859
66860         * string/endian.h: Add !__ASSEMBLER__ condition for including
66861         conversion interfaces.
66862
66863 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
66864
66865         [BZ #14241]
66866         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
66867         of ABS(x) in calculating zero to negative powers other than odd
66868         integers.
66869         * math/libm-test.inc (pow_test): Add more tests.
66870
66871 2012-06-15  Andreas Jaeger  <aj@suse.de>
66872
66873         * manual/contrib.texi (Contributors): Update entry of Liubov
66874         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
66875         Machado Filho.
66876
66877 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
66878
66879         * string/string.h: Add __wur to GNU version of strerror_r.
66880
66881 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
66882
66883         [BZ #14229]
66884         * string/Makefile (tests): Add tst-strtok_r.
66885         * string/tst-strtok_r.c: New file.
66886         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
66887         RAX_LP/RDX_LP on SAVE_PTR.
66888
66889 2012-06-14  Roland McGrath  <roland@hack.frob.com>
66890
66891         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
66892
66893 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
66894
66895         * libm_test.inc (csqrt_test): Allow more spurious underflow
66896         exceptions.
66897         (j0_test): Likewise.
66898         (j1_test): Likewise.
66899         (y0_test): Likewise.
66900         (y1_test): Likewise.
66901
66902 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
66903
66904         * po/Makefile (libc.pot): Use UTF-8 charset.
66905
66906 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
66907
66908         [BZ #14210]
66909         Suppress sign-conversion warning from FD_SET.
66910         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
66911         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
66912         not unsigned long int.
66913         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
66914
66915 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
66916
66917         [BZ #14050]
66918         [BZ #14117]
66919         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
66920         __extern_always_inline instead of __extern_inline.
66921         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
66922         (__signbit): Likewise.
66923         (__signbitl): Support C++ namespace.
66924         (lrintf): New inline function.
66925         (lrint): Likewise.
66926         (llrintf): Likewise.
66927         (llrint): Likewise.
66928         (fmaxf): Likewise.
66929         (fmax): Likewise.
66930         (fminf): Likewise.
66931         (fmin): Likewise.
66932         (rint): Likewise.
66933         (rintf): Likewise.
66934         (ceil): Likewise.
66935         (ceilf): Likewise.
66936         (floor): Likewise.
66937         (floorf): Likewise.
66938         (nearbyint): Likewise.
66939         (nearbyintf): Likewise.
66940
66941 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
66942
66943         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
66944         non-default versions.
66945
66946 2012-06-11  Roland McGrath  <roland@hack.frob.com>
66947
66948         [BZ #14218]
66949         * manual/argp.texi (Argp): Reword argp_parse description slightly.
66950
66951 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
66952
66953         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
66954         (FE_UPWARD, FE_DOWNWARD): Don't define.
66955         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
66956         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
66957
66958         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
66959         reading it.
66960         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
66961         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
66962
66963 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66964
66965         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
66966         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
66967         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
66968         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
66969
66970 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
66971
66972         [BZ #14117]
66973         * sysdeps/i386/fpu/bits/fenv.h: Removed.
66974         * sysdeps/i386/fpu/Implies: New file.
66975         * sysdeps/x86_64/fpu/Implies: Likewise.
66976         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
66977         * sysdeps/x86/fpu/bits/fenv.h: This.
66978
66979         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
66980         __SSE_MATH__.
66981
66982 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
66983
66984         [BZ #14134]
66985         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
66986         character 0xffff that matches the last element of the
66987         conversion table.
66988
66989 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66990
66991         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
66992         fmodl commit.
66993
66994 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66995
66996         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
66997         values higher than 25.6283.
66998
66999 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67000
67001         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
67002         subnormal exponent extraction and add some __builtin_expect.
67003         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
67004         Fix for subnormal mantissa calculation.
67005
67006 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
67007
67008         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
67009         cpu2 is -1 and errno is not ENOSYS.
67010
67011 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
67012
67013         [BZ #14117]
67014         * sysdeps/i386/i486/bits/string.h: Renamed to ...
67015         * sysdeps/x86/bits/string.h: This.
67016         * sysdeps/x86_64/bits/string.h: Removed.
67017
67018         * sysdeps/i386/i486/bits/string.h: Define inline functions only
67019         if not compiling for x86-64, but compiling for >= i486.
67020
67021         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
67022         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
67023
67024         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
67025         New macro from Linux kernel 3.4.0.
67026         (FP_XSTATE_MAGIC2): Likewise.
67027         (FP_XSTATE_MAGIC2_SIZE): Likewise.
67028         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
67029         (struct _fpx_sw_bytes): New struct.
67030         (struct _xsave_hdr): Likewise.
67031         (struct _ymmh_state): Likewise.
67032         (struct _xstate): Likewise.
67033
67034         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
67035         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
67036         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
67037         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
67038         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
67039         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
67040
67041         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
67042         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
67043         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
67044         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
67045         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
67046         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
67047
67048 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67049
67050         [BZ #13743]
67051         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
67052         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
67053         (sysdep_headers): Include sys/platform/ppc.h.
67054         * sysdeps/powerpc/test-gettimebase.c: Test for
67055         __ppc_get_timebase() to catch future ISA opcode/insn changes.
67056         * manual/Makefile (appendices): Include platform.texi.
67057         * manual/contrib.texi (Contributors): Update @node pointers.
67058         * manual/maint.texi (Maintenance): Likewise.
67059         (Platform): New node.
67060         * manual/platform.texi: New file.  Document the new features.
67061
67062 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67063             Jakub Jelinek  <jakub@redhat.com>
67064
67065         [BZ #14188]
67066         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
67067         where __builtin_expect is unavailable.
67068
67069 2012-06-03  David S. Miller  <davem@davemloft.net>
67070
67071         * stdlib/longlong.h: Updated from GCC.
67072
67073 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
67074
67075         [BZ #14042]
67076         * sysdeps/powerpc/powerpc32/mcount.c: New file.
67077         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
67078         __mcount_internal.
67079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
67080         (GLIBC_2.16): Likewise.
67081
67082 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67083
67084         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
67085
67086 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67087
67088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
67089         (default-abi): New variable.
67090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
67091         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
67092         variable.
67093         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
67094         Likewise.
67095         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
67096         Likewise.
67097         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
67098         Likewise.
67099
67100         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
67101         definition.  Document in comment.
67102
67103 2012-06-01  David S. Miller  <davem@davemloft.net>
67104
67105         * stdlib/longlong.h: Updated from GCC.
67106
67107 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67108
67109         [BZ #14117]
67110         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
67111         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
67112         sys/debugreg.h sys/io.h here.
67113         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
67114         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
67115         sys/io.h.
67116         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
67117         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
67118         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
67119         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
67120         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
67121         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
67122
67123         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
67124         Define only if __x86_64__ is defined.
67125
67126 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67127
67128         [BZ #14048]
67129         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
67130         Use int64_t for variable i.
67131         * math/libm-test.inc (fmod_test): Add more tests.
67132
67133         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
67134         z computation is not scheduled after fetestexcept.
67135         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
67136         Use math_force_eval instead of asm to ensure calculation scheduled
67137         before exception test.
67138         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
67139         Ensure a1 + u.d computation is not scheduled after fetestexcept.
67140
67141 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
67142
67143         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
67144         computation is not scheduled after fetestexcept.
67145
67146 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67147
67148         [BZ #14117]
67149         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
67150         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
67151
67152 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67153
67154         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
67155         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67156
67157 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67158
67159         [BZ #14117]
67160         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
67161         <bits/wordsize.h>.
67162         (__WCHAR_MIN): Support __WORDSIZE == 64.
67163         (__WCHAR_MAX): Likewise.
67164
67165         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
67166         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
67167
67168         [BZ #14183]
67169         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
67170         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
67171
67172         [BZ #14117]
67173         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
67174         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
67175
67176         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
67177         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
67178
67179         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
67180         Defined to 1 if __x86_64__ isn't defined.
67181         (_STAT_VER_LINUX_OLD): New.
67182         (st_atime): Remove duplicate.
67183         (st_mtime): Likewise.
67184         (st_ctime): Likewise.
67185
67186 2012-05-31  David S. Miller  <davem@davemloft.net>
67187
67188         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
67189         entries.
67190
67191 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
67192
67193         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
67194         gen-libm-test.pl.
67195
67196         [BZ #14132]
67197         * elf/dl-reloc.c: Include <_itoa.h>.
67198         (_dl_reloc_bad_type): Remove use of INTUSE.
67199         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
67200         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
67201         * stdio-common/psiginfo.c (psiginfo): Likewise.
67202         * stdio-common/psignal.c (psignal): Likewise.
67203         * string/strsignal.c (strsignal): Likewise.
67204         * include/signal.h (_sys_siglist): Declare hidden proto.
67205         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
67206         INTVARDEF with libc_hidden_data_def.
67207         * stdio-common/itoa-udigits.c: Likewise.
67208         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
67209         (_itoa_lower_digits_internal): Remove declaration.
67210         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
67211         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
67212         (_sys_sigabbrev_internal): Remove aliases.
67213         (_sys_siglist): Define hidden alias.
67214
67215 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
67216
67217         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67218         bits/sysctl.h.
67219
67220 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67221
67222         [BZ #14117]
67223         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
67224         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
67225
67226         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
67227         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
67228         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
67229         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
67230         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
67231         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
67232
67233         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
67234         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
67235         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
67236
67237         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
67238         with __addr.
67239         (insw): Likewise.
67240         (insl): Likewise.
67241         (outsb): Likewise.
67242         (outsw): Likewise.
67243         (outsl): Likewise.
67244
67245         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
67246         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
67247         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
67248
67249         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
67250         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
67251         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
67252         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
67253         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
67254         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
67255
67256         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
67257         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
67258
67259         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
67260         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
67261
67262         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
67263         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
67264         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
67265
67266         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
67267         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
67268         to ...
67269         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
67270
67271         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
67272         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
67273         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
67274
67275         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
67276         for x86-64.
67277         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
67278
67279 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
67280
67281         * math/math.h (M_El): Use two more decimal places.
67282         (M_LOG2El): Likewise.
67283         (M_LOG10El): Likewise.
67284         (M_LN2l): Likewise.
67285         (M_LN10l): Likewise.
67286         (M_PIl): Likewise.
67287         (M_PI_2l): Likewise.
67288         (M_PI_4l): Likewise.
67289         (M_1_PIl): Likewise.
67290         (M_2_PIl): Likewise.
67291         (M_2_SQRTPIl): Likewise.
67292         (M_SQRT2l): Likewise.
67293         (M_SQRT1_2l): Likewise.
67294
67295 2012-05-31  David S. Miller  <davem@davemloft.net>
67296
67297         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
67298         values between float registers.
67299         * sysdeps/sparc/sparc64/memset.S: Likewise.
67300         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
67301
67302 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
67303
67304         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
67305         -D_FORTIFY_SOURCE=1.
67306         (CPPFLAGS-tst-longjmp_chk.c): Define.
67307         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67308         (CPPFLAGS-tst-longjmp_chk2.c): Define.
67309         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
67310         CFLAGS-tst-wchar-h.c.
67311
67312 2012-05-31  Marek Polacek  <polacek@redhat.com>
67313
67314         [BZ #14132]
67315         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
67316         __endmntent_internal): Remove declaration.
67317         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
67318         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
67319         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
67320
67321 2012-05-30  David S. Miller  <davem@davemloft.net>
67322
67323         * sysdeps/sparc/sparc32/soft-fp/q_util.c
67324         (___Q_simulate_exceptions): Use real FP ops rather than writing
67325         into the %fsr.
67326         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
67327         Likewise.
67328
67329 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67330
67331         [BZ #14117]
67332         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
67333         * sysdeps/x86/bits/xtitypes.h: This.
67334
67335         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
67336         * sysdeps/x86/bits/wordsize.h: This.
67337
67338         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
67339         * sysdeps/x86/bits/huge_vall.h: This.
67340
67341         * sysdeps/i386/bits/select.h: Removed.
67342         * sysdeps/x86_64/bits/select.h: Renamed to ...
67343         * sysdeps/x86/bits/select.h: This.
67344
67345         * sysdeps/i386/bits/setjmp.h: Removed.
67346         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
67347         * sysdeps/x86/bits/setjmp.h: This.
67348
67349         * sysdeps/i386/bits/mathdef.h: Removed.
67350         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
67351         * sysdeps/x86/bits/mathdef.h: This.
67352
67353 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
67354
67355         [BZ #14132]
67356         * include/sys/socket.h (__connect_internal)
67357         (__libc_sa_len_internal): Remove declaration.
67358         (__connect, __libc_sa_len): Declare hidden_proto.
67359         (SA_LEN): Remove use of INTUSE.
67360         * socket/connect.c: Add libc_hidden_def.
67361         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
67362         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
67363         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
67364         alias.
67365         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
67366         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
67367         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
67368         of adding _internal alias.
67369
67370 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67371
67372         [BZ #14117]
67373         * sysdeps/i386/bits/link.h: Removed.
67374         * sysdeps/i386/bits/linkmap.h: Likewise.
67375         * sysdeps/x86_64/bits/link.h: Renamed to ...
67376         * sysdeps/x86/bits/link.h: This.
67377         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
67378         * sysdeps/x86/bits/linkmap.h: This.
67379
67380         * sysdeps/i386/bits/endian.h: Removed.
67381         * sysdeps/x86_64/bits/endian.h: Renamed to ...
67382         * sysdeps/x86/bits/endian.h: This.
67383
67384         * sysdeps/i386/bits/byteswap.h: Removed.
67385         * sysdeps/i386/bits/byteswap-16.h: Likewise.
67386         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
67387         * sysdeps/x86/bits/byteswap.h: This.
67388         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
67389         * sysdeps/x86/bits/byteswap-16.h: This.
67390         * sysdeps/i386/Implies: Add x86.
67391         * sysdeps/x86_64/Implies: Likewise.
67392
67393 2012-05-30  David S. Miller  <davem@davemloft.net>
67394
67395         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
67396         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
67397         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
67398         (FP_TRAPPING_EXCEPTIONS): Define.
67399         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
67400         (FP_TRAPPING_EXCEPTIONS): Define.
67401         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
67402         subnormals only when inexact has been signalled or underflow
67403         exceptions are enabled.
67404         (_FP_PACK_CANONICAL): Likewise.
67405
67406 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67407
67408         [BZ #14183]
67409         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
67410         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
67411
67412 2012-05-30  Richard Henderson  <rth@twiddle.net>
67413
67414         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
67415         with #ifndef NOT_IN_libc.
67416
67417         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
67418         marked to avoid plt entry.
67419
67420 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67421
67422         [BZ #14112]
67423         * Makeconfig (default-abi): New macro.
67424         (abi-includes): Likewise.
67425         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
67426         $(abi-$(default-abi)-lib-soname) for soname if defined.
67427         ($(common-objpfx)gnu/lib-names.stmp): Generate from
67428         abi-variants.
67429         * Makefile (installed-stubs): Likewise.
67430         * include/stubs-biarch.h: Removed.
67431         * scripts/lib-names.awk: Only handle one library at a time.
67432         * scripts/soversions.awk: Remove WORDSIZE support.
67433         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
67434         entries.
67435         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
67436         Removed.
67437         (syscall-list-default-condition): Likewise.
67438         (syscall-list-default-condition): Likewise.
67439         (syscall-list-includes): Likewise.
67440         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
67441         syscall-list-* with abi-*.  Handle undefined abi-variants.
67442         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
67443         * sysdeps/unix/sysv/linux/i386/Implies: New file.
67444         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
67445         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
67446         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
67447         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
67448         Removed.
67449         (syscall-list-32-options): Likewise.
67450         (syscall-list-32-condition): Likewise.
67451         (syscall-list-64-options): Likewise.
67452         (syscall-list-64-condition): Likewise.
67453         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
67454         macro.
67455         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
67456         Renamed to ...
67457         (abi-*): This.
67458         (abi-64-ld-soname): New macro.
67459         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
67460         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
67461         Renamed to ...
67462         (abi-*): This.
67463         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
67464         * sysdeps/x86_64/x32/shlib-versions: Likewise.
67465
67466 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
67467
67468         * sysdeps/unix/sysv/linux/kernel-features.h
67469         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
67470         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
67471         include <kernel-features.h>.
67472         [!__NR_ftruncate64]: Remove conditional code.
67473         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67474         [__NR_ftruncate64]: Make code unconditional.
67475         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67476         * sysdeps/unix/sysv/linux/truncate64.c: Do not
67477         include <kernel-features.h>.
67478         [!__NR_ftruncate64]: Remove conditional code.
67479         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67480         [__NR_ftruncate64]: Make code unconditional.
67481         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
67483         include <kernel-features.h>.
67484         [!__NR_ftruncate64]: Remove conditional code.
67485         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67486         [__NR_ftruncate64]: Make code unconditional.
67487         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
67489         include <kernel-features.h>.
67490         [!__NR_ftruncate64]: Remove conditional code.
67491         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67492         [__NR_ftruncate64]: Make code unconditional.
67493         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67494
67495         * configure.in (libc_cv_fpie): Weaken to a compile test using
67496         LIBC_TRY_CC_OPTION.
67497         * configure: Regenerated.
67498
67499 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67500
67501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
67502         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
67503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
67504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
67505         Refreshed.
67506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
67507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
67508         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
67509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
67510         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
67511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
67512         Refreshed.
67513
67514 2012-05-27  David S. Miller  <davem@davemloft.net>
67515
67516         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
67517         (___Q_zero): New.
67518         (__Q_simulate_exceptions): Return void.  Change to simulate
67519         exceptions by writing into the %fsr.
67520         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
67521         (__Qp_handle_exceptions): Likewise.
67522         (numbers): Delete.
67523         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
67524         __Qp_handle_exceptions.
67525         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
67526         __Qp_handle_exceptions.
67527         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67528         as unused and give dummy FP_RND_NEAREST initializer.
67529         (FP_INHIBIT_RESULTS): Define.
67530         (___Q_simulate_exceptions): Update declaration.
67531         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
67532         formatting.
67533         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67534         as unused and give dummy FP_RND_NEAREST initializer.
67535         (__Qp_handle_exceptions): Update declaration.
67536         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
67537         formatting.
67538
67539 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
67540
67541         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
67542         the temporary FPU control word.
67543         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
67544         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
67545         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
67546         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67547         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
67548         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
67549         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
67550         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67551         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
67552         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
67553         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67554
67555 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67556
67557         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
67558         fields.
67559
67560 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
67561
67562         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
67563         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
67564         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
67565         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
67566         Likewise.
67567         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
67568         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
67569         Likewise.
67570
67571 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
67572
67573         * po/h.po: Update from translation team.
67574
67575 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
67576
67577         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
67578
67579         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
67580         handling of denormals.
67581         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67582         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
67583         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67584         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67585         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67586         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
67587         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
67588         Likewise.
67589
67590 2012-05-26  Marek Polacek  <polacek@redhat.com>
67591
67592         [BZ #14152]
67593         * math/libm-test.inc (fma_test): Don't always expect underflow
67594         exception.
67595
67596 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
67597
67598         [BZ #12416]
67599         * elf/tst-execstack.c: Include stackinfo.h.
67600         (do_test): Adjust test case to ensure that pthread_getattr_np
67601         behaviour remains the same after marking stack executable.
67602
67603 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67604
67605         * sysdeps/unix/sysv/linux/kernel-features.h
67606         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
67607         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
67608         kernel-features.h.
67609         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67610         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67611         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
67612         kernel-features.h.
67613         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67614         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67615
67616 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
67617
67618         * configure.in: Define the default includes to being none.
67619         * configure: Regenerated.
67620
67621 2012-05-25  Roland McGrath  <roland@hack.frob.com>
67622
67623         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
67624         * sysdeps/x86_64/setjmp.S: Likewise.
67625         * sysdeps/i386/bsd-setjmp.S: Likewise.
67626         * sysdeps/i386/bsd-_setjmp.S: Likewise.
67627         * sysdeps/i386/setjmp.S: Likewise.
67628         * sysdeps/i386/__longjmp.S: Likewise.
67629         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
67630         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
67631
67632         * include/stap-probe.h: New file.
67633         * configure.in: Handle --enable-systemtap.
67634         * configure: Regenerated.
67635         * config.h.in (USE_STAP_PROBE): New #undef.
67636         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
67637         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
67638         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
67639
67640 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67641
67642         [BZ #13717]
67643         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
67644         to 2.4.0 where earlier.
67645         * sysdeps/unix/sysv/linux/configure: Regenerated.
67646         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
67647         <kernel-features.h>.
67648         [__ASSUME_32BITUIDS]: Make code unconditional.
67649         [!__ASSUME_32BITUIDS]: Remove conditional code.
67650         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
67651         <kernel-features.h>.
67652         [__ASSUME_32BITUIDS]: Make code unconditional.
67653         [!__ASSUME_32BITUIDS]: Remove conditional code.
67654         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
67655         [__ASSUME_32BITUIDS]: Make code unconditional.
67656         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
67657         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
67658         <kernel-features.h>.
67659         [__ASSUME_32BITUIDS]: Make code unconditional.
67660         [!__ASSUME_32BITUIDS]: Remove conditional code.
67661         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
67662         <kernel-features.h>.
67663         [__ASSUME_32BITUIDS]: Make code unconditional.
67664         [!__ASSUME_32BITUIDS]: Remove conditional code.
67665         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
67666         <kernel-features.h>.
67667         [__ASSUME_32BITUIDS]: Make code unconditional.
67668         [!__ASSUME_32BITUIDS]: Remove conditional code.
67669         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
67670         <kernel-features.h>.
67671         [__ASSUME_32BITUIDS]: Make code unconditional.
67672         [!__ASSUME_32BITUIDS]: Remove conditional code.
67673         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
67674         <kernel-features.h>.
67675         [__ASSUME_32BITUIDS]: Make code unconditional.
67676         [!__ASSUME_32BITUIDS]: Remove conditional code.
67677         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
67678         <kernel-features.h>.
67679         [__ASSUME_32BITUIDS]: Make code unconditional.
67680         [!__ASSUME_32BITUIDS]: Remove conditional code.
67681         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
67682         <kernel-features.h>.
67683         [__ASSUME_32BITUIDS]: Make code unconditional.
67684         [!__ASSUME_32BITUIDS]: Remove conditional code.
67685         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
67686         <kernel-features.h>.
67687         [__ASSUME_32BITUIDS]: Make code unconditional.
67688         [!__ASSUME_32BITUIDS]: Remove conditional code.
67689         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
67690         <kernel-features.h>.
67691         [__ASSUME_32BITUIDS]: Make code unconditional.
67692         [!__ASSUME_32BITUIDS]: Remove conditional code.
67693         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
67694         <kernel-features.h>.
67695         [__ASSUME_32BITUIDS]: Make code unconditional.
67696         [!__ASSUME_32BITUIDS]: Remove conditional code.
67697         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
67698         <kernel-features.h>.
67699         [__NR_setresgid] (__setresgid): Do not declare.
67700         [__ASSUME_32BITUIDS]: Make code unconditional.
67701         [!__ASSUME_32BITUIDS]: Remove conditional code.
67702         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
67703         <kernel-features.h>.
67704         [__NR_setresuid] (__setresuid): Do not declare.
67705         [__ASSUME_32BITUIDS]: Make code unconditional.
67706         [!__ASSUME_32BITUIDS]: Remove conditional code.
67707         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
67708         <kernel-features.h>.
67709         [__ASSUME_32BITUIDS]: Make code unconditional.
67710         [!__ASSUME_32BITUIDS]: Remove conditional code.
67711         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
67712         <kernel-features.h>.
67713         [__ASSUME_32BITUIDS]: Make code unconditional.
67714         [!__ASSUME_32BITUIDS]: Remove conditional code.
67715         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
67716         <kernel-features.h>.
67717         [__ASSUME_32BITUIDS]: Make code unconditional.
67718         [!__ASSUME_32BITUIDS]: Remove conditional code.
67719         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
67720         <kernel-features.h>.
67721         [__ASSUME_32BITUIDS]: Make code unconditional.
67722         [!__ASSUME_32BITUIDS]: Remove conditional code.
67723         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
67724         <kernel-features.h>.
67725         [__ASSUME_32BITUIDS]: Make code unconditional.
67726         [!__ASSUME_32BITUIDS]: Remove conditional code.
67727         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
67728         <kernel-features.h>.
67729         [__ASSUME_32BITUIDS]: Make code unconditional.
67730         [!__ASSUME_32BITUIDS]: Remove conditional code.
67731         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
67732         <kernel-features.h>.
67733         [__ASSUME_32BITUIDS]: Make code unconditional.
67734         [!__ASSUME_32BITUIDS]: Remove conditional code.
67735         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
67736         <kernel-features.h>.
67737         [__ASSUME_32BITUIDS]: Make code unconditional.
67738         [!__ASSUME_32BITUIDS]: Remove conditional code.
67739         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
67740         <kernel-features.h>.
67741         [__ASSUME_32BITUIDS]: Make code unconditional.
67742         [!__ASSUME_32BITUIDS]: Remove conditional code.
67743         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
67744         <kernel-features.h>.
67745         [__ASSUME_32BITUIDS]: Make code unconditional.
67746         [!__ASSUME_32BITUIDS]: Remove conditional code.
67747         * sysdeps/unix/sysv/linux/kernel-features.h
67748         (__ASSUME_SETRESUID_SYSCALL): Remove.
67749         (__ASSUME_SETRESGID_SYSCALL): Likewise.
67750         (__ASSUME_32BITUIDS): Likewise.
67751         (__ASSUME_LDT_WORKS): Likewise.
67752         (__ASSUME_O_DIRECTORY): Likewise.
67753         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
67754         architecture but not kernel version.
67755         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
67756         (__ASSUME_MMAP2_SYSCALL): Likewise.
67757         (__ASSUME_STAT64_SYSCALL): Likewise.
67758         (__ASSUME_IPC64): Likewise.
67759         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
67760         <kernel-features.h>.
67761         [__ASSUME_32BITUIDS]: Make code unconditional.
67762         [!__ASSUME_32BITUIDS]: Remove conditional code.
67763         * sysdeps/unix/sysv/linux/opendir.c: Do not include
67764         <kernel-features.h>.
67765         [__ASSUME_O_DIRECTORY]: Make code unconditional.
67766         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
67767         132096]: Remove conditional code.
67768         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
67769         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
67770         <kernel-features.h>.
67771         [__ASSUME_32BITUIDS]: Make code unconditional.
67772         [!__ASSUME_32BITUIDS]: Remove conditional code.
67773         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
67774         <kernel-features.h>.
67775         [__ASSUME_32BITUIDS]: Make code unconditional.
67776         [!__ASSUME_32BITUIDS]: Remove conditional code.
67777         * sysdeps/unix/sysv/linux/setegid.c: Do not include
67778         <kernel-features.h>.
67779         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
67780         unconditional.
67781         (__setresgid): Do not declare.
67782         [__ASSUME_32BITUIDS]: Make code unconditional.
67783         [!__ASSUME_32BITUIDS]: Remove conditional code.
67784         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
67785         <kernel-features.h>.
67786         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
67787         unconditional.
67788         (__setresuid): Do not declare.
67789         [__ASSUME_32BITUIDS]: Make code unconditional.
67790         [!__ASSUME_32BITUIDS]: Remove conditional code.
67791         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
67792         <kernel-features.h>.
67793         [__ASSUME_32BITUIDS]: Make code unconditional.
67794         [!__ASSUME_32BITUIDS]: Remove conditional code.
67795         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
67796         <kernel-features.h>.
67797         [__ASSUME_32BITUIDS]: Make code unconditional.
67798         [!__ASSUME_32BITUIDS]: Remove conditional code.
67799
67800 2012-05-25  Richard Henderson  <rth@twiddle.net>
67801
67802         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
67803         dl_hwcap to ifunc resolver.
67804         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
67805         elf_ifunc_invoke.
67806         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
67807         dl_hwcap to ifunc resolver.
67808         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
67809
67810 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67811
67812         [BZ #14153]
67813         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
67814         for |x| <= 2**-26, not 2**-57.
67815         * math/libm-test.inc (acos_test): Do not allow spurious underflow
67816         exception.
67817
67818 2012-05-24  Jeff Law  <law@redhat.com>
67819
67820         * stdio-common/Makefile (tests): Add bug25.
67821         * stdio-common/bug25.c: New test.
67822
67823 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67824
67825         [BZ #13576]
67826         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
67827         multiple of MALLOC_ALIGNMENT in size.
67828         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
67829
67830 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67831
67832         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
67833         Require >= 256.
67834         (FILENAME_MAX): Use macro-int-constant.
67835         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
67836         (_IOFBF): Use macro-int-constant.
67837         (_IOLBF): Likewise.
67838         (_IONBF): Likewise.
67839         (SEEK_CUR): Likewise.
67840         (SEEK_END): Likewise.
67841         (SEEK_SET): Likewise.
67842         (TMP_MAX): Likewise.
67843         (EOF): Use macro-int-constant.  Require < 0.
67844         (NULL): Use macro-constant.  Require == 0.
67845         (stdin): Require type to be FILE *.
67846         (stdout): Likewise.
67847         (stderr): Likewise.
67848         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
67849         macro-int-constant.
67850         (EXIT_SUCCESS): Likewise.
67851         (NULL): Use macro-constant.  Require == 0.
67852         (RAND_MAX): Use macro-int-constant.
67853         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
67854         [C99-based standards] (strtof): Require function.
67855         [C99-based standards] (strtold): Likewise.
67856         [C99-based standards] (strtoll): Likewise.
67857         [C99-based standards] (strtoull): Likewise.
67858         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
67859         [ISO || ISO99 || ISO11] (limits.h): Likewise.
67860         [ISO || ISO99 || ISO11] (math.h): Likewise.
67861         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
67862         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
67863         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67864
67865 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
67866
67867         [BZ #14132]
67868         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
67869         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
67870         * intl/dgettext.c (DCGETTEXT): Likewise.
67871         * intl/gettext.c (DCGETTEXT): Likewise.
67872         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
67873         * posix/regex_internal.h (gettext): Likewise.
67874         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
67875         Remove declaration.
67876         * include/argz.h (__argz_count_internal)
67877         (__argz_stringify_internal): Remove declaration.
67878         (__argz_count, __argz_stringify): Declare hidden proto.
67879         * intl/dcgettext.c: Remove use of INTDEF.
67880         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
67881         * string/argz-stringify.c: Likewise.
67882         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67883         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67884         Declare hidden proto.
67885         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67886         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67887         Declare hidden proto.
67888         * include/stdio.h (__asprintf_internal): Don't declare.
67889         (__asprintf): Don't define as macro.  Declare hidden proto.
67890         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
67891         (__fsetlocking): Declare hidden proto.
67892         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
67893         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
67894         hidden proto.
67895         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
67896         (_IO_setlinebuf): Remove use of INTUSE.
67897         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
67898         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
67899         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
67900         Remove declaration.
67901         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
67902         (_IO_do_flush): Remove use of INTUSE.
67903         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
67904         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
67905         (_IO_adjust_column, _IO_least_wmarker)
67906         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
67907         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
67908         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
67909         (_IO_default_doallocate, _IO_wdefault_doallocate)
67910         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
67911         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
67912         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
67913         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
67914         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
67915         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
67916         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
67917         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
67918         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
67919         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
67920         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
67921         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
67922         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
67923         proto.
67924         (_IO_flush_all_internal, _IO_adjust_column_internal)
67925         (_IO_default_uflow_internal, _IO_default_finish_internal)
67926         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
67927         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
67928         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
67929         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
67930         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
67931         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
67932         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
67933         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
67934         (_IO_file_close_internal, _IO_file_close_it_internal)
67935         (_IO_file_underflow_internal, _IO_file_overflow_internal)
67936         (_IO_file_init_internal, _IO_file_attach_internal)
67937         (_IO_file_fopen_internal, _IO_file_read_internal)
67938         (_IO_file_sync_internal, _IO_file_seek_internal)
67939         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
67940         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
67941         (_IO_str_underflow_internal, _IO_str_overflow_internal)
67942         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
67943         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
67944         (_IO_list_all_internal, _IO_link_in_internal)
67945         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
67946         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
67947         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
67948         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
67949         (_IO_do_write_internal, _IO_padn_internal)
67950         (_IO_getline_info_internal, _IO_getline_internal)
67951         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
67952         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
67953         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
67954         (_IO_vfscanf_internal, _IO_vfprintf_internal)
67955         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
67956         (_IO_init_internal, _IO_un_link_internal): Don't declare.
67957         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
67958         with libc_hidden_ver, remove use of INTUSE.
67959         * libio/genops.c: Likewise.
67960         * libio/freopen.c: Likewise.
67961         * libio/freopen64.c: Likewise.
67962         * libio/iofclose.c: Likewise.
67963         * libio/iofdopen.c: Likewise.
67964         * libio/iofflush.c: Likewise.
67965         * libio/iofflush_u.c: Likewise.
67966         * libio/iofgets.c: Likewise.
67967         * libio/iofgets_u.c: Likewise.
67968         * libio/iofopen.c: Likewise.
67969         * libio/iofopncook.c: Likewise.
67970         * libio/iofread.c: Likewise.
67971         * libio/iofread_u.c: Likewise.
67972         * libio/ioftell.c: Likewise.
67973         * libio/iofwrite.c: Likewise.
67974         * libio/iogetline.c: Likewise.
67975         * libio/iogets.c: Likewise.
67976         * libio/iogetwline.c: Likewise.
67977         * libio/iopadn.c: Likewise.
67978         * libio/iopopen.c: Likewise.
67979         * libio/ioseekoff.c: Likewise.
67980         * libio/ioseekpos.c: Likewise.
67981         * libio/iosetbuffer.c: Likewise.
67982         * libio/iosetvbuf.c: Likewise.
67983         * libio/ioungetc.c: Likewise.
67984         * libio/ioungetwc.c: Likewise.
67985         * libio/iovdprintf.c: Likewise.
67986         * libio/iovsprintf.c: Likewise.
67987         * libio/iovsscanf.c: Likewise.
67988         * libio/memstream.c: Likewise.
67989         * libio/obprintf.c: Likewise.
67990         * libio/oldfileops.c: Likewise.
67991         * libio/oldiofclose.c: Likewise.
67992         * libio/oldiofdopen.c: Likewise.
67993         * libio/oldiofopen.c: Likewise.
67994         * libio/oldiopopen.c: Likewise.
67995         * libio/oldstdfiles.c: Likewise.
67996         * libio/putc.c: Likewise.
67997         * libio/setbuf.c: Likewise.
67998         * libio/setlinebuf.c: Likewise.
67999         * libio/stdfiles.c: Likewise.
68000         * libio/strops.c: Likewise.
68001         * libio/vasprintf.c: Likewise.
68002         * libio/vscanf.c: Likewise.
68003         * libio/vsnprintf.c: Likewise.
68004         * libio/vswprintf.c: Likewise.
68005         * libio/wfiledoalloc.c: Likewise.
68006         * libio/wfileops.c: Likewise.
68007         * libio/wgenops.c: Likewise.
68008         * libio/wmemstream.c: Likewise.
68009         * libio/wstrops.c: Likewise.
68010         * libio/__fpurge.c: Likewise.
68011         * libio/__fsetlocking.c: Likewise.
68012         * assert/assert.c: Likewise.
68013         * debug/fgets_chk.c: Likewise.
68014         * debug/fgets_u_chk.c: Likewise.
68015         * debug/fread_chk.c: Likewise.
68016         * debug/fread_u_chk.c: Likewise.
68017         * debug/gets_chk.c: Likewise.
68018         * debug/obprintf_chk.c: Likewise.
68019         * debug/vasprintf_chk.c: Likewise.
68020         * debug/vdprintf_chk.c: Likewise.
68021         * debug/vsnprintf_chk.c: Likewise.
68022         * debug/vsprintf_chk.c: Likewise.
68023         * malloc/mtrace.c: Likewise.
68024         * misc/error.c: Likewise.
68025         * misc/syslog.c: Likewise.
68026         * stdio-common/asprintf.c: Likewise.
68027         * stdio-common/fxprintf.c: Likewise.
68028         * stdio-common/getw.c: Likewise.
68029         * stdio-common/isoc99_fscanf.c: Likewise.
68030         * stdio-common/isoc99_scanf.c: Likewise.
68031         * stdio-common/isoc99_vfscanf.c: Likewise.
68032         * stdio-common/isoc99_vscanf.c: Likewise.
68033         * stdio-common/isoc99_vsscanf.c: Likewise.
68034         * stdio-common/printf-prs.c: Likewise.
68035         * stdio-common/printf_fp.c: Likewise.
68036         * stdio-common/printf_fphex.c: Likewise.
68037         * stdio-common/printf_size.c: Likewise.
68038         * stdio-common/putw.c: Likewise.
68039         * stdio-common/scanf.c: Likewise.
68040         * stdio-common/sprintf.c: Likewise.
68041         * stdio-common/tmpfile.c: Likewise.
68042         * stdio-common/vfprintf.c: Likewise.
68043         * stdio-common/vfscanf.c: Likewise.
68044         * stdlib/strfmon_l.c: Likewise.
68045         * sunrpc/openchild.c: Likewise.
68046         * sunrpc/xdr_stdio.c: Likewise.
68047         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
68048         * sysdeps/mach/hurd/tmpfile.c: Likewise.
68049
68050 2012-05-24  Roland McGrath  <roland@hack.frob.com>
68051
68052         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68053
68054         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
68055         in the third column, to generate for the shared library an IFUNC
68056         that uses _dl_vdso_vsym.
68057         * Makerules (COMPILE.c, compile-stdin.c): New variables.
68058         * Makeconfig (object-suffixes-noshared): New variable.
68059
68060         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
68061         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
68062         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
68063         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
68064
68065         [BZ #14132]
68066         * include/sys/time.h (__gettimeofday): Remove macro.
68067         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
68068         * time/gettimeofday.c (__gettimeofday): Remove #undef.
68069         Remove INTDEF.
68070         (__gettimeofday): Add libc_hidden_def.
68071         (gettimeofday): Add libc_hidden_weak.
68072         * sysdeps/mach/gettimeofday.c: Likewise.
68073         * sysdeps/posix/gettimeofday.c: Likewise.
68074         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
68075         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
68076         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
68077         (__gettimeofday_internal): Remove strong_alias.
68078         (__gettimeofday): Add libc_hidden_def.
68079         (gettimeofday): Add libc_hidden_weak.
68080         * sysdeps/unix/syscalls.list (gettimeofday):
68081         Remove __gettimeofday_internal alias.
68082
68083 2012-05-24  Daniel Jacobowitz  <drow@false.org>
68084             H.J. Lu  <hongjiu.lu@intel.com>
68085
68086         [BZ #12495]
68087         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
68088         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
68089         (largebin_index_32_big): New.
68090         (largebin_index): Use it for 16-byte alignment.
68091         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
68092         correction with front_misalign.
68093
68094 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68095
68096         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
68097         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
68098         Likewise.
68099         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
68100         Likewise.
68101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
68102         Likewise.
68103         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
68104         Likewise.
68105         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
68106         Likewise.
68107         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
68108         Likewise.
68109         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
68110         Likewise.
68111         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
68112         Likewise.
68113         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
68114         Likewise.
68115         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
68116         Likewise.
68117         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
68118         Likewise.
68119         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
68120         Likewise.
68121
68122         * scripts/data/c++-types-x32-linux-gnu.data: New file.
68123         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
68124
68125 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68126
68127         [BZ #10846]
68128         [BZ #14036]
68129         * math/libm-test.inc (exp_test): Add test from bug 14036.
68130         (pow_test): Add test from bug 10846.
68131
68132         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
68133         and other flags.
68134         (special_function): Do not include flags in test name.
68135         (parse_args): Likewise.
68136         * sysdeps/i386/fpu/libm-test-ulps: Update.
68137         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68138         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
68139         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
68140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68141
68142         * math/gen-libm-test.pl (%beautify): Add entries for underflow
68143         exceptions.
68144         * math/libm-test.inc ("Philosophy"): Update comment about
68145         exception testing.
68146         (UNDERFLOW_EXCEPTION): New macro.
68147         (UNDERFLOW_EXCEPTION_OK): Likewise.
68148         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
68149         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
68150         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
68151         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
68152         (INVALID_EXCEPTION_OK): Update value.
68153         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
68154         (OVERFLOW_EXCEPTION_OK): Likewise.
68155         (IGNORE_ZERO_INF_SIGN): Likewise.
68156         (test_exceptions): Handle underflow exceptions.
68157         (acos_test): Update for underflow exception expectations.
68158         (cexp_test): Likewise.
68159         (clog_test): Likewise.
68160         (clog10_test): Likewise.
68161         (csqrt_test): Likewise.
68162         (ctan_test): Likewise.
68163         (ctanh_test): Likewise.
68164         (exp_test): Likewise.
68165         (exp10_test): Likewise.
68166         (exp2_test): Likewise.
68167         (expm1_test): Likewise.
68168         (fma_test): Likewise.
68169         (j0_test): Likewise.
68170         (jn_test): Likewise.
68171         (nexttoward_test): Likewise.
68172         (pow_test): Likewise.
68173         (scalbn_test): Likewise.
68174         (scalbln_test): Likewise.
68175         (tan_test): Likewise.
68176         (y1_test): Likewise.
68177         * sysdeps/i386/fpu/libm-test-ulps: Update.
68178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68179
68180 2012-05-23  David S. Miller  <davem@davemloft.net>
68181
68182         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
68183         (__libc_sigaction): Remove unused local variables.
68184
68185 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68186
68187         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
68188
68189 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
68190
68191         mktime: avoid signed integer overflow
68192         * time/mktime.c (__mktime_internal): Do not mishandle the case
68193         where diff == INT_MIN.
68194
68195         mktime: simplify computation of average
68196         * time/mktime.c (ranged_convert): Use new time_t_avg function
68197         instead of rolling our own (probably-slower) code.
68198
68199         mktime: do not assume signed right shift propagates sign bit
68200         * time/mktime.c (isdst_differ): New static function.
68201         (__mktime_internal): No need to normalize tm_isdst now.
68202         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
68203         tm_isdst values.
68204
68205         mktime: merge another wrapv change from gnulib
68206         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
68207         from some compilers.
68208
68209         mktime: remove incorrect attempt at unusual arithmetics
68210         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
68211         The code didn't really work on such machines anyway.
68212         (TYPE_MINIMUM): Assume two's complement.
68213         (twos_complement_arithmetic): Verify that long_int and time_t
68214         are two's complement (or unsigned, in the latter case).
68215
68216         mktime: check signed shifts on long_int and time_t, too
68217         * time/mktime.c (SHR): Check that shifts work as desired
68218         on the types long_int and time_t too, as SHR is used on
68219         such types.
68220
68221         mktime: do not assume 'long' is wide enough
68222         * time/mktime.c (verify): Move decl up.
68223         (long_int): New type.
68224         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
68225         to remove assumption in the code that 'long' is wide enough to
68226         store year values.  This assumption is not true on x32 and on
68227         some non-glibc platforms.
68228
68229         mktime: merge wrapv change from gnulib
68230         * time/mktime.c (WRAPV): New macro.
68231         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
68232         (guess_time_tm, __mktime_internal): Do not assume that signed
68233         integer overflow wraps around; modern compilers generate code
68234         where this assumption is no longer valid.
68235
68236 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68237
68238         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68239         Replace "jmp L(pseudo_end)" with "ret".
68240         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
68241         Likewise.
68242
68243 2012-05-23  Andreas Jaeger  <aj@suse.de>
68244
68245         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
68246         * sysdeps/unix/sysv/linux/poll.c: Remove file.
68247
68248 2012-05-23  Andreas Jaeger  <aj@suse.de>
68249             Maximilian Attems  <max@stro.at>
68250
68251         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
68252         New macros.
68253
68254 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68255
68256         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
68257         code so that pseudo_end is just ret and the stack pointer is
68258         correct also for static library in error case.
68259
68260 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
68261
68262         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
68263         move to syscalls.list.
68264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
68265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
68266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
68267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
68268
68269         * manual/install.texi (Running make install): Do not mention Linux
68270         kernel version for which pt_chown is not needed.
68271         (Linux): Do not mention problems with nscd with 2.0 kernels.
68272         * INSTALL: Regenerated.
68273
68274 2012-05-23  Andreas Jaeger  <aj@suse.de>
68275
68276         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
68277         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
68278         macro.
68279         * sysdeps/unix/sysv/linux/s390/bits/mman.h
68280         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68281         * sysdeps/unix/sysv/linux/sh/bits/mman.h
68282         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68283         * sysdeps/unix/sysv/linux/i386/bits/mman.h
68284         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68285         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
68286         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68287         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
68288         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68289         * sysdeps/unix/sysv/linux/bits/in.h
68290         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
68291
68292 2012-05-22  Roland McGrath  <roland@hack.frob.com>
68293
68294         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
68295         (PREPARE_VERSION): Just use assert instead, it will be elided
68296         under [NDEBUG] anyway.
68297
68298 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68299
68300         * sysdeps/unix/sysv/linux/Makefile: Include
68301         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
68302         (sysdep_routines): Remove sysctl.
68303         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
68304         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
68305         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
68306         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
68307         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
68308
68309 2012-05-22  Andreas Jaeger  <aj@suse.de>
68310
68311         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
68312         that pseudo_end is just ret and the stack pointer is correct also
68313         for static library in error case.
68314
68315 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
68316
68317         [BZ #14122]
68318         * nss/nsswitch.c (defconfig_entries): New variable.
68319         (__nss_database_lookup): Don't leak defconfig entries.
68320         (nss_parse_service_list): Don't leak on error paths.
68321         (free_database_entries): New function.
68322         (free_defconfig): New function.
68323         (free_mem): Move common code to free_database_entries.
68324
68325 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68326
68327         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
68328         Add arch_prctl.
68329         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
68330
68331         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
68332         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
68333         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
68334         New macro.
68335         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
68336         (INTERNAL_SYSCALL_TYPES): Likewise.
68337         (LOAD_ARGS_TYPES_[1-6]): Likewise.
68338         (LOAD_REGS_TYPES_[1-6]): Likewise.
68339         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
68340         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
68341
68342 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68343
68344         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
68345         copysignl for GLIBC_2_0.
68346         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
68347         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
68348         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
68349         logbl for GLIBC_2_0.
68350         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
68351         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
68352
68353 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68354
68355         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
68356         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68357
68358         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68359         Use "neg %eax".
68360
68361         * time/mktime.c: Update copyright years.
68362
68363 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         mktime: merge comment-quoting-style change from gnulib
68366         * time/mktime.c: Quote 'like this' in comments.
68367         The GNU coding standards suggest that we no longer quote `like this',
68368         as "`" and "'" are typically rendered asymmetrically nowadays.
68369         The typical gnulib style is to quote 'like this' when quoting
68370         code, and "like this" when quoting English.
68371
68372         * time/mktime.c (compile-command): Add "-I.".
68373
68374         mktime: merge mktime-internal.h change from gnulib
68375         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
68376
68377         mktime: merge time_r change from gnulib
68378         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
68379
68380         mktime: merge DEBUG change from gnulib
68381         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
68382         case system <time.h> has a #define.
68383
68384         mktime: merge <sys/types.h> change from gnulib
68385         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
68386         since <time.t> is now guaranteed to define time_t.
68387
68388         mktime: merge HAVE_CONFIG_H change from gnulib
68389         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
68390
68391 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68392
68393         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68394         Use "neg %eax".
68395
68396         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
68397         __rlim_t cast.
68398         (struct rusage): Use anonymous union to pad each field to
68399         __syscall_slong_t.
68400
68401 2012-05-21  David S. Miller  <davem@davemloft.net>
68402
68403         * Makefules (o-iterator): Remove .s cases.
68404         (compile-command.s): Delete.
68405         (COMPILE.s): Delete.
68406         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
68407
68408 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
68409
68410         * configure.in (libc_cv_predef_stack_protector): Only consider
68411         "foobar" and "__stack_chk_fail" lines in libc_undefs.
68412         * configure: Regenerated.
68413
68414 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68415
68416         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68417         New macro.  Use R*LP on int and pointer.
68418         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
68419         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68420         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
68421         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
68422
68423         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
68424         [__WORDSIZE_TIME64_COMPAT32] instead of
68425         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
68426         (struct utmp): Likewise.
68427         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
68428         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
68429         Renamed to ...
68430         (__WORDSIZE_TIME64_COMPAT32): This.
68431         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
68432         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
68433         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
68434         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
68435         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
68436         (__WORDSIZE_TIME64_COMPAT32): New macro.
68437
68438 2012-05-21  Andreas Jaeger  <aj@suse.de>
68439
68440         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
68441         only if [SHARED]. Add prototype for __wcschr_ia32.
68442
68443 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68444
68445         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
68446         of %rbp unmolested in the jmp_buf while mangling the low bits.
68447         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
68448         unmolested high bits of %rbp while demangling the low bits.
68449         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68450
68451 2012-05-21  Andreas Jaeger  <aj@suse.de>
68452
68453         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
68454         * sunrpc/svc_simple.c: Use it for registerrpc.
68455         * sunrpc/xcrypt.c: Use it for passwd2des.
68456
68457         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
68458
68459 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68460
68461         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
68462         Don't define if [__SYSCALL_WORDSIZE != 32].
68463         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
68464         New macro.
68465
68466 2012-05-21  Bruno Haible  <bruno@clisp.org>
68467             Andreas Jaeger  <aj@suse.de>
68468
68469         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
68470         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
68471         inptr and inend for must_buffer_ch.
68472         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
68473         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
68474         * stdio-common/Makefile (tests): Remove bug15.
68475         (bug15-ENV): Remove macro.
68476         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
68477         anymore.
68478
68479 2012-05-19  Andreas Jaeger  <aj@suse.de>
68480             Roland McGrath  <roland@hack.frob.com>
68481
68482         * manual/contrib.texi: Completely rewritten. It contains now an
68483         alphabetical list of contributors and their contributions.
68484
68485 2012-05-21  Richard Henderson  <rth@twiddle.net>
68486
68487         * misc/getauxval.c (__getauxval): Use unsigned long int.
68488         * misc/sys/auxv.h: Include <sys/cdefs.h>.
68489         (getauxval): Use unsigned long int.
68490
68491 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68492
68493         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68494
68495 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68496
68497         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
68498         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
68499         __alignof__ (long double).
68500
68501 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68502
68503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68504
68505 2012-05-20  Richard Henderson  <rth@twiddle.net>
68506
68507         * misc/getauxval.c: New file.
68508         * misc/sys/auxv.h: New file.
68509         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
68510         (routines): Add getauxval.
68511         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
68512         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
68513         * elf/dl-sysdep.c (_dl_auxv): Remove.
68514         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
68515         * elf/dl-support.c (_dl_auxv): New variable.
68516         (_dl_aux_init): Initialize it.
68517         * manual/startup.texi (Auxiliary Vector): New node.
68518         * sysdeps/generic/bits/hwcap.h: New file.
68519         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
68520         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
68521         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
68522         * sysdeps/sparc/sysdep.h: ... here.  Include it.
68523         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
68524         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
68525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68526         Update.
68527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
68528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
68529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
68530         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
68531         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68532         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68533         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
68534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
68535
68536 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68537
68538         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68539
68540 2012-05-19  David S. Miller  <davem@davemloft.net>
68541
68542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68543
68544 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68545
68546         [BZ #14123]
68547         * math/s_ccosh.c: Include <float.h>
68548         (__ccosh): Avoid internal overflow calculating sinh and cosh
68549         values before multiplying by sin and cos values.
68550         * math/s_ccoshf.c: Likewise.
68551         * math/s_ccoshl.c: Likewise.
68552         * math/s_csin.c: Likewise.
68553         * math/s_csinf.c: Likewise.
68554         * math/s_csinl.c: Likewise.
68555         * math/s_csinh.c: Likewise.
68556         * math/s_csinhf.c: Likewise.
68557         * math/s_csinhl.c: Likewise.
68558         * math/libm-test.inc (ccos_test): Add more tests.
68559         (ccosh_test): Likewise.
68560         (csin_test): Likewise.
68561         (csinh_test): Likewise.
68562         * sysdeps/i386/fpu/libm-test-ulps: Update.
68563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68564
68565 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
68566
68567         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
68568         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
68569
68570         * sysdeps/x86_64/x32/_itoa.h: Add comment.
68571
68572 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68573
68574         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
68575         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
68576         * sysdeps/powerpc/soft-fp/Versions: Likewise.
68577         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
68578         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
68579         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
68580         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
68581         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
68582         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
68583         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
68584         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
68585         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
68586         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
68587         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
68588         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
68589         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
68590         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
68591         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
68592         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
68593         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
68594         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
68595         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
68596         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
68597         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
68598         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
68599         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
68600         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
68601         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
68602         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
68603         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
68604         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
68605
68606 2012-05-18  Andreas Jaeger  <aj@suse.de>
68607
68608         * csu/.gitignore: Delete.
68609
68610 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68611
68612         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
68613         (timex): Use __syscall_slong_t.
68614
68615 2012-05-18  Andreas Jaeger  <aj@suse.de>
68616             Carlos O'Donell  <carlos_odonell@mentor.com>
68617
68618         * manual/install.texi (Configuring and compiling): Update
68619         description about files modified in the source directory.
68620         * INSTALL: Regenerated.
68621
68622 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68623
68624         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
68625         value.  Use "or" to set return value to -1.
68626         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
68627         negate return value.
68628
68629 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68630
68631         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
68632         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
68633         failure if the compiler has Graphite support disabled.
68634         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
68635         Likewise.
68636         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
68637         (CFLAGS-memmove.c): Likewise.
68638         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
68639         Likewise.
68640
68641 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68642
68643         * sysdeps/x86_64/x32/_itoa.h: New file.
68644
68645         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
68646         getdents system call only if kernel and user dirents have the
68647         same d_ino and d_off.
68648
68649         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
68650         LLONG_MAX != LONG_MAX.
68651         (_itoa_word): Use _ITOA_WORD_TYPE on value.
68652         (_fitoa_word): Likewise.
68653
68654         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
68655         years.
68656         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
68657         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
68658         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
68659
68660         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
68661         include <bits/wordsize.h>.  Check __x86_64__ instead of
68662         __WORDSIZE.
68663         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
68664         if __x86_64__ is defined.  Use anonymous union on fpstate.
68665
68666         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
68667         anonymous union.
68668
68669 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
68670
68671         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
68672         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
68673         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
68674         Refer to _rtld_local_ro instead of _rtld_global_ro.
68675         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
68676         Likewise.
68677         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
68678         Likewise.
68679         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
68680         Likewise.
68681         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
68682         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
68683         of _rtld_global, and rtld_progname instead of _dl_argv[0].
68684
68685         [BZ #10882]
68686         * sysdeps/powerpc/powerpc32/dl-machine.c
68687         (__elf_machine_runtime_setup) [PROF]: Don't reference
68688         _dl_prof_resolve.
68689
68690 2012-05-18  Andreas Jaeger  <aj@suse.de>
68691
68692         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
68693         function only available for GCCs before 3.4 since GCC 3.4
68694         introduced a builtin.
68695         (lrint): Likewise.
68696         (llrintf): Likewise.
68697         (llrint): Likewise.
68698         (fmaxf): Likewise.
68699         (fmax): Likewise.
68700         (fminf): Likewise.
68701         (fmin): Likewise.
68702         (rint): Likewise.
68703         (rintf): Likewise.
68704         (nearbyint): Likewise.
68705         (nearbyintf): Likewise.
68706         (ceil): Likewise.
68707         (ceilf): Likewise.
68708         (floor): Likewise.
68709         (floorf): Likewise.
68710
68711 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68712
68713         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
68714         on both fields and cast pointer to __syscall_ulong_t.
68715
68716         * bits/types.h (__fsword_t): New type.
68717         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
68718         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
68719         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68720         (__FSWORD_T_TYPE): Likewise.
68721         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68722         (__FSWORD_T_TYPE): Likewise.
68723         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68724         (__FSWORD_T_TYPE): Likewise.
68725         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
68726         (__FSWORD_T_TYPE): Likewise.
68727         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
68728         __SWORD_TYPE with __fsword_t.
68729         (statfs64): Likewise.
68730
68731 2012-05-17  David S. Miller  <davem@davemloft.net>
68732
68733         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
68734
68735 2012-05-17  Andreas Jaeger  <aj@suse.de>
68736
68737         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
68738         warning.
68739
68740 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68741
68742         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
68743
68744 2012-05-17  Andreas Jaeger  <aj@suse.de>
68745
68746         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
68747         when it is used.
68748
68749 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68750
68751         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
68752
68753 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68754
68755         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
68756         * sysdeps/x86_64/tst-mallocalign1.c: New file.
68757
68758 2012-05-17  Andreas Jaeger  <aj@suse.de>
68759             Carlos O'Donell  <carlos_odonell@mentor.com>
68760
68761         [BZ #14059]
68762         * sysdeps/x86_64/multiarch/init-arch.h
68763         (bit_YMM_Usable): Rename to...
68764         (bit_AVX_Usable): ... this.
68765         (bit_FMA4_Usable): New macro.
68766         (bit_XMM_state): New macro.
68767         (bit_YMM_state): New macro.
68768         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
68769         [__ASSEMBLER__] (index_AVX_Usable): ... this.
68770         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
68771         (CPUID_OSXSAVE): New macro.
68772         (CPUID_AVX): New macro.
68773         (CPUID_FMA4): New macro.
68774         (index_YMM_Usable): Rename to...
68775         (index_AVX_Usable): ... this.
68776         (HAS_AVX): Use HAS_ARCH_FEATURE.
68777         (HAS_FMA4): Likewise.
68778         (HAS_YMM_USABLE): Remove.
68779         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
68780         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
68781         are present.
68782         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
68783         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
68784         * sysdeps/x86_64/multiarch/Makefile: Likewise.
68785         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
68786         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
68787
68788 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68789
68790         * math/libm-test.c: Support platforms without multiple rounding modes.
68791         * math/bug-nextafter.c: Support platforms without FP exceptions.
68792         * math/bug-nexttoward.c: Likewise.
68793         * math/test-fenv.c: Likewise.
68794         * math/test-misc.c: Likewise.
68795         * stdlib/bug-getcontext.c: Likewise.
68796
68797 2012-05-17  Andreas Jaeger  <aj@suse.de>
68798
68799         * manual/examples/search.c (critter_cmp): Change signature to
68800         avoid warnings.
68801         * manual/string.texi (Collation Functions): Likewise.
68802
68803 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68804
68805         * bits/types.h: Fold copyright years.
68806         * bits/typesizes.h: Likewise.
68807         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
68808         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
68809         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
68810         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
68811         * time/time.h: Likewise.
68812
68813 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
68814
68815         [BZ #208]
68816         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
68817         in instead of returning them.  Return void.
68818         (__libc_mallinfo): Accumulate over all arenas.
68819         (__malloc_stats): Adjust for change in int_mallinfo interface.
68820
68821 2012-05-16  Roland McGrath  <roland@hack.frob.com>
68822
68823         [BZ #10375]
68824         * configure.in (NM): Add AC_CHECK_TOOL for it.
68825         (libc_extra_cflags): New substituted variable.
68826         Check for -fstack-protector being used implicitly.
68827         * configure: Regenerated.
68828         * config.make.in (config-extra-cflags): New variable,
68829         gets @libc_extra_cflags@.
68830         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
68831
68832         [BZ #10375]
68833         * configure.in: Check for _FORTIFY_SOURCE being predefined.
68834         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
68835         * configure: Regenerated.
68836         * config.make.in (CPPUNDEFS): New substituted variable.
68837         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
68838         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
68839         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
68840
68841 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68842
68843         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
68844         (mq_attr): Use __syscall_slong_t.
68845
68846 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68847
68848         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
68849         Check __x86_64__ instead of __WORDSIZE.
68850         (_STAT_VER_LINUX): Likewise.
68851         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
68852         __syscall_ulong_t and __syscall_slong_t.
68853         (stat64): Likewise.
68854
68855 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68856
68857         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
68858
68859 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68860
68861         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
68862
68863 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68864
68865         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
68866         __syscall_ulong_t.
68867
68868         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
68869         include <bits/wordsize.h>.  Check __x86_64__ instead of
68870         __WORDSIZE.
68871         (greg_t): Use "__extension__ long long int" if __x86_64__ is
68872         defined.
68873         (mcontext_t): Replace "unsigned long" with "unsigned long long".
68874
68875         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
68876         include <bits/wordsize.h>.  Check __x86_64__ instead of
68877         __WORDSIZE.
68878         (user_regs_struct): Use "__extension__ unsigned long long"
68879         instead of "unsigned long" if __x86_64__ is defined.
68880         (user): Likewise.  Pad after pointer field if __ILP32__ is
68881         defined.
68882
68883 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
68884
68885         * configure.in (makeinfo): Require version 4.5 or later.  Allow
68886         versions 5 to 9.
68887         * configure: Regenerated.
68888         * manual/install.texi (texinfo): Increase version requirement to
68889         4.5 or later.
68890         * INSTALL: Regenerated.
68891
68892         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
68893
68894 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68895
68896         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
68897
68898         * sysdeps/x86_64/x32/ffs.c: New file.
68899
68900         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
68901         __syscall_ulong_t.
68902         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
68903         defined.  Use __syscall_ulong_t.
68904         (shminfo): Use __syscall_ulong_t.
68905         (shm_info): Likewise.
68906
68907         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
68908         __syscall_ulong_t.
68909
68910         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
68911         <bits/wordsize.h>.
68912         (msgqnum_t): Use __syscall_ulong_t.
68913         (msglen_t): Likewise.
68914         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
68915         __syscall_ulong_t.
68916
68917         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
68918         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68919
68920         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
68921
68922         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
68923         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
68924
68925         * sysvipc/sys/msg.h (msgbuf): Replace long int with
68926         __syscall_slong_t.
68927
68928         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
68929         include <bits/wordsize.h>.  Check __x86_64__ instead of
68930         __WORDSIZE.
68931
68932         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
68933         "unsigned long long int" if __x86_64__ is defined.
68934         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
68935
68936         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
68937         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68938         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
68939
68940         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
68941         <stdint.h>.
68942         (GET_PC): Cast to uintptr_t first.
68943         (GET_FRAME): Likewise.
68944         (GET_STACK): Likewise.
68945
68946         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
68947         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
68948         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
68949         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
68950         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
68951         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
68952         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
68953         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
68954         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
68955         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
68956         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
68957         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
68958         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
68959         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
68960         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
68961         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
68962         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
68963         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
68964         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
68965         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
68966         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
68967         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
68968         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
68969         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
68970         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
68971         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
68972         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
68973         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
68974         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
68975
68976 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
68977
68978         * Makerules (+depfiles): Also collect depfiles from .oS in
68979         $(extra-objs).
68980         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
68981         .oS, $(libnldbl-routines)).
68982
68983         * Makerules (native-compile-mkdep-flags): Define.
68984         * sunrpc/Makefile (extra-objs): Add $(addprefix
68985         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
68986         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
68987         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
68988         calling $(make-target-directory).
68989
68990 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68991
68992         * bits/types.h (__snseconds_t): Removed.
68993         * time/time.h (struct timespec): Replace __snseconds_t with
68994         __syscall_slong_t.
68995         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
68996         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
68997         Likewise.
68998         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68999         (__SNSECONDS_T_TYPE): Likewise.
69000         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69001         (__SNSECONDS_T_TYPE): Likewise.
69002         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69003         (__SNSECONDS_T_TYPE): Likewise.
69004
69005 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69006
69007         * sysdeps/mach/hurd/bits/typesizes.h
69008         (__SYSCALL_SLONG_TYPE): New macro.
69009         (__SYSCALL_ULONG_TYPE): Likewise.
69010
69011 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69012
69013         * bits/types.h (__syscall_slong_t): New type.
69014         (__syscall_ulong_t): Likewise.
69015
69016         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
69017         (__SYSCALL_ULONG_TYPE): Likewise.
69018         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69019         (__SYSCALL_SLONG_TYPE): Likewise.
69020         (__SYSCALL_ULONG_TYPE): Likewise.
69021         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69022         (__SYSCALL_SLONG_TYPE): Likewise.
69023         (__SYSCALL_ULONG_TYPE): Likewise.
69024         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69025         (__SYSCALL_SLONG_TYPE): Likewise.
69026         (__SYSCALL_ULONG_TYPE): Likewise.
69027
69028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69029
69030         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
69031         Add sigaltstack-offsets.sym.
69032         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
69033         <sigaltstack-offsets.h>.
69034         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
69035         longjmp_msg pointer.
69036         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
69037         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
69038         signal stack.
69039         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
69040
69041 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69042
69043         * elf/stackguard-macros.h: Remove file.
69044         * sysdeps/generic/stackguard-macros.h: New file.
69045         * sysdeps/i386/stackguard-macros.h: Likewise.
69046         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
69047         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
69048         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
69049         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
69050         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
69051         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
69052         * sysdeps/x86_64/stackguard-macros.h: Likewise.
69053         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
69054         <elf/stackguard-macros.h>.
69055
69056         [BZ #14109]
69057         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
69058         __aligned__ in attribute.
69059         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
69060         (gregset_t): Likewise.
69061
69062 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69063
69064         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
69065         * sysdeps/x86_64/64/Implies-after: Here.  New file.
69066         * sysdeps/x86_64/x32/Implies-after: New file.
69067
69068 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69069
69070         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
69071         and access return value for _dl_profile_fixup.  Use R10_LP to
69072         load frame size.
69073
69074 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69075
69076         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
69077
69078 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69079
69080         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
69081         * sysdeps/x86_64/x32/sysdep.h: New file.
69082
69083 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69084
69085         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
69086         * sysdeps/x86_64/setjmp.S: Likewise.
69087
69088 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69089
69090         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
69091         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
69092         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
69093         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
69094         remove unused global constant.
69095
69096 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
69097
69098         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
69099         include of <not-cancel.h>.
69100
69101 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69102
69103         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
69104
69105 2012-05-15  Jeff Law  <law@redhat.com>
69106             Andreas Jaeger  <aj@suse.de>
69107
69108         [BZ #13594]
69109         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
69110         out from...
69111         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
69112         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
69113         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
69114         code changing __hst_map_handle.map.
69115
69116 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69117
69118         * configure.in (sysnames): Look for Implies-before and Implies-after
69119         files.
69120         * configure: Regenerated.
69121
69122 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69123
69124         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
69125         8-byte data alignment with LP_SIZE alignment.
69126
69127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69128
69129         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
69130         into R10_LP.
69131
69132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69133
69134         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
69135
69136 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69137
69138         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
69139         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
69140         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
69141         Likewise.
69142         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
69143
69144 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69145
69146         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
69147         (stackinfo_sub_sp): Likewise.
69148
69149 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69150
69151         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
69152         RAX_LP.
69153
69154 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69155
69156         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
69157         into R*_LP.
69158
69159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69160
69161         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
69162         sizes into R*_LP.
69163
69164 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69165
69166         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
69167
69168 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69169
69170         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
69171         into R11_LP and load __x86_64_shared_cache_size_half into
69172         R8_LP.
69173
69174 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69175
69176         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
69177         R8_LP.
69178
69179 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69180
69181         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
69182         logb for POWER7.
69183         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
69184         logbf for POWER7.
69185         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
69186         logbl for POWER7.
69187         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
69188         powerpc32/power7/fpu/s_logb.c via #include.
69189         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
69190         powerpc32/power7/fpu/s_logbf.c via #include.
69191         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
69192         powerpc32/power7/fpu/s_logbl.c via #include.
69193
69194 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69195
69196         * README.libm: Remove file.
69197
69198 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69199
69200         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
69201         count for x32.  Use R*_LP and omit operand-size suffix.
69202
69203 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69204
69205         * shlib-versions: Move x86_64-.*-linux.* entries to ...
69206         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
69207         * sysdeps/x86_64/x32/shlib-versions: New file.
69208
69209 2012-05-14  Roland McGrath  <roland@hack.frob.com>
69210
69211         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
69212         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
69213         Use _dl_fatal_printf instead.
69214
69215 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69216
69217         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
69218         set if not set by the user.  Do not allow for being unset.
69219         * sysdeps/unix/sysv/linux/configure: Regenerated.
69220
69221 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69222
69223         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
69224         the `q' suffix from lea and replace .quad with ASM_ADDR.
69225
69226 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69227
69228         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
69229         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
69230         instead of $17.
69231         (PTR_DEMANGLE): Likewise.
69232
69233 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69234
69235         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
69236         (LP_OP): Likewise.
69237         (ASM_ADDR): Likewise.
69238         (RAX_LP): Likewise.
69239         (RBP_LP): Likewise.
69240         (RBX_LP): Likewise.
69241         (RCX_LP): Likewise.
69242         (RDI_LP): Likewise.
69243         (RSI_LP): Likewise.
69244         (RSP_LP): Likewise.
69245         (R8_LP): Likewise.
69246         (R9_LP): Likewise.
69247         (R10_LP): Likewise.
69248         (R10_LP): Likewise.
69249         (R11_LP): Likewise.
69250         (R12_LP): Likewise.
69251         (R13_LP): Likewise.
69252         (R14_LP): Likewise.
69253         (R15_LP): Likewise.
69254
69255 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69256
69257         * sysdeps/x86_64/x32/dl-machine.h: New file.
69258
69259 2012-05-14  Andreas Jaeger  <aj@suse.de>
69260
69261         * manual/Makefile (subdir): Remove export of subdir.
69262         (all): Remove target.
69263         (.PHONY): Remove all from list.
69264         (mkinstalldirs): Remove.
69265         (.PHONY): Remove installdirs from list.
69266         ($(inst_infodir)/libc.info): Use make-target-directory.
69267         (installdirs): Remove.
69268         (subdir_%): Remove.
69269         (glibc-targets): Remove.
69270         (lib): Remove.
69271         (stubs): Remove.
69272         ($(objpfx)stubs ../po/manual.pot): Remove.
69273         ($(objpfx)stamp%): Remove.
69274         (make-target-directory): Remove.
69275         (subdir_install): Remove.
69276         (routines): Remove.
69277         (aux): Remove.
69278         (sources): Remove.
69279         (objects): Remove.
69280         (headers): Remove.
69281
69282         [BZ #13750]
69283         * manual/.gitignore: Remove, it's not needed anymore.
69284         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
69285         all files in it.
69286         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
69287         directory.
69288         (texis): Renamed to $(objpfx)texis.
69289         (texis-path): New, contains path to generated files.
69290         (chapters.%): Use texis-path for complete path, add extra argument
69291         libc-texinfo.sh.
69292         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
69293         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
69294         (summary,texi, stamp-summary): Use complete path of
69295         files. Generate files in build dir.
69296         (dir-add.texi): Build in build dir.
69297         (libm-err.texi,stamp-libm-err): Likewise.
69298         (version.texi, stamp-version): Likewise.
69299         (.%c.texi): Likewise.
69300         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
69301         (mostlyclean): Remove target.
69302         (realclean): Remove target.
69303         (generated): Add new variable with contents from mostlyclean and
69304         realclean, remove entries duplicated in common-mostlyclean, add
69305         stamp-libm-err and stamp-version.
69306         (generated-dirs): Add libc directory.
69307         ($(inst_infodir)/libc.info): Install files from build dir.
69308
69309         * manual/install.texi (Configuring and compiling): Adjust since
69310         the info files are not part of the tar ball anymore.
69311
69312 2012-05-14  Andreas Jaeger  <aj@suse.de>
69313
69314         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
69315         variable.
69316
69317 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69318
69319         [BZ #13717]
69320         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
69321         to 2.2.0 where earlier.
69322         * sysdeps/unix/sysv/linux/configure: Regenerated.
69323         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
69324         Remove conditional code.
69325         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
69326         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
69327         Remove conditional code.
69328         [!__NR_lchown]: Likewise.
69329         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69330         [__NR_lchown]: Likewise.
69331         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
69332         comment referencing __ASSUME_LCHOWN_SYSCALL.
69333         * sysdeps/unix/sysv/linux/i386/sigaction.c
69334         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69335         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69336         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
69337         Remove conditional code.
69338         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
69339         (__protocol_available): Remove #if 0 code.
69340         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
69341         conditional code.
69342         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
69343         * sysdeps/unix/sysv/linux/kernel-features.h
69344         (__ASSUME_GETCWD_SYSCALL): Don't define.
69345         (__ASSUME_REALTIME_SIGNALS): Likewise.
69346         (__ASSUME_PREAD_SYSCALL): Likewise.
69347         (__ASSUME_PWRITE_SYSCALL): Likewise.
69348         (__ASSUME_POLL_SYSCALL): Likewise.
69349         (__ASSUME_LCHOWN_SYSCALL): Likewise.
69350         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
69351         non-SPARC.
69352         (__ASSUME_SIOCGIFNAME): Don't define.
69353         (__ASSUME_MSG_NOSIGNAL): Likewise.
69354         (__ASSUME_SENDFILE): Define unconditionally.
69355         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
69356         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
69357         conditional code.
69358         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
69359         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
69360         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69361         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69362         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
69363         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69364         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
69366         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69367         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
69369         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69370         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
69372         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69373         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
69375         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69376         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
69378         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69379         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
69381         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69382         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
69384         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69385         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
69387         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69388         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69389         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
69390         Remove conditional code.
69391         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69392         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69393         Remove conditional code.
69394         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69395         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
69396         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
69397         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69398         Remove conditional code.
69399         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69400         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
69401         Remove conditional code.
69402         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69403         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
69404         Remove conditional code.
69405         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69406         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69407         Remove conditional code.
69408         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69409         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69410         Remove conditional code.
69411         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69412         * sysdeps/unix/sysv/linux/sh/pwrite64.c
69413         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69414         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69415         * sysdeps/unix/sysv/linux/sigaction.c
69416         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69417         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69418         * sysdeps/unix/sysv/linux/sigpending.c
69419         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69420         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69421         * sysdeps/unix/sysv/linux/sigprocmask.c
69422         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69423         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69424         * sysdeps/unix/sysv/linux/sigsuspend.c
69425         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69426         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69427         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69428         (__libc_missing_rt_sigs): Remove.
69429         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
69430         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
69431         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
69432         Remove conditional code.
69433         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
69434         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
69435         return 1.
69436         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
69437         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
69438         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
69439         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
69440
69441 2012-05-14  Andreas Jaeger  <aj@suse.de>
69442
69443         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
69444         it's not used in glibc.
69445         (__coshm1): Likewise.
69446         (__acosh1p): Likewise.
69447         (__sgn): Likewise.
69448
69449         * manual/string.texi (Copying and Concatenation): Add missing
69450         variable in concat example.
69451         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
69452
69453 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69454
69455         [BZ #14103]
69456         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
69457         __builtin_clzl with __builtin_clzll.
69458
69459 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69460
69461         [BZ #14104]
69462         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
69463         libc_freeres_ptr.
69464
69465 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69466
69467         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
69468         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
69469         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
69470         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
69471
69472 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
69473
69474         * NEWS: Update ia64 info.
69475
69476 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
69477
69478         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
69479         used as bcopy.
69480
69481 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
69482
69483         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
69484         * sysdeps/unix/syscalls.list (dup3): Likewise.
69485         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
69486         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
69487
69488 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69489
69490         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
69491         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
69492
69493 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69494
69495         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
69496         thread pointer.
69497         (TLS_IE): Use mov/add instead of movq/addq to load thread
69498         pointer.
69499         (TLS_GD_PREFIX): New.
69500         (TLS_GD): Use it.
69501
69502 2012-05-11  David S. Miller  <davem@davemloft.net>
69503
69504         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
69505         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
69506         (_FPU_SETCW): Likewise.
69507
69508 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69509
69510         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
69511         is 32-byte aligned.
69512
69513 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
69514
69515         [BZ #11837]
69516         * iconvdata/gb18030.c: Update tables.
69517         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
69518         characters specially.
69519         (BODY for TO_LOOP): Add encoding of missing ranges.
69520
69521 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
69522
69523         [BZ #13673]
69524         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
69525         * sysdeps/mach/hurd/dup3.c: Likewise.
69526         * sysdeps/mach/hurd/readlinkat.c: Likewise.
69527         * sysdeps/powerpc/memmove.c:: Likewise.
69528
69529 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69530
69531         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
69532         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
69533
69534 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69535
69536         * elf/elf.h (R_X86_64_RELATIVE64): New.
69537         (R_X86_64_NUM): Updated.
69538         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69539         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
69540         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
69541         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
69542         tst-quad1pie tst-quad2pie
69543         (modules-names): Add tst-quadmod1 tst-quadmod2.
69544         ($(objpfx)tst-quad1): New dependency.
69545         ($(objpfx)tst-quad2): Likewise.
69546         ($(objpfx)tst-quad1pie): Likewise.
69547         ($(objpfx)tst-quad2pie): Likewise.
69548         * sysdeps/x86_64/tst-quad1.c: New file.
69549         * sysdeps/x86_64/tst-quad1pie.c: New file.
69550         * sysdeps/x86_64/tst-quad2.c: Likewise.
69551         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
69552         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
69553         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
69554         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
69555         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
69556
69557 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69558
69559         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
69560         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
69561         * streams/stropts.h (t_scalar_t): Define type.
69562
69563         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
69564         (_PATH_PRESERVE): Set to "/var/lib".
69565         (_PATH_RWHODIR): Set to "/var/spool/rwho".
69566
69567         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
69568         instead of int.
69569
69570         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
69571         if __dir_mkfile succeeded.
69572
69573         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
69574         checking for _hurd_dtablesize.  Unlock it right after having
69575         finished _hurd_dtable allocation.
69576
69577 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69578
69579         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
69580         * sysdeps/mach/hurd/configure: Regenerated.
69581         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
69582         special-casing to...
69583         * sysdeps/gnu/configure.in: ... this new file.
69584         * sysdeps/unix/sysv/linux/configure: Regenerated.
69585         * sysdeps/gnu/configure: New generated file.
69586
69587         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
69588         for Linux: use nsec instead of usec, as well as:
69589         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
69590         members of type struct timespec.
69591         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
69592         New macros.
69593         (struct stat64): Likewise.
69594         (_STATBUF_ST_NSEC): New macro.
69595         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
69596
69597         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
69598         __strtoul_internal rather than strtoul.
69599
69600 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69601
69602         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
69603         and reject them.
69604
69605 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69606
69607         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
69608         which preserves existing values.
69609         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
69610
69611 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69612
69613         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
69614         TIMEOUT values.  Return EINVAL for NFDS values either negative or
69615         greater than FD_SETSIZE.
69616
69617 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69618
69619         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
69620         allocated, call __vm_protect to finish enabling the existing space, and
69621         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
69622         allocate the remainder.
69623
69624 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69625
69626         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
69627         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
69628
69629 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69630
69631         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
69632         sysdeps/mach/hurd/readlink.c.
69633
69634         * posix/tst-sysconf.c (posix_options): Only use
69635         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
69636         _POSIX_SYNCHRONIZED_IO when they are defined
69637         * sysdeps/mach/hurd/bits/posix_opt.h:
69638         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
69639         (_XOPEN_REALTIME): Undefine macro.
69640         (_XOPEN_REALTIME_THREADS): Undefine macro.
69641         (_XOPEN_SHM): Undefine macro.
69642         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
69643         macro to -1.
69644         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
69645         macro to -1.
69646         (_POSIX_ASYNC_IO): Undefine macro.
69647         (_POSIX_PRIORITIZED_IO): Undefine macro.
69648         (_POSIX_SPIN_LOCKS): Define macro to -1.
69649
69650         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
69651         SA_NODEFER, SA_RESETHAND.
69652         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
69653         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
69654         F_DUPFD_CLOEXEC.
69655
69656 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69657
69658         * elf/Makefile (pldd-modules): Define unconditionally.
69659
69660 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69661
69662         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
69663
69664 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69665
69666         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
69667         Return ENOENT when name is empty.
69668         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
69669
69670 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69671
69672         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
69673
69674         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
69675
69676 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69677
69678         Fix mlock in all cases except non-readable pages.
69679         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
69680         instead of VM_PROT_ALL as parameter to __vm_wire function.
69681
69682         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
69683         (__mkdir): When path is `/', just fail with EEXIST.
69684         * sysdeps/mach/hurd/mkdirat.c: Likewise.
69685
69686 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69687
69688         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
69689         <sys/uio.h> (for writev).
69690         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
69691         and <sys/param.h> (for MIN).
69692
69693 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69694
69695         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
69696         REQUESTED_TIME.  Properly set the remaining time and return EINTR
69697         if interrupted.
69698
69699 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69700
69701         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
69702         Depend on against $(link-rpcuserlibs).
69703
69704 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69705
69706         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
69707         (__libc_stack_end): Do not use attribute_relro.
69708         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
69709         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
69710         to libthread-provided value.
69711         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
69712         attribute_relro.
69713
69714 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69715
69716         [BZ #3748]
69717         * bits/libc-lock.h (__libc_once_get): New macro.
69718         * sysdeps/mach/bits/libc-lock.h: Likewise.
69719         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
69720         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
69721         instead of using implementation details.
69722
69723         * libio/fileops.c: Unconditionally include <kernel-features.h>.
69724         * libio/freopen.c: Likewise.
69725         * libio/freopen64.c: Likewise.
69726         * misc/syslog.c: Likewise.
69727         * nscd/connections.c: Likewise.
69728         * nscd/netgroupcache.c: Likewise.
69729         * sysdeps/posix/getcwd.c: Likewise.
69730
69731 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69732
69733         * math/w_ilogbf.c: Add #include <limits.h>.
69734
69735 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69736
69737         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
69738         path instead of returning without unlocking.
69739
69740         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
69741         immediate-write ioctls.
69742         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
69743
69744 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69745
69746         * sysdeps/mach/hurd/i386/init-first.c (init): Use
69747         __builtin_frame_address instead of making assumptions about the
69748         location of the return address relative to DATA.  Force early load of
69749         the return address.
69750         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
69751         __builtin_frame_address.
69752
69753         dup3 for GNU Hurd.
69754         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
69755         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
69756         implement dup3 and do some further code clean-ups.
69757         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
69758         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
69759
69760 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69761
69762         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
69763
69764         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
69765         HURD_CRITICAL_END around holding _hurd_dtable_lock.
69766         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
69767         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
69768         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
69769         d->port.lock.
69770
69771         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
69772         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
69773         when handler == SIG_ERR, not when handler != SIG_ERR.
69774
69775 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69776
69777         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
69778         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
69779         definitions.
69780
69781         accept4 for GNU Hurd.
69782         * include/sys/socket.h (__libc_accept4): New prototype.
69783         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
69784         to implement __libc_accept4.
69785         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
69786         __libc_accept4.
69787         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
69788
69789         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
69790         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
69791         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
69792         signal-defines.sym.
69793
69794 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69795
69796         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
69797
69798 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69799
69800         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
69801         assertion on O_CLOEXEC flag.
69802         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
69803         * hurd/intern-fd.c: Likewise.
69804         * hurd/port2fd.c: Likewise.
69805
69806 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69807
69808         [BZ #3906]
69809         * bits/in.h (IPV6_PKTINFO): Define new macro.
69810         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
69811
69812 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69813
69814         [BZ #13954]
69815         [BZ #13955]
69816         [BZ #13956]
69817         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
69818         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
69819         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
69820         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
69821         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
69822         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
69823         * math/libm-test.inc (logb_test) : Additional logb tests.
69824
69825 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
69826             Andreas Jaeger  <aj@suse.de>
69827
69828         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
69829         * configure: Regenerated.
69830         * config.h.in (LINK_OBSOLETE_RPC): New macro.
69831         * config.make.in (link-obsolete-rpc): New substituted variable.
69832         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
69833         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
69834         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69835         (shared-only-routines): Don't set it under [link-obsolete-rpc],
69836         so that libc.a contains the symbols.
69837         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69838         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
69839         * sunrpc/auth_none.c: Likewise.
69840         * sunrpc/auth_unix.c: Likewise.
69841         * sunrpc/authdes_prot.c: Likewise.
69842         * sunrpc/authuxprot.c: Likewise.
69843         * sunrpc/clnt_gen.c: Likewise.
69844         * sunrpc/clnt_perr.c: Likewise.
69845         * sunrpc/clnt_raw.c: Likewise.
69846         * sunrpc/clnt_simp.c: Likewise.
69847         * sunrpc/clnt_tcp.c: Likewise.
69848         * sunrpc/clnt_udp.c: Likewise.
69849         * sunrpc/clnt_unix.c: Likewise.
69850         * sunrpc/des_crypt.c: Likewise.
69851         * sunrpc/des_soft.c: Likewise.
69852         * sunrpc/get_myaddr.c: Likewise.
69853         * sunrpc/key_call.c: Likewise.
69854         * sunrpc/key_prot.c: Likewise.
69855         * sunrpc/netname.c: Likewise.
69856         * sunrpc/pm_getmaps.c: Likewise.
69857         * sunrpc/pm_getport.c: Likewise.
69858         * sunrpc/pmap_clnt.c: Likewise.
69859         * sunrpc/pmap_prot.c: Likewise.
69860         * sunrpc/pmap_prot2.c: Likewise.
69861         * sunrpc/pmap_rmt.c: Likewise.
69862         * sunrpc/publickey.c: Likewise.
69863         * sunrpc/rpc_cmsg.c: Likewise.
69864         * sunrpc/rpc_common.c: Likewise.
69865         * sunrpc/rpc_dtable.c: Likewise.
69866         * sunrpc/rpc_prot.c: Likewise.
69867         * sunrpc/rpc_thread.c: Likewise.
69868         * sunrpc/rtime.c: Likewise.
69869         * sunrpc/svc.c: Likewise.
69870         * sunrpc/svc_auth.c: Likewise.
69871         * sunrpc/svc_raw.c: Likewise.
69872         * sunrpc/svc_run.c: Likewise.
69873         * sunrpc/svc_tcp.c: Likewise.
69874         * sunrpc/svc_udp.c: Likewise.
69875         * sunrpc/svc_unix.c: Likewise.
69876         * sunrpc/svcauth_des.c: Likewise.
69877         * sunrpc/xcrypt.c: Likewise.
69878         * sunrpc/xdr.c: Likewise.
69879         * sunrpc/xdr_array.c: Likewise.
69880         * sunrpc/xdr_float.c: Likewise.
69881         * sunrpc/xdr_intXX_t.c: Likewise.
69882         * sunrpc/xdr_mem.c: Likewise.
69883         * sunrpc/xdr_rec.c: Likewise.
69884         * sunrpc/xdr_ref.c: Likewise.
69885         * sunrpc/xdr_sizeof.c: Likewise.
69886         * sunrpc/xdr_stdio.c: Likewise.
69887
69888 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69889
69890         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
69891         change.  Update copyright years.
69892
69893 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69894
69895         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
69896
69897 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
69898             Joseph Myers  <joseph@codesourcery.com>
69899             Paul Pluzhnikov  <ppluzhnikov@google.com>
69900
69901         [BZ #14012]
69902         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
69903         requiring rpcgen.
69904         [cross-compiling] (extra-libs): Likewise.
69905         [cross-compiling] (extra-libs-others): Likewise.
69906         [cross-compiling] (librpcsvc-routines): Likewise.
69907         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
69908         [cross-compiling] (omit-deps): Likewise.
69909         (sunrpc-CPPFLAGS): New variable.
69910         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
69911         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
69912         (cross-rpcgen-objs): New variable.
69913         (extra-objs): Append $(cross-rpcgen-objs).
69914         ($(cross-rpcgen-objs)): New rule.
69915         ($(objpfx)cross-rpcgen): Likewise.
69916         (rpcgen-cmd): Define to use $(built-program-file).  Expand
69917         comment.
69918         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
69919         ($(objpfx)x%.stmp): Likewise.
69920         * sunrpc/proto.h [IS_IN_build] (_): Define.
69921         [IS_IN_build] (_libc_intl_domainname): Likewise.
69922
69923 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69924
69925         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
69926         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
69927         and R_X86_64_TPOFF64.
69928
69929 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69930
69931         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
69932         sysdeps/unix/sysv/syscalls.list.
69933         (stime): Likewise.
69934         (utime): Likewise.
69935         * sysdeps/unix/sysv/syscalls.list: Remove file.
69936
69937 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         [BZ #3440]
69940         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
69941         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
69942         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
69943         (__LC_IDENTIFICATION): Make these macros useful in #if
69944         expressions, as required by C99.
69945
69946 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
69947
69948         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
69949         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
69950         after this.
69951
69952 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
69953
69954         * stdlib/longlong.h: Updated from GCC.
69955
69956 2012-05-09  Andreas Jaeger  <aj@suse.de>
69957
69958         * nscd/nscd.c (run_modes): Make named enum, reorder so that
69959         default is first entry.
69960         (run_mode): Set type.
69961         (main): Remove informal message about syslog.
69962         (options): Fix typo.
69963
69964         [BZ #14053]
69965         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
69966         to asm.
69967         (lrint): Likewise.
69968         (llrintf): Likewise.
69969         (llrint): Likewise.
69970         (rint): Likewise.
69971         (rintf): Likewise.
69972         (nearbyint): Likewise.
69973         (nearbyintf): Likewise.
69974
69975 2012-05-09  Andreas Jaeger  <aj@suse.de>
69976             Pedro Alves  <palves@redhat.com>
69977
69978         * nscd/nscd.c (run_mode): Use enum.
69979         (main): Cleanup coding style issue.
69980
69981 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
69982             Andreas Jaeger  <aj@suse.de>
69983
69984         * nscd/nscd.c (go_background): Replaced with...
69985         (run_mode): ... this.
69986         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
69987         (options): Add -F --foreground.
69988         (main): Implement it.
69989         (parse_opt): Parse it.
69990
69991 2012-05-09  Andreas Jaeger  <aj@suse.de>
69992
69993         [BZ #14083]
69994         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
69995         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
69996         -Wconversion warning.
69997         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
69998         Likewise.
69999
70000 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
70001
70002         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
70003         == 0.
70004         (LC_ALL): Use macro-int-constant.
70005         (LC_COLLATE): Likewise.
70006         (LC_CTYPE): Likewise.
70007         (LC_MESSAGES): Likewise.
70008         (LC_MONETARY): Likewise.
70009         (LC_NUMERIC): Likewise.
70010         (LC_TIME): Likewise.
70011         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
70012         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70013         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70014         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
70015         Specify type.
70016         [C99-based standards] (float_t): Expect type.
70017         [C99-based standards] (double_t): Expect type.
70018         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
70019         type.
70020         [C99-based standards] (HUGE_VALL): Likewise.
70021         [C99-based standards] (INFINITY): Likewise.
70022         [C99-based standards] (NAN): Likewise.
70023         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
70024         [C99-based standards] (FP_NAN): Likewise.
70025         [C99-based standards] (FP_NORMAL): Likewise.
70026         [C99-based standards] (FP_SUBNORMAL): Likewise.
70027         [C99-based standards] (FP_ZERO): Likewise.
70028         [C99-based standards] (FP_FAST_FMA): Use
70029         optional-macro-int-constant.  Specify type.  Require == 1.
70030         [C99-based standards] (FP_FAST_FMAF): Likewise.
70031         [C99-based standards] (FP_FAST_FMAL): Likewise.
70032         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
70033         [C99-based standards] (FP_ILOGBNAN): Likewise.
70034         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
70035         Specify type.
70036         [C99-based standards] (MATH_ERREXCEPT): Likewise.
70037         [C99-based standards] (math_errhandling): Specify type.
70038         [ISO99 || ISO11] (signgam): Do not allow.
70039         [non-C99-based standards] (copysignf): Do not allow.
70040         [non-C99-based standards] (exp2f): Likewise.
70041         [non-C99-based standards] (log2f): Likewise.
70042         [non-C99-based standards] (modff): Allow.
70043         [non-C99-based standards] (erff): Do not allow.
70044         [non-C99-based standards] (erfcf): Likewise.
70045         [non-C99-based standards] (gammaf): Likewise.
70046         [non-C99-based standards] (hypotf): Likewise.
70047         [non-C99-based standards] (j0f): Likewise.
70048         [non-C99-based standards] (j1f): Likewise.
70049         [non-C99-based standards] (jnf): Likewise.
70050         [non-C99-based standards] (lgammaf): Likewise.
70051         [non-C99-based standards] (tgammaf): Likewise.
70052         [non-C99-based standards] (y0f): Likewise.
70053         [non-C99-based standards] (y1f): Likewise.
70054         [non-C99-based standards] (ynf): Likewise.
70055         [non-C99-based standards] (isnanf): Likewise.
70056         [non-C99-based standards] (acoshf): Likewise.
70057         [non-C99-based standards] (asinhf): Likewise.
70058         [non-C99-based standards] (atanhf): Likewise.
70059         [non-C99-based standards] (cbrtf): Likewise.
70060         [non-C99-based standards] (expm1f): Likewise.
70061         [non-C99-based standards] (ilogbf): Likewise.
70062         [non-C99-based standards] (log1pf): Likewise.
70063         [non-C99-based standards] (logbf): Likewise.
70064         [non-C99-based standards] (nextafterf): Likewise.
70065         [non-C99-based standards] (remainderf): Likewise.
70066         [non-C99-based standards] (rintf): Likewise.
70067         [non-C99-based standards] (scalbf): Likewise.
70068         [non-C99-based standards] (copysignl): Likewise.
70069         [non-C99-based standards] (exp2l): Likewise.
70070         [non-C99-based standards] (log2l): Likewise.
70071         [non-C99-based standards] (modfl): Allow.
70072         [non-C99-based standards] (erfl): Do not allow.
70073         [non-C99-based standards] (erfcl): Likewise.
70074         [non-C99-based standards] (gammal): Likewise.
70075         [non-C99-based standards] (hypotl): Likewise.
70076         [non-C99-based standards] (j0l): Likewise.
70077         [non-C99-based standards] (j1l): Likewise.
70078         [non-C99-based standards] (jnl): Likewise.
70079         [non-C99-based standards] (lgammal): Likewise.
70080         [non-C99-based standards] (tgammal): Likewise.
70081         [non-C99-based standards] (y0l): Likewise.
70082         [non-C99-based standards] (y1l): Likewise.
70083         [non-C99-based standards] (ynl): Likewise.
70084         [non-C99-based standards] (isnanl): Likewise.
70085         [non-C99-based standards] (acoshl): Likewise.
70086         [non-C99-based standards] (asinhl): Likewise.
70087         [non-C99-based standards] (atanhl): Likewise.
70088         [non-C99-based standards] (cbrtl): Likewise.
70089         [non-C99-based standards] (expm1l): Likewise.
70090         [non-C99-based standards] (ilogbl): Likewise.
70091         [non-C99-based standards] (log1pl): Likewise.
70092         [non-C99-based standards] (logbl): Likewise.
70093         [non-C99-based standards] (nextafterl): Likewise.
70094         [non-C99-based standards] (remainderl): Likewise.
70095         [non-C99-based standards] (rintl): Likewise.
70096         [non-C99-based standards] (scalbl): Likewise.
70097         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70098         [non-C99-based standards] (FP_*): Do not allow.
70099         [C99-based standards] (FP_*): Change to
70100         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70101         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70102         allow.
70103         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
70104         (SIG_ERR): Likewise.
70105         [X/Open-based standards] (SIG_HOLD): Likewise.
70106         (SIG_IGN): Likewise.
70107         (SIGABRT): Use macro-int-constant.  Specify type.  Require
70108         positive value.
70109         (SIGFPE): Likewise.
70110         (SIGILL): Likewise.
70111         (SIGINT): Likewise.
70112         (SIGSEGV): Likewise.
70113         (SIGTER): Likewise.
70114         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
70115         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
70116         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
70117         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
70118         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
70119         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
70120         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
70121         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
70122         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
70123         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
70124         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
70125         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
70126         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
70127         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
70128         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
70129         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
70130         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
70131         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
70132         [X/Open-based standards] (SIGTRAP): Likewise.
70133         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
70134         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
70135         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
70136         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
70137         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70138         allow.
70139
70140 2012-05-08  Ian Wienand  <ianw@vmware.com>
70141
70142         [BZ #14080]
70143         * time/tzset.c (__tzset_parse_tz): Update default rules for
70144         daylight time changes in the Energy Policy Act of 2005.
70145
70146 2012-05-09  Andreas Jaeger  <aj@suse.de>
70147
70148         [BZ #13983]
70149         * elf/ldconfig.c (parse_conf): Change string to make clear that
70150         ldconfig only issued a warning if ld.so.conf does not exist.
70151
70152 2012-05-08  David S. Miller  <davem@davemloft.net>
70153
70154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
70155         movxtod instead of popping the value on the stack.
70156
70157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70158
70159 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
70160
70161         * config.h.in: Add HAVE_ARM_PCS_VFP.
70162
70163 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
70164
70165         [BZ #13979]
70166         * include/features.h: Warn if user requests __FORTIFY_SOURCE
70167         checking but the checks are disabled for any reason.
70168
70169 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
70170
70171         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
70172         and ELF64_R_TYPE with ELFW(R_TYPE).
70173
70174 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
70175
70176         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
70177         (ulimit): Likewise.
70178
70179         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
70180         (settimeofday): Likewise.
70181
70182 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
70183
70184         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
70185         a struct th_u2 inside the union, and move tu_block/tu_code into
70186         a new th_u3 union of tu_block/tu_code inside of that.  Move
70187         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
70188         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
70189         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
70190         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
70191         (th_stuff): Change to th_u1.tu_stuff.
70192         (th_data): Define.
70193         (th_msg): Change to th_u1.th_u2.tu_data.
70194
70195 2012-05-07  David S. Miller  <davem@davemloft.net>
70196
70197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70198
70199         [BZ #14074]
70200         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
70201         (SETUP_PIC_REG): Use it.
70202         (SETUP_PIC_REG_LEAF): Use it.
70203
70204 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
70205
70206         [BZ #13885]
70207         [BZ #13923]
70208         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70209         USE_AS_EXPM1L.
70210         (EXPL_FINITE): Likewise.
70211         (FLDLOG): Likewise.
70212         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70213         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70214         e_expl.S.
70215         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70216         USE_AS_EXPM1L.
70217         (EXPL_FINITE): Likewise.
70218         (FLDLOG): Likewise.
70219         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70220         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70221         e_expl.S.
70222         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
70223         test of -max_value argument for long double.
70224         * sysdeps/i386/fpu/libm-test-ulps: Update.
70225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70226
70227 2012-05-06  David S. Miller  <davem@davemloft.net>
70228
70229         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
70230         quad soft-float symbols whose references which are compiler
70231         generated.
70232         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
70233
70234 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
70235
70236         [BZ #13884]
70237         [BZ #13914]
70238         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70239         USE_AS_EXP10L.
70240         (EXPL_FINITE): Likewise.
70241         (FLDLOG): Likewise.
70242         (c0): Likewise.
70243         (c1): Likewise.
70244         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70245         Adjust comments for base varying.
70246         (__expl_finite): Change alias to EXPL_FINITE.
70247         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
70248         e_expl.S.
70249         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
70250         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
70251         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
70252         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
70253         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70254         USE_AS_EXP10L.
70255         (EXPL_FINITE): Likewise.
70256         (FLDLOG): Likewise.
70257         (c0): Likewise.
70258         (c1): Likewise.
70259         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70260         Adjust comments for base varying.
70261         (__expl_finite): Change alias to EXPL_FINITE.
70262         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
70263         tests for bugs.
70264         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70265
70266         [BZ #14064]
70267         * math/libm-test.inc (check_float_internal): Correct ulp
70268         calculation for subnormal expected results.
70269
70270 2012-05-06  Andreas Jaeger  <aj@suse.de>
70271
70272         * Makeconfig (+math-flags): New, set to -frounding-math.
70273         (+cflags): Add +math-flags so that all of glibc gets compiled with
70274         it.
70275
70276         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
70277
70278 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
70279
70280         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
70281         Disable one test.
70282
70283         [BZ #13787]
70284         [BZ #13922]
70285         [BZ #14036]
70286         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
70287         (__ieee754_expl): Allow for and saturate large arguments.
70288         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
70289         (u_threshold): Likewise.
70290         (__exp): Call __ieee754_exp before checking for overflow and
70291         underflow.
70292         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
70293         (u_threshold): Likewise.
70294         (__expf): Call __ieee754_expf before checking for overflow and
70295         underflow.
70296         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
70297         (u_threshold): Likewise.
70298         (__expl): Call __ieee754_expl before checking for overflow and
70299         underflow.
70300         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
70301         (__ieee754_expl): Allow for and saturate large arguments.
70302         * math/libm-test.inc (exp_test): Add another test.  Do not allow
70303         missing overflow exception on overflow.
70304         (expm1_test): Do not allow missing overflow exception on overflow.
70305
70306         * sysdeps/i386/fpu/e_expl.c: Move to ...
70307         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
70308         rather than using inline asm.
70309         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
70310         * sysdeps/x86_64/fpu/e_expl.S: Copy from
70311         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
70312
70313         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
70314         (nice): Likewise.
70315         (poll): Likewise.
70316         (signal): Likewise.
70317         (time): Likewise.
70318         (times): Likewise.
70319
70320 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70321
70322         * sysdeps/unix/syscalls.list (adjtime): Add entry from
70323         sysdeps/unix/common/syscalls.list.
70324         (fchmod): Likewise.
70325         (fchown): Likewise.
70326         (ftruncate): Likewise.
70327         (getrusage): Likewise.
70328         (gettimeofday): Likewise.
70329         (setpgid): Likewise.
70330         (setregid): Likewise.
70331         (setreuid): Likewise.
70332         (sigaction): Likewise.
70333         (truncate): Likewise.
70334         (vhangup): Likewise.
70335         * sysdeps/unix/common/syscalls.list: Remove file.
70336         * sysdeps/unix/bsd/Implies: Don't include unix/common.
70337         * sysdeps/unix/sysv/linux/Implies: Likewise.
70338
70339 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
70340
70341         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
70342         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
70343         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
70344         Moved to ...
70345         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
70346         Here.
70347         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
70348         to ...
70349         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
70350         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
70351         to ...
70352         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
70353         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
70354         to ...
70355         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
70356         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
70357         to ...
70358         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
70359         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
70360         to ...
70361         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
70362         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
70363         to ...
70364         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
70365         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
70366         to ...
70367         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
70368         Here.
70369         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
70370         to ...
70371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
70372         Here.
70373         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
70374         to ...
70375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
70376         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
70377         Moved to ...
70378         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
70379         Here.
70380         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
70381         to ...
70382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
70383
70384 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70385
70386         * sysdeps/unix/common/bits/dirent.h: Remove file.
70387         * sysdeps/unix/common/bits/fcntl.h: Likewise.
70388
70389         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
70390         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
70391         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
70392         * sysdeps/unix/bsd/isatty.c: Likewise.
70393         * sysdeps/unix/bsd/tcdrain.c: Likewise.
70394         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
70395         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
70396
70397 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70398
70399         [BZ #13563]
70400         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
70401         long double comparison inaccuracies.
70402         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
70403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70404
70405 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
70406
70407         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
70408         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
70409
70410 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70411
70412         [BZ #14049]
70413         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
70414         nonzero digits before rounding a hex value.
70415         * stdlib/tst-strtod.c (tests): Add another test.
70416
70417 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70418
70419         * sysdeps/s390/fpu/libm-test-ulps: Update.
70420
70421 2012-05-03  Andreas Jaeger  <aj@suse.de>
70422
70423         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
70424         does not get optimized out.
70425         (malloc_opt_barrier): New.
70426
70427 2012-05-03  Andreas Jaeger  <aj@suse.de>
70428             Roland McGrath  <roland@hack.frob.com>
70429
70430         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
70431         intermediate file deletion.
70432         (generated): Add .symlist files.
70433
70434 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
70435
70436         [BZ #13775]
70437         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70438         Redirect under this condition.
70439         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70440         [__USE_GNU] (__dprintf_chk): Not under this condition.
70441         [__USE_GNU] (__vdprintf_chk): Likewise.
70442         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
70443         under this condition.
70444         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70445         [__USE_XOPEN2K8] (dprintf): Define under this condition.
70446         [__USE_XOPEN2K8] (vdprintf): Likewise.
70447         [__USE_GNU] (__dprintf_chk): Not under this condition.
70448         [__USE_GNU] (__vdprintf_chk): Likewise.
70449         [__USE_GNU] (dprintf): Likewise.
70450         [__USE_GNU] (vdprintf): Likewise.
70451
70452 2012-05-03  Roland McGrath  <roland@hack.frob.com>
70453
70454         * elf/Makefile (common-generated): Set this instead of generated for
70455         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
70456         $(all-built-dso)-derived lists.
70457
70458 2012-05-03  Andreas Jaeger  <aj@suse.de>
70459
70460         * sysdeps/i386/fpu/libm-test-ulps: Update.
70461
70462         * FAQ: Removed.
70463         * FAQ.in: Likewise.
70464         * scripts/gen-FAQ.pl: Likewise.
70465         * manual/install.texi (Installation): Point to online location of
70466         FAQ.
70467         * Makefile (files-for-dist): Remove FAQ.
70468         (FAQ): Remove.
70469
70470 2012-05-02  Allan McRae  <allan@archlinux.org>
70471
70472         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
70473         (LDFLAGS-reldepmod5.so): Likewise.
70474         (LDFLAGS-reldep6mod1.so): Likewise.
70475         (LDFLAGS-reldep6mod4.so): Likewise.
70476         (LDFLAGS-reldep8mod3.so): Likewise.
70477         (LDFLAGS-unload4mod1.so): Likewise.
70478         (LDFLAGS-unload4mod2.so): Likewise.
70479         (LDFLAGS-tst-initorder): Likewise.
70480         (LDFLAGS-tst-initordera2.so): Likewise.
70481         (LDFLAGS-tst-initordera3.so): Likewise.
70482         (LDFLAGS-tst-initordera4.so): Likewise.
70483         (LDFLAGS-tst-initorderb2.so): Likewise.
70484         (LDFLAGS-noload): Likewise.
70485         (LDFLAGS-next): Likewise.
70486         (LDFLAGS-order2mod1.so): Likewise.
70487         (LDFLAGS-order2mod2.so): Likewise.
70488         (LDFLAGS-tst-initorder2): Likewise.
70489         (LDFLAGS-tst-initorder2a.so): Likewise.
70490         (LDFLAGS-tst-initorder2b.so): Likewise.
70491         (LDFLAGS-tst-initorder2c.so): Likewise.
70492         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
70493
70494 2012-05-02  David S. Miller  <davem@davemloft.net>
70495
70496         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70497
70498 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
70499
70500         [BZ #14055]
70501         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
70502
70503 2012-05-02  Andreas Jaeger  <aj@suse.de>
70504
70505         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
70506         since we manipulate rounding mode.
70507         (CPPFLAGS-test-idouble.c): Likewise.
70508         (CPPFLAGS-test-ifloat.c): Likewise.
70509         (CFLAGS-test-ldouble.c): Likewise.
70510         (CFLAGS-test-double.c): Likewise.
70511         (CFLAGS-test-float.c): Likewise.
70512         (CFLAGS-test-misc.c): Likewise.
70513         (CFLAGS-test-test-fenv.c): Likewise.
70514
70515 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70516
70517         [BZ #2550]
70518         [BZ #2570]
70519         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
70520         comparisons to determine direction to adjust input.
70521
70522 2012-05-01  Roland McGrath  <roland@hack.frob.com>
70523
70524         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
70525         output to the target.
70526
70527         * scripts/localplt.awk: New file.
70528         * elf/Makefile ($(objpfx)check-localplt): Target removed.
70529         (check-localplt-CFLAGS): Variable removed.
70530         ($(all-built-dso:=.jmprel)): New static pattern rule.
70531         (generated): Add those targets.
70532         (localplt-built-dso): New variable.
70533         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
70534
70535         * elf/check-localplt.c: File removed.
70536
70537         * scripts/check-execstack.awk: New file.
70538         * elf/Makefile ($(objpfx)check-execstack): Target removed.
70539         (check-execstack-CFLAGS): Variable removed.
70540         ($(objpfx)check-execstack.h): Target removed.
70541         ($(objpfx)execstack-default): New target.
70542         (generated): Add that instead of check-execstack.h.
70543         ($(all-built-dso:=.phdr)): New static pattern rule.
70544         (generated): Add those targets.
70545         * elf/check-execstack.c: File removed.
70546
70547         * scripts/check-textrel.awk: New file.
70548         * elf/Makefile ($(objpfx)check-textrel): Target removed.
70549         (check-textrel-CFLAGS): Variable removed.
70550         (all-built-dso): Use := to define.o
70551         ($(all-built-dso:=.dyn)): New static pattern rule.
70552         (generated): Add those targets.
70553         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
70554         * config.make.in (READELF): New substituted variable.
70555         * elf/check-textrel.c: File removed.
70556
70557 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70558
70559         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70560         allow.
70561         * conform/data/ctype.h-data [C99-based standards] (isblank):
70562         Expect function.
70563         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
70564         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
70565         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70566         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
70567         Specify type.  Require positive value.
70568         (EILSEQ): Likewise.
70569         (ERANGE): Likewise.
70570         [ISO || POSIX] (EILSEQ): Do not expect.
70571         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
70572         Specify type.  Require positive value.
70573         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
70574         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
70575         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
70576         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
70577         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
70578         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
70579         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
70580         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
70581         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
70582         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
70583         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
70584         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
70585         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
70586         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
70587         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
70588         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
70589         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
70590         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
70591         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
70592         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
70593         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
70594         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
70595         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
70596         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
70597         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
70598         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
70599         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
70600         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
70601         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
70602         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
70603         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
70604         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
70605         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
70606         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
70607         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
70608         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
70609         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
70610         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
70611         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
70612         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
70613         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
70614         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
70615         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
70616         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
70617         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
70618         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
70619         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
70620         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
70621         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
70622         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
70623         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
70624         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
70625         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
70626         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
70627         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
70628         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
70629         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
70630         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
70631         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
70632         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
70633         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
70634         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
70635         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
70636         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
70637         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
70638         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
70639         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
70640         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
70641         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
70642         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
70643         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
70644         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
70645         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
70646         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
70647         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
70648         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
70649         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
70650         Require >= 2.
70651         (FLT_ROUNDS): Expect as macro, not constant.
70652         (FLT_MANT_DIG): Use macro-int-constant.
70653         (DBL_MANT_DIG): Likewise.
70654         (LDBL_MANT_DIG): Likewise.
70655         (FLT_DIG): Likewise.
70656         (DBL_DIG): Likewise.
70657         (LDBL_DIG): Likewise.
70658         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
70659         (DBL_MIN_EXP): Likewise.
70660         (LDBL_MIN_EXP): Likewise.
70661         (FLT_MAX_EXP): Use macro-int-constant.
70662         (DBL_MAX_EXP): Likewise.
70663         (LDBL_MAX_EXP): Likewise.
70664         (FLT_MAX_10_EXP): Likewise.
70665         (DBL_MAX_10_EXP): Likewise.
70666         (LDBL_MAX_10_EXP): Likewise.
70667         (FLT_MAX): Use macro-constant.
70668         (DBL_MAX): Likewise.
70669         (LDBL_MAX): Likewise.
70670         (FLT_EPSILON): Use macro-constant.  Give upper bound.
70671         (DBL_EPSILON): Likewise.
70672         (LDBL_EPSILON): Likewise.
70673         (FLT_MIN): Likewise.
70674         (DBL_MIN): Likewise.
70675         (LDBL_MIN): Likewise.
70676         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
70677         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
70678         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
70679         [ISO11] (FLT_HAS_SUBNORM): Likewise.
70680         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
70681         [ISO11] (DBL_DECIMAL_DIG): Likewise.
70682         [ISO11] (FLT_DECIMAL_DIG): Likewise.
70683         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
70684         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
70685         [ISO11] (FLT_TRUE_MIN): Likewise.
70686         [ISO11] (LDBL_TRUE_MIN): Likewise.
70687         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70688         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
70689         (SCHAR_MIN): Use macro-int-constant.  Specify type.
70690         (SCHAR_MAX): Likewise.
70691         (UCHAR_MAX): Likewise.
70692         (CHAR_MIN): Likewise.
70693         (CHAR_MAX): Likewise.
70694         (MB_LEN_MAX): Use macro-int-constant.
70695         (SHRT_MIN): Use macro-int-constant.  Specify type.
70696         (SHRT_MAX): Likewise.
70697         (USHRT_MAX): Likewise.
70698         (INT_MAX): Likewise.
70699         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
70700         bound negative.
70701         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70702         bound with "U".
70703         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70704         bound with "L".
70705         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
70706         bound negative.  Suffix upper bound with "L".
70707         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70708         bound with "UL".
70709         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
70710         Specify type.
70711         [C99-based standards] (LLONG_MAX): Likewise.
70712         [C99-based standards] (ULLONG_MAX): Likewise.
70713         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
70714         == 0.
70715         [ISO11] (max_align_t): Require type.
70716         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70717
70718         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
70719         from $CFLAGS, without defining away __attribute__ calls.
70720         (checknamespace): Use $CFLAGS_namespace.
70721
70722         * conform/conformtest.pl (@keywords): Only include C99 keywords
70723         for standards based on C99 or C11.
70724
70725         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
70726         Disable tests.
70727         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
70728         UNIX98]: Likewise.
70729
70730         * conform/conformtest.pl: Handle "macro-int-constant" and test for
70731         usability of symbols in #if.
70732
70733         * conform/conformtest.pl: If macro or constant types start
70734         "promoted:", expect the symbol to be of the following type
70735         promoted by the integer promotions.
70736
70737         * conform/conformtest.pl: Parse all "constant" and "macro" lines
70738         in one place.  Also handle "macro-constant".
70739
70740         * conform/conformtest.pl: Only accept expected macro values with
70741         "==".  Parse all "macro" lines in one place.
70742         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
70743
70744         * conform/conformtest.pl: Handle braced types on "constant" lines
70745         instead of handling "typed-constant".
70746         * conform/data/signal.h-data: Use "constant" instead of
70747         "typed-constant".
70748
70749         * conform/conformtest.pl: Handle "optional-" at start of lines in
70750         one place rather than duplicating several cases.  Handle each
70751         format of "macro" line with initial "optional-".
70752
70753         * conform/conformtest.pl: Only accept expected constant or
70754         optional-constant values with "==".  Parse all "constant" lines in
70755         one place.  Parse all "optional-constant" lines in one place.
70756         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
70757         * conform/data/fmtmsg.h-data: Likewise.
70758         * conform/data/netinet/in.h-data: Likewise.
70759         * conform/data/tar.h-data: Likewise.
70760         * conform/data/limits.h-data: Use "==" form on "constant" and
70761         "optional-constant" lines.
70762
70763         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
70764         Use -std=c99 for XOPEN2K.
70765         (@knownproblems): Remove.
70766         (newtoken): Don't check %isknown.
70767
70768         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
70769         Do not expect macro.
70770         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
70771         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
70772         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
70773         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
70774         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
70775         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
70776         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
70777         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
70778         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
70779         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
70780         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
70781         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
70782         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
70783         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
70784         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
70785         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
70786         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
70787         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
70788         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
70789         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
70790         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
70791         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
70792         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
70793         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
70794         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
70795         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
70796         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
70797         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
70798         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
70799         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
70800         [XPG3] (acosh): Likewise.
70801         [XPG3] (asinh): Likewise.
70802         [XPG3] (atanh): Likewise.
70803         [XPG3] (cbrt): Likewise.
70804         [XPG3] (expm1): Likewise.
70805         [XPG3] (ilogb): Likewise.
70806         [XPG3] (log1p): Likewise.
70807         [XPG3] (logb): Likewise.
70808         [XPG3] (nextafter): Likewise.
70809         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
70810         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
70811         [XPG3] (remainder): Likewise.
70812         [XPG3] (rint): Likewise.
70813         [XPG3 || XPG4 || UNIX98] (round): Likewise.
70814         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
70815         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
70816         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
70817         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
70818         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
70819         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
70820         [UNIX98 || XOPEN2K] (scalb): Expect.
70821         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
70822         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
70823         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
70824         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
70825         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
70826         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
70827         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
70828         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
70829         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
70830         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
70831         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
70832         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
70833         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
70834         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
70835         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
70836         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
70837         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
70838         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
70839         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
70840         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
70841         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
70842         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
70843         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
70844         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
70845         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
70846         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
70847         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
70848         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
70849         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
70850         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
70851         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
70852         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
70853         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
70854         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
70855         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
70856         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
70857         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
70858         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
70859         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
70860         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
70861         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
70862         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
70863         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
70864         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
70865         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
70866         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
70867         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
70868         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
70869         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
70870         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
70871         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
70872         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
70873         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
70874         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
70875         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
70876         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
70877         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
70878         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
70879         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
70880         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
70881         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
70882         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
70883         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
70884         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
70885         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
70886         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
70887         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
70888         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
70889         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
70890         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
70891         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
70892         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
70893         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
70894         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
70895         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
70896         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
70897         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
70898         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
70899         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
70900         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
70901         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
70902         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
70903         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
70904         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
70905         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
70906         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
70907         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
70908         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
70909         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
70910         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
70911         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
70912         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
70913         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
70914         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
70915         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
70916         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
70917         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
70918         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
70919         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
70920         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
70921         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
70922         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
70923         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
70924         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
70925         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
70926         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
70927         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
70928         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
70929         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
70930         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
70931         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
70932         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
70933         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
70934         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
70935         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
70936         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
70937         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
70938         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
70939         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
70940         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
70941         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
70942         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
70943         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
70944         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
70945         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
70946         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
70947         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
70948         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
70949         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
70950         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
70951         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
70952         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
70953         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
70954         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
70955         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
70956         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
70957         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
70958
70959         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
70960         _XOPEN_SOURCE_EXTENDED for XPG4.
70961
70962         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
70963
70964         * Makeconfig (localtime): Remove variable.
70965         (inst_localtime-file): Likewise.
70966
70967 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
70968
70969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
70970         Update.
70971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70972         Update.
70973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
70974         Update.
70975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
70976         Update.
70977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
70978         Update.
70979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
70980         Update.
70981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70982         Update.
70983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
70984         Update.
70985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
70986         Update.
70987
70988 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70989
70990         [BZ #2550]
70991         [BZ #2570]
70992         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
70993         comparisons to determine direction to adjust input.
70994         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
70995         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
70996         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
70997         Likewise.
70998         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
70999         Likewise.
71000         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
71001         Likewise.
71002         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
71003         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
71004         Likewise.
71005         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
71006         Likewise.
71007         * math/libm-test.inc (nexttoward_test): Add more tests.
71008
71009 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71010
71011         [BZ #14040]
71012         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
71013         in version GLIBC_2.1, not GLIBC_2.0.
71014         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
71015         Likewise.
71016
71017 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
71018
71019         [BZ #13942]
71020         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
71021         (1 - x) * (1 + x).
71022         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71023         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
71024         * math/libm-test.inc (acos_test): Add more tests.
71025         (asin_test): Likewise.
71026         * sysdeps/i386/fpu/libm-test-ulps: Update.
71027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71028
71029         [BZ #14034]
71030         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
71031         of square root.
71032         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
71033         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71034         * math/libm-test.inc (acos_test_tonearest): New function.
71035         (acos_test_towardzero): Likewise.
71036         (acos_test_downward): Likewise.
71037         (acos_test_upward): Likewise.
71038         (asin_test_tonearest): Likewise.
71039         (asin_test_towardzero): Likewise.
71040         (asin_test_downward): Likewise.
71041         (asin_test_upward): Likewise.
71042         (main): Call the new functions.
71043         * sysdeps/i386/fpu/libm-test-ulps: Update.
71044         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71045
71046         [BZ #13884]
71047         [BZ #13924]
71048         * math/e_exp10.c: Include <float.h>.
71049         (__ieee754_exp10): Handle underflow here rather than multiplying
71050         large negative argument by M_LN10.
71051         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
71052         of __ieee754_expf.
71053         * math/e_exp10l.c: Include <float.h>.
71054         (__ieee754_exp10l): Handle underflow here rather than multiplying
71055         large negative argument by M_LN10l.
71056         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
71057         spurious overflow exception on underflow.
71058
71059 2012-04-29  Marek Polacek  <polacek@redhat.com>
71060
71061         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
71062         (__fortify_function): New macro.
71063         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
71064         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
71065         __extern_always_inline.
71066         * libio/bits/stdio2.h: Likewise.
71067         * libio/bits/stdio.h: Likewise.
71068         * string/string.h: Likewise.
71069         * string/bits/string3.h: Likewise.
71070         * include/stdio.h: Likewise.
71071         * stdlib/bits/stdlib.h: Likewise.
71072         * stdlib/stdlib.h: Likewise.
71073         * rt/bits/mqueue2.h: Likewise.
71074         * rt/mqueue.h: Likewise.
71075         * posix/bits/unistd.h: Likewise.
71076         * posix/unistd.h: Likewise.
71077         * io/bits/poll2.h: Likewise.
71078         * io/bits/fcntl2.h: Likewise.
71079         * io/fcntl.h: Likewise.
71080         * io/sys/poll.h: Likewise.
71081         * misc/bits/syslog.h: Likewise.
71082         * misc/bits/syslog-ldbl.h: Likewise.
71083         * misc/sys/syslog.h: Likewise.
71084         * socket/bits/socket2.h: Likewise.
71085         * socket/sys/socket.h: Likewise.
71086         * debug/tst-chk1.c: Likewise.
71087         * wcsmbs/bits/wchar2.h: Likewise.
71088         * wcsmbs/bits/wchar-ldbl.h: Likewise.
71089         * wcsmbs/wchar.h: Likewise.
71090
71091 2012-04-29  Andreas Jaeger  <aj@suse.de>
71092
71093         * Makerules (tests): Remove enable-check-abi protection.
71094         (check-abi-warn): Remove.
71095         (check-abi-%): Remove check-abi-warn usage.
71096
71097         * configure.in: Remove check-abi configure option.
71098         * configure: Regenerated.
71099         * config.make.in (enable-check-abi): Remove.
71100
71101 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
71102
71103         [BZ #14033]
71104         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
71105         double functions to double *_finite functions.
71106
71107         [BZ #13941]
71108         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
71109         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
71110         LDBL_MIN_EXP.
71111         * stdio-common/Makefile (tests): Add tst-sprintf3.
71112         * stdio-common/tst-sprintf3.c: New file.
71113
71114         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
71115         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
71116
71117 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71118
71119         * conform/conformtest.pl: Remove duplicate typed-constant
71120         handling.
71121
71122 2012-04-28  David S. Miller  <davem@davemloft.net>
71123
71124         * Makerules (%.abilist): Add vpath on sysdep_dirs.
71125         (check-abi-%): Remove AWK script prerequisite and explicit
71126         abilist directory.
71127         (check-abi): Rewrite to just diff the symlist with the abilist.
71128         (config-tls, config-abi-config): Delete, no longer used.
71129         (update-abi-%): Remove AWK script and explicit abilist directory.
71130         (update-abi): Rewrite to simply compare and conditionally copy the
71131         symlist and the sysdep abilist file.  Remove update-abi-config
71132         checks.
71133         * abilist/ld.abilist: Remove.
71134         * abilist/libBrokenLocale.abilist: Remove.
71135         * abilist/libanl.abilist: Remove.
71136         * abilist/libcrypt.abilist: Remove.
71137         * abilist/libdl.abilist: Remove.
71138         * abilist/librt.abilist: Remove.
71139         * abilist/libthread_db.abilist: Remove.
71140         * abilist/libutil.abilist: Remove.
71141         * scripts/extract-abilist.awk: Remove.
71142         * scripts/merge-abilist.awk: Remove.
71143         * sysdeps/generic/libcidn.abilist: New file.
71144         * sysdeps/generic/libnss_compat.abilist: New file.
71145         * sysdeps/generic/libnss_db.abilist: New file.
71146         * sysdeps/generic/libnss_dns.abilist: New file.
71147         * sysdeps/generic/libnss_files.abilist: New file.
71148         * sysdeps/generic/libnss_hesiod.abilist: New file.
71149         * sysdeps/generic/libnss_nis.abilist: New file.
71150         * sysdeps/generic/libnss_nisplus.abilist: New file.
71151         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
71152         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
71153         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
71154         file.
71155         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
71156         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
71157         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
71158         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
71159         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
71160         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
71161         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
71162         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
71163         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
71164         file.
71165         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
71166         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
71167         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
71168         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
71169         file.
71170         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
71171         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
71172         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
71173         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
71174         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
71175         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
71176         file.
71177         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
71178         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
71179         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
71180         file.
71181         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
71182         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
71183         New file.
71184         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
71185         New file.
71186         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
71187         New file.
71188         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
71189         New file.
71190         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
71191         New file.
71192         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
71193         New file.
71194         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
71195         New file.
71196         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
71197         New file.
71198         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
71199         New file.
71200         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
71201         New file.
71202         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
71203         New file.
71204         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
71205         New file.
71206         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
71207         New file.
71208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
71209         file.
71210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
71211         New file.
71212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
71213         New file.
71214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
71215         file.
71216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
71217         New file.
71218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
71219         New file.
71220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
71221         file.
71222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
71223         New file.
71224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71225         New file.
71226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
71227         New file.
71228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
71229         New file.
71230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
71231         New file.
71232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
71233         New file.
71234         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
71235         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
71236         file.
71237         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
71238         New file.
71239         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
71240         file.
71241         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
71242         file.
71243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
71244         file.
71245         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
71246         file.
71247         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
71248         file.
71249         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
71250         New file.
71251         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
71252         file.
71253         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
71254         file.
71255         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
71256         New file.
71257         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
71258         file.
71259         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
71260         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
71261         file.
71262         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
71263         New file.
71264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
71265         file.
71266         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
71267         file.
71268         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
71269         file.
71270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
71271         file.
71272         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
71273         file.
71274         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
71275         New file.
71276         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
71277         file.
71278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
71279         file.
71280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
71281         New file.
71282         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
71283         file.
71284         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
71285         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
71286         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
71287         file.
71288         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
71289         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
71290         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
71291         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
71292         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
71293         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
71294         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
71295         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
71296         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
71297         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
71298         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
71299         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
71300         file.
71301         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
71302         New file.
71303         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
71304         file.
71305         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
71306         file.
71307         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
71308         file.
71309         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
71310         file.
71311         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
71312         file.
71313         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
71314         New file.
71315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
71316         New file.
71317         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
71318         file.
71319         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
71320         New file.
71321         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
71322         file.
71323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
71324         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
71325         file.
71326         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
71327         New file.
71328         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
71329         file.
71330         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
71331         file.
71332         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
71333         file.
71334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
71335         file.
71336         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
71337         file.
71338         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
71339         New file.
71340         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
71341         New file.
71342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
71343         file.
71344         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
71345         New file.
71346         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
71347         file.
71348
71349 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71350
71351         * conform/conformtest.pl: Fix typo in handling typed-constant from
71352         allow-header.
71353
71354 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71355
71356         * README: Cut down references to pre-2.6 Linux kernels and
71357         Linuxthreads.  Update lists of configurations in libc and ports
71358         and sort alphabetically.  Say "or newer" with Linux kernel version
71359         requirements.
71360
71361         * config.h.in [IS_IN_build]: Allow compiling without optimization.
71362
71363 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
71364
71365         [BZ #887]
71366         * math/libm-test.inc (logb_test_downward): New test to expose
71367         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
71368         rounding mode.
71369
71370 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71371
71372         [BZ #14027]
71373         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
71374         to be done.
71375         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
71376         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
71377
71378 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
71379
71380         * sysdeps/unix/i386/brk.S: Remove file.
71381         * sysdeps/unix/i386/dl-brk.S: Likewise.
71382         * sysdeps/unix/i386/pipe.S: Likewise.
71383         * sysdeps/unix/i386/sigreturn.S: Likewise.
71384         * sysdeps/unix/i386/syscall.S: Likewise.
71385         * sysdeps/unix/i386/vfork.S: Likewise.
71386         * sysdeps/unix/i386/wait.S: Likewise.
71387
71388         * sysdeps/unix/common/tcsendbrk.c: Move to ...
71389         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
71390
71391         * configure.in (arm*-none*): Do not allow without
71392         --enable-hacker-mode.
71393         (netbsd*): Remove case setting base_os.
71394         (386bsd*): Likewise.
71395         (freebsd*): Likewise.
71396         (bsdi*): Likewise.
71397         (osf*): Likewise.
71398         (sunos*): Likewise.
71399         (ultrix*): Likewise.
71400         (newsos*): Likewise.
71401         (dynix*): Likewise.
71402         (*bsd*): Likewise.
71403         (sysv*): Likewise.
71404         (isc*): Likewise.
71405         (esix*): Likewise.
71406         (sco*): Likewise.
71407         (minix*): Likewise.
71408         (irix4*): Likewise.
71409         (irix6*): Likewise.
71410         (solaris[2-9]*): Likewise.
71411         (none): Likewise.
71412         * configure: Regenerated.
71413
71414 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71415
71416         [BZ #11521]
71417         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
71418         overflow or cancellation in calculating denominator.
71419         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
71420         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
71421         down expression to avoid unexpected rounding in newer GCCs.
71422         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
71423
71424 2012-04-26  David S. Miller  <davem@davemloft.net>
71425
71426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
71427         long-double compat symbols.
71428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
71430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
71431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
71432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
71434         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
71435         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
71436         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
71437         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
71438         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
71439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
71440         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71441
71442 2012-04-25  David S. Miller  <davem@davemloft.net>
71443
71444         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
71445         HWCAP_* values only after the memory barriers have been defined.
71446         (atomic_full_barrier): Define.
71447         (atomic_read_barrier): Define.
71448         (atomic_write_barrier): Define.
71449
71450 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
71451
71452         * shlib-versions: Add libgcc_s version information.
71453         * sysdeps/generic/libgcc_s.h: Remove.
71454         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
71455         libgcc_s.h.
71456         * sysdeps/gnu/unwind-resume.c: Likewise.
71457         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
71458
71459 2012-04-25  David S. Miller  <davem@davemloft.net>
71460
71461         * sysdeps/unix/sparc/brk.S: Delete.
71462         * sysdeps/unix/sparc/dl-brk.S: Delete.
71463         * sysdeps/unix/sparc/pipe.S: Delete.
71464         * sysdeps/unix/sparc/sysdep.S: Delete.
71465         * sysdeps/unix/sparc/sysdep.h: Delete.
71466         * sysdeps/unix/sparc/vfork.S: Delete.
71467         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
71468         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
71469         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
71470         (ret_ERRVAL, r0, r1, MOVE): Define.
71471         (JUMPTARGET): Remove.
71472         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
71473         sysdeps/unix/sparc/sysdep.h
71474         (ENTRY, END): Remove.
71475         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71476
71477 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
71478
71479         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
71480         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
71481         -DIS_IN_build.
71482
71483         * timezone/README: Update upstream location and email address for
71484         tzcode and tzdata.
71485         * timezone/zdump.c: Update from tzcode 2012b.
71486         * timezone/zic.c: Likewise.
71487
71488         * configure.in (libc_cv_as_needed): Remove test.
71489         * configure: Regenerated.
71490         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
71491         conditional definition.
71492         [$(have-as-needed) != yes] (no-as-needed): Likewise.
71493         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
71494         * config.make.in (have-as-needed): Remove variable.
71495
71496 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71497             Paul Pluzhnikov  <ppluzhnikov@google.com>
71498
71499         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
71500         strings correctly.
71501
71502 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
71503
71504         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
71505         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
71506         * sysdeps/sh/strlen.S: Likewise.
71507
71508 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71509
71510         * sysdeps/unix/fork.S: Remove file.
71511         * sysdeps/unix/i386/fork.S: Likewise.
71512         * sysdeps/unix/sparc/fork.S: Likewise.
71513
71514         * sysdeps/unix/system.c: Remove file.
71515         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
71516
71517         * sysdeps/unix/getegid.S: Remove file.
71518         * sysdeps/unix/geteuid.S: Likewise.
71519
71520 2012-04-24  Roland McGrath  <roland@hack.frob.com>
71521
71522         * scripts/check-localplt.awk: New file.
71523         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
71524         of diff.
71525         * scripts/data/localplt-generic.data: Add a comment.
71526
71527         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
71528         NODE when __dir_mkfile failed.
71529         * sysdeps/mach/hurd/symlinkat.c: Likewise.
71530         Reported by Ludovic Courtès <ludo@gnu.org>.
71531
71532 2012-04-24  Andreas Jaeger  <aj@suse.de>
71533
71534         * Makerules (common-clean): Also remove gen-as-const-headers
71535         files.
71536
71537 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71538
71539         * Makerules (native-compile): Do not change working directory for
71540         build.  Use $(OUTPUT_OPTION) in command.
71541         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
71542
71543 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71544
71545         [BZ #13886]
71546         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
71547         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
71548         * math/libm-test.inc (floor_test): Add more tests.
71549         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
71550
71551 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71552
71553         * sysdeps/unix/getdents.c: Remove file.
71554         * sysdeps/unix/sysv/getdents.c: Likewise.
71555         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
71556
71557         * sysdeps/unix/syscalls.list (madvise): Add syscall from
71558         sysdeps/unix/mman/syscalls.list.
71559         (mmap): Likewise.
71560         (mprotect): Likewise.
71561         (msync): Likewise.
71562         (munmap): Likewise.
71563         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
71564         * sysdeps/unix/mman/syscalls.list: Remove.
71565         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
71566
71567         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
71568         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
71569         * configure: Regenerated.
71570         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
71571         $(libgcc_s_suffix).
71572         * config.make.in (libgcc_s_suffix): Remove variable.
71573
71574 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
71575
71576         * sysdeps/unix/sysv/gethostname.c: Move to ...
71577         * sysdeps/posix/gethostname.c: ... here.
71578
71579         * sysdeps/unix/execve.S: Remove file.
71580
71581         * sysdeps/unix/_exit.S: Remove file.
71582
71583 2012-04-23  Andreas Jaeger  <aj@suse.de>
71584
71585         [BZ #13739]
71586         * manual/Makefile: Remove make dist support, there's no
71587         need for a stand-alone documentation tar ball.
71588         (TEXI2DVI): Define always, it's not in Makeconfig.
71589         (dist): Removed.
71590         (tar-it): Removed.
71591         (edition): Removed.
71592         (glibc-doc-$(edition).tar): Removed
71593         (%.Z): Removed.
71594         (%.gz): Removed.
71595         (%.uu): Removed.
71596         (ETAGS): Remove, it's in Makeconfig.
71597         (move-if-change): Remove, it's in Makeconfig.
71598
71599 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         [BZ #13970]
71602         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
71603         (strtod, strtof, strtold, strtol, strtoul, strtoq)
71604         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
71605         (strtod_l, strtof_l, strtold_l): Remove __wur.
71606         It is not necessarily an error to ignore strtol's return value.
71607         One can reliably look at the stored endptr to decide whether
71608         the number had valid syntax.
71609
71610 2012-04-21  Andreas Jaeger  <aj@suse.de>
71611
71612         [BZ #13739]
71613         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
71614
71615 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
71616
71617         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
71618         * sysdeps/unix/sysv/Versions: Remove file.
71619
71620 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
71621
71622         [BZ #13927]
71623         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71624
71625 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
71626
71627         [BZ #7064]
71628         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
71629         version from __vm86.
71630
71631 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
71632
71633         * sysdeps/unix/common/lxstat.c: Remove file.
71634         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
71635
71636         * sysdeps/unix/sysv/Makefile: Remove file.
71637
71638         * sysdeps/unix/sysv/direct.h: Remove file.
71639
71640         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
71641         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
71642         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
71643         * sysdeps/unix/sysv/bits/signum.h: Likewise.
71644         * sysdeps/unix/sysv/bits/stat.h: Likewise.
71645         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
71646         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
71647
71648         * sysdeps/unix/sysv/setrlimit.c: Remove file.
71649
71650         * sysdeps/unix/xmknod.c: Remove file.
71651         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
71652
71653         * sysdeps/unix/sysv/settimeofday.c: Remove file.
71654
71655         * sysdeps/unix/sysv/i386/time.S: Remove file.
71656
71657         * sysdeps/unix/fxstat.c: Remove file.
71658         * sysdeps/unix/xstat.c: Likewise.
71659         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
71660
71661         * sysdeps/unix/sysv/sigaction.c: Remove file.
71662
71663         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
71664         (sysdep_headers): Remove variable.
71665         [termio.h not in sysdep_headers] (generated): Likewise.
71666         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
71667         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
71668         * sysdeps/unix/sysv/tcdrain.c: Likewise.
71669         * sysdeps/unix/sysv/tcflow.c: Likewise.
71670         * sysdeps/unix/sysv/tcflush.c: Likewise.
71671         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
71672         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
71673         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
71674         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
71675         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
71676
71677         * sysdeps/unix/siglist.c: Remove file.
71678
71679         * sysdeps/unix/getppid.S: Remove file.
71680
71681         * sysdeps/unix/mkdir.c: Remove file.
71682         * sysdeps/unix/rmdir.c: Likewise.
71683
71684 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
71685
71686         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
71687         ERR_MAX value.
71688         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
71689         errlist-compat value.
71690
71691 2012-04-18  David S. Miller  <davem@davemloft.net>
71692
71693         * sysdeps/generic/memcopy.h (reg_char): Delete.
71694         * debug/strcat_chk.c: Use char, not reg_char.
71695         * debug/strcpy_chk.c: Likewise.
71696         * debug/strncat_chk.c: Likewise.
71697         * debug/strncpy_chk.c: Likewise.
71698         * string/memchr.c: Likewise.
71699         * string/memrchr.c: Likewise.
71700         * string/rawmemchr.c: Likewise.
71701         * string/strcat.c: Likewise.
71702         * string/strchr.c: Likewise.
71703         * string/strchrnul.c: Likewise.
71704         * string/strcmp.c: Likewise.
71705         * string/strcpy.c: Likewise.
71706         * string/strncat.c: Likewise.
71707         * string/strncmp.c: Likewise.
71708         * string/strncpy.c: Likewise.
71709
71710 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71711
71712         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
71713         __builtin_memcopy is called when src and dest ranges are known to not
71714         overlap.
71715
71716 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71717
71718         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
71719         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
71720         fwd_align_merge macro call.
71721         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
71722         bwd_align_merge macro call.
71723         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71724
71725 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71726
71727         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
71728         bwd_align_merge macros.
71729         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
71730         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71731         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71732
71733 2012-04-18  David S. Miller  <davem@davemloft.net>
71734
71735         * sysdeps/sparc/sparc64/memcopy.h: Delete.
71736
71737 2012-04-18  Andreas Jaeger  <aj@suse.de>
71738
71739         [BZ# 6794]
71740         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
71741         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
71742         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71743
71744         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
71745         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
71746         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71747
71748         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
71749         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
71750         Adjust for changed ldbl-128 files.
71751
71752         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
71753         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
71754         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71755
71756 2012-04-17  David S. Miller  <davem@davemloft.net>
71757
71758         * sysdeps/sparc/sparc32/memcopy.h: Delete.
71759
71760 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
71761
71762         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
71763         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
71764         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
71765         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
71766         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
71767         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
71768
71769 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71770
71771         [BZ #6794]
71772         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
71773         * math/libm-test.inc: Add ilogb errno and exception tests.
71774         * math/w_ilogb.c: New file: ilogb wrapper.
71775         * math/w_ilogbf.c: New file: ilogbf wrapper.
71776         * math/w_ilogbl.c: New file: ilogbl wrapper.
71777         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
71778         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
71779         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
71780         exception being thrown with 0.0 as argument.
71781         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
71782         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
71783         exception being thrown with 0.0 as argument.
71784         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
71785         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71786         exception being thrown with 0.0 as argument.
71787         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
71788         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71789         exception being thrown with 0.0 as argument.
71790         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
71791         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
71792         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
71793         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
71794         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
71795         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
71796         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
71797         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
71798         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
71799
71800 2012-04-17  Petr Baudis  <pasky@ucw.cz>
71801
71802         * include/sys/uio.h: Change __vector to __iovec to avoid clash
71803         with altivec.
71804
71805 2012-04-16  Marek Polacek  <polacek@redhat.com>
71806
71807         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
71808
71809 2012-04-16  Marek Polacek  <polacek@redhat.com>
71810
71811         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
71812         operands of fdivp instruction.
71813
71814 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71815
71816         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
71817         * elf/tst-auditmod3b.c: Likewise.
71818         * elf/tst-auditmod4b.c: Likewise.
71819         * elf/tst-auditmod5b.c: Likewise.
71820         * elf/tst-auditmod6b.c: Likewise.
71821         * elf/tst-auditmod6c.c: Likewise.
71822         * elf/tst-auditmod7b.c: Likewise.
71823         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
71824         * sysdeps/x86_64/preconfigure.in: Likewise.
71825         * sysdeps/x86_64/preconfigure: Regenerated.
71826
71827 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71828
71829         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
71830         __ILP32__.
71831
71832 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
71833
71834         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71835         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
71836
71837 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
71838
71839         [BZ #13973]
71840         * locale/iso-639.def: Fix gl language name. Spotted by
71841         Yaron Shahrabani.
71842
71843 2012-04-12  Roland McGrath  <roland@hack.frob.com>
71844
71845         [BZ #2074]
71846         * libio/libio.h (__io_write_fn): Update comment.
71847
71848 2012-04-12  Petr Baudis  <pasky@ucw.cz>
71849
71850         [BZ #2074]
71851         * stdio.texi (Hook Functions): The user provided writer function
71852         is not allowed to return -1.
71853
71854 2012-04-11  David S. Miller  <davem@davemloft.net>
71855
71856         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71857
71858 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
71859
71860         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
71861         Add a leading slash to rtkaio.
71862
71863 2012-04-11  Jim Meyering  <meyering@redhat.com>
71864
71865         [BZ #11959]
71866         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
71867         It is not necessarily an error to ignore fwrite's return
71868         value.  One can reliably use ferror to test for errors after
71869         the fact.
71870
71871 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71872
71873         * bits/types.h (__snseconds_t): New type.
71874         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
71875
71876         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
71877         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71878         (__SNSECONDS_T_TYPE): Likewise.
71879         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71880         (__SNSECONDS_T_TYPE): Likewise.
71881         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71882         (__SNSECONDS_T_TYPE): Likewise.
71883
71884 2012-04-10  Andreas Jaeger  <aj@suse.de>
71885
71886         [BZ #2636]
71887         * manual/time.texi (Processor Time): Return type of times is
71888         elapsed real time since an arbitrary point in the past.
71889         (CPU Time): Move CLK_TCK from here...
71890         (Processor Time): ...to here.  Correct description.
71891         * manual/conf.texi (Constants for Sysconf): Correct description of
71892         _SC_CLK_TCK.
71893
71894 2012-04-10  David S. Miller  <davem@davemloft.net>
71895
71896         [BZ #13967]
71897         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
71898         where the is a gap between DT_REL(A) and DT_JMPREL.
71899
71900 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71901
71902         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
71903         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71904         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71905
71906 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
71907
71908         * elf/dl-support.c (_dl_inhibit_cache): New variable.
71909         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
71910         (dl_main): Handle --inhibit-cache.
71911         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
71912         _dl_inhibit_cache.
71913         * elf/dl-load.c (_dl_map_object): Use it.
71914         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
71915
71916 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71917
71918         [BZ #13872]
71919         * sysdeps/i386/fpu/e_powl.S (p78): New object.
71920         (__ieee754_powl): Saturate large exponents rather than testing for
71921         overflow of y*log2(x).
71922         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71923         * math/libm-test.inc (pow_test): Do not permit spurious overflow
71924         exceptions.
71925
71926         [BZ #11521]
71927         * math/s_ctan.c: Include <float.h>.
71928         (__ctan): Avoid internal overflow or cancellation in calculating
71929         denominator.
71930         * math/s_ctanf.c: Likewise.
71931         * math/s_ctanl.c: Likewise.
71932         * math/s_ctanh.c: Likewise.
71933         * math/s_ctanhf.c: Likewise.
71934         * math/s_ctanhl.c: Likewise.
71935         * math/libm-test.inc (ctan_test): Add more tests.
71936         (ctanh_test): Likewise.
71937         * sysdeps/i386/fpu/libm-test-ulps: Update.
71938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71939
71940 2012-04-09  Andreas Jaeger  <aj@suse.de>
71941
71942         [BZ #6894]
71943         * manual/filesys.texi (Directory Entries): Mention that d_namlen
71944         is an optional BSD extension.
71945
71946         [BZ #10254]
71947         * manual/stdio.texi (Opening Streams): Document additional fopen
71948         parameters.
71949
71950 2012-04-09  Roland McGrath  <roland@hack.frob.com>
71951
71952         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
71953         %eax without telling the compiler.
71954
71955 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
71956
71957         [BZ # 13963]
71958         * manual/install.texi: Use sourceware.org.
71959
71960 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71961
71962         [BZ #13873]
71963         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
71964         (__ieee754_pow): Generate overflow and underflow using huge*huge
71965         and tiny*tiny rather than just returning constant infinity or zero
71966         for large exponents.
71967         * math/libm-test.inc (pow_test): Require overflow exceptions for
71968         applicable cases of large exponents.
71969
71970         [BZ #706]
71971         * sysdeps/i386/fpu/e_pow.S (p10): New object.
71972         (__ieee754_pow): Use iterative multiplication algorithm only for
71973         integer exponents with absolute value below 1024.  Check for odd
71974         integer exponents when using algorithm for real exponents.
71975         * math/libm-test.inc (pow_test): Add more tests.
71976         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71977
71978 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
71979
71980         [BZ #13705]
71981         * math/libm-test.inc (exp_test): Do not allow overflow exception
71982         on underflow test.
71983
71984 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
71985
71986         [BZ #13705]
71987         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
71988         instead of __kernel_standard_f.
71989
71990 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
71991
71992         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
71993         * sysdeps/x86_64/memset_chk.S: Likewise.
71994
71995 2012-04-08  Andreas Jaeger  <aj@suse.de>
71996
71997         [BZ #10153]
71998         * manual/startup.texi (Environment Access): Describe return value
71999         for putenv and setenv.
72000
72001         [BZ #6895]
72002         * manual/filesys.texi (Directory Entries): Add description for
72003         DT_LNK.
72004
72005         [BZ #6890]
72006         * manual/filesys.texi (Directory Entries): Clarify that it's file
72007         system not operating system in the description of DT_UNKNOWN.
72008
72009         [BZ #6578]
72010         * manual/syslog.texi (closelog): Fix reference, it's openlog.
72011
72012 2012-04-08  Stephen Compall  <s11@member.fsf.org>
72013
72014         [BZ #6649]
72015         * manual/llio.texi (Opening and Closing Files): Add cross
72016         reference to explain mode argument.
72017
72018 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
72019
72020         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
72021         * sysdeps/x86_64/memset_chk.S: Likewise.
72022
72023 2012-04-07  David S. Miller  <davem@davemloft.net>
72024
72025         * elf/elf.h (R_SPARC_WDISP10): Define.
72026         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
72027         R_SPARC_SIZE32.
72028         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
72029         R_SPARC_SIZE64 and R_SPARC_H34.
72030
72031 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
72032
72033         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
72034         conditions and remove no longer applicable assertion.
72035
72036 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72037
72038         * bits/byteswap.h: Include <features.h>.
72039         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72040         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72041
72042 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72043
72044         * bits/byteswap.h (__bswap_16): Removed.
72045         Include <bits/byteswap-16.h> to get __bswap_16.
72046         * sysdeps/i386/bits/byteswap.h: Likewise.
72047         * sysdeps/s390/bits/byteswap.h: Likewise.
72048         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72049         * bits/byteswap-16.h: New file.
72050         * sysdeps/i386/bits/byteswap-16.h: Likewise.
72051         * sysdeps/s390/bits/byteswap-16.h: Likewise.
72052         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
72053         * string/Makefile (headers): Add bits/byteswap-16.h.
72054
72055 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
72056
72057         [BZ #13895]
72058         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
72059         extra indirection.
72060         * nss/Makefile (tests-static, tests): Add tst-nss-static.
72061         * nss/tst-nss-static.c: New.
72062
72063 2012-04-06  Robert Millan  <rmh@gnu.org>
72064
72065         [BZ #6486]
72066         * manual/llio.texi (File Position Primitive): lseek
72067         refers to WHENCE when it really means OFFSET.
72068
72069 2012-04-06  Andreas Jaeger  <aj@suse.de>
72070
72071         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
72072         strncmp declarations.
72073
72074         * abilist/libc.abilist: Add __poll and __ppoll.
72075
72076 2012-04-05  David S. Miller  <davem@davemloft.net>
72077
72078         * scripts/check-local-headers.sh: Accept a host triplet in the
72079         path matched by the exclude regexp.
72080
72081         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
72082         definition.
72083         * sysdeps/powerpc/powerpc32/dl-machine.h
72084         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
72085         * sysdeps/s390/s390-32/dl-machine.h
72086         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72087         * sysdeps/sparc/sparc32/dl-machine.h
72088         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72089         * sysdeps/sparc/sparc64/dl-machine.h
72090         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72091
72092         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
72093         lazy binding.
72094         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
72095         undefined symbol errors.
72096
72097         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
72098         DT_NEEDED entries.
72099
72100 2012-04-05  Michael Matz  <matz@suse.de>
72101
72102         [BZ #13592]
72103         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
72104
72105 2012-04-05  Andreas Jaeger  <aj@suse.de>
72106
72107         [BZ #13908]
72108         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
72109         comment.
72110
72111 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72112
72113         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
72114         which ROUND is no valid rounding mode.
72115
72116 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72117
72118         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
72119         read again.
72120         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
72121
72122 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72123
72124         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
72125         an exception using FPU order intentionally.
72126
72127 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72128
72129         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
72130         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
72131         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
72132         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
72133
72134 2012-04-05  Simon Josefsson  <simon@josefsson.org>
72135
72136         [BZ #12340]
72137         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
72138         EINVAL when BUFLEN is too smal.
72139
72140 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
72141
72142         [BZ #13553]
72143         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
72144         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
72145
72146 2012-04-03  Andreas Jaeger  <aj@suse.de>
72147
72148         [BZ #13938]
72149         * manual/setjmp.texi (System V contexts): Fix sentence.
72150
72151         [BZ #13926]
72152         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
72153         New macro for this case.
72154         [!__GNUC__] (__bswap_64): New inline function for this case.
72155         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72156         * bits/byteswap.h: Likewise.
72157         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
72158         ull, guard with __GLIBC_HAVE_LONG_LONG.
72159
72160         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
72161         __GLIBC_HAVE_LONG_LONG.
72162
72163         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
72164         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
72165
72166 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
72167
72168         [BZ #13691]
72169         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
72170         inptr and inend, rather than using last_ch.
72171
72172 2012-04-02  David S. Miller  <davem@davemloft.net>
72173
72174         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
72175         * stdio-common/printf-parse.h (read_int): Change return type to
72176         'int', return -1 on INT_MAX overflow.
72177         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
72178         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
72179         overflows INT_MAX.  Check for overflow of in-format-string precision
72180         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
72181         SIZE_MAX not INT_MAX for integer overflow test.
72182         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
72183         skip the construct in the format string but do not record anything.
72184         * stdio-common/bug22.c: Adjust to test both width/prevision
72185         INT_MAX overflow as well as total length INT_MAX overflow.  Check
72186         explicitly for proper errno values.
72187
72188 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
72189
72190         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
72191         CHAR_MAX.
72192         * string/test-strcmp.c [! WIDE]: Likewise.
72193         * time/tst-mktime2.c: Likewise for INT_MAX.
72194         * string/test-string.h: #include <sys/param.h> for MIN.
72195
72196         * csu/init-first.c (__libc_init_first): Call __ctype_init.
72197         * sysdeps/i386/init-first.c (init): Likewise.
72198         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
72199         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
72200         * sysdeps/sh/init-first.c (init): Likewise.
72201
72202 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
72203
72204         * po/ru.po: Update from translation team.
72205         * po/vi.po: Likewise.
72206
72207 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
72208
72209         * resolv/nss_dns/dns-host.c: Merge copyright years.
72210
72211 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72212
72213         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
72214         Optimize memcpy with prefetch if
72215         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
72216         src, dst pointers have unequal 16 byte alignments.
72217
72218 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
72219
72220         [BZ #13928]
72221         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
72222         from a CNAME entry and return the minimum ttl for the query.
72223         (gaih_getanswer_slice): Likewise.
72224
72225 2012-03-30  Jeff Law  <law@redhat.com>
72226
72227         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
72228         due to long keys.
72229         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
72230         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
72231
72232         * resolv/nss_dns/dns-host.c: Update copyright year.
72233
72234 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
72235
72236         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
72237         requests to save a system call.  Fix check that all bytes are sent.
72238
72239         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
72240         comments for sendmmsg.
72241
72242 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
72243
72244         [BZ #13691]
72245         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
72246         with only 1 character between 0x0041 and 0x01b0.
72247         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
72248         * wcsmbs/tst-mbsnrtowcs.c: New file.
72249
72250 2012-03-29  David S. Miller  <davem@davemloft.net>
72251
72252         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
72253         small copies by hand.
72254
72255 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
72256
72257         [BZ #13761]
72258         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
72259         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
72260         group memberships.
72261
72262 2012-03-28  David S. Miller  <davem@davemloft.net>
72263
72264         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
72265         that branches into memcpy.
72266         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
72267         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
72268         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
72269         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
72270         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
72271         bits.
72272         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
72273         implementation too.
72274         * sysdeps/sparc/mempcpy.S: New file.
72275
72276         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
72277         the IFUNC routine in the libc case.
72278         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72279
72280         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
72281         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
72282         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
72283         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
72284         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
72285         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
72286         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
72287         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
72288
72289         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
72290         loop to 256 bytes instead of 64 bytes and fix test signedness.
72291
72292         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
72293         * sysdeps/sparc/sparc32/Makefile: rather than here...
72294         * sysdeps/sparc/sparc64/Makefile: and here.
72295
72296 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
72297
72298         * malloc/mallocbug.c: Avoid warnings about unused variables.
72299
72300 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
72301
72302         [BZ #13760]
72303         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
72304         in the right place. Discard and retry query if response is
72305         larger than input buffer size.
72306
72307 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
72308
72309         [BZ #369]
72310         [BZ #2678]
72311         [BZ #3866]
72312         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72313         x for large integer exponent.
72314         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
72315         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
72316         sign of result as needed afterwards.
72317         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
72318         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
72319         result for underflowing pow the same as for overflow.
72320         (__kernel_standard_l): Handle powl overflow and underflow here
72321         rather than calling __kernel_standard.
72322         * math/libm-test.inc (pow_test): Add more tests.
72323
72324         [BZ #3868]
72325         [BZ #13879]
72326         [BZ #13910]
72327         [BZ #13911]
72328         [BZ #13912]
72329         [BZ #13913]
72330         [BZ #13915]
72331         [BZ #13916]
72332         [BZ #13917]
72333         [BZ #13918]
72334         [BZ #13919]
72335         [BZ #13920]
72336         [BZ #13921]
72337         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
72338         * sysdeps/ieee754/k_standard.c: Include <float.h>.
72339         (__kernel_standard_l): New function.
72340         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
72341         __kernel_standard.
72342         * math/w_acosl.c (__acosl): Likewise.
72343         * math/w_asinl.c (__asinl): Likewise.
72344         * math/w_atan2l.c (__atan2l): Likewise.
72345         * math/w_atanhl.c (__atanhl): Likewise.
72346         * math/w_coshl.c (__coshl): Likewise.
72347         * math/w_exp10l.c (__exp10l): Likewise.
72348         * math/w_exp2l.c (__exp2l): Likewise.
72349         * math/w_fmodl.c (__fmodl): Likewise.
72350         * math/w_hypotl.c (__hypotl): Likewise.
72351         * math/w_j0l.c (__j0l, __y0l): Likewise.
72352         * math/w_j1l.c (__j1l, __y1l): Likewise.
72353         * math/w_jnl.c (__jnl, __ynl): Likewise.
72354         * math/w_lgammal.c (__lgammal): Likewise.
72355         * math/w_log10l.c (__log10l): Likewise.
72356         * math/w_log2l.c (__log2l): Likewise.
72357         * math/w_logl.c (__logl): Likewise.
72358         * math/w_powl.c (__powl): Likewise.
72359         * math/w_remainderl.c (__remainderl): Likewise.
72360         * math/w_scalbl.c (sysv_scalbl): Likewise.
72361         * math/w_sinhl.c (__sinhl): Likewise.
72362         * math/w_sqrtl.c (__sqrtl): Likewise.
72363         * math/w_tgammal.c (__tgammal): Likewise.
72364         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
72365         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
72366         * math/libm-test.inc (acos_test): Add more tests.
72367         (acosh_test): Likewise.
72368         (asin_test): Likewise.
72369         (atanh_test): Likewise.
72370         (exp_test): Likewise.
72371         (exp10_test): Likewise.
72372         (exp2_test): Likewise.
72373         (expm1_test): Likewise.
72374         (lgamma_test): Likewise.
72375         (log_test): Likewise.
72376         (log10_test): Likewise.
72377         (log1p_test): Likewise.
72378         (log2_test): Likewise.
72379         (pow_test): Do not allow some spurious overflow exceptions.
72380         (sqrt_test): Add more tests.
72381         (tgamma_test): Likewise.
72382         (y0_test): Likewise.
72383         (y1_test): Likewise.
72384         (yn_test): Likewise.
72385
72386 2012-03-27  Anton Blanchard  <anton@samba.org>
72387
72388         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
72389         MAP_HUGETLB.
72390         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
72391         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
72392         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
72393
72394 2012-03-27  David S. Miller  <davem@davemloft.net>
72395
72396         * conform/Makefile: Run run-conformtest.sh using $(BASH).
72397
72398         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
72399         have-as-vis3 check.
72400
72401 2012-03-27  Andreas Jaeger  <aj@suse.de>
72402
72403         * sysdeps/x86_64/elf/configure.in: Moved to ...
72404         * sysdeps/x86_64/configure.in: ... here.
72405         * sysdeps/x86_64/elf/start.S: Moved to ...
72406         * sysdeps/x86_64/start.S: ... here.
72407         * sysdeps/x86_64/elf/configure: Delete.
72408
72409         * sysdeps/x86_64/configure.in: Merge contents from
72410         sysdeps/i386/configure.in (without i686 check).
72411
72412         * sysdeps/i386/elf/Versions: Merge into ...
72413         * sysdeps/i386/Versions: ... this.
72414         * sysdeps/i386/elf/Versions: Delete file.
72415         * sysdeps/i386/elf/start.S: Moved to ...
72416         * sysdeps/i386/start.S: ...here.
72417         * sysdeps/i386/elf/configure.in: Merge into...
72418         * sysdeps/i386/configure.in: ...here.
72419         * sysdeps/i386/elf/configure.in: Delete file.
72420         * sysdeps/i386/elf/configure: Delete file.
72421
72422         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
72423         * debug/backtracesyms.c: ... here.
72424         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
72425         * debug/backtracesymsfd.c: ... here.
72426         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
72427         * sysdeps/generic/ifunc-sel.h: ... here.
72428
72429         * sysdeps/unix/i386/start.c: Delete file.
72430         * sysdeps/unix/sparc/start.c: Delete file.
72431         * sysdeps/unix/start.c: Delete file.
72432
72433         * sysdeps/sh/elf/configure.in: Moved to ...
72434         * sysdeps/sh/configure.in: ... here.
72435         * sysdeps/sh/elf/start.S: Moved to ...
72436         * sysdeps/sh/start.S: ... here.
72437         * sysdeps/sh/elf/configure: Delete file.
72438
72439         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
72440         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
72441         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
72442         * sysdeps/powerpc/powerpc64/entry.h: ... here.
72443         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
72444         * sysdeps/powerpc/powerpc64/start.S: here.
72445         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
72446         * sysdeps/powerpc/powerpc64/Makefile: ... this.
72447         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
72448         * sysdeps/powerpc/powerpc64/configure.in: ... this.
72449         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
72450
72451         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
72452         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
72453         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
72454         * sysdeps/powerpc/powerpc32/start.S: ... here.
72455         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
72456         * sysdeps/powerpc/powerpc32/configure.in: ... this.
72457         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
72458
72459         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
72460         * sysdeps/powerpc/ifunc-sel.h: ... here.
72461         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
72462         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
72463
72464         * sysdeps/sparc/elf/configure.in: Moved to ...
72465         * sysdeps/sparc/configure.in: ... here.
72466         * sysdeps/sparc/elf/configure: Delete file.
72467         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
72468         * sysdeps/sparc/sparc32/start.S: ... here.
72469         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
72470         * sysdeps/sparc/sparc64/start.S: ... here.
72471         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
72472         * sysdeps/sparc/sparc32/Makefile: ... this.
72473         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
72474         * sysdeps/sparc/sparc64/Makefile: ... this.
72475
72476         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
72477         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
72478         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
72479         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
72480         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
72481         * sysdeps/s390/s390-32/setjmp.S: ... here.
72482         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
72483         * sysdeps/s390/s390-32/configure.in: ... here.
72484         * sysdeps/s390/s390-32/elf/configure: Delete file.
72485         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
72486         * sysdeps/s390/s390-32/start.S: ... here.
72487
72488         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
72489         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
72490         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
72491         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
72492         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
72493         * sysdeps/s390/s390-64/setjmp.S: ... here.
72494         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
72495         * sysdeps/s390/s390-64/configure.in: ... here
72496         * sysdeps/s390/s390-64/elf/configure: Delete file.
72497         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
72498         * sysdeps/s390/s390-64/start.S: ... here.
72499         * sysdeps/s390/s390-64/elf/configure: Delete.
72500
72501         * configure.in: Remove support for elf directories in sysdeps.
72502
72503         * configure: Regenerated.
72504         * sysdeps/i386/configure: Regenerated.
72505         * sysdeps/powerpc/powerpc32/configure: Regenerated.
72506         * sysdeps/powerpc/powerpc64/configure: Regenerated.
72507         * sysdeps/s390/s390-32/configure: Regenerated.
72508         * sysdeps/s390/s390-64/configure: Regenerated.
72509         * sysdeps/sh/configure: Regenerated.
72510         * sysdeps/sparc/configure: Regenerated.
72511         * sysdeps/x86_64/configure: Regenerated.
72512
72513 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
72514
72515         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72516
72517         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
72518         denormal result into account.
72519
72520 2012-03-25  Roland McGrath  <roland@hack.frob.com>
72521
72522         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
72523         Reported by Allan McRae <allan@archlinux.org>.
72524
72525 2012-03-23  Jeff Law  <law@redhat.com>
72526
72527         * nss/getnssent.c (__nss_getent): Fix typo.
72528
72529 2012-03-23  David S. Miller  <davem@davemloft.net>
72530
72531         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72532
72533 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
72534
72535         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
72536         to pad to uint64_t for each field.
72537         (dl_tls_index): Replace unsigned long with uint64_t.
72538
72539 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
72540         Paul Pluzhnikov  <ppluzhnikov@google.com>
72541
72542         [BZ #6528]
72543         * grp/Makefile (otherlibs): Don't set it.
72544         * inet/Makefile (otherlibs): Likewise.
72545         * login/Makefile (otherlibs): Likewise.
72546         * nscd/Makefile (otherlibs): Likewise.
72547         * posix/Makefile (otherlibs): Likewise.
72548         * pwd/Makefile (otherlibs): Likewise.
72549         * rt/Makefile (otherlibs): Likewise.
72550         * sunrpc/Makefile (otherlibs): Likewise.
72551         * nss/Makefile (otherlibs): Likewise.
72552         Add libnss_files to routines and static-only-routines.
72553         ($(objpfx)getent): Remove rule.
72554         * resolv/Makefile: Add libnss_dns and libresolv to routines and
72555         static-only-routines.
72556
72557 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72558
72559         [BZ #13892]
72560         * math/s_cexp.c: Include <float.h>.
72561         (__cexp): Handle exp result overflowing not necessarily
72562         overflowing both real and imaginary parts of result.
72563         * math/s_cexpf.c: Likewise.
72564         * math/s_cexpl.c: Likewise.
72565         * math/libm-test.inc (cexp_test): Add more tests.
72566         * sysdeps/i386/fpu/libm-test-ulps: Update.
72567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72568
72569 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72570
72571         * include/link.h (ELFW): New macro.
72572         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
72573         Replace ELF64_R_TYPE with ELFW(R_TYPE).
72574
72575 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72576
72577         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
72578         with uint64_t.
72579
72580 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72581
72582         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
72583         declaration.
72584         (struct La_x32_retval): Likewise.
72585
72586 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72587
72588         * sysdeps/x86_64/preconfigure.in: New file.
72589         * sysdeps/x86_64/preconfigure: New generated file.
72590
72591 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72592
72593         [BZ #13824]
72594         * math/e_exp2l.c: Include <float.h>.
72595         (__ieee754_exp2l): Handle overflow and underflow cases
72596         separately.  Only pass fractional part of argument to
72597         __ieee754_expl.
72598         * math/libm-test.inc (exp2_test): Add more tests.
72599
72600         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
72601         negating x to take absolute value.
72602         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
72603         Likewise.
72604         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
72605         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
72606         Likewise.
72607         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
72608         computing low part if x was negated.
72609         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
72610
72611 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72612
72613         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
72614         la_x32_gnu_pltexit.
72615         (pltexit): Cast int_retval to ptrdiff_t.
72616         * elf/tst-auditmod3b.c: Likewise.
72617         * elf/tst-auditmod4b.c: Likewise.
72618         * elf/tst-auditmod5b.c: Likewise.
72619         * elf/tst-auditmod6b.c: Likewise.
72620         * elf/tst-auditmod6c.c: Likewise.
72621         * elf/tst-auditmod7b.c: Likewise.
72622
72623         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
72624         and x32_gnu_pltexit.
72625
72626         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
72627         __ELF_NATIVE_CLASS.
72628         (La_x32_regs): New macro.
72629         (La_x32_retval): Likewise.
72630         (la_x32_gnu_pltenter): New function prototype.
72631         (la_x32_gnu_pltexit): Likewise.
72632
72633 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
72634
72635         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
72636         exponent.
72637
72638         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72639
72640         * configure.in (libc_cv_cc_nofma): Check for option to disable
72641         generation of FMA instructions.
72642         * configure: Regenerate.
72643         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
72644         * sysdeps/ieee754/dbl-64/Makefile: New file.
72645         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
72646         Remove brandred-fma4.
72647         (CFLAGS-brandred-fma4.c): Remove.
72648         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
72649         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
72650         define.
72651         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
72652         define.
72653
72654 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72655
72656         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
72657         LLONG_MAX != LONG_MAX.
72658         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72659         (_fitoa_word): Likewise.
72660         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
72661         LLONG_MAX != LONG_MAX.
72662         * stdio-common/_itowa.h: Include <_itoa.h>.
72663         (_itowa_word): Use _ITOA_WORD_TYPE on value.
72664         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
72665         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
72666         only if not defined.
72667         (_ITOA_WORD_TYPE): Likewise.
72668         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72669         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
72670
72671 2012-03-21  David S. Miller  <davem@davemloft.net>
72672
72673         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72674
72675 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72676
72677         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
72678         of x86_64 when setting libc_cv_slibdir, libdir and
72679         libc_cv_localedir.
72680         * sysdeps/unix/sysv/linux/configure: Regenerated.
72681
72682 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72683
72684         * manual/lang.texi (Old Varargs): Remove section.
72685         (How Variadic): Update menu.
72686         (va_start): Do not mention varargs.h.
72687
72688 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72689             Joseph Myers  <joseph@codesourcery.com>
72690
72691         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
72692         link test.
72693         * configure: Regenerated.
72694
72695 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72696
72697         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
72698         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
72699         conformtest.pl
72700
72701 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72702
72703         * NOTES: Remove.
72704         * Makefile (files-for-dist): Remove NOTES.
72705         (NOTES): Remove rule.
72706         * README: Don't refer to NOTES.
72707         * manual/creature.texi: Don't include macros.texi.
72708         * manual/intro.texi (creature.texi): Remove comment referring to
72709         NOTES.
72710
72711         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
72712         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
72713         * configure: Regenerated.
72714         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
72715         LIBC_TRY_CC_OPTION.
72716         (libc_cv_as_i686): Likewise.
72717         (libc_cv_cc_avx): Likewise.
72718         (libc_cv_cc_sse2avx): Likewise.
72719         (libc_cv_cc_fma4): Likewise.
72720         (libc_cv_cc_novzeroupper): Likewise.
72721         * sysdeps/i386/configure: Regenerated.
72722
72723         [BZ #13883]
72724         * sysdeps/i386/fpu/s_cexp.S: Remove.
72725         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72726         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72727         * math/libm-test.inc (cexp_test): Add more tests.
72728         * sysdeps/i386/fpu/libm-test-ulps: Update.
72729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72730
72731 2012-03-21  Allan McRae  <allan@archlinux.org>
72732
72733         * timezone/Makefile: Do not install iso3166.tab and zone.tab
72734
72735 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72736
72737         [BZ #13871]
72738         * math/w_exp2.c: Do not include <float.h>.
72739         (o_threshold, u_threshold): Remove.
72740         (__exp2): Calculate result before checking finiteness and calling
72741         __kernel_standard.
72742         * math/w_exp2f.c: Likewise.
72743         * math/w_exp2l.c: Likewise.
72744         * math/libm-test.inc (exp2_test): Require overflow exception for
72745         1e6 input.
72746
72747         [BZ #3866]
72748         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
72749         range of signed 64-bit integers before using fistpll.  Remove
72750         checks for whether integers fit in mantissa bits.
72751         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
72752         the range of signed 32-bit integers before using fistpl.  Remove
72753         checks for whether integers fit in mantissa bits.
72754         * sysdeps/i386/fpu/e_powl.S (p64): New object.
72755         (__ieee754_powl): Test for y outside the range of signed 64-bit
72756         integers before using fistpll.  Reduce 64-bit values to 63-bit
72757         ones as needed.
72758         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
72759         divide-by-zero is raised for zero to large negative powers.
72760         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
72761         (__ieee754_powl): Test for y outside the range of signed 64-bit
72762         integers before using fistpll.  Reduce 64-bit values to 63-bit
72763         ones as needed.
72764         * math/libm-test.inc (pow_test): Add more tests.
72765
72766 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72767
72768         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
72769         <stdio-common/_itoa.h>.
72770         * debug/segfault.c: Likewise.
72771         * elf/dl-cache.c: Likewise.
72772         * elf/dl-minimal.c: Likewise.
72773         * elf/dl-misc.c: Likewise.
72774         * elf/dl-sysdep.c: Likewise.
72775         * elf/dl-version.c: Likewise.
72776         * elf/rtld.c: Likewise.
72777         * hurd/hurdsock.c: Likewise.
72778         * hurd/lookup-retry.c: Likewise.
72779         * malloc/malloc.c: Likewise.
72780         * malloc/mtrace.c: Likewise.
72781         * nscd/nscd_getgr_r.c: Likewise.
72782         * nscd/nscd_getpw_r.c: Likewise.
72783         * nscd/nscd_getserv_r.c: Likewise.
72784         * posix/getopt_init.c: Likewise.
72785         * posix/wordexp.c: Likewise.
72786         * stdio-common/_itoa.c: Likewise.
72787         * stdio-common/printf_fphex.c: Likewise.
72788         * stdio-common/vfprintf.c: Likewise.
72789         * string/_strerror.c: Likewise.
72790         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
72791         * sysdeps/i386/i686/hp-timing.h: Likewise.
72792         * sysdeps/mach/_strerror.c: Likewise.
72793         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
72794         * sysdeps/mach/hurd/sethostid.c: Likewise.
72795         * sysdeps/mach/hurd/xmknodat.c: Likewise.
72796         * sysdeps/mach/xpg-strerror.c: Likewise.
72797         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
72798         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
72799         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
72800         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
72801         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
72802         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
72803         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
72804         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
72805         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
72806         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
72807         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
72808         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
72809         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
72810         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
72811         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
72812         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
72813         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
72814         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
72815         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
72816         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
72817         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
72818
72819         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
72820
72821         * stdio-common/_itoa.h: Moved to ...
72822         * sysdeps/generic/_itoa.h: Here.
72823
72824         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
72825
72826         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
72827         instead of "_itoa.h" and "_itowa.h".
72828         * stdio-common/vfprintf.: Likewise.
72829
72830 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72831
72832         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
72833         <bits/wordsize.h>.
72834         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
72835         (__signbit): Likwise.
72836         (llrintf): Likwise.
72837         (llrint): Likwise.
72838
72839 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72840
72841         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
72842         __WORDSIZE != 64.
72843
72844 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
72845
72846         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
72847         OVERFLOW_EXCEPTION_OK.
72848         * math/libm-test.inc ("Philosophy"): Update comment about
72849         exception testing.
72850         (OVERFLOW_EXCEPTION): Define.
72851         (OVERFLOW_EXCEPTION_OK): Likewise.
72852         (INVALID_EXCEPTION_OK): Renumber.
72853         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
72854         (IGNORE_ZERO_INF_SIGN): Likewise.
72855         (test_exceptions): Handle FE_OVERFLOW.
72856         (exp10_test): Expect overflow exceptions.
72857         (exp2_test): Likewise.
72858         (expm1_test): Likewise.
72859         (nextafter_test): Likewise.
72860         (pow_test): Likewise.
72861         (scalbn_test): Likewise.
72862         (scalbln_test): Likewise.
72863
72864 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72865
72866         * sysdeps/x86_64/bits/atomic.h
72867         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
72868         64bit integer.
72869         (atomic_exchange_acq): Likewise.
72870         (__arch_exchange_and_add_body): Likewise.
72871         (__arch_add_body): Likewise.
72872         (atomic_add_negative): Likewise.
72873         (atomic_add_zero): Likewise.
72874
72875 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72876
72877         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
72878         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
72879
72880 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72881
72882         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
72883         Check __x86_64__ instead of __WORDSIZE.
72884
72885 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72886
72887         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
72888
72889 2012-03-19  David S. Miller  <davem@davemloft.net>
72890
72891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72892
72893         * sysdeps/sparc/fpu/fenv_private.h: New file.
72894         * sysdeps/sparc/fpu/math_private.h: Use it.
72895         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
72896         Remove.
72897         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
72898         (libc_feholdexcept_setroundl): Remove.
72899         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
72900         Remove.
72901         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
72902         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
72903
72904 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72905
72906         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
72907         int64_t instead of long int.
72908         (INSERT_WORDS64): Likwise.
72909
72910 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72911
72912         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
72913         _Unwind_GetCFA return to _Unwind_Ptr first.
72914
72915 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
72916
72917         [BZ #13629]
72918         * math/s_clog.c: Include <float.h>.
72919         (__clog): Scale large or subnormal inputs.
72920         * math/s_clogf.c: Likewise.
72921         * math/s_clogl.c: Likewise.
72922         * math/s_clog10.c: Include <float.h>.
72923         (M_LOG10_2): Define.
72924         (__clog10): Scale large or subnormal inputs.
72925         * math/s_clog10f.c: Likewise.
72926         * math/s_clog10l.c: Likewise.
72927         * math/libm-test.inc (clog_test): Add more tests.
72928         (clog10_test): Likewise.
72929         * sysdeps/i386/fpu/libm-test-ulps: Update.
72930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72931
72932         [BZ #11451]
72933         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
72934         x and y.
72935         * math/libm-test.inc (atan2_test): Add another test.
72936
72937         * Makerules (common-objdir-compile): Remove.
72938         * sysdeps/unix/Makefile (config-generated): Do not add
72939         $(unix-generated) to variable.
72940         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
72941         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
72942         Remove rule.
72943         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
72944         Likewise.
72945         [generic bits/local_lim.h] (before-compile): Do not append to
72946         variable.
72947         [generic bits/local_lim.h] (common-generated): Likewise.
72948         [generic sys/param.h] (before-compile): Do not append to variable.
72949         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
72950         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
72951         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
72952         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
72953         include.
72954         [generic sys/param.h] (sys/param.h-includes): Remove variable.
72955         [generic sys/param.h] (sys/param.h-includes): Remove rule.
72956         [generic sys/param.h] ($(addprefix
72957         $(common-objpfx),$(sys/param.h-includes))): Likewise.
72958         [generic sys/param.h] (common-generated): Do not append to
72959         variable.
72960         [generic sys/param.h] (sysdep_headers): Likewise.
72961         [generic bits/errno.h] (before-compile): Do not append to
72962         variable.
72963         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
72964         rule.
72965         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
72966         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
72967         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
72968         [generic bits/errno.h] (common-generated): Do not append to
72969         variable.
72970         [generic bits/ioctls.h] (before-compile): Do not append to
72971         variable.
72972         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
72973         rule.
72974         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
72975         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
72976         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
72977         rule.
72978         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
72979         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
72980         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
72981         [generic bits/ioctls.h] (common-generated): Do not append to
72982         variable.
72983         [generic sys/syscall.h] (syscall.h): Remove variable.
72984         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
72985         rule.
72986         [generic sys/syscall.h] (before-compile): Do not append to
72987         variable.
72988         [generic sys/syscall.h] (common-generated): Likewise.
72989         * sysdeps/unix/errnos-tmpl.c: Remove file.
72990         * sysdeps/unix/errnos.awk: Likewise.
72991         * sysdeps/unix/ioctls-tmpl.c: Likewise.
72992         * sysdeps/unix/ioctls.awk: Likewise.
72993         * sysdeps/unix/mk-local_lim.c: Likewise.
72994         * sysdeps/unix/snarf-ioctls: Likewise.
72995
72996 2012-03-19  Richard Henderson  <rth@twiddle.net>
72997
72998         * sysdeps/i386/fpu/fenv_private.h: New file.
72999         * sysdeps/i386/fpu/math_private.h: Use it.
73000         (math_opt_barrier, math_force_eval): Remove.
73001         (libc_feholdexcept_setround_53bit): Remove.
73002         (libc_feupdateenv_53bit): Remove.
73003         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73004         (math_opt_barrier, math_force_eval): Remove.
73005         (libc_feholdexcept): Remove.
73006         (libc_feholdexcept_setround): Remove.
73007         (libc_fetestexcept, libc_fesetenv): Remove.
73008         (libc_feupdateenv_test): Remove.
73009         (libc_feupdateenv, libc_feholdsetround): Remove.
73010         (libc_feresetround): Remove.
73011
73012         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
73013         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
73014
73015         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
73016         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
73017         (libc_feupdateenv_testl): New.
73018         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
73019         (libc_feupdateenv_testf): New.
73020         (libc_feupdateenv): Use libc_feupdateenv_test.
73021         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
73022         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
73023
73024         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
73025         (libc_feholdsetroundf, libc_feholdsetroundl): New.
73026         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
73027         (libc_feresetround_noex): New.
73028         (libc_feresetround_noexf): New.
73029         (libc_feresetround_noexl): New.
73030         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
73031         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
73032         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
73033         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
73034         SET_RESTORE_ROUND.
73035         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
73036         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
73037         (__cos): Likewise.
73038         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
73039         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
73040         SET_RESTORE_ROUND_NOEX.
73041         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
73042         SET_RESTORE_ROUND_NOEXF.
73043         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
73044         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
73045         (libc_feholdsetroundf): New.
73046         (libc_feresetround, libc_feresetroundf): New.
73047
73048         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
73049         (libc_feholdexcept_setround_53bit): Convert from macro to function.
73050         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
73051
73052         * sysdeps/generic/math_private.h: Include <fenv.h>.
73053         (default_libc_feholdexcept): New.
73054         (default_libc_feholdexcept_setround): New.
73055         (default_libc_fesetenv, default_libc_feupdateenv): New.
73056         (libc_feholdexcept): Only define if undefined.
73057         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
73058         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
73059         (libc_feholdexcept_setroundl): Likewise.
73060         (libc_feholdexcept_setround_53bit): Likewise.
73061         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
73062         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
73063         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
73064         (libc_feupdateenv_53bit): Likewise.
73065         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
73066         (libc_feholdexcept): Convert from macro to inline function.
73067         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
73068         (libc_fesetenv, libc_feupdateenv): Likewise.
73069
73070         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
73071         not previously defined.
73072         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
73073         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
73074         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
73075         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
73076         * sysdeps/ieee754/flt-32/math_private.h: New file.
73077         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
73078         math_private.h below SET_FLOAT_WORD.
73079         (__isnan, __isinf_ns, __finite): Remove.
73080         (__isnanf, __isinf_nsf, __finitef): Remove.
73081
73082 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
73083
73084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73085
73086 2012-03-17  David S. Miller  <davem@davemloft.net>
73087
73088         [BZ #6471]
73089         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
73090         for 2.16.
73091
73092 2012-03-16  David S. Miller  <davem@davemloft.net>
73093
73094         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
73095         warnings.
73096
73097         [BZ #6471]
73098         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
73099         properly.
73100         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
73101         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
73102         sysdep_routines when subdir is sysvipc.
73103         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
73104         __getshmlba helper.
73105
73106         * sysdeps/sparc/fpu/libm-test/ulps: Update.
73107
73108 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73109
73110         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
73111         [__LP64__].
73112
73113 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73114
73115         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
73116         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
73117         (__lround): Renamed to ...
73118         (__llround): This.  Replace long int with long long int.
73119         Define lround functions as aliases of llround functions.
73120         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
73121
73122 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73123
73124         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
73125         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
73126         adresses to uintptr_t.  Replace "long int" and "unsigned long
73127         int" with "greg_t" on va_arg.
73128
73129 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73130
73131         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
73132         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
73133
73134         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
73135         Move e_machine check before EI_CLASS check.  Handle x32
73136         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
73137         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
73138         SKIP_EM_IA_64 and include
73139         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
73140
73141         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
73142         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
73143         (add_system_dir): New macro.
73144
73145         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
73146         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
73147
73148 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73149
73150         [BZ #2551]
73151         [BZ #2552]
73152         [BZ #2553]
73153         [BZ #2554]
73154         [BZ #2562]
73155         [BZ #2563]
73156         [BZ #2565]
73157         [BZ #2566]
73158         [BZ #2576]
73159         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
73160         (y0): Likewise.
73161         * math/w_j0f.c (j0f): Likewise.
73162         (y0f): Likewise.
73163         * math/w_j0l.c (__j0l): Likewise.
73164         (__y0l): Likewise.
73165         * math/w_j1.c (j1): Likewise.
73166         (y1): Likewise.
73167         * math/w_j1f.c (j1f): Likewise.
73168         (y1f): Likewise.
73169         * math/w_j1l.c (__j1l): Likewise.
73170         (__y1l): Likewise.
73171         * math/w_jn.c (jn): Likewise.
73172         (yn): Likewise.
73173         * math/w_jnf.c (jnf): Likewise.
73174         (ynf): Likewise.
73175         * math/w_jnl.c (__jnl): Likewise.
73176         (__ynl): Likewise.
73177         * math/libm-test.inc (j0_test): Add more tests.
73178         (j1_test): Likewise.
73179         (jn_test): Likewise.  Add trailing semicolon to existing test.
73180         (y0_test): Likewise.
73181         (y1_test): Likewise.
73182         * sysdeps/i386/fpu/libm-test-ulps: Update.
73183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73184
73185         [BZ #13851]
73186         [BZ #13854]
73187         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
73188         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
73189         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
73190         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
73191         (__tanl): Set errno for infinite argument.
73192         * sysdeps/i386/fpu/mptan.c: Remove.
73193         * sysdeps/i386/fpu/s_tan.S: Likewise.
73194         * sysdeps/i386/fpu/s_tanl.S: Likewise.
73195         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
73196         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
73197         * math/libm-test.inc (tan_test): Add more tests and enable more
73198         tests for double and long double.
73199         * sysdeps/i386/fpu/libm-test-ulps: Update.
73200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73201
73202 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
73203
73204         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
73205         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
73206
73207 2012-03-16  Roland McGrath  <roland@hack.frob.com>
73208
73209         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
73210         * configure.in: Use it for both main tree and add-ons.
73211         * configure: Regenerated.
73212
73213 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73214
73215         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
73216
73217 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73218
73219         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
73220         in comment.
73221
73222         [BZ #13851]
73223         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
73224         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
73225         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
73226         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
73227         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
73228         infinite argument.
73229         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
73230         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
73231         != 0 for prec == 2.
73232         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
73233         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
73234         * sysdeps/i386/fpu/s_cosl.S: Likewise.
73235         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
73236         * sysdeps/i386/fpu/s_sinl.S: Likewise.
73237         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
73238         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
73239         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
73240         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
73241         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
73242         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
73243         * math/libm-test.inc (cos_test): Add more tests and enable more
73244         tests for long double.
73245         (sin_test): Likewise.
73246         (sincos_test): Likewise.
73247         * sysdeps/i386/fpu/libm-test-ulps: Update.
73248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73249
73250 2012-03-16  David S. Miller  <davem@davemloft.net>
73251
73252         * sysdeps/sparc/fpu/math_private.h: New file.
73253
73254 2012-03-15  David S. Miller  <davem@davemloft.net>
73255
73256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
73257         file.
73258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
73259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
73260         file.
73261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
73262         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
73263         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
73264         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
73265         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
73266         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
73267         sysdep routines.
73268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73269
73270         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
73271         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
73272
73273         * sysdeps/sparc/sparc-ifunc.h: New file.
73274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
73275         sparc-ifunc.h
73276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
73277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
73278         Likewise.
73279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
73280         Likewise.
73281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
73282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
73283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
73284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
73285         Likewise.
73286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
73287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
73288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
73289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
73290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
73291         Likewise.
73292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
73293         Likewise.
73294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
73295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
73296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
73297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
73298         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
73299         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
73300         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
73301         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
73302         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
73303         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
73304         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
73305         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
73306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
73307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
73308         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
73309         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
73310         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
73311         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
73312         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
73313         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
73314         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
73315         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
73316         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
73317         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
73318
73319 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73320
73321         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
73322         scaling.
73323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73324
73325 2012-03-15  Andreas Jaeger  <aj@suse.de>
73326
73327         [BZ #13852]
73328         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
73329         ieee754/flt-32 implementation for sin, cos and sincos.
73330         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
73331         * sysdeps/i386/fpu/s_cosf.S: Likewise.
73332         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
73333         * sysdeps/i386/fpu/s_sinf.S: Likewise.
73334         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
73335         ieee754/flt-32 implementation for tan.
73336
73337         * math/libm-test.inc (cos_test): Enable some large input tests for
73338         float as well
73339         (sin_test): Likewise.
73340         (sincos_test): Likewise.
73341         (tan_test): Add tests for large input.
73342
73343         * sysdeps/i386/fpu/libm-test-ulps: Update.
73344
73345 2012-03-15  Andreas Jaeger  <aj@suse.de>
73346
73347         [BZ #13658]
73348         * math/libm-test.inc (cos_test): Add more test cases.
73349         (sin_test): Likewise.
73350         (sincos_test): Likewise.
73351
73352 2012-03-15  Andreas Jaeger  <aj@suse.de>
73353
73354         [BZ #13837]
73355         * math/libm-test.inc (cos_test): Add a test case for large input
73356         value.
73357         (sin_test): Likewise.
73358         (sincos_test): Likewise.
73359
73360 2012-03-15  Andreas Jaeger  <aj@suse.de>
73361             Joseph Myers  <joseph@codesourcery.com>
73362
73363         [BZ #13658]
73364         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
73365         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
73366         * sysdeps/i386/fpu/branred.c: Likewise.
73367         * sysdeps/i386/fpu/dosincos.c: Likewise.
73368         * sysdeps/i386/fpu/mpa.c: Likewise.
73369         * sysdeps/i386/fpu/s_cos.S: Likewise.
73370         * sysdeps/i386/fpu/s_sin.S: Likewise.
73371         * sysdeps/i386/fpu/s_sincos.S: Likewise.
73372         * sysdeps/i386/fpu/sincos32.c: Likewise.
73373
73374         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
73375         Define.
73376         (libc_feupdateenv_53bit): Define.
73377         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
73378         Define.
73379         (libc_feupdateenv_53bit): Define.
73380
73381         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
73382         53 bit (without extend i386 double precision).
73383
73384         * math/libm-test.inc (sincos_test): Add tests for large input.
73385         (sin): Likewise.
73386         (cos): Likewise.
73387
73388         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
73389
73390 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73391
73392         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73393
73394 2012-03-15  David S. Miller  <davem@davemloft.net>
73395
73396         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
73397         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
73398         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
73399         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
73400         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
73401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
73402         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
73403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
73404         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
73405         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
73406         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
73407         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
73408         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
73409         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
73410         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
73411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
73412         file.
73413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
73414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
73415         file.
73416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
73417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
73418         file.
73419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
73420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
73421         file.
73422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
73423         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
73424         fmin/fmax sysdep routines.
73425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73426
73427 2012-03-14  David S. Miller  <davem@davemloft.net>
73428
73429         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
73430         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
73431         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
73432         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
73433         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
73434         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
73435         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
73436         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
73437         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
73438         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
73439         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
73440         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
73441         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
73442         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
73443         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
73444         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
73445         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
73446         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
73447         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
73448         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
73449         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
73450         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
73451         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
73452         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
73453         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
73454         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
73455         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
73456         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
73457         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
73458         routines.
73459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
73460         file.
73461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
73462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
73463         file.
73464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
73465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
73466         file.
73467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
73468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
73469         file.
73470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
73471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
73472         file.
73473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
73474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
73475         file.
73476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
73477         file.
73478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
73479         file.
73480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
73481         file.
73482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
73483         New file.
73484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
73485         file.
73486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
73487         file.
73488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
73489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
73490         file.
73491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
73492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
73493         file.
73494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
73495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
73496         file.
73497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
73498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
73499         VIS3 routines.
73500
73501         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
73502         New file.
73503
73504         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73505
73506         * sysdeps/sparc/configure.in: New file.
73507         * sysdeps/sparc/configure: Generate.
73508         * configure.in (libc_cv_sparc_as_vis3): Substitute.
73509         * configure: Regenerate.
73510         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
73511         * config.make.in (have-as-vis3): New.
73512         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
73513         available use -Av9d instead of -Av9a.
73514         * sysdeps/sparc/sparc64/Makefile: Likewise.
73515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
73516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
73517         New file.
73518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
73519         file.
73520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
73521         New file.
73522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
73523         file.
73524         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
73525         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
73526         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
73527         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
73528         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
73529
73530         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
73531         fzeros/fnegs to load 0x80000000 into a float register instead of
73532         using the stack.
73533         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
73534
73535 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73536
73537         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73538         bits/syscall.h.
73539         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
73540         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
73541         ($(inst_includedir)/bits/syscall.h): Remove rule.
73542         ($(objpfx)bits/syscall.d): Include instead of
73543         $(objpfx)syscall-list.d.
73544         (generated): Change syscall-list.h and syscall-list.d to
73545         bits/syscall.h and bits/syscall.d.
73546
73547 2012-03-14  Roland McGrath  <roland@hack.frob.com>
73548
73549         [BZ #13846]
73550         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
73551
73552 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73553
73554         [BZ #13841]
73555         * math/s_csqrt.c: Include <float.h>.
73556         (__csqrt): Scale large or subnormal inputs.
73557         * math/s_csqrtf.c: Likewise.
73558         * math/s_csqrtl.c: Likewise.
73559         * math/libm-test.inc (csqrt_test): Add more tests.
73560         * sysdeps/i386/fpu/libm-test-ulps: Update.
73561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73562
73563         [BZ #13840]
73564         * math/libm-test.inc (hypot_test): Add more tests.
73565
73566 2012-03-13  David S. Miller  <davem@davemloft.net>
73567
73568         [BZ #13840]
73569         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
73570         double-precision for the calculation instead of scaling.
73571
73572 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
73573
73574         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
73575         manipulate bits before adding and subtracting TWO52[sx].
73576         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
73577         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
73578         Likewise.
73579         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
73580
73581 2012-03-13  David S. Miller  <davem@davemloft.net>
73582
73583         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
73584         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
73585         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
73586         rtld-global-offsets.h
73587         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73588
73589         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
73590         large parameters.
73591
73592         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
73593
73594         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
73595         'err' in the ifdef scope in which it is actually used.
73596
73597         * nss/nss_db/db-init.c: Include string.h
73598
73599 2012-03-12  David S. Miller  <davem@davemloft.net>
73600
73601         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73602         masking out of the most significant byte of random value used.
73603         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73604         Fix coding style in previous change.
73605
73606         * sysdeps/unix/sysv/linux/kernel-features.h
73607         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
73608         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
73609         expression.
73610         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
73611         later.
73612
73613 2012-03-11  David S. Miller  <davem@davemloft.net>
73614
73615         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
73616         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
73617         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
73618         for 'resultvar' otherwise things get truncated on 64-bit.
73619
73620         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73621         Fix masking out of the most significant byte of random value used.
73622
73623         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73624
73625 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
73626
73627         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73628
73629 2012-03-09  David S. Miller  <davem@davemloft.net>
73630
73631         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
73632         variables with appropriate CPP guards.
73633         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
73634         from the frame pointer, not the stack pointer.  Correct layout
73635         comments.  Fix test on resulting framesize and the management of
73636         the outregs buffer for pltexit.  Preserve floating point return
73637         values across _dl_call_pltexit call.
73638         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
73639         framesize and the management of the outregs buffer for pltexit.
73640         Preserve floating point return values across _dl_call_pltexit
73641         call.
73642         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
73643         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
73644         (la_sparc64_gnu_pltexit): New functions.
73645         (print_exit): Fix format string for return register value.
73646
73647 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
73648
73649         * sunrpc/Makefile (others): Add rpcgen.
73650         ($(objpfx)rpcgen): Remove special build rule and dependency on
73651         libc.
73652         * sunrpc/rpcgen.c: New file.
73653
73654 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         [BZ #13673]
73657         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
73658         * stdio-common/bug-vfprintf-nargs.c: Likewise.
73659         * sysdeps/i386/crti.S: Likewise.
73660         * sysdeps/i386/crtn.S: Likewise.
73661         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
73662         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
73663         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
73664         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
73665         * sysdeps/sh/crti.S: Likewise.
73666         * sysdeps/sh/crtn.S: Likewise.
73667         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73668
73669         [BZ #13673]
73670         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
73671         with URL.
73672         * locale/programs/locfile-kw.gperf: Likewise.
73673         * locale/programs/charmap-kw.h: Regenerated.
73674         * locale/programs/locfile-kw.h: Likewise.
73675
73676         [BZ #13673]
73677         * intl/plural.y: Replace FSF snail mail address with URL.
73678         * intl/plural.c: Regenerated.
73679
73680 2012-03-09  Richard Henderson  <rth@twiddle.net>
73681
73682         * include/math_private.h: Remove file.
73683         * math/math_private.h: Move file ...
73684         * sysdeps/generic/math_private.h: ... here.
73685
73686         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
73687         * sysdeps/powerpc/fpu/math_private.h: Likewise.
73688         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73689
73690         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
73691         and <math_private.h>.
73692         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73693         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73694         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73695         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73696         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73697         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
73698         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
73699         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
73700         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
73701         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
73702         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
73703         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
73704         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
73705         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
73706         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
73707         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
73708         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
73709         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
73710         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
73711         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
73712         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
73713         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
73714         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
73715         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
73716         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
73717         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
73718         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
73719         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
73720         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
73721         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73722         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
73723         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
73724         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
73725         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
73726         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73727         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73728         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
73729         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73730         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73731         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73732         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
73733         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73734         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73735         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73736         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
73737         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73738         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
73739         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
73740         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
73741         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73742         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
73743         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
73744         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
73745         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
73746         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
73747         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
73748         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
73749         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
73750         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
73751         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
73752         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
73753         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
73754         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
73755         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
73756         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
73757         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
73758         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
73759         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
73760         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
73761         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
73762         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
73763         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
73764         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
73765         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
73766         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
73767         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
73768         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
73769         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
73770         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
73771         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
73772         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
73773         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
73774         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
73775         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
73776         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
73777         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
73778         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
73779         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
73780         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
73781         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
73782         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
73783         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
73784         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
73785         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
73786         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
73787         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
73788         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
73789         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
73790         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73791         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
73792         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
73793         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
73794         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
73795         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
73796         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
73797         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
73798         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
73799         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
73800         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
73801         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
73802         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
73803         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
73804         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
73805         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
73806         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
73807         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
73808         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
73809         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
73810         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
73811         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
73812         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
73813         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
73814         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
73815         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
73816         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
73817         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
73818         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
73819         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
73820         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
73821         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
73822         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
73823         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
73824         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
73825         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
73826         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
73827         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73828         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
73829         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
73830         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
73831         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
73832         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
73833         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73834         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73835         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
73836         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
73837         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
73838         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
73839         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
73840         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
73841         * sysdeps/ieee754/k_standard.c: Likewise.
73842         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
73843         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
73844         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
73845         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
73846         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
73847         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
73848         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
73849         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
73850         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
73851         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
73852         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73853         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
73854         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
73855         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
73856         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
73857         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
73858         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
73859         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
73860         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
73861         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
73862         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
73863         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
73864         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
73865         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
73866         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
73867         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
73868         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
73869         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
73870         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
73871         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
73872         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
73873         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
73874         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
73875         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
73876         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
73877         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
73878         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
73879         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
73880         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
73881         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
73882         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
73883         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
73884         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
73885         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
73886         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
73887         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
73888         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
73889         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
73890         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
73891         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
73892         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
73893         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
73894         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
73895         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
73896         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
73897         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
73898         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
73899         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
73900         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
73901         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
73902         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
73903         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
73904         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
73905         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
73906         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
73907         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
73908         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
73909         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
73910         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
73911         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
73912         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
73913         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73914         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
73915         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
73916         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
73917         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
73918         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
73919         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
73920         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
73921         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
73922         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
73923         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
73924         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
73925         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
73926         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
73927         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
73928         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
73929         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
73930         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73931         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
73932         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
73933         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
73934         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
73935         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
73936         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
73937         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
73938         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
73939         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
73940         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
73941         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
73942         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
73943         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
73944         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
73945         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
73946         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
73947         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
73948         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
73949         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
73950         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
73951         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
73952         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
73953         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
73954         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
73955         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
73956         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
73957         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
73958         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
73959         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
73960         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
73961         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
73962         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73963         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
73964         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
73965         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
73966         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
73967         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
73968         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
73969         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
73970         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
73971         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
73972         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
73973         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
73974         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
73975         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
73976         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
73977         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
73978         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
73979         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
73980         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
73981         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
73982         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
73983         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
73984         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
73985         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
73986         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
73987         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
73988         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
73989         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
73990         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
73991         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
73992         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
73993         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
73994         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
73995         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
73996         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
73997         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
73998         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
73999         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
74000         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
74001         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
74002         * sysdeps/ieee754/s_lib_version.c: Likewise.
74003         * sysdeps/ieee754/s_matherr.c: Likewise.
74004         * sysdeps/ieee754/s_signgam.c: Likewise.
74005         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
74006         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
74007         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
74008         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
74009         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
74010         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74011         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
74012         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
74013         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
74014         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
74015         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
74016         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
74017         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
74018         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
74019         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
74020         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
74021         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
74022         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
74023         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
74024         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
74025         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
74026
74027 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74028
74029         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
74030         * sunrpc/rpc_main.c: Likewise.
74031         * sunrpc/rpc_svcout.c: Likewise.
74032
74033 2012-03-09  David S. Miller  <davem@davemloft.net>
74034
74035         * include/math_private.h: New file.
74036
74037 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74038
74039         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
74040         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
74041         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
74042         from <bits/socket_type.h>.
74043         (enum __socket_type): Don't define here.
74044         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
74045         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74046         bits/socket_type.h.
74047
74048         [BZ #13566]
74049         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
74050         checking __USE_GNU.
74051
74052         * Makerules ($(inst_includedir)/%.h): New rule.
74053         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
74054         (install-others): Remove variable setting.
74055         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
74056
74057 2012-03-08  Richard Henderson  <rth@twiddle.net>
74058
74059         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
74060         from macro to inline function; merge with the
74061         !__LIBC_INTERNAL_MATH_INLINES version.
74062         (__ieee754_sqrtf): Likewise.
74063
74064         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
74065         to inline function.
74066         (__rintf, __floor, __floorf): Likewise.
74067
74068         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
74069         macro to inline function.
74070         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
74071
74072         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
74073         not <math/math_private.h>.
74074
74075 2012-03-08  David S. Miller  <davem@davemloft.net>
74076
74077         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
74078         copyright year.
74079         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
74080
74081 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
74082
74083         * resolv/gai_misc.c (handle_requests): Fix struct timespec
74084         normalization.
74085         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
74086         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
74087
74088 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
74089
74090         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
74091         be defined individually, they must be defined as a block.  Define
74092         S for printing a string instead of hidint the different by using a
74093         macro for adding the 'l'.
74094         * stdio-common/tst-fphex-wide.c: Adjust.
74095
74096 2012-03-07  Marek Polacek  <polacek@redhat.com>
74097
74098         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
74099
74100 2012-03-08  Marek Polacek  <polacek@redhat.com>
74101
74102         [BZ #13806]
74103         * stdio-common/Makefile (tests): Add tst-fphex-wide.
74104         * stdio-common/tst-fphex.c: Define a few macros to make the
74105         test reusable.  Use them.
74106         * stdio-common/tst-fphex-wide.c: New file.
74107
74108 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
74109
74110         [BZ #6911]
74111         * manual/macros.texi (gnusystems): New macro.
74112         (nongnusystems): Likewise.
74113         (gnulinuxhurdsystems): Likewise.
74114         (gnuhurdsystems): Likewise..
74115         (gnulinuxsystems): Likewise.
74116         * manual/charset.texi: Use new macros or @theglibc{} to refer to
74117         variants of the GNU system, not "GNU system".
74118         * manual/conf.texi: Likewise.
74119         * manual/errno.texi: Likewise.  Update example of errno macro
74120         expansion.
74121         * manual/filesys.texi: Likewise.
74122         (getumask): Document as specific to GNU/Hurd.
74123         * manual/install.texi: Likewise.  Reword some references to
74124         GNU/Linux.
74125         * manual/intro.texi: Likewise.
74126         * manual/io.texi: Likewise.
74127         (File Name Portability): Detail which constraints are inapplicable
74128         to all GNU systems and which are only inapplicable to GNU/Hurd.
74129         * manual/job.texi: Likewise.
74130         * manual/llio.texi: Likewise.
74131         (O_NOCTTY): Document as present on GNU/Linux.
74132         * manual/maint.texi: Likewise.
74133         * manual/memory.texi: Likewise.
74134         * manual/pattern.texi: Likewise.
74135         * manual/pipe.texi: Likewise.
74136         * manual/process.texi: Likewise.
74137         * manual/resource.texi: Likewise.
74138         (RUSAGE_CHILDREN): Remove statement about specifying a particular
74139         child on GNU/Hurd.
74140         * manual/setjmp.texi: Likewise.
74141         * manual/signal.texi: Likewise.
74142         * manual/startup.texi: Likewise.
74143         * manual/stdio.texi: Likewise.
74144         * manual/terminal.texi: Likewise.
74145         (ONLCR): Document as POSIX.
74146         (OXTABS): Document availability on GNU/Linux as XTABS.
74147         (ONOEOT): Document availability separately from other bits.
74148         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
74149         * manual/time.texi: Likewise.
74150         * manual/users.texi: Likewise.
74151         * INSTALL: Regenerated.
74152         * sysdeps/gnu/errlist.c: Regenerated.
74153
74154         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
74155         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
74156         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
74157         puts.
74158         * configure: Regenerated.
74159
74160 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
74161
74162         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
74163         default includes instead of AC_HEADER_CHECK.
74164         * sysdeps/i386/configure: Regenerated.
74165
74166         [BZ #10716]
74167         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
74168         * math/s_cacoshf.c (__cacoshf): Likewise.
74169         * math/s_cacoshl.c (__cacoshl): Likewise.
74170         * math/s_casinh.c (__casinh): Set signs of result from argument.
74171         * math/s_casinhf.c (__casinhf): Likewise.
74172         * math/s_casinhl.c (__casinhl): Likewise.
74173         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
74174         (casinh_test): Add more tests.
74175         * sysdeps/i386/fpu/libm-test-ulps: Update.
74176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74177
74178 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
74179
74180         * po/zh_TW.po: Update from translation team.
74181
74182         * login/Makefile (distribute): Remove variable.
74183         * catgets/Makefile: Likewise.
74184         * mach/Makefile: Likewise.
74185         * malloc/Makefile: Likewise.
74186         * misc/Makefile: Likewise.
74187         * iconv/Makefile: Likewise.
74188         * nscd/Makefile: Likewise.
74189         * hurd/Makefile: Likewise.
74190         * manual/Makefile: Likewise.
74191         * locale/Makefile: Likewise.
74192         * intl/Makefile: Likewise.
74193         * conform/Makefile: Likewise.
74194         * nss/Makefile: Likewise.
74195         * time/Makefile: Likewise.
74196         * soft-fp/Makefile: Likewise.
74197         * dirent/Makefile: Likewise.
74198         * gmon/Makefile: Likewise.
74199         * po/Makefile: Likewise.
74200         * rt/Makefile: Likewise.
74201         * socket/Makefile: Likewise.
74202         * math/Makefile: Likewise.
74203         * signal/Makefile: Likewise.
74204         * debug/Makefile: Likewise.
74205         * elf/Makefile: Likewise.
74206         * timezone/Makefile: Likewise.
74207         * stdlib/Makefile: Likewise.
74208         * iconvdata/Makefile: Likewise.
74209         * sunrpc/Makefile: Likewise.
74210         * io/Makefile: Likewise.
74211         * argp/Makefile: Likewise.
74212         * inet/Makefile: Likewise.
74213         * hesiod/Makefile: Likewise.
74214         * grp/Makefile: Likewise.
74215         * csu/Makefile: Likewise.
74216         * wctype/Makefile: Likewise.
74217         * crypt/Makefile: Likewise.
74218         * libio/Makefile: Likewise.
74219         * string/Makefile: Likewise.
74220         * nis/Makefile: Likewise.
74221         * resolv/Makefile: Likewise.
74222         * stdio-common/Makefile: Likewise.
74223         * wcsmbs/Makefile: Likewise.
74224         * dlfcn/Makefile: Likewise.
74225         * posix/Makefile: Likewise.
74226
74227         [BZ #6959]
74228         * timezone/Makefile: Don't install timezone files, just the programs
74229         and scripts.
74230
74231 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
74232
74233         * nss/databases.def: Add missing gshadow entry.
74234
74235         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
74236
74237 2012-03-06  Marek Polacek  <polacek@redhat.com>
74238
74239         [BZ #13726]
74240         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
74241         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
74242         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
74243         * stdio-common/tst-long-dbl-fphex.c: New file.
74244
74245 2012-03-06  David S. Miller  <davem@davemloft.net>
74246
74247         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
74248         (set_obp_int): New function.
74249         (get_obp_int): New function.
74250         (__get_clockfreq_via_dev_openprom): Likewise.
74251         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
74252         Avoid unused variable warnings on 'val' and use builtin_expect.
74253         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
74254         __builtin_expect.
74255         (INLINE_CLONE_SYSCALL): Likewise.
74256
74257 2012-03-05  David S. Miller  <davem@davemloft.net>
74258
74259         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74260
74261 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
74262
74263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74264
74265         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
74266         only for |x| >= 40.
74267         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74268
74269 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
74270
74271         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
74272         Replace gettimeofday with __vdso_gettimeofday.
74273
74274         * sysdeps/unix/sysv/linux/x86_64/init-first.c
74275         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
74276         __vdso_clock_gettime and __vdso_getcpu.
74277
74278         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
74279         time with __vdso_time.
74280
74281 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74282
74283         * manual/lang.texi (size_t): Note types to which size_t may be
74284         equivalent with the GNU C Library, but do not describe when
74285         differences between them are significant.
74286
74287 2012-03-05  Andreas Jaeger  <aj@suse.de>
74288
74289         * sysdeps/i386/fpu/libm-test-ulps: Update.
74290
74291 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74292
74293         [BZ #3976]
74294         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
74295         (__ieee754_pow): Save and restore rounding mode and use
74296         round-to-nearest for main computations.
74297         * math/libm-test.inc (pow_test_tonearest): New function.
74298         (pow_test_towardzero): Likewise.
74299         (pow_test_downward): Likewise.
74300         (pow_test_upward): Likewise.
74301         (main): Call the new functions.
74302         * sysdeps/i386/fpu/libm-test-ulps: Update.
74303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74304
74305         [BZ #3976]
74306         * math/libm-test.inc (cosh_test_tonearest): New function.
74307         (cosh_test_towardzero): Likewise.
74308         (cosh_test_downward): Likewise.
74309         (cosh_test_upward): Likewise.
74310         (sinh_test_tonearest): Likewise.
74311         (sinh_test_towardzero): Likewise.
74312         (sinh_test_downward): Likewise.
74313         (sinh_test_upward): Likewise.
74314         (main): Call the new functions.
74315         * sysdeps/i386/fpu/libm-test-ulps: Update.
74316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74317
74318 2012-03-05  Tom de Vries  <tom@codesourcery.com>
74319
74320         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
74321         default stack guard is set in last bytes.
74322         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
74323
74324 2012-03-05  Kees Cook  <keescook@chromium.org>
74325
74326         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
74327
74328         [BZ #13656]
74329         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
74330         possibly allocate from heap instead of stack.
74331         * stdio-common/bug-vfprintf-nargs.c: New file.
74332         * stdio-common/Makefile (tests): Add nargs overflow test.
74333
74334 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
74335
74336         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74337
74338 2012-03-03  Marek Polacek  <polacek@redhat.com>
74339
74340         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
74341         * math/math_private.h: Likewise.
74342         * stdlib/tst-strtod.c: Likewise.
74343         * sysdeps/i386/i486/bits/atomic.h: Likewise.
74344         * sysdeps/x86_64/bits/atomic.h: Likewise.
74345
74346 2012-03-02  David S. Miller  <davem@davemloft.net>
74347
74348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
74349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
74350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
74351         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
74352         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
74353         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
74354         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
74355         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
74356
74357 2012-03-02  Roland McGrath  <roland@hack.frob.com>
74358
74359         [BZ #13792]
74360         * manual/examples/README: New file, says the example source files
74361         can be used under GPL>=2.
74362         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
74363         line containing just "*/".
74364         * manual/examples/add.c: Add copyright header (GPL>=2).
74365         * manual/examples/argp-ex1.c: Likewise.
74366         * manual/examples/argp-ex2.c: Likewise.
74367         * manual/examples/argp-ex3.c: Likewise.
74368         * manual/examples/argp-ex4.c: Likewise.
74369         * manual/examples/atexit.c: Likewise.
74370         * manual/examples/db.c: Likewise.
74371         * manual/examples/dir.c: Likewise.
74372         * manual/examples/dir2.c: Likewise.
74373         * manual/examples/execinfo.c: Likewise.
74374         * manual/examples/filecli.c: Likewise.
74375         * manual/examples/filesrv.c: Likewise.
74376         * manual/examples/fmtmsgexpl.c: Likewise.
74377         * manual/examples/genpass.c: Likewise.
74378         * manual/examples/inetcli.c: Likewise.
74379         * manual/examples/inetsrv.c: Likewise.
74380         * manual/examples/isockad.c: Likewise.
74381         * manual/examples/longopt.c: Likewise.
74382         * manual/examples/memopen.c: Likewise.
74383         * manual/examples/memstrm.c: Likewise.
74384         * manual/examples/mkfsock.c: Likewise.
74385         * manual/examples/mkisock.c: Likewise.
74386         * manual/examples/mygetpass.c: Likewise.
74387         * manual/examples/pipe.c: Likewise.
74388         * manual/examples/popen.c: Likewise.
74389         * manual/examples/rprintf.c: Likewise.
74390         * manual/examples/search.c: Likewise.
74391         * manual/examples/select.c: Likewise.
74392         * manual/examples/setjmp.c: Likewise.
74393         * manual/examples/sigh1.c: Likewise.
74394         * manual/examples/sigusr.c: Likewise.
74395         * manual/examples/stpcpy.c: Likewise.
74396         * manual/examples/strdupa.c: Likewise.
74397         * manual/examples/strftim.c: Likewise.
74398         * manual/examples/strncat.c: Likewise.
74399         * manual/examples/subopt.c: Likewise.
74400         * manual/examples/swapcontext.c: Likewise.
74401         * manual/examples/termios.c: Likewise.
74402         * manual/examples/testopt.c: Likewise.
74403         * manual/examples/testpass.c: Likewise.
74404         * manual/examples/timeval_subtract.c: Likewise.
74405
74406         [BZ #13792]
74407         * manual/time.texi (Elapsed Time): Move timeval_subtract example
74408         function to ...
74409         * manual/timeval_subtract.c.texi: ... here, new file.
74410
74411 2012-03-02  David S. Miller  <davem@davemloft.net>
74412
74413         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
74414
74415 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
74416
74417         [BZ #3976]
74418         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
74419         (__sin): Save and restore rounding mode and use round-to-nearest
74420         for all computations.
74421         (__cos): Save and restore rounding mode and use round-to-nearest
74422         for all computations.
74423         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
74424         <fenv.h>.
74425         (tan): Save and restore rounding mode and use round-to-nearest for
74426         all computations.
74427         * math/libm-test.inc (cos_test_tonearest): New function.
74428         (cos_test_towardzero): Likewise.
74429         (cos_test_downward): Likewise.
74430         (cos_test_upward): Likewise.
74431         (sin_test_tonearest): Likewise.
74432         (sin_test_towardzero): Likewise.
74433         (sin_test_downward): Likewise.
74434         (sin_test_upward): Likewise.
74435         (tan_test_tonearest): Likewise.
74436         (tan_test_towardzero): Likewise.
74437         (tan_test_downward): Likewise.
74438         (tan_test_upward): Likewise.
74439         (main): Call the new functions.
74440         * sysdeps/i386/fpu/libm-test-ulps: Update.
74441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74442
74443         [BZ #10135]
74444         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
74445         small n, then large n, before computing and testing k+n.
74446         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
74447         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
74448         Likewise.
74449         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
74450         Likewise.
74451         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
74452         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
74453         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
74454         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
74455         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
74456         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
74457         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
74458         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
74459         * math/libm-test.inc (scalbn_test): Add more tests.
74460         (scalbln_test): Likewise.
74461
74462         * manual/filesys.texi (mode_t): Describe constraints on size and
74463         signedness, not exact equivalence to a particular type.
74464         (ino_t): Likewise.
74465         (ino64_t): Likewise.
74466         (dev_t): Likewise.
74467         (nlink_t): Likewise.
74468         (blkcnt_t): Likewise.
74469         (blkcnt64_t): Likewise.
74470         * manual/llio.texi (off_t): Likewise.
74471
74472         [BZ #3976]
74473         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
74474         (__ieee754_exp): Save and restore rounding mode and use
74475         round-to-nearest for all computations.
74476         * math/libm-test.inc (exp_test_tonearest): New function.
74477         (exp_test_towardzero): Likewise.
74478         (exp_test_downward): Likewise.
74479         (exp_test_upward): Likewise.
74480         (main): Call the new functions.
74481         * sysdeps/i386/fpu/libm-test-ulps: Update.
74482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74483
74484 2012-03-01  Chris Demetriou  <cgd@google.com>
74485
74486         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
74487         have predictable order.
74488
74489 2012-03-01  David S. Miller  <davem@davemloft.net>
74490
74491         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
74492
74493         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
74494         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
74495         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
74496         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
74497
74498         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
74499         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
74500         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
74501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
74502         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
74503         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
74504         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
74505         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
74506         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
74507
74508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74509
74510         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
74511         * sysdeps/sparc/fpu/libm-test-ulps: to here.
74512         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
74513
74514         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
74515         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
74516         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74517         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
74518         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
74519         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
74520         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
74521         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
74522         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74523         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
74524         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
74525         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74526         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
74527         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74528         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74529         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74530         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
74531         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
74532         * sysdeps/sparc/elf/configure: Regenerated.
74533
74534 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
74535
74536         * configure.in (AS, LD): Require binutils 2.20 or later.
74537         * configure: Regenerated.
74538         * manual/install.texi (Tools for Compilation): Give binutils 2.20
74539         as required minimum version.
74540         * INSTALL: Regenerated.
74541
74542         [BZ #2541]
74543         [BZ #4108]
74544         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
74545         before squaring exponent.
74546         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
74547         bottom long double and 27 bits of top long double before squaring
74548         exponent.
74549         * math/libm-test.inc (erfc_test): Add more tests.
74550         * sysdeps/i386/fpu/libm-test-ulps: Update.
74551         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74553
74554 2012-03-01  Kai Tietz  <ktietz@redhat.com>
74555
74556         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
74557         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
74558         containing bit-fields.
74559         * soft-fp/extended.h (_FP_UNION_E): Likewise.
74560         * soft-fp/single.h (_FP_UNION_S): Likewise.
74561         * soft-fp/double.h (_FP_UNION_D): Likewise.
74562
74563 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74564
74565         [BZ #13786]
74566         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
74567         not include ../strcmp.S.
74568         [USE_AS_STRNCASECMP_L]: Likewise.
74569         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
74570         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
74571         * sysdeps/i386/i686/multiarch/strncase_l-c.c
74572         (__strncasecmp_l_ia32): Define as alias to
74573         __strncasecmp_l_nonascii.
74574
74575         [BZ #5794]
74576         * math/libm-test.inc (expm1_test): Add test for bug 5794.
74577         * sysdeps/i386/fpu/libm-test-ulps: Update.
74578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74579
74580         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
74581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74582
74583 2012-02-29  Jeff Law  <law@redhat.com>
74584
74585         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
74586         out of bounds read.
74587
74588 2012-02-29  Marek Polacek  <polacek@redhat.com>
74589
74590         [BZ #13706]
74591         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
74592         * elf/Makefile: Add rules to run tst-unused-dep.out.
74593
74594 2012-02-28  David S. Miller  <davem@davemloft.net>
74595
74596         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
74597         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
74598         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
74599         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
74600         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
74601         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
74602
74603 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74604
74605         * math/libm-test.inc (llround_test): Move one test from
74606         lround_test.  Use TEST_f_L in moved test.
74607         (lround_test): Move misplaced test to llround_test.  Add testcase
74608         from bug 2561.
74609
74610 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
74611
74612         * sysdeps/x86_64/fpu/e_expf.S: New file.
74613         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
74614
74615 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
74616
74617         [BZ #13637]
74618         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
74619         of remain_len that may cause incomplete multi-byte character and
74620         false match.
74621         * posix/bug-regex33.c: New file.
74622         * posix/Makefile (tests): Add bug-regex33.
74623
74624 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
74625
74626         * manual/macros.texi: New file.
74627         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
74628         * manual/libc.texinfo: Include macros.texi.
74629         * manual/creatute.texi: Likewise.
74630         * manual/install.texi: Likewise.
74631         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
74632         @glibcadj{} in references to the GNU C Library.
74633         * manual/charset.texi: Likewise.
74634         * manual/conf.texi: Likewise.
74635         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
74636         when not using those macros.
74637         * manual/creature.texi: Likewise.
74638         * manual/crypt.texi: Likewise.
74639         * manual/errno.texi: Likewise.
74640         * manual/filesys.texi: Likewise.
74641         * manual/header.texi: Likewise.
74642         * manual/install.texi: Likewise.
74643         * manual/intro.texi: Likewise.
74644         * manual/io.texi: Likewise.
74645         * manual/job.texi: Likewise.
74646         * manual/lang.texi: Likewise.
74647         * manual/libc.texiinfo: Likewise.
74648         * manual/llio.texi: Likewise.
74649         * manual/locale.texi: Likewise.
74650         * manual/maint.texi: Likewise.
74651         * manual/math.texi: Likewise.
74652         * manual/memory.texi: Likewise.
74653         * manual/message.texi: Likewise.
74654         * manual/nss.texi: Likewise.
74655         * manual/pattern.texi: Likewise.
74656         * manual/process.texi: Likewise.
74657         * manual/resource.texi: Likewise.
74658         * manual/search.texi: Likewise.
74659         * manual/setjmp.texi: Likewise.
74660         * manual/signal.texi: Likewise.
74661         * manual/socket.texi: Likewise.
74662         * manual/startup.texi: Likewise.
74663         * manual/stdio.texi: Likewise.
74664         * manual/string.texi: Likewise.
74665         * manual/sysinfo.texi: Likewise.
74666         * manual/syslog.texi: Likewise.
74667         * manual/terminal.texi: Likewise.
74668         * manual/time.texi: Likewise.
74669         * manual/users.texi: Likewise.
74670         * INSTALL: Regenerated.
74671         * NOTES: Regenerated.
74672         * sysdeps/gnu/errlist.c: Regenerated.
74673
74674 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
74675
74676         * include/dirent.h: Include <dirstream.h> before
74677         <dirent/dirent.h>.
74678
74679 2012-02-28  David S. Miller  <davem@davemloft.net>
74680
74681         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
74682         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
74683         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
74684         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
74685
74686 2012-02-27  David S. Miller  <davem@davemloft.net>
74687
74688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
74689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
74690         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
74691         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
74692
74693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
74694         frame pointer instead of stack pointer relative arg slot.
74695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74696         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74697         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74698
74699 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
74700
74701         [BZ #3992]
74702         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
74703
74704 2012-02-27  David S. Miller  <davem@davemloft.net>
74705
74706         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
74707         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
74709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
74710         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74711         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74712         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
74713         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
74714
74715 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74716
74717         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
74718         later.  Allow versions 5-9.
74719         * configure: Regenerated.
74720         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
74721         required minimum version and 4.6 as recommended version.  Do not
74722         mention bugs in GCC 2.7 and 2.8.
74723         * INSTALL: Regenerated.
74724
74725 2012-02-27  David S. Miller  <davem@davemloft.net>
74726
74727         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
74728         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
74729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
74730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
74731         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
74732         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
74733         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
74734         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
74735
74736         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
74737         manipulate bits before adding and subtracting TWO112[sx].
74738         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
74739
74740 2012-02-27  Roland McGrath  <roland@hack.frob.com>
74741
74742         [BZ #13775]
74743         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
74744         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
74745         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
74746         being in POSIX, because they are in 1003.1-2008.
74747
74748         * rt/tst-aio.c: Include <fcntl.h>.
74749         * rt/tst-aio7.c: Likewise.
74750         * rt/tst-aio64.c: Likewise.
74751
74752         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
74753
74754 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74755
74756         * manual/install.texi (--with-headers): Describe headers as
74757         interface headers, not private headers.
74758         (Specific advice for GNU/Linux systems): Describe use of headers
74759         from "make headers_install", not private headers from older
74760         kernels.
74761         * INSTALL: Regenerated.
74762         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
74763         Change to 2.6.19.
74764         * sysdeps/unix/sysv/linux/configure: Regenerated.
74765
74766         * manual/llio.texi (fclean): Remove documentation.
74767
74768         * manual/Makefile (libc-texi-generated): New variable.  Include
74769         version.texi.
74770         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
74771         $(libc-texi-generated), not duplicated list of files.
74772         (version.texi, stamp-version): New rules.
74773         (realclean): Remove $(libc-texi-generated), not individual files
74774         from that list.  Do not remove dir-add.texinfo.
74775         * manual/libc.texinfo: Comment out uses of edition numbers and
74776         references to printed manual.  Remove last-updated dates.
74777         (EDITION): Comment out.
74778         (ISBN): Likewise.
74779         (VERSION, UPDATED): Remove.
74780         (version.texi): Include.
74781
74782 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
74783
74784         * sysdeps/posix/spawni.c: Include <signal.h>.
74785         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
74786         * sysdeps/pthread/aio_fsync.c: Likewise.
74787
74788 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
74789
74790         * conform/Makefile (tests): Run only when not cross-compiling and
74791         when fast-check is not defined.
74792
74793         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
74794         * conform/data/limits.h-data: Fixes for POSIX2008.
74795         * conform/run-conformtest.sh: Run all tests.
74796         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
74797         headers.
74798         * include/bits/dlfcn.h: Likewise.
74799         * include/langinfo.h: Likewise.
74800         * include/monetary.h: Likewise.
74801         * include/sys/poll.h: Likewise.
74802
74803         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
74804         for __USE_GNU.
74805         * posix/spawn.h: Define __need_sigset_t.
74806         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
74807         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
74808         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
74809         to get sigevent_t only.
74810         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
74811         only for __USE_GNU.
74812         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
74813         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74814         process_vm_writev only for __USE_GNU.
74815         * termios/termios.h: Declare tcgetsid also for POSIX2008.
74816
74817         * conform/Makefile: For now ignore errors from run-conformtest.
74818         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
74819         POSIX to avoid namespace pollution.  Don't prepend headers.
74820         * conform/data/aio.h-data: Fixes for POSIX testing.
74821         * conform/data/fcntl.h-data: Likewise.
74822         * conform/data/glob.h-data: Likewise.
74823         * conform/data/grp.h-data: Likewise.
74824         * conform/data/pthread.h-data: Likewise.
74825         * conform/data/pwd.h-data: Likewise.
74826         * conform/data/signal.h-data: Likewise.
74827         * conform/data/spawn.h-data: Likewise.
74828         * conform/data/stdio.h-data: Likewise.
74829         * conform/data/stdlib.h-data: Likewise.
74830         * conform/data/stropts.h-data: Likewise.
74831         * conform/data/sys/mman.h-data: Likewise.
74832         * conform/data/sys/stat.h-data: Likewise.
74833         * conform/data/sys/types.h-data: Likewise.
74834         * conform/data/sys/wait.h-data: Likewise.
74835         * conform/data/time.h-data: Likewise.
74836         * conform/data/unistd.h-data: Likewise.
74837         * conform/data/utime.h-data: Likewise.
74838
74839         * io/sys/stat.h: fchmod was always in POSIX.
74840         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
74841         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
74842         * rt/aio.h: Define __need_timespec before including <time.h>.
74843         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
74844         struct.  Add forward declaration of pthread_attr_t and use it in
74845         sigevent.
74846         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74847         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74848         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
74849         always remove CLK_TCK definition.
74850
74851 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
74852
74853         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
74854
74855 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
74856
74857         * conform/run-conformtest.sh: New file.
74858         * conform/Makefile: Run run-conformtest for tests.
74859         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
74860         support.
74861
74862         * conform/data/uchar.h-data: New file.
74863         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
74864         * conform/data/arpa/inet.h-data: Likewise.
74865         * conform/data/assert.h-data: Likewise.
74866         * conform/data/complex.h-data: Likewise.
74867         * conform/data/cpio.h-data: Likewise.
74868         * conform/data/ctype.h-data: Likewise.
74869         * conform/data/dirent.h-data: Likewise.
74870         * conform/data/dlfcn.h-data: Likewise.
74871         * conform/data/errno.h-data: Likewise.
74872         * conform/data/fcntl.h-data: Likewise.
74873         * conform/data/float.h-data: Likewise.
74874         * conform/data/fmtmsg.h-data: Likewise.
74875         * conform/data/fnmatch.h-data: Likewise.
74876         * conform/data/ftw.h-data: Likewise.
74877         * conform/data/glob.h-data: Likewise.
74878         * conform/data/grp.h-data: Likewise.
74879         * conform/data/iconv.h-data: Likewise.
74880         * conform/data/inttypes.h-data: Likewise.
74881         * conform/data/langinfo.h-data: Likewise.
74882         * conform/data/libgen.h-data: Likewise.
74883         * conform/data/limits.h-data: Likewise.
74884         * conform/data/locale.h-data: Likewise.
74885         * conform/data/math.h-data: Likewise.
74886         * conform/data/monetary.h-data: Likewise.
74887         * conform/data/mqueue.h-data: Likewise.
74888         * conform/data/ndbm.h-data: Likewise.
74889         * conform/data/net/if.h-data: Likewise.
74890         * conform/data/netdb.h-data: Likewise.
74891         * conform/data/netinet/in.h-data: Likewise.
74892         * conform/data/nl_types.h-data: Likewise.
74893         * conform/data/poll.h-data: Likewise.
74894         * conform/data/pthread.h-data: Likewise.
74895         * conform/data/pwd.h-data: Likewise.
74896         * conform/data/regex.h-data: Likewise.
74897         * conform/data/sched.h-data: Likewise.
74898         * conform/data/search.h-data: Likewise.
74899         * conform/data/semaphore.h-data: Likewise.
74900         * conform/data/setjmp.h-data: Likewise.
74901         * conform/data/signal.h-data: Likewise.
74902         * conform/data/spawn.h-data: Likewise.
74903         * conform/data/stdarg.h-data: Likewise.
74904         * conform/data/stdio.h-data: Likewise.
74905         * conform/data/stdlib.h-data: Likewise.
74906         * conform/data/string.h-data: Likewise.
74907         * conform/data/strings.h-data: Likewise.
74908         * conform/data/stropts.h-data: Likewise.
74909         * conform/data/sys/ipc.h-data: Likewise.
74910         * conform/data/sys/mman.h-data: Likewise.
74911         * conform/data/sys/msg.h-data: Likewise.
74912         * conform/data/sys/resource.h-data: Likewise.
74913         * conform/data/sys/select.h-data: Likewise.
74914         * conform/data/sys/sem.h-data: Likewise.
74915         * conform/data/sys/shm.h-data: Likewise.
74916         * conform/data/sys/socket.h-data: Likewise.
74917         * conform/data/sys/stat.h-data: Likewise.
74918         * conform/data/sys/statvfs.h-data: Likewise.
74919         * conform/data/sys/time.h-data: Likewise.
74920         * conform/data/sys/timeb.h-data: Likewise.
74921         * conform/data/sys/times.h-data: Likewise.
74922         * conform/data/sys/types.h-data: Likewise.
74923         * conform/data/sys/uio.h-data: Likewise.
74924         * conform/data/sys/un.h-data: Likewise.
74925         * conform/data/sys/utsname.h-data: Likewise.
74926         * conform/data/sys/wait.h-data: Likewise.
74927         * conform/data/syslog.h-data: Likewise.
74928         * conform/data/tar.h-data: Likewise.
74929         * conform/data/termios.h-data: Likewise.
74930         * conform/data/utime.h-data: Likewise.
74931         * conform/data/utmpx.h-data: Likewise.
74932         * conform/data/varargs.h-data: Likewise.
74933         * conform/data/wchar.h-data: Likewise.
74934         * conform/data/wctype.h-data: Likewise.
74935         * conform/data/wordexp.h-data: Likewise.
74936
74937         * include/stropts.h: New file.
74938         * include/uchar.h: New file.
74939         * include/aio.h: Changes to allow conformtest.pl to use the headers.
74940         * include/assert.h: Likewise.
74941         * include/ctype.h: Likewise.
74942         * include/dirent.h: Likewise.
74943         * include/dlfcn.h: Likewise.
74944         * include/fcntl.h: Likewise.
74945         * include/fnmatch.h: Likewise.
74946         * include/glob.h: Likewise.
74947         * include/grp.h: Likewise.
74948         * include/libio.h: Likewise.
74949         * include/locale.h: Likewise.
74950         * include/math.h: Likewise.
74951         * include/net/if.h: Likewise.
74952         * include/netdb.h: Likewise.
74953         * include/netinet/in.h: Likewise.
74954         * include/pthread.h: Likewise.
74955         * include/pwd.h: Likewise.
74956         * include/regex.h: Likewise.
74957         * include/sched.h: Likewise.
74958         * include/search.h: Likewise.
74959         * include/setjmp.h: Likewise.
74960         * include/signal.h: Likewise.
74961         * include/stdio.h: Likewise.
74962         * include/stdlib.h: Likewise.
74963         * include/string.h: Likewise.
74964         * include/sys/cdefs.h: Likewise.
74965         * include/sys/mman.h: Likewise.
74966         * include/sys/msg.h: Likewise.
74967         * include/sys/resource.h: Likewise.
74968         * include/sys/select.h: Likewise.
74969         * include/sys/socket.h: Likewise.
74970         * include/sys/stat.h: Likewise.
74971         * include/sys/statvfs.h: Likewise.
74972         * include/sys/time.h: Likewise.
74973         * include/sys/times.h: Likewise.
74974         * include/sys/uio.h: Likewise.
74975         * include/sys/utsname.h: Likewise.
74976         * include/sys/wait.h: Likewise.
74977         * include/termios.h: Likewise.
74978         * include/time.h: Likewise.
74979         * include/ulimit.h: Likewise.
74980         * include/unistd.h: Likewise.
74981         * include/utime.h: Likewise.
74982         * include/wchar.h: Likewise.
74983         * include/wctype.h: Likewise.
74984         * include/wordexp.h: Likewise.
74985
74986         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
74987
74988         * time/time.h: TIME_UTC must be a macro.
74989         Make timespec_get available for ISO C11 only as well.
74990
74991 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
74992
74993         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
74994         Reported by Peng Haitao <penght@cn.fujitsu.com>.
74995
74996 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74997
74998         * configure.in: Use -o not -a in test for unsupported multi-arch.
74999
75000 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75001
75002         * manual/texinfo.tex: Update to version 2012-01-19.16.
75003
75004 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75005
75006         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
75007
75008 2012-02-24  Roland McGrath  <roland@hack.frob.com>
75009
75010         [BZ #13738]
75011         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
75012         * manual/fdl-1.3.texi: New file.
75013         * manual/fdl-1.1.texi: File removed.
75014
75015         [BZ #13738]
75016         * manual/libc.texinfo (FDL_VERSION): New @set.
75017         Use it for mention of FDL in cover text.
75018         (Documentation License): Use it in @include file name.
75019
75020 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75021             Roland McGrath  <roland@hack.frob.com>
75022
75023         [BZ #5461]
75024         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
75025         (not LONG_LONG_MAX and LONG_LONG_MIN.
75026         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
75027         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
75028         name.
75029         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
75030
75031 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75032
75033         [BZ #2547]
75034         [BZ #11365]
75035         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
75036         manipulate bits before adding and subtracting TWO23[sx].
75037         * math/libm-test.inc (nearbyint_test): Add more tests.
75038
75039 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75040
75041         [BZ #2548]
75042         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
75043         bits before adding and subtracting TWO23[sx].
75044         * math/libm-test.inc (rint_test): Add more tests.
75045         (rint_test_tonearest): Likewise.
75046         (rint_test_towardzero): Likewise.
75047         (rint_test_downward): Likewise.
75048         (rint_test_upward: Likewise.
75049
75050 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75051
75052         [BZ #10110]
75053         * include/stdc-predef.h: New file.  Extracted from features.h.
75054         * include/features.h: Include stdc-predef.h.
75055         * Makefile (headers): Add stdc-predef.h.
75056         * CONFORMANCE (Compiler limitations): Update.
75057
75058 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75059
75060         * manual/libc.texinfo (VERSION, UPDATED): Revert.
75061
75062 2012-02-21  David S. Miller  <davem@davemloft.net>
75063
75064         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
75065         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75066
75067 2012-02-20  David S. Miller  <davem@davemloft.net>
75068
75069         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
75070         using a normal save/restore sequence, rather than allocating a
75071         dummy stack frame just to store a frame pointer and restore.
75072         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75073
75074 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75075
75076         * manual/install.texi: Fix stray word in line-wrapped comment.
75077
75078 2012-02-20  David S. Miller  <davem@davemloft.net>
75079
75080         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
75081         both binutils and gcc support GOTDATA.
75082
75083         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
75084         "rd %pc" in the PIC register setup sequences.
75085
75086         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
75087         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
75088         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
75089         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
75090         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
75091         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
75092         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
75093         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75094         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
75095         (SYSCALL_ERROR_HANDLER): Likewise.
75096         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
75097         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
75098         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
75099         (SYSCALL_ERROR_HANDLER): Likewise.
75100
75101         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
75102         (HAVE_GCC_GOTDATA): New.
75103         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
75104         relocation support in both binutils and gcc.
75105         * sysdeps/sparc/elf/configure: Regenerate.
75106
75107         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
75108         * sysdeps/sparc/sparc32/elf/configure: Delete.
75109         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
75110         * sysdeps/sparc/sparc64/elf/configure: Delete.
75111         * sysdeps/sparc/elf/configure.in: New file.
75112         * sysdeps/sparc/elf/configure: Generate.
75113
75114         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
75115         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
75116         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
75117         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
75118         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
75119
75120 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75121
75122         * manual/install.texi: Do not mention specific glibc version
75123         numbers.
75124         * manual/libc.texinfo (VERSION, UPDATED): Update.
75125         (@copying): Use @copyright{} and range of years.
75126
75127 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75128
75129         [BZ #13695]
75130         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
75131         [crti.S not in sysdirs] (generated): Do not append.
75132         [crti.S not in sysdirs] (omit-deps): Likewise.
75133         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
75134         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
75135         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
75136         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
75137         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
75138         Likewise.
75139         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
75140         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
75141         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
75142         * csu/defs.awk: Remove file.
75143         * sysdeps/generic/initfini.c: Likewise.
75144         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
75145         variable.
75146         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
75147         Likewise.
75148
75149 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75150
75151         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
75152         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
75153         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
75154         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
75155         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
75156         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
75157         <bits/epoll.h>.
75158         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
75159         (__EPOLL_PACKED): Define to empty if not defined by
75160         <bits/epoll.h>.
75161         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
75162         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75163         bits/epoll.h.
75164
75165 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75166
75167         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
75168         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
75169         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
75170         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
75171         <bits/timerfd.h>.
75172         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
75173         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75174         bits/timerfd.h.
75175
75176 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75177
75178         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
75179         in C locale.
75180         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75181         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
75182         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
75183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75184
75185 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
75186
75187         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75188         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75189
75190 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
75191
75192         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
75193         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
75194         defined.
75195         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
75196         Likewise.
75197         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
75198         entry for 2.16.
75199
75200 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
75201
75202         * math/w_acos.c: Use non-signaling floating-point comparisons.
75203         * math/w_acosf.c: Likewise.
75204         * math/w_acosh.c: Likewise.
75205         * math/w_acoshf.c: Likewise.
75206         * math/w_acoshl.c: Likewise.
75207         * math/w_acosl.c: Likewise.
75208         * math/w_asin.c: Likewise.
75209         * math/w_asinf.c: Likewise.
75210         * math/w_asinl.c: Likewise.
75211         * math/w_atanh.c: Likewise.
75212         * math/w_atanhf.c: Likewise.
75213         * math/w_atanhl.c: Likewise.
75214         * math/w_exp2.c: Likewise.
75215         * math/w_exp2f.c: Likewise.
75216         * math/w_exp2l.c: Likewise.
75217         * math/w_j0.c: Likewise.
75218         * math/w_j0f.c: Likewise.
75219         * math/w_j0l.c: Likewise.
75220         * math/w_j1.c: Likewise.
75221         * math/w_j1f.c: Likewise.
75222         * math/w_j1l.c: Likewise.
75223         * math/w_jn.c: Likewise.
75224         * math/w_jnf.c: Likewise.
75225         * math/w_log.c: Likewise.
75226         * math/w_log10.c: Likewise.
75227         * math/w_log10f.c: Likewise.
75228         * math/w_log10l.c: Likewise.
75229         * math/w_log2.c: Likewise.
75230         * math/w_log2f.c: Likewise.
75231         * math/w_log2l.c: Likewise.
75232         * math/w_logf.c: Likewise.
75233         * math/w_logl.c: Likewise.
75234         * math/w_sqrt.c: Likewise.
75235         * math/w_sqrtf.c: Likewise.
75236         * math/w_sqrtl.c: Likewise.
75237         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75238         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
75239         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75240         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
75241         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
75242
75243 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75244
75245         [BZ #9739]
75246         * manual/string.texi (strnlen): Use correct parameter name in
75247         equivalent expression.
75248
75249 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75250
75251         [BZ #11174]
75252         * manual/users.texi (seteuid): Consistently use neweuid for
75253         argument name.
75254
75255 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75256
75257         [BZ #13704]
75258         * manual/nss.texi (Services in the NSS configuration): Correct
75259         list of services in example configuration file.
75260
75261 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
75262
75263         [BZ #11322]
75264         * manual/arith.texi: Remove statements about negative zero
75265         behaving identically to zero.
75266
75267 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75268
75269         [BZ #5993]
75270         * manual/install.texi: Do not document upgrading from libc5.
75271
75272 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75273
75274         [BZ #4596]
75275         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
75276
75277 2012-02-18  David S. Miller  <davem@davemloft.net>
75278
75279         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
75280         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
75281         %o7 across the call.
75282         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
75283         instead.
75284         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
75285         SETUP_PIC_REG_LEAF.
75286         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75287         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
75288         * sysdeps/sparc/crtn.S: Likewise.
75289
75290 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
75291
75292         * aout/Makefile: Remove.
75293
75294 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
75295
75296         [BZ #13058]
75297         * manual/examples/argp-ex1.c (main): Format definition in GNU
75298         style.
75299         * manual/examples/argp-ex2.c (main): Likewise.
75300         * manual/examples/argp-ex3.c (main): Likewise.
75301         * manual/examples/argp-ex4.c (main): Likewise.
75302         * manual/examples/longopt.c (main): Use new-style prototype
75303         definition.
75304         * manual/examples/strncat.c (main): Specify return type and use
75305         (void) for arguments.
75306         * manual/examples/subopt.c (main): Use char **argv argument.
75307
75308 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75309
75310         [BZ #5077]
75311         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
75312         rounding modes.
75313
75314 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
75315
75316         [BZ #6907]
75317         * manual/string.texi (strchr): Change when strchrnul is
75318         recommended.
75319
75320 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
75321
75322         [BZ #174]
75323         * manual/locale.texi (setlocale): Document LOCPATH.
75324
75325 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75326
75327         [BZ #10210]
75328         * manual/process.texi (execle): Move @dots{} before last argument.
75329
75330 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
75331
75332         [BZ #12047]
75333         * manual/charset.texi (Generic Charset Conversion): Fix typo
75334         (LC_TYPE -> LC_CTYPE).
75335
75336 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
75337
75338         [BZ #5805]
75339         * manual/arith.texi (scalbn): Use @var{} on parameter names.
75340         (scalbnf): Likewise.
75341         (scalbnl): Likewise.
75342         (scalbln): Likewise.
75343         (scalblnf): Likewise.
75344         (scalblnl): Likewise.
75345         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
75346         (vwarnx): Likewise.
75347         (verr): Likewise.
75348         (verrx): Likewise.
75349         * manual/filesys.texi (telldir): Use braces around return type.
75350         * manual/llio.texi (mmap): Add space after comma.
75351         (mmap64): Likewise.
75352         * manual/math.texi (jn): Use @var{} on parameter names.
75353         (jnf): Likewise.
75354         (jnl): Likewise.
75355         (yn): Likewise.
75356         (ynf): Likewise.
75357         (ynl): Likewise.
75358         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
75359         line.
75360         * manual/resource.texi (ulimit): Use @dots{} instead of literal
75361         "...".
75362         (sched_get_priority_min): Remove semicolon on @deftypefun line.
75363         (sched_get_priority_max): Likewise.
75364         * manual/signal.texi (sigvec): Add space after comma.
75365         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
75366         names.
75367         (if_indextoname): Likewise.
75368         (if_freenameindex): Likewise.
75369         (sendto): Use ',' instead of '.' in prototype.
75370         * manual/startup.texi (syscall): Use @dots{} instead of literal
75371         "...".
75372         * manual/stdio.texi (__fpending): Separate initial words of
75373         paragraph from @deftypefun line.
75374         * manual/syslog.texi (syslog): Use @dots{} instead of literal
75375         "...".
75376         (vsyslog): Use @var{} on parameter names.
75377         * manual/terminal.texi (stty): Use @var{} on parameter names.
75378         * manual/users.texi (getutmp): Use @var{} on parameter names.
75379         (getutmpx): Likewise.
75380
75381 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75382
75383         [BZ #6884]
75384         * manual/stdio.texi (fopen): Fix typos in description of
75385         ",ccs=STRING".
75386
75387 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
75388
75389         [BZ #4026]
75390         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
75391         get clock_id definition.
75392
75393 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
75394
75395         [BZ #4822]
75396         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
75397         (madvise): Cast every argument to void on its own.
75398
75399 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75400
75401         [BZ #9902]
75402         * manual/startup.texi (Exit Status): Fix typo.
75403
75404 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75405
75406         [BZ #10140]
75407         * manual/examples/argp-ex1.c: Include <stdlib.h>.
75408         * manual/examples/argp-ex2.c: Likewise.
75409         * manual/examples/argp-ex3.c: Likewise.
75410
75411 2012-02-16  Richard Henderson  <rth@redhat.com>
75412
75413         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
75414         * sysdeps/s390/s390-32/initfini.c: Remove.
75415         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
75416         * sysdeps/s390/s390-64/initfini.c: Remove.
75417
75418 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75419
75420         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
75421         compiler output for sysdeps/generic/initfini.c.
75422         * sysdeps/sh/elf/initfini.c: Remove file.
75423
75424 2012-02-16  David S. Miller  <davem@davemloft.net>
75425
75426         [BZ #11494]
75427         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
75428
75429         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
75430         * sysdeps/sparc/crti.S: New file.
75431         * sysdeps/sparc/crtn.S: New file.
75432         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
75433         * sysdeps/sparc/sparc64/Makefile: Likewise.
75434
75435 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
75436
75437         [BZ #3335]
75438         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
75439
75440 2012-02-15  Roland McGrath  <roland@hack.frob.com>
75441
75442         [BZ #4822]
75443         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
75444
75445         * mach/devstream.c (cookie_io_functions_t): Macro removed.
75446         (write, read, close): Likewise.
75447         Patch by Aurelien Jarno <aurelien@aurel32.net>.
75448
75449 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
75450
75451         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
75452         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
75453         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
75454         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
75455         <bits/signalfd.h>.
75456         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
75457         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75458         bits/signalfd.h.
75459
75460 2012-02-14  Marek Polacek  <polacek@redhat.com>
75461
75462         * sysdeps/x86_64/crti.S: New file.
75463         * sysdeps/x86_64/crtn.S: New file.
75464         * sysdeps/x86_64/elf/initfini.c: Remove file.
75465
75466 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75467
75468         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
75469         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
75470         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
75471         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
75472         <bits/inotify.h>.
75473         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
75474         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75475         bits/inotify.h.
75476
75477 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75478
75479         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
75480         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
75481         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
75482         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
75483         <bits/eventfd.h>.
75484         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
75485         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75486         bits/eventfd.h.
75487
75488 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
75489
75490         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
75491         __feraiseexcept instead of feraiseexcept.
75492
75493         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
75494         nanosleep invocations.
75495         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
75496         strings, and add error checking for a nanosleep invocations.
75497
75498 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
75499
75500         Replace FSF snail mail address with URLs, as per GNU coding standards.
75501         Most of the snail mail addresses were wrong anyway, and omitting
75502         them makes the source code easier to maintain.  Almost all of the
75503         changes are to license notices and to locale LC_IDENTIFICATION
75504         addresses, except for this one:
75505         * manual/libc.texinfo: In "Published by", give the FSF's URL,
75506         not its snail mail address.
75507
75508 2012-02-09  Richard Henderson  <rth@twiddle.net>
75509
75510         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
75511         of kernel-features.h.
75512
75513         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
75514
75515 2012-02-08  Marek Polacek  <polacek@redhat.com>
75516
75517         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
75518         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
75519         * sysdeps/gnu/_G_config.h: Likewise.
75520         * sysdeps/generic/_G_config.h: Likewise.
75521
75522 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
75523
75524         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
75525         tests.
75526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75527
75528         * sysdeps/powerpc/powerpc32/crti.S: New file.
75529         * sysdeps/powerpc/powerpc32/crtn.S: New file.
75530         * sysdeps/powerpc/powerpc64/crti.S: New file.
75531         * sysdeps/powerpc/powerpc64/crtn.S: New file.
75532
75533         * Makeconfig (have-initfini): Don't set.
75534         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
75535         * configure.in (nopic_initfini): Don't substitute.
75536         * config.h.in (HAVE_INITFINI): Don't #undef.
75537         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
75538         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
75539
75540 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
75541
75542         Support crti.S and crtn.S provided directly by architectures.
75543         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
75544         [crti.S in sysdirs] (omit-deps): Likewise.
75545         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
75546         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
75547         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
75548         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
75549         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
75550         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
75551         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
75552         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
75553         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
75554         compiler output for sysdeps/generic/initfini.c.
75555         * sysdeps/i386/elf/Makefile: Remove file.
75556         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
75557
75558 2012-02-07  Marek Polacek  <polacek@redhat.com>
75559
75560         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
75561         * sysdeps/gnu/_G_config.h: Likewise.
75562         * sysdeps/mach/hurd/_G_config.h: Likewise.
75563
75564 2012-02-07  Marek Polacek  <polacek@redhat.com>
75565
75566         * math/Makefile (tests): Add tst-CMPLX2.
75567         * math/tst-CMPLX2.c: New file.
75568
75569 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
75570
75571         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75572
75573         * math/libm-test.inc (jn_test): Add missing L suffix.
75574
75575 2012-02-06  Marek Polacek  <polacek@redhat.com>
75576
75577         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
75578         * sysdeps/i386/fpu/e_powf.S: Likewise.
75579         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75580         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
75581         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75582         * sysdeps/i386/fpu/e_pow.S: Likewise.
75583         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
75584         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75585         * sysdeps/i386/fpu/s_expm1.S: Likewise.
75586         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
75587         * sysdeps/i386/fpu/e_log2.S: Likewise.
75588         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75589         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75590         * sysdeps/i386/fpu/e_powl.S: Likewise.
75591         * sysdeps/i386/fpu/s_log1p.S: Likewise.
75592         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75593         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
75594         * sysdeps/i386/fpu/e_logl.S: Likewise.
75595         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
75596         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
75597         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
75598         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
75599         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75600         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75601         * sysdeps/i386/fpu/e_log.S: Likewise.
75602         * sysdeps/i386/fpu/s_cexp.S: Likewise.
75603         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75604         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
75605         * sysdeps/i386/fpu/e_logf.S: Likewise.
75606         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75607         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75608         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
75609         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
75610         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
75611         * sysdeps/i386/fpu/e_log10.S: Likewise.
75612         * sysdeps/i386/fpu/s_frexp.S: Likewise.
75613         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75614         * sysdeps/i386/fpu/s_asinh.S: Likewise.
75615         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
75616         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75617         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
75618         * sysdeps/i386/asm-syntax.h: Likewise.
75619         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75620         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75621         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75622         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75623         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
75624         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75625         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
75626         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
75627         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75628         * sysdeps/powerpc/sysdep.h: Likewise.
75629         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
75630         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
75631
75632 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75633
75634         [BZ #411]
75635         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
75636
75637 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75638
75639         * sysdeps/i386/sysdep.h: Include <features.h>.
75640         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
75641         version.
75642
75643 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
75644
75645         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
75646         Define.
75647         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
75648         LOAD_PIC_REG_STR.
75649
75650 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75651
75652         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
75653         (SETUP_PIC_REG): Use GET_PC_THUNK.
75654         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
75655         macro.
75656
75657 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75658
75659         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
75660         for non-PIC compilation.
75661         (SETUP_PIC_REG): Add .p2align directive.
75662         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
75663         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
75664         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
75665         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
75666         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
75667         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
75668         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
75669         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75670         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
75671         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
75672         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
75673         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
75674         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
75675         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
75676         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
75677         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
75678         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
75679         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
75680         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
75681         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
75682         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
75683         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
75684         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
75685         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
75686         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
75687         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
75688         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
75689         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
75690         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
75691         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
75692         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
75693         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
75694         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
75695         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
75696         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
75697         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
75698         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
75699         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
75700         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
75701         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
75702         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
75703
75704 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75705
75706         * math/tst-CMPLX.c: Include <stdio.h>.
75707
75708 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
75709
75710         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
75711         float.
75712         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75713         * sysdeps/sparc/bits/mathdef.h: Likewise.
75714
75715 2012-01-31  Marek Polacek  <polacek@redhat.com>
75716
75717         * libio/libio.h: Don't define _PARAMS.
75718         * locale/programs/config.h: Don't define PARAMS.
75719         * stdlib/strtol_l.c: Likewise.
75720         (__strtol_l): Remove PARAMS from the prototype.
75721
75722 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
75723
75724         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
75725         names.  Just use the correct names.  Remove unnecessary wrapper
75726         functions.
75727         * malloc/arena.c: Likewise.
75728         * malloc/hooks.c: Likewise.
75729
75730         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
75731         ARENA_TEST says not to.  Simplify test for creation of a new arena.
75732         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
75733
75734 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
75735
75736         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
75737         into tail calls.
75738         (update_get_addr): New function.
75739         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
75740         GET_ADDR_MODULE parameter.
75741
75742 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75743
75744         * crypt/cert.c: Remove __STDC__ conditionals.
75745         * crypt/crypt-entry.c: Likewise.
75746         * crypt/crypt_util.c: Likewise.
75747         * libio/filedoalloc.c: Likewise.
75748         * libio/fileops.c: Likewise.
75749         * libio/genops.c: Likewise.
75750         * libio/iofclose.c: Likewise.
75751         * libio/iofdopen.c: Likewise.
75752         * libio/iofopen.c: Likewise.
75753         * libio/iofopen64.c: Likewise.
75754         * libio/iogetdelim.c: Likewise.
75755         * libio/iopopen.c: Likewise.
75756         * libio/obprintf.c: Likewise.
75757         * libio/oldfileops.c: Likewise.
75758         * libio/oldiofclose.c: Likewise.
75759         * libio/oldiofdopen.c: Likewise.
75760         * libio/oldiofopen.c: Likewise.
75761         * libio/oldiopopen.c: Likewise.
75762         * libio/wfiledoalloc.c: Likewise.
75763         * libio/wgenops.c: Likewise.
75764         * locale/programs/xmalloc.c: Likewise.
75765         * misc/syslog.c: Likewise.
75766         * stdio-common/xbug.c: Likewise.
75767         * string/memchr.c: Likewise.
75768         * string/memcmp.c: Likewise.
75769         * string/memrchr.c: Likewise.
75770         * string/rawmemchr.c: Likewise.
75771         * sysdeps/posix/getcwd.c: Likewise.
75772         * time/strftime_l.c: Likewise.
75773
75774 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75775
75776         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
75777         * config.make.in (config-cflags-sse2avx): Define.
75778         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
75779         Fix typo.
75780
75781 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
75782
75783         * scripts/config.guess: Update from upstream config git repository.
75784         * scripts/config.sub: Likewise.
75785
75786 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
75787
75788         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
75789         (EM_NUM): Update.
75790         (R_TILEPRO_*, R_TILEGX_*): New macros.
75791
75792         * scripts/firstversions.awk: Fix bug in version range handling.
75793
75794         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
75795
75796         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
75797
75798         * include/sys/epoll.h: New file.
75799         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
75800         libc_hidden_def.
75801
75802 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
75803
75804         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
75805         Avoid unnecessary __WORDSIZE == 64 test.
75806         (fmaxf): Use VEX format if possible.
75807         (fmax): Likewise.
75808         (fminf): Likewise.
75809         (fmin): Likewise.
75810
75811         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
75812         * math/math_private.h: Remove libc_fegetround* and
75813         libc_fesetround*.
75814         * sysdeps/i386/configure.in: Check for -msse2avx.
75815         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
75816         also if SSE2AVX is defined.
75817         Remove libc_fegetround* and libc_fesetround*.
75818         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
75819         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
75820         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
75821         of HAS_YMM_USABLE.
75822         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75823         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75824         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75825         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75826         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75827
75828         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
75829
75830 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75831
75832         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
75833         size is not set.
75834         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75835
75836 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
75837
75838         [BZ #13618]
75839         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
75840         relocation.
75841         * Makeconfig (libm): Define.
75842         * elf/Makefile: Add rules to build and run tst-relsort1.
75843         * elf/tst-relsort1.c: New file.
75844         * elf/tst-relsort1mod1.c: New file.
75845         * elf/tst-relsort1mod2.c: New file.
75846
75847 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
75848
75849         * math/s_ldexp.c: Remove __STDC__ conditionals.
75850         * math/s_ldexpf.c: Likewise.
75851         * math/s_ldexpl.c: Likewise.
75852         * math/s_nextafter.c: Likewise.
75853         * math/s_nexttowardf.c: Likewise.
75854         * math/s_significand.c: Likewise.
75855         * math/s_significandf.c: Likewise.
75856         * math/s_significandl.c: Likewise.
75857         * math/w_jnl.c: Likewise.
75858         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
75859         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
75860         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
75861         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
75862         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
75863         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
75864         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
75865         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
75866         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
75867         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
75868         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
75869         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
75870         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
75871         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
75872         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
75873         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
75874         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
75875         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
75876         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
75877         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75878         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75879         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
75880         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
75881         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
75882         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
75883         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
75884         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
75885         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
75886         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
75887         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
75888         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
75889         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
75890         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
75891         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
75892         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
75893         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
75894         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
75895         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
75896         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
75897         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
75898         * sysdeps/ieee754/k_standard.c: Likewise.
75899         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75900         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
75901         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
75902         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
75903         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
75904         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
75905         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
75906         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
75907         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
75908         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
75909         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
75910         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
75911         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
75912         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
75913         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
75914         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
75915         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
75916         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
75917         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
75918         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
75919         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
75920         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
75921         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
75922         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
75923         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
75924         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
75925         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75926         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75927         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
75928         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
75929         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
75930         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
75931         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
75932         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
75933         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
75934         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
75935         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
75936         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
75937         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
75938         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
75939         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
75940         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
75941         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
75942         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
75943         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
75944         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
75945         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
75946         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
75947         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
75948         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
75949         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
75950         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
75951         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
75952         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
75953         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
75954         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
75955         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
75956         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
75957         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
75958         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
75959         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
75960         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
75961         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
75962         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
75963         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
75964         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
75965         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
75966         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
75967         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
75968         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
75969         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
75970         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
75971         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
75972         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
75973         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
75974         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
75975         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
75976         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
75977         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
75978         * sysdeps/ieee754/s_matherr.c: Likewise.
75979         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
75980         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
75981         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
75982         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
75983
75984 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75985
75986         * crypt/md5.h: Remove __STDC__ conditionals.
75987         * libio/libioP.h: Likewise.
75988         * locale/programs/config.h: Likewise.
75989         * sysdeps/generic/sysdep.h: Likewise.
75990         * sysdeps/i386/asm-syntax.h: Likewise.
75991         * sysdeps/s390/asm-syntax.h: Likewise.
75992         * sysdeps/unix/sysdep.h: Likewise.
75993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
75994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
75995
75996 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75997
75998         * libio/libio.h: Remove __STDC__ conditionals.
75999         * malloc/obstack.h: Likewise.
76000         * math/complex.h: Likewise.
76001         * math/math.h: Likewise.
76002         * sysdeps/generic/_G_config.h: Likewise.
76003         * sysdeps/gnu/_G_config.h: Likewise.
76004         * sysdeps/mach/hurd/_G_config.h: Likewise.
76005         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76006         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
76007         * sysdeps/sparc/bits/mathdef.h: Likewise.
76008
76009 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
76010
76011         [BZ #13583]
76012         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
76013         Clean up HAS_* macros.
76014         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
76015         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
76016         possible.
76017         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
76018         HAS_AVX.
76019         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76020         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76021         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76022         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76023         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76024
76025 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
76026
76027         * elf/tst-unique3.cc (gets): Remove declaration.
76028         * elf/tst-unique3lib.cc (gets): Likewise.
76029         * elf/tst-unique3lib2.cc (gets): Likewise.
76030         * elf/tst-unique4.cc (gets): Likewise.
76031
76032 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
76033
76034         * include/stdio.h: Add C++ protection.  Add gets declarations and
76035         definitions.
76036         * debug/tst-chk1.c: Don't declare gets here.
76037         * stdio-common/tst-gets.c: Likewise.
76038
76039 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76040
76041         * posix/glob: Remove directory.
76042
76043 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76044
76045         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
76046
76047 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
76048
76049         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
76050         of the non-standard EPFNOSUPPORT.
76051
76052 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76053
76054         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
76055         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
76056         ANYWHERE set to 1 only on KERN_NO_SPACE error.
76057
76058 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
76059
76060         * wcsmbs/uchar.h: Test __STDC_VERSION__.
76061
76062 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
76063
76064         * nscd/aicache.c (addhstaiX): Do not cache negative results of
76065         transient errors.
76066         * nscd/grpcache.c (cache_addgr): Likewise.
76067         * nscd/hstcache.c (cache_addhst): Likewise.
76068         * nscd/initgrcache.c (addinitgroupsX): Likewise.
76069         * nscd/pwdcache.c (cache_addpw): Likewise.
76070         * nscd/servicescache.c (cache_addserv): Likewise.
76071
76072 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
76073
76074         * malloc/malloc.c: Various cleanups.
76075         * malloc/hooks.c: Likewise.
76076
76077         * stdlib/Makefile (tests): Add bug-fmtmsg1.
76078         * stdlib/bug-fmtmsg1.c: New file.
76079
76080         * stdlib/fmtmsg.c (init): Add missing unlock.
76081         Patch by Peng Haitao <penght@cn.fujitsu.com>.
76082
76083 2012-01-12  Marek Polacek  <polacek@redhat.com>
76084
76085         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
76086         and _GNU_SOURCE.
76087
76088 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76089
76090         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
76091         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
76092         macro to ensure uniqueness of label name.
76093         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76094         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76095
76096 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
76097
76098         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
76099
76100         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
76101         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
76102         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
76103         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
76104
76105 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
76106
76107         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
76108
76109         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
76110         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
76111         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
76112
76113         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
76114
76115         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
76116         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
76117         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
76118         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
76119
76120         * math/bits/math-finite.h: Add ldexp support.
76121
76122 2012-01-10  Marek Polacek  <polacek@redhat.com>
76123
76124         * locale/programs/localedef.h (show_archive_content): Add noreturn
76125         attribute.
76126
76127 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
76128
76129         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
76130
76131 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76132
76133         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
76134
76135         * io/Makefile (headers): Add bits/poll2.h.
76136
76137 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
76138
76139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
76140         typo #include statement.
76141
76142 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76143
76144         * include/sys/cdefs.h: Define __attribute_alloc_size.
76145         * catgets/gencat.c: Add alloc_size attribute and apply consistently
76146         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
76147         * elf/pldd.c: Likewise.
76148         * iconv/iconv_charmap.c: Likewise.
76149         * iconv/iconvconfig.c: Likewise.
76150         * iconv/strtab.c: Likewise.
76151         * locale/programs/locale.c: Likewise.
76152         * locale/programs/localedef.h: Likewise.
76153         * locale/programs/simple-hash.c: Likewise.
76154         * nscd/nscd.h: Likewise.
76155         * nss/makedb.c: Likewise.
76156         * sysdeps/generic/ldconfig.h: Likewise.
76157         * locale/programs/localedef.c: Remove xmalloc prototype.
76158         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
76159
76160 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
76161
76162         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
76163         appropriate.
76164
76165 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76166
76167         * math/Makefile (tests): Add tst-CMPLX.
76168         * math/tst-CMPLX.c: New file.
76169
76170         * math/complex.h (CMPLXL): Fix typo.
76171
76172         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
76173         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
76174         GLIBC_2.16.
76175         * debug/tst-chk1.c: Add poll and ppoll tests.
76176         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
76177         * include/sys/poll.h: Add hidden proto for ppoll.
76178         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
76179         * sysdeps/mach/hurd/ppoll.c: Likewise.
76180         * io/ppoll.c: Likewise.
76181         * debug/poll_chk.c: New file.
76182         * debug/ppoll_chk.c: New file.
76183         * include/bits/poll2.h: New file.
76184         * io/bits/poll2.h: New file.
76185
76186         [BZ #1350]
76187         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
76188
76189         * configure.in: static is always set to yes.  Remove.
76190         * config.make.in: Don't set build-static.
76191         * Makeconfig: Remove use of build-static.
76192         * dlfcn/Makefile: Likewise.
76193         * elf/Makefile: Likewise.
76194         * math/Makefile: Likewise.
76195         * misc/Makefile: Likewise.
76196         * nptl/Makefile: Likewise.
76197         * sysdeps/mach/hurd/Makefile: Likewise.
76198
76199         * configure.in: PWD_P is not used anymore.
76200         * config.make.in: Remove PWD_P entry.
76201
76202         * configure.in: Remove last remnants of RANLIB.
76203         No need to check for signed size_t anymore.
76204         Don't set libc_commonpagesize and libc_relro_required here for Alpha
76205         and IA-64.
76206         Remove __builtin_expect test because we require at least gcc 3.4.
76207         * aclocal.m4: Likewise.
76208
76209         * wcsmbs/mbrtoc16.c: Implement using towc function.
76210         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
76211         * wcsmbs/wcsmbsload.c: Likewise.
76212         * iconv/gconv_simple.c: Likewise.
76213         * iconv/gconv_int.h: Likewise.
76214         * iconv/gconv_builtin.h: Likewise.
76215         * iconv/iconv_prog.c: Remove CHAR16 handling.
76216
76217         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
76218
76219         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
76220
76221         * configure.in: Remove --with-elf and --enable-bounded options.
76222         Dont set base_machine for ia64.  More non-ELF conditions removed.
76223         Remove testing and setting of leading underscore information.
76224         * config.make.in (build-bounded): Set to no.
76225         * config.h.in: Remove NO_UNDERSCORES entry.
76226         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
76227         them.
76228         * csu/start.c: Remove !NO_UNDERSCORE code.
76229         * locale/localeinfo.h: Likewise.
76230         * sysdeps/generic/machine-gmon.h: Likewise.
76231         * sysdeps/generic/sysdep.h: Likewise.
76232         * sysdeps/i386/sysdep.h: Likewise.
76233         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76234         * sysdeps/mach/sysdep.h: Likewise.
76235         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76236         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76237         * sysdeps/sh/sysdep.h: Likewise.
76238         * sysdeps/sparc/sparc32/alloca.S: Likewise.
76239         * sysdeps/unix/i386/sysdep.S: Likewise.
76240         * sysdeps/unix/sparc/start.c: Likewise.
76241         * sysdeps/unix/sparc/sysdep.S: Likewise.
76242         * sysdeps/unix/sparc/sysdep.h: Likewise.
76243         * sysdeps/unix/start.c: Likewise.
76244         * sysdeps/unix/x86_64/sysdep.S: Likewise.
76245         * sysdeps/x86_64/sysdep.h: Likewise.
76246
76247 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
76248
76249         [BZ #13553]
76250         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
76251         for non-gcc.
76252         * argp/argp-fmtstream.h: Use const instead __const.
76253         * argp/argp.h: Likewise.
76254         * assert/assert.h: Likewise.
76255         * bits/fenv.h: Likewise.
76256         * bits/sched.h: Likewise.
76257         * bits/sigset.h: Likewise.
76258         * bits/sigthread.h: Likewise.
76259         * catgets/nl_types.h: Likewise.
76260         * conform/data/pthread.h-data: Likewise.
76261         * crypt/crypt-private.h: Likewise.
76262         * crypt/crypt.h: Likewise.
76263         * crypt/crypt_util.c: Likewise.
76264         * ctype/ctype.h: Likewise.
76265         * debug/execinfo.h: Likewise.
76266         * debug/mbsnrtowcs_chk.c: Likewise.
76267         * debug/mbsrtowcs_chk.c: Likewise.
76268         * debug/wcsnrtombs_chk.c: Likewise.
76269         * debug/wcsrtombs_chk.c: Likewise.
76270         * debug/wcstombs_chk.c: Likewise.
76271         * dirent/dirent.h: Likewise.
76272         * dlfcn/dlfcn.h: Likewise.
76273         * elf/neededtest4.c: Likewise.
76274         * grp/grp.h: Likewise.
76275         * gshadow/gshadow.h: Likewise.
76276         * iconv/gconv.h: Likewise.
76277         * iconv/gconv_int.h: Likewise.
76278         * iconv/gconv_simple.c: Likewise.
76279         * iconv/iconv.h: Likewise.
76280         * iconv/loop.c: Likewise.
76281         * iconv/skeleton.c: Likewise.
76282         * include/aio.h: Likewise.
76283         * include/aliases.h: Likewise.
76284         * include/argz.h: Likewise.
76285         * include/arpa/inet.h: Likewise.
76286         * include/assert.h: Likewise.
76287         * include/dirent.h: Likewise.
76288         * include/dlfcn.h: Likewise.
76289         * include/execinfo.h: Likewise.
76290         * include/fcntl.h: Likewise.
76291         * include/fenv.h: Likewise.
76292         * include/glob.h: Likewise.
76293         * include/grp.h: Likewise.
76294         * include/libintl.h: Likewise.
76295         * include/mntent.h: Likewise.
76296         * include/netdb.h: Likewise.
76297         * include/pwd.h: Likewise.
76298         * include/rpc/netdb.h: Likewise.
76299         * include/sched.h: Likewise.
76300         * include/search.h: Likewise.
76301         * include/shadow.h: Likewise.
76302         * include/signal.h: Likewise.
76303         * include/stdio.h: Likewise.
76304         * include/stdlib.h: Likewise.
76305         * include/string.h: Likewise.
76306         * include/sys/socket.h: Likewise.
76307         * include/sys/stat.h: Likewise.
76308         * include/sys/statfs.h: Likewise.
76309         * include/sys/statvfs.h: Likewise.
76310         * include/sys/syslog.h: Likewise.
76311         * include/sys/time.h: Likewise.
76312         * include/sys/uio.h: Likewise.
76313         * include/time.h: Likewise.
76314         * include/unistd.h: Likewise.
76315         * include/utmp.h: Likewise.
76316         * include/wchar.h: Likewise.
76317         * include/wctype.h: Likewise.
76318         * inet/aliases.h: Likewise.
76319         * inet/arpa/inet.h: Likewise.
76320         * inet/netinet/ether.h: Likewise.
76321         * inet/netinet/in.h: Likewise.
76322         * intl/libintl.h: Likewise.
76323         * io/bits/fcntl2.h: Likewise.
76324         * io/fcntl.h: Likewise.
76325         * io/ftw.h: Likewise.
76326         * io/sys/poll.h: Likewise.
76327         * io/sys/stat.h: Likewise.
76328         * io/sys/statfs.h: Likewise.
76329         * io/sys/statvfs.h: Likewise.
76330         * io/utime.h: Likewise.
76331         * libio/bits/stdio.h: Likewise.
76332         * libio/bits/stdio2.h: Likewise.
76333         * libio/libio.h: Likewise.
76334         * libio/libioP.h: Likewise.
76335         * libio/stdio.h: Likewise.
76336         * locale/lc-ctype.c: Likewise.
76337         * locale/locale.h: Likewise.
76338         * login/utmp.h: Likewise.
76339         * malloc/arena.c: Likewise.
76340         * malloc/malloc.c: Likewise.
76341         * malloc/malloc.h: Likewise.
76342         * malloc/mcheck.c: Likewise.
76343         * malloc/mtrace.c: Likewise.
76344         * math/bits/mathcalls.h: Likewise.
76345         * math/fenv.h: Likewise.
76346         * math/math_private.h: Likewise.
76347         * misc/bits/error.h: Likewise.
76348         * misc/bits/syslog.h: Likewise.
76349         * misc/err.h: Likewise.
76350         * misc/error.h: Likewise.
76351         * misc/fstab.h: Likewise.
76352         * misc/mntent.h: Likewise.
76353         * misc/regexp.h: Likewise.
76354         * misc/search.h: Likewise.
76355         * misc/sgtty.h: Likewise.
76356         * misc/sys/mman.h: Likewise.
76357         * misc/sys/syslog.h: Likewise.
76358         * misc/sys/uio.h: Likewise.
76359         * misc/sys/xattr.h: Likewise.
76360         * misc/ttyent.h: Likewise.
76361         * nis/rpcsvc/ypclnt.h: Likewise.
76362         * nss/nss.h: Likewise.
76363         * posix/bits/unistd.h: Likewise.
76364         * posix/fnmatch.h: Likewise.
76365         * posix/glob.h: Likewise.
76366         * posix/sched.h: Likewise.
76367         * posix/spawn.h: Likewise.
76368         * posix/sys/wait.h: Likewise.
76369         * posix/unistd.h: Likewise.
76370         * posix/wordexp.h: Likewise.
76371         * pwd/pwd.h: Likewise.
76372         * resolv/netdb.h: Likewise.
76373         * resource/sys/resource.h: Likewise.
76374         * rt/aio.h: Likewise.
76375         * rt/bits/mqueue2.h: Likewise.
76376         * rt/mqueue.h: Likewise.
76377         * shadow/shadow.h: Likewise.
76378         * signal/signal.h: Likewise.
76379         * socket/send.c: Likewise.
76380         * socket/sendto.c: Likewise.
76381         * socket/sys/socket.h: Likewise.
76382         * stdio-common/printf.h: Likewise.
76383         * stdlib/bits/stdlib.h: Likewise.
76384         * stdlib/fmtmsg.h: Likewise.
76385         * stdlib/monetary.h: Likewise.
76386         * stdlib/stdlib.h: Likewise.
76387         * stdlib/ucontext.h: Likewise.
76388         * streams/stropts.h: Likewise.
76389         * string/argz.h: Likewise.
76390         * string/bits/string2.h: Likewise.
76391         * string/string.h: Likewise.
76392         * string/strings.h: Likewise.
76393         * sunrpc/rpc/auth.h: Likewise.
76394         * sunrpc/rpc/auth_des.h: Likewise.
76395         * sunrpc/rpc/clnt.h: Likewise.
76396         * sunrpc/rpc/netdb.h: Likewise.
76397         * sunrpc/rpc/pmap_clnt.h: Likewise.
76398         * sunrpc/rpc/xdr.h: Likewise.
76399         * sysdeps/generic/inttypes.h: Likewise.
76400         * sysdeps/generic/net/if.h: Likewise.
76401         * sysdeps/generic/sys/swap.h: Likewise.
76402         * sysdeps/gnu/net/if.h: Likewise.
76403         * sysdeps/gnu/utmpx.h: Likewise.
76404         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
76405         * sysdeps/i386/i486/bits/string.h: Likewise.
76406         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
76407         * sysdeps/s390/bits/string.h: Likewise.
76408         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
76409         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
76410         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
76411         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
76412         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
76413         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
76414         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
76415         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
76416         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
76417         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
76418         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
76419         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
76420         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
76421         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
76422         * sysdeps/unix/sysv/linux/readv.c: Likewise.
76423         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
76424         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
76425         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76426         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
76427         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
76428         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76429         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
76430         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
76431         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
76432         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
76433         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
76434         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
76435         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76436         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
76437         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
76438         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
76439         * sysvipc/sys/ipc.h: Likewise.
76440         * sysvipc/sys/msg.h: Likewise.
76441         * sysvipc/sys/sem.h: Likewise.
76442         * sysvipc/sys/shm.h: Likewise.
76443         * termios/termios.h: Likewise.
76444         * time/sys/time.h: Likewise.
76445         * time/time.h: Likewise.
76446         * wcsmbs/bits/wchar2.h: Likewise.
76447         * wcsmbs/uchar.h: Likewise.
76448         * wcsmbs/wchar.h: Likewise.
76449         * wctype/wctype.h: Likewise.
76450
76451         [BZ #13551]
76452         * Makeconfig: Remove all but ELF support including AIX support.
76453         * Makerules: Likewise.
76454         * config.h.in: Likewise.
76455         * config.make.in: Likewise.
76456         * configure: Likewise.
76457         * configure.in: Likewise.
76458         * csu/Makefile: Likewise.
76459         * csu/version.c: Likewise.
76460         * debug/Makefile: Likewise.
76461         * dlfcn/Makefile: Likewise.
76462         * elf/Makefile: Likewise.
76463         * extra-lib.mk: Likewise.
76464         * iconv/Makefile: Likewise.
76465         * include/libc-symbols.h: Likewise.
76466         * include/shlib-compat.h: Likewise.
76467         * resolv/Makefile: Likewise.
76468         * resolv/res_libc.c: Likewise.
76469         * rt/Makefile: Likewise.
76470         * sysdeps/i386/asm-syntax.h: Likewise.
76471         * sysdeps/i386/sysdep.h: Likewise.
76472         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76473         * sysdeps/mach/sysdep.h: Likewise.
76474         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
76475         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
76476         * sysdeps/s390/asm-syntax.h: Likewise.
76477         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76478         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76479         * sysdeps/sh/sysdep.h: Likewise.
76480         * sysdeps/unix/sparc/sysdep.h: Likewise.
76481         * sysdeps/wordsize-32/divdi3.c: Likewise.
76482         * sysdeps/x86_64/sysdep.h: Likewise.
76483
76484         * argp/Versions: Remove _argp_unlock_xxx.
76485
76486         [BZ #13559]
76487         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
76488         * abilist/libBrokenLocale.abilist: Likewise.
76489         * abilist/libanl.abilist: Likewise.
76490         * abilist/libc.abilist: Likewise.
76491         * abilist/libcrypt.abilist: Likewise.
76492         * abilist/libdl.abilist: Likewise.
76493         * abilist/libm.abilist: Likewise.
76494         * abilist/libnsl.abilist: Likewise.
76495         * abilist/libpthread.abilist: Likewise.
76496         * abilist/libresolv.abilist: Likewise.
76497         * abilist/librt.abilist: Likewise.
76498         * abilist/libthread_db.abilist: Likewise.
76499         * abilist/libutil.abilist: Likewise.
76500         * abilist/libnss_db.abilist: New file.
76501
76502         * scripts/abilist.awk: Add support for indirect functions.
76503
76504         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
76505
76506         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
76507
76508         * shlib-versions: Remove entries for ports architectures.
76509
76510         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
76511         files in ports.
76512         * elf/stackguard-macros.h: Remove support for IA-64.
76513         * elf/tst-auditmod1.c: Likewise.
76514         * sysdeps/generic/ldsodefs.h: Likewise.
76515
76516         * sysdeps/unix/sysv/linux/configure.in: Ports should define
76517         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
76518         configure files.
76519
76520         [BZ #13552]
76521         * configure.in: Remove --enable-omitfp support.
76522         * FAQ.in: Adjust.
76523         * config.make.in: Likewise.
76524         * Makeconfig: Likewise.
76525         * manual/install.texi: Likewise.
76526
76527         In case anyone cares, the IA-64 architecture could move to ports.
76528         * sysdeps/ia64/*: Removed.
76529         * sysdeps/unix/sysv/linux/ia64/*: Removed.
76530         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
76531
76532         [BZ #13555]
76533         * configure.in: Remove entries for unsupported architectures.
76534
76535         [BZ #13533]
76536         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
76537         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
76538         routines.
76539         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
76540         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
76541         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
76542         fall back to using wcrtomb.
76543         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
76544         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
76545         renaming.
76546         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
76547         * wcsmbs/tst-c16c32-1.c: New file.
76548
76549         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
76550         local variable.
76551
76552         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
76553
76554         * elf/tst-unique3.cc: Add explicit declaration of gets.
76555         * elf/tst-unique3lib.cc: Likewise.
76556         * elf/tst-unique3lib2.cc: Likewise.
76557         * elf/tst-unique4.cc: Likewise.
76558
76559         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
76560
76561 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
76562
76563         [BZ #13566]
76564         * assert/assert.h (static_assert): Don't define for C++.
76565         * libio/stdio.h (gets): Do declare for C++ <= C++11.
76566         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
76567
76568 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
76569
76570         * iconv/loop.c (single loop): Fix assertion in storing of
76571         remaining bytes.
76572
76573         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
76574
76575 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
76576
76577         * posix/getconf.c: Update copyright year.
76578         * nss/getent.c: Likewise.
76579         * nss/makedb.c: Likewise.
76580         * iconv/iconvconfig.c: Likewise.
76581         * iconv/iconv_prog.c: Likewise.
76582         * elf/ldconfig.c: Likewise.
76583         * elf/pldd.c: Likewise.
76584         * elf/sotruss.ksh: Likewise.
76585         * catgets/gencat.c: Likewise.
76586         * csu/version.c: Likewise.
76587         * elf/ldd.bash.in: Likewise.
76588         * elf/sprof.c (print_version): Likewise.
76589         * locale/programs/locale.c: Likewise.
76590         * locale/programs/localedef.c: Likewise.
76591         * login/programs/pt_chown.c: Likewise.
76592         * nscd/nscd.c (print_version): Likewise.
76593         * debug/xtrace.sh: Likewise.
76594         * malloc/memusage.sh: Likewise.
76595         * malloc/mtrace.pl: Likewise.
76596         * debug/catchsegv.sh: Likewise.
76597
76598 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
76599
76600         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
76601         pure attribute.
76602
76603 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
76604
76605         [BZ #13533]
76606         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
76607         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
76608         transformations.
76609         * iconv/gconv_int.h: Likewise.
76610         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
76611         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
76612         from libc for GLIBC_2.16.
76613         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
76614         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
76615         * wcsmbs/uchar.h: Really define mbstate_t.
76616         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
76617         * wcsmbs/c16rtomb.c: New file.
76618         * wcsmbs/mbrtoc16.c: New file.
76619         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
76620         for C/POSIX locale.
76621         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
76622         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
76623
76624         * wcsmbs/wchar.h: Add missing __restrict.
76625
76626 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76627
76628         [BZ #13532]
76629         * time/Makefile (routines): Add timespec_get.
76630         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
76631         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
76632         timespec for ISO C11.
76633         * time/timespec_get.c: New file.
76634         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
76635         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
76636
76637         [BZ #13531]
76638         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
76639         * stdlib/stdlib.h: Declare aligned_alloc.
76640         * Versions.def: Add GLIBC_2.16 for libc.
76641         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
76642
76643         [BZ 13527]
76644         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
76645         ISO C11.
76646
76647         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
76648         code.
76649
76650         [BZ #13528]
76651         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
76652
76653         [BZ #13529]
76654         * assert/assert.h (static_assert): Define.
76655
76656         * version.h: Update for 2.16 development version.
76657
76658         [BZ #13526]
76659         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
76660         _ISOC11_SOURCE.
76661
76662         * version.h (RELEASE): Bump for 2.15 release.
76663         * include/features.h (__GLIBC_MINOR__): Bump to 15.
76664
76665         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
76666         Patch by Marek Polacek <mpolacek@redhat.com>.
76667
76668         * bits/byteswap.h: Protect long long constants with __extension__.
76669         * sysdeps/i386/bits/byteswap.h: Likewise.
76670         * sysdeps/ia64/bits/byteswap.h: Likewise.
76671         * sysdeps/s390/bits/byteswap.h: Likewise.
76672         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76673
76674 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76675
76676         [BZ #13540]
76677         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
76678         destination buffer.
76679         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
76680
76681 2011-12-23  Marek Polacek  <polacek@redhat.com>
76682
76683         * elf/dl-addr.c (determine_info): Add inline keyword.
76684         * elf/tst-auditmod4b.c (check_avx): Likewise.
76685         * elf/tst-auditmod6b.c (check_avx): Likewise.
76686         * elf/tst-auditmod6c.c (check_avx): Likewise.
76687         * elf/tst-auditmod7b.c (check_avx): Likewise.
76688
76689 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76690
76691         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
76692         !__SSE_MATH__.
76693
76694 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76695
76696         [BZ #13540]
76697         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
76698         processing for last bytes.
76699
76700 2011-08-06  Bruno Haible  <bruno@clisp.org>
76701
76702         [BZ #13061]
76703         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
76704         U+0385, not to U+1FEE.
76705
76706         [BZ #13062]
76707         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
76708         entry for U+00A5 U+0301.
76709
76710 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76711
76712         [BZ #13166]
76713         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
76714         buffer for the output is too small.
76715
76716         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
76717         optimization.
76718
76719         [BZ #13185]
76720         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
76721         SSE flags if possible.
76722
76723 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76724
76725         [BZ #13540]
76726         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
76727         processing for last bytes.
76728
76729 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
76730
76731         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
76732         (syscall-list-default-options, syscall-list-default-condition)
76733         (syscall-list-includes): Define.
76734         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
76735         list of ABIs and options and #if conditions for each ABI.  Do not
76736         handle common syscalls between ABIs specially.
76737         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
76738         Remove.
76739         (syscall-list-variants, syscall-list-32bit-options)
76740         (syscall-list-32bit-condition, syscall-list-64bit-options)
76741         (syscall-list-64bit-condition): Define.
76742         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
76743         (syscall-list-variants, syscall-list-32bit-options)
76744         (syscall-list-32bit-condition, syscall-list-64bit-options)
76745         (syscall-list-64bit-condition): Define.
76746         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
76747         Remove.
76748         (syscall-list-variants, syscall-list-32bit-options)
76749         (syscall-list-32bit-condition, syscall-list-64bit-options)
76750         (syscall-list-64bit-condition): Define.
76751         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
76752         Remove.
76753         (syscall-list-variants, syscall-list-32bit-options)
76754         (syscall-list-32bit-condition, syscall-list-64bit-options)
76755         (syscall-list-64bit-condition): Define.
76756
76757 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76758
76759         * locale/iso-639.def: Add brx entry.
76760
76761         [BZ #13328]
76762         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
76763         Proposed by Mariusz_Cukr <marcukr@op.pl>.
76764
76765         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
76766         __feraiseexcept_renamed.
76767
76768 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76769
76770         [BZ #13538]
76771         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
76772         EPOLLET with unsigned values.
76773         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76774         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76775
76776         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
76777         to large cancellation.
76778         * math/s_cacoshf.c: Likewise.
76779         * math/s_cacoshl.c: Likewise.
76780
76781 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
76782
76783         [BZ #13305]
76784         [BZ #12786]
76785         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
76786         * math/s_cacoshf.c: Likewise.
76787         * math/s_cacoshl.c: Likewise.
76788
76789 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76790
76791         [BZ #13439]
76792         * iconv/gconv.h: Define __GCONV_SWAP.
76793         * iconvdata/unicode.c: The swap bit must be stored in __flags.
76794         * iconvdata/utf-16.c: Likewise.
76795         * iconvdata/utf-32.c: Likewise.
76796
76797 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
76798
76799         [BZ #13524]
76800         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
76801         numerator after shifting it by one limb.
76802
76803 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
76804
76805         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
76806         under [__USE_EXTERN_INLINES].
76807
76808 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76809
76810         [BZ #13446]
76811         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
76812
76813 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76814
76815         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
76816         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
76817         optimized code.
76818         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
76819         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
76820         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
76821         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
76822         for strncasecmp/strncasecmp_l compilation.
76823         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
76824         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
76825
76826 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
76827
76828         [BZ #13484]
76829         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
76830         of __asm__.
76831
76832 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76833
76834         [BZ #13506]
76835         * time/tzfile.c (__tzfile_read): Check values from file header.
76836
76837 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
76838
76839         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
76840         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
76841         * powerpc/powerpc32/dl-start.S: Likewise.
76842         * powerpc/powerpc32/elf/start.S: Likewise.
76843         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
76844         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
76845         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
76846         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
76847         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
76848         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
76849         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
76850         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
76851         * powerpc/powerpc32/fpu/s_round.S: Likewise.
76852         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
76853         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
76854         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
76855         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
76856         * powerpc/powerpc32/memset.S: Likewise.
76857         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
76858         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
76859         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
76860         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
76861         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
76862         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
76863         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
76864         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
76865         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
76866         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
76867         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
76868         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76869         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76870
76871 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76872
76873         * math/libm-test.inc: Added more nearbyint tests.
76874         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
76875         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
76876         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
76877         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
76878
76879 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
76880
76881         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
76882         FD_CLOEXEC.
76883
76884 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76885
76886         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
76887         Add wcscpy-ssse3 wcscpy-c.
76888         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
76889         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
76890         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
76891         * sysdeps/x86_64/wcschr.S: New file.
76892         * sysdeps/x86_64/wcsrchr.S: New file.
76893         * string/test-strcmp.c: Remove checking of wcscmp function for
76894         wrong alignments.
76895         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
76896         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
76897         wcsrchr-sse2 wcsrchr-c.
76898         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
76899         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
76900         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
76901         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
76902         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
76903         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
76904         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
76905         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
76906         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
76907         * wcsmbc/wcschr.c (WCSCHR): New macro.
76908
76909 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76910
76911         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
76912         * wcsmbs/test-wcsrchr.c: New file.
76913         * string/test-strrchr.c: Add wcsrchr support.
76914         (WIDE): New macro.
76915         * wcsmbs/test-wcscpy.c: New file.
76916         * string/test-strcpy.c: Add wcscpy support.
76917         (WIDE): New macro.
76918
76919 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
76920
76921         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
76922         the inner loop.
76923
76924 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
76925
76926         [BZ #13472]
76927         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
76928
76929 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
76930
76931         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
76932         Minor optimizations.
76933
76934         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
76935         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
76936         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
76937
76938 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
76939
76940         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
76941         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
76942         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
76943         for gcc to avoid warnings.
76944         * inet/Makefile (tests): Add tst-checks.
76945         * inet/tst-checks.c: New file.
76946
76947         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
76948         warning.
76949
76950         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
76951         __wmemcmp_sse2.
76952
76953         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
76954         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
76955
76956         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
76957
76958 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
76959
76960         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
76961         problem.
76962
76963         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
76964
76965 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
76966
76967         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
76968         conditional on GCC version.
76969         (__arch_compare_and_exchange_val_8_acq)
76970         (__arch_compare_and_exchange_val_16_acq)
76971         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
76972         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
76973         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
76974
76975 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
76976
76977         * sysdeps/sh/backtrace.c: New file.
76978
76979 2011-12-02  Andreas Schwab  <schwab@redhat.com>
76980
76981         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
76982         parenthesis.
76983
76984 2011-12-01  Andreas Schwab  <schwab@redhat.com>
76985
76986         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
76987         falling back to utime.
76988
76989 2011-11-30  Andreas Schwab  <schwab@redhat.com>
76990
76991         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
76992         expectations for float.
76993
76994 2011-11-29  Andreas Schwab  <schwab@redhat.com>
76995
76996         * locale/weight.h (findidx): Add parameter len.
76997         * locale/weightwc.h (findidx): Likewise.
76998         * posix/fnmatch_loop.c (FCT): Adjust caller.
76999         * posix/regcomp.c (build_equiv_class): Likewise.
77000         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
77001         * posix/regexec.c (check_node_accept_bytes): Likewise.
77002         * string/strcoll_l.c (STRCOLL): Likewise.
77003         * string/strxfrm_l.c (STRXFRM): Likewise.
77004
77005 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
77006
77007         * Makefile.in: Remove CVSOPT handling.
77008         * configure.in: Remove use of AC_REVISION.
77009         * iconvdata/Makefile (distribute): No need to filter out CVS.
77010         * scripts/list-sources.sh: Remove CVS, subversion and monotone
77011         handling.
77012
77013 2011-11-16  Andreas Schwab  <schwab@redhat.com>
77014
77015         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
77016         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
77017         [USE_AS_STRNCASECMP_L]: Likewise.
77018         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
77019         NO_TLS_DIRECT_SEG_REFS.
77020         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
77021         Fix argument offsets for non-PIC.
77022         [USE_AS_STRNCASECMP_L]: Likewise.
77023         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
77024         NO_TLS_DIRECT_SEG_REFS.
77025
77026 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77027
77028         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
77029         O_CLOEXEC.
77030         * locale/loadlocale.c (_nl_load_locale): Likewise.
77031
77032 2011-11-15  Andreas Schwab  <schwab@redhat.com>
77033
77034         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
77035         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
77036         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
77037         (SYSCALL_GETTIME): Set errno on error.
77038
77039         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
77040         count references to noai6ai_cached.
77041
77042 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77043
77044         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
77045
77046         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
77047         FD_CLOEXEC for /proc/self/maps.
77048
77049         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
77050         FD_CLOEXEC for /proc/meminfo.
77051
77052         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
77053         gai.conf.
77054
77055         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
77056         FD_CLOEXEC for given file.
77057
77058         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
77059
77060         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
77061         FD_CLOEXEC for /etc/hosts.
77062         (_gethtent): Likewise.
77063
77064         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
77065
77066         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
77067         cancellation and set FD_CLOEXEC for /etc/netgroup.
77068
77069         * nss/nss_files/files-key.c (search): Don't allow cancellation when
77070         reading /etc/publickey.
77071
77072         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
77073         allow cancellation when reading /etc/group.
77074
77075         * nss/nss_files/files-alias.c (internal_setent): Don't allow
77076         cancellation.
77077         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
77078
77079         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
77080         when using data file.
77081
77082         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
77083
77084         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
77085         (write_nis_obj): Use "c" and "e" in fopen.
77086
77087         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
77088
77089         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
77090
77091         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
77092
77093         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
77094
77095         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
77096         locale.alias.
77097
77098         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
77099
77100         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
77101
77102         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
77103
77104         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
77105         file parsing and set FD_CLOEXEC.
77106
77107 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77108
77109         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
77110
77111 2011-11-14  Andreas Schwab  <schwab@redhat.com>
77112
77113         * malloc/arena.c (arena_get2): Don't call reused_arena when
77114         _int_new_arena failed.
77115
77116 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77117
77118         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
77119         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
77120         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
77121         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
77122         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
77123         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
77124         to compile strcasecmp and strncasecmp.
77125         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
77126         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
77127
77128         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
77129
77130 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
77131
77132         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
77133         locale-defines.sym to gen-as-const-headers.
77134         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
77135         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
77136         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
77137         to compile strcasecmp and strncasecmp.
77138         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
77139         strcasecmp_l and strncasecmp_l.
77140         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
77141         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
77142         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
77143         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
77144         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
77145         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
77146         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
77147         * sysdeps/i386/i686/multiarch/strncase.S: New file.
77148         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
77149         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
77150         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
77151
77152 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
77153
77154         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
77155         result of SYSDEP_GETTIME_CPU to retval.
77156         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
77157         parameter list to macro.  Remove trailing semicolon.  Adjust users.
77158
77159         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
77160         variable.
77161
77162         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
77163         mantissa words.
77164         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
77165
77166         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
77167         from unused variable.
77168
77169         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
77170         DWARF definitions.
77171         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
77172         for assembling.
77173
77174         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
77175         over namespaces.
77176
77177         * sunrpc/rpc_prot.c (rejected): Fix case value.
77178
77179         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
77180         unsigned long long int to avoid warnings in shift.
77181
77182         * posix/regex_internal.c (re_string_reconstruct): Actually use result
77183         of use of trans.
77184         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
77185         variable tmp.
77186
77187         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
77188         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
77189         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
77190
77191         * nis/nis_table.c (nis_list): Use variable of correct type for
77192         result of __follow_path call.
77193
77194 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77195
77196         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
77197         of math functions ceil, trunc, floor, round, and sqrt, when
77198         avaliable on the platform.
77199         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
77200         name clash.
77201         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
77202         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
77203         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
77204
77205 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
77206
77207         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
77208         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
77209
77210 2011-11-11  Roland McGrath  <roland@hack.frob.com>
77211
77212         * include/unistd.h: Fix __readlink return type.
77213         Reported by Chris Metcalf <cmetcalf@tilera.com>.
77214
77215 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
77216
77217         * stdlib/ucontext.h: Undo last change for makecontext.
77218
77219 2011-11-11  Andreas Schwab  <schwab@redhat.com>
77220
77221         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
77222
77223         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
77224         * setjmp/setjmp.h: Mark functions as non-leaf.
77225         * setjmp/bits/setjmp2.h: Likewise.
77226         * stdlib/ucontext.h: Likewise.
77227
77228 2011-11-10  Andreas Schwab  <schwab@redhat.com>
77229
77230         * malloc/arena.c (_int_new_arena): Don't increment narenas.
77231         (reused_arena): Don't check arena limit.
77232         (arena_get2): Atomically check arena limit.
77233
77234 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
77235
77236         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
77237         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
77238
77239         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
77240         instructions.
77241
77242 2011-11-07  Andreas Schwab  <schwab@redhat.com>
77243
77244         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
77245         handler when locking.
77246
77247         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
77248         Fix size of allocated buffer.
77249
77250 2011-11-04  Andreas Schwab  <schwab@redhat.com>
77251
77252         [BZ #10103]
77253         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
77254         declarations for long double functions.
77255         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
77256
77257         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
77258
77259 2011-11-03  Andreas Schwab  <schwab@redhat.com>
77260
77261         * nscd/nscd.c (main): Don't start AVC thread until credentials are
77262         installed.
77263
77264         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
77265         is disabled.
77266
77267 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77268
77269         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
77270
77271 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
77272
77273         * include/alloca.h (stackinfo_alloca_round): Define.
77274         (extend_alloca): Use it.
77275         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
77276         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
77277         here.
77278
77279         * scripts/check-local-headers.sh: Ignore libaudit.h.
77280
77281         * nscd/Makefile (extra-objs): Make recursively expanded.
77282
77283 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
77284
77285         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
77286         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
77287
77288         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
77289         * posix/tst-rfc3484-2.c: Likewise.
77290         * posix/tst-rfc3484-3.c: Likewise.
77291
77292         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
77293         process_vm_writev.
77294         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
77295         process_vm_writev.
77296         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
77297         process_vm_writev from libc using GLIBC_2.15 version.
77298
77299         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
77300
77301 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
77302
77303         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
77304         stack usage.
77305
77306 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
77307
77308         [BZ #13367]
77309         * nss/getent.c (initgroups_keys): Show error message in case no group
77310         names are given.
77311
77312         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
77313         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
77314         __bump_nl_timestamp.
77315         * nscd/connections (nscd_init): When host database is served open
77316         netlink socket and request notification about configuration changes.
77317         (main_loop_poll): Track netlink file descriptor and bump timestamp
77318         in case data becomes available.
77319         (main_loop_epoll): Likewise.
77320         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
77321         (database_pers_head): Add extra_data fileds.
77322         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
77323         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
77324         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
77325         Adjust caller.
77326         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
77327         in6ai data, call __free_in6ai.
77328         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
77329         Add -DHAVE_NETLINK.
77330         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
77331         interface information.  Reuse previous data if netlink timestamp
77332         is not changed.
77333         (__bump_nl_timestamp): New function.
77334         (__free_in6ai): New function.
77335
77336 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
77337
77338         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
77339         close_not_cancel_no_status here.
77340         (__check_pf): Reorganize code a bit to not call close twice if OOM.
77341
77342 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77343
77344         [BZ #13276]
77345         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
77346         return value.
77347
77348         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
77349         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
77350         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
77351
77352 2011-07-03  Andreas Jaeger  <aj@suse.de>
77353
77354         [BZ #10709]
77355         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
77356         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
77357         * math/libm-test.inc (sin_test): Add test case.
77358
77359 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77360
77361         [BZ #13337]
77362         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
77363         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77364
77365         * elf/chroot_canon.c (chroot_canon): Cleanups.
77366
77367         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
77368
77369         [BZ #13335]
77370         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
77371         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77372
77373         * string/test-strchr.c: Make usable for strchrnul testing.
77374         * string/test-strchrnul.c: New file.
77375         * string/Makefile (strop-tests): Add strchrnul.
77376
77377         * po/it.po: Update from translation team.
77378         * po/es.po: Likewise.
77379
77380 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
77381
77382         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
77383         the three constants needed as parameters.  Drop the others.
77384         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
77385         __m128i_strloadu_tolower.
77386         Create and initialize variable zero and use it in all the places
77387         where _mm_setzero_si128 was used.
77388
77389         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
77390         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
77391         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
77392         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
77393         anymore.
77394         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
77395         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
77396         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
77397         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
77398         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
77399         __mpranred, __mptan.
77400         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
77401         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
77402         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
77403         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
77404         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
77405         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
77406         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
77407         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
77408         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
77409
77410 2011-10-28  Andreas Schwab  <schwab@redhat.com>
77411
77412         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
77413         redefine if SHARED.
77414         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
77415
77416         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
77417         wide char related routines to wcsmbs subdir.
77418
77419 2011-10-27  Andreas Schwab  <schwab@redhat.com>
77420
77421         [BZ #13344]
77422         * misc/sys/cdefs.h (__THROWNL): Define.
77423         * posix/unistd.h: Use __THREADNL instead of __THREAD
77424         for memory synchronization functions.
77425
77426 2011-10-26  Roland McGrath  <roland@hack.frob.com>
77427
77428         [BZ #13349]
77429         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
77430         doesn't exist.
77431         * manual/stdio.texi (Obstack Streams): Node removed.
77432
77433 2011-10-26  Andreas Schwab  <schwab@redhat.com>
77434
77435         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
77436         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77437         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77438
77439         * math/math_private.h (math_force_eval): Allow non-addressable
77440         arguments.
77441         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
77442
77443 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77444
77445         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
77446         file is not needed.
77447
77448         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
77449         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
77450         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
77451         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
77452         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
77453         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
77454         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
77455         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
77456         Add AVX variants.
77457         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
77458         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
77459         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
77460         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
77461         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
77462         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
77463         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
77464         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
77465         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
77466         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
77467         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
77468         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
77469         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
77470         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
77471         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
77472         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
77473         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
77474         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
77475         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
77476
77477         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
77478         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
77479
77480         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
77481         place.  Use VEX encoding when compiling for AVX.
77482
77483 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77484
77485         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
77486         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
77487
77488         * string/test-strchr.c (do_test): Don't generate NUL bytes.
77489
77490 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77491
77492         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
77493         useless if() expression.
77494         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77495         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
77496         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
77497         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77498         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
77499         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77500         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77501         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77502         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
77503         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77504         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
77505         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77506         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
77507         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77508         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
77509         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77510         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
77511         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
77512         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
77513
77514         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
77515
77516 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77517
77518         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
77519         condition.
77520         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77521
77522 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77523
77524         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
77525         .text section.  Avoid duplicate constants.
77526         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
77527         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77528         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77529         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77530         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77531         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77532         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77533         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77534         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
77535         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
77536         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
77537         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
77538         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
77539         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
77540         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
77541         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
77542         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
77543         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
77544         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
77545         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77546         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
77547         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
77548         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
77549         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
77550         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
77551         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
77552         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
77553         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
77554         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
77555         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
77556         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
77557         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
77558         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
77559         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
77560         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
77561         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
77562         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
77563         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
77564         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
77565         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
77566         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
77567         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
77568         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
77569         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
77570         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
77571
77572 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
77573
77574         * sysdeps/x86_64/dla.h: Move to ...
77575         * sysdeps/x86_64/fpu/dla.h: ...here.
77576         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
77577         situations.  Use __builtin_fma only for gcc 4.6 and up.
77578
77579         * config.make.in: Add have-mfma4 entry.
77580         * configure.in: Substitute libc_cv_cc_fma4.
77581         * math/Makefile (dbl-only-routines): Add sincostab.
77582         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
77583         Use __sincostab not sincos.
77584         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
77585         name is a macro.
77586         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77587         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77588         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77589         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
77590         using __copysign.
77591         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
77592         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
77593         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
77594         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
77595         and __inv.
77596         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
77597         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
77598         __copysign.
77599         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
77600         define aliases when function name is a macro.
77601         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
77602         sysdeps/ieee754/dbl-64/sincos.tbl.
77603         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
77604         fma4-enabled routines.
77605         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
77606         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
77607         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
77608         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
77609         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
77610         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
77611         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
77612         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
77613         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
77614         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
77615         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
77616         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
77617         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
77618         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
77619         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
77620         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
77621         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
77622         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
77623         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
77624         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
77625         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
77626         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
77627         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
77628         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
77629         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
77630         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
77631         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
77632         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
77633         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
77634         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
77635
77636         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
77637         rename.
77638         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77639         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77640         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77641         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77642         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77643         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77644         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77645         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77646
77647 2011-10-24  Andreas Schwab  <schwab@redhat.com>
77648
77649         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
77650
77651 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77652
77653         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
77654
77655         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
77656         prediction.
77657         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
77658
77659         * string/strnlen.c: Don't define STRNLEN, reverse logic.
77660         Remove unused variable magic_bits.
77661         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
77662
77663         * string/strnlen.c: Define and use STRNLEN macro.
77664         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
77665         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
77666         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
77667         * wcsmbs/wcslen.c: Define and use WCSLEN.
77668         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
77669         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
77670         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
77671         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
77672         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
77673         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
77674         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
77675
77676 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77677
77678         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77679         strnlen-sse2-no-bsf.
77680         Rename strlen-no-bsf to strlen-sse2-no-bsf.
77681         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
77682         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
77683         Add strnlen support.
77684         (USE_AS_STRNLEN): New macro.
77685         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
77686         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
77687         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
77688         * sysdeps/x86_64/wcslen.S: New file.
77689
77690 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
77691
77692         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
77693         XMM-moves are used for copying on small sizes.
77694
77695 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77696
77697         * wcsmbs/Makefile (strop-tests): Add wcschr.
77698         * wcsmbs/test-wcschr.c: New file.
77699         * string/test-strchr.c: Update.
77700         Add wcschr support.
77701         (WIDE): New macro.
77702
77703 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77704
77705         * wcsmbs/Makefile (strop-tests): Add wcslen.
77706         * wcsmbs/test-wcslen.c: New file.
77707         * string/test-strlen.c: Update.
77708         Add wcslen support.
77709         (WIDE): New macro.
77710
77711 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77712
77713         * po/it.po: Update from translation team.
77714
77715 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77716
77717         * sysdeps/x86_64/wcscmp.S: Update.
77718         Fix wrong comparison semantics.
77719         wcscmp shall use signed comparison not unsigned.
77720         Don't use substraction to avoid overflow bug.
77721         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
77722         * wcsmbc/wcscmp.c: Likewise.
77723         * string/test-strcmp.c: Likewise.
77724         Add new tests to check cases with negative values.
77725
77726 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77727
77728         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
77729         * sysdeps/x86_64/dla.h: ...here.  New file.
77730         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
77731         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77732         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77733         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77734         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77735         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
77736         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77737         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77738         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77739
77740 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
77741
77742         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
77743         __ynl_finite aliases.
77744
77745 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77746
77747         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77748
77749         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
77750         define DLA_FMA.
77751         [DLA_FMA] (EMULV): Use DLA_FMA.
77752         [DLA_FMA] (MUL12): Use EMULV.
77753         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
77754         that are not needed.
77755         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77756         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77757         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77758         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77759         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77760         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77761         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77762
77763 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
77764
77765         * math/s_nan.c: Undef __nan.
77766         * math/s_nanf.c: Undef __nanf.
77767         * math/s_nanl.c: Undef __nanl.
77768         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
77769         "math_private.h".
77770
77771 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77772
77773         * math/s_catan.c: Add branch predictions.
77774         * math/s_catanf.c: Likewise.
77775         * math/s_catanh.c: Likewise.
77776         * math/s_catanhf.c: Likewise.
77777         * math/s_catanhl.c: Likewise.
77778         * math/s_catanl.c: Likewise.
77779         * math/s_cexp.c: Likewise.
77780         * math/s_cexpf.c: Likewise.
77781         * math/s_cexpl.c: Likewise.
77782         * math/s_clog.c: Likewise.
77783         * math/s_clog10.c: Likewise.
77784         * math/s_clog10f.c: Likewise.
77785         * math/s_clog10l.c: Likewise.
77786         * math/s_clogf.c: Likewise.
77787         * math/s_clogl.c: Likewise.
77788         * math/s_csqrt.c: Likewise.
77789         * math/s_csqrtf.c: Likewise.
77790         * math/s_csqrtl.c: Likewise.
77791         * math/s_ctanf.c: Likewise.
77792         * math/s_ctanh.c: Likewise.
77793         * math/s_ctanhf.c: Likewise.
77794         * math/s_ctanhl.c: Likewise.
77795         * math/s_ctanl.c: Likewise.
77796
77797         * math/math_private.h: Define __nan, __nanf, __nanl.
77798         * math/s_cacosh.c: Include <math_private.h>.
77799         * math/s_cacoshl.c: Likewise.
77800         * math/s_casinh.c: Likewise.
77801         * math/s_casinhf.c: Likewise.
77802         * math/s_casinhl.c: Likewise.
77803         * math/s_ccos.c: Rely entire on ccosh.
77804         * math/s_ccosf.c: Rely entire on ccoshf.
77805         * math/s_ccosl.c: Rely entirely on ccoshl.
77806         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
77807         Remove tests for FE_INVALID.
77808         * math/s_ccoshf.c: Likewise.
77809         * math/s_ccoshl.c: Likewise.
77810         * math/s_csin.c: Likewise.
77811         * math/s_csinf.c: Likewise.
77812         * math/s_csinh.c Likewise.
77813         * math/s_csinhf.c: Likewise.
77814         * math/s_csinhl.c: Likewise.
77815         * math/s_csinl.c: Likewise.
77816         * math/s_ctan.c: Likewise.
77817         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
77818         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
77819         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
77820
77821 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
77822
77823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
77824         compilation problems.
77825
77826         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
77827         __builtin_expect.
77828
77829 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
77830
77831         * sysdeps/i386/configure.in: Test for -mfma4 option.
77832         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
77833         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
77834         COMMON_CPUID_INDEX_80000001.
77835         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
77836         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
77837         use it if FMA3 is not supported.
77838         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
77839
77840         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
77841         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
77842
77843 2011-10-20  Andreas Schwab  <schwab@redhat.com>
77844
77845         [BZ #12892]
77846         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
77847         it would create a cycle with a link time dependency.
77848
77849 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
77850
77851         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
77852         instruction.
77853         * string/Makefile (strop-tests): Add rawmemchr.
77854         * string/test-rawmemchr.c: New file.
77855
77856         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
77857         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
77858         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
77859         when compiling str{,n}casecmp and when AVX is available.  Hook up
77860         new optimized code in initializers.
77861
77862 2011-10-19  Andreas Schwab  <schwab@redhat.com>
77863
77864         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
77865         __feraiseexcept instead of feraiseexcept.
77866
77867 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
77868
77869         * math/math_private.h: Define defaults for libc_fetestexcept and
77870         libc_feupdateenv.
77871         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
77872         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
77873         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
77874         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77875         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
77876         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77877         libc_fetestexcept and libc_feupdateenv.
77878
77879         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
77880         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
77881         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
77882         * sysdeps/x86_64/fpu/math_private.h: Define special version of
77883         libc_feholdexcept_setround.
77884
77885         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
77886         Add s_nearbyint-c and s_nearbyintf-c.
77887         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
77888         nearbyintf inlines.
77889         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
77890         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
77891         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
77892         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
77893
77894         * math/math_private.h: Define defaults for libc_fegetround,
77895         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
77896         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
77897         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
77898         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
77899         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
77900         standard functions.
77901         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
77902         Remove comments and hacks for old compiler versions.
77903         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77904         libc_fegetround, libc_fesetround, libc_feholdexcept, and
77905         libc_feholdexceptl.
77906
77907 2011-10-18  Andreas Schwab  <schwab@redhat.com>
77908
77909         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
77910         (__feraiseexcept_renamed): Add __NTH.
77911         (feraiseexcept): Add __NTH.  Rename local variables to fix
77912         namespace violations.
77913
77914 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
77915
77916         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
77917
77918         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
77919
77920         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
77921         recently added interfaces.
77922         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
77923
77924         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
77925         about macro parameter expansion.
77926
77927         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
77928         __NO_MATH_INLINES is defined.  Cleanups.
77929
77930         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
77931         and __floorf is target has SSE4.1.
77932         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
77933         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
77934         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
77935         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
77936
77937         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
77938         name.
77939         (floorf): Likewise.
77940
77941         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
77942
77943 2011-10-17  Andreas Schwab  <schwab@redhat.com>
77944
77945         * misc/sys/cdefs.h: Fix last change.
77946
77947         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
77948         database lookup.
77949
77950 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
77951
77952         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
77953
77954         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
77955         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77956         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
77957         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77958         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77959         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
77960         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77961         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77962         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
77963         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
77964         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
77965         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
77966         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
77967         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
77968         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
77969         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
77970         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
77971         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
77972         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
77973         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
77974         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
77975         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
77976
77977         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
77978         ceil, ceilf, floor, floorf.
77979
77980         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
77981         Perform IRELATIVE relocations last.
77982
77983         * elf/do-rel.h: Add another parameter nrelative, replacing the
77984         local variable with the same name.  Change name of the function
77985         to end in Rel or Rela (uppercase).
77986         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
77987         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
77988         elf_dynamic_do_##reloc function.
77989
77990 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
77991
77992         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
77993         is sufficient, at least on modern CPUs.
77994
77995         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
77996
77997         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
77998         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
77999
78000         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
78001         __expl_finite.
78002         * math/bits/math-finite.h: Add entries for exp.
78003         * math/e_expl.c: Add __*_finite alias.
78004         * sysdeps/i386/fpu/e_exp.S: Likewise.
78005         * sysdeps/i386/fpu/e_expf.S: Likewise.
78006         * sysdeps/i386/fpu/e_expl.c: Likewise.
78007         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78008         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78009         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
78010         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
78011         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
78012         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
78013         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
78014
78015         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
78016         is sufficient, at least on modern CPUs.
78017
78018         * ctype/ctype-info.c (__ctype_init): Define.
78019         * include/ctype.h (__ctype_init): Declare.
78020         (__ctype_b_loc): The variable is always initialized.
78021         (__ctype_toupper_loc): Likewise.
78022         (__ctype_tolower_loc): Likewise.
78023         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
78024         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
78025
78026 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
78027
78028         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
78029
78030         * configure.in: Also look in $cxxmachine/include for C++ system
78031         headers.
78032
78033 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78034
78035         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
78036         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
78037         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
78038         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
78039         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
78040         (USE_AS_WMEMCMP): New macro.
78041         Fixing indents.
78042         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
78043         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
78044         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
78045         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
78046         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78047         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
78048         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
78049         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
78050         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
78051         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
78052         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
78053         (USE_AS_WMEMCMP): New macro.
78054         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
78055         * sysdeps/string/test-memcmp.c: Update.
78056         Fix simple_wmemcmp.
78057         Add new tests.
78058         * wcsmbs/wmemcmp.c: Update.
78059         (WMEMCMP): New macro.
78060         Fix overflow bug.
78061
78062 2011-10-12  Andreas Jaeger  <aj@suse.de>
78063
78064         [BZ #13268]
78065         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
78066
78067 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78068
78069         * libio/iofwide.c (do_length): Avoid warning.
78070
78071         * ctype/ctype.h (__isctype_f): Add missing __THROW.
78072
78073 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
78074
78075         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
78076
78077         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
78078         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
78079         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
78080         * sysdeps/i386/i686/fpu/e_log.S: New file.
78081         * sysdeps/i386/i686/fpu/e_logf.S: New file.
78082         * sysdeps/i386/i686/fpu/e_logl.S: New file.
78083
78084         * ctype/ctype.h: Add support for inlined isXXX functions when
78085         compiling C++ code.
78086
78087 2011-10-14  Andreas Schwab  <schwab@redhat.com>
78088
78089         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78090
78091         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
78092
78093 2011-10-13  Roland McGrath  <roland@hack.frob.com>
78094
78095         [BZ #13291]
78096         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
78097
78098 2011-10-13  Andreas Schwab  <schwab@redhat.com>
78099
78100         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
78101         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
78102         feraiseexcept.
78103
78104         * sysdeps/x86_64/memrchr.S: Check for zero size.
78105
78106         * string/stratcliff.c: Add memrchr tests.
78107
78108 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78109
78110         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78111         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
78112         rawmemchr-sse2 rawmemchr-sse2-bsf.
78113         * sysdeps/i386/i686/multiarch/memchr.S: New file.
78114         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
78115         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
78116         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
78117         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
78118         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
78119         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
78120         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
78121         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
78122         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
78123         * string/memrchr.c (MEMRCHR): New macro.
78124
78125 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
78126
78127         Add integration with gcc's -ffinite-math-only and optimize wrapper
78128         functions in libm.
78129         * Versions.def: Define GLIBC_2.15 version for libm.
78130         * math/Makefile (headers): Add bits/math-finite.h.
78131         * math/bits/math-finite.h: New file.
78132         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
78133         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
78134         * math/e_acoshl.c: Add __*_finite alias.
78135         * math/e_acosl.c: Likewise.
78136         * math/e_asinl.c: Likewise.
78137         * math/e_atan2l.c: Likewise.
78138         * math/e_atanhl.c: Likewise.
78139         * math/e_coshl.c: Likewise.
78140         * math/e_exp10.c: Likewise.
78141         * math/e_exp10f.c: Likewise.
78142         * math/e_exp10l.c: Likewise.
78143         * math/e_exp2l.c: Likewise.
78144         * math/e_fmodl.c: Likewise.
78145         * math/e_gammal_r.c: Likewise.
78146         * math/e_hypotl.c: Likewise.
78147         * math/e_j0l.c: Likewise.
78148         * math/e_j1l.c: Likewise.
78149         * math/e_jnl.c: Likewise.
78150         * math/e_lgammal_r.c: Likewise.
78151         * math/e_log10l.c: Likewise.
78152         * math/e_log2l.c: Likewise.
78153         * math/e_logl.c: Likewise.
78154         * math/e_powl.c: Likewise.
78155         * math/e_sinhl.c: Likewise.
78156         * math/e_sqrtl.c: Likewise.
78157         * math/e_scalb.c: Completely rewritten and optimized.
78158         * math/e_scalbf.c: Likewise.
78159         * math/e_scalbl.c: Likewise.
78160         * math/w_acos.c: Likewise.
78161         * math/w_acosf.c: Likewise.
78162         * math/w_acosl.c: Likewise.
78163         * math/w_acosh.c: Likewise.
78164         * math/w_acoshf.c: Likewise.
78165         * math/w_acoshl.c: Likewise.
78166         * math/w_asin.c: Likewise.
78167         * math/w_asinf.c: Likewise.
78168         * math/w_asinl.c: Likewise.
78169         * math/w_atan2.c: Likewise.
78170         * math/w_atan2f.c: Likewise.
78171         * math/w_atan2l.c: Likewise.
78172         * math/w_atanh.c: Likewise.
78173         * math/w_atanhf.c: Likewise.
78174         * math/w_atanhl.c: Likewise.
78175         * math/w_exp10.c: Likewise.
78176         * math/w_exp10f.c: Likewise.
78177         * math/w_exp10l.c: Likewise.
78178         * math/w_fmod.c: Likewise.
78179         * math/w_fmodf.c: Likewise.
78180         * math/w_fmodl.c: Likewise.
78181         * math/w_j0.c: Likewise.
78182         * math/w_j0f.c: Likewise.
78183         * math/w_j0l.c: Likewise.
78184         * math/w_j1.c: Likewise.
78185         * math/w_j1f.c: Likewise.
78186         * math/w_j1l.c: Likewise.
78187         * math/w_jn.c: Likewise.
78188         * math/w_jnf.c: Likewise.
78189         * math/w_log.c: Likewise.
78190         * math/w_logf.c: Likewise.
78191         * math/w_logl.c: Likewise.
78192         * math/w_log10.c: Likewise.
78193         * math/w_log10f.c: Likewise.
78194         * math/w_log10l.c: Likewise.
78195         * math/w_log2.c: Likewise.
78196         * math/w_log2f.c: Likewise.
78197         * math/w_log2l.c: Likewise.
78198         * math/w_pow.c: Likewise.
78199         * math/w_powf.c: Likewise.
78200         * math/w_powl.c: Likewise.
78201         * math/w_remainder.c: Likewise.
78202         * math/w_remainderf.c: Likewise.
78203         * math/w_remainderl.c: Likewise.
78204         * math/w_scalb.c: Likewise.
78205         * math/w_scalbf.c: Likewise.
78206         * math/w_scalbl.c: Likewise.
78207         * math/w_sqrt.c: Likewise.
78208         * math/w_sqrtf.c: Likewise.
78209         * math/w_sqrtl.c: Likewise.
78210         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
78211         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
78212         used.
78213         * math/math_private.h: Declare __kernel_standard_f.
78214         * math/w_cosh.c: Remove cruft and optimize a bit.
78215         * math/w_coshf.c: Likewise.
78216         * math/w_coshl.c: Likewise.
78217         * math/w_exp2.c: Likewise.
78218         * math/w_exp2f.c: Likewise.
78219         * math/w_exp2l.c: Likewise.
78220         * math/w_hypot.c: Likewise.
78221         * math/w_hypotf.c: Likewise.
78222         * math/w_hypotl.c: Likewise.
78223         * math/w_lgamma.c: Likewise.
78224         * math/w_lgamma_r.c: Likewise.
78225         * math/w_lgammaf.c: Likewise.
78226         * math/w_lgammaf_r.c: Likewise.
78227         * math/w_lgammal.c: Likewise.
78228         * math/w_lgammal_r.c: Likewise.
78229         * math/w_sinh.c: Likewise.
78230         * math/w_sinhf.c: Likewise.
78231         * math/w_sinhl.c: Likewise.
78232         * math/w_tgamma.c: Likewise.
78233         * math/w_tgammaf.c: Likewise.
78234         * math/w_tgammal.c: Likewise.
78235         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
78236         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
78237         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
78238         Minor optimizations.  Pretty printing.  Remove cruft.
78239         * sysdeps/i386/fpu/e_acosf.S: Likewise.
78240         * sysdeps/i386/fpu/e_acosh.S: Likewise.
78241         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
78242         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
78243         * sysdeps/i386/fpu/e_acosl.c: Likewise.
78244         * sysdeps/i386/fpu/e_asin.S: Likewise.
78245         * sysdeps/i386/fpu/e_asinf.S: Likewise.
78246         * sysdeps/i386/fpu/e_atan2.S: Likewise.
78247         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
78248         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
78249         * sysdeps/i386/fpu/e_atanh.S: Likewise.
78250         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
78251         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
78252         * sysdeps/i386/fpu/e_exp10.S: Likewise.
78253         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
78254         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
78255         * sysdeps/i386/fpu/e_exp2.S: Likewise.
78256         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
78257         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
78258         * sysdeps/i386/fpu/e_fmod.S: Likewise.
78259         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
78260         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
78261         * sysdeps/i386/fpu/e_hypot.S: Likewise.
78262         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
78263         * sysdeps/i386/fpu/e_log.S: Likewise.
78264         * sysdeps/i386/fpu/e_log10.S: Likewise.
78265         * sysdeps/i386/fpu/e_log10f.S: Likewise.
78266         * sysdeps/i386/fpu/e_log10l.S: Likewise.
78267         * sysdeps/i386/fpu/e_log2.S: Likewise.
78268         * sysdeps/i386/fpu/e_log2f.S: Likewise.
78269         * sysdeps/i386/fpu/e_log2l.S: Likewise.
78270         * sysdeps/i386/fpu/e_logf.S: Likewise.
78271         * sysdeps/i386/fpu/e_logl.S: Likewise.
78272         * sysdeps/i386/fpu/e_pow.S: Likewise.
78273         * sysdeps/i386/fpu/e_powf.S: Likewise.
78274         * sysdeps/i386/fpu/e_powl.S: Likewise.
78275         * sysdeps/i386/fpu/e_remainder.S: Likewise.
78276         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
78277         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
78278         * sysdeps/i386/fpu/e_scalb.S: Likewise.
78279         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
78280         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
78281         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
78282         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
78283         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
78284         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
78285         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
78286         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78287         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
78288         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78289         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
78290         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
78291         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
78292         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
78293         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
78294         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
78295         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
78296         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78297         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
78298         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
78299         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78300         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
78301         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
78302         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78303         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78304         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
78305         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
78306         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
78307         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
78308         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
78309         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
78310         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78311         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
78312         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
78313         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
78314         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78315         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
78316         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78317         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
78318         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
78319         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
78320         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
78321         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
78322         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
78323         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
78324         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
78325         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
78326         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
78327         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
78328         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
78329         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
78330         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
78331         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
78332         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
78333         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
78334         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
78335         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
78336         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
78337         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78338         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
78339         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
78340         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
78341         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
78342         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
78343         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
78344         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
78345         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
78346         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
78347         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
78348         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
78349         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
78350         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
78351         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
78352         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
78353         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
78354         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
78355         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
78356         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
78357         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
78358         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
78359         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
78360         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
78361         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
78362         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
78363         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
78364         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78365         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
78366         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
78367         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
78368         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78369         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
78370         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78371         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
78372         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
78373         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
78374         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
78375         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
78376         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
78377         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
78378         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78379         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78380         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78381         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
78382         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
78383         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
78384         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
78385         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
78386         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
78387         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
78388         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
78389         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
78390         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
78391         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78392         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
78393         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
78394         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
78395         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
78396         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
78397         (__isnanf): Likewise.
78398         (__isinf_ns): Likewise.
78399         (__isinf_nsf): Likewise.
78400         (__finite): Likewise.
78401         (__finitef): Likewise.
78402         (__ieee754_sqrt): Define as macro.
78403         (__ieee754_sqrtf): Define as macro.
78404         (__ieee754_sqrtl): Define as macro.
78405         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
78406         inlined copy.
78407         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
78408         __FINITE_MATH_ONLY__ consistent.
78409         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
78410
78411 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
78412
78413         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
78414         of rawmemchr.
78415
78416         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
78417
78418 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
78419
78420         * po/ja.po: Update from translation team.
78421
78422 2011-10-08  Roland McGrath  <roland@hack.frob.com>
78423
78424         * locale/programs/locarchive.c (prepare_address_space): New function.
78425         (create_archive, enlarge_archive, open_archive): Use it.
78426
78427         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
78428         inside [SHARED], where it is used.
78429
78430         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
78431
78432         * nss/getent.c (netgroup_keys): Remove unused variable.
78433         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
78434
78435 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
78436
78437         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
78438         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
78439         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
78440         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
78441         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
78442         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
78443         * math/Makefile (libm-calls): Add s_isinf_ns.
78444         * math/divtc3.c: Use __isinf_nsl instead of isinf.
78445         * math/multc3.c: Likewise.
78446         * math/s_casin.c: Likewise.
78447         * math/s_casinf.c: Likewise.
78448         * math/s_casinl.c: Likewise.
78449         * math/s_ccos.c: Likewise.
78450         * math/s_ccosf.c: Likewise.
78451         * math/s_ccosl.c: Likewise.
78452         * math/s_ctan.c: Likewise.
78453         * math/s_ctanf.c: Likewise.
78454         * math/s_ctanh.c: Likewise.
78455         * math/s_ctanhf.c: Likewise.
78456         * math/s_ctanhl.c: Likewise.
78457         * math/s_ctanl.c: Likewise.
78458         * math/w_fmod.c: Likewise.
78459         * math/w_fmodf.c: Likewise.
78460         * math/w_fmodl.c: Likewise.
78461         * math/w_remainder.c: Likewise.
78462         * math/w_remainderf.c: Likewise.
78463         * math/w_remainderl.c: Likewise.
78464         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
78465         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
78466         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
78467         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
78468         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
78469         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
78470         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
78471         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
78472
78473         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
78474         of the number.
78475         * stdio-common/printf_fphex.c: Likewise.
78476         * stdio-common/printf_size.c: Likewise.
78477
78478         * math/e_exp10.c: Include math_private.h using <...> not "...".
78479         * math/e_exp10f.c: Likewise.
78480         * math/e_exp10l.c: Likewise.
78481         * math/e_exp2l.c: Likewise.
78482         * math/e_j0l.c: Likewise.
78483         * math/e_j1l.c: Likewise.
78484         * math/e_jnl.c: Likewise.
78485         * math/e_lgammal_r.c: Likewise.
78486         * math/e_rem_pio2l.c: Likewise.
78487         * math/e_scalb.c: Likewise.
78488         * math/e_scalbf.c: Likewise.
78489         * math/e_scalbl.c: Likewise.
78490         * math/k_cosl.c: Likewise.
78491         * math/k_sinl.c: Likewise.
78492         * math/k_tanl.c: Likewise.
78493         * math/s_cacoshf.c: Likewise.
78494         * math/s_catan.c: Likewise.
78495         * math/s_catanf.c: Likewise.
78496         * math/s_catanh.c: Likewise.
78497         * math/s_catanhf.c: Likewise.
78498         * math/s_catanhl.c: Likewise.
78499         * math/s_catanl.c: Likewise.
78500         * math/s_ccosh.c: Likewise.
78501         * math/s_ccoshf.c: Likewise.
78502         * math/s_ccoshl.c: Likewise.
78503         * math/s_cexp.c: Likewise.
78504         * math/s_cexpf.c: Likewise.
78505         * math/s_cexpl.c: Likewise.
78506         * math/s_clog.c: Likewise.
78507         * math/s_clog10.c: Likewise.
78508         * math/s_clog10f.c: Likewise.
78509         * math/s_clog10l.c: Likewise.
78510         * math/s_clogf.c: Likewise.
78511         * math/s_clogl.c: Likewise.
78512         * math/s_csin.c: Likewise.
78513         * math/s_csinf.c: Likewise.
78514         * math/s_csinh.c: Likewise.
78515         * math/s_csinhf.c: Likewise.
78516         * math/s_csinhl.c: Likewise.
78517         * math/s_csinl.c: Likewise.
78518         * math/s_csqrt.c: Likewise.
78519         * math/s_csqrtf.c: Likewise.
78520         * math/s_csqrtl.c: Likewise.
78521         * math/s_ctan.c: Likewise.
78522         * math/s_ctanf.c: Likewise.
78523         * math/s_ctanh.c: Likewise.
78524         * math/s_ctanhf.c: Likewise.
78525         * math/s_ctanhl.c: Likewise.
78526         * math/s_ctanl.c: Likewise.
78527         * math/s_ldexp.c: Likewise.
78528         * math/s_ldexpf.c: Likewise.
78529         * math/s_ldexpl.c: Likewise.
78530         * math/s_significand.c: Likewise.
78531         * math/s_significandf.c: Likewise.
78532         * math/s_significandl.c: Likewise.
78533         * math/w_acos.c: Likewise.
78534         * math/w_acosf.c: Likewise.
78535         * math/w_acosh.c: Likewise.
78536         * math/w_acoshf.c: Likewise.
78537         * math/w_acoshl.c: Likewise.
78538         * math/w_acosl.c: Likewise.
78539         * math/w_asin.c: Likewise.
78540         * math/w_asinf.c: Likewise.
78541         * math/w_asinl.c: Likewise.
78542         * math/w_atan2.c: Likewise.
78543         * math/w_atan2f.c: Likewise.
78544         * math/w_atan2l.c: Likewise.
78545         * math/w_atanh.c: Likewise.
78546         * math/w_atanhf.c: Likewise.
78547         * math/w_atanhl.c: Likewise.
78548         * math/w_cosh.c: Likewise.
78549         * math/w_coshf.c: Likewise.
78550         * math/w_coshl.c: Likewise.
78551         * math/w_dremf.c: Likewise.
78552         * math/w_exp10.c: Likewise.
78553         * math/w_exp10f.c: Likewise.
78554         * math/w_exp10l.c: Likewise.
78555         * math/w_exp2.c: Likewise.
78556         * math/w_exp2f.c: Likewise.
78557         * math/w_fmod.c: Likewise.
78558         * math/w_fmodf.c: Likewise.
78559         * math/w_fmodl.c: Likewise.
78560         * math/w_hypot.c: Likewise.
78561         * math/w_hypotf.c: Likewise.
78562         * math/w_hypotl.c: Likewise.
78563         * math/w_j0.c: Likewise.
78564         * math/w_j0f.c: Likewise.
78565         * math/w_j0l.c: Likewise.
78566         * math/w_j1.c: Likewise.
78567         * math/w_j1f.c: Likewise.
78568         * math/w_j1l.c: Likewise.
78569         * math/w_jn.c: Likewise.
78570         * math/w_jnf.c: Likewise.
78571         * math/w_jnl.c: Likewise.
78572         * math/w_lgamma.c: Likewise.
78573         * math/w_lgamma_r.c: Likewise.
78574         * math/w_lgammaf.c: Likewise.
78575         * math/w_lgammaf_r.c: Likewise.
78576         * math/w_lgammal.c: Likewise.
78577         * math/w_lgammal_r.c: Likewise.
78578         * math/w_log.c: Likewise.
78579         * math/w_log10.c: Likewise.
78580         * math/w_log10f.c: Likewise.
78581         * math/w_log10l.c: Likewise.
78582         * math/w_log2.c: Likewise.
78583         * math/w_log2f.c: Likewise.
78584         * math/w_log2l.c: Likewise.
78585         * math/w_logf.c: Likewise.
78586         * math/w_logl.c: Likewise.
78587         * math/w_pow.c: Likewise.
78588         * math/w_powf.c: Likewise.
78589         * math/w_powl.c: Likewise.
78590         * math/w_remainder.c: Likewise.
78591         * math/w_remainderf.c: Likewise.
78592         * math/w_remainderl.c: Likewise.
78593         * math/w_scalb.c: Likewise.
78594         * math/w_scalbf.c: Likewise.
78595         * math/w_scalbl.c: Likewise.
78596         * math/w_sinh.c: Likewise.
78597         * math/w_sinhf.c: Likewise.
78598         * math/w_sinhl.c: Likewise.
78599         * math/w_sqrt.c: Likewise.
78600         * math/w_sqrtf.c: Likewise.
78601         * math/w_sqrtl.c: Likewise.
78602         * math/w_tgamma.c: Likewise.
78603         * math/w_tgammaf.c: Likewise.
78604         * math/w_tgammal.c: Likewise.
78605
78606         * po/ja.po: Update from translation team.
78607
78608 2011-09-29  Andreas Jaeger  <aj@suse.de>
78609
78610         [BZ #13179]
78611         * sunrpc/netname.c (netname2host): Fix logic.
78612
78613         [BZ #6779]
78614         [BZ #6783]
78615         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
78616         correctly.
78617         * math/w_remainder.c (__remainder): Likewise.
78618         * math/w_remainderf.c (__remainderf): Likewise.
78619         * math/libm-test.inc (remainder_test): Add test cases.
78620
78621 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78622
78623         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
78624         sdiv_qrnnd.
78625
78626 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78627
78628         * string/test-memcmp.c: Avoid unncessary #defines.
78629         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78630
78631 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78632
78633         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
78634         Use new sse2 version for core i3 - i7 as it's faster
78635         than sse42 version.
78636         (bit_Prefer_PMINUB_for_stringop): New.
78637         * sysdeps/x86_64/rawmemchr.S: Update.
78638         Replace with faster SSE2 version.
78639         * sysdeps/x86_64/memrchr.S: New file.
78640         * sysdeps/x86_64/memchr.S: Update.
78641         Replace with faster SSE2 version.
78642
78643 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
78644
78645         * elf/dl-load.c (lose): Add cast to avoid warning.
78646
78647 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78648
78649         * po/ca.po: Update from translation team.
78650
78651         * inet/getnetgrent_r.c: Hook up nscd.
78652         * nscd/Makefile (routines): Add nscd_netgroup.
78653         (nscd-modules): Add netgroupcache.
78654         (CFLAGS-netgroupcache.c): Define.
78655         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
78656         (cache_search): Add const to second parameter.
78657         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
78658         INNETGR.
78659         (dbs): Add netgrdb entry.
78660         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
78661         (verify_persistent_db): Handle netgrdb.
78662         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
78663         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
78664         GETFDNETGR.
78665         (netgroup_response_header): Define.
78666         (innetgroup_response_header): Define.
78667         (datahead): Add netgroup_response_header and innetgroup_response_header
78668         elements.
78669         * nscd/nscd.conf: Add entries for netgroup cache.
78670         * nscd/nscd.h (dbtype): Add netgrdb.
78671         (_PATH_NSCD_NETGROUP_DB): Define.
78672         (netgroup_iov_disabled): Declare.
78673         (xmalloc, xcalloc, xrealloc): Move declarations here.
78674         (cache_search): Adjust prototype.
78675         Add netgroup-related prototypes.
78676         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
78677         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
78678         (__nscd_innetgr): Declare.
78679         * nscd/selinux.c (perms): Use access_vector_t as element type and
78680         add netgroup-related initializers.
78681         * nscd/netgroupcache.c: New file.
78682         * nscd/nscd_netgroup.c: New file.
78683         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
78684         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
78685         For four parameters use innetgr.
78686         * nss/nss_files/files-init.c: Add definition and callback for netgr.
78687         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
78688         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
78689         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
78690
78691         * nscd/connections.c (register_traced_file): Don't register file
78692         for disabled databases.
78693
78694 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
78695
78696         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
78697
78698         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
78699         from tree and freeing node.
78700
78701 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
78702
78703         * nss/nsswitch.c (__nss_database_lookup): Handle
78704         nss_parse_service_list out of memory case.
78705
78706 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
78707
78708         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
78709         out of memory case.
78710
78711 2011-10-04  Andreas Schwab  <schwab@redhat.com>
78712
78713         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
78714         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
78715         pass it down.
78716         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
78717         elf_machine_rela, elf_machine_lazy_rel.
78718         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
78719         (ELF_DYNAMIC_DO_REL): Likewise.
78720         (ELF_DYNAMIC_DO_RELA): Likewise.
78721         (ELF_DYNAMIC_RELOCATE): Likewise.
78722         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
78723         to ELF_DYNAMIC_DO_REL.
78724         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
78725         (dl_main): In trace mode always set __RTLD_NOIFUNC.
78726         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
78727         elf_machine_rela.
78728         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
78729         skip_ifunc, don't call ifunc function if non-zero.
78730         (elf_machine_rela): Likewise.
78731         (elf_machine_lazy_rel): Likewise.
78732         (elf_machine_lazy_rela): Likewise.
78733         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
78734         (elf_machine_lazy_rel): Likewise.
78735         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
78736         Likewise.
78737         (elf_machine_lazy_rel): Likewise.
78738         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78739         Likewise.
78740         (elf_machine_lazy_rel): Likewise.
78741         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
78742         (elf_machine_lazy_rel): Likewise.
78743         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
78744         (elf_machine_lazy_rel): Likewise.
78745         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
78746         (elf_machine_lazy_rel): Likewise.
78747         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
78748         (elf_machine_lazy_rel): Likewise.
78749         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
78750         (elf_machine_lazy_rel): Likewise.
78751         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
78752         (elf_machine_lazy_rel): Likewise.
78753
78754 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
78755
78756         * nss/nss_files/files-init.c (_nss_files_init): Use static
78757         initialization for all the *_traced_file variables.
78758
78759 2011-09-28  Andreas Schwab  <schwab@redhat.com>
78760
78761         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78762
78763 2011-09-27  Roland McGrath  <roland@hack.frob.com>
78764
78765         [BZ #13226]
78766         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
78767
78768 2011-09-27  Andreas Schwab  <schwab@redhat.com>
78769
78770         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
78771         Reread the line before reparsing it.
78772
78773 2011-09-26  Andreas Schwab  <schwab@redhat.com>
78774
78775         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
78776
78777 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
78778             Maxim Kuvyrkov  <maxim@codesourcery.com>
78779             Joseph Myers  <joseph@codesourcery.com>
78780
78781         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
78782         if needed for __stack_chk_guard.
78783
78784 2011-09-19  Roland McGrath  <roland@hack.frob.com>
78785
78786         * sysdeps/posix/spawni.c (script_execute): Always define it.
78787         It will be optimized away if unused.
78788         (maybe_script_execute): New function.
78789         (__spawni): Call it.
78790
78791         * Makerules: Don't include tls.make.
78792         (config-tls): Always set to thread.
78793         * tls.make.c: File removed.
78794
78795 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
78796
78797         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
78798         * config.make.in (CPPFLAGS-config): New substituted variable.
78799
78800 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78801
78802         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
78803
78804         [BZ #13192]
78805         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
78806         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
78807
78808 2011-09-15  Roland McGrath  <roland@hack.frob.com>
78809
78810         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
78811         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
78812         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
78813         (CALL_FAIL): Likewise.
78814         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
78815         (CALL_FAIL): Macro removed.
78816         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
78817
78818 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78819
78820         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
78821         for __FINITE_MATH_ONLY__ == 1.
78822
78823 2011-09-15  Andreas Schwab  <schwab@redhat.com>
78824
78825         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
78826         __ieee754_sqrt instead of sqrt.
78827         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
78828         __ieee754_sqrtf instead of sqrtf.
78829         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
78830         __floorf instead of floorf.
78831         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
78832         __floorf, __truncf instead of floorf, truncf.
78833
78834 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
78835
78836         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
78837
78838         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
78839         __extern_always_inline.
78840         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
78841         32-bit.
78842
78843 2011-09-14  Andreas Schwab  <schwab@redhat.com>
78844
78845         * elf/rtld.c (dl_main): Also relocate in dependency order when
78846         doing symbol dependency testing.
78847
78848 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
78849
78850         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78851         Always define `refsym'.
78852
78853 2011-09-13  Andreas Schwab  <schwab@redhat.com>
78854
78855         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
78856         (__FD_ELT): Renamed from __FDELT.
78857         * misc/bits/select2.h (__FD_ELT): Likewise.
78858         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
78859         __FD_MASK instead of __FDELT, __FDMASK.
78860         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78861         Likewise.
78862         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78863         Likewise.
78864
78865         * elf/Makefile (gen-ldd): Fix pattern.
78866
78867         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
78868         (init_tls): Likewise.
78869
78870 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
78871
78872         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
78873
78874 2011-09-12  Andreas Schwab  <schwab@redhat.com>
78875
78876         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
78877         `struct cmsghdr *' instead of `void *'.
78878         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
78879         Likewise.
78880
78881 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
78882
78883         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
78884         if non-absolute.
78885         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
78886         ldd_rewrite_script.
78887
78888 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
78889
78890         * configure.in: Remove --with-tls option.
78891         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
78892         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
78893         out in case it is missing.
78894         * sysdeps/ia64/elf/configure.in: Likewise.
78895         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
78896         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
78897         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
78898         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
78899         * sysdeps/sh/elf/configure.in: Likewise.
78900         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
78901         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
78902         * sysdeps/x86_64/elf/configure.in: Likewise.
78903         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
78904         * sysdeps/mach/hurd/tls.h: Likewise.
78905
78906         [BZ #13067]
78907         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
78908
78909         [BZ #13090]
78910         * configure.in: Fix use of AC_INIT.
78911
78912         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
78913
78914 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
78915
78916         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
78917         __set_errno.
78918         * malloc/hooks.c: Likewise.
78919
78920         [BZ #11929]
78921         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
78922         variables statically.
78923         (narenas): Initialize.
78924         (list_lock): Initialize.
78925         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
78926         initializtion of main_arena and list_lock.  Small cleanups.
78927         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
78928         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
78929         Add initializers to main_arena and mp_.
78930         (malloc_state): Remove pagesize member.  Change all users to use
78931         GLRO(dl_pagesize).
78932
78933         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
78934         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
78935         is always initialized.
78936
78937         * malloc/malloc.c: Removed unused configurations and dead code.
78938         * malloc/arena.c: Likewise.
78939         * malloc/hooks.c: Likewise.
78940         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
78941
78942         * include/tls.h: Removed.  USE___THREAD must always be defined.
78943         * bits/libc-tsd.h: Don't handle !USE___THREAD.
78944         * elf/dl-libc.c: Likewise.
78945         * elf/dl-tsd.c: Likewise.
78946         * include/errno.h: Likewise.
78947         * include/netdb.h: Likewise.
78948         * include/resolv.h: Likewise.
78949         * inet/herrno-loc.c: Likewise.
78950         * inet/herrno.c: Likewise.
78951         * malloc/arena.c: Likewise.
78952         * malloc/hooks.c: Likewise.
78953         * malloc/malloc.c: Likewise.
78954         * resolv/res-state.c: Likewise.
78955         * resolv/res_libc.c: Likewise.
78956         * sysdeps/i386/dl-machine.h: Likewise.
78957         * sysdeps/ia64/dl-machine.h: Likewise.
78958         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
78959         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
78960         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
78961         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
78962         * sysdeps/sh/dl-machine.h: Likewise.
78963         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
78964         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
78965         * sysdeps/unix/i386/sysdep.S: Likewise.
78966         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
78967         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
78968         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
78969         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
78970         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
78971         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
78972         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
78973         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
78974         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78975         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
78976         * sysdeps/unix/x86_64/sysdep.S: Likewise.
78977         * sysdeps/x86_64/dl-machine.h: Likewise.
78978         * tls.make.c: Likewise.
78979
78980         * configure.in: Remove --with-__thread option.  Make tests for
78981         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
78982         tls_model attribute fail if no support is available.  Remove
78983         USE_IN_LIBIO.
78984         * Makeconfig: Adjust for dropped configure option.  All features are
78985         now mandatory.
78986         * Makerules: Likewise.
78987         * Versions.def: Likewise.
78988         * argp/argp-fmtstream.c: Likewise.
78989         * argp/argp-fmtstream.h: Likewise.
78990         * argp/argp-help.c: Likewise.
78991         * assert/assert.c: Likewise.
78992         * config.h.in: Likewise.
78993         * config.make.in: Likewise.
78994         * configure: Likewise.
78995         * configure.in: Likewise.
78996         * csu/Versions: Likewise.
78997         * csu/init.c: Likewise.
78998         * elf/tst-audit2.c: Likewise.
78999         * elf/tst-tls10.c: Likewise.
79000         * elf/tst-tls10.h: Likewise.
79001         * elf/tst-tls11.c: Likewise.
79002         * elf/tst-tls12.c: Likewise.
79003         * elf/tst-tls14.c: Likewise.
79004         * elf/tst-tlsmod11.c: Likewise.
79005         * elf/tst-tlsmod12.c: Likewise.
79006         * elf/tst-tlsmod13.c: Likewise.
79007         * elf/tst-tlsmod13a.c: Likewise.
79008         * elf/tst-tlsmod14a.c: Likewise.
79009         * elf/tst-tlsmod15b.c: Likewise.
79010         * elf/tst-tlsmod16a.c: Likewise.
79011         * elf/tst-tlsmod16b.c: Likewise.
79012         * elf/tst-tlsmod7.c: Likewise.
79013         * elf/tst-tlsmod8.c: Likewise.
79014         * elf/tst-tlsmod9.c: Likewise.
79015         * gmon/gmon.c: Likewise.
79016         * grp/fgetgrent_r.c: Likewise.
79017         * grp/putgrent.c: Likewise.
79018         * hurd/fopenport.c: Likewise.
79019         * include/libc-symbols.h: Likewise.
79020         * include/tls.h: Likewise.
79021         * intl/gettextP.h: Likewise.
79022         * intl/loadinfo.h: Likewise.
79023         * locale/global-locale.c: Likewise.
79024         * locale/localeinfo.h: Likewise.
79025         * mach/devstream.c: Likewise.
79026         * malloc/arena.c: Likewise.
79027         * malloc/set-freeres.c: Likewise.
79028         * misc/err.c: Likewise.
79029         * misc/getttyent.c: Likewise.
79030         * misc/mntent_r.c: Likewise.
79031         * posix/getopt.c: Likewise.
79032         * posix/wordexp.c: Likewise.
79033         * pwd/fgetpwent_r.c: Likewise.
79034         * resolv/Versions: Likewise.
79035         * resolv/res_hconf.c: Likewise.
79036         * shadow/fgetspent_r.c: Likewise.
79037         * shadow/putspent.c: Likewise.
79038         * stdio-common/printf_fphex.c: Likewise.
79039         * stdio-common/tmpfile.c: Likewise.
79040         * stdlib/abort.c: Likewise.
79041         * stdlib/fmtmsg.c: Likewise.
79042         * sunrpc/auth_unix.c: Likewise.
79043         * sunrpc/clnt_perr.c: Likewise.
79044         * sunrpc/clnt_tcp.c: Likewise.
79045         * sunrpc/clnt_udp.c: Likewise.
79046         * sunrpc/clnt_unix.c: Likewise.
79047         * sunrpc/openchild.c: Likewise.
79048         * sunrpc/svc_simple.c: Likewise.
79049         * sunrpc/svc_tcp.c: Likewise.
79050         * sunrpc/svc_udp.c: Likewise.
79051         * sunrpc/svc_unix.c: Likewise.
79052         * sunrpc/xdr.c: Likewise.
79053         * sunrpc/xdr_array.c: Likewise.
79054         * sunrpc/xdr_rec.c: Likewise.
79055         * sunrpc/xdr_ref.c: Likewise.
79056         * sunrpc/xdr_stdio.c: Likewise.
79057
79058 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79059
79060         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79061
79062 2011-07-03  Andreas Jaeger  <aj@suse.de>
79063
79064         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
79065         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
79066         regenerate with gen-libm-tests.pl.
79067
79068 2010-05-12  Petr Baudis  <pasky@suse.cz>
79069
79070         [BZ #11589]
79071         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
79072         around j0() zero points by switching to j1().
79073         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
79074         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
79075         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
79076         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
79077
79078 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79079
79080         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
79081         instead of 0.
79082         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
79083         instead of 0.
79084         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
79085         Patch in part by Pavel Roskin <proski@gnu.org>.
79086
79087         [BZ #13138]
79088         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
79089         realloc.
79090         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
79091         Free memory block if necessary.
79092
79093         [BZ #12847]
79094         * libio/genops.c (INTDEF): For string streams the _lock pointer can
79095         be NULL.  Don't lock in this case.
79096
79097 2011-09-09  Roland McGrath  <roland@hack.frob.com>
79098
79099         * elf/elf.h (ELFOSABI_GNU): New macro.
79100         (ELFOSABI_LINUX): Define to that.
79101
79102 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
79103
79104         * string/strncat.c (strncat): Undef the symbol in case it has been
79105         defined in bits/string.h.
79106
79107 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79108
79109         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
79110
79111         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
79112         link map.
79113
79114 2011-08-17  Andreas Jaeger  <aj@suse.de>
79115
79116         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
79117
79118 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
79119             Ian Lance Taylor  <iant@google.com>
79120
79121         * math/libm-test.inc (lround_test): New testcase.
79122         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
79123
79124 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
79125
79126         * Makefile: Remove support for automatic cvs check-ins.
79127         * Makerules: Likewise.
79128         * config.make.in: Likewise.
79129         * configure.in: Likewise.
79130         * intl/Makefile: Likewise.
79131         * locale/Makefile: Likewise.
79132         * po/Makefile: Likewise.
79133         * posix/Makefile: Likewise.
79134         * sysdeps/gnu/Makefile: Likewise.
79135         * sysdeps/mach/hurd/Makefile: Likewise.
79136         * sysdeps/sparc/sparc32/Makefile: Likewise.
79137
79138         [BZ #13118]
79139         * posix/Makefile (bug-regex32-ENV): Define.
79140         Patch by John Stanley <jpsinthemix@verizon.net>.
79141
79142         * misc/Makefile (headers): Add bits/select2.h.
79143         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
79144         * misc/bits/select2.h: New file.
79145         * include/bits/select2.h: New file.
79146         * debug/Makefile (routines): Add fdelt_chk.
79147         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
79148         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
79149         FD_ISSET.
79150         * debug/fdelt_chk.c: New file.
79151
79152         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
79153         * wcsmbs/test-wmemcmp.c: Likewise.
79154         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
79155         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
79156
79157 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79158
79159         * string/Makefile (strop-tests): Add memcmp.
79160         * string/test-wmemcmp.c: New file.
79161         * string/test-memcmp.c: Add wmemcmp support.
79162
79163 2011-09-08  Roland McGrath  <roland@hack.frob.com>
79164
79165         [BZ #13153]
79166         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
79167         2011-07-19 change.
79168
79169         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
79170         garbage value in a __mach_port_mod_refs call in the cases of the
79171         task-self and thread-self ports.
79172
79173 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79174
79175         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
79176
79177 2011-09-08  Andreas Schwab  <schwab@redhat.com>
79178
79179         * elf/dl-load.c (lose): Check for non-null L.
79180
79181 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79182
79183         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
79184
79185         * elf/dl-libc.c (dlerror_run): Pass back error code from
79186         dl_catch_error.
79187
79188         [BZ #13123]
79189         * elf/dl-load.c (lose): Free l_origin if it is valid.
79190
79191         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
79192         names.
79193         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
79194         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79195         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79196         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79197         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
79198         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
79199
79200 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79201
79202         * sysdeps/powerpc/fpu/e_hypot.c: New file.
79203         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
79204         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
79205         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
79206         * sysdeps/powerpc/fpu/k_cosf.c: New file.
79207         * sysdeps/powerpc/fpu/k_sinf.c: New file.
79208         * sysdeps/powerpc/fpu/s_cosf.c: New file.
79209         * sysdeps/powerpc/fpu/s_sinf.c: New file.
79210         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
79211         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
79212
79213 2011-08-15  Alan Modra  <amodra@gmail.com>
79214
79215         [BZ #13092]
79216         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
79217         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
79218         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
79219         ppc_mcount to static-only-routines.
79220         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
79221         __mcount_internal.
79222         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
79223         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
79224
79225 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
79226
79227         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
79228         for finite and infinity parameters.
79229
79230 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
79231
79232         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
79233         and add nop instructions for throughput optimization.
79234         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
79235
79236 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
79237
79238         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
79239         aligned copy for power7 with vector-scalar instructions.
79240         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
79241
79242 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
79243
79244         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
79245         AVX check.
79246
79247 2011-09-07  Andreas Schwab  <schwab@redhat.com>
79248
79249         [BZ #13144]
79250         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
79251         last change.
79252
79253 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79254
79255         * sysdeps/unix/sysv/linux/x86_64/init-first.c
79256         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
79257         syscall wrapper around clock_gettime in __vdso_clock_gettime.
79258         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
79259         clock_gettime.
79260
79261 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79262
79263         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
79264         Forgot to demangle the pointer.
79265
79266         * sysdeps/i386/sysdep.h: Define atom_text_section.
79267         * sysdeps/x86_64/sysdep.h: Likewise.
79268         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
79269         section with atom_text_section.
79270         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79271         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79272         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
79273         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79274         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
79275
79276         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
79277         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
79278         already be defined.  Change to take two parameters and don't assign
79279         result to variable.  Adjust all users.
79280         Define INTERNAL_GETTIME if not already defined.
79281         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
79282         call.
79283         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
79284         HAVE_CLOCK_GETTIME_VSYSCALL.
79285         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
79286
79287         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
79288         gettimeofday vsyscall, just use time.
79289
79290 2011-09-06  Andreas Schwab  <schwab@redhat.com>
79291
79292         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
79293         <errno.h>.
79294
79295 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79296
79297         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
79298         syscall on x86-64.
79299         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
79300         syscall.
79301         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
79302         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
79303         syscall if possible.
79304
79305 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79306
79307         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
79308         e_ident.  Don't pass to find_mapsXX.
79309         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
79310
79311 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79312
79313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79314         strchr-sse2-no-bsf strrchr-sse2-no-bsf
79315         * sysdeps/x86_64/multiarch/strchr.S: Update.
79316         Check bit_slow_BSF bit.
79317         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
79318         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
79319         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
79320
79321 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79322
79323         [BZ #13134]
79324         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
79325         before glibc 2.15.
79326         (tryshell): Define.
79327         (__spawni): Change last parameter to be flag.  Test
79328         SPAWN_XFLAGS_USE_PATH flag to use path or not.
79329         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
79330         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
79331         * posix/spawni.c: Likewise.
79332         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
79333         * posix/spawnp.c: Likewise.  Change normal version to use
79334         SPAWN_XFLAGS_USE_PATH.
79335         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
79336         SPAWN_XFLAGS_TRY_SHELL.
79337
79338         [BZ #13150]
79339         * posix/glob.h: Remove gcc 1.x support.
79340
79341         [BZ #13068]
79342         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
79343
79344 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79345
79346         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79347         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
79348         strrchr-sse2-bsf
79349         * sysdeps/i386/i686/multiarch/strchr.S: New file.
79350         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
79351         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
79352         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
79353         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
79354         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
79355
79356 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79357
79358         * sysdeps/x86_64/wcscmp.S: New file.
79359
79360         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
79361         wcscmp-c wcscmp-sse2
79362         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
79363         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
79364         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
79365         * wcsmbs/wcscmp.c: Allow renaming.
79366
79367 2011-09-05  David S. Miller  <davem@davemloft.net>
79368
79369         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
79370         stack slot, rather than the struct return pointer slot.
79371         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
79372         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
79373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
79374         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
79375
79376 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79377
79378         * po/ja.po: Update from translation team.
79379
79380         [BZ #13144]
79381         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
79382         kernel in 64-bit binaries.
79383
79384 2011-09-01  David S. Miller  <davem@davemloft.net>
79385
79386         * elf/elf.h (HWCAP_SPARC_*): Move to..
79387         * sysdeps/sparc/sysdep.h: this new file and add new values.
79388         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
79389         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
79390         _DL_HWCAP_COUNT to 24.
79391         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
79392         entries.
79393         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
79394         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
79395         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
79396         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
79397         instead of magic constants.
79398         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
79399
79400 2011-08-31  David S. Miller  <davem@davemloft.net>
79401
79402         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
79403         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
79404         Reimplement to do errno handling inline.
79405         (SYSCALL_ERROR_HANDLER): New macro.
79406         (__SYSCALL_STRING): Do not do errno handling in asm.
79407         (__CLONE_SYSCALL_STRING): Delete.
79408         (__INTERNAL_SYSCALL_STRING): Delete.
79409         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
79410         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
79411         (PSEUDO): Reimplement to do errno handling inline.
79412         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
79413         (SYSCALL_ERROR_HANDLER): New macro.
79414         (__SYSCALL_STRING): Do not do errno handling in asm.
79415         (__CLONE_SYSCALL_STRING): Delete.
79416         (__INTERNAL_SYSCALL_STRING): Delete.
79417         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
79418         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
79419         i386.
79420         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
79421         (inline_syscall*): Add 'err' argument.
79422         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
79423         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
79424         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
79425         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
79426
79427         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
79428         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
79429
79430 2011-08-30  Andreas Schwab  <schwab@redhat.com>
79431
79432         * elf/rtld.c (dl_main): Relocate objects in dependency order.
79433
79434 2011-08-29  Jiri Olsa <jolsa@redhat.com>
79435
79436         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
79437         directive.
79438
79439 2011-08-24  David S. Miller  <davem@davemloft.net>
79440
79441         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
79442
79443 2011-08-24  Andreas Schwab  <schwab@redhat.com>
79444
79445         * elf/Makefile: Add rules to build and run unload8 test.
79446         * elf/unload8.c: New file.
79447         * elf/unload8mod1.c: New file.
79448         * elf/unload8mod1x.c: New file.
79449         * elf/unload8mod2.c: New file.
79450         * elf/unload8mod3.c: New file.
79451
79452         * elf/dl-close.c (_dl_close_worker): Reset private search list if
79453         it wasn't used.
79454
79455 2011-08-23  David S. Miller  <davem@davemloft.net>
79456
79457         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
79458         subtract stack bias.
79459         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
79460         %sp not %fp in calculations.
79461         (_JMPBUF_UNWINDS_ADJ): Likewise.
79462
79463         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
79464         (aio_suspend): Call it to force an exception region around the
79465         AIO_MISC_WAIT() invocation.
79466
79467 2011-08-23  Andreas Schwab  <schwab@redhat.com>
79468
79469         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
79470         backslash.
79471
79472 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
79473
79474         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
79475         protection macro.
79476         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
79477         and <dl-machine.h>.
79478         (Elf64_FuncDesc): Remove.
79479
79480 2011-08-22  David S. Miller  <davem@davemloft.net>
79481
79482         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
79483         sigaltstack check, add missing cfi directives.
79484         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
79485         missing cfi directives, and sigaltstack handling.
79486
79487 2011-08-16  Andreas Schwab  <schwab@redhat.com>
79488
79489         [BZ #11724]
79490         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
79491         object is seen twice.
79492         * elf/dl-fini.c (_dl_sort_fini): Likewise.
79493
79494         * elf/Makefile (distribute): Add tst-initorder2.c.
79495         (tests): Add tst-initorder2.
79496         (modules-names): Add tst-initorder2a tst-initorder2b
79497         tst-initorder2c tst-initorder2d.  Add rules to build them.
79498         ($(objpfx)tst-initorder2.out): New rule.
79499         * elf/tst-initorder2.c: New file.
79500         * elf/tst-initorder2.exp: New file.
79501
79502 2011-08-22  Andreas Schwab  <schwab@redhat.com>
79503
79504         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
79505
79506         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
79507         dependencies back to end of function.
79508
79509         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79510         $(elfobjdir)/ld.so.
79511
79512 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
79513
79514         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
79515         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
79516         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
79517         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
79518         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
79519         of __vdso_gettimeofday.
79520         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
79521         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
79522         attribute_hidden.
79523         (_libc_vdso_platform_setup): Remove initialization of
79524         __vdso_gettimeofday and __vdso_time.
79525
79526 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79527
79528         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
79529         and fgetc_unlocked.
79530         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
79531         getc_unlocked.
79532
79533         * elf/dl-open.c (add_to_global): Report additions to the global scope
79534         for LD_DEBUG=scopes.
79535         (dl_open_worker): Also print scope of newly loaded dependencies.
79536         (_dl_show_scope): Indicate if there is no scope.
79537
79538         [BZ #13114]
79539         * stdio-common/Makefile (tests): Add bug24.
79540         * stdio-common/bug24.c: New file.
79541
79542 2011-08-19  Andreas Jaeger  <aj@suse.de>
79543
79544         [BZ #13114]
79545         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
79546         non-existant file when using close-on-exec mode.
79547
79548 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79549
79550         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
79551         the very first instruction.
79552
79553         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
79554         the CFI state in the end.
79555         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
79556         inclusion of dl-trampoline.h.
79557         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
79558
79559 2011-08-19  Andreas Schwab  <schwab@redhat.com>
79560
79561         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
79562         expectations for long double.
79563
79564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
79565         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
79566
79567 2011-08-14  David S. Miller  <davem@davemloft.net>
79568
79569         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
79570         artificual limit depends upon the system page size.
79571
79572 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79573
79574         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
79575         * resolv/Makefile: Define CFLAGS-libresolv.
79576
79577 2011-08-17  Andreas Schwab  <schwab@redhat.com>
79578
79579         * nss/makedb.c (compute_tables): Make variables used in nested
79580         function static.
79581
79582 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79583
79584         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
79585         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
79586         if buffer was too small.
79587
79588         * elf/pldd.c (main): Attach to all threads in the process.
79589         Rewrite /proc handling to use *at functions.
79590
79591 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
79592
79593         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
79594         specifies first scope to show.
79595         (dl_open_worker): Update callers.  Move printing scope of new
79596         object to before the relocation.
79597         * elf/rtld.c (dl_main): Update _dl_show_scope call.
79598         * sysdeps/generic/ldsodefs.h: Update declaration.
79599
79600         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
79601         string for the scope number.
79602
79603 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
79604
79605         * nscd/servicescache.c (cache_addserv): Make sure written is always
79606         initialized.
79607
79608 2011-08-14  Roland McGrath  <roland@hack.frob.com>
79609
79610         * sysdeps/i386/i486/bits/atomic.h
79611         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
79612         statement expression, so as to suppress "set but not used" warning.
79613         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
79614
79615         * string/strncat.c (STRNCAT): Use prototype definition.
79616
79617         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
79618         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
79619         -Iprograms here.
79620         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
79621         (localedef-modules): Add localedef.
79622         (locale-modules): Add locale.
79623
79624         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
79625         * elf/rtld.c (dl_main): Invert order of assignment in last change,
79626         to avoid a warning.
79627
79628 2011-08-14  David S. Miller  <davem@davemloft.net>
79629
79630         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
79631         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
79632
79633 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
79634
79635         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
79636         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
79637         * elf/rtld.c (dl_main): Set l_name of vDSO.
79638         Call _dl_show_scope when DL_DEBUG_SCOPES.
79639         (process_dl_debug): Recognize scopes flag and also set it for all.
79640         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
79641         Declare _dl_show_scope.
79642
79643         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
79644         (do_dlopen): Pass caller_dlopen to dl_open.
79645         (__libc_dlopen_mode): Initialize caller_dlopen.
79646
79647         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
79648         of libc.  Make tolower call locale-independent.  Optimize a bit by
79649         using isdigit instead of isalnum.
79650         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
79651
79652 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
79653
79654         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
79655         was a dependency or dynamically loaded.
79656
79657 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
79658
79659         * intl/l10nflist.c: Allow architecture-specific pop function.
79660         * sysdeps/x86_64/l10nflist.c: New file.
79661
79662         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
79663         classification.
79664
79665 2011-08-10  Andreas Schwab  <schwab@redhat.com>
79666
79667         * include/dirent.h: Add libc_hidden_proto for scandirat and
79668         scandirat64.  Don't declare __scandirat64.
79669         * dirent/scandirat.c: Add libc_hidden_def.
79670         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
79671         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
79672
79673 2011-08-10  David S. Miller  <davem@davemloft.net>
79674
79675         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
79676         enum.
79677         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79678         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79679         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79680
79681 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
79682
79683         * Versions.def [libc]: Add GLIBC_2.15.
79684         * dirent/Makefile (routines): Add scandirat and scandirat64.
79685         * dirent/Versions [libc]: Export scandirat and scandirat64 for
79686         GLIBC_2.15.
79687         * dirent/dirent.h: Declare scandirat and scandirat64.
79688         * dirent/scandirat.c: New file.
79689         * dirent/scandirat64.c: New file.
79690         * sysdeps/wordsize-64/scandirat.c: New file.
79691         * sysdeps/wordsize-64/scandirat64.c: New file.
79692         * dirent/opendir.c: Define opendirat.
79693         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
79694         using scandirat.
79695         * dirent/scandir64.c: Adjust for scandir.c change.
79696         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
79697         __scandirat64, and __scandir_cancel_handler.
79698         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
79699         additional parameter and use openat instead of open (outside of ld.so).
79700         Add new __opendir as wrapper around __opendirat.
79701         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
79702         here without requiring old scandirat implementation.
79703
79704 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
79705
79706         * dirent/scandir.c (cancel_handler): Renamed to
79707         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
79708         defined.  Adjust users.
79709         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
79710         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
79711
79712 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
79713
79714         * string/test-string.h (IMPL): Use __STRING to expand name and then
79715         stringify it.
79716
79717         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
79718         of cleanups.
79719
79720 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79721
79722         * string/Makefile: Update.
79723         (strop-tests): Append strncat.
79724         * string/test-wcscmp.c: New file.
79725         New comprehensive test for wcscmp.
79726         * string/test-strcmp.c: Update.
79727         (WIDE): New define.
79728
79729 2011-07-22  Andreas Schwab  <schwab@redhat.com>
79730
79731         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
79732         line.
79733
79734 2011-07-26  Andreas Schwab  <schwab@redhat.com>
79735
79736         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79737         encoding to ACE if AI_IDN.
79738
79739 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
79740
79741         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
79742         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
79743
79744 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79745
79746         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
79747         Fix overflow bug in strncat.
79748         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
79749
79750         * string/test-strncat.c: Update.
79751         Add new tests for checking overflow bugs.
79752
79753 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79754
79755         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79756         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
79757         * sysdeps/i386/i686/multiarch/strcat.S: New file.
79758         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
79759         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
79760         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
79761         * sysdeps/i386/i686/multiarch/strncat.S: New file.
79762         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
79763         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
79764
79765         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
79766         (USE_AS_STRCAT): Define.
79767         Add strcat and strncat support.
79768         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79769
79770 2011-07-25  Andreas Schwab  <schwab@redhat.com>
79771
79772         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
79773         __n bigger than INT_MAX+1.
79774         (__strncmp_g): Likewise.
79775
79776 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
79777
79778         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
79779         * libio/stido.h: Likewise.
79780
79781         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
79782         (AF_NFC): Define.
79783         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
79784         (AF_NFC): Define.
79785
79786         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
79787         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79788         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79789         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
79790         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79791
79792         [BZ #13021]
79793         * scripts/test-installation.pl: Don't expect libnss_test1 to be
79794         installed.
79795
79796         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
79797         typo.
79798         (_dl_x86_64_save_sse): Likewise.
79799
79800 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
79801
79802         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
79803         OSXSAVE.
79804         (_dl_x86_64_save_sse): Likewise.
79805
79806         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
79807
79808         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
79809
79810 2011-07-21  Andreas Schwab  <schwab@redhat.com>
79811
79812         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
79813         change.
79814         (_dl_x86_64_save_sse): Use correct AVX check.
79815
79816 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79817
79818         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
79819         bug in strncpy/strncat.
79820         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
79821
79822 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
79823
79824         * string/tester.c (test_strcat): Add tests for different alignments
79825         of source and destination.
79826         (test_strncat): Likewise.
79827
79828 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79829
79830         [BZ #12852]
79831         * posix/glob.c (glob): Check passed in values before using them in
79832         expressions to avoid some overflows.
79833         (glob_in_dir): Likewise.
79834
79835         [BZ #13007]
79836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
79837         check for AVX enablement so that we don't crash with old kernels and
79838         new hardware.
79839         * elf/tst-audit4.c: Add same checks here.
79840         * elf/tst-audit6.c: Likewise.
79841
79842         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
79843
79844 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
79845
79846         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
79847
79848 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79849
79850         * po/cs.po: Update from translation team.
79851         * po/bg.po: Likewise.
79852
79853 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
79854
79855         * misc/sys/cdefs.h: Add support for const attribute.
79856         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
79857         to gnu_dev_{major,minor,makedev} functions.
79858
79859 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
79860
79861         * intl/dcigettext.c (get_output_charset): Add missing bracket.
79862
79863 2011-07-20  Andreas Schwab  <schwab@redhat.com>
79864
79865         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
79866         strlen results.
79867
79868 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79869
79870         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
79871         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
79872         register in order to avoid conflicts with the soft frame pointer
79873         being held in r11 when necessary.
79874         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
79875         (INTERNAL_VSYSCALL_NCS): Likewise.
79876
79877 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
79878
79879         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
79880         * elf/dl-fini.c (_dl_fini): Adjust caller.
79881         * elf/dl-close.c (_dl_close_worker): Likewise.
79882         * sysdeps/generic/ldsodefs.h: Adjust declaration.
79883
79884 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79885
79886         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
79887         "aux_cache->nlibs < 0".
79888
79889         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
79890         in the reload-count case.
79891
79892 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79893
79894         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79895         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
79896         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
79897         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
79898         * sysdeps/x86_64/multiarch/strcat.S: New file.
79899         * sysdeps/x86_64/multiarch/strncat.S: New file.
79900         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
79901         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
79902         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
79903         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
79904         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
79905         (USE_AS_STRCAT): Define.
79906         Add strcat and strncat support.
79907         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79908         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
79909         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
79910         * string/strncat.c: Update.
79911         (USE_AS_STRNCAT): Define.
79912         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79913         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
79914         and i7.
79915         * sysdeps/x86_64/multiarch/init-arch.h
79916         (bit_Prefer_PMINUB_for_stringop): New.
79917         (index_Prefer_PMINUB_for_stringop): Likewise.
79918         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
79919         bit_Prefer_PMINUB_for_stringop.
79920
79921 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79922
79923         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
79924         buffer64.
79925         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
79926         of casting of buffer.
79927         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
79928         buffer32 and buffer64.
79929         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
79930         writes instead of casting of buffer.
79931         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
79932         buffer32.
79933         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
79934         casting of buffer.
79935
79936 2011-07-19  Andreas Schwab  <schwab@redhat.com>
79937
79938         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
79939
79940 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79941
79942         * nscd/nscd.c (termination_handler): Don't do anything for a database
79943         if it has not yet been initialized.
79944
79945 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79946
79947         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79948
79949 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79950
79951         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79952
79953 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79954
79955         * po/nl.po: Update from translation team.
79956         * po/sv.po: Likewise.
79957
79958 2011-07-16  Roland McGrath  <roland@hack.frob.com>
79959
79960         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
79961         now disallowed by GCC.
79962
79963         * configure.in (use-default-link): Default to yes if a test -shared
79964         link meets our qualifications.
79965         * configure: Regenerated.
79966
79967         * config.make.in (output-format): New variable.
79968         * configure.in: Check for ld --print-output-format support.
79969         * configure: Regenerated.
79970         * Makerules ($(common-objpfx)format.lds)
79971         [$(output-format) != unknown]: Just use $(output-format),
79972         instead of the linker-script munging.
79973
79974 2011-07-14  Roland McGrath  <roland@hack.frob.com>
79975
79976         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
79977         of $(common-objpfx)shlib.lds.
79978         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
79979
79980         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
79981         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
79982
79983         * configure.in (-z relro check): Adjust test code to add a large
79984         writable data section after it.
79985         * configure: Regenerated.
79986
79987 2011-07-11  Roland McGrath  <roland@hack.frob.com>
79988
79989         * configure.in (-z relro check): Fix test code to make the variable
79990         truly const.
79991         * configure: Regenerated.
79992
79993 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
79994
79995         * nscd/nscd.h (struct traced_file): Define.
79996         (struct database_dyn): Remove inotify_descr, reset_res, and filename
79997         elements.  Add traced_files.
79998         (inotify_fd): Declare.
79999         (register_traced_file): Declare.
80000         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
80001         (inotify_fd): Export.
80002         (resolv_conf_descr): Remove.
80003         (nscd_init): Move inotify descriptor creation to main.
80004         Don't register files for notification here.
80005         (register_traced_file): New function.
80006         (invalidate_cache): Don't use reset_res to determine whether to call
80007         res_init, go through the list of registered files.
80008         (main_loop_poll): The inotify descriptors are now stored in the
80009         structures for the traced files.
80010         (main_loop_epoll): Likewise.
80011         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
80012         to __nss_disable_nscd.
80013         * nscd/cache.c (prune_cache): There is no single inotify descriptor
80014         for a database anymore.  Check the records for all the registered
80015         files instead.
80016         * nss/Makefile (libnss_files-routines): Add files-init.
80017         (libnss_db-routines): Add db-init.
80018         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
80019         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
80020         * nss/nss_db/db-init.c: New file.
80021         * nss/nss_files/files-init.c: New file.
80022         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
80023         __nss_lookup_function.
80024         (__nss_lookup_function): Call nss_load_library.
80025         (nss_load_all_libraries): New function.
80026         (__nss_disable_nscd): Take parameter with callback function for files
80027         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
80028         used for the cached services.
80029         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
80030         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
80031         options for features to all the files in nscd.
80032
80033         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
80034
80035 2011-07-10  Roland McGrath  <roland@hack.frob.com>
80036
80037         * csu/elf-init.c (__libc_csu_init): Comment typo.
80038
80039 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
80040
80041         * po/pl.po: Update from translation team.
80042         * po/ja.po: Likewise.
80043         * po/ru.po: Likewise.
80044         * po/ko.po: Likewise.
80045         * po/fr.po: Likewise.
80046
80047 2011-07-09  Roland McGrath  <roland@hack.frob.com>
80048
80049         * configure.in (.ctors/.dtors header and trailer check):
80050         Use an empirical test on a built program.
80051         * configure: Regenerated.
80052
80053         * configure.in (-z relro check): Use an empirical test on a built DSO.
80054         Detect, but do not require, on ia64.
80055         * configure: Regenerated.
80056
80057         * configure.in (READELF): Find it with AC_CHECK_TOOL.
80058         Update tests that use readelf to use $READELF instead.
80059         * configure: Regenerated.
80060
80061 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
80062
80063         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
80064         if the result is not used.
80065
80066 2011-07-05  Andreas Jaeger  <aj@suse.de>
80067
80068         [BZ#9696]
80069         * stdlib/tst-strtod.c: Add testcase.
80070
80071 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
80072
80073         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
80074         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
80075         The latter has a higher limit.  Take additional parameter to pass to
80076         the new function.
80077         (__pathconf): Pass file to __statfs_link_max.
80078         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
80079         __statfs_link_max.
80080         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
80081         __statfs_link_max.
80082
80083         [BZ #12868]
80084         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
80085         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
80086         Handle Lustre.
80087         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
80088         (__statfs_filesize_max): Likewise.
80089         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
80090
80091 2011-07-05  Andreas Jaeger  <aj@suse.de>
80092
80093         * resolv/res_comp.c (dn_skipname): Remove unused variable.
80094
80095 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
80096
80097         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
80098         `status' variable.
80099         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
80100         Likewise.
80101
80102 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
80103
80104         * Makefile (strop-tests): Add strncat.
80105         * string/test-strncat.c: New file.
80106
80107 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
80108
80109         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
80110
80111 2011-06-21  Andreas Jaeger  <aj@suse.de>
80112
80113         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
80114         Copy rule from iconvdata/Makefile.
80115
80116 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80117
80118         [BZ #12922]
80119         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
80120         but no long options are defined, just return 'W'.
80121
80122 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
80123
80124         [BZ #9696]
80125         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
80126
80127 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80128
80129         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
80130         netgroups to read.
80131         (innetgr): Likewise.
80132
80133 2011-07-05  Roland McGrath  <roland@hack.frob.com>
80134
80135         * config.make.in (install_root): Default to $(DESTDIR).
80136
80137 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
80138
80139         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
80140
80141 2011-07-02  Roland McGrath  <roland@hack.frob.com>
80142
80143         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
80144
80145         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
80146         containing directory rather than embedding absolute directory names.
80147
80148         * scripts/check-local-headers.sh: Rewritten using awk.
80149         Match by word, not by line.  Print error messages for matches.
80150         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
80151
80152         * Makerules [shlib-lds-flags empty]:
80153         ($(common-objpfx)libc_pic.opts): New target.
80154         ($(common-objpfx)libc_pic.os.clean): New target.
80155         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
80156
80157         * config.make.in (OBJCOPY): New variable.
80158         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
80159         * configure: Regenerated.
80160
80161         * config.make.in (use-default-link): New variable.
80162         * configure.in (use_default_link): Grok --with-default-link to set it.
80163         * configure: Regenerated.
80164         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
80165         (shlib-lds, shlib-lds-flags): Define to empty.
80166
80167         * Makerules (shlib-lds): New variable.
80168         (shlib-lds-flags): New variable.
80169         (build-shlib, build-moduile, build-module-asneeded): Use it.
80170         ($(common-objpfx)libc.so): Use $(shlib-lds).
80171         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
80172         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
80173
80174         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
80175         DT_FLAGS/DT_FLAGS_1 with zero flags.
80176
80177         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
80178         linker script munging.
80179
80180 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
80181
80182         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
80183         as 128-bit value.
80184         * crypt/sha512.c (sha512_process_block): Perform total addition using
80185         128-bit if possible.
80186         (__sha512_finish_ctx): Likewise.
80187         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
80188         as 64-bit value.
80189         * crypt/sha256.c (SWAP64): Define.
80190         (sha256_process_block): Perform total addition using 64-bit if
80191         possible.
80192         (__sha256_finish_ctx): Likewise.
80193
80194 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
80195
80196         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
80197         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80198         * nscd/hstcache.c (cache_addhst): Likewise.
80199         * nscd/grpcache.c (cache_addgr): Likewise.
80200         * nscd/aicache.c (addhstaiX): Likewise.
80201         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
80202
80203 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
80204
80205         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
80206         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80207         * nscd/hstcache.c (cache_addhst): Likewise.
80208         * nscd/grpcache.c (cache_addgr): Likewise.
80209         * nscd/aicache.c (addhstaiX): Likewise.
80210
80211 2011-07-01  Andreas Schwab  <schwab@redhat.com>
80212
80213         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
80214         domain only when needed.
80215
80216 2011-06-30  Andreas Schwab  <schwab@redhat.com>
80217
80218         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
80219         is always restored.
80220
80221 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
80222
80223         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
80224         are re-adding the entry.
80225         * nscd/servicescache.c (cache_addserv): Likewise.
80226
80227 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
80228
80229         * sysdeps/generic/dl-irel.h: fix protection against multiple
80230         inclusions.
80231         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
80232
80233 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
80234
80235         [BZ #12935]
80236         * malloc/memusage.sh: Fix quoting in message.
80237         * debug/xtrace.sh: Likewise.
80238
80239         * configure.in: Remove support for --experimental-malloc option, make
80240         it the default.
80241         * config.make.in: Likewise.
80242         * malloc/Makefile: Likewise.
80243
80244 2011-06-27  Andreas Schwab  <schwab@redhat.com>
80245
80246         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
80247         two-byte characters.
80248
80249 2011-06-27  Roland McGrath  <roland@hack.frob.com>
80250
80251         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
80252         AC_CACHE_CHECK invocation.
80253         * configure: Regenerated.
80254
80255         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
80256
80257 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
80258
80259         [BZ #12350]
80260         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
80261         bit from old_res_options.
80262
80263         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
80264
80265         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
80266         value type for setfct.
80267
80268 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
80269
80270         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80271         __gettimeofday instead of gettimeofday.
80272
80273 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
80274
80275         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
80276
80277 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
80278
80279         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
80280
80281         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
80282         info.
80283
80284 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80285
80286         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80287         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80288         strcpy-sse2-unaligned strncpy-sse2-unaligned
80289         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
80290         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
80291         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
80292         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
80293         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
80294         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
80295         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
80296         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
80297         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
80298         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
80299         (STRCPY): Support SSE2 and SSSE3 versions.
80300
80301 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
80302
80303         [BZ #12874]
80304         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
80305         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
80306         kernels which artificially limit size of requests.
80307
80308 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80309
80310         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80311         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80312         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
80313         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
80314         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
80315         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
80316         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
80317         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
80318         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
80319         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
80320         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
80321         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
80322         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
80323         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
80324         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
80325         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80326         Enable unaligned load optimization for Intel Core i3, i5 and i7
80327         processors.
80328         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
80329         Define.
80330         (index_Fast_Unaligned_Load): Define.
80331         (HAS_FAST_UNALIGNED_LOAD): Define.
80332
80333 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
80334
80335         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
80336
80337 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80338
80339         [BZ #12907]
80340         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
80341         until it is clear that the information is realy needed.
80342         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
80343
80344 2011-06-22  Andreas Schwab  <schwab@redhat.com>
80345
80346         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
80347
80348 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80349
80350         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80351         /sys/devices/system/cpu/online if it is usable.
80352
80353         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
80354         reading the information from the /proc filesystem to once a second.
80355
80356 2011-06-21  Andreas Jaeger  <aj@suse.de>
80357
80358         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
80359         NULL after inclusion of kernel headers.
80360
80361 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
80362
80363         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
80364         calls to internal_setent.
80365
80366         [BZ #12885]
80367         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
80368         addresses using gethostbyname4_r ignore IPv4 addresses.
80369
80370         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
80371         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
80372
80373         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
80374
80375 2011-06-20  David S. Miller  <davem@davemloft.net>
80376
80377         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
80378         inclusions.
80379         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
80380
80381         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
80382         (elf_irel): Use it.
80383         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
80384         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
80385         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
80386         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
80387         * sysdeps/x86_64/dl-irel.h: Likewise.
80388
80389         * elf/dl-runtime.c: Use elf_ifunc_invoke.
80390         * elf/dl-sym.c: Likewise.
80391
80392 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80393
80394         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
80395         need to dereference resplen2.
80396
80397 2011-06-14  Andreas Schwab  <schwab@redhat.com>
80398
80399         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
80400
80401 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80402
80403         * Makeconfig: Define vardbdir and inst_vardbdir.
80404         * nss/Makefile: Add rules to install db-Makefile.
80405
80406         * nss/nss_db/db-XXX.c: Cleanup.
80407
80408         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
80409         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
80410         GLIBC_PRIVATE.
80411         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
80412         * nss/makedb.c: Implement -g option to specify that value strings
80413         are generated and should not be added to table iterated over for
80414         get*ent calls.
80415         * nss/nss_db/db-initgroups.c: New file.
80416
80417         * nss/getent.c: Add support for initgroups lookups through getgrouplist
80418         interface.
80419
80420         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
80421         (internal_getgrouplist): Adjust to name change.
80422         Update use_initgroups_entry if this is not the first call.
80423         * nss/databases.def: Add initgroups entry.
80424
80425         * nss/makedb.c (compute_tables): Check result of multiple hash table
80426         sizes to minimize maximum chain length.
80427
80428 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
80429
80430         * Versions.def: Add entry for libnss_db.
80431         * shlib-versions: Likewise.
80432         * nss/Makefile: Add rules to build libnss_db.
80433         * nss/Versions: Add libnss_db information.  Organize libnss_files
80434         entries better.
80435         * nss/db-Makefile: Add gshadow support.  Change rules for the new
80436         makedb progra.  Some minor improvements to generate smaller files.
80437         * nss/nss_db/nss_db.h: Move NSS database header data structures to
80438         here from...
80439         * nss/makedb.c: ...here.
80440         Improve database format to be smaller and require less memory at
80441         runtime.
80442         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
80443         db anymore.
80444         * nss/nss_db/db-netgrp.c: Likewise.
80445         * nss/nss_db/db-open.c: Likewise.
80446         * nss/nss_files/flies-XXX.x: Adjust comments.
80447         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
80448         * nss/nss_files/files-grp.c: Likewise.
80449         * nss/nss_files/files-hosts.c: Likewise.
80450         * nss/nss_files/files-network.c: Likewise.
80451         * nss/nss_files/files-proto.c: Likewise.
80452         * nss/nss_files/files-pwd.c: Likewise.
80453         * nss/nss_files/files-rpc.c: Likewise.
80454         * nss/nss_files/files-service.c: Likewise.
80455         * nss/nss_files/files-sgrp.c: Likewise.
80456         * nss/nss_files/files-spwd.c: Likewise.
80457         * nss/nss_db/db-alias.c: Removed.
80458         * nss/nss_db/dummy-db.h: Removed.
80459
80460 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
80461
80462         * nss/makedb.c: Rewritten to not use database library.
80463         * nss/Makefile: Update to build new makedb program.
80464
80465 2011-06-14  Andreas Jaeger  <aj@suse.de>
80466
80467         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
80468         memset declaration.
80469
80470 2011-06-10  Andreas Schwab  <schwab@redhat.com>
80471
80472         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
80473         tmpbuf.
80474
80475 2011-06-10  Roland McGrath  <roland@hack.frob.com>
80476
80477         * Makerules (shlib.lds): Fail if the linker script comes out empty.
80478         * elf/Makefile ($(objpfx)ld.so): Likewise.
80479
80480         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
80481         Don't list ld.so twice in dependencies.
80482
80483         * posix/bug-regex31.c: Include <stdlib.h>.
80484
80485         * nscd/hstcache.c (cache_addhst): Remove unused variable.
80486
80487         * nis/nss_compat/compat-spwd.c
80488         (getspent_next_nss_netgr): Remove unused variable.
80489         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
80490
80491         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
80492         nonmembers" output to use the right array.
80493
80494         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
80495
80496         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
80497
80498         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
80499         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
80500         * catgets/gencat.c (read_input_file): Likewise.
80501         * locale/programs/locarchive.c (enlarge_archive): Likewise.
80502
80503         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
80504         variable definition inside #if's controlling its use.
80505
80506         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
80507
80508         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
80509
80510         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
80511
80512         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
80513         unreachable code.
80514
80515         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
80516
80517         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
80518         * configure: Regenerated.
80519
80520         * Makerules: Revert last change.
80521         * elf/Makefile: Likewise.
80522
80523 2011-06-09  Roland McGrath  <roland@hack.frob.com>
80524
80525         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
80526         * elf/Makefile ($(objpfx)librtld.os): Likewise.
80527         (reloc-link): Likewise.
80528
80529 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
80530
80531         * elf/Makefile: Add rules to build pldd.
80532         * elf/pldd.c: New file.
80533         * elf/pldd-xx.c: New file.
80534
80535 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
80536
80537         * version.h: Update for 2.15 development version.
80538
80539 2011-06-07  David S. Miller  <davem@davemloft.net>
80540
80541         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
80542         ifuncs.
80543         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
80544         elf_machine_lazy_rel): Likewise.
80545         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
80546         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
80547         elf_machine_lazy_rel): Likewise.
80548         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
80549         dl_hwcap via passed in argument.
80550         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
80551         Likewise.
80552
80553 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80554
80555         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
80556
80557 2011-06-06  Roland McGrath  <roland@hack.frob.com>
80558
80559         [BZ #12849]
80560         * manual/fdl-1.1.texi: New file, verbatim from:
80561         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
80562         * manual/lgpl-2.1.texi: New file, verbatim from:
80563         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
80564         * manual/Makefile (licenses): New variable, list those new file names.
80565         (texis): Use it.
80566         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
80567
80568         * manual/fdl.texi: File removed.
80569         * manual/lesser.texi: File removed.
80570         * manual/libc.texinfo (Copying, Documentation License):
80571         Use new @include file names, put @appendix directive before @include.
80572
80573 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
80574
80575         [BZ #12841]
80576         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
80577         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
80578         (mq_open): Add __NTH.
80579
80580 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
80581
80582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80583         Assume Intel Core i3/i5/i7 processor if AVX is available.
80584
80585 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80586
80587         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80588         typo.
80589
80590 2011-05-31  Andreas Schwab  <schwab@redhat.com>
80591
80592         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
80593         memory.  Use alloca_account.  Fix memory leak when retrying.
80594
80595 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80596
80597         * version.h (RELEASE): Bump for 2.14 release.
80598         * include/features.h (__GLIBC_MINOR__): Bump to 14.
80599
80600         * config.make.in (RANLIB): Remove entry.
80601
80602 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
80603
80604         * po/Makefile (po-sed-cmd): Add ksh to extensions.
80605         (libc.pot): Work around missing support for .ksh extension in xgettext.
80606
80607         [BZ #12684]
80608         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
80609         if both request failed.
80610         (send_dg): In case of server errors clear resplen or *resplen2.
80611
80612         [BZ #12454]
80613         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
80614         when there are multiple maps.
80615         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
80616         (_dl_fini): Remove test here.
80617
80618         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
80619
80620 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
80621
80622         [BZ #12350]
80623         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
80624         bit from old_res_options.
80625         (gaih_inet): Likewise.
80626
80627         [BZ #11099]
80628         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
80629         as signed.
80630
80631         * resolv/res_init.c (res_setoptions): Make the code more compact.
80632
80633         [BZ #11558]
80634         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
80635         set RES_USEVC.
80636
80637         [BZ #11634]
80638         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
80639
80640         * malloc/malloc.h: Mark malloc hook variables as deprecated.
80641
80642         [BZ #11781]
80643         * malloc/malloc.h: Declare malloc hook variables as volatile.
80644
80645         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
80646         in last patch.
80647
80648         [BZ #11799]
80649         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
80650         raise in the comment.
80651         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
80652         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
80653         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
80654
80655 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
80656
80657         [BZ #12811]
80658         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
80659         grow the buffers more if it already has to be sufficient.
80660         (build_wcs_upper_buffer): Likewise.
80661         * posix/regexec.c (check_matching): Likewise.
80662         (clean_state_log_if_needed): Likewise.
80663         (extend_buffers): Don't enlarge buffers beyond size of the input
80664         buffer.
80665         Patches mostly by Emil Wojak <emil@wojak.eu>.
80666         * posix/bug-regex32.c: New file.
80667         * posix/Makefile (tests): Add bug-regex32.
80668
80669         * locale/findlocale.c (_nl_find_locale): Return right away if
80670         _nl_explode_name failed.
80671         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
80672
80673         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
80674
80675         * debug/xtrace.sh: Unify messages.
80676         * malloc/memusage.sh: Likewise.
80677
80678         [BZ #12813]
80679         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
80680         time symbol from vDSO.  Substitute with vsyscall if not available.
80681         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
80682         __vdso_time.
80683
80684         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
80685         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
80686         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
80687         Add sendmmsg and internal_sendmmsg.
80688         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
80689         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
80690         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
80691
80692         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
80693         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
80694         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80695
80696 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
80697
80698         [BZ #12813]
80699         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
80700         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
80701         available.
80702         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
80703         __vdso_getcpu.
80704
80705         [BZ #12814]
80706         * iconvdata/Makefile (tests): Add bug-iconv9.
80707         * iconvdata/bug-iconv9.c: New file.
80708
80709 2011-05-27  Andreas Schwab  <schwab@redhat.com>
80710
80711         [BZ #12814]
80712         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
80713
80714 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
80715
80716         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80717         (struct user_regs_struct): Change intcs field back to cs.
80718
80719 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
80720
80721         * po/ja.po: Update from translation team.
80722
80723 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
80724
80725         [BZ #12795]
80726         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
80727         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
80728
80729 2011-05-20  Andreas Schwab  <schwab@redhat.com>
80730
80731         * stdlib/longlong.h: Update from GCC.
80732
80733 2011-05-23  Andreas Schwab  <schwab@redhat.com>
80734
80735         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
80736         parameter name.
80737         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
80738         Add parameter name.
80739         (__sysconf): Pass it down.
80740
80741 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
80742
80743         [BZ #12671]
80744         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
80745         some situations.
80746         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
80747         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
80748         add in in __libc_use_alloca calls.  Adjust callers.
80749         (glob): Use malloc in some situations.
80750
80751         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
80752         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
80753         pltexit.
80754
80755 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
80756
80757         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
80758         and CLOCK_BOOTTIME_ALARM.
80759
80760         [BZ #12782]
80761         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
80762         is returned.
80763
80764         * string/_strerror.c (__strerror_r): Print negative errors as signed
80765         numbers.
80766
80767         [BZ #12777]
80768         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
80769         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
80770         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
80771
80772         * configure.in: Fix typo in redirection and correct removal of test
80773         files in two cases.
80774
80775         [BZ #12788]
80776         * locale/setlocale.c (new_composite_name): Fix test to check for
80777         identical name of all categories.
80778
80779         [BZ #12792]
80780         * libio/filedoalloc.c (local_isatty): New function.
80781         (_IO_file_doallocate): Use local_isatty.
80782         * stdio-common/perror.c (perror): In case a new stream is used
80783         forward the stream error.
80784         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
80785         error flag.
80786
80787 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
80788
80789         [BZ #11884]
80790         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
80791         alloca.
80792         * include/alloca.h (extend_alloca_account): Define.
80793
80794         [BZ #11857]
80795         * posix/regex.h: Fix comments with documentation of user-accessible
80796         fields after compilation and describe correct free'ing of pattern
80797         after re_compile_pattern.
80798         Patch by Reuben Thomas <rrt@sc3d.org>.
80799
80800 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
80801
80802         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
80803         and -mno-altivec to prevent the compiler from using Altivec and/or
80804         VSX instructions when the corresponding registers are not available.
80805
80806 2011-05-19  Andreas Schwab  <schwab@redhat.com>
80807
80808         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
80809
80810 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
80811
80812         * libio/freopen.c (freopen): Use __dup2, not dup2.
80813         * libio/freopen64.c (freopen64): Likewise.
80814
80815 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
80816
80817         [BZ #12775]
80818         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
80819         * math/Makefile (tests): Add test-powl.
80820         (CFLAGS-test-powl.c): Define.
80821         * math/test-powl.c: New file.
80822
80823 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
80824
80825         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
80826
80827 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
80828
80829         [BZ #11837]
80830         * iconvdata/gb18030.c: Update to GB18020-2005.
80831
80832 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
80833
80834         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
80835         RE_SYNTAX_POSIX_AWK): Update to match recent development.
80836         Patch by Aharon Robbins <arnold@skeeve.com>.
80837
80838         [BZ #11892]
80839         * stdlib/putenv.c (putenv): Don't always create copy of the variable
80840         on the stack.
80841
80842         [BZ #11895]
80843         * misc/pselect.c (__pselect): Handle timeout value errors hidden
80844         through underflows.
80845
80846         [BZ #12766]
80847         * misc/error.c (error_at_line): Ensure file_name and old_file_name
80848         point to strings before performing equality test for error_one_per_line
80849         mode.
80850
80851         [BZ #11697]
80852         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
80853
80854         [BZ #11820]
80855         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80856         (struct user_fpregs_struct): Avoid __uint*_t types.
80857
80858         [BZ #6420]
80859         * malloc/mtrace.c (tr_where): Add additional parameter to point to
80860         symbol info.  Use it instead of calling _dl_addr locally.
80861         (lock_and_info): New function.
80862         (tr_freehook): Call lock_and_info and pass symbol info as additional
80863         parameter to tr_where.
80864         (tr_mallochook): Likewise.
80865         (tr_reallochook): Likewise.
80866         (tr_memalignhook): Likewise.
80867
80868         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
80869         used and couldn't be at all thread-safe.
80870
80871 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
80872
80873         * libio/freopen.c (freopen): Don't close old file descriptor
80874         before the new one is opened.  Instead dup the new file descriptor
80875         to the old one after the new stream is created.
80876         * libio/freopen64.c (freopen64): Likewise.
80877         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
80878         * libio/fileops.c (_IO_new_file_close_it): Handle new
80879         _IO_FLAGS2_NOCLOSE flag.
80880         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
80881         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
80882         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
80883         _IO_FLAGS2_NOCLOSE flag.
80884         * include/unistd.h: Add hidden_proto for dup3.
80885         Define __have_dup3.
80886         * io/dup3.c: Define hidden symbol.
80887         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
80888
80889         [BZ #7101]
80890         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
80891         when an incomplete long option is used.
80892         * posix/tst-getopt_long1.c: New file.
80893         * posix/Makefile (tests): Add tst-getopt_long1.
80894
80895         [BZ #10138]
80896         * scripts/config.guess: Update from autoconf-2.68.
80897         * scripts/config.sub: Likewise.
80898
80899         [BZ #10157]
80900         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
80901         tests into ...
80902         (has_cpuclock): ...this.  New function.
80903         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
80904         macro here based on has_cpuclock code.
80905
80906         [BZ #10149]
80907         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80908         First byte (not low byte) is now always NUL.
80909         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
80910
80911         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80912         Use non-cancelable interfaces.
80913
80914         [BZ #9809]
80915         * locale/iso-639.def: Add entry for Sorani.
80916
80917         [BZ #11901]
80918         * include/stdlib.h: Move include protection to the right place.
80919         Define abort_msg_s.  Declare __abort_msg with it.
80920         * stdlib/abort.c (__abort_msg): Adjust type.
80921         * assert/assert.c (__assert_fail_base): New function.  Majority
80922         of code from __assert_fail.  Allocate memory for __abort_msg with
80923         mmap.
80924         (__assert_fail): Now call __assert_fail_base.
80925         * assert/assert-perr.c: Remove bulk of implementation.  Use
80926         __assert_fail_base.
80927         * include/assert.hL Declare __assert_fail_base.
80928         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
80929         mmap.
80930         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
80931
80932 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
80933
80934         [BZ #11952]
80935         [BZ #12453]
80936         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
80937         until all modules are registered in the DTV.
80938         * elf/Makefile: Add rules to build and run tst-tls19.
80939         * elf/tst-tls19.c: New file.
80940         * elf/tst-tls19mod1.c: New file.
80941         * elf/tst-tls19mod2.c: New file.
80942         * elf/tst-tls19mod3.c: New file.
80943         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
80944
80945         [BZ #12083]
80946         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
80947         correctly.
80948
80949         [BZ #12601]
80950         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
80951         two-byte sequence errors.
80952         * iconvdata/Makefile (tests): Add bug-iconv8.
80953         * iconvdata/bug-iconv8.c: New file.
80954
80955         [BZ #12626]
80956         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
80957         buf2 definition.
80958
80959         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
80960
80961         [BZ #12432]
80962         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
80963         (dummy_getcfa): New function.
80964         (init): Get _Unwind_GetCFA address, use dummy if not found.
80965         (backtrace_helper): In recursion check, also check whether CFA changes.
80966         (__backtrace): Completely initialize arg.
80967
80968         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
80969         storing incomplete byte sequence in state object.  Avoid testing for
80970         guaranteed too small input if we know there is enough data available.
80971
80972 2011-05-11  Andreas Schwab  <schwab@redhat.com>
80973
80974         * Makeconfig (+link-pie): Indent.
80975         * Rules (binaries-pie): Define if $(have-fpie) and
80976         $(build-shared).
80977         (binaries-shared): Also filter out $(binaries-pie).
80978         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
80979         * nscd/Makefile (others-pie): Add nscd.
80980         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
80981         ($(objpfx)nscd): Remove command override.
80982         * login/Makefile (others-pie): Add pt_chown.
80983         ($(objpfx)pt_chown): Remove command override.
80984         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
80985         remove command overrides.
80986
80987 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
80988
80989         * libio/tst_putwc.c: Fix error messages.
80990
80991         [BZ #12724]
80992         * libio/fileops.c (_IO_new_file_close_it): Always flush when
80993         currently writing and seek to current position when not.
80994         * libio/Makefile (tests): Add bug-fclose1.
80995         * libio/bug-fclose1.c: New file.
80996
80997 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
80998
80999         [BZ #12511]
81000         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
81001         don't set DF_1_NODELETE here.
81002         (do_lookup_x): When entering new entry test for copy relocation
81003         and if necessary set DF_1_NODELETE flag.
81004         * elf/tst-unique4.cc: New file.
81005         * elf/tst-unique4.h: New file.
81006         * elf/tst-unique4lib.cc: New file.
81007         * elf/Makefile: Add rules to build and run tst-unique4.
81008         Patch by Piotr Bury <pbury@goahead.com>.
81009
81010 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
81011
81012         [BZ #12052]
81013         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
81014
81015         [BZ #12625]
81016         * misc/mntent_r.c (addmntent): Flush the stream after the output
81017
81018         [BZ #12393]
81019         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
81020         (is_trusted_path_normalize): Skip initial colon.  Append slash
81021         to empty buffer.  Duplicate is_trusted_path code but allow
81022         constructed patch to be prefix.
81023         (is_dst): Allow $ORIGIN followed by /.
81024         (_dl_dst_substitute): Correct clearing of check_for_trusted.
81025         Correct testing of result of is_trusted_path_normalize
81026         (decompose_rpath): Fix warning.
81027
81028 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
81029
81030         [BZ #11257]
81031         * grp/initgroups.c (internal_getgrouplist): When we found the service
81032         list through the initgroups entry in nsswitch.conf do not always
81033         continue on a successful lookup.  Don't always use the
81034         __nss_group_database value if it is set.
81035         * nss/nsswitch.conf (initgroups): Change action for successful db
81036         lookup to continue for compatibility.
81037
81038 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
81039
81040         [BZ #11532]
81041         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
81042         and CP774 modules.
81043         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
81044         and CP774 modules.
81045         * iconvdata/tst-tables.sh: Likewise.
81046         * iconvdata/cp770.c: New file.
81047         * iconvdata/cp771.c: New file.
81048         * iconvdata/cp772.c: New file.
81049         * iconvdata/cp773.c: New file.
81050         * iconvdata/cp774.c: New file.
81051         * iconvdata/testdata/CP770: New file.
81052         * iconvdata/testdata/CP770..UTF8: New file.
81053         * iconvdata/testdata/CP771: New file.
81054         * iconvdata/testdata/CP771..UTF8: New file.
81055         * iconvdata/testdata/CP772: New file.
81056         * iconvdata/testdata/CP772..UTF8: New file.
81057         * iconvdata/testdata/CP773: New file.
81058         * iconvdata/testdata/CP773..UTF8: New file.
81059         * iconvdata/testdata/CP774: New file.
81060         * iconvdata/testdata/CP774..UTF8: New file.
81061
81062         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
81063         END CHARMAP line.
81064         * iconvdata/gen-8bit-gap.sh: Likewise.
81065         * iconvdata/gen-8bit.sh: Likewise.
81066
81067         * locale/iso-639.def: Add ary entry.
81068
81069         [BZ #11258]
81070         * locale/C-translit.h.in: Add U20A1 transliteration.
81071
81072         [BZ #12178]
81073         * locale/iso-639.def: Add wae entry.
81074         Patch by Kevin Bortis <bortis@translate-wae.ch>.
81075
81076         [BZ #12545]
81077         * locale/programs/localedef.c (construct_output_path): Use ssize_t
81078         for n.
81079
81080         [BZ #12711]
81081         * locale/C-translit.h.in: Add entry for U20B9.
81082         Patch by pravin.d.s@gmail.com.
81083
81084 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
81085
81086         [BZ #12713]
81087         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
81088         ENAMETOOLONG use generic getcwd.
81089         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
81090         in rtld.  Use *stat64.
81091         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
81092         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
81093         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
81094         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
81095         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
81096         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
81097         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
81098         __fstatat64 macros.
81099         * include/dirent.h: Add libc_hidden_proto for rewinddir.
81100         * dirent/rewinddir.c: Add libc_hidden_def.
81101         * sysdeps/mach/hurd/rewinddir.c: Likewise.
81102         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
81103
81104         * include/dirent.h (__alloc_dir): Add flags parameter.
81105         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
81106         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
81107         __alloc_dir.
81108         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
81109         from fdopendir if O_CLOEXEC is already set.
81110
81111 2011-03-15  Alan Modra  <amodra@gmail.com>
81112
81113         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
81114         l_tls_firstbyte_offset non-zero.  Save padding offset in
81115         l_tls_firstbyte_offset for later use.
81116         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
81117         freeing static tls block.
81118
81119 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
81120
81121         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
81122         where #ifdef was intended.  The intent is to prevent ARG_MAX from
81123         being defined by the kernel headers.
81124
81125 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
81126
81127         [BZ #12734]
81128         * resolv/resolv.h: Define RES_NOTLDQUERY.
81129         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
81130         no-tld-query and set RES_NOTLDQUERY.
81131         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
81132         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
81133         modern BIND to search name as TLD unless forbidden.
81134
81135 2011-05-07  Petr Baudis  <pasky@suse.cz>
81136             Ulrich Drepper  <drepper@gmail.com>
81137
81138         [BZ #12393]
81139         * elf/dl-load.c (fillin_rpath): Move trusted path check...
81140         (is_trusted_path): ...to here.
81141         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
81142         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
81143         using is_trusted_path_normalize() in setuid scripts.
81144
81145 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
81146
81147         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
81148         __BEGIN/__END_DECLS.
81149
81150 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
81151
81152         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
81153         NSS_STATUS_NOTFOUND if no record was found.
81154
81155 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81156
81157         * sunrpc/Makefile (headers): Add rpc/netdb.h.
81158         (headers-not-in-tirpc): Remove rpc/netdb.h
81159         * resolv/netdb.h: Revert last change.
81160
81161 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
81162
81163         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
81164         circular dependency between libgcc.a and libc.a.
81165
81166 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81167
81168         * resolv/netdb.h: Don't include <rpc/netdb.h>.
81169         * nis/Makefile: Don't install rpcsvc/*.
81170         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
81171         instead of <rpc/types.h>.
81172         (MAXHOSTNAMELEN): Define.
81173
81174 2011-05-03  Andreas Schwab  <schwab@redhat.com>
81175
81176         * elf/ldconfig.c (add_dir): Don't crash on empty path.
81177
81178 2011-04-28  Maciej Babinski  <mbabinski@google.com>
81179
81180         [BZ #12714]
81181         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
81182         gethostbyname4_r when IPv6 results are possible.
81183
81184 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
81185
81186         [BZ #12723]
81187         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
81188         _PC_PIPE_BUF handling.
81189
81190 2011-04-30  Bruno Haible  <bruno@clisp.org>
81191
81192         [BZ #12717]
81193         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
81194         * resolv/netdb.h (getnameinfo): Change type of flags parameter
81195         to 'int'.
81196         * inet/getnameinfo.c (getnameinfo): Likewise.
81197
81198 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
81199
81200         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
81201         to groups setting in database lookup.
81202         * nss/nsswitch.conf: Add initgroups entry.
81203
81204 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
81205
81206         [BZ #12685]
81207         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
81208         mode string.
81209         Patch by Eric Blake <eblake@redhat.com>.
81210
81211 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
81212
81213         * sunrpc/Makefile (need-export-routines): Add svc_run.
81214         (routines): Remove svc_run.
81215         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
81216         * sunrpc/clnt_perr.c (clnt_perrno): Export.
81217         * sunrpc/svc_run.c (svc_run): Likewise.
81218         * sunrpc/svc_udp.c (svcudp_create): Likewise.
81219
81220 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
81221
81222         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
81223         problem in reallocation in last patch.
81224
81225 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
81226
81227         * sunrpc/Makefile: Move inclusion of Rules.
81228
81229 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81230
81231         * nss/nss_files/files-initgroups.c: New file.
81232         * nss/Makefile (libnss_files-routines): Add files-initgroups.
81233         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
81234         _nss_files_initgroups_dyn.
81235
81236 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
81237
81238         * elf/elf.h (R_ARM_IRELATIVE): Define.
81239
81240 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81241
81242         * po/ru.po: Update from translation team.
81243
81244 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81245
81246         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
81247         dependencies.
81248
81249 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
81250
81251         [BZ #12653]
81252         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
81253         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
81254         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
81255         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
81256         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
81257
81258 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
81259
81260         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
81261         differing bytes.
81262         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
81263         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
81264         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
81265
81266 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81267
81268         [BZ #12420]
81269         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
81270         storing it.
81271         * stdlib/bug-getcontext.c: New file.
81272         * stdlib/Makefile: Add rules to build and run bug-getcontext.
81273
81274 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81275
81276         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
81277         instructions into .machine "z9-109".
81278         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
81279         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
81280
81281 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81282
81283         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
81284         between environment variables and auxiliary vector.
81285
81286 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
81287
81288         * Makefile: Add rules to build linkobj/libc.so.
81289         * include/libc-symbols.h: Define libc_hidden_nolink.
81290         * include/rpc/auth.h: Mark functions which are to be hidden.
81291         * include/rpc/auth_des.h: Likewise.
81292         * include/rpc/auth_unix.h: Likewise.
81293         * include/rpc/clnt.h: Likewise.
81294         * include/rpc/des_crypt.h: Likewise.
81295         * include/rpc/key_prot.h: Likewise.
81296         * include/rpc/pmap_clnt.h: Likewise.
81297         * include/rpc/pmap_prot.h: Likewise.
81298         * include/rpc/pmap_rmt.h: Likewise.
81299         * include/rpc/rpc_msg.h: Likewise.
81300         * include/rpc/svc.h: Likewise.
81301         * include/rpc/svc_auth.h: Likewise.
81302         * include/rpc/xdr.h: Likewise.
81303         * nis/Makefile: Link all DSOs against linkobj/libc.so.
81304         * nss/Makefile: Likewise.
81305         * sunrpc/Makefile: Don't install headers.  Build library with normal
81306         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
81307         * sunrpc/auth_des.c: Hide exported symbols by default, export some
81308         for the compat linking library.  Remove use of INTDEF/INTUSE.
81309         * sunrpc/auth_none.c: Likewise.
81310         * sunrpc/auth_unix.c: Likewise.
81311         * sunrpc/authdes_prot.c: Likewise.
81312         * sunrpc/authuxprot.c: Likewise.
81313         * sunrpc/clnt_gen.c: Likewise.
81314         * sunrpc/clnt_perr.c: Likewise.
81315         * sunrpc/clnt_raw.c: Likewise.
81316         * sunrpc/clnt_simp.c: Likewise.
81317         * sunrpc/clnt_tcp.c: Likewise.
81318         * sunrpc/clnt_udp.c: Likewise.
81319         * sunrpc/clnt_unix.c: Likewise.
81320         * sunrpc/des_crypt.c: Likewise.
81321         * sunrpc/des_soft.c: Likewise.
81322         * sunrpc/get_myaddr.c: Likewise.
81323         * sunrpc/key_call.c: Likewise.
81324         * sunrpc/key_prot.c: Likewise.
81325         * sunrpc/netname.c: Likewise.
81326         * sunrpc/pm_getmaps.c: Likewise.
81327         * sunrpc/pm_getport.c: Likewise.
81328         * sunrpc/pmap_clnt.c: Likewise.
81329         * sunrpc/pmap_prot.c: Likewise.
81330         * sunrpc/pmap_prot2.c: Likewise.
81331         * sunrpc/pmap_rmt.c: Likewise.
81332         * sunrpc/publickey.c: Likewise.
81333         * sunrpc/rpc_cmsg.c: Likewise.
81334         * sunrpc/rpc_common.c: Likewise.
81335         * sunrpc/rpc_dtable.c: Likewise.
81336         * sunrpc/rpc_prot.c: Likewise.
81337         * sunrpc/rpc_thread.c: Likewise.
81338         * sunrpc/rtime.c: Likewise.
81339         * sunrpc/svc.c: Likewise.
81340         * sunrpc/svc_auth.c: Likewise.
81341         * sunrpc/svc_authux.c: Likewise.
81342         * sunrpc/svc_raw.c: Likewise.
81343         * sunrpc/svc_run.c: Likewise.
81344         * sunrpc/svc_simple.c: Likewise.
81345         * sunrpc/svc_tcp.c: Likewise.
81346         * sunrpc/svc_udp.c: Likewise.
81347         * sunrpc/svc_unix.c: Likewise.
81348         * sunrpc/svcauth_des.c: Likewise.
81349         * sunrpc/xcrypt.c: Likewise.
81350         * sunrpc/xdr.c: Likewise.
81351         * sunrpc/xdr_array.c: Likewise.
81352         * sunrpc/xdr_float.c: Likewise.
81353         * sunrpc/xdr_intXX_t.c: Likewise.
81354         * sunrpc/xdr_mem.c: Likewise.
81355         * sunrpc/xdr_rec.c: Likewise.
81356         * sunrpc/xdr_ref.c: Likewise.
81357         * sunrpc/xdr_sizeof.c: Likewise.
81358         * sunrpc/xdr_stdio.c: Likewise.
81359
81360 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
81361
81362         [BZ #12650]
81363         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
81364         * sysdeps/ia64/dl-tls.h: Likewise.
81365         * sysdeps/powerpc/dl-tls.h: Likewise.
81366         * sysdeps/s390/dl-tls.h: Likewise.
81367         * sysdeps/sh/dl-tls.h: Likewise.
81368         * sysdeps/sparc/dl-tls.h: Likewise.
81369         * sysdeps/x86_64/dl-tls.h: Likewise.
81370         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
81371
81372 2011-03-14  Andreas Schwab  <schwab@redhat.com>
81373
81374         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
81375         rpath element also skip the following colon.
81376         (expand_dynamic_string_token): Add is_path parameter and pass
81377         down to DL_DST_REQUIRED and _dl_dst_substitute.
81378         (decompose_rpath): Call expand_dynamic_string_token with
81379         non-zero is_path.  Ignore empty rpaths.
81380         (_dl_map_object_from_fd): Call expand_dynamic_string_token
81381         with zero is_path.
81382
81383 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
81384
81385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
81386         Make cancelable.
81387
81388 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
81389
81390         [BZ #12655]
81391         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
81392         Patch by Filipe David Manana <fdmanana@apache.org>.
81393
81394 2011-04-07  Andreas Schwab  <schwab@redhat.com>
81395
81396         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
81397         Maintain aligned stack.
81398         (CHECK_RSP): Remove unused macro.
81399
81400 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
81401
81402         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
81403         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
81404
81405 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
81406
81407         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
81408
81409         * include/features.h: Mention __USE_XOPEN2K8 in comment.
81410
81411 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
81412
81413         [BZ #12518]
81414         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
81415         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
81416         * sysdeps/x86_64/memmove.c: New file.
81417         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
81418         (memcpy): Renamed to ...
81419         (__new_memcpy): This.
81420         (memcpy): Provide GLIBC_2_14 memcpy.
81421         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
81422         (memcpy): Provide GLIBC_2_2_5 memcpy.
81423
81424 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81425
81426         [BZ #12631]
81427         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
81428
81429 2011-03-30  Andreas Schwab  <schwab@redhat.com>
81430
81431         * misc/syncfs.c: New file.
81432         * misc/Makefile (routines): Add syncfs.
81433         * posix/unistd.h: Declare syncfs.
81434         * sysdeps/unix/syscalls.list: Add syncfs.
81435
81436 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81437
81438         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
81439         open_by_handle_at.
81440         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
81441         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81442         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81443         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81444         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81445         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
81446         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81447
81448 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81449
81450         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
81451         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81452         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
81453         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81454         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81455         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81456         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81457
81458         * io/Makefile: Compile fallocate.c, fallocate64.c, and
81459         sync_file_range.c with -fexceptions.
81460         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
81461         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
81462         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
81463         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
81464         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
81465         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
81466         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
81467         sync_file_range as cancellation point
81468         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
81469         now a wrapper around __call_sync_file_range with cancellation handling.
81470         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
81471         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
81472         function name to __call_sync_file_range.
81473         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
81474         Add call_sync_file_range.
81475
81476 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81477
81478         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81479         bits/timex.h.
81480
81481 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81482
81483         * iconv/iconv.h: Fix typo in comment.
81484         * io/fcntl.h: Likewise.
81485         * libio/stdio.h: Likewise.
81486         * posix/spawn.h: Likewise.
81487         * posix/unistd.h: Likewise.
81488         * stdlib/stdlib.h: Likewise.
81489         * time/time.h: Likewise.
81490         * wcsmbs/wchar.h: Likewise.
81491
81492         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
81493         open_by_handle): Add.
81494         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
81495         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
81496         Augment a few comments.
81497         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81498         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81499         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81500         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81501         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81502         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
81503         open_by_handle.
81504
81505         * io/fcntl.h (AT_EMPTY_PATH): Define.
81506
81507 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
81508
81509         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
81510         * sysdeps/unix/sysv/linux/bits/time.h: New file.
81511         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
81512         to...
81513         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
81514         * Versions.def: Add GLIBC_2.14.
81515         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
81516         Export.
81517
81518 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
81519
81520         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
81521         round counter.
81522         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81523
81524 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
81525
81526         [BZ #12597]
81527         * string/test-strncmp.c (do_page_test): New function.
81528         (check2): Likewise.
81529         (test_main): Call check2.
81530         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
81531
81532 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
81533
81534         [BZ #12587]
81535         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
81536         Handle cache information in CPU leaf 4.
81537         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81538
81539 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
81540
81541         [BZ #12583]
81542         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
81543         character representation.
81544         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
81545
81546 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
81547
81548         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
81549         END(__isnan) to END(__isnanf) to match function entry point/label
81550         EALIGN(__isnanf,...).
81551
81552 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
81553
81554         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
81555
81556 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
81557
81558         [BZ #12510]
81559         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
81560         copy from the symbol referenced in the relocation to initialize the
81561         used variable.
81562         Patch by Piotr Bury <pbury@goahead.com>.
81563         * elf/Makefile: Add rules to build and tst-unique3.
81564         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
81565         * elf/tst-unique3.cc: New file.
81566         * elf/tst-unique3.h: New file.
81567         * elf/tst-unique3lib.cc: New file.
81568         * elf/tst-unique3lib2.cc: New file.
81569
81570         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
81571
81572 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
81573
81574         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
81575         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
81576         to _start.
81577
81578 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
81579
81580         * elf/dl-load.c (_dl_map_object): If we are looking for the first
81581         to-be-loaded object along a path to loader is ld.so.
81582
81583 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81584             Ulrich Drepper  <drepper@gmail.com>
81585
81586         * sysdeps/x86_64/memset.S: After aligning destination, code
81587         branches to different locations depending on the value of
81588         misalignment, when multiarch is enabled. Fix this.
81589
81590 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81591
81592         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
81593         Set _x86_64_preferred_memory_instruction for AMD processsors.
81594         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81595         Set bit_Prefer_SSE_for_memop for AMD processors.
81596
81597 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
81598
81599         * libio/fmemopen.c (fmemopen): Optimize a bit.
81600
81601 2011-03-03  Andreas Schwab  <schwab@redhat.com>
81602
81603         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
81604
81605 2011-03-03  Roland McGrath  <roland@redhat.com>
81606
81607         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
81608
81609 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
81610
81611         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
81612         __bzero_ultra1 instead of __memset_ultra1.
81613
81614 2011-02-23  Andreas Schwab  <schwab@redhat.com>
81615             Ulrich Drepper  <drepper@gmail.com>
81616
81617         [BZ #12509]
81618         * include/link.h (struct link_map): Add l_orig_initfini.
81619         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
81620         returning unsuccessfully.
81621         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
81622         close of a file loaded at startup, restore the original l_initfini
81623         list.
81624         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
81625         list, store the pointer.
81626         * elf/Makefile ($(objpfx)noload-mem): New rule.
81627         (noload-ENV): Define.
81628         (tests): Add $(objpfx)noload-mem.
81629         * elf/noload.c: Include <memcheck.h>.
81630         (main): Call mtrace.  Close all opened handles.
81631
81632 2011-02-17  Andreas Schwab  <schwab@redhat.com>
81633
81634         [BZ #12454]
81635         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
81636         dependencies are missing.
81637
81638 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81639
81640         Fix __if_freereq crash: Unlike the generic version which uses free,
81641         Hurd needs munmap.
81642         * sysdeps/mach/hurd/ifreq.h: New file.
81643
81644 2011-01-27  Petr Baudis  <pasky@suse.cz>
81645             Ulrich Drepper  <drepper@gmail.com>
81646
81647         [BZ 12445]#
81648         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
81649         to extend_alloca().
81650         * stdio-common/bug23.c: New file.
81651         * stdio-common/Makefile (tests): Add bug23.
81652
81653 2010-09-28  Andreas Schwab  <schwab@redhat.com>
81654             Ulrich Drepper  <drepper@gmail.com>
81655
81656         [BZ #12489]
81657         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
81658         before performing relro protection.  At old place add assertion
81659         to make sure nothing changed.
81660
81661 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
81662             Glauber de Oliveira Costa  <glommer@gmail.com>
81663
81664         * elf/elf.h: Add new ARM TLS relocs.
81665
81666 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
81667
81668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
81669         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
81670         cast from r3.
81671         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
81672         'tests' variable.
81673         * sysdeps/wordsize-64/tst-writev.c: New file.
81674
81675 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
81676
81677         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
81678         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
81679         insns in _dl_start to prevent a TOC reference before relocs are
81680         resolved.
81681
81682 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
81683
81684         [BZ #12469]
81685         * Makeconfig: Remove RANLIB definition.
81686         * Makerules: Don't use RANLIB.
81687         * aclocal.m4: Remove ranlib test.
81688         * configure.in: No need to check for ranlib.
81689         * elf/rtld-Rules: Don't use RANLIB.
81690
81691 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81692
81693         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
81694         protection macro.
81695         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
81696         inclusion protection macro.
81697
81698         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
81699         SIGRTMIN and SIGRTMAX and print information in that case only when
81700         SIGRTMIN is defined.
81701
81702 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
81703
81704         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
81705         arginfo fn returning -1.
81706
81707         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
81708         and thousands string is zero terminated.
81709
81710 2011-02-03  Andreas Schwab  <schwab@redhat.com>
81711
81712         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
81713         sysdeps/unix/sysv/linux/bits/socket.h.
81714
81715 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81716
81717         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
81718         (__CPU_COUNT): Remove old macros.
81719         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
81720         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
81721         (__CPU_ALLOC, __CPU_FREE): Add macros.
81722         (__sched_cpualloc, __sched_cpufree): Add declarations.
81723
81724 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
81725
81726         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
81727         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
81728         * nscd/aicache.c (addhstaiX): Return timeout of added value.
81729         (readdhstai): Return value of addhstaiX call.
81730         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
81731         (addgrbyX): Return value returned by cache_addgr.
81732         (readdgrbyname): Return value returned by addgrbyX.
81733         (readdgrbygid): Likewise.
81734         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
81735         (addpwbyX): Return value returned by cache_addpw.
81736         (readdpwbyname): Return value returned by addhstbyX.
81737         (readdpwbyuid): Likewise.
81738         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
81739         (addservbyX): Return value returned by cache_addserv.
81740         (readdservbyname): Return value returned by addservbyX:
81741         (readdservbyport): Likewise.
81742         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
81743         (addhstbyX): Return value returned by cache_addhst.
81744         (readdhstbyname): Return value returned by addhstbyX.
81745         (readdhstbyaddr): Likewise.
81746         (readdhstbynamev6): Likewise.
81747         (readdhstbyaddrv6): Likewise.
81748         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
81749         (readdinitgroups): Return value returned by addinitgroupsX.
81750         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
81751         (prune_cache): Keep track of timeout value of re-added entries.
81752         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
81753         * nscd/nscd.h: Adjust prototypes of readd* functions.
81754
81755 2011-02-04  Roland McGrath  <roland@redhat.com>
81756
81757         * nis/nis_server.c (nis_servstate): Use the right name for 0.
81758         (nis_stats): Likewise.
81759         * nis/nis_modify.c (nis_modify): Likewise.
81760         * nis/nis_remove.c (nis_remove): Likewise.
81761         * nis/nis_add.c (nis_add): Likewise.
81762
81763         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
81764
81765         * posix/fnmatch_loop.c: Add some consts.
81766
81767         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
81768
81769 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
81770
81771         [BZ #12460]
81772         * config.make.in (config-cflags-novzeroupper): Define.
81773         * configure.in: Substitute libc_cv_cc_novzeroupper.
81774         * elf/Makefile (AVX-CFLAGS): Define.
81775         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
81776         (CFLAGS-tst-auditmod4a.c): Likewise.
81777         (CFLAGS-tst-auditmod4b.c): Likewise.
81778         (CFLAGS-tst-auditmod6b.c): Likewise.
81779         (CFLAGS-tst-auditmod6c.c): Likewise.
81780         (CFLAGS-tst-auditmod7b.c): Likewise.
81781         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
81782
81783 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
81784
81785         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
81786         function to the callback.
81787         Patch partly by Jiri Olsa <jolsa@redhat.com>.
81788
81789 2011-02-02  Andreas Schwab  <schwab@redhat.com>
81790
81791         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
81792         of errno.
81793
81794 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
81795
81796         [BZ #11724]
81797         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
81798         of constructors.
81799         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
81800         of destructors.
81801         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
81802
81803         [BZ #11724]
81804         * elf/Makefile: Add rules to build and run new test.
81805         * elf/tst-initorder.c: New file.
81806         * elf/tst-initorder.exp: New file.
81807         * elf/tst-initordera1.c: New file.
81808         * elf/tst-initordera2.c: New file.
81809         * elf/tst-initordera3.c: New file.
81810         * elf/tst-initordera4.c: New file.
81811         * elf/tst-initorderb1.c: New file.
81812         * elf/tst-initorderb2.c: New file.
81813         * elf/tst-order-a1.c: New file.
81814         * elf/tst-order-a2.c: New file.
81815         * elf/tst-order-a3.c: New file.
81816         * elf/tst-order-a4.c: New file.
81817         * elf/tst-order-b1.c: New file.
81818         * elf/tst-order-b2.c: New file.
81819         * elf/tst-order-main.c: New file.
81820         New test case by George Gensure <werkt0@gmail.com>.
81821
81822 2010-10-01  Andreas Schwab  <schwab@redhat.com>
81823
81824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
81825         decoding ACE if AI_CANONIDN.
81826
81827 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
81828
81829         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
81830
81831 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
81832
81833         * version.h (RELEASE): Bump for 2.13 release.
81834         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
81835
81836         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
81837
81838         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
81839         MADV_NOHUGEPAGE.
81840         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
81841         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
81842         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
81843         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
81844         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
81845         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81846
81847         * posix/getconf.c: Update copyright year.
81848         * catgets/gencat.c: Likewise.
81849         * csu/version.c: Likewise.
81850         * debug/catchsegv.sh: Likewise.
81851         * debug/xtrace.sh: Likewise.
81852         * elf/ldconfig.c: Likewise.
81853         * elf/ldd.bash.in: Likewise.
81854         * elf/sprof.c (print_version): Likewise.
81855         * iconv/iconv_prog.c: Likewise.
81856         * iconv/iconvconfig.c: Likewise.
81857         * locale/programs/locale.c: Likewise.
81858         * locale/programs/localedef.c: Likewise.
81859         * malloc/memusage.sh: Likewise.
81860         * malloc/mtrace.pl: Likewise.
81861         * nscd/nscd.c (print_version): Likewise.
81862         * nss/getent.c: Likewise.
81863
81864         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
81865         PF_CAIF, and PF_ALG.
81866         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81867
81868 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
81869
81870         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
81871         (modules-names): Use them.
81872         (ifunc-test-modules, ifunc-pie-tests): Define.
81873         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
81874         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
81875         (test-extras): Likewise.
81876         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
81877         $(compile-command.c).
81878         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
81879         (all-built-dso): Define.
81880         (check-textrel.out, check-execstack.out): Depend on it.
81881
81882         * configure.in: Don't override --enable-multi-arch.
81883
81884 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
81885
81886         [BZ #6812]
81887         * nscd/hstcache.c (tryagain): Define.
81888         (cache_addhst): Return tryagain not notfound for temporary errors.
81889         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
81890         failed.
81891
81892 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
81893
81894         [BZ #10563]
81895         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
81896         to make the syscall.
81897         * sysdeps/unix/sysv/linux/setgroups.c: New file.
81898
81899         [BZ #12378]
81900         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
81901         and fall back to matching as normal character if the string ends before
81902         the matching ']' is found.  This is what POSIX requires.
81903         * posix/testfnm.c: Adjust test result.
81904         * posix/globtest.sh: Adjust test result.  Add new test.
81905         * posix/tst-fnmatch.input: Likewise.
81906         * posix/tst-fnmatch2.c: Add new test.
81907
81908 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
81909
81910         * elf/Makefile (check-execstack): Revert last change.  Depend on
81911         check-execstack.h.
81912         (check-execstack.h): New target.
81913         (generated): Add check-execstack.h.
81914         * elf/check-execstack.c: Include "check-execstack.h".
81915         (main): Revert last change.
81916         (handle_file): Return zero if GNU_STACK is absent and
81917         DEFAULT_STACK_PERMS doesn't include PF_X.
81918
81919 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
81920
81921         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
81922         in child fails because the descriptor is already closed.
81923         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
81924         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
81925         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
81926
81927         [BZ #12397]
81928         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
81929         syscall.
81930
81931         [BZ #10484]
81932         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
81933         temporary buffer used to handle multi lookups locally.
81934         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
81935
81936 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81937
81938         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
81939         loader is ld.so.
81940
81941 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
81942
81943         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
81944         alignment for SSE2.
81945
81946 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81947
81948         [BZ #12394]
81949         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
81950         characters.  When rounding increased number of integer digits recompute
81951         number of groups.
81952         * stdio-common/tst-grouping.c: New file.
81953         * stdio-common/Makefile: Add rules to build and run tst-grouping.
81954
81955 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
81956
81957         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
81958         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
81959
81960         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
81961         void.
81962         * bits/select.h: Likewise.
81963
81964 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
81965
81966         * po/ja.po: Update from translation team.
81967
81968 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
81969
81970         [BZ #11155]
81971         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
81972         implementation just like for lxstat, fxstatat, et al.
81973
81974 2010-12-27  Jim Meyering  <meyering@redhat.com>
81975
81976         [BZ #12348]
81977         * posix/regexec.c (build_trtable): Return failure indication upon
81978         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
81979
81980 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
81981
81982         [BZ #12201]
81983         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
81984         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
81985         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
81986         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
81987
81988         [BZ #12207]
81989         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
81990
81991         [BZ #12204]
81992         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
81993         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
81994
81995 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
81996
81997         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
81998         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
81999         script has SORT_BY_INIT_PRIORITY.
82000         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
82001         NO_CTORS_DTORS_SECTIONS is defined.
82002         * elf/soinit.c: Likewise.
82003         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
82004         NO_CTORS_DTORS_SECTIONS is defined.
82005         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
82006         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
82007         * sysdeps/sh/init-first.c: Likewise.
82008         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
82009
82010 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
82011
82012         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
82013         always use the slow path.
82014
82015 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
82016
82017         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
82018         similar rule which adds the sysdep directories to the header search in
82019         order to pick up the correct platform stackinfo.h.
82020         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
82021         perform test if it is, otherwise return successfully without testing.
82022         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
82023         DEFAULT_STACK_PERMS define in stackinfo.h.
82024         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
82025         defined in stackinfo.h.
82026         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
82027         DEFAULT_STACK_PERMS defined in stackinfo.h.
82028         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
82029         * sysdeps/ia64/stackinfo.h: Likewise.
82030         * sysdeps/s390/stackinfo.h: Likewise.
82031         * sysdeps/sh/stackinfo.h: Likewise.
82032         * sysdeps/sparc/stackinfo.h: Likewise.
82033         * sysdeps/x86_64/stackinfo.h: Likewise.
82034         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
82035         PF_X for powerpc64.  Retain PF_X for powerpc32.
82036
82037 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
82038
82039         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
82040         accurately.
82041         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
82042         GETDENTS_64BIT_ALIGNED.
82043
82044 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
82045
82046         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
82047
82048 2010-12-10  Andreas Schwab  <schwab@redhat.com>
82049
82050         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
82051         _GNU_SOURCE.
82052
82053         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
82054         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
82055         Remove __restrict.
82056         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
82057         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
82058
82059 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
82060
82061         [BZ #11655]
82062         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
82063         are initialized.
82064
82065 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
82066
82067         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
82068
82069 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
82070
82071         * po/it.po: Update from translation team.
82072
82073 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
82074
82075         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
82076         unused codes.
82077
82078 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
82079
82080         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
82081
82082 2010-11-24  Andreas Schwab  <schwab@redhat.com>
82083
82084         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
82085         specially.
82086         (gaih_getanswer_slice): Likewise.
82087
82088 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
82089
82090         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
82091
82092 2010-05-31  Petr Baudis  <pasky@suse.cz>
82093
82094         [BZ #11149]
82095         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
82096         silently even in the chroot mode.
82097
82098 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
82099
82100         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
82101         last patch a bit.  Pretty printing
82102
82103 2010-05-31  Petr Baudis <pasky@suse.cz>
82104
82105         [BZ #10085]
82106         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
82107         initialization of skip_initgroups_dyn.
82108
82109 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
82110
82111         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
82112         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82113
82114 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
82115
82116         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
82117
82118 2010-11-11  Andreas Schwab  <schwab@redhat.com>
82119
82120         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
82121         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
82122         (tst-fnmatch-ENV): Set MALLOC_TRACE.
82123         ($(objpfx)tst-fnmatch-mem): New rule.
82124         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
82125         * posix/tst-fnmatch.c (main): Call mtrace.
82126
82127 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
82128
82129         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82130         Support Intel processor model 6 and model 0x2c.
82131
82132 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
82133
82134         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
82135           signed comparison.
82136
82137 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
82138
82139         [BZ #12205]
82140         * string/test-strncasecmp.c (check_result): New function.
82141         (do_one_test): Use it.
82142         (check1): New function.
82143         (test_main): Use it.
82144         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
82145         Support strcasecmp and strncasecmp.
82146
82147 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
82148
82149         [BZ #12194]
82150         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
82151         * sysdeps/x86_64/bits/byteswap.h: Likewise.
82152
82153 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
82154
82155         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
82156         IFUNC support.
82157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82158         memset-x86-64.
82159         * sysdeps/x86_64/multiarch/bzero.S: New file.
82160         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
82161         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
82162         * sysdeps/x86_64/multiarch/memset.S: New file.
82163         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
82164         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82165         Set bit_Prefer_SSE_for_memop for Intel processors.
82166         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
82167         Define.
82168         (index_Prefer_SSE_for_memop): Define.
82169         (HAS_PREFER_SSE_FOR_MEMOP): Define.
82170
82171 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
82172
82173         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
82174         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
82175
82176 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
82177
82178         [BZ #12191]
82179         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82180         (__x86_64_raw_data_cache_size_half): Likewise.
82181         (__x86_64_raw_shared_cache_size): Likewise.
82182         (__x86_64_raw_shared_cache_size_half): Likewise.
82183
82184         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82185         (__x86_64_raw_data_cache_size_half): Likewise.
82186         (__x86_64_raw_shared_cache_size): Likewise.
82187         (__x86_64_raw_shared_cache_size_half): Likewise.
82188         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
82189         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
82190         and __x86_64_raw_shared_cache_size_half.  Round
82191         __x86_64_data_cache_size_half, __x86_64_data_cache_size
82192         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
82193         to multiple of 256 bytes.
82194
82195 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
82196
82197         [BZ #12167]
82198         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
82199         of inacessible symlinks.  Verify result of symlink before returning it.
82200         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
82201         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
82202
82203 2010-10-28  Erich Ritz  <erichritz@gmail.com>
82204
82205         * math/math.h (isinf): Fix typo in comment.
82206
82207 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
82208
82209         * po/da.po: Update from translation team.
82210
82211 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
82212
82213         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
82214         is added to the list.
82215
82216 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82217             Ulrich Drepper  <drepper@gmail.com>
82218
82219         * elf/dl-object.c (_dl_new_object): Don't append the new object to
82220         the global list here.  Move code to...
82221         (_dl_add_to_namespace_list): ...here.  New function.
82222         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
82223         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
82224         * elf/dl-load.c (lose): Don't remove the element from the list.
82225         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
82226         (_dl_map_object): Likewise.
82227
82228 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
82229
82230         [BZ #12159]
82231         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
82232         into all bytes of SSE register.
82233         Patch by Richard Li <richardpku@gmail.com>.
82234
82235 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
82236
82237         [BZ #12140]
82238         * malloc/malloc.c (_int_free): Fill correct number of bytes when
82239         perturbing.
82240
82241 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
82242
82243         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
82244         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
82245         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
82246         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
82247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
82248         submachine.
82249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
82250
82251 2010-10-22  Andreas Schwab  <schwab@redhat.com>
82252
82253         * include/dlfcn.h (__RTLD_SECURE): Define.
82254         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
82255         mode & __RTLD_SECURE instead.
82256         (open_path): Rename preloaded parameter to secure.
82257         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
82258         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
82259         * elf/dl-deps.c (openaux): Likewise.
82260         * elf/rtld.c (struct map_args): Remove is_preloaded.
82261         (map_doit): Don't use it.
82262         (dl_main): Likewise.
82263         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
82264         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
82265
82266 2010-09-09  Andreas Schwab  <schwab@redhat.com>
82267
82268         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
82269         (sysd-rules-targets): Remove duplicates.
82270         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
82271         rtld-%.$o dependency.
82272
82273 2010-10-18  Andreas Schwab  <schwab@redhat.com>
82274
82275         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
82276         _dl_map_object do it.
82277
82278 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
82279
82280         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
82281         fast fma builtins, define the macros in the C99 standard.
82282         (FP_FAST_FMAF): Likewise.
82283         (FP_FAST_FMAL): Likewise.
82284         * sysdeps/x86_64/bits/mathdef.h: Likewise.
82285
82286         * bits/mathdef.h: Update copyright year.
82287         * sysdeps/powerpc/bits/mathdef.h: Likewise.
82288
82289 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
82290
82291         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
82292         builtins, define the macros in the C99 standard.
82293         (FP_FAST_FMAF): Likewise.
82294         (FP_FAST_FMAL): Likewise.
82295         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
82296         multiply/add.
82297         (FP_FAST_FMAF): Likewise.
82298
82299 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
82300
82301         [BZ #3268]
82302         * math/libm-test.inc (fma_test): Some new testcases.
82303         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
82304         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
82305         y and infinite z.  Do multiplication by C already in long double.
82306         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
82307         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
82308         y and infinite z.  Do bitwise or of inexact bit into u.d.
82309         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
82310         * sysdeps/i386/fpu/s_fmaf.S: Removed.
82311         * sysdeps/i386/fpu/s_fma.S: Removed.
82312         * sysdeps/i386/fpu/s_fmal.S: Removed.
82313
82314 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
82315
82316         [BZ #3268]
82317         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
82318         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
82319         computation is not scheduled after fetestexcept.  Fix value
82320         of minimum denormal long double.
82321
82322 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
82323
82324         [BZ #3268]
82325         * math/libm-test.inc (fma_test): Add some more tests.
82326         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
82327         correctly.
82328
82329 2010-10-15  Andreas Schwab  <schwab@redhat.com>
82330
82331         * scripts/data/localplt-s390-linux-gnu.data: New file.
82332         * scripts/data/localplt-s390x-linux-gnu.data: New file.
82333
82334 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
82335
82336         [BZ #3268]
82337         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
82338         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
82339         instead of dbl-64.
82340         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
82341         inlines.
82342         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
82343         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
82344         if one of x and y is very large and the other is subnormal.
82345         * sysdeps/s390/fpu/s_fmaf.c: New file.
82346         * sysdeps/s390/fpu/s_fma.c: New file.
82347         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
82348         * sysdeps/powerpc/fpu/s_fma.S: New file.
82349         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
82350         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
82351         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
82352
82353 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
82354
82355         [BZ #3268]
82356         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
82357         fma tests.
82358         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
82359         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
82360         * sysdeps/i386/i686/multiarch/s_fma.c: Include
82361         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
82362         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
82363         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
82364         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
82365
82366 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
82367
82368         [BZ #12078]
82369         * posix/regcomp.c (parse_branch): One more memory leak plugged.
82370         * posix/bug-regex31.input: Add test case.
82371
82372 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82373
82374         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
82375         * posix/bug-regex31.input: New file.
82376
82377         [BZ #12078]
82378         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
82379         (parse_sub_exp): Fix last change, use postorder.
82380
82381         * posix/bug-regex31.c: New file.
82382         * posix/Makefile: Add rules to build and run bug-regex31.
82383
82384         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
82385
82386         [BZ #12078]
82387         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
82388
82389         [BZ #12108]
82390         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
82391         to have entries in sys_siglist.
82392
82393         [BZ #12093]
82394         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
82395         be NULL.
82396
82397 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
82398
82399         [BZ #3268]
82400         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
82401         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
82402         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
82403         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
82404         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
82405         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
82406         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
82407         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
82408         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
82409         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
82410         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
82411         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
82412         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
82413         * math/ftestexcept.c (fetestexcept): Likewise.
82414         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
82415         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
82416         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
82417         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
82418         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
82419         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
82420         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
82421
82422 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82423
82424         [BZ #12107]
82425         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
82426         newline.
82427
82428 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
82429
82430         * string/bug-strstr1.c: New file.
82431         * string/Makefile: Add rules to build and run bug-strstr1.
82432
82433 2010-10-05  Eric Blake  <eblake@redhat.com>
82434
82435         [BZ #12092]
82436         * string/str-two-way.h (two_way_long_needle): Always clear memory
82437         when skipping input due to the shift table.
82438
82439 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
82440
82441         [BZ #12005]
82442         * malloc/mcheck.c: Handle large requests.
82443
82444         [BZ #12077]
82445         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
82446         for strncmp and strncasecmp.
82447         * string/stratcliff.c: Add tests for strcmp and strncmp.
82448         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
82449
82450 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82451
82452         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
82453         __set_fpscr.
82454
82455 2010-09-30  Andreas Jaeger  <aj@suse.de>
82456
82457         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
82458         (CGROUP_SUPER_MAGIC): Define.
82459         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82460         Handle btrfs and cgroup file systems.
82461         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
82462         Likewise.
82463
82464 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
82465
82466         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
82467         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
82468
82469 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82470
82471         [BZ #12067]
82472         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
82473         trying to locate the ELF header.
82474
82475 2010-09-27  Andreas Schwab  <schwab@redhat.com>
82476
82477         [BZ #11611]
82478         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
82479         Mask out sign-bit copies when constructing f_fsid.
82480
82481 2010-09-24  Petr Baudis <pasky@suse.cz>
82482
82483         * debug/stack_chk_fail_local.c: Add missing licence exception.
82484         * debug/warning-nop.c: Likewise.
82485
82486 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
82487
82488         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
82489         implementing getdents64 using getdents syscall, set d_type if
82490         __ASSUME_GETDENTS32_D_TYPE.
82491
82492 2010-09-16  Andreas Schwab  <schwab@redhat.com>
82493
82494         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
82495         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
82496
82497 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
82498
82499         [BZ #12037]
82500         * posix/unistd.h: Undo change of feature selection for ftruncate from
82501         2010-01-11.
82502
82503 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
82504
82505         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
82506         detection.
82507
82508 2010-09-20  Andreas Schwab  <schwab@redhat.com>
82509
82510         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
82511         fanotify_mark.
82512         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82513
82514 2010-09-14  Andreas Schwab  <schwab@redhat.com>
82515
82516         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
82517         variables after CHECK_SP call.
82518         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
82519
82520 2010-09-13  Andreas Schwab  <schwab@redhat.com>
82521             Ulrich Drepper  <drepper@redhat.com>
82522
82523         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
82524         re-relocationg ld.so.
82525         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
82526         _dl_init_paths call.
82527         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
82528         here anymore.
82529
82530 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
82531
82532         * resolv/res_init.c (__res_vinit): Count the default server we added.
82533
82534 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
82535             Ulrich Drepper  <drepper@redhat.com>
82536
82537         [BZ #11968]
82538         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
82539         (____longjmp_chk): Use %ebx for saving value across system call.
82540         Add unwind info.
82541
82542 2010-09-06  Andreas Schwab  <schwab@redhat.com>
82543
82544         * manual/Makefile: Don't mix pattern rules with normal rules.
82545
82546 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
82547
82548         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
82549         operation.
82550         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
82551         * libio/iofopncook.c (_IO_cookie_init): Likewise.
82552         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
82553         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
82554         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82555         Likewise.
82556
82557 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
82558
82559         [BZ #11979]
82560         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
82561         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
82562
82563 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
82564
82565         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
82566         * sysdeps/x86_64/addmul_1.S: Likewise.
82567         * sysdeps/x86_64/lshift.S: Likewise.
82568         * sysdeps/x86_64/mul_1.S: Likewise.
82569         * sysdeps/x86_64/rshift.S: Likewise.
82570         * sysdeps/x86_64/sub_n.S: Likewise.
82571         * sysdeps/x86_64/submul_1.S: Likewise.
82572
82573 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82574
82575         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
82576         Define __sched_param instead of SCHED_* and sched_param when
82577         <bits/sched.h> is included with __need_schedparam defined.
82578         * bits/sched.h [__need_schedparam]
82579         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
82580         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
82581         (__defined_schedparam): Define to 1.
82582         (__sched_param): New structure, identical to sched_param.
82583         (__need_schedparam): Undefine.
82584
82585 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
82586
82587         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
82588         (epoll_create1): Declare.
82589
82590         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
82591
82592 2010-08-31  Andreas Schwab  <schwab@redhat.com>
82593
82594         [BZ #7066]
82595         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
82596         shifting retval into place.
82597
82598 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
82599
82600         * nis/rpcsvc/nis.h: Update copyright notice.
82601         * nis/rpcsvc/nis.x: Likewise.
82602         * nis/rpcsvc/nis_callback.h: Likewise.
82603         * nis/rpcsvc/nis_callback.x: Likewise.
82604         * nis/rpcsvc/nis_object.x: Likewise.
82605         * nis/rpcsvc/nis_tags.h: Likewise.
82606         * nis/rpcsvc/yp.h: Likewise.
82607         * nis/rpcsvc/yp.x: Likewise.
82608         * nis/rpcsvc/ypupd.h: Likewise.
82609         * nis/yp_xdr.c: Likewise.
82610         * nis/ypupdate_xdr.c: Likewise.
82611
82612         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
82613         mainly the body of pmap_getport.  Add parameters to specify timeouts.
82614         (pmap_getport): Use __libc_rpc_getport.
82615         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
82616         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
82617         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
82618
82619 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
82620
82621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
82622         fanotify_mark.
82623
82624 2010-08-27  Roland McGrath  <roland@redhat.com>
82625
82626         * sysdeps/i386/i686/multiarch/Makefile
82627         (CFLAGS-varshift.c): New variable.
82628
82629 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
82630
82631         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
82632         * sysdeps/i386/i686/multiarch/varshift.c: New file.
82633
82634         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
82635
82636         * sysdeps/x86_64/strlen.S: Minimal code improvement.
82637
82638 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
82639
82640         * sysdeps/x86_64/strlen.S: Unroll the loop.
82641         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82642         strlen-sse2 strlen-sse2-bsf.
82643         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
82644         __strlen_no_bsf if bit_Slow_BSF is set.
82645         (__strlen_sse42): Removed.
82646         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
82647         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
82648
82649 2010-08-25  Roland McGrath  <roland@redhat.com>
82650
82651         * sysdeps/x86_64/multiarch/varshift.S: File removed.
82652         * sysdeps/x86_64/multiarch/varshift.c: New file.
82653         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
82654         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
82655         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
82656         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
82657
82658 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
82659
82660         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82661         strlen-sse2 strlen-sse2-bsf.
82662         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
82663         __strlen_sse2_bsf if bit_Slow_BSF is unset.
82664         (__strlen_sse2): Removed.
82665         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
82666         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
82667         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
82668         bit_Slow_BSF for Atom.
82669         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
82670         (index_Slow_BSF): Define.
82671         (HAS_SLOW_BSF): Define.
82672
82673 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
82674
82675         [BZ #10851]
82676         * resolv/res_init.c (__res_vinit): When no server address at all
82677         is given default to loopback.
82678
82679 2010-08-24  Roland McGrath  <roland@redhat.com>
82680
82681         * configure.in: Remove config-name.h generation.
82682         * configure: Regenerated.
82683         * config-name.in: File removed.
82684         * scripts/config-uname.sh: New file.
82685         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
82686         ($(objdir)config-name.h): New target.
82687
82688         * sunrpc/rpc_parse.h: Avoid nested comment.
82689
82690 2010-08-24  Richard Henderson  <rth@redhat.com>
82691             Ulrich Drepper  <drepper@redhat.com>
82692             H.J. Lu  <hongjiu.lu@intel.com>
82693
82694         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
82695         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
82696         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
82697         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
82698         _mm_alignr_epi8 with _mm_loadu_si128.
82699         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
82700         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
82701         (__m128i_shift_right): Removed.
82702         * sysdeps/i386/i686/multiarch/varshift.h: New file.
82703         * sysdeps/i386/i686/multiarch/varshift.S: New file.
82704         * sysdeps/x86_64/multiarch/varshift.h: New file.
82705         * sysdeps/x86_64/multiarch/varshift.S: New file.
82706
82707 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
82708
82709         * configure.in: Move assembler checks to before sysdep dir checking.
82710
82711 2010-08-20  Petr Baudis  <pasky@suse.cz>
82712
82713         * LICENSES: Sync the sunrpc license.
82714
82715 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
82716
82717         * sunrpc/auth_des.c: Update copyright notice once again.
82718         * sunrpc/auth_none.c: Likewise.
82719         * sunrpc/auth_unix.c: Likewise.
82720         * sunrpc/authdes_prot.c: Likewise.
82721         * sunrpc/authuxprot.c: Likewise.
82722         * sunrpc/bindrsvprt.c: Likewise.
82723         * sunrpc/clnt_gen.c: Likewise.
82724         * sunrpc/clnt_perr.c: Likewise.
82725         * sunrpc/clnt_raw.c: Likewise.
82726         * sunrpc/clnt_simp.c: Likewise.
82727         * sunrpc/clnt_tcp.c: Likewise.
82728         * sunrpc/clnt_udp.c: Likewise.
82729         * sunrpc/clnt_unix.c: Likewise.
82730         * sunrpc/des_crypt.c: Likewise.
82731         * sunrpc/des_soft.c: Likewise.
82732         * sunrpc/get_myaddr.c: Likewise.
82733         * sunrpc/getrpcport.c: Likewise.
82734         * sunrpc/key_call.c: Likewise.
82735         * sunrpc/key_prot.c: Likewise.
82736         * sunrpc/openchild.c: Likewise.
82737         * sunrpc/pm_getmaps.c: Likewise.
82738         * sunrpc/pm_getport.c: Likewise.
82739         * sunrpc/pmap_clnt.c: Likewise.
82740         * sunrpc/pmap_prot.c: Likewise.
82741         * sunrpc/pmap_prot2.c: Likewise.
82742         * sunrpc/pmap_rmt.c: Likewise.
82743         * sunrpc/rpc/auth.h: Likewise.
82744         * sunrpc/rpc/auth_unix.h: Likewise.
82745         * sunrpc/rpc/clnt.h: Likewise.
82746         * sunrpc/rpc/des_crypt.h: Likewise.
82747         * sunrpc/rpc/key_prot.h: Likewise.
82748         * sunrpc/rpc/netdb.h: Likewise.
82749         * sunrpc/rpc/pmap_clnt.h: Likewise.
82750         * sunrpc/rpc/pmap_prot.h: Likewise.
82751         * sunrpc/rpc/pmap_rmt.h: Likewise.
82752         * sunrpc/rpc/rpc.h: Likewise.
82753         * sunrpc/rpc/rpc_des.h: Likewise.
82754         * sunrpc/rpc/rpc_msg.h: Likewise.
82755         * sunrpc/rpc/svc.h: Likewise.
82756         * sunrpc/rpc/svc_auth.h: Likewise.
82757         * sunrpc/rpc/types.h: Likewise.
82758         * sunrpc/rpc/xdr.h: Likewise.
82759         * sunrpc/rpc_clntout.c: Likewise.
82760         * sunrpc/rpc_cmsg.c: Likewise.
82761         * sunrpc/rpc_common.c: Likewise.
82762         * sunrpc/rpc_cout.c: Likewise.
82763         * sunrpc/rpc_dtable.c: Likewise.
82764         * sunrpc/rpc_hout.c: Likewise.
82765         * sunrpc/rpc_main.c: Likewise.
82766         * sunrpc/rpc_parse.c: Likewise.
82767         * sunrpc/rpc_parse.h: Likewise.
82768         * sunrpc/rpc_prot.c: Likewise.
82769         * sunrpc/rpc_sample.c: Likewise.
82770         * sunrpc/rpc_scan.c: Likewise.
82771         * sunrpc/rpc_scan.h: Likewise.
82772         * sunrpc/rpc_svcout.c: Likewise.
82773         * sunrpc/rpc_tblout.c: Likewise.
82774         * sunrpc/rpc_util.c: Likewise.
82775         * sunrpc/rpc_util.h: Likewise.
82776         * sunrpc/rpcinfo.c: Likewise.
82777         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
82778         * sunrpc/rpcsvc/key_prot.x: Likewise.
82779         * sunrpc/rpcsvc/klm_prot.x: Likewise.
82780         * sunrpc/rpcsvc/mount.x: Likewise.
82781         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
82782         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
82783         * sunrpc/rpcsvc/rex.x: Likewise.
82784         * sunrpc/rpcsvc/rstat.x: Likewise.
82785         * sunrpc/rpcsvc/rusers.x: Likewise.
82786         * sunrpc/rpcsvc/sm_inter.x: Likewise.
82787         * sunrpc/rpcsvc/spray.x: Likewise.
82788         * sunrpc/rpcsvc/yppasswd.x: Likewise.
82789         * sunrpc/rtime.c: Likewise.
82790         * sunrpc/svc.c: Likewise.
82791         * sunrpc/svc_auth.c: Likewise.
82792         * sunrpc/svc_authux.c: Likewise.
82793         * sunrpc/svc_raw.c: Likewise.
82794         * sunrpc/svc_run.c: Likewise.
82795         * sunrpc/svc_simple.c: Likewise.
82796         * sunrpc/svc_tcp.c: Likewise.
82797         * sunrpc/svc_udp.c: Likewise.
82798         * sunrpc/svc_unix.c: Likewise.
82799         * sunrpc/svcauth_des.c: Likewise.
82800         * sunrpc/xcrypt.c: Likewise.
82801         * sunrpc/xdr.c: Likewise.
82802         * sunrpc/xdr_array.c: Likewise.
82803         * sunrpc/xdr_float.c: Likewise.
82804         * sunrpc/xdr_mem.c: Likewise.
82805         * sunrpc/xdr_rec.c: Likewise.
82806         * sunrpc/xdr_ref.c: Likewise.
82807         * sunrpc/xdr_sizeof.c: Likewise.
82808         * sunrpc/xdr_stdio.c: Likewise.
82809
82810         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
82811         handling.
82812
82813 2010-08-19  Andreas Schwab  <schwab@redhat.com>
82814
82815         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
82816
82817 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
82818
82819         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
82820         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
82821         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
82822         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
82823         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
82824         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
82825         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
82826         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
82827         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
82828         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
82829         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
82830         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
82831         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
82832         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
82833
82834 2010-07-26  Anton Blanchard  <anton@samba.org>
82835
82836         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
82837         * malloc/arena.c (heap_trim): Likewise.
82838
82839 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
82840
82841         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
82842         here.  Not...
82843         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
82844         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
82845
82846 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
82847
82848         * sysdeps/i386/elf/Makefile: New file.
82849
82850 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82851
82852         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
82853         from fanotify_init.
82854         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
82855         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82856
82857 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
82858
82859         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
82860         of strncasecmp_l.
82861         * sysdeps/multiarch/strcmp.S: Likewise.
82862
82863 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
82864
82865         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82866         strncase_l-nonascii.
82867         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82868         Add strncase_l-ssse3.
82869         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
82870         * sysdeps/x86_64/strcmp.S: Likewise.
82871         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
82872         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
82873         * sysdeps/x86_64/strncase.S: New file.
82874         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
82875         * sysdeps/x86_64/strncase_l.S: New file.
82876         * string/Makefile (strop-tests): Add strncasecmp.
82877         * string/test-strncasecmp.c: New file.
82878
82879         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
82880         warning.
82881
82882         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
82883         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
82884
82885 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82886
82887         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
82888
82889 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
82890
82891         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
82892         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
82893         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
82894
82895 2010-05-01  Alan Modra  <amodra@gmail.com>
82896
82897         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
82898         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
82899         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
82900         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
82901         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
82902         tidying.  Don't tail-call __sigjmp_save for static lib.
82903         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
82904         save location.
82905         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
82906         (CALL_MCOUNT): Add eh info, and nop after bl.
82907         (TAIL_CALL_SYSCALL_ERROR): New macro.
82908         (PSEUDO_RET): Use it.
82909         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
82910         Correct save location of integer regs and cr.
82911         (_dl_profile_resolve): Correct cr save location.  Delete nops
82912         after bl when SHARED.  Reduce cfi size a little by better
82913         placement of cfi directives.
82914         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
82915         make a stack frame.  Instead use parm save area as a temp.
82916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
82917         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
82918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
82919         Don't make a stack frame for parent, use parm save area.
82920         Increase child stack frame to 112 bytes.  Don't save unused reg,
82921         and adjust reg usage.  Set up cfi on error recovery and
82922         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
82923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
82924         (__makecontext): Add dummy nop after jump to exit.
82925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
82926         Use correct parm save area and cr save, reduce stack frame.
82927         Correct cfi for possible PSEUDO_RET frame setup.
82928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
82929         Branch to local label emitted by PSEUDO_RET rather than
82930         __syscall_error.
82931
82932 2010-08-12  Andreas Schwab  <schwab@redhat.com>
82933
82934         [BZ #11904]
82935         * locale/programs/locale.c (print_assignment): New function.
82936         (show_locale_vars): Use it.
82937
82938 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
82939
82940         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
82941         field.
82942         (struct statfs64): Likewise.
82943         (_STATFS_F_FLAGS): Define.
82944         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
82945         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82946         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
82947         (ST_VALID): Define locally.
82948         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
82949         __statvfs_getflags, use the provided value.
82950         * sysdeps/unix/sysv/linux/kernel-features.h: Define
82951         __ASSUME_STATFS_F_FLAGS.
82952
82953         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
82954
82955         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
82956         Add sys/fanotify.h.
82957         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
82958         fanotify_mask for GLIBC_2.13.
82959         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
82960         fanotify_init and fanotify_mark.
82961         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82962         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
82963
82964         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
82965         Add prlimit.
82966         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
82967         prlimit64 for GLIBC_2.13.
82968         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
82969         prlimit64.
82970         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
82971         syscall.
82972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
82973         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82974         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
82975         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
82976         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
82977         add prlimit alias.
82978         * sysdeps/unix/sysv/linux/prlimit.c: New file.
82979
82980         [BZ #11903]
82981         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
82982         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
82983
82984         * nss/Makefile: Add rules to build and run tst-nss-test1.
82985         * shlib-versions: Add entry for libnss_test1.
82986         * nss/nss_test1.c: New file.
82987         * nss/tst-nss-test1.c: New file.
82988
82989         * nss/nsswitch.c (__nss_database_custom): Define new variable.
82990         (__nss_configure_lookup): Set appropriate entry in
82991         __nss_configure_lookup to true.
82992         * nss/nsswitch.h: Define enum with indeces of databases in
82993         databases and __nss_database_custom arrays.  Declare
82994         __nss_database_custom.
82995         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
82996         to avoid using nscd when custom rules are installed.
82997         * nss/getXXbyYY_r.c: Likewise.
82998         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
82999
83000         * nss/nss_files/files-parse.c: Whitespace fixes.
83001
83002 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
83003
83004         [BZ #11883]
83005         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
83006         * posix/fnmatch_loop.c: Likewise.
83007
83008 2010-07-17  Andi Kleen  <ak@linux.intel.com>
83009
83010         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
83011         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
83012         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
83013         * Versions.def [GLIBC_2.13]: Add.
83014
83015 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
83016
83017         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83018         Also fail if tpwd after pwuid call is NULL.
83019
83020 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83021
83022         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
83023         when converting to ms.
83024
83025 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83026
83027         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
83028         EOPNOTSUPP errors with ENOTTY.
83029         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
83030         EOPNOTSUPP errors with ENOTTY.
83031
83032 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
83033
83034         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83035         Add strcasecmp_l-ssse3.
83036         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
83037         strcasecmp.
83038         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
83039         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
83040         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
83041
83042 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
83043
83044         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
83045
83046         * string/Makefile (strop-tests): Add strcasecmp.
83047         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83048         strcasecmp_l-nonascii.
83049         (gen-as-const-headers): Add locale-defines.sym.
83050         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
83051         * sysdeps/x86_64/strcasecmp.S: New file.
83052         * sysdeps/x86_64/strcasecmp_l.S: New file.
83053         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
83054         * sysdeps/x86_64/locale-defines.sym: New file.
83055         * string/test-strcasecmp.c: New file.
83056
83057         * string/test-strcasestr.c: Test both ends of the range of characters.
83058         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
83059
83060 2010-07-29  Roland McGrath  <roland@redhat.com>
83061
83062         [BZ #11856]
83063         * manual/locale.texi (Yes-or-No Questions): Fix example code.
83064
83065 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
83066
83067         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
83068         for ld.so.
83069
83070 2010-07-27  Andreas Schwab  <schwab@redhat.com>
83071
83072         * manual/memory.texi (Malloc Tunable Parameters): Document
83073         M_PERTURB.
83074
83075 2010-07-26  Roland McGrath  <roland@redhat.com>
83076
83077         [BZ #11840]
83078         * configure.in (-fgnu89-inline check): Set and substitute
83079         gnu89_inline, not libc_cv_gnu89_inline.
83080         * configure: Regenerated.
83081         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
83082
83083 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
83084
83085         * string/test-strnlen.c: New file.
83086         * string/Makefile (strop-tests): Add strnlen.
83087         * string/tester.c (test_strnlen): Add a few more test cases.
83088         * string/tst-strlen.c: Better error reporting.
83089
83090         * sysdeps/x86_64/strnlen.S: New file.
83091
83092 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
83093
83094         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
83095         lower-latency instructions.
83096
83097 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
83098
83099         * string/test-strcasestr.c: New file.
83100         * string/test-strstr.c: New file.
83101         * string/Makefile (strop-tests): Add strstr and strcasestr.
83102         * string/str-two-way.h: Don't undefine MAX.
83103         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
83104
83105 2010-07-21  Andreas Schwab  <schwab@redhat.com>
83106
83107         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
83108         strcasestr-nonascii.
83109         (CFLAGS-strcasestr-nonascii.c): Define.
83110         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
83111         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
83112         Remove unused attribute.
83113
83114 2010-07-20  Roland McGrath  <roland@redhat.com>
83115
83116         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
83117         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
83118         ld.so.cache was broken.  With it, there is no way to disable dsocaps
83119         like LD_HWCAP_MASK can disable hwcaps.
83120
83121 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83122
83123         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
83124
83125 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
83126
83127         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
83128         call in strcasestr.
83129         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
83130         __strcasestr_sse42_nonascii.
83131         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
83132         strcasestr-nonascii.c.
83133         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
83134
83135 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
83136
83137         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
83138         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
83139         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
83140         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
83141
83142 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
83143
83144         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
83145         fcntl.
83146
83147 2010-07-06  Andreas Schwab  <schwab@redhat.com>
83148
83149         [BZ #11577]
83150         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
83151         dl_signal_cerror.
83152
83153 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
83154
83155         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
83156         _PC_PIPE_BUF using F_GETPIPE_SZ.
83157
83158 2010-07-05  Roland McGrath  <roland@redhat.com>
83159
83160         * manual/arith.texi (Rounding Functions): Fix rint description
83161         implicit in round description.
83162
83163 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
83164
83165         * elf/Makefile: Fix linking for a few tests to make recent linker
83166         happy.
83167
83168 2010-06-30  Andreas Schwab  <schwab@redhat.com>
83169
83170         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
83171         $(common-objpfx)libc_nonshared.a.
83172
83173 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
83174
83175         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
83176         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
83177         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83178         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83179         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
83180         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
83181         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83182         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
83184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
83185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
83186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
83188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
83190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
83191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
83192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
83193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
83195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
83197         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
83198         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
83199         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
83200         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
83201         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
83202         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
83203         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
83204         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
83205         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
83206         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
83207         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
83208         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
83209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
83210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
83211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
83212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
83213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
83214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
83215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
83216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
83217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
83218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
83219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
83220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
83221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
83222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
83223
83224 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
83225
83226         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
83227         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
83228         * string/memmove.c (memmove): Renamed to ...
83229         (MEMMOVE): ...this.  Default to memmove.
83230         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
83231         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
83232         (END_CHK): Define.
83233         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
83234         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
83235         mempcpy-ssse3-back memmove-ssse3-back.
83236         * sysdeps/x86_64/multiarch/bcopy.S: New file .
83237         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
83238         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
83239         * sysdeps/x86_64/multiarch/memcpy.S: New file.
83240         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
83241         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
83242         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
83243         * sysdeps/x86_64/multiarch/memmove.c: New file.
83244         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
83245         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
83246         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
83247         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
83248         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
83249         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
83250         Define.
83251         (index_Fast_Copy_Backward): Define.
83252         (HAS_ARCH_FEATURE): Define.
83253         (HAS_FAST_REP_STRING): Define.
83254         (HAS_FAST_COPY_BACKWARD): Define.
83255
83256 2010-06-21  Andreas Schwab  <schwab@redhat.com>
83257
83258         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83259         Restore proper fallback handling.
83260
83261 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
83262
83263         [BZ #11701]
83264         * posix/group_member.c (__group_member): Correct checking loop.
83265
83266         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
83267         OOM in getpwuid_r correctly.  Return error number when the caller
83268         should return, otherwise -1.
83269         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
83270         call returning > 0 value.
83271         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
83272
83273 2010-06-07  Andreas Schwab  <schwab@redhat.com>
83274
83275         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
83276         libc_nonshared.a from targets in modules-names.
83277
83278 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
83279
83280         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
83281         requires it.
83282
83283 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
83284
83285         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
83286         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
83287         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
83288         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
83289
83290 2010-06-02  Andreas Schwab  <schwab@redhat.com>
83291
83292         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
83293
83294 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
83295
83296         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
83297         and F_GETPIPE_SZ.
83298         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
83299         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
83300         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
83301         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
83302         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
83303         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83304
83305 2010-06-14  Roland McGrath  <roland@redhat.com>
83306
83307         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
83308
83309 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
83310
83311         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
83312         __REDIRECT followed by __THROW.
83313         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
83314         * posix/getopt.h (getopt): Likewise.
83315
83316 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83317
83318         * hurd/lookup-at.c (__file_name_lookup_at): Accept
83319         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
83320         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
83321         in AT_FLAGS.
83322         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
83323         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
83324
83325 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
83326
83327         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
83328
83329 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
83330
83331         [BZ #11640]
83332         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83333         Properly check family and model.
83334
83335 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
83336
83337         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
83338
83339 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
83340
83341         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
83342
83343 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
83344
83345         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
83346         symbol reference.
83347
83348 2010-05-19  Andreas Schwab  <schwab@redhat.com>
83349
83350         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
83351         symbol reference.
83352
83353 2010-05-21  Andreas Schwab  <schwab@redhat.com>
83354
83355         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
83356         and internal_recvmmsg.
83357         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
83358         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
83359         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
83360         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
83361
83362         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
83363         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
83364         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
83365
83366 2010-05-20  Andreas Schwab  <schwab@redhat.com>
83367
83368         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
83369
83370 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
83371
83372         POWER7 optimizations.
83373         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
83374         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
83375
83376 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
83377
83378         * version.h: Update for 2.13 development version.
83379
83380 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
83381
83382         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
83383         exceptions.  Return 0.
83384
83385 2010-05-07  Roland McGrath  <roland@redhat.com>
83386
83387         * elf/ldconfig.c (main): Add a const.
83388
83389 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
83390
83391         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
83392         (args_options): Add no-idn option.
83393         (ahosts_keys_int): Add idn_flags to ai_flags.
83394         (parse_option): Handle 'i' option to clear idn_flags.
83395
83396         * malloc/malloc.c (_int_free): Possible race in the most recently
83397         added check.  Only act on the data if no current modification
83398         happened.
83399
83400 See ChangeLog.17 for earlier changes.